:root {
  --bg: #f7f7f8;
  --panel: #ffffff;
  --panel-2: #f2f3f5;
  --line: #e4e5e9;
  --line-strong: #d3d5db;
  --text: #16171a;
  --soft: #3c3f46;
  --muted: #6b6f78;
  --accent: #6366f1;
  --accent-soft: #eef0ff;
  --accent-text: #4f46e5;
  --ok: #138a4b;
  --ok-soft: #e7f6ee;
  --warn: #a35f00;
  --warn-soft: #fff4e0;
  --bad: #c4282d;
  --bad-soft: #fdecec;
  --shadow: 0 1px 2px rgba(16, 17, 20, .05), 0 1px 1px rgba(16, 17, 20, .03);
  --shadow-lg: 0 12px 32px rgba(16, 17, 20, .14);
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1013;
    --panel: #17181c;
    --panel-2: #1e2025;
    --line: #2a2c33;
    --line-strong: #383b44;
    --text: #ececef;
    --soft: #c9cad0;
    --muted: #9497a1;
    --accent: #6366f1;
    --accent-soft: #1e1b4b;
    --accent-text: #a5b4fc;
    --ok: #4cc488;
    --ok-soft: #13291e;
    --warn: #f0b04d;
    --warn-soft: #2e2413;
    --bad: #ff7b7f;
    --bad-soft: #321a1b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, .5);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 26px; line-height: 1.25; margin: 0 0 4px; letter-spacing: -.01em; }
h2 { font-size: 17px; margin: 0 0 8px; }
h3 { font-size: 15px; margin: 0 0 6px; }
p { margin: 0 0 8px; }
code { font: 13px var(--mono); background: var(--panel-2); padding: 1px 5px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.warn-text { color: var(--warn); }
.bad-text { color: var(--bad); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.demo-banner { background: var(--warn-soft); color: var(--warn); text-align: center; font-size: 13px; padding: 8px 16px; border-bottom: 1px solid var(--line); position: relative; z-index: 30; }

.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.logo { width: 28px; height: 28px; flex: none; border-radius: 7px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; color: var(--text); font-size: 15px; }
.brand:hover { text-decoration: none; }
.brand.big { font-size: 18px; justify-content: center; margin-bottom: 24px; }
.brand.big .logo { width: 40px; height: 40px; border-radius: 10px; }

.with-nav { padding-left: 248px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 248px; background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 16px 12px; gap: 8px; z-index: 20; }
.demo-banner ~ .sidebar { top: 37px; }
.sidebar > .brand { padding: 4px 8px 16px; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nav-bottom { margin-top: auto; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--soft); font-weight: 500; }
.nav a:hover { background: var(--panel-2); text-decoration: none; }
.nav a.active { background: var(--accent-soft); color: var(--accent-text); }
.nav a.tour-target { box-shadow: 0 0 0 2px var(--accent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent); } }
@media (prefers-reduced-motion: reduce) { .nav a.tour-target { animation: none; } }
.me { border-top: 1px solid var(--line); padding-top: 8px; position: relative; }
.me summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; cursor: pointer; }
.me summary::-webkit-details-marker { display: none; }
.me summary:hover { background: var(--panel-2); }
.me-name { display: flex; flex-direction: column; min-width: 0; }
.me-name b, .me-name small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-name small { color: var(--muted); font-size: 12px; }
.me-menu { position: absolute; bottom: 100%; left: 0; right: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; display: flex; flex-direction: column; }
.me-menu a, .me-menu .linkish { padding: 8px 10px; border-radius: 6px; text-align: left; color: var(--text); }
.me-menu a:hover, .me-menu .linkish:hover { background: var(--panel-2); text-decoration: none; }
.avatar { width: 28px; height: 28px; border-radius: 50%; flex: none; object-fit: cover; background: var(--panel-2); }
.avatar.sm { width: 20px; height: 20px; vertical-align: -5px; margin-right: 4px; }
.avatar.initials { display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 650; color: var(--accent-text); background: var(--accent-soft); }

.topbar, .scrim, .nav-toggle { display: none; }
.main { max-width: 1120px; margin: 0 auto; padding: 32px 32px 64px; }
.bare-main { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 64px 16px; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 0 16px 24px; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.sub { color: var(--muted); margin: 0; max-width: 64ch; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.section-title { font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 32px 0 12px; display: flex; align-items: center; gap: 8px; }
section:first-of-type > .section-title { margin-top: 8px; }
.count { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; align-items: center; justify-content: center; border-radius: 999px; background: var(--panel-2); color: var(--soft); font-size: 12px; font-weight: 600; letter-spacing: 0; }

.flash { background: var(--ok-soft); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; font-weight: 500; }
.notice { background: var(--warn-soft); color: var(--text); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); padding: 10px 14px; border-radius: 10px; margin: 0 0 16px; }
.notice ul { margin: 4px 0 0; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.card-top h2 { margin: 0; font-size: 18px; flex: 1; }
.card-top h3 { margin: 0; flex: 1; }
.push { margin-left: auto; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; font-size: 13px; }
.card-foot a { display: inline-flex; align-items: center; gap: 6px; }
.card-foot .icon { width: 14px; height: 14px; }
.card-link { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 14px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent-text); background: var(--accent-soft); padding: 2px 8px; border-radius: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--panel-2); color: var(--soft); white-space: nowrap; vertical-align: 1px; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok, .health-ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn, .health-warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad, .health-bad { background: var(--bad-soft); color: var(--bad); }
.pill.accent { background: var(--accent-soft); color: var(--accent-text); }
.live { color: var(--ok); font-weight: 600; }
.live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: 1px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); cursor: pointer; text-decoration: none; min-height: 38px; }
.btn:hover { background: var(--panel-2); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.big { padding: 12px 20px; font-size: 15px; min-height: 46px; }
.btn.sm { padding: 4px 10px; min-height: 30px; font-size: 13px; }
.btn[disabled], .linkish[disabled] { opacity: .45; cursor: not-allowed; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-text); cursor: pointer; }
.linkish.danger, .danger { color: var(--bad); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; cursor: pointer; color: var(--text); }
.icon-btn .icon { width: 22px; height: 22px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 12px; }

