/* WorkingAI 视觉规范：见仓库根目录 design.md。变量与组件类是全站唯一入口。 */
:root {
    --color-ink: #000000;
    --color-muted: #666666;
    --color-subtle: #8f8f8f;
    --color-bg: #ffffff;
    --color-bg-soft: #f1f1f1;
    --color-line: rgba(0, 0, 0, 0.12);
    --color-wash: rgba(0, 0, 0, 0.04);
    --color-danger: #b42318;
    --color-dark-bg: #0a0a0a;
    --color-dark-surface: #171717;
    --color-dark-line: rgba(255, 255, 255, 0.12);
    --color-dark-ink: #f5f5f5;
    --font-sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    --text-display: 48px;
    --text-heading: 28px;
    --text-subhead: 22px;
    --text-lead: 18px;
    --text-body: 17px;
    --text-ui: 16px;
    --text-label: 14px;
    --text-caption: 13px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --width-page: 1200px;
    --width-prose: 720px;
    --radius-card: 6px;
    --radius-pill: 9999px;
    --shadow-menu: 0 8px 24px rgba(0, 0, 0, 0.06);
}

html {
    overflow-x: clip;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-body);
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: -0.01em;
    color: var(--color-ink);
    background: var(--color-bg);
    overflow-x: clip;
}

a {
    color: inherit;
}

.type-display {
    font-size: var(--text-display);
    font-weight: 500;
    line-height: 1.16;
    letter-spacing: -0.03em;
}

.type-heading {
    font-size: var(--text-heading);
    font-weight: 500;
    line-height: 1.21;
    letter-spacing: 0.01em;
}

.type-subhead {
    font-size: var(--text-subhead);
    font-weight: 500;
    line-height: 1.26;
    letter-spacing: -0.01em;
}

.type-lead {
    font-size: var(--text-lead);
    font-weight: 400;
    line-height: 1.45;
    color: var(--color-muted);
}

.type-label {
    font-size: var(--text-label);
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-muted);
}

.type-caption {
    font-size: var(--text-caption);
    font-weight: 500;
    line-height: 1.51;
    color: var(--color-subtle);
}

.site-main {
    width: min(var(--width-page), 100%);
    margin: 0 auto;
    padding: var(--space-12) var(--space-6) var(--space-20);
}

main h1 {
    font-size: var(--text-heading);
    font-weight: 500;
    line-height: 1.21;
    letter-spacing: 0.01em;
}

.nav-account .btn-ghost {
    display: inline-flex;
    min-height: 2.25rem;
    width: auto;
}

.oa-hero {
    max-width: 40rem;
    padding: var(--space-8) 0 var(--space-16);
}

.oa-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-8);
}

.oa-section {
    margin-top: var(--space-16);
}

.oa-section-head {
    margin-bottom: var(--space-6);
}

.oa-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

.oa-card {
    display: block;
    background: var(--color-bg);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-card);
    padding: var(--space-5) var(--space-6);
    box-shadow: none;
    transition: background 0.15s ease;
}

a.oa-card:hover {
    background: var(--color-wash);
}

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.62rem 1.15rem;
    border-radius: var(--radius-pill);
    font-size: var(--text-label);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.2;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-ink);
    color: var(--color-bg);
}

.btn-primary:hover {
    background: #171717;
    color: var(--color-bg);
}

.btn-ghost {
    background: transparent;
    color: var(--color-ink);
    border-color: var(--color-line);
}

.btn-ghost:hover {
    background: var(--color-wash);
}

.site-footer {
    border-top: 1px solid var(--color-line);
    background: var(--color-bg);
}

.footer-inner {
    width: min(var(--width-page), 100%);
    margin: 0 auto;
    padding: var(--space-16) var(--space-6) var(--space-12);
    display: grid;
    gap: var(--space-10);
}

.footer-brand {
    font-size: var(--text-label);
    font-weight: 500;
}

.footer-copy {
    margin-top: var(--space-2);
    font-size: var(--text-caption);
    color: var(--color-subtle);
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-8);
}

.footer-nav h2 {
    font-size: var(--text-caption);
    font-weight: 500;
    color: var(--color-ink);
    margin-bottom: var(--space-3);
}

