/* Axon Hub — Research (#/research: the centred composer, then the conversation with its thinking panel and the
   report), Track (#/track: every assessment, with its deadline and its market now) and the shell refinements that
   belong to this slice (the brand mark, five sections, bare pages). The look follows the event-tracking board the
   owner likes (src/axon/track/static/app.css: .hello, .command, .examples, .board rows with tick bars), in Axon Hub's
   tokens (base.css). Classes are prefixed `rs-` (research) and `tk-` (track). Loaded after base.css and news.css, so
   the few shell overrides here win without editing them. */

/* ================================================================== shell */
.topbar .brand { flex: 0 1 auto; min-width: 0; gap: 9px; }
.brand-mark { display: block; width: 33px; height: 21px; flex: none; color: var(--ink); }
.brand-word { white-space: nowrap; }
.brand-tag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.top-tools .top-search[aria-current="page"] { color: var(--ink); background: var(--wash-2); }
.avatar.is-biz { background: var(--biz-wash); color: var(--biz); }
.tabbar.is-biz a[aria-current="page"] { color: var(--biz); }
.tabbar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-chip svg { color: var(--ink-3); }
/* Five sections: on mid-width screens the labels carry the nav on their own, and below 900 px the theme button moves
   into the account menu (app.js NARROW) and the institutional tag stands in for the wordmark. */
@media (max-width: 1180px) and (min-width: 761px) {
  .topbar .nav a svg { display: none; }
  .topbar .nav a { padding: 0 11px; }
}
@media (max-width: 1000px) and (min-width: 761px) { .topbar .wallet-chip { display: none; } }
@media (max-width: 900px) and (min-width: 761px) {
  .topbar .top-theme { display: none; }
  .topbar-in { gap: 12px; }
  .topbar .nav a { padding: 0 9px; }
  .topbar-in.is-biz .brand-word { display: none; }
}
@media (max-width: 760px) { .brand-mark { width: 31px; height: 20px; } }
@media (max-width: 480px) {
  .topbar .top-theme { display: none; }
  .topbar-in { gap: 8px; }
  .lang-switch button { min-width: 30px; padding: 0 7px; }
}
@media (max-width: 360px) { .brand-tag { max-width: 56px; } }
@media (max-width: 400px) { .tabbar { padding-left: 4px; padding-right: 4px; } .tabbar a { padding: 4px 0; } }

/* Bare pages: `route(path, view, { chrome: false })` (app.js) — no top bar, no tab bar. */
body.is-bare #topbar, body.is-bare #tabbar { display: none; }
body.is-bare main { min-height: 100vh; min-height: 100svh; }

/* ================================================================== the page */
.rs-page { max-width: 1120px; position: relative; isolation: isolate; }
.rs-page::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 96px; width: min(900px, 100%); height: 260px; transform: translateX(-50%);
  background: radial-gradient(50% 55% at 50% 50%, var(--rs-glow, var(--accent-wash)) 0%, transparent 72%); pointer-events: none; opacity: 0.9;
}
.rs-biz { --rs-glow: var(--biz-wash); }
.rs-status { display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; font-size: var(--fs-small); color: var(--ink-3); min-height: 20px; }
.rs-status:empty { display: none; }
.rs-sep { color: var(--ink-4); }
.rs-status-run { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); }
.rs-notice { width: 100%; max-width: 780px; margin: 0 auto 16px; }

