:root {
    --bg: #fbfbfa;
    --panel: #ffffff;
    --panel-2: #f4f4f2;
    --line: #e4e3df;
    --line-strong: #d3d2cc;
    --ink: #1c1c1a;
    --ink-dim: #6b6b64;
    --ink-faint: #9d9c95;
    --accent: #2f5eff;
    --accent-ink: #fff;
    --accent-soft: #eaeeff;
    --teal: #0ea88e;
    --teal-soft: #e3f7f2;
    --amber-soft: #fbf3de;
    --red: #d64545;
    --red-soft: #fbeaea;
    --radius: 12px;
    --disp: 'Space Grotesk', sans-serif;
    --body: 'IBM Plex Sans', sans-serif;
    --mono: 'IBM Plex Mono', monospace;
}



body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--body);
}

.wrap {
    max-width: 760px;
    margin: 0 auto;
}

.hero {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px 4px 26px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 30px;
}

.eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 2.5px;
    color: var(--teal);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
}

h1 {
    font-family: var(--disp);
    font-weight: 700;
    font-size: clamp(30px, 5vw, 42px);
    letter-spacing: -0.5px;
}

.hero p {
    color: var(--ink-dim);
    font-size: 14.5px;
    max-width: 560px;
    margin-top: 6px;
    line-height: 1.55;
}

.engine-status {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-faint);
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.engine-status .pip {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ink-faint);
}

.engine-status.ready .pip {
    background: var(--teal);
}

.engine-status.ready {
    color: var(--teal);
}

.engine-status.loading .pip {
    background: var(--accent);
    animation: pulse 1s infinite ease-in-out;
}

.engine-status.loading {
    color: var(--accent);
}

.engine-status.error .pip {
    background: var(--red);
}

.engine-status.error {
    color: var(--red);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .25;
    }
}

.dropzone {
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--radius);
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    background: var(--panel);
    transition: all .15s ease;
}

.dropzone:hover,
.dropzone.drag {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.dropzone .icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.dropzone .main {
    font-family: var(--disp);
    font-size: 18px;
    font-weight: 600;
}

.dropzone .sub {
    font-size: 12px;
    color: var(--ink-faint);
    margin-top: 8px;
    font-family: var(--mono);
}

#fileInput {
    display: none;
}

#uploadArea.hidden-big {
    display: none;
}

.top-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: -6px;
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 18px;
    box-shadow: 0 1px 2px rgba(20, 20, 15, .03);
    display: none;
}

.card.visible {
    display: block;
}

.card h2 {
    font-family: var(--disp);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--ink-dim);
}

.info-row b {
    color: var(--ink);
}

audio {
    width: 100%;
    margin-top: 14px;
    height: 36px;
}

.channel-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 10px 14px;
    font-family: var(--disp);
    font-weight: 700;
    font-size: 15px;
}

.channel-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.option-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.option-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all .12s ease;
    background: var(--panel);
}

.option-card:hover {
    border-color: var(--accent);
}

.option-card.active {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.option-card .opt-title {
    font-family: var(--disp);
    font-weight: 600;
    font-size: 14px;
}

.option-card .opt-sub {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-faint);
    margin-top: 3px;
}

.option-card .opt-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--line-strong);
    flex-shrink: 0;
    position: relative;
}

.option-card.active .opt-radio {
    border-color: var(--accent);
}

.option-card.active .opt-radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--accent);
}

.info-box,
.warn-box {
    font-size: 12.5px;
    line-height: 1.55;
    padding: 14px 16px;
    border-radius: 9px;
    margin: 16px 0;
}

.info-box {
    background: var(--accent-soft);
    color: #1e3a8f;
}

.warn-box {
    background: var(--amber-soft);
    color: #7a5c00;
    border: 1px solid rgba(184, 134, 11, .25);
}

.btn {
    font-family: var(--mono);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .4px;
    padding: 13px 22px;
    border-radius: 8px;
    border: none;
    background: var(--accent);
    color: var(--accent-ink);
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover {
    filter: brightness(1.07);
}

.btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.btn.ghost {
    background: transparent;
    color: var(--ink-dim);
    border: 1px solid var(--line-strong);
    width: auto;
}

.btn.ghost:hover {
    border-color: var(--red);
    color: var(--red);
}

.btn.download {
    background: var(--teal);
    width: auto;
}

.bar {
    height: 4px;
    background: var(--line);
    border-radius: 2px;
    margin-top: 16px;
    overflow: hidden;
    display: none;
}

.bar.show {
    display: block;
}

.bar>i {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--teal), var(--accent));
    transition: width .15s ease;
}

.status-line {
    display: none;
    margin-top: 10px;
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--ink-faint);
}

.status-line.show {
    display: block;
}

.status-tag {
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.status-tag.error {
    background: var(--red-soft);
    color: var(--red);
}

.status-tag.done {
    background: var(--teal-soft);
    color: var(--teal);
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.result-header .status-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--teal);
    text-transform: uppercase;
}

.result-header .status-pill .pip {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal);
}