.footer-nav a {
    display: block;
    font-size: var(--text-caption);
    font-weight: 400;
    color: var(--color-muted);
    padding: 0.2rem 0;
}

.footer-nav a:hover {
    color: var(--color-ink);
}

main input[type="text"],
main input[type="email"],
main input[type="password"],
main input[type="search"],
main input[type="url"],
main input[type="number"],
main select {
    border: 1px solid var(--color-line) !important;
    border-radius: var(--radius-pill) !important;
    background: var(--color-bg) !important;
    color: var(--color-ink);
    padding: 0.65rem 1rem !important;
    font-size: var(--text-ui);
    line-height: 1.5;
}

main textarea {
    border: 1px solid var(--color-line) !important;
    border-radius: 8px !important;
    background: var(--color-bg) !important;
    color: var(--color-ink);
    padding: 0.75rem 1rem !important;
    font-size: var(--text-ui);
    line-height: 1.5;
}

main input:focus,
main select:focus,
main textarea:focus {
    outline: none;
    border-color: var(--color-ink) !important;
    box-shadow: none;
}

main label {
    font-size: var(--text-label);
    font-weight: 500;
    color: var(--color-muted);
}

main button[type="submit"],
main .bg-neutral-900 {
    background: var(--color-ink) !important;
    color: var(--color-bg) !important;
    border: 0 !important;
    border-radius: var(--radius-pill) !important;
    font-weight: 500;
    box-shadow: none !important;
}

main .border.rounded,
main .border.rounded-lg,
main .rounded.border,
main .rounded-lg.border {
    border-color: var(--color-line) !important;
    border-radius: var(--radius-card) !important;
    box-shadow: none !important;
}

@media (min-width: 640px) {
    .oa-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .footer-inner {
        grid-template-columns: 1.2fr 2fr;
        align-items: start;
    }

    .footer-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    :root {
        --text-display: 32px;
        --text-heading: 24px;
    }

    .site-main {
        padding: var(--space-8) var(--space-4) var(--space-16);
    }
}

img,
video,
canvas,
svg,
iframe {
    max-width: 100%;
}

input,
select,
textarea,
button {
    font-size: 16px;
    max-width: 100%;
}

#tour-stage:fullscreen,
#tour-stage:-webkit-full-screen {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
    background: #0a0a0a;
}

#tour-stage:fullscreen #tour-root,
#tour-stage:-webkit-full-screen #tour-root {
    width: 100%;
    height: 100%;
}

#tour-stage canvas {
    display: block;
}

.note-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e5e5;
}

.note-toolbar button {
    border: 1px solid #d4d4d4;
    background: #fff;
    border-radius: 0.375rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.note-record.is-recording,
.vditor-toolbar .note-record.is-recording {
    background: #b91c1c !important;
    color: #fff !important;
    animation: note-record-pulse 1.2s ease-in-out infinite;
}

.note-record-time {
    align-self: center;
    margin: 0 0.35rem 0 0.15rem;
    color: #b91c1c;
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
}

.note-record-time.hidden {
    display: none;
}

@keyframes note-record-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.72; }
}

.note-editor {
    flex: 1;
    min-height: 420px;
    padding: 0.75rem 0.9rem;
    border: 1px solid #d4d4d4;
    border-radius: 0.5rem;
    background: #fff;
    overflow: auto;
    font-size: 1rem;
    line-height: 1.75;
}

.note-editor:focus {
    outline: 2px solid #171717;
    outline-offset: 1px;
}

.note-editor:empty::before {
    content: attr(data-placeholder);
    color: #a3a3a3;
}

.note-editor img,
.note-editor video {
    max-width: 100%;
    height: auto;
}

.note-editor audio {
    width: 100%;
}

.note-editor table {
    border-collapse: collapse;
    width: 100%;
    margin: 0.75rem 0;
}

.note-editor th,
.note-editor td {
    border: 1px solid #d4d4d4;
    padding: 0.4rem 0.6rem;
}

.note-editor iframe {
    max-width: 100%;
    width: 560px;
    height: 315px;
    border: 0;
}