/* ---------- Research: the centred composer */
.page.rs-ask.is-compose {
  display: flex; flex-direction: column; justify-content: center;
  min-height: calc(100vh - var(--top-h)); min-height: calc(100svh - var(--top-h));
  padding-top: 32px; padding-bottom: clamp(56px, 13vh, 150px);
}
.rs-ask.is-compose::before { top: 46%; height: 340px; transform: translate(-50%, -50%); }
.rs-ask.is-convo { max-width: 860px; }
.rs-ask.is-convo::before { display: none; }
.rs-home { width: 100%; max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; min-width: 0; }
.rs-greet { text-align: center; margin-bottom: 30px; }
.rs-greet h1 { font-size: clamp(30px, 4.2vw, 40px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.12; }
.rs-greet:lang(zh) h1, :lang(zh) .rs-greet h1 { letter-spacing: 0; }
.rs-prompt { margin-top: 10px; font-size: var(--fs-lead); color: var(--ink-3); line-height: 1.45; }
.rs-home > * { animation: rs-rise 460ms var(--ease) both; }
.rs-home > :nth-child(2) { animation-delay: 70ms; }
.rs-home > :nth-child(3) { animation-delay: 120ms; }
@keyframes rs-rise { from { opacity: 0; transform: translateY(10px); } }

/* ================================================================== the command bar */
.rs-command { width: 100%; max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; min-width: 0; }
.rs-box {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 22px; min-height: 66px;
  border-radius: 24px; background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 0 0 0.5px var(--hair-2), 0 1px 2px rgba(0, 0, 0, 0.06), 0 18px 48px -28px rgba(0, 0, 0, 0.45);
  overflow: hidden; transition: box-shadow var(--t-1) var(--ease);
}
.rs-box:focus-within { box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-wash), 0 18px 48px -28px rgba(0, 0, 0, 0.45); }
.rs-lead { width: 18px; height: 18px; color: var(--accent-ink); flex: none; }
.rs-biz .rs-lead { color: var(--biz); }
.rs-input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; resize: none; margin: 0; padding: 11px 0; overflow-y: hidden;
  font-size: var(--fs-lead); line-height: 1.45; max-height: 180px; letter-spacing: -0.01em; color: var(--ink);
}
:lang(zh) .rs-input { letter-spacing: 0; }
.rs-input:focus-visible { outline: none; }
.rs-input::placeholder { color: var(--ink-3); }
.rs-go {
  height: 46px; padding: 0 18px 0 20px; border-radius: 999px; border: 0; flex: none; align-self: flex-end;
  display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 650; white-space: nowrap;
  background: var(--accent); color: var(--on-accent);
  transition: transform var(--t-1) var(--ease), filter var(--t-1), background var(--t-1), color var(--t-1), opacity var(--t-1);
}
.rs-go svg { width: 16px; height: 16px; stroke-width: 2; }
.rs-go:hover:not([disabled]) { filter: brightness(1.08); }
.rs-go:active:not([disabled]) { transform: scale(0.96); }
.rs-go[disabled] { background: var(--wash-2); color: var(--ink-3); cursor: default; }
.rs-go[aria-busy="true"] svg { animation: rs-nudge 0.8s var(--ease) infinite alternate; }
@keyframes rs-nudge { to { transform: translateX(3px); } }
.rs-biz .rs-go:not([disabled]) { background: var(--biz); color: var(--on-biz); }
.rs-biz .rs-box:focus-within { box-shadow: inset 0 0 0 1px var(--biz), 0 0 0 4px var(--biz-wash), 0 18px 48px -28px rgba(0, 0, 0, 0.45); }
.rs-box.is-busy::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 40% 100%; background-repeat: no-repeat;
  animation: rs-sweep 1.3s var(--ease) infinite;
}
.rs-biz .rs-box.is-busy::after { background-image: linear-gradient(90deg, transparent, var(--biz), transparent); }
@keyframes rs-sweep { from { background-position: -40% 0; } to { background-position: 140% 0; } }

.rs-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; padding: 10px 14px 0; font-size: var(--fs-cap); color: var(--ink-3); min-height: 28px; }
.rs-lang { display: inline-flex; align-items: center; gap: 7px; }
.rs-lang-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); flex: none; }
.rs-biz .rs-lang-dot { background: var(--biz); }
.rs-err { color: var(--crit); font-size: var(--fs-small); padding: 6px 14px 0; margin: 0; }
.rs-err:empty { display: none; }

