﻿/* =========================================================
   Bee Voice Assistant — Warm Minimal
   File: UI.Shared/wwwroot/css/voice-assistant.css
   Single-source responsive layout; no trailing overrides.
   ========================================================= */

.bee-voice-page {
    --bee-forest: #286b53;
    --bee-forest-dark: #194c3c;
    --bee-green: #3d8c6c;
    --bee-mint: #e7f2e9;
    --bee-cream: #faf7f0;
    --bee-paper: #fffefa;
    --bee-text: #203b31;
    --bee-muted: #78847c;
    --bee-border: #e9e3d7;
    --bee-amber: #f3c66b;
    --bee-danger: #a83e36;
    min-height: 100vh;
    padding: 12px 22px 10px;
    background: radial-gradient(ellipse at 5% 5%, #f2ead6 0, transparent 32%), radial-gradient(ellipse at 96% 30%, #e5f0e4 0, transparent 28%), var(--bee-cream);
    color: var(--bee-text);
    font: 15px/1.55 Inter, "Segoe UI", Arial, sans-serif;
}

    .bee-voice-page *,
    .bee-voice-page *::before,
    .bee-voice-page *::after {
        box-sizing: border-box;
    }

    .bee-voice-page button,
    .bee-voice-page input,
    .bee-voice-page textarea,
    .bee-voice-page select {
        font: inherit;
    }

.bee-voice-shell {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

/* Header */
.bee-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.bee-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--bee-text);
    text-decoration: none;
}

.bee-brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #eee4ce;
    border-radius: 16px;
    background: #fffdf7;
    box-shadow: 0 5px 15px #44351b0d;
    font-size: 25px;
}

.bee-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

    .bee-brand-copy strong {
        font-size: 25px;
        font-weight: 800;
        letter-spacing: -1px;
    }

    .bee-brand-copy small {
        margin-top: 5px;
        color: var(--bee-muted);
        font-size: 12px;
    }

.bee-topbar-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid #e5e9dd;
    border-radius: 30px;
    background: #ffffffad;
    color: var(--bee-forest);
    font-size: 12px;
    font-weight: 650;
}

.bee-status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #57a477;
}

/* Compact hero */
.bee-hero {
    position: relative;
    display: flex;
    min-height: 0;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    overflow: hidden;
    padding: 18px 30px;
    border: 1px solid #eee7d8;
    border-radius: 23px;
    background: radial-gradient(circle at 93% 12%, #f8e8bd88 0, transparent 24%), linear-gradient(115deg, #fffefa 0%, #f6f1e4 100%);
    box-shadow: 0 12px 36px #3a39200a;
}

    .bee-hero > div:first-child {
        position: relative;
        z-index: 1;
        max-width: 650px;
    }

.bee-eyebrow,
.bee-step-label {
    display: block;
    color: var(--bee-green);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.bee-hero h1 {
    margin: 6px 0;
    color: var(--bee-forest-dark);
    font-size: clamp(28px, 2.5vw, 35px);
    font-weight: 780;
    letter-spacing: -1.4px;
    line-height: 1.17;
}

.bee-hero p {
    max-width: 520px;
    margin: 0;
    color: #69766c;
    font-size: 13px;
    line-height: 1.5;
}

.bee-hero-art {
    position: relative;
    display: grid;
    width: 112px;
    height: 88px;
    flex: 0 0 112px;
    place-items: center;
}

.bee-hero-bee {
    z-index: 1;
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border: 1px solid #f0dfb5;
    border-radius: 23px;
    background: #fff9e9;
    box-shadow: 0 12px 25px #6c4e1514;
    font-size: 35px;
    animation: bee-float 4s ease-in-out infinite;
}

.bee-hero-orbit {
    position: absolute;
    width: 92px;
    height: 92px;
    border: 1px solid #d7dfc9;
    border-radius: 50%;
}

.bee-orbit-two {
    width: 112px;
    height: 70px;
    transform: rotate(-34deg);
    border-color: #e7d6ad;
}

.bee-hero-sparkle {
    position: absolute;
    top: 0;
    right: 0;
    color: #d7a84e;
    font-size: 21px;
    animation: bee-twinkle 3s ease-in-out infinite;
}

/* Main two-column workspace */
.bee-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr);
    align-items: stretch;
    gap: 18px;
    margin-top: 16px;
}

