@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg: #08080a;                 /* near-black base so glass reads */
    --surface: #161619;            /* solid dark (avatars, code) */
    --surface-2: #27272a;          /* solid dark hover */
    --glass: rgba(10,10,13,0.82);  /* bar / nav / header / modal backdrop */
    --border: rgba(255,255,255,0.08);   /* hairline glass divider */
    --border-2: rgba(255,255,255,0.14); /* brighter glass rim */
    --text: #f4f4f5;
    --muted: #b0b0b7;              /* zinc-400-ish */
    --faint: #82828b;              /* zinc-500-ish */
    --accent: #e6e6e9;             /* achromatic accent (caret / focus / live) */
    --accent-grad: #71717a;        /* achromatic (badge text / avatar fallback) */
    --user-grad: rgba(255,255,255,0.12);
    /* ---- Liquid glass (achromatic) ---- */
    --glass-soft: rgba(255,255,255,0.055);  /* assistant bubble / panel film */
    --glass-strong: rgba(255,255,255,0.11); /* user bubble / composer / toggle (brighter) */
    --glass-border: rgba(255,255,255,0.13);
    --glass-hi: rgba(255,255,255,0.22);     /* top-edge light catch */
    --glass-shadow: 0 12px 36px -12px rgba(0,0,0,0.78);
    --blur: blur(22px);
    --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