.rs-scope { display: flex; justify-content: center; min-width: 0; }
.rs-scope:empty { display: none; }
.rs-scope-chip {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-width: 0; margin-bottom: 12px; padding: 4px 4px 4px 12px;
  border-radius: 999px; background: var(--accent-wash); color: var(--accent-ink); font-size: var(--fs-small); font-weight: 550;
}
.rs-biz .rs-scope-chip { background: var(--biz-wash); color: var(--biz); }
.rs-scope-chip > svg { width: 14px; height: 14px; flex: none; }
.rs-scope-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
a.rs-scope-t:hover { text-decoration: underline; text-underline-offset: 3px; }
.rs-scope-x { width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; flex: none; color: inherit; transition: background var(--t-1); }
.rs-scope-x:hover { background: var(--wash-2); }
.rs-scope-x svg { width: 13px; height: 13px; }
.rs-scope-gone { display: flex; gap: 8px; align-items: flex-start; margin: 0 auto 12px; font-size: var(--fs-small); color: var(--ink-3); max-width: 60ch; }
.rs-scope-gone svg { width: 14px; height: 14px; flex: none; margin-top: 3px; }

.rs-examples-wrap { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.rs-examples-wrap:empty { display: none; }
.rs-examples-label { font-size: var(--fs-cap); font-weight: 600; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; }
:lang(zh) .rs-examples-label { letter-spacing: 0.04em; text-transform: none; }
.rs-examples { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; min-width: 0; max-width: 100%; }
.rs-example {
  border: 0; background: var(--s1); color: var(--ink-2); min-height: 34px; padding: 7px 14px; border-radius: 999px; font-size: 13px; line-height: 1.35;
  display: inline-flex; align-items: center; gap: 8px; text-align: left; max-width: 100%; min-width: 0; white-space: nowrap;
  transition: background var(--t-1) var(--ease), color var(--t-1);
}
.rs-example:hover { background: var(--s2); color: var(--ink); }
.rs-example > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rs-example b { font-weight: 550; color: var(--ink-3); font-size: var(--fs-cap); flex: none; }
.rs-example svg { width: 13px; height: 13px; color: var(--accent-ink); flex: none; }
.rs-biz .rs-example svg { color: var(--biz); }
.rs-example span { min-width: 0; }
.rs-examples-wait { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-small); color: var(--ink-3); }
.rs-private { display: flex; gap: 8px; align-items: flex-start; justify-content: center; margin: 18px auto 0; font-size: var(--fs-small); color: var(--ink-3); max-width: 62ch; text-align: left; }
.rs-private svg { width: 14px; height: 14px; flex: none; margin-top: 3px; color: var(--biz); }