.note-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 1rem;
}

.note-modal.hidden {
    display: none;
}

.note-modal-card {
    width: min(28rem, 100%);
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.vditor .vditor-reset ul {
    list-style: disc;
    padding-left: 1.5em;
}

.vditor .vditor-reset ol {
    list-style: decimal;
    padding-left: 1.5em;
}

.vditor .vditor-reset pre {
    overflow: auto;
}

.vditor audio,
.vditor video {
    max-width: 100%;
}

.vditor {
    max-width: 100%;
}

.article-body img,
.article-body video,
.article-body iframe,
.article-body table {
    max-width: 100%;
    height: auto;
}

.article-body pre,
.article-body table {
    overflow-x: auto;
    display: block;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    padding-top: env(safe-area-inset-top);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
}

.header-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: min(var(--width-page), 100%);
    margin: 0 auto;
    padding: 0.9rem max(1.5rem, env(safe-area-inset-right)) 0.9rem max(1.5rem, env(safe-area-inset-left));
    min-height: 64px;
}

.site-logo {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--color-ink);
    text-decoration: none;
}

.logo-full {
    display: none;
}

.logo-short {
    display: inline;
}

.nav-toggle {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-pill);
    background: var(--color-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 1.1rem;
    height: 2px;
    background: var(--color-ink);
    position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-bars::before {
    top: -6px;
}

.nav-toggle-bars::after {
    top: 6px;
}

.site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.25rem 0 0.5rem;
    border-top: 1px solid var(--color-line);
    font-size: 17px;
    font-weight: 400;
    color: var(--color-muted);
}

.site-header.is-open .site-nav {
    display: flex;
}

.site-nav > a,
.nav-drop-title,
.nav-account a,
.nav-account button {
    min-height: 2.75rem;
    display: flex;
    align-items: center;
}

.nav-account {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding-top: 0.35rem;
    margin-top: 0.35rem;
    border-top: 1px solid var(--color-line);
}

.nav-email {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    padding: 0.35rem 0;
}

.nav-drop {
    position: relative;
}

.nav-drop-panel {
    display: block;
    position: static;
    padding: 0 0 0.25rem 0.85rem;
}

.nav-drop-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.nav-drop-card a {
    display: flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0.35rem 0;
    border-radius: 0.375rem;
    white-space: normal;
}

.play-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.play-tabs a {
    border: 1px solid var(--color-line);
    background: var(--color-bg);
    border-radius: var(--radius-pill);
    padding: 0.45rem 0.85rem;
    font-size: var(--text-caption);
    font-weight: 500;
}

.play-tabs a.is-active {
    background: var(--color-ink);
    border-color: var(--color-ink);
    color: var(--color-bg);
}

.sim-stage {
    width: 100%;
    height: min(560px, 70dvh);
}

.sim-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: end;
}

.sim-controls > div {
    min-width: 0;
}

.tour-touch {
    display: none;
}

.hint-mobile {
    display: none;
}

.hint-desktop {
    display: inline;
}

@media (min-width: 768px) {
    .header-bar {
        flex-wrap: nowrap;
        padding: 0.85rem 1.5rem;
    }

    .logo-full {
        display: inline;
    }

    .logo-short {
        display: none;
    }

    .nav-toggle {
        display: none;
    }

    .site-nav {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        width: auto;
        gap: 1.35rem;
        padding: 0;
        border-top: 0;
        font-size: 14px;
        font-weight: 500;
    }

    .site-header.is-open .site-nav {
        display: flex;
    }

    .site-nav > a,
    .nav-drop-title,
    .nav-account a,
    .nav-account button {
        min-height: 0;
        display: inline;
    }

    .nav-account {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        padding: 0;
        margin: 0;
        border: 0;
    }

    .nav-drop-panel {
        display: none;
        position: absolute;
        top: calc(100% - 0.15rem);
        left: 0;
        min-width: 11.5rem;
        padding-top: 0.55rem;
        z-index: 50;
    }

    .nav-drop:hover .nav-drop-panel,
    .nav-drop:focus-within .nav-drop-panel {
        display: block;
    }

    .nav-drop-card {
        background: var(--color-bg);
        border: 1px solid var(--color-line);
        border-radius: var(--radius-card);
        box-shadow: var(--shadow-menu);
        padding: 0.35rem;
    }

    .nav-drop-card a {
        display: block;
        min-height: 0;
        padding: 0.45rem 0.7rem;
        white-space: nowrap;
    }

    .nav-drop-card a:hover {
        background: var(--color-wash);
        color: var(--color-ink);
    }
}

