:root {
  --page:#070a0c; --bg:#0e1316; --panel:#161d21; --panel2:#212c32;
  --line:#2b3740; --line-soft:#202a30;
  --text:#e7eef1; --muted:#93a6ad; --faint:#6b7d84;
  --green:#3ddc97; --red:#ef6f6f; --amber:#f5b453; --cyan:#6fd3ff;
  --code:#0b1012; --pre-text:#c6d4d9;
  --brand-1:#A2F8D6; --brand-2:#229F81; --brand-3:#3DDC97; --brand-4:#96CDBF;
  --r-lg:14px; --r-md:10px; --r-sm:8px;
  --ease:cubic-bezier(.2,.8,.3,1); --t1:.15s; --t2:.25s;
  --mono:"SF Mono",ui-monospace,Menlo,Consolas,monospace;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
}
:root[data-theme="light"] {
  --page:#e9edf0; --bg:#f6f8f9; --panel:#fff; --panel2:#f0f3f4;
  --line:#dbe2e5; --line-soft:#e7ecee;
  --text:#182226; --muted:#4f6168; --faint:#687980;
  --green:#179a68; --red:#cf514c; --amber:#b97f24; --cyan:#1c86b8;
  --code:#eef2f3; --pre-text:#2a3940;
  --brand-1:#51AF93; --brand-2:#0B6758; --brand-3:#0A8266; --brand-4:#164E45;
}
* { box-sizing:border-box; }
html, body { height:100%; }
body {
  margin:0; background:var(--bg); color:var(--text);
  font-family:var(--sans); font-size:13px; line-height:1.6;
  display:flex; flex-direction:column; overflow:hidden;
}

/* ── 顶栏：只有一行 ── */
.top {
  flex:none; display:flex; align-items:center; gap:10px;
  height:46px; padding:0 12px;
  border-bottom:1px solid var(--line); background:var(--bg);
  position:relative; z-index:30;
}
.brand { display:flex; align-items:center; gap:6px; flex:none; }
.brand .name { font-weight:600; letter-spacing:.2px; white-space:nowrap; font-size:13px; }