/* ================================================================== Track: the board (Fey sector list) */
.rs-board { padding: 12px 24px 12px; }
.rs-rows { display: flex; flex-direction: column; }
.rs-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 150px 116px; gap: 20px; align-items: center;
  padding: 16px 12px; margin: 0 -12px; border-radius: 16px; color: var(--ink); min-width: 0;
  transition: background var(--t-1) var(--ease);
}
a.rs-row:hover { background: var(--s2); }
.rs-rows > li + li > .rs-row, .rs-rows > .rs-row + .rs-row { box-shadow: 0 -0.5px 0 var(--hair-2); }
.rs-rows > li:hover > .rs-row, .rs-rows > li:hover + li > .rs-row { box-shadow: none; }
.rs-row-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rs-row-title { display: flex; align-items: baseline; gap: 10px; font-size: 15.5px; font-weight: 550; letter-spacing: -0.01em; line-height: 1.4; min-width: 0; }
:lang(zh) .rs-row-title, .rs-row-title :lang(zh) { letter-spacing: 0; }
.rs-row-title .rs-dot { transform: translateY(-2px); }
.rs-row-q { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-width: 0; overflow-wrap: anywhere; }
.rs-row-call { padding-left: 17px; font-size: var(--fs-small); color: var(--ink-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.rs-row-meta { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; padding-left: 17px; margin-top: 2px; font-size: var(--fs-cap); color: var(--ink-3); min-width: 0; }
.rs-meta-i { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.rs-meta-i svg { width: 12px; height: 12px; flex: none; color: var(--ink-4); }
.rs-meta-scope { max-width: min(36ch, 100%); }
.rs-meta-scope span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rs-row-meta .pill { height: 20px; padding: 0 7px; font-size: 11px; }
.rs-dot { width: 7px; height: 7px; }
.rs-dot-ready { background: var(--accent); }
.rs-biz .rs-dot-ready { background: var(--biz); }
.rs-dot-failed { background: var(--crit); }

.rs-row-ticks { min-width: 0; }
.rs-ticks { display: block; width: 100%; height: 18px; overflow: visible; }
.rs-ticks .t { stroke: var(--wash-2); stroke-width: 1.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.rs-ticks .t.on { stroke: var(--ink-3); }
.rs-ticks .t.yes { stroke: var(--yes); }
.rs-ticks .t.no { stroke: var(--no); }
.rs-ticks .t.mid { stroke: var(--ink-4); }
.rs-ticks .t.ref { stroke: var(--ink-3); stroke-dasharray: 2 2; }
.rs-ticks .t.cur { stroke: var(--ink); stroke-width: 2.2; }
.is-failed .rs-ticks .t, .is-analyzing .rs-ticks .t { stroke: var(--wash); }

.rs-row-p { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; min-width: 0; }
.rs-p { font-size: 28px; font-weight: 650; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.rs-p small { font-size: 14px; font-weight: 550; color: var(--ink-3); margin-left: 1px; letter-spacing: 0; }
.rs-p-none { color: var(--ink-4); }
.rs-word { font-size: var(--fs-cap); color: var(--ink-2); font-weight: 550; white-space: nowrap; }
.rs-move { margin-top: 2px; font-variant-numeric: tabular-nums; }
.rs-move svg { width: 10px; height: 10px; }
.rs-busy { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-small); color: var(--ink-2); font-weight: 550; white-space: nowrap; }

.rs-row-skel { cursor: default; }
.rs-row-skel .skel-line { margin: 4px 0; }
.rs-empty { padding: 36px 8px 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 60ch; }
.rs-empty-ico { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent-ink); margin-bottom: 6px; }
.rs-biz .rs-empty-ico { background: var(--biz-wash); color: var(--biz); }
.rs-empty-ico svg { width: 19px; height: 19px; }
.rs-empty h3 { font-size: var(--fs-lead); font-weight: 600; letter-spacing: -0.015em; }
.rs-empty p { color: var(--ink-3); line-height: 1.6; margin-bottom: 8px; }
.rs-error { margin: 12px 0; }
.rs-error p { margin: 0; }

/* ================================================================== Track: the page and what tracking adds */
.tk-page { max-width: 1120px; }
.tk-page::before { display: none; }
.tk-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 20px 0 24px; }
.tk-head-t { min-width: 0; }
.tk-head h1 { font-size: var(--fs-title); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
:lang(zh) .tk-head h1 { letter-spacing: 0; }
.tk-lede { display: flex; gap: 7px; align-items: flex-start; margin-top: 8px; color: var(--ink-3); max-width: 64ch; line-height: 1.55; }
.tk-lede svg { width: 14px; height: 14px; flex: none; margin-top: 4px; color: var(--biz); }
.tk-new { flex: none; }
.tk-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 14px; min-width: 0; }
.tk-seg button { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); }
.tk-seg button:hover, .tk-seg button[aria-pressed="true"] { color: var(--ink); }
.tk-seg-n:empty { display: none; }
.tk-seg-n { font-size: 11px; font-weight: 650; color: inherit; font-variant-numeric: tabular-nums; }
.tk-seg[hidden] { display: none; }
.tk-track { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding-left: 17px; margin-top: 3px; font-size: var(--fs-small); color: var(--ink-2); min-width: 0; }
.tk-due, .tk-live { display: inline-flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.tk-due > svg, .tk-live > svg { width: 13px; height: 13px; flex: none; color: var(--ink-3); }
.tk-due-d { color: var(--ink-3); }
.tk-due.is-soon .tk-due-n { color: var(--ink); font-weight: 650; }
.tk-due.is-past { color: var(--ink-3); }
.tk-live-l { color: var(--ink-3); }
.tk-live-p { font-weight: 650; color: var(--ink); letter-spacing: -0.01em; }
.tk-move { height: 20px; padding: 0 7px; font-size: 11px; font-variant-numeric: tabular-nums; }
.tk-move svg { width: 10px; height: 10px; stroke-width: 2; }
.tk-live.is-closed { color: var(--ink-2); font-weight: 550; }
.tk-live.is-closed > svg { color: var(--accent-ink); }
/* what the row's big number is: the market now, Axon now, or the number at analysis (with the analysis's date) */
.tk-lead { font-size: 11px; font-weight: 650; color: var(--ink-2); white-space: nowrap; letter-spacing: 0.01em; }
.tk-lead-axon { color: var(--accent-ink); }
.tk-lead-then { color: var(--ink-3); }
.tk-lead-t { font-weight: 500; color: var(--ink-3); }
/* a market priced on the opposite outcome says so in words, and may wrap */
.tk-inv { white-space: normal; color: var(--ink-3); align-items: flex-start; }
.tk-inv > svg { margin-top: 2px; }
/* "why Axon differs": a disclosure under its row, outside the row's link */
.tk-why { padding: 0 0 14px 17px; margin-top: -8px; }
.tk-why-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 4px 2px; font-size: var(--fs-small); font-weight: 600; color: var(--accent-ink); }
.tk-why-btn svg { width: 13px; height: 13px; flex: none; }
.tk-why-chev { transition: transform var(--t-1) var(--ease); }
.tk-why-btn[aria-expanded="true"] .tk-why-chev { transform: rotate(180deg); }
.tk-why-text { margin-top: 4px; max-width: 72ch; font-size: var(--fs-small); line-height: 1.55; color: var(--ink-2); }
.tk-why-text[hidden] { display: none; }
.tk-none { padding: 30px 4px 26px; color: var(--ink-3); font-size: var(--fs-small); }
.tk-row.is-analyzing .rs-row-q { color: var(--ink-2); }
/* Earlier tracking: frozen example tracks below the person's own board */
.tk-ex { margin-top: 48px; }
.tk-ex[hidden] { display: none; }
.tk-ex-head { margin-bottom: 14px; }
.tk-ex-head h2 { font-size: var(--fs-h2, 20px); font-weight: 600; letter-spacing: -0.02em; }
:lang(zh) .tk-ex-head h2 { letter-spacing: 0; }
.tk-ex-head p { margin-top: 6px; color: var(--ink-3); max-width: 72ch; line-height: 1.55; font-size: var(--fs-small); }
.tk-ex-dot { background: var(--ink-4); }
.tk-lean { font-size: 22px; }
.tk-lean small { font-size: 12px; font-weight: 500; }
.tk-spark { display: block; width: 100%; height: 34px; overflow: visible; }
.tk-spark-l { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.tk-spark-d { fill: var(--accent); }

/* ================================================================== Research: the conversation */
.rs-convo { display: flex; flex-direction: column; gap: 18px; min-width: 0; padding-top: 4px; }
.rs-convo:focus { outline: none; }
.rs-convo-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; }
.rs-convo-kicker { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-cap); font-weight: 650; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
:lang(zh) .rs-convo-kicker { text-transform: none; letter-spacing: 0.04em; }
.rs-convo-kicker svg { width: 13px; height: 13px; color: var(--accent-ink); }
.rs-biz .rs-convo-kicker svg { color: var(--biz); }
.rs-new-top { margin-right: -8px; }

/* the question: the opening line */
.rs-q { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 0; animation: rs-rise 380ms var(--ease) both; }
.rs-q-bubble { max-width: min(660px, 92%); padding: 14px 18px; border-radius: 22px 22px 8px 22px; background: var(--wash-2); min-width: 0; }
.rs-q-text { font-size: var(--fs-lead); line-height: 1.5; font-weight: 550; letter-spacing: -0.012em; overflow-wrap: anywhere; text-wrap: pretty; }
.rs-q-text:lang(zh) { letter-spacing: 0; line-height: 1.65; }
.rs-q-skel { width: min(320px, 80%); }
.rs-q-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 14px; padding-right: 6px; font-size: var(--fs-cap); color: var(--ink-3); min-width: 0; max-width: 100%; }
.rs-q-lang, .rs-q-scope { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.rs-q-scope { max-width: min(40ch, 100%); }
.rs-q-scope svg { width: 12px; height: 12px; flex: none; color: var(--ink-4); }
.rs-q-scope span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rs-q .rs-lang-dot { width: 6px; height: 6px; }

/* the thinking panel */
.rs-think { background: var(--s1); border-radius: var(--r-card); min-width: 0; animation: rs-rise 420ms var(--ease) 60ms both; }
.rs-think[hidden] { display: none; }
.rs-think-head {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px 20px; border: 0; background: transparent; color: var(--ink);
  text-align: left; font-size: var(--fs-body); font-weight: 600; letter-spacing: -0.01em; border-radius: var(--r-card);
  transition: background var(--t-1) var(--ease);
}
:lang(zh) .rs-think-head { letter-spacing: 0; }
.rs-think-head[disabled] { cursor: default; }
.rs-think-head:not([disabled]):hover { background: var(--wash); }
.rs-think-title { flex: 1; min-width: 0; }
.rs-think-time { font-size: var(--fs-small); color: var(--ink-3); font-weight: 550; }
.rs-think:not(.is-running) .rs-think-time { display: none; }
.rs-think-chev { display: none; place-items: center; width: 24px; height: 24px; color: var(--ink-3); transition: transform var(--t-2) var(--ease); }
.rs-think-chev svg { width: 16px; height: 16px; }
.rs-think:not(.is-running) .rs-think-chev { display: grid; }
.rs-think.is-open .rs-think-chev { transform: rotate(180deg); }

.rs-orb { position: relative; width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 999px; }
.rs-orb svg { display: none; width: 13px; height: 13px; stroke-width: 2.4; }
.rs-think.is-running .rs-orb::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: conic-gradient(from 0deg, transparent 0 30%, var(--accent) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  animation: spin 1.1s linear infinite;
}
.rs-think.is-running .rs-orb::after { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--accent); animation: pulse 1.4s var(--ease) infinite; }
.rs-think.is-done .rs-orb { background: var(--accent); color: var(--on-accent); animation: rs-pop 380ms var(--ease); }
.rs-think.is-done .rs-orb svg:first-child { display: block; }
.rs-think.is-failed .rs-orb { background: var(--crit-wash); color: var(--crit); }
.rs-think.is-failed .rs-orb svg:last-child { display: block; }
.rs-biz .rs-think.is-running .rs-orb::before { background: conic-gradient(from 0deg, transparent 0 30%, var(--biz) 100%); }
.rs-biz .rs-think.is-running .rs-orb::after { background: var(--biz); }
.rs-biz .rs-think.is-done .rs-orb { background: var(--biz); color: var(--on-biz); }
@keyframes rs-pop { 0% { transform: scale(0.6); } 60% { transform: scale(1.12); } }

