.voice-hub-hero {
    padding-top: 38px !important;
    text-align: center;
}

.voice-hub-hero .eyebrow {
    justify-content: center;
}

.voice-hub-hero .heading-lg {
    max-width: 820px;
    margin: 12px auto 10px;
    font-size: clamp(2.55rem, 5vw, 4.35rem);
    line-height: .96;
    letter-spacing: -.062em;
}

.voice-hub-hero .lede {
    max-width: 720px;
    margin-inline: auto;
    font-size: 1rem;
    line-height: 1.55;
}

.voice-hub-hero > p:not(.lede) {
    display: none;
}

.voice-hub-hero > p:not(.lede):not(.status-note) {
    max-width: 760px;
    margin-inline: auto;
    color: #334155;
}

.voice-hub-hero .status-note {
    margin-top: 12px;
}

.voice-workbench {
    --voice-coral: #d63846;
    --voice-coral-bright: #ff4654;
    --voice-teal: #0c8f8b;
    --voice-navy: #111827;
    --voice-muted: #617089;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 36px;
    padding: 26px;
    border: 1px solid #eadde0;
    border-radius: 30px;
    color: var(--voice-navy);
    background:
        radial-gradient(circle at 6% 0%, rgba(255, 70, 84, .12), transparent 32%),
        radial-gradient(circle at 96% 0%, rgba(12, 143, 139, .1), transparent 30%),
        linear-gradient(145deg, #fff 0%, #fff9fa 60%, #f8fcfc 100%);
    box-shadow: 0 34px 78px -54px rgba(77, 25, 37, .55);
}

.voice-workbench::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(214, 56, 70, .19) .75px, transparent .9px);
    background-size: 17px 17px;
    mask-image: linear-gradient(115deg, #000, transparent 42%);
    opacity: .45;
    pointer-events: none;
}

.voice-workbench > * {
    position: relative;
    z-index: 1;
}

.voice-workbench-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: start;
    margin-bottom: 18px;
}

.voice-workbench-kicker,
.voice-route-head > span {
    color: #a52331;
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .15em;
}

.voice-workbench h2 {
    max-width: 700px;
    margin: 5px 0 6px;
    font-size: clamp(1.75rem, 3.8vw, 3.15rem);
    line-height: 1;
    letter-spacing: -.05em;
}

.voice-workbench-head p {
    max-width: 720px;
    margin: 0;
    color: var(--voice-muted);
    line-height: 1.55;
}

.voice-local-badge {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
    align-items: center;
    min-width: 170px;
    padding: 10px 12px;
    border: 1px solid #b8e2df;
    border-radius: 15px;
    background: rgba(239, 251, 250, .86);
}

.voice-local-badge svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: var(--voice-teal);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.voice-local-badge span {
    display: grid;
    gap: 1px;
}

.voice-local-badge strong {
    font-size: .82rem;
}

.voice-local-badge small {
    color: #44716f;
    font-size: .7rem;
}

.voice-intents {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
    padding: 5px;
    border: 1px solid #eadde0;
    border-radius: 17px;
    background: rgba(246, 241, 242, .78);
}

.voice-intents button {
    display: flex;
    min-width: 0;
    min-height: 58px;
    gap: 10px;
    align-items: center;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: #3c4657;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.voice-intents button:hover {
    background: rgba(255, 255, 255, .74);
}

.voice-intents button.is-active {
    border-color: #efc2c8;
    color: #8f1d2a;
    background: #fff;
    box-shadow: 0 9px 20px -17px rgba(52, 18, 28, .7);
}

.voice-intents svg {
    flex: 0 0 auto;
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.voice-intents span {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.voice-intents strong,
.voice-intents small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.voice-intents strong {
    font-size: .86rem;
}

.voice-intents small {
    color: #758195;
    font-size: .68rem;
}

.voice-workbench-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.48fr) minmax(300px, .82fr);
    min-height: 430px;
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: 22px;
    background: rgba(255, 255, 255, .94);
}