.bee-voice-card,
.bee-response-card {
    min-width: 0;
    min-height: 0;
    padding: 20px 22px;
    border: 1px solid var(--bee-border);
    border-radius: 23px;
    background: var(--bee-paper);
    box-shadow: 0 10px 30px #4b3b1808;
}

/* A bounded, equal-height desktop layout. The left card scrolls only if
   the available viewport is unusually short; its send button remains reachable. */
@media (min-width: 901px) {
    .bee-voice-card,
    .bee-response-card {
        height: clamp(430px, calc(100vh - 245px), 590px);
    }
}

.bee-voice-card {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d8e2d3 transparent;
}

.bee-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

    .bee-section-heading h2 {
        margin: 5px 0;
        color: var(--bee-text);
        font-size: 21px;
        font-weight: 750;
        letter-spacing: -0.7px;
        line-height: 1.3;
    }

    .bee-section-heading p {
        margin: 0;
        color: var(--bee-muted);
        font-size: 12px;
    }

.bee-heading-icon,
.bee-response-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 15px;
    background: var(--bee-mint);
    color: var(--bee-forest);
    font-size: 27px;
}

.bee-response-icon {
    background: #fff2d7;
    color: #b48732;
    font-size: 25px;
}

/* Language selector */
.bee-language-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 15px;
}

    .bee-language-control label {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #58675e;
        font-size: 12px;
        font-weight: 650;
    }

        .bee-language-control label span {
            color: var(--bee-green);
            font-size: 20px;
        }

    .bee-language-control select {
        width: auto;
        max-width: 58%;
        min-height: 41px;
        padding: 8px 34px 8px 12px;
        border: 1px solid #dedfd3;
        border-radius: 12px;
        outline: none;
        background: #fffefa;
        color: var(--bee-text);
        font-size: 12px;
        cursor: pointer;
    }

        .bee-language-control select:focus-visible {
            border-color: var(--bee-green);
            box-shadow: 0 0 0 3px #3d8c6c22;
        }

/* Microphone */
.bee-mic-area {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    padding: 14px 0 12px;
    text-align: center;
}

.bee-mic-halo {
    display: grid;
    width: 108px;
    height: 108px;
    place-items: center;
    border: 1px solid #e2eee1;
    border-radius: 50%;
    background: #f0f6ed;
    transition: background 220ms ease, box-shadow 220ms ease;
}

.bee-mic-halo-inner {
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    border: 7px solid #dfeee1;
    border-radius: 50%;
    background: #e8f2e8;
}