/* collapses to one line when done (grid rows 1fr → 0fr), expands on demand */
.rs-think-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows var(--t-2) var(--ease); }
.rs-think.is-done:not(.is-open) .rs-think-body { grid-template-rows: 0fr; }
.rs-think-inner { min-height: 0; overflow: hidden; transition: opacity var(--t-2) var(--ease); }
.rs-think.is-done:not(.is-open) .rs-think-inner { opacity: 0; visibility: hidden; transition: opacity var(--t-1) var(--ease), visibility 0s linear var(--t-2); }
.rs-think.is-instant .rs-think-body, .rs-think.is-instant .rs-think-inner { transition: none; }
.rs-think.is-instant, .rs-think.is-instant .rs-step, .rs-think.is-instant .rs-orb { animation: none; }

.rs-steps { display: flex; flex-direction: column; padding: 0 20px 4px; }
.rs-step {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 8px 0; font-size: 15px; line-height: 1.4; color: var(--ink-3);
  transition: color var(--t-2) var(--ease); animation: rs-rise 380ms var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 120ms);
}
.rs-step + .rs-step::before { content: ""; position: absolute; left: 10px; top: -8px; height: 16px; width: 2px; border-radius: 2px; background: var(--wash-2); transition: background var(--t-2) var(--ease); }
.rs-step.is-done + .rs-step::before { background: color-mix(in srgb, var(--accent) 60%, transparent); }
.rs-step-mark {
  position: relative; width: 22px; height: 22px; flex: none; border-radius: 999px; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1.5px var(--ink-4); transition: background var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease);
}
.rs-step-mark svg { width: 12px; height: 12px; stroke-width: 2.6; opacity: 0; transform: scale(0.4); transition: opacity var(--t-2) var(--ease), transform var(--t-2) var(--ease); }
.rs-step.is-done { color: var(--ink-2); }
.rs-step.is-done .rs-step-mark { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.rs-step.is-done .rs-step-mark svg { opacity: 1; transform: none; }
.rs-step.is-running { color: var(--ink); font-weight: 600; }
.rs-step.is-running .rs-step-mark { box-shadow: inset 0 0 0 2px var(--accent); }
.rs-step.is-running .rs-step-mark::after { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--accent); animation: pulse 1.2s var(--ease) infinite; }
.rs-step.is-running .rs-step-label {
  background: linear-gradient(100deg, var(--ink) 0 38%, var(--ink-3) 50%, var(--ink) 62% 100%); background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: rs-shimmer 2.2s linear infinite;
}
.rs-step.is-failed { color: var(--crit); }
.rs-step.is-failed .rs-step-mark { box-shadow: inset 0 0 0 2px var(--crit); }
.rs-biz .rs-step.is-done .rs-step-mark { background: var(--biz); color: var(--on-biz); }
.rs-biz .rs-step.is-done + .rs-step::before { background: color-mix(in srgb, var(--biz) 60%, transparent); }
.rs-biz .rs-step.is-running .rs-step-mark { box-shadow: inset 0 0 0 2px var(--biz); }
.rs-biz .rs-step.is-running .rs-step-mark::after { background: var(--biz); }
@keyframes rs-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.rs-think-note { padding: 8px 20px 18px 56px; font-size: var(--fs-cap); color: var(--ink-3); line-height: 1.5; }
.rs-think.is-done .rs-think-note, .rs-think.is-failed .rs-think-note { display: none; }
.rs-think.is-done .rs-steps, .rs-think.is-failed .rs-steps { padding-bottom: 16px; }