.repopick {
  display:flex; align-items:center; gap:6px; min-width:0; max-width:min(56vw, 460px);
  height:28px; padding:0 9px; margin-left:2px;
  border:1px solid var(--line-soft); background:transparent; color:inherit;
  border-radius:999px; font:inherit; cursor:pointer;
  transition:background-color var(--t1) var(--ease), border-color var(--t1) var(--ease);
}
.repopick:hover, .repopick.open { background:var(--panel2); border-color:var(--line); }
.pick-dot { flex:none; width:6px; height:6px; border-radius:50%; background:var(--faint); }
.pick-dot.ready { background:var(--green); }
.pick-dot.busy { background:var(--amber); animation:pulse 1.4s ease-in-out infinite; }
.pick-dot.failed { background:var(--red); }
.pick-name { font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pick-rev { flex:none; font-family:var(--mono); font-size:10.5px; color:var(--faint); }
.pick-caret { flex:none; font-size:10px; color:var(--faint); transition:transform var(--t1) var(--ease); }
.repopick.open .pick-caret { transform:rotate(180deg); }

.top-actions { margin-left:auto; display:flex; align-items:center; gap:2px; flex:none; }
.icon {
  width:28px; height:28px; display:grid; place-items:center;
  border:1px solid transparent; border-radius:8px; background:transparent;
  color:var(--muted); font-size:13px; line-height:1; cursor:pointer;
  transition:background-color var(--t1) var(--ease), color var(--t1) var(--ease);
}
.icon:hover { background:var(--panel2); color:var(--text); }
.icon.on { color:var(--green); background:color-mix(in srgb, var(--green) 12%, transparent); }
.icon.small { width:24px; height:24px; font-size:11px; }

/* ── 仓库浮层 ── */
.pop {
  position:fixed; top:52px; left:12px; z-index:40;
  width:min(430px, calc(100vw - 24px)); max-height:calc(100vh - 130px);
  overflow:auto; padding:10px;
  background:var(--panel); border:1px solid var(--line); border-radius:var(--r-lg);
  box-shadow:0 18px 48px rgba(0,0,0,.45);
}
.pop[hidden] { display:none; }
.pop-cur {
  border:1px solid var(--line-soft); border-radius:var(--r-md);
  background:var(--panel2); padding:9px 11px; margin-bottom:10px;
}
.cur-grid { display:grid; grid-template-columns:1fr 1fr; gap:3px 14px; font-size:12px; }
.cur-cell { display:flex; gap:8px; min-width:0; }
.cur-k { color:var(--faint); flex:none; }
.cur-v { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cur-v.mono { font-family:var(--mono); font-size:11px; }
.cur-actions { display:flex; gap:6px; margin-top:9px; }
.pop-cur.empty { color:var(--faint); font-size:12px; }

.pop-sec-title { font-size:11px; color:var(--faint); padding:0 2px 6px; }
.pop-list { display:grid; gap:2px; }
.pop-row {
  display:flex; align-items:center; gap:8px; width:100%; text-align:left;
  padding:7px 8px; border-radius:var(--r-sm); border:0; background:transparent;
  color:var(--text); font:inherit; cursor:pointer;
}
.pop-row:hover { background:var(--panel2); }
.pop-row.on { background:color-mix(in srgb, var(--green) 10%, transparent); }
.row-dot { flex:none; width:6px; height:6px; border-radius:50%; background:var(--green); }
.pop-row.busy .row-dot { background:var(--amber); animation:pulse 1.4s ease-in-out infinite; }
.pop-row.failed .row-dot { background:var(--red); }
.row-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.row-src { margin-left:auto; flex:none; font-size:10.5px; color:var(--faint); }
.row-check { flex:none; width:12px; color:var(--green); font-size:11px; }

.pop-add { display:flex; gap:6px; margin-top:10px; }
.pop-add input {
  flex:1; min-width:0; height:30px; padding:0 10px; font-size:12.5px;
  border:1px solid var(--line); border-radius:8px;
  background:var(--bg); color:var(--text);
}
.pop-add input:focus { outline:none; border-color:var(--green); }
.pop-add .add {
  flex:none; height:30px; padding:0 12px; border-radius:8px; cursor:pointer;
  border:1px solid var(--green); background:transparent; color:var(--green); font-size:12.5px;
}
.pop-add .add:hover { background:color-mix(in srgb, var(--green) 14%, transparent); }
.pop-foot { display:flex; gap:8px; align-items:baseline; padding:8px 2px 0; font-size:11px; color:var(--faint); }
.pop-err { color:var(--red); }

/* ── 主区 ── */
.main { flex:1; min-height:0; display:flex; }
.stream { flex:1; min-width:0; overflow-y:auto; padding:26px 20px 30px; scroll-behavior:smooth; }
.stream > .inner > * + * { margin-top:18px; }
.inner { width:min(780px, 100%); margin:0 auto; }

.intro { padding-top:6vh; }
.intro h1 { margin:0 0 8px; font-size:20px; font-weight:600; letter-spacing:.2px; }
.intro p { margin:0 0 16px; color:var(--muted); max-width:52ch; }
.samples { display:flex; flex-wrap:wrap; gap:8px; }
.sample {
  border:1px solid var(--line); background:var(--panel); color:var(--muted);
  border-radius:999px; padding:5px 11px; font-size:12px; cursor:pointer;
  transition:background-color var(--t1) var(--ease), color var(--t1) var(--ease), border-color var(--t1) var(--ease);
}
.sample:hover { background:var(--panel2); color:var(--text); border-color:var(--line-soft); }

/* ── 问答 ── */
.qa { display:flex; flex-direction:column; gap:10px; }
.ask {
  align-self:flex-end; max-width:min(78%, 520px); padding:8px 12px;
  background:var(--panel2); border:1px solid var(--line-soft); border-radius:12px 12px 4px 12px;
}
.card {
  border:1px solid var(--line); border-radius:var(--r-lg); background:var(--panel);
  padding:14px 16px; box-shadow:0 1px 2px rgba(0,0,0,.18);
}
.card-head { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.status { font-size:12px; }
.status.hit { color:var(--green); }
.status.miss { color:var(--muted); }
.status.partial { color:var(--amber); }
.meta { margin-left:auto; font-family:var(--mono); font-size:10.5px; color:var(--faint); }
.overview { margin:0 0 10px; }
.claims { display:flex; flex-direction:column; gap:6px; margin:0; padding:0; list-style:none; }
.claim {
  display:flex; gap:8px; padding:6px 9px; border-radius:var(--r-sm);
  background:var(--panel2); border:1px solid var(--line-soft);
}
:root:not([data-theme="light"]) .claim { background:#192125; }
.claim .dot { flex:none; width:5px; height:5px; margin-top:7px; border-radius:50%; background:var(--green); }
.claim.unsupported .dot { background:var(--amber); }
.claim p { margin:0; }
.refs { margin:12px 0 0; padding:0; list-style:none; border-top:1px solid var(--line-soft); }
.refs li {
  padding:6px 0; border-bottom:1px solid var(--line-soft); display:grid;
  grid-template-columns:minmax(0,1fr) auto auto; gap:8px; align-items:baseline;
}
.refs li:last-child { border-bottom:0; }
.ref-path { font-family:var(--mono); font-size:11.5px; color:var(--cyan); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ref-lines { font-family:var(--mono); font-size:11px; color:var(--faint); white-space:nowrap; }
.ref-sym { color:var(--muted); font-size:12px; max-width:260px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; justify-self:end; }
.miss-panel { padding:6px 0 2px; color:var(--muted); }
.miss-panel .big { color:var(--text); font-weight:500; margin-bottom:4px; }
details.trace { margin-top:10px; }
details.trace summary { cursor:pointer; color:var(--faint); font-size:11.5px; list-style:none; }
details.trace summary::-webkit-details-marker { display:none; }
details.trace summary::before {
  content:""; display:inline-block; width:0; height:0; margin-right:6px; vertical-align:1px;
  border-left:4px solid currentColor; border-top:3px solid transparent; border-bottom:3px solid transparent;
  transition:transform .15s ease;
}
details.trace[open] summary::before { transform:rotate(90deg); }
details.trace[open] summary::before { content:"▾ "; }
.trace-body { margin-top:8px; font-family:var(--mono); font-size:11px; color:var(--muted); display:grid; gap:2px; }
.loading { color:var(--muted); display:flex; align-items:center; gap:8px; }
.typing { display:inline-flex; gap:3px; }
.typing i { width:4px; height:4px; border-radius:50%; background:var(--green); animation:blink 1s infinite; }
.typing i:nth-child(2) { animation-delay:.2s; }
.typing i:nth-child(3) { animation-delay:.4s; }
@keyframes blink { 0%,100% { opacity:.2 } 50% { opacity:1 } }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1) } 50% { opacity:.35; transform:scale(.8) } }

/* ── 结构抽屉 ── */
.drawer {
  position:fixed; top:46px; right:0; bottom:0; z-index:35;
  width:302px; max-width:92vw;
  background:var(--panel); border-left:1px solid var(--line);
  display:flex; flex-direction:column;
  transform:translateX(101%); transition:transform var(--t2) var(--ease);
}
.drawer.open { transform:none; box-shadow:-16px 0 40px rgba(0,0,0,.35); }
.drawer-head {
  flex:none; display:flex; align-items:center; justify-content:space-between;
  padding:9px 10px 9px 14px; border-bottom:1px solid var(--line);
  color:var(--muted); font-size:12px;
}
.drawer-body { flex:1; overflow-y:auto; padding:8px 10px 16px; }
.scrim { position:fixed; inset:46px 0 0 0; z-index:34; background:rgba(0,0,0,.35); }
.scrim[hidden] { display:none; }
.mod { padding:7px 8px; border-radius:var(--r-sm); }
.mod:hover { background:var(--panel2); }
.mod-top { display:flex; align-items:baseline; gap:8px; }
.mod-name { font-family:var(--mono); font-size:12px; }
.mod-layer { font-size:10.5px; color:var(--faint); }
.mod-count { margin-left:auto; font-family:var(--mono); font-size:10.5px; color:var(--faint); }
.mod-sum { color:var(--muted); font-size:11.5px; margin-top:2px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.mod.hot { background:color-mix(in srgb, var(--green) 10%, transparent); }
.mod.hot .mod-name { color:var(--green); }
.map-empty { font-size:12px; color:var(--faint); padding:8px 2px; }

/* ── 输入 ── */
.composer {
  flex:none; display:flex; gap:8px; align-items:center;
  padding:9px 16px; border-top:1px solid var(--line); background:var(--bg);
}
.composer input {
  flex:1; min-width:0; height:38px; border:1px solid var(--line); border-radius:11px;
  background:var(--panel2); color:var(--text); padding:0 12px; font-size:13px; outline:none;
  transition:border-color var(--t1) var(--ease), box-shadow var(--t1) var(--ease);
}
.composer input:focus { border-color:var(--green); box-shadow:0 0 0 3px color-mix(in srgb, var(--green) 12%, transparent); }
.send {
  flex:none; height:38px; border:1px solid transparent; border-radius:11px; padding:0 18px;
  font-size:13px; font-weight:500; background:var(--green); color:#07110d; cursor:pointer;
  transition:filter var(--t1) var(--ease), opacity var(--t1) var(--ease);
}
.send:hover:not(:disabled) { filter:brightness(1.08); }
.send:disabled { opacity:.4; cursor:not-allowed; }
.foot { flex:none; padding:0 16px 8px; color:var(--faint); font-size:10.5px; background:var(--bg); }

@media (max-width: 760px) {
  .top { padding:0 10px; gap:6px; }
  .brand .name { display:none; }
  .stream { padding:18px 14px 24px; }
  .intro { padding-top:3vh; }
  .intro h1 { font-size:17px; }
  .composer { padding:8px 12px; }
  .agent-detail { font-size:10.5px; }
  .foot { padding:0 12px 7px; }
  .drawer { width:100%; max-width:100%; }
}
/* 自动演示的状态胶囊 */
.demo-pill {
  position:fixed; right:16px; bottom:76px; z-index:60; display:flex; align-items:center; gap:8px;
  padding:7px 10px 7px 12px; border-radius:999px; font-size:12px; color:var(--text);
  background:color-mix(in srgb, var(--panel) 92%, transparent); border:1px solid var(--line);
  box-shadow:0 6px 20px rgba(0,0,0,.18); backdrop-filter:blur(6px);
}
.demo-dot { width:7px; height:7px; border-radius:50%; background:var(--green); animation:pulse 1.4s var(--ease) infinite; }
.demo-stop {
  border:1px solid var(--line); background:transparent; color:var(--muted); border-radius:999px;
  padding:2px 9px; font:inherit; font-size:11px; cursor:pointer;
}
.demo-stop:hover { color:var(--text); border-color:var(--line-soft); background:var(--panel2); }

/* 浮层里的小按钮 */
.ghost {
  border:1px solid var(--line); background:transparent; color:var(--muted);
  border-radius:var(--r-sm); padding:4px 9px; cursor:pointer; font:inherit; font-size:11.5px;
  transition:background-color var(--t1) var(--ease), color var(--t1) var(--ease), border-color var(--t1) var(--ease);
}
.ghost:hover { background:var(--panel2); color:var(--text); border-color:var(--line); }
.ghost.small { padding:3px 8px; font-size:11px; }
.ghost.danger { color:var(--red); border-color:color-mix(in srgb, var(--red) 40%, var(--line)); }
.ghost.danger:hover { background:color-mix(in srgb, var(--red) 12%, transparent); color:var(--red); }
.cur-note { font-size:11px; color:var(--faint); }

/* 引用可点 + 交互细节 */
a.ref-path { text-decoration:none; cursor:pointer; }
a.ref-path:hover { text-decoration:underline; text-underline-offset:2px; }
a.ref-path::after { content:" ↗"; font-size:9px; color:var(--faint); }
.mod { cursor:pointer; }
.mod:hover .mod-name { color:var(--text); }
.mod .mod-sum::after { content:"点击提问 ›"; display:block; margin-top:3px; font-size:10.5px; color:var(--faint); opacity:0; transition:opacity var(--t1) ease; }
.mod:hover .mod-sum::after { opacity:1; }
.composer input:disabled { opacity:.55; }

.try { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:10px; }
.try-label { font-size:11px; color:var(--faint); margin-right:2px; }
.sample.small { padding:3px 9px; font-size:11.5px; }

.map-meta { display:flex; gap:10px; align-items:center; flex-wrap:wrap; padding:4px 8px 10px; font-size:11px; color:var(--faint); border-bottom:1px solid var(--line-soft); margin-bottom:6px; }
.map-tip { margin-left:auto; }

/* 结论可展开代码片段 */
details.snippet > summary { cursor:pointer; list-style:none; }
details.snippet > summary::-webkit-details-marker { display:none; }
details.snippet > summary::marker { content:""; }
.claim details.snippet { flex:1; min-width:0; }
details.snippet[open] > summary { color:var(--text); }
.snippet-meta { margin:6px 0 4px; font-family:var(--mono); font-size:10.5px; color:var(--faint); }
pre.code {
  margin:0; padding:9px 10px; border-radius:var(--r-sm); background:var(--code);
  color:var(--pre-text); font-family:var(--mono); font-size:11.5px; line-height:1.55;
  overflow-x:auto; white-space:pre;
}

/* ── Agent 运行轨迹：真实阶段耗时，不是假动画 ── */
.agent { margin:4px 0 2px; padding:10px 12px; border:1px solid var(--line-soft); border-radius:var(--r-md); background:var(--panel2); }
.agent-title { font-size:11px; letter-spacing:.4px; color:var(--faint); text-transform:uppercase; margin-bottom:6px; }
.agent-steps { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:2px; }
.agent-step { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--faint); transition:color var(--t2) var(--ease); }
.agent-step .agent-dot {
  flex:none; width:7px; height:7px; border-radius:50%;
  border:1px solid var(--line); background:transparent;
  transition:background var(--t2) var(--ease), border-color var(--t2) var(--ease), box-shadow var(--t2) var(--ease);
}
.agent-step:nth-child(1) .agent-dot { animation:pulse 1.2s var(--ease) infinite; border-color:var(--brand-3); }
.agent-step.done { color:var(--muted); }
.agent-step.done .agent-dot { background:var(--green); border-color:var(--green); box-shadow:0 0 0 3px color-mix(in srgb, var(--green) 16%, transparent); animation:none; }
.agent-step.done .agent-label { color:var(--text); }
.agent-label { flex:none; white-space:nowrap; }
.agent-detail { margin-left:auto; min-width:0; color:var(--faint); font-family:var(--mono); font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.agent-step.done .agent-detail { animation:fade-in .3s var(--ease) both; }

/* 文字逐字出现时给一个细光标，读完自动消失 */
.typing-text::after { content:'▍'; color:var(--brand-3); animation:blink 1s steps(1) infinite; margin-left:1px; }

/* 结论条依次浮起 */
.claim.rise { animation:rise .28s var(--ease) both; }
@keyframes rise { from { opacity:0; transform:translateY(4px) } to { opacity:1; transform:none } }
@keyframes fade-in { from { opacity:0 } to { opacity:1 } }
@media (prefers-reduced-motion: reduce) {
  .agent-step .agent-dot, .claim.rise, .agent-step.done .agent-detail { animation:none !important; }
  .typing-text::after { content:''; }
}
.agent-step.skip { opacity:.55; }
.agent-step.skip .agent-dot { border-style:dashed; }

/* ── 首屏：能力说明 + 分组示例 ── */
.cap { list-style:none; margin:0 0 16px; padding:0; display:flex; flex-wrap:wrap; gap:8px; }
.cap li {
  flex:1 1 0; min-width:0; padding:9px 11px; border:1px solid var(--line-soft);
  border-radius:var(--r-md); background:var(--panel); display:flex; flex-direction:column; gap:1px;
}
:root:not([data-theme="light"]) .cap li { border-color:var(--line); background:#141b1f; }
.cap b { font-size:12px; font-weight:600; color:var(--text); }
.cap span { font-size:11.5px; color:var(--faint); line-height:1.45; }

.samples { display:flex; flex-direction:column; gap:10px; }
.sample-group { display:flex; align-items:flex-start; gap:10px; }
.sample-label { flex:none; width:52px; padding-top:5px; font-size:11px; color:var(--faint); letter-spacing:.3px; }
.sample-group.recent .sample-label { color:var(--brand-3); }
.sample-chips { display:flex; flex-wrap:wrap; gap:6px; min-width:0; }
@media (max-width: 560px) {
  .sample-group { flex-direction:column; gap:4px; }
  .sample-label { width:auto; padding:0; }
  .cap li { flex:1 1 100%; }
}

/* 首屏：垂直居中 + 空状态引导 */
.stream:has(.intro) { display:flex; flex-direction:column; justify-content:center; }
.pick-rev:empty { display:none; }
.guide {
  display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:0 0 14px;
  padding:9px 12px; border:1px dashed var(--line); border-radius:var(--r-md);
  background:color-mix(in srgb, var(--panel) 60%, transparent);
}
.guide-text { font-size:12px; color:var(--faint); }
.guide-btn {
  margin-left:auto; height:26px; padding:0 11px; border-radius:999px; cursor:pointer;
  border:1px solid var(--line); background:var(--panel); color:var(--text); font:inherit; font-size:12px;
  transition:background-color var(--t1) var(--ease), border-color var(--t1) var(--ease);
}
.guide-btn:hover { background:var(--panel2); border-color:var(--line-soft); }
@media (max-width: 560px) { .guide-btn { margin-left:0; } }

/* ── 答案 ↔ 结构联动 ── */
@media (min-width: 901px) {
  body:has(.drawer.open) .stream { padding-right: 322px; }
}
.modchips { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:10px; }
.modchips-label { font-size:11px; color:var(--faint); margin-right:2px; }
.modchip {
  border:1px solid var(--line); background:transparent; color:var(--muted);
  border-radius:999px; padding:2px 9px; font:inherit; font-size:11.5px; font-family:var(--mono); cursor:pointer;
  transition:background-color var(--t1) var(--ease), color var(--t1) var(--ease), border-color var(--t1) var(--ease);
}
.modchip:hover { color:var(--green); border-color:color-mix(in srgb, var(--green) 55%, transparent); background:color-mix(in srgb, var(--green) 8%, transparent); }
.mod-hit { font-size:10px; color:var(--green); margin-left:2px; }
.map-filter {
  height:22px; padding:0 9px; border-radius:999px; cursor:pointer; font:inherit; font-size:11px;
  border:1px solid var(--line); background:transparent; color:var(--muted);
}
.map-filter:hover { border-color:var(--line-soft); color:var(--text); }
.map-filter.on { color:var(--green); border-color:color-mix(in srgb, var(--green) 55%, transparent); background:color-mix(in srgb, var(--green) 10%, transparent); }
.drawer-body.only-hit .mod:not(.hot) { display:none; }
.drawer-body.only-hit .map-meta [data-dim] { display:none; }
.mod.flash { animation:modflash 1.6s ease; }
@keyframes modflash {
  0%, 100% { background:transparent; box-shadow:none; }
  15%, 55% { background:color-mix(in srgb, var(--green) 16%, transparent); box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--green) 45%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .mod.flash { animation:none; background:color-mix(in srgb, var(--green) 12%, transparent); } }

/* ── 分享快照 ── */
.card-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; margin-top:10px; }
.share-btn {
  height:26px; padding:0 11px; border-radius:999px; cursor:pointer; font:inherit; font-size:11.5px;
  border:1px solid var(--line); background:transparent; color:var(--muted);
  transition:background-color var(--t1) var(--ease), color var(--t1) var(--ease), border-color var(--t1) var(--ease);
}
.share-btn:hover { background:var(--panel2); color:var(--text); border-color:var(--line-soft); }
.share-btn.done { color:var(--green); border-color:color-mix(in srgb, var(--green) 55%, transparent); }
.share-btn:disabled { opacity:.6; cursor:default; }
.share-btn.ghost-btn { color:var(--faint); }
.share-btn.ghost-btn:hover { color:var(--text); }
.share-link { display:flex; flex-direction:column; gap:4px; align-items:flex-end; }
.share-link-label { font-size:11px; color:var(--faint); }
.share-link input {
  width:min(420px, 60vw); height:28px; padding:0 9px; font-family:var(--mono); font-size:11.5px;
  border:1px solid var(--line); border-radius:8px; background:var(--panel); color:var(--text);
}
.snap-banner {
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  padding:8px 12px; border:1px solid var(--line-soft); border-radius:var(--r-md);
  background:var(--panel); font-size:11.5px; color:var(--faint);
}
.snap-banner .guide-btn { margin-left:auto; }
body.snapshot .stream { justify-content:flex-start; padding-top:28px; }
.composer[hidden] { display:none; }
body.snapshot .repopick { cursor:default; }
body.snapshot .repopick:hover { background:transparent; border-color:var(--line-soft); }

/* ── 演示导览 ── */
.tour-entry { display:flex; align-items:center; gap:8px; margin-top:14px; }
.tour-entry-text { font-size:11.5px; color:var(--faint); }
.tour-start {
  height:26px; padding:0 11px; border-radius:999px; cursor:pointer; font:inherit; font-size:11.5px;
  border:1px solid var(--line); background:var(--panel); color:var(--muted);
  transition:background-color var(--t1) var(--ease), color var(--t1) var(--ease), border-color var(--t1) var(--ease);
}
.tour-start:hover { background:var(--panel2); color:var(--text); border-color:var(--line-soft); }
.tour-spot {
  position:fixed; z-index:60; border-radius:10px; pointer-events:none;
  box-shadow:0 0 0 9999px rgba(0,0,0,.45);
  transition:all .28s var(--ease, ease);
}
.tour-tip {
  position:fixed; z-index:61; width:min(328px, calc(100vw - 24px));
  background:var(--panel); border:1px solid var(--line); border-radius:12px;
  padding:12px 14px; box-shadow:0 14px 34px rgba(0,0,0,.3);
  transition:opacity .2s ease;
}
.tour-tip p { margin:0; font-size:12.5px; line-height:1.6; color:var(--text); }
.tour-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:10px; }
.tour-skip, .tour-next {
  height:26px; padding:0 11px; border-radius:8px; cursor:pointer; font:inherit; font-size:11.5px;
  border:1px solid var(--line); background:transparent; color:var(--faint);
}
.tour-next { border-color:transparent; background:color-mix(in srgb, var(--green) 16%, transparent); color:var(--green); }
.tour-next:hover { background:color-mix(in srgb, var(--green) 26%, transparent); }
.tour-skip:hover { color:var(--text); }
.tour-skip.on { color:var(--green); border-color:color-mix(in srgb, var(--green) 45%, transparent); }
.claims.folded .claim-fold { display:none; }
.claims-more {
  margin-top:8px; height:26px; padding:0 11px; border-radius:999px; cursor:pointer;
  font:inherit; font-size:11.5px; border:1px dashed var(--line); background:transparent; color:var(--muted);
}
.claims-more:hover { color:var(--text); border-color:var(--line-soft); }
