/* SMR AI Brain. Tokens follow brand.config.json: Darwaza ivory surfaces, Neel accent, Manch night + gold for the hero only. */
@font-face { font-family: 'Martel'; src: url('/assets/fonts/Martel-ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Mukta'; src: url('/assets/fonts/Mukta-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Mukta'; src: url('/assets/fonts/Mukta-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --danger: #B42318;
  --danger-dark: #912018;
  --danger-soft: #FDECEA;
  --paper: #FBF7F0;
  --raised: #FFFDF9;
  --ink: #16182B;
  --muted: #5F574B;
  --line: #E7DFD1;
  --neel: #2B3990;
  --neel-dark: #1F2A6E;
  --neel-soft: #E9ECF8;
  --night: #0E0D12;
  --gold: #E9B949;
  --stage-ivory: #F5EFE3;
  --ok: #1E7A46;
  --warn: #9A5B00;
  --bad: #A4262C;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22, 24, 43, .06), 0 6px 18px rgba(22, 24, 43, .06);
  --font-head: 'Martel', Georgia, serif;
  --font-body: 'Mukta', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--font-body); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; line-height: 1.2; margin: 0 0 .5em; }
a { color: var(--neel); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 0; background: var(--neel); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s, transform .05s; }
.btn:hover { background: var(--neel-dark); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.gold { background: var(--gold); color: var(--night); }
.btn.gold:hover { background: #F2C863; }
.btn.ghost { background: transparent; color: var(--neel); border: 1.5px solid var(--neel); }
.btn.ghost:hover { background: var(--neel-soft); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 15px; }
.btn.block { width: 100%; }

/* ---------- Landing ---------- */
.stage { background: var(--night); color: var(--stage-ivory); overflow: hidden; }
.stage-inner { max-width: 1080px; margin: 0 auto; padding: 18px 16px 0; display: grid; gap: 8px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar img { height: 30px; width: auto; }
.topbar a.link { color: var(--stage-ivory); text-decoration: none; font-weight: 600; padding: 10px 4px; }
.hero { display: grid; gap: 8px; align-items: end; padding-top: 18px; }
.hero h1 { font-size: clamp(30px, 7.4vw, 52px); color: #fff; }
.hero h1 .gold { color: var(--gold); }
.hero p.lead { font-size: 19px; color: var(--stage-ivory); max-width: 34ch; margin: 0 0 18px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.hero .note { font-size: 15px; color: #CFC6B5; margin: 0 0 22px; }
.hero-photo { position: relative; justify-self: center; width: min(78vw, 360px); }
.hero-photo::before { content: ''; position: absolute; inset: 14% 4% 0; border-radius: 180px 180px 0 0; border: 2px solid var(--gold); opacity: .8; }
.hero-photo img { position: relative; width: 100%; height: auto; border-radius: 160px 160px 0 0; aspect-ratio: 560 / 600; object-fit: cover; }
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.15fr .85fr; padding-top: 40px; }
  .hero-copy { padding-bottom: 64px; }
}

.section { max-width: 1080px; margin: 0 auto; padding: 44px 16px; }
.section h2 { font-size: clamp(24px, 5vw, 34px); }
.grid3 { display: grid; gap: 14px; }
@media (min-width: 760px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card h3 { font-size: 19px; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--neel-soft); color: var(--neel); display: grid; place-items: center; margin-bottom: 10px; }
.card .ico svg { width: 24px; height: 24px; }
.card p { margin: 0; color: var(--muted); }
.ask-sample { display: grid; gap: 10px; }
.bubble { padding: 12px 14px; border-radius: 16px; max-width: 46ch; }
.bubble.q { background: var(--neel); color: #fff; justify-self: end; border-bottom-right-radius: 4px; }
.bubble.a { background: var(--raised); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.steps li::before { content: counter(s); width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--night); font-weight: 800; display: grid; place-items: center; font-family: var(--font-head); }
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.foot .section { padding: 22px 16px 32px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }

/* ---------- Forms ---------- */
.auth { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; }
.auth-top { background: var(--night); padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.auth-top img.logo { height: 26px; width: auto; }
.auth-main { width: 100%; max-width: 460px; margin: 0 auto; padding: 22px 16px 40px; }
.auth-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.auth-head img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--gold); }
.auth-head h1 { font-size: 24px; margin: 0; }
.auth-head p { margin: 0; color: var(--muted); font-size: 15px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--raised); font-size: 17px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--neel); outline: none; box-shadow: 0 0 0 3px var(--neel-soft); }
.field .err { color: var(--bad); font-size: 14px; min-height: 0; }
.field.bad input { border-color: var(--bad); }
.phone-wrap { display: flex; }
.phone-wrap span { display: grid; place-items: center; padding: 0 12px; border: 1.5px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; background: var(--paper); color: var(--muted); font-weight: 600; }
.phone-wrap input { border-radius: 0 12px 12px 0; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 15px; margin: 4px 0 16px; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--neel); }
.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-size: 15px; }
.alert.bad { background: #FBE9EA; color: var(--bad); }
.alert.ok { background: #E6F4EC; color: var(--ok); }
.alert.info { background: var(--neel-soft); color: var(--neel-dark); }
.muted { color: var(--muted); }
.center { text-align: center; }
.pw-wrap { position: relative; }
.pw-wrap button { position: absolute; right: 6px; top: 6px; height: 36px; padding: 0 10px; border: 0; background: transparent; color: var(--neel); font-weight: 600; cursor: pointer; }

/* ---------- Chat app ---------- */
.chat { height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; }
@media (min-width: 900px) { .shell { display: grid; grid-template-columns: 290px 1fr; height: 100dvh; } }
.side { display: none; background: var(--raised); border-right: 1px solid var(--line); flex-direction: column; min-height: 0; }
.side.open { display: flex; position: fixed; inset: 0 22% 0 0; z-index: 30; box-shadow: 0 0 0 100vmax rgba(14, 13, 18, .45); }
@media (min-width: 900px) { .side { display: flex; } .side.open { position: static; box-shadow: none; } }
.side-head { padding: 14px; display: grid; gap: 10px; border-bottom: 1px solid var(--line); }
.side-list { overflow-y: auto; overflow-x: hidden; padding: 6px 8px 12px; flex: 1; overscroll-behavior: contain; }
.side-foot { padding: 12px 14px; border-top: 1px solid var(--line); font-size: 14px; display: grid; gap: 6px; }
.side-foot button { border: 0; background: none; color: var(--neel); padding: 6px 0; text-align: left; cursor: pointer; font-weight: 600; }

.bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--night); color: var(--stage-ivory); }
.bar .menu { border: 0; background: transparent; color: var(--stage-ivory); width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; border-radius: 10px; }
@media (min-width: 900px) { .bar .menu { display: none; } }
.bar img.av { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--gold); }
.bar .who { line-height: 1.15; flex: 1; min-width: 0; }
.bar .who b { display: block; font-family: var(--font-head); font-size: 16px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) { .bar .who b { font-size: 15px; } .bar .who span { font-size: 12px; } .bar img.av { width: 34px; height: 34px; } }
.bar .who span { font-size: 13px; color: #CFC6B5; }
.quota { font-size: 13px; font-weight: 600; background: rgba(233, 185, 73, .14); color: var(--gold); border: 1px solid rgba(233, 185, 73, .45); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }

.thread { overflow-y: auto; padding: 16px 12px 8px; scroll-behavior: smooth; }
.thread-inner { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.msg { display: grid; gap: 6px; }
.msg.user { justify-items: end; }
.msg.user .text { background: var(--neel); color: #fff; padding: 10px 14px; border-radius: 18px 18px 4px 18px; max-width: 85%; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.bot { grid-template-columns: 34px 1fr; gap: 8px; align-items: start; }
.msg.bot img.av { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--gold); }
.msg.bot .body { background: var(--raised); border: 1px solid var(--line); border-radius: 4px 18px 18px 18px; padding: 12px 14px; box-shadow: var(--shadow); min-width: 0; }
.msg.bot .text { overflow-wrap: anywhere; }
.msg.bot .text p { margin: 0 0 .6em; }
.msg.bot .text p:last-child { margin-bottom: 0; }
.msg.bot .text ul, .msg.bot .text ol { margin: .2em 0 .6em; padding-left: 1.2em; }
.msg.bot .text li { margin-bottom: .25em; }
.typing { display: inline-flex; gap: 4px; padding: 6px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .4; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .typing i { animation: none; opacity: .8; } .thread { scroll-behavior: auto; } }
.sources { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); display: grid; gap: 6px; }
.sources .lbl { font-size: 13px; color: var(--muted); font-weight: 600; }
.chip { display: flex; gap: 8px; align-items: center; font-size: 14px; background: var(--paper); border: 1px solid var(--line); padding: 6px 10px; border-radius: 10px; }
.chip svg { width: 16px; height: 16px; flex: none; color: var(--neel); }
.chip span.t { color: var(--muted); margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tools { display: flex; gap: 4px; margin-top: 8px; }
.tools button { border: 0; background: transparent; color: var(--muted); height: 34px; min-width: 34px; border-radius: 8px; cursor: pointer; display: inline-grid; place-items: center; padding: 0 8px; font-size: 13px; }
.tools button:hover { background: var(--paper); color: var(--ink); }
.tools button.on { color: var(--neel); background: var(--neel-soft); }
.tools svg { width: 18px; height: 18px; }
/* Suggested next questions under the latest answer: full-width rows, easy to tap with a thumb. */
.next { display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.next-label { margin: 0; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.next button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; text-align: left; border: 1px solid var(--line); background: var(--raised); color: var(--ink); padding: 10px 14px; border-radius: 12px; cursor: pointer; font: inherit; font-size: 15px; line-height: 1.35; transition: border-color .15s, background .15s; }
.next button:hover { border-color: var(--neel); background: var(--neel-soft); }
.next button:focus-visible { outline: 2px solid var(--neel); outline-offset: 2px; }
.next button svg { flex: none; width: 18px; height: 18px; color: var(--neel); transition: transform .15s; }
.next button:hover svg { transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) { .next button, .next button svg { transition: none; } }

.welcome { text-align: center; padding: 18px 6px 4px; display: grid; justify-items: center; gap: 10px; }
.welcome img { width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--gold); }
.welcome h1 { font-size: 24px; margin: 0; }
.welcome p { margin: 0; color: var(--muted); max-width: 40ch; }
.starters { display: grid; gap: 8px; width: 100%; max-width: 560px; margin-top: 8px; }
@media (min-width: 640px) { .starters { grid-template-columns: 1fr 1fr; } }
.starters button { text-align: left; border: 1px solid var(--line); background: var(--raised); padding: 12px 14px; border-radius: 12px; cursor: pointer; font-size: 15px; box-shadow: var(--shadow); }
.starters button:hover { border-color: var(--neel); }
.starters button b { display: block; font-size: 12px; color: var(--neel); text-transform: none; letter-spacing: .02em; }

.composer { border-top: 1px solid var(--line); background: var(--raised); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
.composer form { max-width: 760px; margin: 0 auto; display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { flex: 1; resize: none; min-height: 48px; max-height: 160px; padding: 12px 14px; border-radius: 22px; border: 1.5px solid var(--line); background: var(--paper); font-size: 17px; line-height: 1.4; }
.composer textarea:focus { outline: none; border-color: var(--neel); }
.composer .send { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--neel); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.composer .send[disabled] { opacity: .45; cursor: not-allowed; }
.composer .send svg { width: 22px; height: 22px; }
.composer .small-print { max-width: 760px; margin: 6px auto 0; font-size: 12px; color: var(--muted); text-align: center; }

.limit-box { background: var(--night); color: var(--stage-ivory); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; }
.limit-box h3 { color: #fff; font-size: 20px; margin: 0; }
.limit-box p { margin: 0; color: #CFC6B5; }
.test-ribbon { background: var(--warn); color: #fff; text-align: center; font-size: 13px; font-weight: 600; padding: 4px; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--night); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 15px; z-index: 50; box-shadow: var(--shadow); }

/* ---------- Admin ---------- */
.admin { max-width: 1200px; margin: 0 auto; padding: 16px; }
.admin header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button { border: 1px solid var(--line); background: var(--raised); padding: 8px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 15px; }
.tabs button.on { background: var(--neel); color: #fff; border-color: var(--neel); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.kpi { background: var(--raised); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.kpi b { display: block; font-size: 26px; font-family: var(--font-head); font-variant-numeric: tabular-nums; }
.kpi span { font-size: 13px; color: var(--muted); }
.table-wrap { overflow-x: auto; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--paper); font-weight: 600; position: sticky; top: 0; white-space: nowrap; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--neel-soft); color: var(--neel-dark); }
.pill.bad { background: #FBE9EA; color: var(--bad); } .pill.ok { background: #E6F4EC; color: var(--ok); } .pill.warn { background: #FFF1DC; color: var(--warn); }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-bottom: 12px; }
.row .field { margin: 0; }
.qa-answer { white-space: pre-wrap; max-width: 60ch; font-size: 13px; color: var(--muted); max-height: 7.5em; overflow: hidden; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 80px; padding: 8px 0; }
.bars div { flex: 1; background: var(--neel); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
dialog { background: var(--raised); color: var(--ink); border: 0; border-radius: var(--radius); padding: 18px; max-width: 520px; width: calc(100% - 32px); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(14, 13, 18, .5); }

.prose { max-width: 720px; margin: 0 auto; padding: 24px 16px 48px; }
.prose h1 { font-size: 28px; } .prose h2 { font-size: 20px; margin-top: 1.4em; }

/* ---------- Premium plans ---------- */
dialog.plans { max-width: 460px; padding: 22px 18px 16px; }
.plans h2 { font-size: 24px; margin: 0 0 4px; }
.plans-sub { margin: 0 0 14px; font-size: 15px; }
.plans-x { position: absolute; right: 8px; top: 6px; width: 44px; height: 44px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; }
.plans-list { display: grid; gap: 10px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 6px; background: var(--raised); }
.plan .row1 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.plan b.name { font-size: 17px; }
.plan .price { font-family: var(--font-head); font-size: 22px; white-space: nowrap; }
.plan .price small { font-family: var(--font-body); font-size: 13px; color: var(--muted); font-weight: 400; }
.plan .meta { font-size: 14px; color: var(--muted); }
.plan.founding { background: var(--night); color: var(--stage-ivory); border: 1.5px solid var(--gold); box-shadow: 0 8px 24px rgba(14, 13, 18, .25); padding: 16px; }
.plan.founding .kicker { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.plan.founding b.name { color: #fff; font-family: var(--font-head); font-size: 22px; }
.plan.founding .price { color: var(--gold); font-size: 28px; }
.plan.founding .price small, .plan.founding .meta { color: #CFC6B5; }
.plan .was { text-decoration: line-through; color: #A79E8E; font-size: 15px; margin-right: 6px; font-family: var(--font-body); }
.plan ul { margin: 4px 0 6px; padding-left: 1.1em; font-size: 14px; }
.plan ul li { margin-bottom: 3px; }
.seats { display: grid; gap: 4px; font-size: 13px; color: #CFC6B5; }
.seats .bar { height: 6px; border-radius: 99px; background: rgba(245, 239, 227, .15); overflow: hidden; }
.seats .bar i { display: block; height: 100%; background: var(--gold); }
.plans-fine { font-size: 12px; color: var(--muted); margin: 12px 0 0; text-align: center; }
.founder-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--night); background: var(--gold); border-radius: 999px; padding: 3px 10px; width: fit-content; }
.welcome .founder-badge { margin-top: -2px; }

/* ---------- Beta positioning ---------- */
.beta-pill { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--gold); border: 1px solid rgba(233, 185, 73, .55); background: rgba(233, 185, 73, .1); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.btn.ghost.on-dark { color: var(--stage-ivory); border-color: var(--stage-ivory); }
.btn.ghost.on-dark:hover { background: rgba(245, 239, 227, .08); }
.topics { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.topics li { background: var(--raised); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 15px; box-shadow: var(--shadow); }
.from-line { display: block; margin-top: 10px; font-size: 12px; color: var(--muted); letter-spacing: .02em; }

/* ---------- Framework card + diagram ---------- */
.fw { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: 12px; }
.fw-title { font-family: var(--font-head); font-size: 16px; margin: 0 0 10px; color: var(--neel-dark); }
.fw-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: f; }
.fw-steps li { counter-increment: f; display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: center; background: var(--neel); color: #fff; border-radius: 10px; padding: 8px 10px; font-size: 14px; font-weight: 600; }
.fw-steps li::before { content: counter(f); width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: var(--night); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.fw-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fw-check li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; font-size: 14px; font-weight: 600; }
.fw-check li::before { content: '✓'; width: 20px; height: 20px; border-radius: 6px; background: var(--gold); color: var(--night); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.fw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fw-grid div { background: var(--neel); color: #fff; border-radius: 10px; padding: 12px 10px; font-size: 14px; font-weight: 600; min-height: 64px; display: grid; place-items: center; text-align: center; }
.fw-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.fw-actions .hint { font-size: 12px; color: var(--muted); }
.fw-img { margin-top: 10px; border-radius: 10px; width: 100%; max-width: 420px; height: auto; border: 1px solid var(--line); background: #fff; }

/* ---------- Beta + upgrade ---------- */
.beta-tag { display: inline-block; vertical-align: middle; font-family: var(--font-body); font-size: 10px; font-weight: 600; letter-spacing: .08em; color: var(--night); background: var(--gold); border-radius: 4px; padding: 1px 5px; margin-left: 4px; }
.upgrade-top { min-height: 34px; padding: 0 12px; font-size: 14px; }
@media (max-width: 420px) { .bar .quota { display: none; } .upgrade-top { padding: 0 10px; } }
.plan-free { border: 1px dashed var(--line); border-radius: var(--radius); padding: 12px 14px; font-size: 14px; color: var(--muted); }
.plan-free b { color: var(--ink); }
.unlock { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 14px; }
.unlock label { font-weight: 600; }
.unlock-row { display: flex; gap: 8px; }
.unlock-row input { flex: 1; min-height: 40px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--raised); text-transform: uppercase; }
.unlock-msg { font-size: 13px; color: var(--muted); }
.unlock-msg.ok { color: var(--ok); } .unlock-msg.bad { color: var(--bad); }
.free-strip { font-size: 13px; color: var(--muted); text-align: center; }
.free-strip button { border: 0; background: none; color: var(--neel); font-weight: 600; cursor: pointer; padding: 0; }

.tiers { display: grid; gap: 14px; }
@media (min-width: 760px) { .tiers { grid-template-columns: 1fr 1fr; } }
.tier { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: grid; gap: 8px; align-content: start; }
.tier h3 { margin: 0; font-size: 20px; }
.tier-tag { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--neel); }
.tier-price { font-family: var(--font-head); font-size: 26px; margin: 0; }
.tier-price small { font-family: var(--font-body); font-size: 14px; color: var(--muted); font-weight: 400; }
.tier-price .was { text-decoration: line-through; color: #A79E8E; font-size: 17px; margin-right: 4px; font-family: var(--font-body); }
.tier ul { margin: 4px 0 10px; padding-left: 1.1em; font-size: 15px; }
.tier li { margin-bottom: 4px; }
.gold-tier { background: var(--night); color: var(--stage-ivory); border-color: var(--gold); }
.gold-tier h3 { color: #fff; }
.gold-tier .tier-tag { color: var(--gold); }
.gold-tier .tier-price { color: var(--gold); }
.gold-tier .tier-price small { color: #CFC6B5; }

/* ---------- Chat UX ---------- */
.thinking { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.thinking .status { animation: fadein .4s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.composer .send.stop { background: var(--night); }
.md-h { font-weight: 700; margin: .4em 0 .3em; }
.retry { border: 1px solid var(--line) !important; background: var(--raised) !important; color: var(--neel) !important; font-weight: 600; padding: 0 12px !important; }
.fw-skeleton { margin-top: 10px; aspect-ratio: 4 / 5; max-width: 420px; border-radius: 10px; border: 1px solid var(--line);
  background: linear-gradient(100deg, #F3EDE2 30%, #FBF7F0 50%, #F3EDE2 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite;
  display: grid; place-content: center; gap: 6px; text-align: center; padding: 16px; font-size: 13px; color: var(--muted); }
.fw-skeleton b { font-variant-numeric: tabular-nums; color: var(--neel); }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .fw-skeleton { animation: none; } .thinking .status { animation: none; } }

/* ---------- ASK SMR brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--neel-dark); font-family: var(--font-body); font-weight: 600; letter-spacing: .06em; font-size: 17px; }
.brand b { font-weight: 800; }
.brand img { border-radius: 50%; }
.brand.on-dark { color: #fff; }
.brand.on-dark b { color: var(--gold); }
.welcome img, .msg.bot img.av, .bar img.av { border: 0; }

/* ---------- Hero chat preview ---------- */
.hero-photo { margin-bottom: 0; }
.hero-chat { position: absolute; left: -8%; right: 6%; bottom: 18px; display: grid; gap: 8px; filter: drop-shadow(0 12px 28px rgba(0,0,0,.45)); }
.hc-q { justify-self: end; max-width: 82%; background: var(--neel); color: #fff; font-size: 14px; line-height: 1.4; padding: 9px 12px; border-radius: 14px 14px 4px 14px; }
.hc-a { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: start; background: var(--raised); color: var(--ink); padding: 10px 12px; border-radius: 4px 14px 14px 14px; max-width: 92%; }
.hc-a p { margin: 0; font-size: 14px; line-height: 1.45; }
.hc-a img { border-radius: 50%; }
@media (min-width: 860px) { .hero-chat { left: -30%; right: 18%; bottom: 40px; } }
@media (prefers-reduced-motion: no-preference) { .hero-chat { animation: rise .7s ease .3s both; } @keyframes rise { from { opacity: 0; transform: translateY(12px); } } }
.brand.on-dark img { background: var(--stage-ivory); padding: 3px; }
@media (min-width: 860px) {
  .topbar .brand { gap: 12px; font-size: 26px; }
  .topbar .brand img { width: 60px; height: 60px; }
  .topbar { padding-top: 6px; }
}
@media (max-width: 859px) { .topbar .brand img { width: 40px; height: 40px; } .topbar .brand { font-size: 19px; } }

/* ---------- Admin insights ---------- */
.insight-grid { display: grid; gap: 14px; margin-bottom: 14px; }
@media (min-width: 900px) { .insight-grid { grid-template-columns: 1fr 1fr; } }
.insight-grid .card h3 { margin-bottom: 12px; }
.cat-bars { display: grid; gap: 4px; }
.cat-bar { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr 36px; grid-template-areas: "lbl cbar n" "lbl meta meta"; gap: 2px 10px; align-items: center; border: 0; background: none; text-align: left; padding: 6px 4px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.cat-bar:hover { background: var(--paper); }
.cat-bar .lbl { grid-area: lbl; font-weight: 600; }
.cat-bar .cbar { grid-area: cbar; height: 10px; background: #EFE9DE; border-radius: 99px; overflow: hidden; display: block; }
.cat-bar .cbar i { display: block; height: 100%; background: var(--neel); border-radius: 99px; }
.cat-bar .n { grid-area: n; text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.cat-bar .meta { grid-area: meta; font-size: 12px; color: var(--muted); }
.up { color: var(--ok); font-weight: 600; } .down { color: var(--bad); font-weight: 600; } .gap { color: var(--warn); font-weight: 600; }
.topic-list { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.topic-list button { border: 0; background: none; text-align: left; padding: 4px 0; cursor: pointer; display: grid; gap: 2px; font-size: 14px; }
.topic-list .sample { font-size: 13px; color: var(--muted); font-style: italic; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.star { border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: #B9B0A0; padding: 2px 4px; }
.star.on { color: var(--gold); }
select.cat { font-size: 13px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--raised); max-width: 170px; }

.bar .who .beta-tag { color: var(--night); font-size: 10px; }

/* ---------- App: one calm light theme (18 Nov) ---------- */
.chat { background: var(--paper); }
.bar { background: var(--raised); color: var(--ink); border-bottom: 1px solid var(--line); padding: 10px 16px; }
.bar .menu { color: var(--ink); }
.bar .who b { color: var(--ink); }
.bar .who span { color: var(--muted); }
.bar .who .beta-tag { color: var(--night); background: var(--gold); }
.bar img.av { border: 0; }
.quota { background: var(--paper); color: var(--neel-dark); border: 1px solid var(--line); font-weight: 600; }
.test-tag { font-size: 12px; font-weight: 600; color: var(--warn); background: #FFF4E0; border: 1px solid #F2D9A8; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
@media (max-width: 520px) { .test-tag { display: none; } }
.side { background: var(--raised); }
.side-head { border-bottom-color: var(--line); }
.composer { background: var(--paper); border-top: 0; }
.composer form { background: var(--raised); border: 1.5px solid var(--line); border-radius: 26px; padding: 6px 6px 6px 8px; box-shadow: var(--shadow); align-items: flex-end; }
.composer form:focus-within { border-color: var(--neel); }
.composer textarea { border: 0; background: transparent; padding: 10px 8px; }
.composer textarea:focus { outline: none; }
.composer .send { width: 42px; height: 42px; }
.composer .send[disabled] { background: #E4DED3; color: #A79E8E; opacity: 1; }
.msg.bot .body { box-shadow: none; }
.starters button { box-shadow: none; }
.starters button:hover { border-color: var(--neel); background: var(--raised); }
.welcome img { border: 0; }

/* QA fixes */
.chat { height: var(--app-h, 100dvh); }
@media (min-width: 900px) { .shell { height: var(--app-h, 100dvh); } }
.unlock-row input { font-size: 17px; }
.upgrade-top { min-height: 40px; }
.tools button { min-width: 44px; height: 40px; }
.free-strip button { padding: 10px 6px; }

.acc-form { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--line); }
.acc-form h3 { font-size: 17px; margin: 0 0 8px; }
.acc-form .btn { justify-self: start; }
.acc-form input { font-size: 17px; }

/* ---------- chat history ---------- */
.conv-group { margin: 14px 10px 4px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.conv-group:first-child { margin-top: 6px; }
.conv-empty { padding: 10px 12px; font-size: 14px; color: var(--muted); }
.conv { position: relative; display: flex; align-items: center; min-width: 0; border-radius: 10px; margin: 1px 0; transition: background-color .12s; }
.conv:hover, .conv.menu-open { background: rgba(43, 57, 144, .06); }
.conv.on { background: var(--neel-soft); }
.conv-open { flex: 1; min-width: 0; padding: 10px 6px 10px 12px; font-size: 15px; line-height: 1.3; color: var(--ink); text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 10px; }
.conv.on .conv-open { font-weight: 600; color: var(--neel-dark); }
.conv-open:focus-visible, .conv-more:focus-visible { outline: 2px solid var(--neel); outline-offset: -2px; }
.conv-more { flex: none; width: 34px; height: 34px; margin-right: 3px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none;
  color: var(--muted); fill: currentColor; cursor: pointer; opacity: 0; transition: opacity .12s, background-color .12s; }
.conv:hover .conv-more, .conv.on .conv-more, .conv.menu-open .conv-more, .conv-more:focus-visible { opacity: 1; }
.conv-more:hover, .conv.menu-open .conv-more { background: rgba(43, 57, 144, .12); color: var(--neel-dark); }
@media (hover: none) { .conv-more { opacity: 1; } }
.conv.editing { background: var(--neel-soft); padding: 4px; }
.conv-input { width: 100%; min-width: 0; font: inherit; font-size: 16px; padding: 7px 9px; border: 1.5px solid var(--neel); border-radius: 8px; background: #fff; color: var(--ink); }
.conv-menu { position: fixed; z-index: 60; min-width: 190px; max-width: 260px; padding: 6px; background: var(--raised); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(14, 13, 18, .16), 0 2px 6px rgba(14, 13, 18, .08); }
.conv-menu[hidden] { display: none; }
.conv-menu > button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: none;
  font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; text-align: left; }
.conv-menu > button:hover, .conv-menu > button:focus-visible { background: var(--neel-soft); outline: none; }
.conv-menu .danger { color: var(--danger); }
.conv-menu > button.danger:hover, .conv-menu > button.danger:focus-visible { background: var(--danger-soft); }
.conv-confirm { margin: 6px 8px 10px; font-size: 14px; line-height: 1.4; color: var(--ink); }
.conv-confirm-row { display: flex; gap: 8px; justify-content: flex-end; padding: 0 4px 4px; }
.conv-confirm-row button { border: 1px solid var(--line); background: var(--raised); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink); }
.conv-confirm-row .solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.conv-confirm-row .solid:hover { background: var(--danger-dark); }

/* ---------- My business (profile) ---------- */
.side-foot #profile-btn { display: inline-flex; align-items: center; gap: 8px; }
.pct { font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--neel-soft); color: var(--neel); }
.pct.low { background: var(--gold); color: var(--ink); }
.pct.done { background: transparent; color: var(--ok, var(--neel)); }
dialog.plans.profile { max-width: 640px; }
.prof-meter { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 4px 0 16px; }
.prof-meter span { display: block; height: 100%; width: 0; background: var(--gold); border-radius: inherit; transition: width .3s; }
.prof-form #prof-fields { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
.prof-form .field { margin-bottom: 12px; min-width: 0; }
.prof-form .field label { font-size: 14px; }
.prof-form .field.wide { grid-column: 1 / -1; }
.prof-form .field input, .prof-form .field select, .prof-form .field textarea { font-size: 16px; min-height: 44px; }
.prof-form .field textarea { resize: vertical; line-height: 1.4; }
.prof-actions { position: sticky; bottom: -16px; display: flex; align-items: center; gap: 12px; padding: 12px 0 4px; background: var(--raised); border-top: 1px solid var(--line); }
@media (max-width: 560px) { .prof-form #prof-fields { grid-template-columns: 1fr; } }
.profile-nudge { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; max-width: 640px; margin: 4px auto 16px; padding: 14px 16px; text-align: left; border: 1.5px solid var(--gold); border-radius: 14px; background: var(--raised); color: var(--ink); cursor: pointer; font: inherit; font-size: 15px; line-height: 1.4; }
.profile-nudge b { display: block; font-size: 16px; margin-bottom: 2px; }
.profile-nudge svg { flex: none; width: 20px; height: 20px; color: var(--neel); }
.profile-nudge:hover { background: var(--neel-soft); }
.profile-nudge:focus-visible { outline: 2px solid var(--neel); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .prof-meter span { transition: none; } }

/* ---------- attachments ---------- */
.composer form { flex-wrap: wrap; }
.composer .tool-btn { flex: none; width: 40px; height: 42px; border: 0; background: transparent; color: var(--muted); border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.composer .tool-btn:hover:not([disabled]) { color: var(--neel); background: var(--neel-soft); }
.composer .tool-btn:focus-visible { outline: 2px solid var(--neel); outline-offset: 1px; }
.composer .tool-btn[disabled] { opacity: .35; cursor: not-allowed; }
.composer .tool-btn svg { width: 22px; height: 22px; }
.composer textarea { min-width: 0; }
.composer.drop form { border-color: var(--neel); background: var(--neel-soft); }
.tray { flex: 1 0 100%; display: flex; gap: 8px; overflow-x: auto; padding: 4px 4px 6px; scrollbar-width: thin; }
.tray .chip { position: relative; flex: none; display: flex; align-items: center; gap: 8px; max-width: 220px; padding: 6px 30px 6px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.tray .chip img, .tray .chip-doc { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; }
.tray .chip-doc { display: grid; place-items: center; background: var(--neel-soft); color: var(--neel); }
.tray .chip-doc svg { width: 22px; height: 22px; }
.tray .chip-name { min-width: 0; font-size: 13px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tray .chip-name small { display: block; color: var(--muted); font-size: 12px; }
.tray .chip.uploading { opacity: .7; }
.tray .chip.error { border-color: var(--bad); }
.tray .chip.error small { color: var(--bad); }
.tray .chip-x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.tray .chip-x:hover { background: var(--line); color: var(--ink); }
.msg-files { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; margin-bottom: 6px; }
.msg-files .mf-img img { display: block; width: 120px; height: 120px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.msg-files .mf-doc { display: inline-flex; align-items: center; gap: 8px; max-width: 240px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); text-decoration: none; font-size: 14px; }
.msg-files .mf-doc svg { flex: none; width: 20px; height: 20px; color: var(--neel); }
.msg-files .mf-doc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) { .msg-files .mf-img img { width: 96px; height: 96px; } }

/* ---------- voice ---------- */
.composer .tool-btn.on { color: #fff; background: var(--bad); }
.rec { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 4px 0 10px; font-size: 15px; color: var(--ink); }
.rec[hidden] { display: none; }
.rec #rec-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec b { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.rec-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); animation: recpulse 1.2s ease-in-out infinite; }
.rec-x { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 20px; cursor: pointer; }
.rec-x:hover { background: var(--line); color: var(--ink); }
@keyframes recpulse { 50% { opacity: .3; transform: scale(.8); } }
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none; } }
.composer .tool-btn[hidden], .composer textarea[hidden] { display: none; }


/* ---------- dark mode: follows the phone, or the member's choice (Account > Theme) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --danger: #F2837A;
  --danger-dark: #F6A39C;
  --danger-soft: #3A1F1F;
  --paper: #121318;
  --raised: #1C1E26;
  --ink: #ECE8E0;
  --muted: #A9A193;
  --line: #2F3240;
  --neel: #5566DD;
  --neel-dark: #A9B3F5;
  --neel-soft: #252B4D;
  --stage-ivory: #23252E;
  --ok: #5BC98F;
  --warn: #F0B456;
  --bad: #F2837A;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .3);
  color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --danger: #F2837A;
  --danger-dark: #F6A39C;
  --danger-soft: #3A1F1F;
  --paper: #121318;
  --raised: #1C1E26;
  --ink: #ECE8E0;
  --muted: #A9A193;
  --line: #2F3240;
  --neel: #5566DD;
  --neel-dark: #A9B3F5;
  --neel-soft: #252B4D;
  --stage-ivory: #23252E;
  --ok: #5BC98F;
  --warn: #F0B456;
  --bad: #F2837A;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .3);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .alert.bad, :root:not([data-theme="light"]) .pill.bad { background: #3A1F22; }
  :root:not([data-theme="light"]) .alert.ok, :root:not([data-theme="light"]) .pill.ok { background: #16301F; }
  :root:not([data-theme="light"]) .pill.warn, :root:not([data-theme="light"]) .test-tag { background: #36290F; border-color: #5A4520; }
  :root:not([data-theme="light"]) .composer .send[disabled] { background: #2A2D38; color: #6F6A60; }
  :root:not([data-theme="light"]) .cat-bar .cbar { background: #2A2D38; }
  :root:not([data-theme="light"]) .fw-skeleton { background: linear-gradient(100deg, #1C1E26 30%, #262935 50%, #1C1E26 70%); background-size: 200% 100%; }
  :root:not([data-theme="light"]) .star { color: #6F6A60; }
  :root:not([data-theme="light"]) .plan .was { color: #8A8273; }
}
:root[data-theme="dark"] .alert.bad, :root[data-theme="dark"] .pill.bad { background: #3A1F22; }
:root[data-theme="dark"] .alert.ok, :root[data-theme="dark"] .pill.ok { background: #16301F; }
:root[data-theme="dark"] .pill.warn, :root[data-theme="dark"] .test-tag { background: #36290F; border-color: #5A4520; }
:root[data-theme="dark"] .composer .send[disabled] { background: #2A2D38; color: #6F6A60; }
:root[data-theme="dark"] .cat-bar .cbar { background: #2A2D38; }
:root[data-theme="dark"] .fw-skeleton { background: linear-gradient(100deg, #1C1E26 30%, #262935 50%, #1C1E26 70%); background-size: 200% 100%; }
:root[data-theme="dark"] .star { color: #6F6A60; }
:root[data-theme="dark"] .plan .was { color: #8A8273; }

/* ---------- search, share, edit, jump ---------- */
.conv-search { position: relative; margin-top: 10px; }
.conv-search svg { position: absolute; left: 11px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.conv-search input { width: 100%; min-height: 40px; padding: 8px 12px 8px 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); font-size: 15px; }
.conv-search input:focus { outline: none; border-color: var(--neel); box-shadow: 0 0 0 3px var(--neel-soft); }
.conv.has-snip .conv-open { white-space: normal; }
.conv-snip { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--muted); line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.msg.user { position: relative; }
.msg.user .edit-q { display: none; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; place-items: center; justify-self: end; margin-top: 2px; }
.msg.user .edit-q svg { width: 16px; height: 16px; }
.msg.user .edit-q:hover { background: var(--line); color: var(--ink); }
.msg.user .edit-q:focus-visible { outline: 2px solid var(--neel); }
.thread-inner > .msg.user:nth-last-child(2) .edit-q { display: grid; }
.chat { position: relative; }
.jump { position: absolute; right: 18px; bottom: 150px; z-index: 5; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--raised); color: var(--ink); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; }
.jump svg { width: 20px; height: 20px; }
.jump:hover { border-color: var(--neel); color: var(--neel); }
.jump:focus-visible { outline: 2px solid var(--neel); outline-offset: 2px; }
@media (min-width: 900px) { .jump { right: calc(50% - 380px); } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) a:not(.btn), :root:not([data-theme="light"]) .side-foot button, :root:not([data-theme="light"]) .free-strip button { color: var(--neel-dark); }
}
:root[data-theme="dark"] a:not(.btn), :root[data-theme="dark"] .side-foot button, :root[data-theme="dark"] .free-strip button { color: var(--neel-dark); }