@media (max-width: 767px) {
    .sim-stage {
        height: min(420px, 55dvh);
    }

    .sim-controls > div {
        flex: 1 1 100%;
    }

    .sim-controls select,
    .sim-controls input[type="range"] {
        width: 100%;
    }

    #tour-minimap {
        width: 84px;
        height: 84px;
        top: 0.5rem;
        right: 0.5rem;
    }

    .tour-touch {
        display: grid;
        grid-template-columns: repeat(3, 2.6rem);
        grid-template-rows: repeat(3, 2.6rem);
        gap: 0.35rem;
        position: absolute;
        left: 0.6rem;
        bottom: 0.6rem;
        z-index: 12;
        pointer-events: auto;
    }

    .tour-touch button {
        border: 0;
        border-radius: 0.55rem;
        background: rgba(0, 0, 0, 0.55);
        color: #fff;
        font-size: 0.75rem;
    }

    .tour-touch button[data-tour-key="jump"] {
        grid-column: 1 / -1;
    }

    .hint-desktop {
        display: none;
    }

    .hint-mobile {
        display: inline;
    }

    .vditor-toolbar {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .note-list-pane {
        max-height: 11rem;
    }
}

#tour-root canvas,
#g3d-root canvas,
#gravity-canvas {
    touch-action: none;
}

#tour-stage:fullscreen .tour-touch,
#tour-stage:-webkit-full-screen .tour-touch {
    display: none;
}

@media (max-width: 767px) {
    #tour-stage:fullscreen .tour-touch,
    #tour-stage:-webkit-full-screen .tour-touch {
        display: grid;
    }
}

.chatbot-body {
    background: var(--color-dark-bg);
    color: var(--color-dark-ink);
}
.chatbot-body .site-header {
    background: rgba(10, 10, 10, 0.92);
    border-bottom-color: var(--color-dark-line);
}
.chatbot-body .site-logo,
.chatbot-body .site-nav a,
.chatbot-body .site-nav button,
.chatbot-body .nav-email {
    color: #d4d4d8;
}
.chatbot-body .site-footer {
    display: none;
}
.chatbot-body .nav-toggle {
    border-color: var(--color-dark-line);
    background: transparent;
}
.chatbot-body .nav-toggle-bars,
.chatbot-body .nav-toggle-bars::before,
.chatbot-body .nav-toggle-bars::after {
    background: var(--color-dark-ink);
}
.chatbot-main {
    max-width: none;
    margin: 0;
    padding: 0;
}
.chatbot-app {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - 57px);
}
.chat-sidebar {
    background: var(--color-dark-bg);
    border-right: 1px solid var(--color-dark-line);
    padding: 1rem 0.85rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.chat-sidebar-head {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.chat-new {
    flex: 1;
    background: #f4f4f5;
    color: #111;
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font-size: 0.875rem;
}
.chat-list {
    margin-top: 0.9rem;
    overflow-y: auto;
    flex: 1;
}
.chat-list button {
    width: 100%;
    text-align: left;
    color: #d4d4d8;
    padding: 0.55rem 0.7rem;
    border-radius: 0.7rem;
    font-size: 0.875rem;
}
.chat-list button.is-active,
.chat-list button:hover {
    background: var(--color-dark-surface);
}
.chat-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--color-dark-bg);
}
.chat-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem 0;
}
.chat-model {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    color: #a1a1aa;
}
.chat-model select {
    background: #18181f;
    color: #f4f4f5;
    border: 1px solid #2e2e3a;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    max-width: 16rem;
}
.chat-mode,
.chat-icon-btn {
    border: 1px solid #2e2e3a;
    background: #18181f;
    color: #e4e4e7;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
}
.chat-icon-btn {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
}
.voice-pane {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 1rem 1.5rem;
    min-height: 0;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
.voice-status {
    color: #a1a1aa;
    font-size: 0.95rem;
    min-height: 1.4em;
}
.voice-orb {
    width: min(22rem, 78vw);
    height: min(22rem, 78vw);
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}
.voice-orb canvas {
    width: 100%;
    height: 100%;
    display: block;
}
.voice-orb.is-listening canvas,
.voice-orb.is-speaking canvas {
    filter: saturate(1.25);
}
.voice-captions {
    min-height: 4.5rem;
    max-height: 8rem;
    overflow-y: auto;
    width: min(36rem, 92vw);
    text-align: center;
    color: #e4e4e7;
    font-size: 1.05rem;
    line-height: 1.6;
    cursor: pointer;
}
.voice-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1rem;
}
.voice-talk {
    min-width: 9.5rem;
    min-height: 3rem;
    background: #fafafa;
    color: #111;
    border: 0;
    border-radius: 999px;
    padding: 0.85rem 1.4rem;
    font-size: 0.95rem;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}