.voice-input-panel {
    display: grid;
    align-content: start;
    min-width: 0;
    padding: 18px;
    border-right: 1px solid #e6e8ee;
}

.voice-dropzone {
    display: grid;
    place-items: center;
    min-height: 146px;
    padding: 18px;
    border: 1.5px dashed #e1aeb5;
    border-radius: 17px;
    background: linear-gradient(150deg, #fffafb, #fff 68%, #f4fbfa);
    text-align: center;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.voice-dropzone:hover,
.voice-dropzone.is-dragging {
    border-color: var(--voice-coral-bright);
    background: #fff5f6;
}

.voice-dropzone input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.voice-drop-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
    border-radius: 14px;
    color: #a52331;
    background: #fff0f2;
    box-shadow: inset 0 0 0 1px #f2ccd1;
}

.voice-drop-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.voice-dropzone > strong {
    font-size: 1.02rem;
}

.voice-dropzone > span:not(.voice-drop-icon) {
    margin-top: 3px;
    color: var(--voice-muted);
    font-size: .82rem;
}

.voice-dropzone > small {
    max-width: 540px;
    margin-top: 8px;
    color: #758195;
    font-size: .7rem;
    line-height: 1.45;
}

.voice-input-actions,
.voice-file-summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    min-height: 46px;
    padding: 7px 2px 5px;
}

.voice-file-summary[hidden],
.voice-analysis-progress[hidden] {
    display: none;
}

.voice-input-actions > span,
.voice-file-summary span {
    color: #758195;
    font-size: .72rem;
}

.voice-demo-button,
.voice-file-summary button {
    min-height: 40px;
    padding: 7px 13px;
    border: 1px solid #e8bac0;
    border-radius: 999px;
    color: #9d2633;
    background: #fff;
    font-weight: 800;
    cursor: pointer;
}

.voice-analysis-progress {
    position: relative;
    overflow: hidden;
    min-height: 44px;
    margin-top: 4px;
    padding: 12px 14px;
    border-radius: 13px;
    color: #245f5d;
    background: #effbfa;
    font-size: .78rem;
}

.voice-analysis-progress span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 38%;
    background: linear-gradient(90deg, transparent, rgba(12, 143, 139, .16), transparent);
    animation: voice-progress 1.15s ease-in-out infinite;
}

.voice-file-summary > div {
    display: grid;
    min-width: 0;
}

.voice-file-summary strong,
.voice-file-summary span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.voice-waveform {
    display: block;
    width: 100%;
    height: 128px;
    border: 1px solid #e4e7ec;
    border-radius: 15px;
    background: linear-gradient(#fbfcfd, #f5f8fa);
}

.voice-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    margin-top: 8px;
}

.voice-metrics > div {
    display: grid;
    min-width: 0;
    gap: 1px;
    padding: 9px 10px;
    border: 1px solid #e6e8ee;
    border-radius: 12px;
    background: #fff;
}

