:root {
  color-scheme: dark;
  --bg: #131419;
  --sidebar: #191b20;
  --surface: #1e2026;
  --surface-raised: #252832;
  --surface-hover: #292d37;
  --line: #30333c;
  --line-soft: #272a31;
  --text: #e4e6eb;
  --muted: #a4a9b5;
  --dim: #777e8c;
  --accent: #a8c7fa;
  --accent-strong: #c0d6ff;
  --accent-wash: #26364d;
  --green: #81c995;
  --red: #f2a6a0;
  --sans: Inter, "Google Sans", Roboto, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  --radius: 12px;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { overflow: hidden; background: var(--bg); color: var(--text); font: 14px/1.5 var(--sans); }
button, a, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.grain { display: none; }

.app-shell { width: 100%; max-width: 1800px; height: 100dvh; margin: 0 auto; display: grid; grid-template-columns: 252px minmax(0, 1fr); background: var(--bg); }
.sidebar { z-index: 30; display: flex; flex-direction: column; min-height: 0; padding: 20px 14px 12px; background: var(--sidebar); border-right: 1px solid var(--line-soft); }
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 24px; color: inherit; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 12px; background: #29374a; color: #d7e5ff; font-weight: 700; letter-spacing: -1px; box-shadow: inset 0 0 0 1px #44566d; }
.brand-mark span { color: #8ab4f8; }
.brand-copy { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.brand-copy strong { font-size: 13px; font-weight: 650; letter-spacing: .1px; }
.brand-copy small { color: var(--dim); font-size: 10px; letter-spacing: .7px; }
.new-chat { height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid #3b414c; border-radius: 22px; background: #262932; color: var(--text); text-align: left; cursor: pointer; transition: background .16s, border-color .16s; }
.new-chat:hover { background: #303540; border-color: #555e6e; }
.new-chat > i { color: var(--accent); font-size: 13px; }
.new-chat span { font-size: 12px; font-weight: 600; }
.new-chat kbd { margin-left: auto; color: var(--dim); font: 10px var(--mono); }
.side-label { margin: 25px 10px 9px; color: var(--dim); font-size: 10px; font-weight: 600; letter-spacing: .75px; }
.side-nav { display: grid; gap: 3px; }
.nav-item { min-height: 39px; display: flex; align-items: center; gap: 11px; padding: 0 11px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); text-align: left; cursor: pointer; transition: background .16s, color .16s; }
.nav-item > i { width: 16px; text-align: center; color: var(--dim); font-size: 13px; }
.nav-item:hover { background: #23262d; color: var(--text); }
.nav-item.active { background: #26364a; color: #d6e5ff; }
.nav-item.active > i { color: var(--accent); }
.live-dot { display: inline-block; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--green); }
.nav-item .live-dot { margin-left: auto; }
.recent-label { margin-top: 25px; }
.history-list { max-height: 230px; overflow: auto; }
.history-empty { padding: 9px 10px; color: var(--dim); font-size: 11px; line-height: 1.6; }
.history-entry { width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); text-align: left; font-size: 11px; cursor: pointer; }
.history-entry i { color: var(--dim); }
.history-entry span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.history-entry:hover { background: #23262d; color: var(--text); }
.sidebar-spacer { flex: 1; min-height: 14px; }
.projects-card { padding: 0 2px 9px; border-bottom: 1px solid var(--line-soft); }
.projects-card .side-label { margin: 14px 8px 8px; }
.project-link { display: flex; align-items: center; gap: 9px; padding: 8px 6px; border-radius: 8px; color: inherit; text-decoration: none; }
.project-link:hover { background: #24272e; }
.project-icon { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 9px; background: #252a33; color: var(--accent); font-size: 11px; }
.project-link > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.project-link strong { font-size: 11px; font-weight: 600; }
.project-link small { color: var(--dim); font-size: 10px; }
.project-link .external { margin-left: auto; color: var(--dim); font-size: 9px; }
.sidebar-footer { display: flex; align-items: center; gap: 8px; padding: 15px 8px 3px; color: var(--dim); font-size: 10px; }
.status-led { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.footer-version { margin-left: auto; color: #626978; font: 9px var(--mono); }

.main-panel { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); }
.topbar { z-index: 2; height: 64px; flex: 0 0 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(18px, 3.5vw, 46px); border-bottom: 1px solid var(--line-soft); background: rgba(19, 20, 25, .96); }
.topbar-title { display: flex; min-width: 0; flex-direction: column; gap: 1px; }
.eyebrow { color: var(--dim); font-size: 10px; font-weight: 500; letter-spacing: .45px; }
.page-title { font-size: 14px; font-weight: 600; }
.title-divider { margin: 0 5px; color: #646b77; }
.muted-title { color: var(--muted); font-weight: 400; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.model-badge { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 20px; background: #1d2026; color: var(--muted); font-size: 10px; white-space: nowrap; }
.model-badge .live-dot { width: 6px; height: 6px; }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.icon-button:hover { background: #272a31; color: var(--text); }
.menu-toggle { display: none; }

.conversation { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; scroll-behavior: smooth; padding: 0 clamp(16px, 4vw, 64px); }
.welcome { width: min(800px, 100%); margin: clamp(36px, 8vh, 86px) auto 42px; animation: fade-up .35s ease both; }
.welcome-rule { display: none; }
.welcome-emblem { width: 42px; height: 42px; display: grid; place-items: center; margin: 0 0 24px; border: 1px solid #41516a; border-radius: 15px; background: #202c3d; color: #cfe0ff; font-weight: 650; letter-spacing: -1px; }
.welcome-emblem i { display: none; }
.welcome-kicker { margin: 0 0 10px; color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .35px; }
.welcome h1 { max-width: 650px; margin: 0; color: #e8eaf0; font-size: clamp(32px, 4.5vw, 46px); font-weight: 500; line-height: 1.18; letter-spacing: -1.6px; }
.welcome h1 em { color: #a8c7fa; font-style: normal; }
.welcome-description { max-width: 570px; margin: 16px 0 26px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.prompt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 700px; }
.prompt-card { min-height: 73px; display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: #1b1d23; text-align: left; cursor: pointer; transition: background .16s, border-color .16s, transform .16s; }
.prompt-card:hover { transform: translateY(-1px); border-color: #4c5c73; background: #222731; }
.prompt-icon { width: 33px; height: 33px; flex: 0 0 33px; display: grid; place-items: center; border-radius: 10px; background: #242a34; color: var(--accent); font-size: 12px; }
.prompt-card:nth-child(2) .prompt-icon { color: #b7c4f7; }
.prompt-card:nth-child(3) .prompt-icon { color: #a8d7ce; }
.prompt-card:nth-child(4) .prompt-icon { color: #d4b9f5; }
.prompt-card > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.prompt-card strong { color: var(--text); font-size: 12px; font-weight: 600; }
.prompt-card small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.prompt-arrow { margin-left: auto; color: #737c8c; font-size: 10px; }
.welcome-footnote { display: flex; align-items: center; gap: 8px; margin: 19px 0 0; color: var(--dim); font-size: 10px; }
.welcome-footnote i { color: var(--green); }

.message-list { width: min(850px, 100%); margin: 26px auto 32px; display: flex; flex-direction: column; gap: 25px; }
.message { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; animation: fade-up .18s ease both; }
.message.user { grid-template-columns: minmax(0, 1fr) 30px; }
.message.user .avatar { grid-column: 2; grid-row: 1; }
.message.user .message-content { grid-column: 1; grid-row: 1; justify-self: end; max-width: min(680px, 100%); padding: 12px 16px; border: 1px solid #39485e; border-radius: 18px 18px 5px 18px; background: #252b35; }
.avatar { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid #384150; border-radius: 50%; background: #222731; color: var(--accent); font-size: 9px; font-weight: 700; }
.message.user .avatar { border-color: #39475b; background: #252b35; color: #cbd6e7; }
.message-content { min-width: 0; }
.message-body { min-width: 0; color: #d9dce3; font-size: 14px; line-height: 1.78; overflow-wrap: anywhere; }
.message-meta { display: flex; align-items: center; gap: 8px; margin: 0 0 7px; color: var(--dim); font-size: 10px; }
.message.user .message-meta { justify-content: flex-end; margin-bottom: 5px; }
.message-meta .role { color: #c5d8f8; font-weight: 600; }
.message-tools { display: flex; gap: 6px; margin-top: 9px; opacity: 0; transition: opacity .14s; }
.message:hover .message-tools, .message:focus-within .message-tools { opacity: 1; }
.tool-button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #8e96a5; font-size: 10px; cursor: pointer; }
.tool-button:hover { border-color: var(--line); background: #20232a; color: var(--text); }
.message-body p { margin: 0 0 12px; }
.message-body p:last-child { margin-bottom: 0; }
.message-body h1, .message-body h2, .message-body h3, .message-body h4 { margin: 22px 0 10px; color: #eef0f5; font-weight: 600; line-height: 1.35; letter-spacing: -.25px; }
.message-body h1 { font-size: 27px; }
.message-body h2 { font-size: 22px; }
.message-body h3 { font-size: 18px; }
.message-body h4 { font-size: 15px; }
.message-body ul, .message-body ol { margin: 9px 0 15px; padding-left: 23px; }
.message-body li { margin: 5px 0; padding-left: 3px; }
.message-body li::marker { color: #a8c7fa; }
.message-body blockquote { margin: 13px 0; padding: 3px 0 3px 14px; border-left: 2px solid #819fc7; color: #b0b8c6; }
.message-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.message-body strong { color: #eef0f5; font-weight: 650; }
.message-body em { color: #c8d3e4; }
.message-body hr { height: 1px; margin: 20px 0; border: 0; background: var(--line); }
.message-body :not(pre) > code { padding: 2px 5px; border: 1px solid #343c49; border-radius: 5px; background: #222731; color: #c7d9f7; font: .9em var(--mono); overflow-wrap: anywhere; }
.code-card { width: 100%; max-width: 100%; min-width: 0; margin: 13px 0 16px; overflow: hidden; border: 1px solid #343944; border-radius: 11px; background: #17191f; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 41px; padding: 7px 12px; border-bottom: 1px solid #30343d; background: #20232b; }
.code-language { color: #b9c7dd; font: 10px var(--mono); text-transform: lowercase; }
.code-copy { display: inline-flex; align-items: center; gap: 6px; padding: 5px 7px; border: 0; border-radius: 6px; background: transparent; color: #a3aab7; font-size: 10px; cursor: pointer; }
.code-copy:hover { background: #30343e; color: var(--text); }
.code-card pre { display: block; max-width: 100%; min-width: 0; margin: 0; padding: 15px; overflow-x: auto; overflow-y: hidden; white-space: pre; tab-size: 4; color: #d6dae3; font: 12px/1.7 var(--mono); -webkit-overflow-scrolling: touch; }
.code-card pre code { display: block; width: max-content; min-width: 100%; font: inherit; }
.table-wrap { max-width: 100%; margin: 12px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; }
.message-body table { width: 100%; border-collapse: collapse; font-size: 12px; }
.message-body th, .message-body td { min-width: 100px; padding: 9px 11px; border-bottom: 1px solid var(--line); text-align: left; }
.message-body th { background: #22252d; color: #dce4f2; font-weight: 600; }
.message-body tr:last-child td { border-bottom: 0; }
.message.error .message-body { color: #f1b6b0; }
.message.error .message-meta .role { color: var(--red); }

.composer-area { z-index: 2; flex: 0 0 auto; padding: 10px clamp(16px, 4vw, 64px) calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(19,20,25,.94), #131419 30%); }
.composer { width: min(850px, 100%); margin: 0 auto; padding: 9px 10px 8px 17px; border: 1px solid #414650; border-radius: 23px; background: #202228; box-shadow: 0 2px 8px #00000018; transition: border-color .16s, box-shadow .16s, background .16s; }
.composer:focus-within { border-color: #7188aa; background: #22252b; box-shadow: 0 0 0 2px #a8c7fa12; }
.composer textarea { display: block; width: 100%; min-height: 37px; max-height: 180px; resize: none; padding: 9px 5px 7px; border: 0; outline: 0; background: transparent; color: var(--text); font: 14px/1.55 var(--sans); }
.composer textarea::placeholder { color: #8d94a1; }
.composer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 0 0 3px; }
.composer-hint { color: #858c99; font-size: 10px; }
.composer-hint kbd { padding: 2px 5px; border: 1px solid #414550; border-radius: 4px; background: #2a2d34; color: #b5bbc6; font: 9px var(--mono); }
.hint-separator { padding: 0 4px; color: #666d79; }
.composer-actions { display: flex; align-items: center; gap: 11px; }
.char-count { color: #818895; font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.send-button { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #a8c7fa; color: #1b2739; cursor: pointer; transition: background .15s, transform .15s; }
.send-button:hover { background: #c4d9ff; transform: translateY(-1px); }
.send-button:disabled { cursor: default; opacity: .75; }
.disclaimer { margin: 8px auto 0; color: #777e8b; text-align: center; font-size: 10px; }
.typing-status { display: inline-flex; align-items: center; gap: 9px; color: #a7b7cc; font-size: 11px; }
.typing-pulse { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--accent); animation: pulse 1s ease-in-out infinite; }
.stream-cursor { display: inline-block; width: 6px; height: 16px; margin-left: 3px; vertical-align: -3px; border-radius: 2px; background: var(--accent); animation: blink .8s steps(2, start) infinite; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 24px; max-width: calc(100vw - 30px); padding: 11px 15px; transform: translate(-50%, 10px); border: 1px solid #414650; border-radius: 10px; background: #252830; color: var(--text); font-size: 12px; box-shadow: 0 8px 30px #0005; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
.toast.visible { transform: translate(-50%, 0); opacity: 1; }
.mobile-scrim { display: none; }
.about-dialog { width: min(440px, calc(100vw - 30px)); position: relative; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: #202229; color: var(--text); box-shadow: 0 20px 70px #0008; }
.about-dialog::backdrop { background: #05070bb8; backdrop-filter: blur(3px); }
.dialog-close { position: absolute; top: 12px; right: 12px; }
.about-dialog h2 { margin: 15px 0 10px; font-size: 24px; font-weight: 600; letter-spacing: -.5px; }
.about-dialog p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.dialog-divider { height: 1px; margin: 20px 0; background: var(--line); }
.about-dialog .dialog-small { color: #9199a7; font-size: 10px; }
.dialog-small i { margin-right: 6px; color: var(--green); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@keyframes fade-up { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink { to { visibility: hidden; } }
@keyframes pulse { 50% { opacity: .35; transform: scale(.82); } }

@media (min-width: 1500px) { .app-shell { grid-template-columns: 270px minmax(0, 1fr); } }
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 224px minmax(0, 1fr); }
  .sidebar { padding-right: 11px; padding-left: 11px; }
  .conversation { padding-right: 26px; padding-left: 26px; }
  .composer-area { padding-right: 26px; padding-left: 26px; }
  .topbar { padding-right: 24px; padding-left: 24px; }
}
@media (max-width: 700px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: min(292px, 86vw); height: 100dvh; transform: translateX(-103%); transition: transform .22s ease; box-shadow: 18px 0 38px #0005; }
  .sidebar.open { transform: translateX(0); }
  .mobile-scrim.visible { position: fixed; z-index: 25; inset: 0; display: block; background: #05070bab; }
  .main-panel { height: 100dvh; }
  .topbar { height: 59px; flex-basis: 59px; gap: 9px; padding: 0 12px; }
  .menu-toggle { display: grid; flex: 0 0 32px; }
  .topbar-title { gap: 0; }
  .eyebrow { font-size: 9px; }
  .page-title { font-size: 13px; }
  .topbar-right { gap: 2px; }
  .model-badge { max-width: 130px; padding: 6px 8px; font-size: 9px; overflow: hidden; text-overflow: ellipsis; }
  .topbar-right > .icon-button { display: none; }
  .conversation { padding: 0 16px; }
  .welcome { margin: 37px auto 32px; }
  .welcome-emblem { width: 39px; height: 39px; margin-bottom: 21px; border-radius: 13px; }
  .welcome h1 { max-width: 94%; font-size: clamp(31px, 8.7vw, 40px); letter-spacing: -1.2px; }
  .welcome-description { margin: 14px 0 21px; font-size: 13px; line-height: 1.7; }
  .prompt-grid { grid-template-columns: 1fr; gap: 8px; }
  .prompt-card { min-height: 61px; padding: 10px 12px; }
  .prompt-icon { width: 31px; height: 31px; flex-basis: 31px; }
  .welcome-footnote { margin-top: 16px; font-size: 10px; }
  .message-list { margin: 20px auto 25px; gap: 21px; }
  .message { grid-template-columns: 25px minmax(0, 1fr); gap: 9px; }
  .message.user { grid-template-columns: minmax(0, 1fr) 25px; }
  .avatar { width: 25px; height: 25px; font-size: 8px; }
  .message-body { font-size: 13px; line-height: 1.75; }
  .message-meta { font-size: 9px; }
  .message.user .message-content { padding: 10px 12px; }
  .message-tools { opacity: 1; }
  .tool-button { font-size: 9px; }
  .message-body h1 { font-size: 23px; }
  .message-body h2 { font-size: 20px; }
  .message-body h3 { font-size: 17px; }
  .code-card pre { padding: 12px; font-size: 11px; }
  .composer-area { padding: 7px 11px calc(8px + env(safe-area-inset-bottom)); }
  .composer { padding: 7px 8px 7px 13px; border-radius: 20px; }
  .composer textarea { min-height: 39px; max-height: 145px; padding: 8px 3px 5px; font-size: 14px; }
  .composer-bottom { gap: 6px; padding-top: 1px; }
  .composer-hint { font-size: 9px; }
  .composer-hint kbd { font-size: 8px; }
  .composer-actions { gap: 8px; }
  .char-count { font-size: 9px; }
  .send-button { width: 34px; height: 34px; flex-basis: 34px; }
  .disclaimer { margin-top: 7px; font-size: 9px; }
  .toast { bottom: calc(20px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .topbar { padding: 0 8px; }
  .model-badge { max-width: 109px; font-size: 8px; }
  .conversation { padding: 0 12px; }
  .welcome h1 { font-size: 30px; }
  .welcome-description { font-size: 12px; }
  .composer-hint { font-size: 8px; }
  .hint-separator { padding: 0 2px; }
  .char-count { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* BIRO refinement: quiet surfaces, restrained accents, syntax-focused code panels. */
:root {
  --bg: #131314;
  --sidebar: #17181a;
  --surface: #1d1e20;
  --surface-raised: #232427;
  --surface-hover: #292a2d;
  --line: #35363a;
  --line-soft: #26272a;
  --text: #e3e3e3;
  --muted: #b9bcc2;
  --dim: #8a8d94;
  --accent: #a8c7fa;
  --accent-strong: #c6d9ff;
  --accent-wash: #263447;
  --green: #81c995;
}

body, .main-panel { background: var(--bg); }
.sidebar { background: var(--sidebar); }
.topbar { background: #151618; border-bottom-color: #292a2d; }
.brand-mark { border-radius: 11px; background: #24272b; color: #e0e4eb; box-shadow: inset 0 0 0 1px #3a3d42; }
.brand-mark span { color: var(--accent); }
.new-chat { background: #222326; border-color: #38393d; }
.new-chat:hover { background: #292a2d; border-color: #505157; }
.nav-item.active { background: #24272c; color: #e3e7ed; }
.nav-item.active > i, .new-chat > i { color: var(--accent); }
.project-icon, .prompt-icon { background: #222428; color: #b7c9e5; }
.prompt-card:nth-child(n) .prompt-icon { color: #b7c9e5; }
.prompt-card { background: #191a1c; border-color: #303135; }
.prompt-card:hover { transform: none; background: #202124; border-color: #4a4c51; }
.welcome-emblem { background: #202124; border-color: #393b40; color: #e4e5e7; }
.welcome-kicker { color: #b8c9e3; }
.welcome h1 em { color: #b8c9e3; }
.message.user .message-content { background: #242528; border-color: #35373b; }
.avatar { background: #202124; border-color: #383a3f; color: #c5d5ef; }
.message.user .avatar { background: #242528; border-color: #3b3d42; color: #cfd1d5; }
.message-meta .role { color: #c4d4ed; }
.message-body li::marker { color: #a8c7fa; }
.message-body blockquote { border-left-color: #7187a6; }
.message-body :not(pre) > code { border-color: #35373c; background: #202124; color: #cbd8ef; }
.code-card { background: #18191b; border-color: #37393e; border-radius: 10px; }
.code-head { background: #202124; border-bottom-color: #35363a; }
.code-language { color: #c1ccdc; }
.code-copy:hover { background: #2a2c30; }
.code-card pre { color: #d5d7da; }
.code-card pre code.hljs { display: block; min-width: 100%; padding: 0; background: transparent; color: #adbac7; }
.composer-area { background: var(--bg); }
.composer { border-color: #3a3b3f; background: #1d1e20; box-shadow: none; }
.composer:focus-within { border-color: #7489a8; background: #202124; box-shadow: 0 0 0 1px #a8c7fa12; }
.send-button { background: #b7ccef; color: #202831; }
.send-button:hover { background: #c8d9f4; }
.model-badge { border-color: #33353a; background: #1d1e20; }
.toast { box-shadow: 0 8px 28px #0003; }

@media (prefers-reduced-motion: no-preference) {
  .live-dot { animation: subtle-live 2.4s ease-in-out infinite; }
}
@keyframes subtle-live { 50% { opacity: .55; } }