/* the answer: the report in place, the gaps, publishing, what next */
.rs-answer { display: flex; flex-direction: column; min-width: 0; }
.rs-answer:empty { display: none; }
.rs-answer > .n-report { margin-top: 14px; }
.rs-answer.is-enter > * { animation: rs-rise 560ms var(--ease) both; }
.rs-answer.is-enter > :nth-child(2) { animation-delay: 110ms; }
.rs-answer.is-enter > :nth-child(3) { animation-delay: 170ms; }
.rs-answer.is-enter > :nth-child(4) { animation-delay: 220ms; }
.rs-answer-pub { margin-top: 40px; }
.rs-answer-pub > .notice { margin: 0; }
.rs-next { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; padding-top: 22px; box-shadow: inset 0 0.5px 0 var(--hair-2); }
.rs-next-new { margin-left: auto; }
.rs-fail { align-items: center; flex-wrap: wrap; padding: 16px 18px; }
.rs-fail p { margin-top: 2px; }
.rs-fail-err:empty { display: none; }
.rs-wait { display: inline-flex; align-items: center; gap: 8px; }
.rs-gone { margin-top: 12px; }

/* ================================================================== question page and landing refinements */
.rs-public-cta { display: flex; }
.rs-public-cta .link { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-body); }
.rs-public-cta svg { width: 15px; height: 15px; transition: transform var(--t-2) var(--ease); }
.rs-public-cta .link:hover svg { transform: translateX(3px); }

