:root { color-scheme: light; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #252a28; background: #fff; font-synthesis: none; line-height: 1.55; --muted: #737873; --line: #e8ebe7; --accent: #30634d; --wash: #f5f7f4; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button, summary { cursor: pointer; }
button { min-height: 44px; color: inherit; background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 8px 13px; transition: background .15s, border-color .15s; }
button:hover:not(:disabled) { background: #edf1ec; }
button:disabled { opacity: .4; cursor: not-allowed; }
button svg, a svg { flex-shrink: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid #438864; outline-offset: 3px; }
input, textarea, select { width: 100%; min-width: 0; border: 1px solid #d9ded7; background: #fff; color: inherit; border-radius: 10px; padding: 10px 12px; font-size: 15px; }
label { font-size: 13px; font-weight: 500; }
label input, label select { margin-top: 6px; }
::placeholder { color: #939891; opacity: 1; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; padding: 0; border: 0; border-radius: 9px; color: #6a736b; }
.icon-button:hover:not(:disabled), .icon-button.selected { color: #2a4635; background: #ecf0e9; }
.workspace { display: flex; height: 100dvh; min-height: 380px; overflow: hidden; }
.sidebar { width: 280px; flex-shrink: 0; background: #f6f7f4; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 28px 16px 16px; gap: 18px; }
.sidebar-brand { display: flex; justify-content: space-between; align-items: center; padding: 0 8px; margin-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: #272e27; font-size: 18px; font-weight: 550; letter-spacing: -.6px; }
.brand strong { font-weight: 750; }
.brand small { display: block; margin-top: 2px; font-size: 11px; font-weight: 400; letter-spacing: .02em; color: #7b8177; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; color: #fff; border-radius: 11px; background: #315d48; }
.new-chat { background: #fff; display: flex; align-items: center; gap: 10px; width: 100%; box-shadow: 0 2px 3px #23332304; border: 1px solid #dce2d8; font-weight: 550; font-size: 13px; padding: 11px 13px; }
.new-chat kbd { margin-left: auto; color: #93998e; font-size: 17px; font-family: inherit; }
.history-search { display: flex; align-items: center; gap: 9px; color: #8a9286; padding: 0 10px; }
.history-search svg { width: 17px; height: 17px; flex-shrink: 0; }
.history-search input { margin: 0; padding: 8px 0; border: 0; border-radius: 0; background: transparent; font-size: 12px; font-weight: 400; }
.history-section-label { padding: 0 11px; display: flex; align-items: center; justify-content: space-between; color: #8a9086; font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; margin-top: 5px; }
.history-section-label span { font-size: 10px; background: #e9ede4; color: #7d8675; border-radius: 5px; padding: 1px 6px; }
.history-list { flex: 1; min-height: 0; overflow: auto; margin: -6px -4px 0; padding: 2px 4px; scrollbar-width: thin; }
.history-item { display: flex; align-items: center; border-radius: 9px; margin-bottom: 4px; position: relative; }
.history-item.active { background: #e8ede3; }
.history-item:hover { background: #ecefe8; }
.history-select { display: flex; align-items: center; gap: 10px; text-align: left; flex: 1; min-width: 0; border: 0; padding: 10px; font-size: 12px; }
.history-select svg { width: 16px; height: 16px; color: #838c7c; }
.history-select span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-item-actions { display: none; }
.history-item:hover .history-item-actions, .history-item:focus-within .history-item-actions, .history-item.active .history-item-actions { display: flex; }
.history-item-actions .icon-button { width: 28px; min-width: 28px; }
.history-item-actions svg { width: 14px; height: 14px; }
.history-item form { display: flex; align-items: center; width: 100%; gap: 3px; }
.history-item form input { font-size: 12px; }
.history-empty, .sidebar-note { font-size: 12px; color: var(--muted); padding: 0 10px; }
.sidebar-bottom { border-top: 1px solid #e2e7dc; padding-top: 13px; }
.sidebar-bottom > a { display: flex; align-items: center; gap: 10px; padding: 10px; min-height: 44px; border-radius: 8px; text-decoration: none; color: #596252; font-size: 12px; }
.sidebar-bottom > a:hover { background: #e9eee3; }
.sidebar-bottom > a svg { width: 17px; height: 17px; }
.sidebar-bottom > a svg:last-child { margin-left: auto; width: 13px; }
.history-privacy { display: flex; align-items: flex-start; gap: 8px; padding: 20px 10px 0; color: #6d7765; font-size: 11px; }
.history-privacy .status-dot { margin-top: 6px; }
.history-privacy small { display: block; color: #8c9485; font-size: 10px; margin-top: 3px; }
.chat-main { flex: 1; min-width: 0; display: flex; flex-direction: column; outline: none; }
.chat-header { height: 82px; min-height: 82px; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chat-heading { min-width: 0; }
.chat-heading > span { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; letter-spacing: -.2px; }
.chat-heading svg { width: 13px; height: 13px; color: #899283; }
.chat-heading small { display: block; font-size: 10px; color: #91978b; letter-spacing: .015em; margin-top: 3px; }
.header-actions { display: flex; gap: 3px; }
.header-actions svg { width: 18px; height: 18px; }
.mobile-menu { display: none; }
.thread { display: flex; flex-direction: column; flex: 1; min-height: 0; position: relative; }
.viewport { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px max(28px, calc((100% - 760px) / 2)); scrollbar-width: thin; scrollbar-color: #d8ddd4 transparent; }
.viewport.empty { display: flex; flex-direction: column; justify-content: safe center; }
.welcome { width: 100%; max-width: 690px; margin: 0 auto; text-align: center; padding: 20px 0 26px; }
.welcome-mark { display: grid; place-items: center; width: 68px; height: 68px; background: #edf3e8; border: 1px solid #e4ecdD; color: #47704f; border-radius: 22px; margin: 0 auto 24px; box-shadow: 0 5px 18px #47704f08; }
.eyebrow { margin: 0 0 10px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .13em; color: #899781; }
h1 { font-size: clamp(27px, 3vw, 39px); line-height: 1.18; font-weight: 550; letter-spacing: -1.3px; margin: 0 0 15px; color: #283126; }
.welcome-description { font-size: 13px; color: #8a9084; line-height: 1.8; margin: 0; }
.starters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 36px auto 22px; max-width: 590px; }
.starters button { display: grid; grid-template-columns: 27px 1fr; gap: 2px 9px; text-align: left; padding: 18px 17px; background: #fff; border: 1px solid #e5e9e0; border-radius: 12px; box-shadow: 0 2px 3px #20332002; }
.starters button:hover:not(:disabled) { background: #f8faf5; border-color: #cbd7c1; }
.starters button > svg { grid-row: 1 / 3; color: #748a66; width: 21px; height: 21px; margin-top: 2px; }
.starters strong { font-size: 12px; font-weight: 550; color: #3c4536; }
.starters span { font-size: 10px; color: #969d8e; }
.corpus-status { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 10px; color: #9aA18f; }
.status-dot { width: 5px; height: 5px; flex-shrink: 0; background: #82a77a; border-radius: 50%; display: inline-block; }
.message { display: flex; align-items: flex-start; gap: 14px; padding: 4px 0 24px; overflow-wrap: anywhere; }
.message-body { min-width: 0; flex: 1; }
.speaker { font-size: 11px; font-weight: 600; color: #8a9282; margin: 0 0 7px; }
.assistant-avatar { width: 29px; height: 29px; flex-shrink: 0; border-radius: 9px; background: #edf3e8; color: #57784b; display: grid; place-items: center; margin-top: 1px; }
.assistant-avatar svg { width: 18px; height: 18px; }
.message.user { justify-content: flex-end; padding-top: 6px; padding-bottom: 27px; }
.user .message-body { flex: initial; max-width: 85%; }
.user .speaker { text-align: right; }
.user .message-text { background: #f1f4ed; border-radius: 17px 17px 4px 17px; padding: 13px 18px; font-size: 14px; color: #424a3b; }
.message-text { white-space: pre-wrap; line-height: 1.8; font-size: 14px; }
.markdown { white-space: normal; }
.markdown > :first-child { margin-top: 0; }
.markdown > :last-child { margin-bottom: 0; }
.markdown p { margin: 0 0 15px; }
.markdown h1, .markdown h2, .markdown h3, .markdown h4 { font-size: 17px; letter-spacing: -.2px; font-weight: 650; margin: 24px 0 10px; }
.markdown h1 { font-size: 22px; }
.markdown ul, .markdown ol { padding-left: 22px; margin: 12px 0 16px; }
.markdown li { padding-left: 4px; margin: 5px 0; }
.markdown li > p { margin: 0; }
.markdown code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .87em; background: #f1f3ef; padding: 2px 5px; border-radius: 4px; }
.markdown pre { overflow: auto; max-width: 100%; background: #f6f7f4; border: 1px solid #e4e8dd; border-radius: 0 0 10px 10px; padding: 17px; margin: 0 0 18px; white-space: pre; }
.markdown pre code { padding: 0; background: transparent; line-height: 1.6; }
.code-header { background: #edf1e8; border: 1px solid #e4e8dd; border-bottom: 0; border-radius: 10px 10px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 8px 0 15px; font-size: 11px; color: #6d7962; }
.code-header button { display: flex; align-items: center; gap: 6px; font-size: 11px; border: 0; }
.code-header svg { width: 14px; height: 14px; }
.markdown blockquote { margin: 18px 0; border-left: 3px solid #b5c5a8; padding-left: 16px; color: #6c7763; }
.markdown table { display: block; overflow-x: auto; border-collapse: collapse; max-width: 100%; font-size: 12px; margin: 15px 0; }
.markdown th, .markdown td { text-align: left; border: 1px solid var(--line); padding: 8px 12px; }
.markdown th { background: var(--wash); }
.markdown hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.message-footer { display: flex; align-items: center; margin-top: 9px; gap: 10px; }
.user .message-footer { justify-content: flex-end; }
.message-actions { display: flex; gap: 1px; }
.message-actions svg { width: 16px; height: 16px; }
.branch-picker { display: flex; align-items: center; gap: 4px; color: #8b9382; font-size: 11px; }
.branch-picker button { border: 0; padding: 5px; display: grid; place-items: center; }
.branch-picker svg { width: 14px; height: 14px; }
.thinking { display: flex; gap: 8px; align-items: center; color: #7d8b72; font-size: 11px; }
.thinking > span { width: 6px; height: 6px; border-radius: 50%; background: #779966; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.sources { margin-top: 18px; border: 1px solid #e6ebe0; border-radius: 10px; background: #fbfcf9; font-size: 12px; }
.sources > summary { display: flex; align-items: center; gap: 8px; padding: 11px 13px; min-height: 44px; color: #77856b; list-style: none; }
.sources > summary::-webkit-details-marker { display: none; }
.sources > summary svg { width: 15px; height: 15px; }
.sources > summary svg:last-child { margin-left: auto; }
.sources[open] > summary svg:last-child { transform: rotate(180deg); }
.sources ol { list-style: none; margin: 0; padding: 0 13px 4px; }
.sources li { display: flex; gap: 10px; border-top: 1px solid #e8ede3; padding: 12px 0; }
.sources li > div { min-width: 0; }
.source-number { flex-shrink: 0; width: 20px; height: 20px; border-radius: 5px; background: #e9efe3; text-align: center; font-size: 10px; color: #7c8b6f; padding-top: 2px; }
.sources a { font-weight: 550; text-decoration: none; }
.source-book { font-size: 10px; color: #969f8b; display: block; }
.source-excerpt > summary { font-size: 11px; color: #8a967e; min-height: 32px; padding-top: 7px; }
.source-excerpt p { white-space: pre-wrap; font-size: 11px; line-height: 1.75; color: #7a8670; max-height: 260px; overflow-y: auto; }
.composer-dock { position: relative; flex-shrink: 0; width: min(820px, 100%); margin: 0 auto; padding: 12px 30px 17px; background: #fff; }
.composer { border: 1px solid #dce3d5; border-radius: 18px; padding: 14px 16px 12px; background: #fff; box-shadow: 0 4px 20px #27332006, 0 1px 2px #27332004; }
.composer:focus-within { border-color: #bccfb0; box-shadow: 0 0 0 3px #698c4b08, 0 4px 20px #27332006; }
.composer textarea { display: block; border: 0; resize: none; padding: 2px 1px; min-height: 47px; max-height: 180px; outline: none; line-height: 1.6; font-size: 14px; box-shadow: none; background: transparent; }
.composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 5px; }
.model-label { display: inline-flex; align-items: center; gap: 6px; color: #717f66; font-size: 10px; }
.model-label svg { width: 14px; height: 14px; }
.model-badge { font-size: 9px; color: #a2ac98; background: #f4f6f1; padding: 2px 5px; border-radius: 4px; margin-left: 3px; }
.send-button { width: 38px; min-width: 38px; height: 38px; min-height: 38px; padding: 0; border: 0; display: grid; place-items: center; background: #315d48; color: #fff; border-radius: 11px; }
.send-button:hover:not(:disabled) { background: #234b36; }
.send-button:disabled { background: #e6ece0; color: #9aaa8c; opacity: 1; }
.footnote { color: #a0a696; text-align: center; font-size: 9px; margin: 11px 0 0; }
.footnote button { font-size: inherit; min-height: 0; padding: 0; border: 0; color: #929e83; text-decoration: underline; text-underline-offset: 2px; }
.scroll-bottom { position: absolute; top: -42px; left: calc(50% - 18px); width: 36px; height: 36px; min-height: 36px; min-width: 36px; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 6px #22331108; z-index: 1; }
.scroll-bottom:disabled { display: none; }
.muted { color: var(--muted); font-size: 12px; font-weight: 400; }
.error { color: #9b463e; background: #fff5f1; padding: 10px 15px; font-size: 12px; border-radius: 8px; margin: 8px 24px; overflow-wrap: anywhere; }
.chat-settings { border-block: 1px solid var(--line); background: #fafbf8; padding: 18px max(28px, calc((100% - 720px) / 2)); max-height: 55vh; overflow-y: auto; flex-shrink: 0; }
.settings-heading { display: flex; justify-content: space-between; align-items: center; }
.settings-heading h2, .setup h2 { font-size: 15px; font-weight: 600; }
.setup h3 { font-size: 13px; margin: 16px 0 8px; }
.setup p { font-size: 12px; }
.setup-steps { padding-left: 20px; }
.setup button { margin: 8px 5px 5px 0; font-size: 12px; }
.setup details { font-size: 12px; margin: 12px 0; }
.notice { color: #7c795f; font-size: 12px; }
.model-indicator { font-size: 12px; font-weight: 550; }
.download-model { background: #edf2e7; padding: 6px 12px; border-radius: 8px; }
.download-model progress { width: 100%; accent-color: var(--accent); }
.edit-composer { border: 1px solid #d3dfc9; padding: 12px; border-radius: 12px; }
.edit-composer textarea { min-height: 90px; resize: vertical; }
.edit-composer > div { display: flex; justify-content: flex-end; gap: 7px; margin-top: 8px; }
.edit-composer button { font-size: 12px; }
.primary { background: var(--accent); color: white; border-color: var(--accent); }
.delete-dialog { width: min(430px, calc(100% - 40px)); border: 1px solid #dce4d4; padding: 26px; border-radius: 18px; color: #3e4838; box-shadow: 0 20px 80px #19291126; }
.delete-dialog::backdrop { background: #1f2b2166; backdrop-filter: blur(3px); }
.delete-dialog h2 { font-size: 18px; font-weight: 600; margin: 0 0 10px; }
.delete-dialog p { font-size: 13px; color: #87917d; }
.delete-dialog > div { display: flex; justify-content: flex-end; gap: 8px; margin-top: 25px; }
.delete-dialog button { font-size: 12px; }
.danger { color: #fff; background: #a6463e; border-color: #a6463e; }
.danger:hover:not(:disabled) { background: #87382f; }
.loading-screen { height: 100dvh; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 24px; }
.loading-screen p { font-size: 13px; color: var(--muted); }
.loading-screen .welcome-mark { margin-inline: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; background: #fff; padding: 12px; z-index: 10; }
.skip-link:focus { top: 10px; }
@media (max-width: 1100px) { .sidebar { width: 246px; padding-inline: 12px; } .chat-header { padding-inline: 24px; } .starters { gap: 8px; } .starters button { padding: 15px 12px; } }
@media (pointer: coarse) { .history-item-actions { display: flex; } .history-item-actions .icon-button { min-width: 40px; } .send-button { width: 44px; min-height: 44px; height: 44px; } }
@media (max-width: 760px) {
  .sidebar { display: none; }
  .sidebar-open .sidebar { display: flex; width: 100%; }
  .sidebar-open .chat-main { display: none; }
  .mobile-menu { display: inline-flex; }
  .chat-header { height: 70px; min-height: 70px; padding: 0 12px; gap: 6px; }
  .chat-heading { margin-right: auto; }
  .chat-heading > span { font-size: 12px; }
  .chat-heading small { font-size: 9px; }
  .chat-heading > span > svg { display: none; }
  .header-actions { gap: 0; }
  .header-actions .icon-button { width: 36px; min-width: 36px; }
  .viewport { padding: 16px 20px; }
  .welcome { padding: 15px 0 5px; }
  .welcome-mark { width: 52px; height: 52px; border-radius: 17px; margin-bottom: 20px; }
  h1 { font-size: 27px; letter-spacing: -.9px; }
  .eyebrow { font-size: 8px; }
  .welcome-description { font-size: 11px; }
  .starters { margin-top: 25px; gap: 8px; }
  .starters button { display: flex; flex-direction: column; gap: 8px; padding: 13px; }
  .starters strong { font-size: 11px; }
  .starters span { font-size: 9px; }
  .corpus-status { font-size: 8px; margin-top: 18px; }
  .composer-dock { padding: 10px 14px max(12px, env(safe-area-inset-bottom)); }
  .composer { padding: 12px; border-radius: 15px; }
  .composer textarea { font-size: 16px; }
  .footnote { font-size: 8px; }
  .message { gap: 10px; }
  .assistant-avatar { width: 25px; height: 25px; }
  .message-text { font-size: 13px; }
  .user .message-body { max-width: 92%; }
  .user .message-text { font-size: 13px; }
  .chat-settings { padding: 12px 20px; }
  .history-item-actions { display: flex; }
  .history-item-actions .icon-button { min-width: 44px; }
  .history-select { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
/* Secondary copy stays readable on both the white canvas and tinted sidebar. */
.brand small, .history-section-label, .history-privacy, .history-privacy small,
.chat-heading small, .eyebrow, .welcome-description, .starters span, .corpus-status,
.speaker, .source-book, .source-excerpt > summary, .source-excerpt p,
.model-label, .model-badge, .footnote, .footnote button { color: #66735e; }
.brand small, .history-privacy, .history-privacy small, .chat-heading small,
.eyebrow, .starters span, .corpus-status, .model-label, .model-badge, .footnote { font-size: 11px; }
.welcome-description { font-size: 14px; }
.starters strong { font-size: 13px; }
.send-button { width: 44px; height: 44px; min-height: 44px; }
@media (max-width: 760px) {
  .welcome-description { font-size: 12px; }
  .eyebrow, .corpus-status, .footnote { font-size: 10px; }
  .history-search input, .history-item form input { font-size: 16px; }
}

.theme-toggle svg { width: 19px; height: 19px; }
.sidebar-brand .brand { min-width: 0; flex: 1; }
.sources ol.resource-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; padding: 12px; }
.sources li.source-card { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.source-card > div { min-width: 0; overflow-wrap: anywhere; }
.source-excerpt > summary { min-height: 44px; }
.web-search { display: flex; align-items: center; gap: 6px; font-size: 12px; min-height: 44px; cursor: pointer; }
.web-search input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
@media (max-width: 760px) { .header-actions .theme-toggle { width: 44px; min-width: 44px; } .composer-footer { flex-wrap: wrap; gap: 6px; } .web-search { font-size: 11px; } }
.mobile-theme { display: none; }
[data-theme="dark"] {
  color-scheme: dark; --muted: #a8b2aa; --line: #303a35; --accent: #8bc6a0; --wash: #202923;
  color: #e7eee9; background: #151b18;
}
[data-theme="dark"] body { background: #151b18; }
[data-theme="dark"] button:hover:not(:disabled) { background: #29352e; }
[data-theme="dark"] a { color: #9dd8b1; }
[data-theme="dark"] :focus-visible { outline-color: #8bc6a0; }
[data-theme="dark"] input, [data-theme="dark"] textarea, [data-theme="dark"] select { border-color: #3b4840; background: #1b241f; color: #e7eee9; }
[data-theme="dark"] ::placeholder { color: #849189; }
[data-theme="dark"] .icon-button { color: #a9b7ad; }
[data-theme="dark"] .icon-button:hover:not(:disabled), [data-theme="dark"] .icon-button.selected { color: #d2f0db; background: #293b30; }
[data-theme="dark"] .sidebar { background: #1b241f; border-color: #303a35; }
[data-theme="dark"] .brand { color: #e7eee9; }
[data-theme="dark"] .brand small, [data-theme="dark"] .history-section-label, [data-theme="dark"] .history-privacy,
[data-theme="dark"] .history-privacy small, [data-theme="dark"] .chat-heading small, [data-theme="dark"] .eyebrow,
[data-theme="dark"] .welcome-description, [data-theme="dark"] .starters span, [data-theme="dark"] .corpus-status,
[data-theme="dark"] .speaker, [data-theme="dark"] .source-book, [data-theme="dark"] .source-excerpt > summary,
[data-theme="dark"] .source-excerpt p, [data-theme="dark"] .model-label, [data-theme="dark"] .model-badge,
[data-theme="dark"] .footnote, [data-theme="dark"] .footnote button { color: #a8b8aa; }
[data-theme="dark"] .new-chat, [data-theme="dark"] .starters button, [data-theme="dark"] .scroll-bottom { background: #202b24; border-color: #3a493e; color: #e7eee9; }
[data-theme="dark"] .history-section-label span, [data-theme="dark"] .history-item.active,
[data-theme="dark"] .history-item:hover, [data-theme="dark"] .sidebar-bottom > a:hover { background: #29382e; }
[data-theme="dark"] .history-select, [data-theme="dark"] .sidebar-bottom > a { color: #c1cec4; }
[data-theme="dark"] .sidebar-bottom { border-color: #303a35; }
[data-theme="dark"] h1, [data-theme="dark"] .starters strong { color: #e7eee9; }
[data-theme="dark"] .welcome-mark, [data-theme="dark"] .assistant-avatar { background: #263b2d; border-color: #385740; color: #a9d5b2; }
[data-theme="dark"] .starters button:hover:not(:disabled) { background: #2b3b30; border-color: #53745b; }
[data-theme="dark"] .user .message-text { background: #29382e; color: #e1ece3; }
[data-theme="dark"] .markdown code { background: #29352e; }
[data-theme="dark"] .markdown pre { background: #1b241f; border-color: #3a493e; }
[data-theme="dark"] .code-header { background: #26342b; border-color: #3a493e; color: #aec3b1; }
[data-theme="dark"] .markdown blockquote { border-color: #6d9b78; color: #b2c3b5; }
[data-theme="dark"] .sources { background: #1c2720; border-color: #3a493e; }
[data-theme="dark"] .sources > summary { color: #a8b8aa; }
[data-theme="dark"] .model-badge { background: #29382e; }
[data-theme="dark"] .history-section-label span { color: #a8b8aa; }
[data-theme="dark"] .sources li { border-color: #303d34; }
[data-theme="dark"] .source-number { background: #2c4031; color: #b2d0b5; }
[data-theme="dark"] .composer-dock, [data-theme="dark"] .composer { background: #151b18; }
[data-theme="dark"] .composer { border-color: #3b4b40; box-shadow: 0 4px 20px #0008; }
[data-theme="dark"] .composer:focus-within { border-color: #6e9d79; box-shadow: 0 0 0 3px #8bc6a01c, 0 4px 20px #0008; }
[data-theme="dark"] .send-button { background: #4d9266; }
[data-theme="dark"] .send-button:hover:not(:disabled) { background: #64aa7b; }
[data-theme="dark"] .send-button:disabled { background: #29382e; color: #718a76; }
[data-theme="dark"] .chat-settings { background: #1b241f; border-color: #303a35; }
[data-theme="dark"] .download-model { background: #26382b; }
[data-theme="dark"] .edit-composer { border-color: #405646; }
[data-theme="dark"] .primary { background: #4d9266; border-color: #4d9266; }
[data-theme="dark"] .delete-dialog { background: #202b24; border-color: #405046; color: #e7eee9; box-shadow: 0 20px 80px #000a; }
[data-theme="dark"] .delete-dialog p { color: #a8b8aa; }
[data-theme="dark"] .delete-dialog::backdrop { background: #0009; }
[data-theme="dark"] .error { color: #ffb4a9; background: #422824; }
[data-theme="dark"] .skip-link { background: #202b24; color: #e7eee9; }
@media (max-width: 760px) { .mobile-theme { display: inline-flex; } }
