/* Aura — style.css  |  v19  |  Brinx Labs */

/* ── Reset & tokens ───────────────────────────────────────────────────────*/
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --font-serif: 'Lora', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Mono', monospace;

  --accent:        #6B2D3E;
  --accent-dark:   #4a1e2b;
  --accent-mid:    #9c4a60;
  --accent-soft:   #f5edf0;
  --accent-hover:  #581f2f;

  --bg:            #FAFAF8;
  --surface:       #FFFFFF;
  --surface-2:     #F4F4F1;
  --surface-3:     #EBEBЕ7;
  --border:        #E2E2DC;
  --border-soft:   #EDEDE9;
  --text-primary:  #1A1A18;
  --text-secondary:#3D3D39;
  --text-muted:    #7A7A72;
  --error:         #C53030;
  --error-bg:      #FFF5F5;
  --error-border:  #FEB2B2;
  --trans:         .15s ease;
  --radius:        14px;
  --radius-sm:     8px;
  --sidebar-w:     270px;
  --topbar-h:      56px;
  --input-max:     780px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:     0 4px 16px rgba(0,0,0,.1);
  --shadow-lg:     0 12px 40px rgba(0,0,0,.14);
}
body.dark {
  --bg:            #141413;
  --surface:       #1C1C1A;
  --surface-2:     #242422;
  --surface-3:     #2C2C2A;
  --border:        #2E2E2C;
  --border-soft:   #262624;
  --text-primary:  #F0F0EC;
  --text-secondary:#C8C8C2;
  --text-muted:    #888880;
  --accent-soft:   #3d1a24;
  --error-bg:      #2D1515;
  --error-border:  #7F2020;
}

html, body { height: 100%; font-family: var(--font-sans); font-size: 15px; color: var(--text-primary); background: var(--bg); overflow: hidden; -webkit-font-smoothing: antialiased; }

/* ── Layout shell ─────────────────────────────────────────────────────────*/
.sidebar {
  position: fixed; inset: 0 auto 0 0;
  width: var(--sidebar-w); background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; z-index: 200;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.sidebar.closed { transform: translateX(calc(-1 * var(--sidebar-w))); }
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 199; backdrop-filter: blur(2px); }
.overlay.visible { display: block; }

.main {
  position: fixed; inset: 0 0 0 var(--sidebar-w);
  display: flex; flex-direction: column;
  transition: left .25s cubic-bezier(.4,0,.2,1);
  background: var(--bg);
}
.main.sidebar-closed { left: 0; }

/* ── Sidebar internals ────────────────────────────────────────────────────*/
.sidebar-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px; height: var(--topbar-h); flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-serif); font-size: 20px; font-weight: 500; color: var(--text-primary); letter-spacing: -.3px; }
.logo-mark { width: 28px; height: 28px; border-radius: 7px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.new-chat-btn {
  margin: 10px 10px 6px;
  padding: 9px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text-secondary); font-size: 13.5px; font-weight: 500; font-family: var(--font-sans);
  cursor: pointer; display: flex; align-items: center; gap: 8px;
  transition: background var(--trans), color var(--trans);
  flex-shrink: 0;
}
.new-chat-btn:hover { background: var(--accent-soft); color: var(--accent); }

.chat-list { flex: 1; overflow-y: auto; padding: 4px 6px; }
.chat-list::-webkit-scrollbar { width: 3px; }
.chat-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.chat-group-label { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); padding: 8px 8px 3px; font-family: var(--font-sans); }
.chat-empty { font-size: 12px; color: var(--text-muted); padding: 16px 10px; text-align: center; }
.chat-item {
  width: 100%; border: none; background: none; text-align: left; padding: 7px 8px;
  border-radius: 9px; cursor: pointer; display: flex; align-items: center;
  gap: 6px; transition: background var(--trans); position: relative; color: var(--text-primary);
}
.chat-item:hover { background: var(--surface-2); }
.chat-item.active { background: var(--accent-soft); }
.chat-item-content { flex: 1; min-width: 0; }
.chat-item-title { display: block; font-size: 13px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-primary); }
.chat-item-model  { display: block; font-size: 10.5px; color: var(--text-muted); margin-top: 1px; font-family: var(--font-sans); }
.chat-item-del { opacity: 0; border: none; background: none; color: var(--text-muted); cursor: pointer; padding: 3px; border-radius: 5px; display: flex; align-items: center; transition: opacity var(--trans), color var(--trans); flex-shrink: 0; }
.chat-item:hover .chat-item-del { opacity: 1; }
.chat-item-del:hover { color: var(--error); }