/* ================================================================== small screens */
@media (max-width: 760px) {
  .page.rs-ask.is-compose {
    min-height: calc(100vh - var(--top-h) - 64px); min-height: calc(100svh - var(--top-h) - 64px - env(safe-area-inset-bottom));
    padding-top: 20px; padding-bottom: 40px;
  }
  .rs-ask.is-convo { padding-bottom: 120px; }
  .rs-greet { margin-bottom: 22px; }
  .rs-prompt { font-size: 16px; }
  .rs-box { padding: 6px 6px 6px 16px; min-height: 58px; gap: 10px; border-radius: 22px; }
  .rs-input { font-size: 16px; padding: 9px 0; }
  .rs-go { height: 44px; padding: 0 14px 0 16px; }
  .rs-meta { padding: 8px 8px 0; }
  .rs-examples-wrap { align-items: stretch; }
  .rs-examples-label { padding: 0 2px; }
  .rs-examples {
    flex-wrap: nowrap; justify-content: flex-start; align-items: stretch; overflow-x: auto; scrollbar-width: none; max-width: none;
    margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 4px; scroll-padding: 0 var(--gutter); scroll-snap-type: x proximity;
  }
  .rs-examples::-webkit-scrollbar { display: none; }
  .rs-example { flex: none; width: min(280px, 74vw); align-items: flex-start; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 16px; scroll-snap-align: start; white-space: normal; }
  /* a card here, not a pill: the question on up to two lines */
  .rs-example > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .rs-private { justify-content: flex-start; }
  .rs-board { padding: 18px 16px 8px; }
  .rs-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main p" "ticks ticks"; gap: 10px 14px; padding: 14px 10px; margin: 0 -10px; }
  .rs-row-main { grid-area: main; }
  .rs-row-p { grid-area: p; align-self: start; }
  .rs-row-ticks { grid-area: ticks; padding-left: 17px; }
  .rs-ticks { height: 14px; }
  .rs-p { font-size: 24px; }
  .rs-meta-scope { max-width: 100%; }
  .tk-head { padding: 10px 0 18px; align-items: flex-start; }
  .tk-new { width: 100%; }
  .tk-bar { flex-direction: column; align-items: flex-start; }
  .tk-track { gap: 6px 14px; }
  .rs-q-bubble { max-width: 100%; padding: 12px 16px; }
  .rs-q-text { font-size: 16px; }
  .rs-think-head { padding: 14px 16px; }
  .rs-steps { padding: 0 16px 4px; }
  .rs-step { font-size: 14.5px; gap: 12px; }
  .rs-think-note { padding: 6px 16px 16px 50px; }
  .rs-next .btn { flex: 1 1 auto; }
  .rs-next-new { margin-left: 0; }
}
@media (max-width: 420px) {
  .rs-row-call, .rs-row-meta, .rs-row-ticks, .tk-track, .tk-why { padding-left: 0; }
  .tk-seg { width: 100%; }
  .tk-seg button { flex: 1; justify-content: center; padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .rs-box.is-busy::after { animation: none; background: var(--accent); opacity: 0.5; }
  .rs-public-cta .link:hover svg { transform: none; }
  .rs-home > *, .rs-q, .rs-think, .rs-step, .rs-answer.is-enter > *, .rs-think.is-done .rs-orb { animation: none; }
  .rs-think.is-running .rs-orb::before { animation: none; background: none; box-shadow: inset 0 0 0 2px var(--accent); -webkit-mask: none; mask: none; }
  .rs-biz .rs-think.is-running .rs-orb::before { box-shadow: inset 0 0 0 2px var(--biz); }
  .rs-step.is-running .rs-step-label { animation: none; background: none; -webkit-text-fill-color: currentColor; }
  .rs-think-body, .rs-think-inner, .rs-step, .rs-step-mark, .rs-step-mark svg, .tk-why-chev { transition: none; }
}
@media (forced-colors: active) {
  .rs-box, .rs-think, .rs-q-bubble { border: 1px solid CanvasText; }
  .rs-ticks .t.cur { stroke: Highlight; }
  .rs-step.is-running .rs-step-label { -webkit-text-fill-color: CanvasText; background: none; }
}