.font-display { font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif; }
::selection { background: rgba(255,255,255,0.22); color: #fff; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 9999px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); background-clip: content-box; }

/* ---- Flat background (no aurora/grain): solid zinc-950 via body ---- */

.glass { background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* ---- Messages ---- */
.message-bubble { max-width: 100%; padding: 14px 18px; border-radius: var(--radius); line-height: 1.62; font-size: 15px; overflow-wrap: anywhere;
    backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.ai-bubble { background: var(--glass-soft); color: #fafafa; border: 1px solid var(--glass-border);
    box-shadow: inset 0 1px 0 var(--glass-hi), var(--glass-shadow); border-bottom-left-radius: 8px; }
.user-bubble { background: var(--glass-soft); color: #fafafa; border: 1px solid var(--glass-border);
    box-shadow: inset 0 1px 0 var(--glass-hi), var(--glass-shadow); border-bottom-right-radius: 8px; white-space: pre-wrap; }

.avatar { width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0; margin-top: 2px; overflow: hidden; border: 1px solid var(--border-2);
    background: var(--surface-2); box-shadow: 0 6px 16px -6px rgba(0,0,0,0.7); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.avatar-fallback { background: var(--accent-grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }

.msg-meta { display: flex; align-items: center; gap: 10px; margin-top: 7px; padding: 0 4px; font-size: 11px; color: var(--faint); opacity: 0.6; transition: opacity 0.2s; }
.msg-row:hover .msg-meta { opacity: 1; }
.msg-meta .act { background: none; border: none; color: var(--faint); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; padding: 2px 6px; border-radius: 7px; transition: all 0.15s; font-size: 11px; }
.msg-meta .act:hover { color: var(--text); background: var(--surface-2); }
.msg-badge { font-size: 9px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
    background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Unified muted zinc style for all mode badges */
.msg-badge.quick, .msg-badge.think, .msg-badge.agent { 
    background: linear-gradient(to right, #a1a1aa, #71717a); 
    -webkit-background-clip: text; 
    background-clip: text; 
}

/* ---- Markdown prose ---- */
.bubble-content :first-child { margin-top: 0; }
.bubble-content :last-child { margin-bottom: 0; }
.bubble-content p { margin: 0 0 0.72em; }
.bubble-content h1, .bubble-content h2, .bubble-content h3, .bubble-content h4 { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 600; line-height: 1.3; margin: 1.05em 0 0.5em; color: #fafafa; }
.bubble-content h1 { font-size: 1.35em; } .bubble-content h2 { font-size: 1.2em; } .bubble-content h3 { font-size: 1.07em; }
.bubble-content ul, .bubble-content ol { margin: 0 0 0.72em; padding-left: 1.35em; }
.bubble-content li { margin: 0.22em 0; }
.bubble-content a { color: #d4d4d8; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(255,255,255,0.35); }
.bubble-content a:hover { color: #fafafa; text-decoration-color: rgba(255,255,255,0.7); }
.bubble-content strong { color: #fff; font-weight: 600; }
.bubble-content blockquote { border-left: 3px solid var(--accent); margin: 0 0 0.72em; padding: 0.1em 0 0.1em 0.9em; color: var(--muted); }
.bubble-content code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.85em; background: rgba(255,255,255,0.06); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
.bubble-content pre { position: relative; background: #0b0b0f; border: 1px solid var(--border); border-radius: 14px; margin: 0 0 0.85em; overflow: hidden; }
.bubble-content pre code { display: block; padding: 14px 16px; overflow-x: auto; background: none; border: none; font-size: 0.85em; color: #e4e4e7; line-height: 1.55; }
.bubble-content pre code.hljs { background: transparent !important; padding: 14px 16px; }
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px 7px 14px; background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--border); font-size: 11px; color: var(--muted); }
.code-head .lang { text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600; }
.code-head .code-copy { background: none; border: none; color: var(--muted); cursor: pointer; padding: 2px 7px; border-radius: 7px; font-size: 11px; display: inline-flex; align-items: center; gap: 5px; transition: all 0.15s; }
.code-head .code-copy:hover { color: #fff; background: var(--surface-2); }
.code-head .code-acts { display: inline-flex; align-items: center; gap: 2px; }
.code-head .code-act { background: none; border: none; color: var(--muted); cursor: pointer; padding: 2px 7px; border-radius: 7px; font-size: 11px; display: inline-flex; align-items: center; gap: 5px; transition: all 0.15s; white-space: nowrap; }
.code-head .code-act:hover { color: #fff; background: var(--surface-2); }
.bubble-content table { width: 100%; border-collapse: collapse; margin: 0 0 0.85em; font-size: 0.92em; }
.bubble-content th, .bubble-content td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; }
.bubble-content th { background: var(--surface-2); font-weight: 600; }
.bubble-content hr { border: none; border-top: 1px solid var(--border); margin: 1em 0; }

/* Streaming caret */
.ai-bubble.streaming .bubble-content::after { content: '▍'; color: var(--accent); margin-left: 1px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* ---- Composer ---- */
/* Bar uses the page color (not the dark --glass) so the input shell sits on the same base as the
   chat bubbles and reads as the EXACT same color. Opaque, so content scrolling under it is masked. */
#composer-bar { background: var(--bg); }
.composer { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  background: var(--glass-soft);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); 
  border-radius: var(--radius); 
  padding: 8px 10px 8px 14px; 
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; 
  box-shadow: inset 0 1px 0 var(--glass-hi), var(--glass-shadow); 
}
/* focus-within visual removed — glass stays static */
.composer textarea { 
  flex: 1; 
  min-width: 0; 
  background: transparent; 
  border: none; 
  outline: none; 
  resize: none; 
  color: var(--text); 
  font-size: 15px; 
  line-height: 1.45; 
  padding: 6px 6px; 
  overflow-y: auto; 
}
.composer textarea::placeholder { color: var(--faint); }
.attach-bar { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:8px; max-width: 100%; }
.attach-btn { 
    flex-shrink:0; width:44px; height:44px; border-radius:13px; border:none; 
    background:transparent; color:#71717a; cursor:pointer; font-size:16px; 
    transition: all 0.15s ease; 
    min-width: 44px; min-height: 44px; /* comfortable touch-target size */
}
.attach-btn:hover { background:var(--surface-2); color:#d4d4d8; }
.attach-chip { 
    display:inline-flex; align-items:center; gap:8px; padding:6px 12px; 
    border-radius:10px; background:var(--surface-2); border:1px solid var(--border-2); 
    font-size:12px; color:#d4d4d8; max-width: min(240px, 65vw); 
    transition: border-color 0.15s;
}
.attach-chip:hover { border-color: #52525b; }
.attach-chip .ac-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.attach-chip .ac-x { 
    cursor:pointer; color:#52525b; flex-shrink:0; width:16px; height:16px; 
    display:flex; align-items:center; justify-content:center; border-radius:4px;
    transition: all 0.1s;
}
.attach-chip .ac-x:hover { color:#ef4444; background:rgba(239,68,68,0.1); }
.file-pill { 
    display:inline-flex; align-items:center; gap:8px; padding:7px 12px; 
    border-radius:10px; background:var(--surface-2); border:1px solid var(--border-2); 
    font-size:12.5px; color:#e4e4e7; text-decoration:none; margin:4px 6px 0 0; 
    transition: all 0.15s;
}
.file-pill:hover { border-color:#52525b; color:#fafafa; }
@media (max-width: 639px) { .composer textarea { font-size: 16px; } }

.icon-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; color: var(--muted); background: transparent; border: none; cursor: pointer; transition: all 0.18s; flex-shrink: 0; }
.icon-btn:hover { color: var(--text); background: var(--surface-2); }

.send-btn { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; color: #09090b; background: #fff; border: none; cursor: pointer; flex-shrink: 0; transition: transform 0.15s, background 0.2s, filter 0.2s; font-size: 17px; min-width: 44px; min-height: 44px; }
.send-btn:hover { background: #f4f4f5; }
.send-btn:active { transform: scale(0.93); }
.send-btn.is-stop { background: #ef4444; color: #fff; }

/* ---- Mode selector (Quick / Think / Agent basic / Agent plus) ---- */
.mode-bar { position: relative; flex: none; }
.mode-trigger { 
  display: inline-flex; 
  align-items: center; 
  gap: 7px; 
  height: 40px; 
  padding: 0 11px; 
  border-radius: 13px; 
  background: transparent; 
  border: 1px solid transparent; 
  box-shadow: none;
  color: #d4d4d8; 
  cursor: pointer; 
  font-size: 13px; 
  font-weight: 600; 
  transition: color 0.18s, background 0.18s; 
}
.mode-trigger:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.mode-trigger[aria-expanded="true"] { background: rgba(255,255,255,0.08); color: var(--text); }
.mode-trigger .mt-ico { display: none; }   /* text-only toggle */
.mode-trigger .mt-name { font-family: 'Space Grotesk', 'Inter', sans-serif; letter-spacing: 0.2px; }

.mode-menu { position: absolute; bottom: calc(100% + 10px); left: 0; width: 274px; max-width: min(80vw, 300px); max-height: min(62vh, 360px); overflow-y: auto; -webkit-overflow-scrolling: touch; background: #161617; backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 6px; box-shadow: inset 0 1px 0 var(--glass-hi), 0 18px 50px -12px rgba(0,0,0,0.8); z-index: 60; opacity: 0; transform: translateY(8px) scale(0.98); transform-origin: bottom left; pointer-events: none; transition: opacity 0.16s ease, transform 0.18s cubic-bezier(0.2,0.9,0.3,1.15); }
.mode-bar.open .mode-menu { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.mode-menu-label { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; color: var(--faint); text-transform: uppercase; padding: 8px 10px 6px; }
.mode-opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer; transition: background 0.14s; }
.mode-opt:hover { background: rgba(255,255,255,0.07); }
.mode-opt.active { background: transparent; }
.mode-opt .mo-ico { display: none; }   /* text-only mode list */
.mode-opt .mo-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mode-opt .mo-name { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 14px; font-weight: 600; color: var(--text); letter-spacing: 0.2px; }
.mode-opt .mo-desc { font-size: 11.5px; color: var(--faint); margin-top: 1px; }
.mode-opt .mo-pip { width: 6px; height: 6px; border-radius: 50%; flex: none; opacity: 0; background: #f4f4f5 !important; box-shadow: 0 0 8px rgba(255,255,255,0.7); }
.mode-opt.active .mo-pip { opacity: 1; }

/* Plus mode: live, collapsible activity log (Claude-style) */
.activity-panel { border: none; background: transparent; box-shadow: none; border-radius: 0; overflow: hidden; max-width: 100%; }
.activity-head { display: flex; align-items: center; gap: 9px; padding: 5px 2px; min-height: 34px; cursor: pointer; user-select: none; font-size: 13px; color: #e4e4e7; }
.activity-head .ai-head-ico { flex-shrink: 0; width: 14px; text-align: center; display: inline-block; }
.activity-head .chevron { margin-left: auto; transition: transform 0.2s; color: var(--faint); font-size: 11px; }
.activity-panel.collapsed .activity-body { display: none; }
.activity-panel.collapsed .chevron { transform: rotate(-90deg); }
.activity-body { padding: 3px 2px 4px 2px; display: flex; flex-direction: column; gap: 7px; border-top: none; }
.activity-item { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.activity-item .ai-ico { flex-shrink: 0; width: 14px; text-align: center; margin-top: 1px; }
.activity-item.done .ai-ico { color: #d4d4d8; }
.activity-item.live .ai-ico { color: var(--accent); }
.activity-item.live { color: #f4f4f5; }
.activity-spin { width: 11px; height: 11px; border: 2px solid rgba(255,255,255,0.18); border-top-color: rgba(255,255,255,0.85); border-radius: 50%; animation: acSpin 0.7s linear infinite; display: inline-block; }
@keyframes acSpin { to { transform: rotate(360deg); } }
/* Live worker streams (Agent researcher / critic / debate / synthesis output) */
.worker-streams { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.worker-stream { border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; background: rgba(255,255,255,0.03); overflow: hidden; }
.worker-stream .ws-head { display: flex; align-items: center; gap: 7px; padding: 5px 9px; font-size: 11px; letter-spacing: 0.02em; color: #d4d4d8; cursor: pointer; user-select: none; }
.worker-stream .ws-dot { width: 6px; height: 6px; border-radius: 50%; background: #71717a; flex-shrink: 0; }
.worker-stream.live .ws-dot { background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,0.45); animation: wsPulse 1.4s ease-out infinite; }
@keyframes wsPulse { to { box-shadow: 0 0 0 6px rgba(52,211,153,0); } }
/* Mobile-only helpers (conversation search on phones) */
@media (min-width: 640px) { .mobile-only { display: none !important; } }
.worker-stream .ws-head .chevron { margin-left: auto; transition: transform 0.2s; color: var(--faint); font-size: 10px; }
.worker-stream.collapsed .ws-body { display: none; }
.worker-stream.collapsed .chevron { transform: rotate(-90deg); }
.worker-stream .ws-body { max-height: 140px; overflow-y: auto; padding: 6px 9px 8px; font-size: 11.5px; line-height: 1.55; color: var(--muted); white-space: pre-wrap; word-break: break-word; }

/* Mode menu fits phones cleanly. */
@media (max-width: 639px) {
    .mode-menu { width: 264px; }
    .mode-trigger { 
      height: 40px; 
      padding: 0 10px; 
      gap: 6px;
      font-size: 13px;
      border-radius: 13px;
    }
    .composer { 
      gap: 8px; 
      padding: 8px 8px 8px 12px; 
    }
    .attach-btn {
      width: 44px;
      height: 44px;
      border-radius: 13px;
      font-size: 16px;
      min-width: 44px;
      min-height: 44px;
    }
    .send-btn {
      width: 44px;
      height: 44px;
      border-radius: 13px;
      font-size: 17px;
      min-width: 44px;
      min-height: 44px;
    }
    .composer textarea {
      font-size: 16px;
      padding: 8px 6px;
      min-height: 24px;
      line-height: 1.5;
    }
    .composer textarea::placeholder {
      opacity: 0;
      pointer-events: none;
    }
}
/* On very narrow phones, keep the toggle compact but text is all we have now */
@media (max-width: 359px) {
    .mode-trigger { padding: 0 9px; gap: 4px; font-size: 12px; }
    .composer { gap: 6px; padding: 6px 6px 6px 10px; }
}

/* ---- Welcome + suggestions ---- */
.chat-welcome { animation: fadeInUp 0.7s ease-out; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

/* Hero headline — stacked words rising in sequence */
.hero-line { 
    opacity: 0; 
    transform: translateY(26px); 
    animation: heroRise 0.75s cubic-bezier(0.22,1,0.36,1) forwards; 
    color: #c9c9cf;
    font-weight: 600;
    letter-spacing: -0.015em;
}
.hero-line:nth-child(1) { animation-delay: 0.05s; }
.hero-line:nth-child(2) { animation-delay: 0.18s; }
.hero-line:nth-child(3) { animation-delay: 0.31s; }
@keyframes heroRise { to { opacity: 1; transform: translateY(0); } }
.hero-accent { 
    background: linear-gradient(to right, #f1f1f4, #2f2f36); 
    -webkit-background-clip: text; 
    background-clip: text; 
    color: transparent; 
    font-weight: 800;
    letter-spacing: -0.01em;
}
.hero-logo { width: 74px; height: 74px; border-radius: 22px; overflow: hidden; position: relative; border: 1px solid var(--border-2); box-shadow: 0 18px 50px -16px rgba(0,0,0,0.6); margin-bottom: 22px; }
.hero-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-logo.hero-logo-fallback { background: var(--accent-grad); display: flex; align-items: center; justify-content: center; }
.hero-logo.hero-logo-fallback::after { content: "\f0d0"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: #fff; font-size: 30px; }

.message-enter { animation: messagePop 0.4s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes messagePop { from { opacity: 0; transform: scale(0.97) translateY(12px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.typing-dot { animation: typingBounce 1.4s infinite ease-in-out; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; } .typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce { 0%,80%,100% { transform: scale(0); } 40% { transform: scale(1); } }

/* Agent loader: a fan of 4 white cards (the FourcardsAI mark) spinning smoothly. */
.card-spinner { position: relative; width: 38px; height: 38px; animation: cardFanSpin 1.9s linear infinite; }
.cs-card { position: absolute; left: 50%; top: 50%; width: 11px; height: 15px; margin: -7.5px 0 0 -5.5px;
    background: #fff; border-radius: 2.5px; transform-origin: 50% 86%; box-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.cs-card:nth-child(1) { transform: rotate(-26deg) translateY(-2px); opacity: 0.78; }
.cs-card:nth-child(2) { transform: rotate(-9deg)  translateY(-4px); opacity: 0.9; }
.cs-card:nth-child(3) { transform: rotate(9deg)   translateY(-4px); opacity: 0.9; }
.cs-card:nth-child(4) { transform: rotate(26deg)  translateY(-2px); opacity: 0.78; }
@keyframes cardFanSpin { to { transform: rotate(360deg); } }

mark { background: rgba(255,255,255,0.85); color: #09090b; padding: 1px 4px; border-radius: 3px; font-weight: 600; }

/* ---- Scroll-to-bottom FAB ---- */
.scroll-fab { position: fixed; right: 16px; bottom: calc(158px + env(safe-area-inset-bottom)); width: 42px; height: 42px; border-radius: 9999px; color: var(--text); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(0,0,0,0.5); cursor: pointer; z-index: 40; border: 1px solid var(--border-2); opacity: 0; pointer-events: none; transform: translateY(8px); transition: all 0.25s; }
.scroll-fab.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-fab:hover { background: var(--surface-2); color: #fff; }

/* ---- Misc ---- */
.cta { background: #fff; color: #09090b; box-shadow: 0 20px 45px -14px rgba(0,0,0,0.5); transition: transform 0.18s, box-shadow 0.2s; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 24px 55px -14px rgba(0,0,0,0.6); }
.cta:active { transform: scale(0.985); }
.top-icon { color: var(--muted); display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; transition: all 0.18s; cursor: pointer; }
.top-icon:hover { color: #fff; background: var(--surface-2); }
.clear-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--faint); background: none; border: none; cursor: pointer; }
.clear-btn:hover { color: #fff; }
.search-field { background: var(--surface); border: 1px solid var(--border); font-size: 16px; }   /* 16px: iOS zooms on focus for inputs <16px (same reason the composer is 16px) */
.search-field:focus { outline: none; border-color: rgba(255,255,255,0.3); }
.search-ic { top: 50%; transform: translateY(-50%); }   /* magnifier vertically centered (was a fixed top offset, sat too high) */

/* Safe areas (iPhone notch / home indicator) */
.safe-top { padding-top: calc(env(safe-area-inset-top) + 0.75rem) !important; }
.safe-bottom { padding-bottom: 12px !important; }   /* fixed: composer bar height stays constant regardless of keyboard (env safe-area-inset-bottom was toggling 0↔~20px and changing the bar height) */
.safe-x { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .message-enter, .chat-welcome { animation: none; }
    .hero-line { opacity: 1; transform: none; animation: none; }
    .card-spinner { animation: none; }
}