.voice-talk-label {
    pointer-events: none;
    display: inline-block;
}
.voice-talk.is-hot {
    background: #ef4444;
    color: #fff;
}
.voice-replay {
    min-height: 3rem;
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    border: 1px solid var(--color-dark-line);
    background: transparent;
    color: var(--color-dark-ink);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.voice-replay:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.06);
}
.voice-replay:disabled {
    color: var(--color-subtle);
    opacity: 0.55;
    cursor: not-allowed;
}
.voice-player {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.voice-hint,
.chat-status {
    color: #71717a;
    font-size: 0.75rem;
    text-align: center;
    margin-top: 0.75rem;
    max-width: 28rem;
}
.text-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0.5rem 1rem 1rem;
}
.text-thread {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem 0 1rem;
}
.text-bubble {
    max-width: min(40rem, 92%);
    padding: 0.75rem 1rem;
    border-radius: 1.1rem;
    line-height: 1.6;
    white-space: pre-wrap;
}
.text-bubble.user {
    align-self: flex-end;
    background: #27273a;
}
.text-bubble.assistant {
    align-self: flex-start;
    background: #15151f;
    border: 1px solid #2a2a38;
}
.text-msg {
    align-self: flex-start;
    max-width: min(40rem, 92%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}
.text-msg .text-bubble {
    max-width: 100%;
}
.text-speak {
    border: 1px solid var(--color-dark-line);
    background: transparent;
    color: var(--color-dark-ink);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.text-speak:hover {
    background: rgba(255, 255, 255, 0.06);
}
.text-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-end;
}
.text-form textarea {
    flex: 1 1 12rem;
    min-height: 2.8rem;
    max-height: 8rem;
    background: #15151f;
    color: #f4f4f5;
    border: 1px solid #2e2e3a;
    border-radius: 1rem;
    padding: 0.7rem 0.9rem;
    resize: none;
}
.text-form button[type="submit"] {
    background: #fafafa;
    color: #111;
    border-radius: 999px;
    padding: 0.65rem 1.1rem;
}
.text-replay {
    min-height: 2.8rem;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--color-dark-line);
    background: transparent;
    color: var(--color-dark-ink);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.text-replay:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.06);
}
.text-replay:disabled {
    color: var(--color-subtle);
    opacity: 0.55;
    cursor: not-allowed;
}
#chat-sidebar-open,
#chat-sidebar-close {
    display: none;
}
.hidden {
    display: none !important;
}
@media (max-width: 767px) {
    .chatbot-app {
        grid-template-columns: 1fr;
    }
    .chat-sidebar {
        position: fixed;
        inset: 57px auto 0 0;
        width: min(84vw, 20rem);
        z-index: 30;
        transform: translateX(-105%);
        transition: transform 0.2s ease;
    }
    .chatbot-app.sidebar-open .chat-sidebar {
        transform: none;
    }
    #chat-sidebar-open,
    #chat-sidebar-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .chat-model {
        margin-left: 0;
        flex: 1;
    }
    .chat-model select {
        width: 100%;
    }
}