.sidebar-bottom { padding: 8px 6px 10px; border-top: 1px solid var(--border); flex-shrink: 0; display: flex; flex-direction: column; gap: 2px; }
.sidebar-menu-item { width: 100%; border: none; background: none; text-align: left; padding: 9px 10px; border-radius: 9px; cursor: pointer; display: flex; align-items: center; gap: 10px; color: var(--text-secondary); font-size: 13px; font-family: var(--font-sans); transition: background var(--trans), color var(--trans); }
.sidebar-menu-item:hover { background: var(--surface-2); color: var(--text-primary); }
.sidebar-menu-item.nav-active { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.sidebar-divider { height: 1px; background: var(--border); margin: 4px 2px; }

.user-row { display: flex; align-items: center; gap: 9px; padding: 8px 8px; border-radius: 9px; transition: background var(--trans); }
.user-row:hover { background: var(--surface-2); }
.user-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0; overflow: hidden; }
.user-info { flex: 1; min-width: 0; }
.user-name  { display: block; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-email { display: block; font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Topbar ────────────────────────────────────────────────────────────────*/
.topbar {
  height: var(--topbar-h); flex-shrink: 0;
  display: flex; align-items: center; gap: 8px; padding: 0 14px;
  border-bottom: 1px solid var(--border); background: var(--surface);
  position: relative; z-index: 100;
}
.icon-btn { width: 34px; height: 34px; border: none; background: none; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: background var(--trans), color var(--trans); flex-shrink: 0; }
.icon-btn:hover { background: var(--surface-2); color: var(--text-primary); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 4px; }

.model-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 11px 6px 9px; border-radius: 20px;
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text-secondary); font-size: 13px; font-weight: 500; font-family: var(--font-sans);
  cursor: pointer; transition: background var(--trans), color var(--trans);
  white-space: nowrap; flex-shrink: 0;
}
.model-pill:hover { background: var(--border-soft); color: var(--text-primary); }
.model-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ── Model picker ─────────────────────────────────────────────────────────*/
.model-picker {
  position: absolute; top: calc(var(--topbar-h) + 6px); left: 50%; transform: translateX(-50%) translateY(-6px);
  width: min(460px, calc(100vw - 28px));
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); z-index: 300; display: flex; flex-direction: column;
  opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s;
}
.model-picker.open { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }
.model-picker-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 10px; border-bottom: 1px solid var(--border-soft); font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.model-picker-close { width: 26px; height: 26px; border: none; background: none; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.model-picker-close:hover { background: var(--surface-2); }

.model-option { width: 100%; border: none; background: none; padding: 11px 14px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: background var(--trans); text-align: left; border-radius: 0; }
.model-option:hover { background: var(--surface-2); }
.model-option.active { background: var(--accent-soft); }
.model-option:first-of-type { border-radius: 0; }
.model-opt-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.model-opt-info strong { font-size: 13.5px; font-weight: 600; color: var(--text-primary); font-family: var(--font-sans); }
.model-opt-info span { font-size: 11.5px; color: var(--text-muted); font-family: var(--font-sans); line-height: 1.4; }
.model-check { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }

.model-picker-divider { height: 1px; background: var(--border-soft); margin: 2px 0; }
.model-picker-toggle-row { padding: 11px 14px 12px; display: flex; align-items: center; gap: 10px; }

/* ── Toggle pill ──────────────────────────────────────────────────────────*/
.mp-toggle { position: relative; display: inline-block; width: 38px; height: 22px; cursor: pointer; flex-shrink: 0; }
.mp-toggle input { opacity: 0; width: 0; height: 0; }
.mp-toggle-track { position: absolute; inset: 0; background: var(--border); border-radius: 11px; transition: background var(--trans); }
.mp-toggle-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.mp-toggle input:checked + .mp-toggle-track { background: var(--accent); }
.mp-toggle input:checked + .mp-toggle-track::after { transform: translateX(16px); }

/* Tier badges */
.aura-tier-tag { font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 20px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; flex-shrink: 0; font-family: var(--font-sans); }
.aura-tier-1 { background: #F0F0EE; color: #888; }
.aura-tier-2 { background: #E8F1FD; color: #3B7DD8; }
.aura-tier-3 { background: #EDF7ED; color: #2D8A4E; }
.aura-tier-4 { background: #F0EBFA; color: #6E45BE; }
body.dark .aura-tier-1 { background: #2A2A28; color: #888; }
body.dark .aura-tier-2 { background: #1A2535; color: #6AAEE8; }
body.dark .aura-tier-3 { background: #1A2E1A; color: #5FC077; }
body.dark .aura-tier-4 { background: #221A30; color: #A57EE0; }

/* ── Pages ────────────────────────────────────────────────────────────────*/
.page { flex: 1; overflow: hidden; display: none; flex-direction: column; opacity: 0; transition: opacity .18s; }
.page.active { display: flex; opacity: 1; }
.page#page-chat { background: var(--bg); }

/* ── Chat area ────────────────────────────────────────────────────────────*/
.chat-area { flex: 1; overflow-y: auto; display: flex; flex-direction: column; padding: 0 0 8px; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.chat-area::-webkit-scrollbar { width: 4px; }
.chat-area::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.chat-area::-webkit-scrollbar-track { background: transparent; }

/* ── Welcome ──────────────────────────────────────────────────────────────*/
.welcome { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; text-align: center; transition: opacity .25s; }
.welcome.gone { display: none; }
.welcome-symbol { width: 52px; height: 52px; border-radius: 14px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; box-shadow: 0 4px 20px rgba(107,45,62,.25); }
.welcome-title { font-family: var(--font-serif); font-size: clamp(24px,5vw,34px); font-weight: 400; color: var(--text-primary); letter-spacing: -.5px; margin-bottom: 6px; }
.welcome-sub { font-size: 15px; color: var(--text-muted); margin-bottom: 32px; font-family: var(--font-sans); }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 540px; }
.chip { padding: 8px 15px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary); font-size: 13px; font-family: var(--font-sans); cursor: pointer; transition: background var(--trans), color var(--trans), border-color var(--trans); }
.chip:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-mid); }

/* ── Messages ─────────────────────────────────────────────────────────────*/
.messages { display: flex; flex-direction: column; gap: 4px; padding: 24px max(16px, calc((100% - var(--input-max)) / 2)) 16px; }
.message { display: flex; flex-direction: column; max-width: min(74%, 680px); animation: msgIn .22s cubic-bezier(0.2,0,0,1) both; }
.message.user { align-self: flex-end; align-items: flex-end; }
.message.ai   { align-self: flex-start; align-items: flex-start; max-width: min(88%, 780px); }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── Message header (AI) ──────────────────────────────────────────────────*/
.msg-header { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.ai-avatar { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 1px 4px rgba(107,45,62,.2); }
.ai-label { font-size: 13px; font-weight: 600; color: var(--text-primary); font-family: var(--font-sans); }
.ai-model-tag { font-size: 11px; font-weight: 400; color: var(--text-muted); font-family: var(--font-sans); background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 7px; }
.ai-time { margin-left: auto; font-size: 10.5px; color: var(--text-muted); white-space: nowrap; }
.search-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 9px; font-weight: 600; font-family: var(--font-sans); padding: 2px 7px; border-radius: 5px; background: #EEF4FF; color: #3B7DD8; letter-spacing: .04em; text-transform: uppercase; }
body.dark .search-badge { background: #1A2535; color: #6AAEE8; }

/* ── Bubbles ──────────────────────────────────────────────────────────────*/
.bubble { padding: 11px 15px; border-radius: 18px; font-size: 15px; line-height: 1.65; word-break: break-word; }
.user-bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.ai-bubble-wrap { width: 100%; }
/* AI content sits directly — no bubble background, cleaner reading experience */
.ai-bubble { color: var(--text-primary); font-size: 15px; line-height: 1.75; word-break: break-word; opacity: 0; transition: opacity .18s ease; }
.ai-bubble.revealed { opacity: 1; }

.msg-time { font-size: 10.5px; color: var(--text-muted); margin-top: 4px; }
.msg-actions { display: flex; gap: 5px; margin-top: 8px; flex-wrap: wrap; opacity: 0; transition: opacity .15s; }
.message:hover .msg-actions,
.message:focus-within .msg-actions { opacity: 1; }
.user-actions { justify-content: flex-end; }
.act-btn { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text-muted); font-size: 11.5px; font-family: var(--font-sans); cursor: pointer; transition: background var(--trans), color var(--trans), border-color var(--trans); }
.act-btn:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-mid); }

.msg-image { max-width: 100%; border-radius: 12px; margin-bottom: 6px; display: block; }
.msg-file-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; background: rgba(255,255,255,.15); border-radius: 8px; font-size: 12px; margin-bottom: 4px; color: rgba(255,255,255,.9); }
.message.ai .msg-file-chip { background: var(--surface-2); color: var(--text-secondary); }

/* ── Think block — proper structured reasoning ───────────────────────────*/
.think-block { border: 1px solid var(--border-soft); border-radius: 12px; background: var(--surface-2); margin-bottom: 14px; overflow: hidden; }
.think-summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--text-secondary); font-family: var(--font-sans); letter-spacing: .02em; user-select: none; transition: background .15s; }
.think-summary:hover { background: var(--border-soft); }
.think-summary::-webkit-details-marker { display: none; }
.think-icon { width: 20px; height: 20px; border-radius: 5px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.think-icon svg { color: var(--accent); }
.think-title-text { flex: 1; }
.think-step-count { font-size: 11px; font-weight: 400; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 1px 8px; }
.think-chevron { transition: transform .22s cubic-bezier(0.4,0,0.2,1); flex-shrink: 0; color: var(--text-muted); }
details[open] .think-chevron { transform: rotate(180deg); }
.think-body { border-top: 1px solid var(--border); }
/* Each reasoning step */
.think-step { display: flex; gap: 0; border-bottom: 1px solid var(--border-soft); }
.think-step:last-child { border-bottom: none; }
.think-step-line { width: 3px; background: linear-gradient(to bottom, var(--accent-soft), var(--border-soft)); flex-shrink: 0; margin: 0; }
.think-step-content { padding: 10px 14px; flex: 1; }
.think-step-label { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); font-family: var(--font-sans); margin-bottom: 4px; }
.think-step-text { font-size: 13px; color: var(--text-secondary); line-height: 1.65; font-family: var(--font-sans); }
.think-step-text p { margin-bottom: 5px; }
.think-step-text p:last-child { margin-bottom: 0; }
/* Fallback plain body (when no steps parsed) */
.think-plain { padding: 12px 14px; font-size: 13px; color: var(--text-secondary); line-height: 1.7; font-family: var(--font-sans); }
.think-plain p { margin-bottom: 6px; }
.think-plain p:last-child { margin-bottom: 0; }

/* ── AI markdown ──────────────────────────────────────────────────────────*/
.ai-bubble h1,.ai-bubble h2,.ai-bubble h3,.ai-bubble h4 { font-family: var(--font-sans); font-weight: 600; color: var(--text-primary); margin: 14px 0 6px; line-height: 1.35; }
.ai-bubble h1 { font-size: 18px; } .ai-bubble h2 { font-size: 16px; } .ai-bubble h3,.ai-bubble h4 { font-size: 14px; }
.ai-bubble p { margin-bottom: 8px; } .ai-bubble p:last-child { margin-bottom: 0; }
.ai-bubble ul,.ai-bubble ol { padding-left: 20px; margin-bottom: 8px; }
.ai-bubble li { margin-bottom: 3px; }
.ai-bubble strong { font-weight: 600; }
.ai-bubble em { font-style: italic; }
.ai-bubble del { text-decoration: line-through; opacity: .7; }
.ai-bubble a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.ai-bubble a:hover { color: var(--accent-dark); }
.ai-bubble hr { border: none; border-top: 1px solid var(--border); margin: 12px 0; }
.ai-bubble blockquote { border-left: 3px solid var(--accent-mid); padding-left: 12px; color: var(--text-muted); margin: 8px 0; font-style: italic; }
.ai-bubble code { font-family: var(--font-mono); font-size: 13px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; color: var(--text-primary); }
.ai-bubble pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; overflow-x: auto; margin: 10px 0; position: relative; }
.ai-bubble pre code { background: none; border: none; padding: 0; font-size: 13px; line-height: 1.6; color: var(--text-secondary); }
.ai-bubble .lang-python  code { color: #2962FF; }
.ai-bubble .lang-javascript code,.ai-bubble .lang-js code,.ai-bubble .lang-typescript code,.ai-bubble .lang-ts code { color: #F59E0B; }
.ai-bubble .lang-kotlin code,.ai-bubble .lang-java code { color: #E85D04; }
.ai-bubble .lang-html code,.ai-bubble .lang-xml code { color: #D63384; }
.ai-bubble .lang-css code,.ai-bubble .lang-scss code { color: #7952B3; }
.ai-bubble .lang-bash code,.ai-bubble .lang-sh code { color: #2D8A4E; }
.ai-bubble .lang-json code { color: #0369A1; }
.md-table-wrap { overflow-x: auto; margin: 10px 0; }
.md-table { border-collapse: collapse; font-size: 13px; min-width: 100%; }
.md-table th { background: var(--surface-2); font-weight: 600; text-align: left; padding: 8px 12px; border: 1px solid var(--border); color: var(--text-secondary); }
.md-table td { padding: 7px 12px; border: 1px solid var(--border); color: var(--text-primary); }
.md-table tr:nth-child(even) td { background: var(--surface-2); }

/* ── Search sources ───────────────────────────────────────────────────────*/
.search-sources { margin-top: 10px; }
.search-sources-label { font-size: 10.5px; font-weight: 600; color: var(--text-muted); font-family: var(--font-sans); letter-spacing: .04em; text-transform: uppercase; display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.search-sources-list { display: flex; flex-wrap: wrap; gap: 5px; }
.search-source-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary); font-size: 12px; font-family: var(--font-sans); text-decoration: none; transition: background var(--trans), color var(--trans); }
.search-source-chip:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-mid); }
.source-num { width: 14px; height: 14px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.source-title { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }

/* ── Error card ───────────────────────────────────────────────────────────*/
.error-bubble { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--error-bg); border: 1px solid var(--error-border); border-radius: 12px; flex-wrap: wrap; }
.error-bubble-icon { color: var(--error); flex-shrink: 0; display: flex; }
.error-bubble-text { flex: 1; font-size: 13.5px; color: var(--error); font-family: var(--font-sans); line-height: 1.4; }
.retry-btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; background: var(--error); color: #fff; border: none; border-radius: 20px; font-size: 12px; font-weight: 600; font-family: var(--font-sans); cursor: pointer; transition: background var(--trans); white-space: nowrap; flex-shrink: 0; }
.retry-btn:hover { background: #9B2020; }

/* ── Typing indicator ─────────────────────────────────────────────────────*/
.typing-ind { display: flex; gap: 4px; align-items: center; padding: 10px 2px 4px; }
.t-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); animation: tdot 1.2s ease-in-out infinite; }
.t-dot:nth-child(2) { animation-delay: .2s; }
.t-dot:nth-child(3) { animation-delay: .4s; }
@keyframes tdot { 0%,80%,100% { transform: scale(1); opacity: .4; } 40% { transform: scale(1.15); opacity: 1; } }

/* ── Edit user message ────────────────────────────────────────────────────*/
.msg-edit-area { width: 100%; min-height: 60px; padding: 10px 13px; border-radius: 12px; border: 1px solid var(--accent); background: var(--surface); color: var(--text-primary); font-size: 15px; font-family: var(--font-sans); resize: vertical; outline: none; line-height: 1.55; }

/* ── Input zone ───────────────────────────────────────────────────────────*/
.input-zone {
  padding: 8px max(12px, calc((100% - var(--input-max)) / 2)) 10px;
  background: var(--bg); flex-shrink: 0;
}
.attach-previews { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 7px; }
.att-prev { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 7px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); max-width: 180px; position: relative; }
.att-thumb { width: 32px; height: 32px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.att-icon { width: 32px; height: 32px; border-radius: 6px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--text-muted); }
.att-icon-pdf { background: #FFF1F1; color: var(--error); }
.att-info { flex: 1; min-width: 0; }
.att-name { display: block; font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-primary); }
.att-meta { display: block; font-size: 10px; color: var(--text-muted); }
.att-rm { position: absolute; top: -5px; right: -5px; width: 18px; height: 18px; border-radius: 50%; border: none; background: var(--text-muted); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }

.input-shell {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s;
  overflow: hidden;
}
.input-shell:focus-within { border-color: var(--accent-mid); box-shadow: 0 0 0 3px rgba(107,45,62,.1); }
.input-shell-top { padding: 12px 14px 0; }
.input-shell-bottom { display: flex; align-items: center; justify-content: space-between; padding: 7px 9px 9px; }
.input-shell-left,.input-shell-right { display: flex; align-items: center; gap: 4px; }
.input-field { width: 100%; border: none; background: none; outline: none; resize: none; font-size: 15px; font-family: var(--font-sans); color: var(--text-primary); line-height: 1.55; max-height: 200px; overflow-y: auto; }
.input-field::placeholder { color: var(--text-muted); }
.input-field::-webkit-scrollbar { width: 3px; }
.input-field::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.input-caption { font-size: 10.5px; color: var(--text-muted); text-align: center; padding: 5px 0 0; font-family: var(--font-sans); }

.bar-icon-btn { width: 32px; height: 32px; border: none; background: none; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: background var(--trans), color var(--trans); flex-shrink: 0; }
.bar-icon-btn:hover { background: var(--surface-2); color: var(--text-primary); }
.bar-icon-btn.recording { color: var(--error); background: #FFF5F5; animation: pulse-mic .8s ease-in-out infinite; }
.bar-icon-btn.vc-active { color: var(--accent); }
@keyframes pulse-mic { 0%,100% { opacity: 1; } 50% { opacity: .6; } }

.send-btn { width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background var(--trans), transform .1s; flex-shrink: 0; }
.send-btn:disabled { background: var(--border); cursor: not-allowed; }
.send-btn:not(:disabled):hover { background: var(--accent-hover); transform: scale(1.04); }
.stop-btn { width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--error); color: #fff; display: none; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.stop-btn:hover { background: #9B2020; }

/* ── Voice conversation overlay ───────────────────────────────────────────*/
.vc-overlay { position: fixed; inset: 0; background: rgba(10,10,8,.6); z-index: 500; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .25s; backdrop-filter: blur(8px); }
.vc-overlay.open { opacity: 1; pointer-events: all; }
.vc-modal { background: var(--surface); border-radius: 24px; padding: 44px 40px 36px; display: flex; flex-direction: column; align-items: center; gap: 0; min-width: 280px; max-width: 320px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.vc-orb-wrap { margin-bottom: 28px; position: relative; }
.vc-orb { width: 100px; height: 100px; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; transition: all .35s ease; }
.vc-orb-ring { position: absolute; inset: -8px; border-radius: 50%; border: 2px solid transparent; transition: all .35s; }
.vc-orb-core { width: 100px; height: 100px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface-2); transition: background .35s; color: var(--text-muted); }

/* Orb states */
.vc-listening .vc-orb-core { background: #f5edf0; color: var(--accent); animation: vc-pulse-listen 1.3s ease-in-out infinite; }
.vc-listening .vc-orb-ring { border-color: var(--accent-mid); animation: vc-ring-spin 3s linear infinite; }
.vc-thinking  .vc-orb-core { background: #FEF3C7; color: #D97706; animation: vc-pulse-think 1.8s ease-in-out infinite; }
.vc-thinking  .vc-orb-ring { border-color: #D97706; border-style: dashed; animation: vc-ring-spin 2s linear infinite; }
.vc-speaking  .vc-orb-core { background: #EEF4FF; color: #3B7DD8; animation: vc-pulse-speak .7s ease-in-out infinite; }
.vc-speaking  .vc-orb-ring { border-color: #3B7DD8; animation: vc-ring-spin 1s linear infinite; }

@keyframes vc-pulse-listen { 0%,100%{transform:scale(1)} 50%{transform:scale(1.06)} }
@keyframes vc-pulse-think  { 0%,100%{transform:scale(1)} 50%{transform:scale(1.04)} }
@keyframes vc-pulse-speak  { 0%,100%{transform:scale(1)} 50%{transform:scale(1.09)} }
@keyframes vc-ring-spin    { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

.vc-status { font-size: 17px; font-weight: 600; color: var(--text-primary); font-family: var(--font-sans); letter-spacing: -.2px; margin-bottom: 6px; }
.vc-transcript { font-size: 13px; color: var(--text-muted); font-family: var(--font-sans); text-align: center; min-height: 36px; line-height: 1.45; padding: 0 8px; margin-bottom: 24px; }
.vc-controls { display: flex; gap: 10px; }
.vc-end-btn { display: flex; align-items: center; gap: 8px; padding: 11px 22px; border: none; border-radius: 24px; background: var(--error); color: #fff; font-size: 13.5px; font-weight: 600; font-family: var(--font-sans); cursor: pointer; transition: background var(--trans); }
.vc-end-btn:hover { background: #9B2020; }

/* ── Popovers & dialogs ───────────────────────────────────────────────────*/
.popover { position: fixed; bottom: 70px; left: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); z-index: 400; min-width: 180px; opacity: 0; pointer-events: none; transform: translateY(6px); transition: opacity .15s, transform .15s; }
.popover.open { opacity: 1; pointer-events: all; transform: none; }
.popover-item { width: 100%; border: none; background: none; padding: 10px 14px; text-align: left; display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-family: var(--font-sans); color: var(--text-secondary); cursor: pointer; transition: background var(--trans), color var(--trans); }
.popover-item:hover { background: var(--surface-2); color: var(--text-primary); }
.popover-item.danger { color: var(--error); }
.popover-item.danger:hover { background: var(--error-bg); }
.popover-divider { height: 1px; background: var(--border); margin: 2px 0; }

.dialog-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 600; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s; backdrop-filter: blur(4px); }
.dialog-overlay.open { opacity: 1; pointer-events: all; }
.dialog { background: var(--surface); border-radius: var(--radius); padding: 24px; width: min(380px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); border: 1px solid var(--border); animation: modalIn .2s ease; }
@keyframes modalIn { from{transform:translateY(10px) scale(.97);opacity:0} to{transform:none;opacity:1} }
.dialog-title { font-size: 16px; font-weight: 600; color: var(--text-primary); font-family: var(--font-sans); margin-bottom: 8px; }
.dialog-body  { font-size: 14px; color: var(--text-muted); font-family: var(--font-sans); line-height: 1.5; margin-bottom: 20px; }
.dialog-actions { display: flex; gap: 8px; justify-content: flex-end; }
.dialog-cancel  { padding: 8px 16px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-secondary); font-size: 13.5px; font-family: var(--font-sans); cursor: pointer; }
.dialog-confirm { padding: 8px 16px; border-radius: 8px; border: none; background: var(--error); color: #fff; font-size: 13.5px; font-weight: 500; font-family: var(--font-sans); cursor: pointer; }
.dialog-confirm:hover { background: #9B2020; }

/* ── Toast ────────────────────────────────────────────────────────────────*/
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(10px); background: var(--text-primary); color: var(--bg); padding: 9px 18px; border-radius: 22px; font-size: 13.5px; font-family: var(--font-sans); z-index: 700; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; white-space: nowrap; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Settings & generic pages ─────────────────────────────────────────────*/
.settings-wrap,.legal-wrap { flex: 1; overflow-y: auto; padding: 24px max(20px, calc((100% - 680px)/2)); }
.settings-wrap::-webkit-scrollbar,.legal-wrap::-webkit-scrollbar { width: 4px; }
.page-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.back-btn { display: flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary); font-size: 13px; font-family: var(--font-sans); cursor: pointer; transition: background var(--trans); }
.back-btn:hover { background: var(--surface-2); }
.page-title { font-size: 18px; font-weight: 600; color: var(--text-primary); font-family: var(--font-sans); }
.settings-body { display: flex; flex-direction: column; gap: 24px; }
.settings-group { display: flex; flex-direction: column; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.settings-group-title { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; padding: 12px 16px 6px; font-family: var(--font-sans); }
.settings-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--border-soft); }
.settings-row:last-child { border-bottom: none; }
.settings-row > div { flex: 1; }
.settings-row strong { font-size: 13.5px; font-weight: 500; color: var(--text-primary); font-family: var(--font-sans); display: block; }
.settings-row p { font-size: 12px; color: var(--text-muted); font-family: var(--font-sans); margin-top: 2px; }
.settings-row.link-row { cursor: pointer; transition: background var(--trans); }
.settings-row.link-row:hover { background: var(--surface-2); }
.settings-input,.settings-select { padding: 7px 11px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-primary); font-size: 13px; font-family: var(--font-sans); outline: none; }
.settings-input:focus,.settings-select:focus { border-color: var(--accent-mid); }
.settings-btn { padding: 7px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-secondary); font-size: 13px; font-family: var(--font-sans); cursor: pointer; transition: background var(--trans); }
.settings-btn:hover { background: var(--border-soft); }
.settings-btn.danger { border-color: var(--error-border); color: var(--error); background: var(--error-bg); }
.settings-btn.danger:hover { background: #FEE2E2; }
.primary-action-btn { width: 100%; padding: 12px; border-radius: 10px; border: none; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; font-family: var(--font-sans); cursor: pointer; transition: background var(--trans); }
.primary-action-btn:hover { background: var(--accent-hover); }
.danger-action-btn { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--error-border); background: var(--error-bg); color: var(--error); font-size: 14px; font-weight: 500; font-family: var(--font-sans); cursor: pointer; margin-top: 6px; }
.toggle-group { display: flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; background: var(--surface-2); }
.toggle-opt { padding: 7px 16px; border: none; background: none; color: var(--text-muted); font-size: 13px; font-family: var(--font-sans); cursor: pointer; transition: background var(--trans), color var(--trans); }
.toggle-opt.active { background: var(--surface); color: var(--text-primary); font-weight: 500; box-shadow: var(--shadow-sm); border-radius: 7px; }
.switch { position: relative; width: 38px; height: 22px; cursor: pointer; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-thumb { position: absolute; inset: 0; background: var(--border); border-radius: 11px; transition: background var(--trans); }
.switch-thumb::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + .switch-thumb { background: var(--accent); }
.switch input:checked + .switch-thumb::after { transform: translateX(16px); }

/* ── Legal ────────────────────────────────────────────────────────────────*/
.legal-body { font-size: 14px; color: var(--text-secondary); font-family: var(--font-sans); line-height: 1.7; }
.legal-body h1 { font-size: 20px; font-weight: 600; color: var(--text-primary); margin-bottom: 16px; }
.legal-body p { margin-bottom: 12px; }

/* ── Gen history ──────────────────────────────────────────────────────────*/
.gen-loading { display: flex; align-items: center; gap: 8px; }
.gen-history-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; font-family: var(--font-sans); }
.gen-history-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.gen-history-item { border-radius: 8px; overflow: hidden; cursor: pointer; border: 1px solid var(--border); background: var(--surface-2); transition: transform .15s, box-shadow .15s; }
.gen-history-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.gen-history-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.gen-history-prompt { font-size: 10px; color: var(--text-muted); padding: 4px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-sans); }

/* ── Spinner ──────────────────────────────────────────────────────────────*/
@keyframes spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
.spin { animation: spin 1s linear infinite; }

/* ── Scrollbar global ─────────────────────────────────────────────────────*/
* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }

/* ── Mobile ───────────────────────────────────────────────────────────────*/
@media (max-width: 700px) {
  :root { --sidebar-w: 82vw; }
  .main { left: 0 !important; }
  .model-picker { width: calc(100vw - 20px); }
  .messages { padding: 12px 12px; }
  .input-zone { padding: 6px 10px 10px; }
  .message { max-width: 90%; }
  .message.ai { max-width: 96%; }
  .welcome-title { font-size: 26px; }
  .suggestions { gap: 6px; }
  .settings-wrap,.legal-wrap { padding: 16px 14px; }
  .gen-history-grid { grid-template-columns: repeat(3,1fr); }
  .vc-modal { min-width: 260px; padding: 36px 28px 28px; }
}
@media (max-width: 400px) {
  .gen-history-grid { grid-template-columns: repeat(2,1fr); }
  .suggestions .chip { font-size: 12px; padding: 7px 12px; }
}

/* ── Pro modal ────────────────────────────────────────────────────────────*/
.pro-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(4px); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.pro-modal-overlay.open { opacity: 1; pointer-events: all; }
.pro-modal { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px 28px 28px; width: min(460px, 100%); box-shadow: 0 24px 60px rgba(0,0,0,.18); position: relative; animation: modalIn .22s cubic-bezier(0.2,0,0,1); }
.pro-close-btn { position: absolute; top: 14px; right: 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-muted); transition: background .15s, color .15s; }
.pro-close-btn:hover { background: var(--border); color: var(--text-primary); }
.pro-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.pro-orb { width: 48px; height: 48px; border-radius: 14px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; box-shadow: 0 4px 16px rgba(107,45,62,.3); }
.pro-title { font-family: var(--font-serif); font-size: 22px; font-weight: 500; color: var(--text-primary); margin: 0 0 2px; }
.pro-subtitle { font-size: 13px; color: var(--text-muted); margin: 0; font-family: var(--font-sans); }
.pro-rate-note { background: #FFF8E6; border: 1px solid #F5D87A; border-radius: 10px; padding: 10px 14px; font-size: 13px; color: #7a5a00; font-family: var(--font-sans); margin-bottom: 16px; line-height: 1.4; }
body.dark .pro-rate-note { background: #2a2200; border-color: #5a4500; color: #f0c040; }
.pro-price-row { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 20px; padding: 16px 18px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; }
.pro-price-main { display: flex; align-items: baseline; gap: 3px; }
.pro-currency { font-size: 15px; font-weight: 600; color: var(--text-secondary); font-family: var(--font-sans); }
.pro-amount { font-size: 42px; font-weight: 700; color: var(--text-primary); font-family: var(--font-sans); line-height: 1; }
.pro-price-meta { display: flex; flex-direction: column; gap: 4px; }
.pro-per-month { font-size: 13px; color: var(--text-muted); font-family: var(--font-sans); }
.pro-save-tag { font-size: 11px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-mid); border-radius: 5px; padding: 2px 8px; font-family: var(--font-sans); }
.pro-features-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; padding: 0; }
.pro-features-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--text-secondary); font-family: var(--font-sans); line-height: 1.45; }
.pro-feat-icon { font-size: 17px; flex-shrink: 0; margin-top: 1px; width: 22px; text-align: center; }
.pro-features-list strong { color: var(--text-primary); font-weight: 600; }
.pro-pay-btn { width: 100%; padding: 14px 20px; background: var(--accent); color: #fff; border: none; border-radius: 12px; font-size: 15px; font-weight: 600; font-family: var(--font-sans); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s, transform .1s; }
.pro-pay-btn:hover { background: var(--accent-hover); }
.pro-pay-btn:active { transform: scale(.98); }
.pro-trust { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 11.5px; color: var(--text-muted); font-family: var(--font-sans); margin: 10px 0 0; }

/* ── Rate limit countdown ─────────────────────────────────────────────────*/
.rate-countdown { font-size: 24px; font-weight: 700; color: var(--accent); font-family: var(--font-sans); margin: 4px 0; }
.rate-used-bar { height: 5px; border-radius: 3px; background: var(--border); margin: 8px 0 4px; overflow: hidden; }
.rate-used-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width .4s; }

/* ── Upgrade banner ──────────────────────────────────────────────────────*/
.aura-ad-banner { margin: 4px 0; }
.aura-ad-inner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; flex-wrap: wrap; }
.aura-ad-label { font-size: 10px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .07em; font-family: var(--font-sans); flex-shrink: 0; }
.aura-ad-text { flex: 1; font-size: 13px; color: var(--text-secondary); font-family: var(--font-sans); min-width: 160px; }
.aura-ad-cta { padding: 5px 12px; background: var(--accent); color: #fff; border: none; border-radius: 7px; font-size: 12px; font-weight: 600; font-family: var(--font-sans); cursor: pointer; flex-shrink: 0; transition: background .15s; }
.aura-ad-cta:hover { background: var(--accent-hover); }
.aura-ad-close { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 2px; display: flex; flex-shrink: 0; }

/* ── Pro badge inline ────────────────────────────────────────────────────*/
.pro-badge-inline { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-mid); border-radius: 6px; padding: 2px 8px; font-family: var(--font-sans); }

/* ── AI message separator ────────────────────────────────────────────────*/
.message.ai { border-bottom: 1px solid transparent; padding-bottom: 8px; margin-bottom: 4px; }
.message.ai + .message.ai { border-top: 1px solid var(--border-soft); padding-top: 20px; margin-top: 8px; }

/* ── Thinking animation while waiting ───────────────────────────────────*/
.think-live-indicator { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--accent); font-family: var(--font-sans); font-weight: 500; padding: 6px 0 10px; }
.think-live-dots span { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: thinkDot 1.2s ease-in-out infinite; }
.think-live-dots span:nth-child(2) { animation-delay: .2s; }
.think-live-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes thinkDot { 0%,80%,100%{opacity:.2;transform:scale(.8)} 40%{opacity:1;transform:scale(1)} }