.voice-metrics span,
.voice-metrics small {
    overflow: hidden;
    color: #768196;
    font-size: .64rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.voice-metrics strong {
    color: #172033;
    font-size: .92rem;
}

.voice-route-panel {
    display: grid;
    align-content: start;
    min-width: 0;
    padding: 20px;
    background: linear-gradient(160deg, #fff, #fff9fa 62%, #f7fbfb);
}

.voice-route-head h3 {
    margin: 5px 0 5px;
    font-size: 1.3rem;
    letter-spacing: -.03em;
}

.voice-route-head p,
.voice-route-caveat {
    margin: 0;
    color: var(--voice-muted);
    font-size: .76rem;
    line-height: 1.5;
}

.voice-recommendations {
    display: grid;
    gap: 8px;
    margin: 14px 0;
    padding: 0;
    list-style: none;
}

.voice-recommendations a {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 22px;
    gap: 10px;
    align-items: center;
    min-height: 70px;
    padding: 10px;
    border: 1px solid #e6dadd;
    border-radius: 14px;
    color: inherit;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 12px 26px -25px rgba(52, 18, 28, .9);
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.voice-recommendations a:hover {
    transform: translateY(-2px);
    border-color: #df9ca5;
    box-shadow: 0 18px 30px -25px rgba(52, 18, 28, .9);
}

.voice-route-rank {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    color: #9f2432;
    background: #fff0f2;
    font-weight: 850;
}

.voice-recommendations a > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.voice-recommendations strong {
    font-size: .85rem;
}

.voice-recommendations small {
    color: #69778e;
    font-size: .68rem;
    line-height: 1.35;
}

.voice-recommendations svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #b3313f;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.voice-catalog-launchpad {
    margin-top: 0;
}

.voice-tool-catalog {
    border: 1px solid #e4e7ec;
    border-radius: 20px;
    background: #fff;
}

.voice-tool-catalog > summary {
    display: flex;
    justify-content: space-between;
    min-height: 66px;
    gap: 16px;
    align-items: center;
    padding: 12px 18px;
    cursor: pointer;
    list-style: none;
}

.voice-tool-catalog > summary::-webkit-details-marker {
    display: none;
}

.voice-tool-catalog > summary > span:first-child {
    display: grid;
    gap: 2px;
}

.voice-tool-catalog > summary small {
    color: #748097;
}

.voice-tool-catalog > summary > span:last-child {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid #e4c9cd;
    border-radius: 12px;
    color: #a52331;
    font-size: 1.4rem;
    transition: transform .18s ease;
}

.voice-tool-catalog[open] > summary > span:last-child {
    transform: rotate(45deg);
}

.voice-tool-catalog-body {
    padding: 6px 18px 20px;
    border-top: 1px solid #edf0f3;
}

@keyframes voice-progress {
    from { transform: translateX(-120%); }
    to { transform: translateX(360%); }
}

@media (max-width: 900px) {
    .voice-workbench-grid {
        grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    }

    .voice-intents small {
        display: none;
    }
}

@media (max-width: 760px) {
    .voice-hub-hero {
        padding-top: 24px !important;
        padding-bottom: 14px !important;
        text-align: left;
    }

    .voice-hub-hero .eyebrow {
        justify-content: flex-start;
    }

    .voice-hub-hero .heading-lg {
        margin-inline: 0;
        font-size: clamp(2.35rem, 10.4vw, 2.8rem);
        line-height: .95;
    }

    .voice-hub-hero .lede {
        font-size: .9rem;
        line-height: 1.48;
    }

    .voice-workbench {
        width: calc(100% - 24px);
        margin: 4px 12px 30px;
        padding: 12px;
        border-radius: 22px;
    }

    .voice-workbench-head {
        display: grid;
        gap: 12px;
    }

    .voice-local-badge {
        min-width: 0;
        width: fit-content;
    }

    .voice-intents {
        grid-template-columns: repeat(2, 1fr);
    }

    .voice-intents button {
        min-height: 52px;
    }

    .voice-intents small {
        display: block;
    }

    .voice-workbench-grid {
        grid-template-columns: 1fr;
    }

    .voice-input-panel {
        padding: 12px;
        border-right: 0;
        border-bottom: 1px solid #e6e8ee;
    }

    .voice-dropzone {
        min-height: 132px;
    }

    .voice-route-panel {
        padding: 16px;
    }

    .voice-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .voice-input-actions > span {
        text-align: right;
    }
}

@media (max-width: 430px) {
    .voice-workbench h2 {
        font-size: 1.85rem;
    }

    .voice-intents small {
        display: none;
    }

    .voice-input-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .voice-input-actions > span {
        text-align: left;
    }
}

.voice-workbench :is(button, a, label, summary):focus-visible {
    outline: 3px solid rgba(12, 143, 139, .42);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .voice-workbench *,
    .voice-workbench *::before,
    .voice-workbench *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