.tiles { display: grid; gap: 12px; margin-bottom: 8px; }
.tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px 0; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
.tile span { color: var(--muted); font-size: 13px; }
.tile b { font-size: 24px; font-weight: 650; letter-spacing: -.01em; }
.tile b.smaller { font-size: 18px; }
.tiles.three .tile b { font-size: 15px; }
.tile.soon b { font-size: 15px; color: var(--muted); font-weight: 500; }

.grid.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; margin-top: 16px; }
.grid.cards .card { margin: 0; }
.product h2 a { color: var(--text); }
.following { color: var(--accent-text); font-weight: 600; }
.reasons { margin: 8px 0; padding-left: 18px; font-size: 13px; color: var(--soft); }
.flow { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 4px; padding: 0; margin: 16px 0; }
.flow li { background: var(--panel-2); border-radius: 8px; padding: 8px 4px; text-align: center; display: flex; flex-direction: column; min-width: 0; }
.flow b { font-size: 18px; }
.flow span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow.mini { grid-template-columns: repeat(3, 1fr); margin: 12px 0 0; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 0; }
.facts.wide { grid-template-columns: max-content 1fr; }
.facts div { display: flex; flex-direction: column; }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }

.board { display: grid; grid-template-columns: repeat(6, minmax(160px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.col { background: var(--panel-2); border-radius: var(--radius); padding: 12px; min-width: 0; }
.col h3 { font-size: 13px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.col .count { background: var(--panel); }
.tlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tcard { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
.tcard-title { font-weight: 600; font-size: 13px; color: var(--text); overflow-wrap: anywhere; }
.tcard-meta { font-size: 12px; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.money { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
.chart { width: 100%; height: auto; display: block; margin: 8px 0 16px; }
.chart .bar { fill: var(--accent); }
.chart .bar:hover { fill: var(--accent-text); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--font); }

.list { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card .list { border: 0; box-shadow: none; background: none; }
.list > li { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.list > li:last-child { border-bottom: 0; }
.card .list > li { padding: 12px 0; }
.list.compact > li { flex-direction: row; justify-content: space-between; gap: 12px; padding: 8px 0; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.empty { text-align: center; color: var(--muted); padding: 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty b { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }
.empty p { max-width: 52ch; margin: 0 auto; }
.empty.big { padding: 48px 24px; background: var(--panel); }
.empty-art { width: 56px; height: 56px; fill: none; stroke: var(--muted); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 12px; }
.empty-line { color: var(--muted); font-size: 14px; margin: 0; }

.question h3 { font-size: 17px; margin: 4px 0 8px; }
.question .q { font-weight: 600; font-size: 15px; margin: 12px 0 10px; }
.question.readonly { background: var(--panel-2); box-shadow: none; }
.why { margin: 8px 0; }
.why summary, .write summary { cursor: pointer; color: var(--accent-text); font-size: 14px; font-weight: 500; }
.why .md { margin-top: 8px; padding: 12px; background: var(--panel-2); border-radius: 8px; font-size: 14px; }
.options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); cursor: pointer; }
.opt:hover { border-color: var(--accent); background: var(--accent-soft); }
.opt.default { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.opt small, .radio-opt small { color: var(--muted); font-size: 13px; font-weight: 400; }
.qgroup { border: 0; padding: 0; margin: 0 0 12px; }
.qgroup legend { padding: 0; }
.radio-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; cursor: pointer; }
.radio-opt > span { display: flex; flex-direction: column; }
.radio-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.radio-opt input { margin-top: 4px; accent-color: var(--accent); }
.answered { border-left: 3px solid var(--ok); }
.quote { padding: 8px 12px; background: var(--panel-2); border-radius: 8px; white-space: pre-wrap; }
.question.mini { margin: 12px 0 0; padding: 14px; }
.question.mini .q { margin: 8px 0; font-size: 14px; }
.question.mini .opt { padding: 8px 12px; cursor: default; }

.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.field.inline { flex-direction: row; align-items: center; gap: 8px; }
input[type=text], input[type=email], select, textarea { font: inherit; font-size: 15px; color: var(--text); background: var(--panel); border: 1px solid var(--line-strong); border-radius: 8px; padding: 9px 12px; width: 100%; font-weight: 400; }
.field.inline select { width: auto; }
textarea { resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
fieldset > legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choices.compact { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--panel); }
.choice:hover { border-color: var(--line-strong); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { margin-top: 4px; accent-color: var(--accent); }
.choice > span { display: flex; flex-direction: column; }
.choice small { color: var(--muted); font-size: 13px; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check > span { display: flex; flex-direction: column; }
.check small { color: var(--muted); }
.check input { margin-top: 5px; accent-color: var(--accent); }
.toggle-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.toggle-row.disabled b { color: var(--muted); }
.switch { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); white-space: nowrap; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }

.center-card { width: 100%; max-width: 460px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 40px 32px; box-shadow: var(--shadow-lg); text-align: center; }
.center-card .lead { color: var(--soft); }
.center-card .stack { margin: 24px 0 16px; }
.note { margin: 16px 0; padding: 12px 16px; background: var(--panel-2); border-radius: 10px; text-align: left; font-style: italic; }
.lead { font-size: 16px; color: var(--soft); max-width: 60ch; }

.onboard { width: 100%; max-width: 720px; }
.onboard > .brand { margin-bottom: 24px; }
.onboard h1 { font-size: 30px; margin-bottom: 8px; }
.onboard .lead { margin-bottom: 24px; }
.steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 32px; counter-reset: step; flex-wrap: wrap; }
.steps li { counter-increment: step; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; padding-right: 10px; }
.steps li::before { content: counter(step); display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; background: var(--panel-2); font-weight: 600; font-size: 12px; }
.steps li.current { color: var(--text); font-weight: 600; }
.steps li.current::before { background: var(--accent); color: #fff; }
.steps li.done::before { content: "✓"; background: var(--ok-soft); color: var(--ok); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--text); border-bottom-color: var(--accent); }
.tabs a:hover { text-decoration: none; color: var(--text); }
.digest { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }
.days ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.days a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--soft); font-size: 14px; }
.days a.active { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.days small { color: var(--muted); }
.days .section-title { margin-top: 0; }
.md h2 { font-size: 20px; margin: 8px 0 12px; }
.md h3 { font-size: 16px; margin: 20px 0 8px; }
.md h4 { font-size: 14px; margin: 16px 0 6px; }
.md ul, .md ol { padding-left: 22px; margin: 0 0 12px; }
.md li { margin-bottom: 4px; }
.md li.cont { list-style: none; margin-top: -2px; color: var(--soft); }
.md pre { background: var(--panel-2); padding: 12px; border-radius: 8px; overflow-x: auto; font: 13px/1.5 var(--mono); }
.md pre code { background: none; padding: 0; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.md p { overflow-wrap: anywhere; }

.feed { list-style: none; margin: 0; padding: 0; position: relative; }
.feed::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.ev { display: flex; gap: 14px; padding: 8px 0; position: relative; }
.ev-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--panel); border: 3px solid var(--line-strong); flex: none; margin-top: 3px; z-index: 1; }
.ev-merged .ev-dot { border-color: var(--ok); }
.ev-asked .ev-dot { border-color: var(--warn); }
.ev-answered .ev-dot { border-color: var(--accent); }
.ev.bad .ev-dot { border-color: var(--bad); }
.ev-body p { margin: 0; }
.ev-body p + p { margin-top: 2px; }
.feed.mini { margin-top: 12px; }
.feed.mini .ev { padding: 4px 0; font-size: 14px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); padding: 10px 16px; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: .04em; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.card .table th, .card .table td { padding-left: 0; }
.card.flush .table th, .card.flush .table td { padding-left: 16px; }
.table .num { text-align: right; }
.who { display: flex; align-items: center; gap: 10px; }
.who .avatar { width: 34px; height: 34px; }
.actions { text-align: right; }
.menu { position: relative; display: inline-block; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-body { position: absolute; right: 0; top: 100%; margin-top: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 10; min-width: 160px; display: flex; flex-direction: column; text-align: left; }
.menu-body .linkish { padding: 8px 10px; width: 100%; text-align: left; border-radius: 6px; color: var(--text); }
.menu-body .linkish.danger { color: var(--bad); }
.menu-body .linkish:hover { background: var(--panel-2); }
.copy-row { display: flex; gap: 8px; margin: 6px 0; }
.copy-row input { font: 12px var(--mono); padding: 6px 8px; min-width: 0; }
.copy-row .btn { white-space: nowrap; }
.field-help { list-style: none; margin: 2px 0 0; padding: 0; font-size: 13px; font-weight: 400; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.field-help b { color: var(--soft); font-weight: 600; }
.profile-head { display: flex; align-items: center; gap: 12px; }
.profile-head .avatar { width: 44px; height: 44px; }

.term { position: relative; display: inline; white-space: nowrap; }
.tip-btn { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 3px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--panel); color: var(--muted); font-size: 10px; font-weight: 700; cursor: help; vertical-align: 2px; padding: 0; line-height: 1; }
.tip { display: none; position: absolute; left: 0; top: calc(100% + 6px); width: 260px; max-width: 80vw; background: var(--text); color: var(--bg); font-size: 13px; font-weight: 400; line-height: 1.45; padding: 10px 12px; border-radius: 8px; box-shadow: var(--shadow-lg); z-index: 40; white-space: normal; text-transform: none; letter-spacing: 0; text-align: left; }
.term:hover .tip, .term:focus-within .tip, .term.open .tip { display: block; }

.tour { position: fixed; right: 24px; bottom: 24px; width: 340px; max-width: calc(100vw - 32px); background: var(--panel); border: 1px solid var(--accent); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 20px; z-index: 50; }
.tour-step { font-size: 12px; font-weight: 600; color: var(--accent-text); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.tour .row { justify-content: flex-end; margin-top: 12px; }

.guide .three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 16px; }
.guide ul { padding-left: 18px; margin: 0; }
.guide li { margin-bottom: 6px; }
.howto { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.howto .card { margin: 0; }
.sample { margin-top: 12px; padding: 12px; border-radius: 10px; background: var(--panel-2); pointer-events: none; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 8px 0 0; color: var(--soft); }
.glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0; }
.glossary dt { font-weight: 650; }
.glossary dd { margin: 0; color: var(--soft); font-size: 14px; }

@media (max-width: 1000px) {
  .tiles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two, .money, .howto, .guide .three-col { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .with-nav { padding-left: 0; }
  .topbar { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 8px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 15; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; width: 280px; box-shadow: var(--shadow-lg); top: 0; }
  .demo-banner ~ .sidebar { top: 0; }
  .nav-toggle:checked ~ .sidebar { transform: none; }
  .nav-toggle:checked ~ .scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 18; }
  .main { padding: 20px 16px 48px; }
  h1 { font-size: 22px; }
  .onboard h1 { font-size: 24px; }
  .grid.cards { grid-template-columns: 1fr; }
  .choices, .tiles.three, .glossary { grid-template-columns: 1fr; }
  .digest { grid-template-columns: 1fr; }
  .days ul { flex-direction: row; overflow-x: auto; }
  .board { grid-template-columns: repeat(6, minmax(200px, 1fr)); }
  .hide-sm { display: none; }
  .center-card { padding: 32px 20px; }
  .bare-main { padding: 32px 16px; }
  .tour { right: 16px; bottom: 16px; left: 16px; width: auto; }
  .card { padding: 16px; }
  .flow span { font-size: 10px; }
  .facts.wide { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .tiles.four { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tile b { font-size: 20px; }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .table-wrap:has(.table.stack-sm) { overflow-x: visible; }
  .table.stack-sm, .table.stack-sm tbody, .table.stack-sm tr, .table.stack-sm td { display: block; width: 100%; }
  .table.stack-sm thead { display: none; }
  .table.stack-sm tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .card:not(.flush) .table.stack-sm tr { padding-left: 0; padding-right: 0; }
  .table.stack-sm tr:last-child { border-bottom: 0; }
  .table.stack-sm td, .card .table.stack-sm td, .card.flush .table.stack-sm td { padding: 3px 0; border: 0; overflow-wrap: anywhere; }
  .table.stack-sm td.hide-sm { display: block; }
  .table.stack-sm td.lead { padding-bottom: 8px; }
  .table.stack-sm td[data-label] { display: flex; gap: 8px; align-items: baseline; }
  .table.stack-sm td[data-label]::before { content: attr(data-label); flex: 0 0 92px; font-size: 12px; font-weight: 600; color: var(--muted); }
  .table.stack-sm td.actions { padding-top: 10px; }
  .table.stack-sm .menu { display: block; }
  .table.stack-sm .menu summary { display: flex; justify-content: center; width: 100%; }
  .table.stack-sm .menu-body { position: static; margin-top: 6px; box-shadow: none; min-width: 0; }
  .copy-row.stack-sm { flex-direction: column; }
  .copy-row.stack-sm .btn { width: 100%; justify-content: center; }
}
