<style >
* {
    box-sizing: border-box;
}
.app {
    max-width: 1060px;
    margin: 0 auto;
}

.head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin: 0 6px 16px;
}

h1 {
    font-size: 21px;
    line-height: 1.2;
    margin: 0 0 6px;
    letter-spacing: .01em;
}

.head p {
    margin: 0;
    font-size: 13px;
    color: #67748a;
}

.badge {
    flex: none;
    font-size: 11.5px;
    letter-spacing: .02em;
    color: #5b6879;
    background: #fff;
    border: 1px solid #e1e8f1;
    padding: 6px 12px;
    border-radius: 999px;
    box-shadow: 0 6px 14px -12px rgba(20,35,55,.5);
    white-space: nowrap;
}

.stage {
    background: linear-gradient(rgba(47,111,237,.032) 1px, transparent 1px), linear-gradient(90deg, rgba(47,111,237,.032) 1px, transparent 1px), linear-gradient(180deg, #fbfcfe 0%, #eef3f9 100%);
    background-size: 24px 24px, 24px 24px, 100% 100%;
    border: 1px solid #e2e9f2;
    border-radius: 22px;
    padding: 8px 12px;
    box-shadow: 0 24px 50px -30px rgba(20,40,70,.45);
    overflow-x: auto;
    overflow-y: hidden;
}

#mic {
    display: block;
    width: 100%;
    height: auto;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
}

    #mic:active {
        cursor: grabbing;
    }

    #mic:focus-visible {
        outline: 2px solid #2f6fed;
        outline-offset: 3px;
        border-radius: 14px;
    }

.zoom-card {
    margin-top: 14px;
    background: #fff;
    border: 1px solid #e2e9f2;
    border-radius: 18px;
    padding: 10px 16px 12px;
    box-shadow: 0 18px 34px -30px rgba(20,40,70,.5);
}

.zoom-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 2px 6px;
}

.zoom-title {
    font-size: 12px;
    font-weight: 600;
    color: #42506a;
    letter-spacing: .02em;
}

.zoom-tag {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #eef3fb;
    color: #2f6fed;
    font-weight: 600;
}

.zoom-hint {
    margin-left: auto;
    font-size: 11px;
    color: #8a97aa;
}

#zoom {
    display: block;
    width: 100%;
    max-width: 700px;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
    background: #f7fafd;
}

    #zoom line {
        vector-effect: non-scaling-stroke;
    }

.panel {
    margin-top: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
}

.display {
    position: relative;
    overflow: hidden;
    min-width: 0;
    background: linear-gradient(155deg, #141c27 0%, #0c131c 100%);
    border-radius: 20px;
    padding: 18px 22px 20px;
    color: #e9eff7;
    box-shadow: 0 22px 40px -30px rgba(10,20,35,.9), inset 0 1px 0 rgba(255,255,255,.07);
}

    .display::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(420px 150px at 15% -10%, rgba(90,130,190,.22), transparent 70%);
    }

.display-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    letter-spacing: .18em;
    color: #8597ad;
    text-transform: uppercase;
}

.status {
    font-size: 11px;
    letter-spacing: .02em;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    color: #9bacc2;
    text-transform: none;
    transition: background .2s, color .2s;
    white-space: nowrap;
}

    .status.is-on {
        background: rgba(242,101,34,.18);
        color: #ff9f74;
    }

    .status.is-busy {
        background: rgba(70,120,255,.18);
        color: #8db2ff;
    }

    .status.is-error {
        background: rgba(229,72,77,.18);
        color: #ff9a9e;
    }

.digits {
    position: relative;
    margin-top: 12px;
    font-family: "JetBrains Mono", Consolas, ui-monospace, monospace;
    font-variant-numeric: tabular-nums;
    font-size: clamp(38px, 5.6vw, 52px);
    font-weight: 700;
    line-height: 1;
    color: #fff;
    letter-spacing: .01em;
}

    .digits .unit {
        margin-left: 9px;
        font-size: 16px;
        font-weight: 500;
        color: #8799b0;
        letter-spacing: 0;
    }

    .digits .muted {
        color: #55657a;
    }

.explain {
    position: relative;
    margin: 14px 0 0;
    font-size: 12.5px;
    line-height: 1.75;
    color: #93a5bc;
    min-height: 44px;
}

    .explain b {
        color: #e9eff7;
        font-weight: 600;
    }

.c-blue {
    color: #7fa9ff !important;
}

.c-accent {
    color: #ff9f74 !important;
}

.controls-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    min-width: 0;
    background: #fff;
    border: 1px solid #e2e9f2;
    border-radius: 20px;
    padding: 18px 18px 16px;
    box-shadow: 0 22px 40px -34px rgba(20,40,70,.6);
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.btn {
    appearance: none;
    border: 1px solid #dde5ef;
    background: #fff;
    color: #1b2430;
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    padding: 11px 18px;
    border-radius: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .15s, border-color .15s, background .15s, box-shadow .15s;
}

    .btn:hover {
        border-color: #c6d2e0;
        background: #fbfcfe;
        transform: translateY(-1px);
    }

    .btn:active {
        transform: translateY(0);
    }

    .btn.primary {
        background: #f26522;
        border-color: #f26522;
        color: #fff;
        box-shadow: 0 12px 22px -12px rgba(242,101,34,.9);
    }

        .btn.primary:hover {
            background: #e4571a;
            border-color: #e4571a;
        }

    .btn.ghost {
        background: #f7f9fc;
        color: #42506a;
    }

.go {
    display: flex;
    gap: 8px;
    flex: 1 1 210px;
    min-width: 0;
}

input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #dde5ef;
    border-radius: 12px;
    background: #fbfcfe;
    color: #1b2430;
    font: inherit;
    font-size: 13.5px;
    transition: .15s;
}

    input::placeholder {
        color: #94a2b6;
    }

    input:focus {
        outline: none;
        border-color: #2f6fed;
        background: #fff;
        box-shadow: 0 0 0 3px rgba(47,111,237,.12);
    }

.footnote {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.8;
    color: #7b8799;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-4px);
    }

    40% {
        transform: translateX(4px);
    }

    60% {
        transform: translateX(-3px);
    }

    80% {
        transform: translateX(3px);
    }
}

.shake {
    animation: shake .45s;
    border-color: #e5484d !important;
}

@media (max-width: 840px) {
    .panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    input {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn {
        transition: none;
    }

    .shake {
        animation: none;
    }
}

</style >