.bee-mic-button {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, #438f70, #286b53);
    box-shadow: 0 8px 18px #286b5333;
    color: white;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

    .bee-mic-button:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 12px 24px #286b5340;
    }

    .bee-mic-button:focus-visible,
    .bee-send-button:focus-visible,
    .bee-response-actions button:focus-visible,
    .bee-stop-listening:focus-visible {
        outline: 3px solid #d9b665;
        outline-offset: 4px;
    }

    .bee-mic-button:disabled {
        cursor: default;
        opacity: 0.85;
    }

    .bee-mic-button.is-active {
        background: linear-gradient(145deg, #b18c44, #92702e);
    }

.bee-mic-symbol {
    width: 32px;
    height: 32px;
}

.bee-spinner {
    font-size: 38px;
    animation: bee-spin 1.1s linear infinite;
}

.bee-mic-halo.is-listening {
    animation: bee-pulse 2s ease-out infinite;
}

.bee-mic-title {
    margin: 9px 0 4px;
    color: var(--bee-text);
    font-size: 15px;
    font-weight: 750;
}

.bee-mic-description {
    max-width: 290px;
    margin: 0;
    color: var(--bee-muted);
    font-size: 11px;
}

.bee-waveform {
    display: flex;
    width: min(100%, 220px);
    height: 20px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 8px 0;
    opacity: 0.65;
}

    .bee-waveform span {
        width: 3px;
        height: calc(5px + (var(--bar-index) % 5) * 4px);
        border-radius: 5px;
        background: #a4cbb0;
        transform-origin: center;
    }

    .bee-waveform.is-animated span {
        animation: bee-wave 750ms ease-in-out infinite alternate;
        animation-delay: calc(var(--bar-index) * -55ms);
    }

.bee-stop-listening {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 8px 16px;
    border: 1px solid #e8e5dc;
    border-radius: 12px;
    background: #f7f5ef;
    color: #566159;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
    transition: background 160ms ease;
}

    .bee-stop-listening:hover:not(:disabled) {
        background: #efebe1;
    }

    .bee-stop-listening:disabled {
        opacity: 0.48;
        cursor: not-allowed;
    }

/* Transcript and send action */
.bee-divider {
    flex: 0 0 auto;
    height: 1px;
    margin: 0 0 12px;
    background: #eeeae1;
}

.bee-transcript-heading {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

    .bee-transcript-heading label {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: var(--bee-text);
        font-size: 13px;
        font-weight: 750;
    }

.bee-label-icon {
    color: var(--bee-green);
    font-size: 20px;
}

.bee-edit-hint {
    padding: 4px 8px;
    border-radius: 7px;
    background: #f0f5eb;
    color: #55775c;
    font-size: 10px;
    font-weight: 700;
}

.bee-transcript {
    display: block;
    width: 100%;
    min-height: 68px;
    max-height: 110px;
    flex: 0 0 auto;
    padding: 11px 13px;
    resize: vertical;
    border: 1px solid #e2dfd3;
    border-radius: 14px;
    outline: none;
    background: #fffefa;
    color: var(--bee-text);
    font-size: 14px;
    line-height: 1.6;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

    .bee-transcript::placeholder {
        color: #a2a69b;
    }

    .bee-transcript:focus {
        border-color: #79a88b;
        box-shadow: 0 0 0 3px #3d8c6c18;
    }

.bee-transcript-footer {
    display: flex;
    flex: 0 0 auto;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    color: #92978d;
    font-size: 10px;
}

.bee-send-button {
    display: flex;
    width: 100%;
    min-height: 43px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 18px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(105deg, #286b53, #3d8c6c);
    box-shadow: 0 7px 15px #286b531c;
    color: white;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

    .bee-send-button svg {
        width: 19px;
        height: 19px;
    }

    .bee-send-button:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 10px 20px #286b5328;
    }

    .bee-send-button:disabled {
        opacity: 0.48;
        box-shadow: none;
        cursor: not-allowed;
    }

.bee-button-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff75;
    border-top-color: #fff;
    border-radius: 50%;
    animation: bee-spin 700ms linear infinite;
}

.bee-privacy-note {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 7px 0 2px;
    color: #90968b;
    font-size: 9px;
    text-align: center;
}

    .bee-privacy-note span {
        color: #bb9955;
    }

/* Response card: header and status remain fixed; content scrolls inside. */
.bee-response-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bee-response-heading {
    flex: 0 0 auto;
    padding-bottom: 14px;
    border-bottom: 1px solid #eeeae1;
}

.bee-empty-state {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    padding: 12px 6px;
    text-align: center;
}

.bee-empty-illustration {
    position: relative;
    display: grid;
    width: 110px;
    height: 105px;
    flex: 0 0 105px;
    place-items: center;
    margin: 0 auto 9px;
}

.bee-empty-sun {
    position: absolute;
    top: 7px;
    right: 10px;
    width: 75px;
    height: 75px;
    border: 1px solid #efdfba;
    border-radius: 50%;
    background: #fcf2d7;
}

.bee-empty-speech {
    z-index: 1;
    display: grid;
    width: 78px;
    height: 58px;
    place-items: center;
    border: 1px solid #dce8d8;
    border-radius: 19px 19px 19px 7px;
    background: #edf5e9;
    box-shadow: 0 10px 22px #304a2910;
    color: var(--bee-forest);
    font-size: 23px;
    letter-spacing: 5px;
    transform: translate(-6px, 7px);
}

.bee-empty-flower {
    position: absolute;
    right: 0;
    bottom: 8px;
    color: #b59b5e;
    font-size: 23px;
}

.bee-empty-state h3 {
    max-width: 270px;
    flex: 0 0 auto;
    margin: 0 0 8px;
    color: var(--bee-text);
    font-size: 16px;
    font-weight: 750;
    letter-spacing: -0.35px;
    line-height: 1.35;
}

.bee-empty-state > p {
    max-width: 290px;
    flex: 0 0 auto;
    margin: 0;
    color: var(--bee-muted);
    font-size: 12px;
    line-height: 1.6;
}

.bee-suggestion {
    display: flex;
    max-width: 100%;
    flex: 0 0 auto;
    align-items: flex-start;
    gap: 9px;
    margin-top: 14px;
    padding: 10px 11px;
    border: 1px solid #eee6d3;
    border-radius: 12px;
    background: #fcf8ec;
    color: #7b6841;
    font-size: 11px;
    text-align: left;
}

    .bee-suggestion span:first-child {
        color: #c09b4e;
    }

/* AI response and Markdig HTML */
.bee-chat-content {
    display: flex;
    flex: 1 1 auto;
    align-items: flex-start;
    min-width: 0;
    min-height: 0;
    gap: 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #c7d7c4 transparent;
    padding: 14px 2px 14px 0;
    animation: bee-appear 300ms ease both;
}

.bee-message-avatar {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #efdfb5;
    border-radius: 14px;
    background: #fcf2d7;
    font-size: 22px;
}

.bee-message-body,
.bee-message-bubble,
.bee-markdown-content {
    min-width: 0;
    max-width: 100%;
}

.bee-message-body {
    flex: 1 1 auto;
}

.bee-message-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 1px 0 10px;
}

    .bee-message-meta strong {
        color: var(--bee-text);
        font-size: 14px;
    }

    .bee-message-meta span {
        color: #96988d;
        font-size: 10px;
    }

.bee-message-bubble {
    padding: 14px;
    border: 1px solid #e2ebdd;
    border-radius: 5px 17px 17px 17px;
    background: linear-gradient(140deg, #edf5e9, #f4f6ec);
    overflow-wrap: anywhere;
}

.bee-markdown-content {
    color: #33483a;
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

    .bee-markdown-content > :first-child {
        margin-top: 0;
    }

    .bee-markdown-content > :last-child {
        margin-bottom: 0;
    }

    .bee-markdown-content p {
        margin: 0 0 12px;
        color: inherit;
        font-size: inherit;
        line-height: inherit;
        white-space: normal;
    }

    .bee-markdown-content h1,
    .bee-markdown-content h2,
    .bee-markdown-content h3,
    .bee-markdown-content h4 {
        margin: 15px 0 7px;
        color: #244f3d;
        font-weight: 750;
        line-height: 1.35;
    }

    .bee-markdown-content h1 {
        font-size: 1.2rem;
    }

    .bee-markdown-content h2 {
        font-size: 1.1rem;
    }

    .bee-markdown-content h3,
    .bee-markdown-content h4 {
        font-size: 1.02rem;
    }

    .bee-markdown-content ul,
    .bee-markdown-content ol {
        margin: 7px 0 13px;
        padding-left: 23px;
    }

    .bee-markdown-content li {
        margin: 4px 0;
        padding-left: 2px;
    }

        .bee-markdown-content li > p {
            margin-bottom: 4px;
        }

    .bee-markdown-content strong {
        color: #244f3d;
        font-weight: 750;
    }

    .bee-markdown-content em {
        font-style: italic;
    }

    .bee-markdown-content a {
        color: #286b53;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .bee-markdown-content blockquote {
        margin: 12px 0;
        padding: 10px 14px;
        border-left: 3px solid #83ad8a;
        border-radius: 0 9px 9px 0;
        background: #e9f2e6;
    }

        .bee-markdown-content blockquote p:last-child {
            margin-bottom: 0;
        }

    .bee-markdown-content pre {
        max-width: 100%;
        margin: 12px 0;
        padding: 12px;
        overflow-x: auto;
        border: 1px solid #e1e7d9;
        border-radius: 10px;
        background: #f4f5ed;
        color: #33483a;
        font-size: 12px;
        line-height: 1.6;
        white-space: pre;
    }

    .bee-markdown-content code {
        padding: 2px 5px;
        border-radius: 5px;
        background: #e8eee3;
        font-family: Consolas, "Courier New", monospace;
        font-size: 0.9em;
    }

    .bee-markdown-content pre code {
        padding: 0;
        background: transparent;
        font-size: inherit;
    }

    .bee-markdown-content hr {
        margin: 14px 0;
        border: 0;
        border-top: 1px solid #dce5d8;
    }

    .bee-markdown-content table {
        display: block;
        width: 100%;
        overflow-x: auto;
        border-collapse: collapse;
        font-size: 12px;
    }

    .bee-markdown-content th,
    .bee-markdown-content td {
        padding: 8px 10px;
        border: 1px solid #dfe6d9;
        text-align: left;
    }

    .bee-markdown-content th {
        background: #eaf2e5;
        color: #244f3d;
    }

.bee-response-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 14px;
}

    .bee-response-actions button {
        display: inline-flex;
        min-height: 39px;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 8px 12px;
        border: 1px solid transparent;
        border-radius: 11px;
        font-size: 11px;
        font-weight: 700;
        cursor: pointer;
        transition: background 160ms ease, opacity 160ms ease;
    }

        .bee-response-actions button svg {
            width: 17px;
            height: 17px;
        }

.bee-speak-button {
    background: #e5f1e4;
    color: var(--bee-forest);
}

    .bee-speak-button:hover:not(:disabled) {
        background: #d6e8d5;
    }

.bee-stop-speaking {
    border-color: #e7e3d9 !important;
    background: #faf8f2;
    color: #6f766d;
}

    .bee-stop-speaking:hover:not(:disabled) {
        background: #f0ede5;
    }

.bee-response-actions button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

.bee-response-status {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #eeeae1;
    color: #8b9187;
    font-size: 10px;
}

.bee-status-separator {
    color: #c6c7bd;
}

/* Errors and footer */
.bee-error {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 12px;
    padding: 13px 15px;
    border: 1px solid #f0d5d0;
    border-radius: 13px;
    background: #fff1ee;
    color: var(--bee-danger);
}

    .bee-error > span {
        display: grid;
        width: 22px;
        height: 22px;
        flex: 0 0 auto;
        place-items: center;
        border-radius: 50%;
        background: #f6d8d2;
        font-weight: 800;
    }

    .bee-error p {
        margin: 0;
        overflow-wrap: anywhere;
        font-size: 12px;
    }

.bee-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 17px 8px 4px;
    color: #91958a;
    font-size: 11px;
    text-align: center;
}

.bee-footer-mark {
    font-size: 17px;
}

.bee-footer-divider {
    color: #c7bda6;
}

/* Motion */
@keyframes bee-float {
    0%, 100% {
        transform: translateY(0) rotate(-3deg);
    }

    50% {
        transform: translateY(-5px) rotate(3deg);
    }
}

@keyframes bee-twinkle {
    0%, 100% {
        opacity: 0.65;
        transform: scale(0.92);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes bee-pulse {
    0% {
        box-shadow: 0 0 0 0 #77ae8050;
    }

    70% {
        box-shadow: 0 0 0 15px #77ae8000;
    }

    100% {
        box-shadow: 0 0 0 0 #77ae8000;
    }
}

@keyframes bee-wave {
    from {
        transform: scaleY(0.45);
    }

    to {
        transform: scaleY(1.25);
    }
}

@keyframes bee-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes bee-appear {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Short laptop viewport: compact the microphone before shrinking controls. */
@media (min-width: 901px) and (max-height: 800px) {
    .bee-voice-page {
        padding-top: 8px;
        padding-bottom: 6px;
    }

    .bee-topbar {
        margin-bottom: 12px;
    }

    .bee-hero {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .bee-workspace {
        margin-top: 12px;
    }

    .bee-voice-card,
    .bee-response-card {
        height: clamp(410px, calc(100vh - 205px), 520px);
        padding: 16px 20px;
    }

    .bee-language-control {
        margin-top: 10px;
    }

    .bee-mic-area {
        padding: 8px 0 7px;
    }

    .bee-mic-halo {
        width: 90px;
        height: 90px;
    }

    .bee-mic-halo-inner {
        width: 76px;
        height: 76px;
    }

    .bee-mic-button {
        width: 56px;
        height: 56px;
    }

    .bee-mic-title {
        margin-top: 6px;
    }

    .bee-waveform {
        height: 15px;
        margin: 4px 0;
    }

    .bee-transcript {
        min-height: 56px;
        max-height: 78px;
    }

    .bee-send-button {
        min-height: 39px;
        margin-top: 7px;
    }

    .bee-privacy-note {
        margin-top: 5px;
    }
}

/* Tablet: stack cards; bound the conversation independently. */
@media (max-width: 900px) {
    .bee-voice-page {
        padding: 22px 16px 16px;
    }

    .bee-hero {
        min-height: 0;
        padding: 24px 26px;
    }

    .bee-workspace {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        margin-top: 16px;
    }

    .bee-voice-card {
        height: auto;
        overflow: visible;
    }

    .bee-response-card {
        height: min(620px, 70vh);
        min-height: 390px;
    }

    .bee-empty-state {
        padding: 18px 8px;
    }
}

/* Mobile */
@media (max-width: 560px) {
    .bee-voice-page {
        padding: 13px 11px 12px;
        font-size: 14px;
    }

    .bee-topbar {
        margin-bottom: 14px;
        gap: 10px;
    }

    .bee-brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 24px;
    }

    .bee-brand-copy strong {
        font-size: 23px;
    }

    .bee-brand-copy small {
        font-size: 11px;
    }

    .bee-topbar-status {
        gap: 6px;
        padding: 8px 10px;
        font-size: 10px;
    }

    .bee-hero {
        align-items: center;
        gap: 8px;
        padding: 20px 17px;
        border-radius: 20px;
    }

    .bee-eyebrow {
        font-size: 9px;
        letter-spacing: 1.2px;
    }

    .bee-hero h1 {
        margin-top: 8px;
        font-size: 27px;
        letter-spacing: -0.9px;
    }

    .bee-hero p {
        max-width: 100%;
        font-size: 12px;
        line-height: 1.6;
    }

    .bee-hero-art {
        width: 62px;
        height: 75px;
        flex-basis: 62px;
        margin-right: -6px;
    }

    .bee-hero-bee {
        width: 48px;
        height: 48px;
        border-radius: 16px;
        font-size: 28px;
    }

    .bee-hero-orbit {
        width: 66px;
        height: 66px;
    }

    .bee-orbit-two {
        width: 74px;
        height: 46px;
    }

    .bee-hero-sparkle {
        font-size: 15px;
    }

    .bee-workspace {
        gap: 14px;
        margin-top: 14px;
    }

    .bee-voice-card,
    .bee-response-card {
        padding: 18px 15px;
        border-radius: 19px;
    }

    .bee-section-heading h2 {
        font-size: 20px;
    }

    .bee-section-heading p {
        font-size: 12px;
    }

    .bee-heading-icon,
    .bee-response-icon {
        width: 37px;
        height: 37px;
        border-radius: 13px;
    }

    .bee-language-control {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
        margin-top: 17px;
    }

        .bee-language-control select {
            width: 100%;
            max-width: none;
            min-height: 43px;
            font-size: 13px;
        }

    .bee-mic-area {
        padding: 22px 0 17px;
    }

    .bee-mic-halo {
        width: 116px;
        height: 116px;
    }

    .bee-mic-halo-inner {
        width: 96px;
        height: 96px;
        border-width: 8px;
    }

    .bee-mic-button {
        width: 68px;
        height: 68px;
    }

    .bee-mic-title {
        font-size: 15px;
    }

    .bee-mic-description {
        max-width: 260px;
        font-size: 11px;
    }

    .bee-waveform {
        margin: 11px 0;
    }

    .bee-transcript {
        min-height: 94px;
        max-height: 180px;
        font-size: 14px;
    }

    .bee-transcript-footer {
        font-size: 9px;
    }

    .bee-send-button {
        min-height: 46px;
    }

    .bee-response-card {
        height: 65vh;
        min-height: 390px;
    }

    .bee-response-heading {
        padding-bottom: 14px;
    }

    .bee-empty-illustration {
        width: 118px;
        height: 112px;
        flex-basis: 112px;
        margin-bottom: 10px;
    }

    .bee-empty-state h3 {
        font-size: 18px;
    }

    .bee-empty-state > p {
        font-size: 12px;
    }

    .bee-suggestion {
        font-size: 10px;
    }

    .bee-chat-content {
        gap: 9px;
        padding: 12px 1px;
    }

    .bee-message-avatar {
        width: 35px;
        height: 35px;
        border-radius: 11px;
        font-size: 19px;
    }

    .bee-message-bubble {
        padding: 11px;
    }

    .bee-markdown-content {
        font-size: 13px;
        line-height: 1.65;
    }

        .bee-markdown-content pre {
            font-size: 11px;
        }

    .bee-response-actions {
        gap: 7px;
    }

        .bee-response-actions button {
            flex: 1 1 auto;
            padding: 9px 10px;
            font-size: 10px;
        }

    .bee-response-status {
        align-items: flex-start;
        line-height: 1.6;
    }

    .bee-footer {
        padding-top: 15px;
        font-size: 10px;
    }
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
    .bee-voice-page *,
    .bee-voice-page *::before,
    .bee-voice-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
