.converter-hero {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(420px, 1.18fr);
    gap: clamp(30px, 6vw, 72px);
    align-items: center;
    min-height: 620px;
    padding: 54px 0 64px;
}

.converter-intro {
    max-width: 560px;
}

.converter-intro h1 {
    max-width: 9ch;
}

.privacy-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 25px;
}

.privacy-points span,
.usage-badge {
    border: 1px solid rgba(69, 182, 255, .3);
    border-radius: 999px;
    color: #8dd3ff;
    background: rgba(0, 150, 255, .08);
    font-size: .78rem;
    font-weight: 800;
}

.privacy-points span {
    padding: 6px 10px;
}

.converter-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    background: rgba(15, 15, 16, .94);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .42);
}

.converter-card__header,
.result-heading,
.sheet-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.converter-card__header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, .018);
}

.usage-copy {
    margin: 2px 0 0;
    color: var(--text-muted);
    font-size: .8rem;
}

.usage-badge {
    flex: 0 0 auto;
    padding: 6px 10px;
}

.usage-badge.is-empty {
    border-color: rgba(239, 68, 68, .36);
    color: #ff9b9b;
    background: rgba(239, 68, 68, .08);
}

.converter-card__body {
    padding: 20px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.drop-zone {
    min-height: 265px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 30px;
    border: 1.5px dashed rgba(69, 182, 255, .5);
    border-radius: 14px;
    cursor: pointer;
    text-align: center;
    background:
        radial-gradient(circle at center, rgba(0, 150, 255, .12), transparent 70%),
        rgba(0, 150, 255, .025);
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.drop-zone:hover,
.drop-zone:focus-visible,
.drop-zone.is-dragging {
    border-color: var(--brand-strong);
    background-color: rgba(0, 150, 255, .07);
}

.drop-zone.is-dragging {
    transform: scale(.99);
}

.drop-zone.is-disabled {
    opacity: .55;
    cursor: not-allowed;
}

.drop-zone strong {
    margin-top: 10px;
    font-size: 1.08rem;
}

.drop-zone span:not(.file-mark) {
    color: #c8c8c8;
    font-size: .9rem;
}

.drop-zone small,
.safety-option small {
    color: var(--text-muted);
    font-size: .76rem;
    line-height: 1.45;
}

.file-mark {
    display: grid;
    place-items: center;
    width: 58px;
    height: 66px;
    border: 1px solid rgba(69, 182, 255, .5);
    border-radius: 9px;
    color: white;
    background: linear-gradient(150deg, #0077c8, #00a8ff);
    box-shadow: 0 12px 28px rgba(0, 150, 255, .2);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.safety-option {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 14px;
    padding: 12px 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    background: rgba(255, 255, 255, .022);
}

.safety-option input {
    width: 17px;
    height: 17px;
    margin: 3px 0 0;
    accent-color: var(--brand);
}

.safety-option span {
    display: grid;
    gap: 1px;
}

.safety-option strong {
    font-size: .84rem;
}

.status-message {
    min-height: 0;
    margin-top: 0;
    border-radius: 9px;
    color: #d8d8d8;
    font-size: .86rem;
}

.status-message:not(:empty) {
    min-height: 42px;
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(69, 182, 255, .24);
    background: rgba(0, 150, 255, .07);
}

.status-message.is-error:not(:empty) {
    border-color: rgba(239, 68, 68, .35);
    color: #ffb3b3;
    background: rgba(239, 68, 68, .07);
}

.conversion-result {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.result-kicker {
    margin: 0;
    color: var(--green);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.result-heading h2 {
    margin: 2px 0 0;
    font-size: 1.35rem;
}

.text-button {
    border: 0;
    padding: 7px;
    color: var(--brand-strong);
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: .82rem;
    font-weight: 800;
}

.result-summary {
    margin: 10px 0 14px;
    color: var(--text-muted);
    font-size: .84rem;
}

.sheet-list {
    display: grid;
    gap: 8px;
}

.sheet-row {
    padding: 10px 11px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, .025);
}

.sheet-info {
    min-width: 0;
}

.sheet-info strong,
.sheet-info span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sheet-info strong {
    font-size: .86rem;
}

.sheet-info span {
    color: var(--text-muted);
    font-size: .74rem;
}

.download-button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid rgba(69, 182, 255, .48);
    border-radius: 8px;
    color: #fff;
    background: #007dce;
    cursor: pointer;
    font: inherit;
    font-size: .78rem;
    font-weight: 850;
}

.download-button:hover {
    background: #0096f5;
}

.step-number {
    color: var(--brand-strong);
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .08em;
}

html[data-theme="light"] .converter-card {
    border-color: #c9d8e5;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 60px rgba(31, 58, 81, .14);
}

html[data-theme="light"] .converter-card__header {
    background: #f5f9fc;
}

html[data-theme="light"] .privacy-points span,
html[data-theme="light"] .usage-badge {
    color: #005f9b;
    background: #e6f4fd;
}

html[data-theme="light"] .drop-zone {
    color: #142433;
    background:
        radial-gradient(circle at center, rgba(0, 132, 214, .1), transparent 70%),
        #f8fbfd;
}

html[data-theme="light"] .drop-zone span:not(.file-mark),
html[data-theme="light"] .status-message {
    color: #334e63;
}

html[data-theme="light"] .safety-option,
html[data-theme="light"] .sheet-row {
    border-color: #cfdae4;
    background: #f7fafc;
}

@media (max-width: 860px) {
    .converter-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 38px 0 52px;
    }

    .converter-intro h1 {
        max-width: 12ch;
    }
}

@media (max-width: 520px) {
    .converter-card__body {
        padding: 14px;
    }

    .converter-card__header {
        padding: 15px;
    }

    .drop-zone {
        min-height: 230px;
        padding: 24px 14px;
    }

    .sheet-row {
        align-items: flex-start;
    }
}
