/* GrowthRouter dashboard. Developer-tool layout (sidebar shell, getting-started row, stat tiles,
   usage chart, docs). Brand values match growthrouter-site/tokens.css (thoufeekxlabs lime + ink). */
:root {
  --bg: #ffffff; --side: #f7f7f5; --panel: #ffffff; --sunk: #fafaf8;
  --line: #e9e9e4; --line-strong: #dcdcd5;
  --ink: #111111; --ink-2: #3d3d38; --muted: #6b6b63; --dim: #9b9b91;
  --signal: #d4ff00; --signal-hover: #ccf500; --signal-edge: #b8de00; --signal-ink: #141a00; --signal-tint: #f3ffbf;
  --moss: #4f7300; --chart: #6b9a00; --chart-hover: #4f7300;
  --warn-bg: #fff4e5; --warn-line: #f2c98a; --warn: #8a4b00; --bad: #a3261b; --good: #2f6b00;
  --r: 10px; --r-sm: 7px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --shadow: 0 1px 2px rgba(17,17,17,.04), 0 1px 1px rgba(17,17,17,.02);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink); -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); font-size: 14px; line-height: 1.5; }
a { color: inherit; }
code, pre, kbd { font-family: var(--mono); font-size: 12.5px; }
h1 { font-size: 22px; letter-spacing: -0.02em; margin: 0; font-weight: 650; }
h2 { font-size: 15px; margin: 0; font-weight: 600; letter-spacing: -0.005em; }
h3 { font-size: 13px; margin: 0 0 6px; font-weight: 600; }
p { margin: 0 0 8px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 12.5px; }
.mono { font-family: var(--mono); }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; letter-spacing: -0.01em; font-size: 15px; }
.brand::before { content: ""; width: 18px; height: 18px; border-radius: 5px; background: var(--signal); border: 1px solid var(--signal-edge);
  background-image: linear-gradient(135deg, transparent 0 46%, var(--signal-ink) 46% 54%, transparent 54%); background-size: 10px 10px; background-position: center; background-repeat: no-repeat; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 14px 10px; gap: 4px; }
.side .top { padding: 2px 8px 10px; display: flex; align-items: center; justify-content: space-between; }
.site-switch { margin: 0 4px 10px; }
.site-switch select { width: 100%; background: var(--panel); }
.nav-group { margin: 10px 0 2px; padding: 0 10px; font-size: 11.5px; color: var(--dim); font-weight: 500; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink-2); font-weight: 500; }
.nav a:hover { background: rgba(17,17,17,.045); }
.nav a.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); outline: 1px solid var(--line); }
.nav svg { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.nav .pill { margin-left: auto; font-size: 11px; padding: 0 6px; border-radius: 99px; background: var(--signal-tint); color: var(--signal-ink); border: 1px solid var(--signal-edge); }
.side .bottom { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.plan-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; font-size: 12.5px; }
.plan-box b { display: block; font-size: 13px; }
.plan-box .bar { height: 4px; background: var(--line); border-radius: 99px; margin-top: 8px; overflow: hidden; }
.plan-box .bar i { display: block; height: 100%; background: var(--chart); }
.who { display: flex; align-items: center; gap: 8px; padding: 6px 8px; font-size: 12.5px; color: var(--muted); }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; }
.who .email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 28px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); z-index: 3; min-height: 53px; }
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.crumbs b { color: var(--ink); font-weight: 550; }
.crumbs .sep { color: var(--line-strong); }
.btn.menu-btn { display: none; }
.content { padding: 28px; max-width: 1180px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--muted); }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--signal-edge); background: var(--signal); color: var(--signal-ink); font: inherit; font-weight: 600; font-size: 13px; padding: 7px 13px; border-radius: var(--r-sm); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--signal-hover); }
.btn.ghost, .btn.secondary { background: var(--panel); border-color: var(--line-strong); color: var(--ink); font-weight: 500; box-shadow: var(--shadow); }
.btn.ghost:hover, .btn.secondary:hover { background: var(--sunk); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.dark:hover { background: #2a2a27; }
.btn.small { padding: 4px 9px; font-size: 12.5px; }
.btn.danger { color: var(--bad); }
.btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
input, select { font: inherit; font-size: 13px; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: #fff; min-width: 0; color: var(--ink); }
input::placeholder { color: var(--dim); }
input:focus, select:focus, .btn:focus-visible, .seg button:focus-visible, .nav a:focus-visible { outline: 2px solid var(--moss); outline-offset: 1px; }
label.field { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.seg { display: inline-flex; background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 2px; gap: 2px; }
.seg button { font: inherit; font-size: 12.5px; border: 0; background: transparent; padding: 4px 10px; border-radius: 5px; cursor: pointer; color: var(--muted); font-weight: 500; }
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); outline: 1px solid var(--line); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grow { flex: 1 1 auto; }

/* ---------- cards ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 20px; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-head p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.card-body { padding: 18px; }
.card-foot { padding: 10px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; background: var(--sunk); border-radius: 0 0 var(--r) var(--r); }
.scroll-x { overflow-x: auto; }

.start { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 24px; background: var(--panel); box-shadow: var(--shadow); }
.start a { display: block; padding: 14px 16px; text-decoration: none; border-right: 1px solid var(--line); position: relative; }
.start a:last-child { border-right: 0; }
.start a:hover { background: var(--sunk); }
.start .t { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 13.5px; }
.start .d { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.check { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex: none; }
.check.done { background: var(--chart); border-color: var(--chart); }
.check.done::after { content: ""; width: 7px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; background: var(--panel); }
.tile { padding: 16px 18px; border-right: 1px solid var(--line); }
.tile:last-child { border-right: 0; }
.tile .l { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.tile .n { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.tile .s { color: var(--dim); font-size: 12px; }
.chart-card { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r) var(--r); background: var(--panel); margin-bottom: 24px; box-shadow: var(--shadow); }
.chart-card .card-head { border-bottom: 0; padding-bottom: 0; }

/* ---------- chart ---------- */
.chart { position: relative; padding: 8px 18px 14px; }
.chart svg { display: block; width: 100%; height: 240px; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .grid text, .chart .xaxis text { fill: var(--dim); font-size: 11px; font-family: inherit; }
.chart .bar { fill: var(--chart); transition: fill .1s; }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:hover + .bar, .chart .hit:focus + .bar, .chart g.on .bar { fill: var(--chart-hover); }
.chart .hit:focus { outline: none; }
.chart .empty-note { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; pointer-events: none; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; border-radius: 7px; padding: 7px 10px; font-size: 12px; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); box-shadow: 0 4px 14px rgba(0,0,0,.18); z-index: 2; }
.tip b { display: block; font-size: 14px; font-variant-numeric: tabular-nums; }
.tip span { color: #c9c9c0; }
details.table-view { padding: 0 18px 14px; }
details.table-view summary { font-size: 12.5px; }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 9px 18px; border-bottom: 1px solid var(--line); background: var(--sunk); white-space: nowrap; }
td { padding: 11px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.sub td { background: var(--sunk); font-size: 12.5px; color: var(--muted); padding-top: 8px; padding-bottom: 8px; }
tr.sub td:first-child { padding-left: 36px; }
.empty { color: var(--muted); padding: 28px 18px; text-align: center; }
.empty b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 4px; }
.share { display: inline-block; width: 56px; height: 4px; background: var(--line); border-radius: 99px; vertical-align: middle; margin-left: 8px; overflow: hidden; }
.share i { display: block; height: 100%; background: var(--chart); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; border: 1px solid var(--line); white-space: nowrap; background: var(--panel); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.status-approved, .status-link { background: var(--signal-tint); border-color: var(--signal-edge); color: var(--signal-ink); }
.status-pending_approval { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }
.status-rejected { color: var(--bad); }
.status-planned { color: var(--muted); }

/* ---------- code ---------- */
.code { position: relative; background: #111; color: #eeeee8; border-radius: var(--r-sm); margin: 8px 0 12px; }
.code pre { margin: 0; padding: 13px 76px 13px 14px; overflow-x: auto; white-space: pre; line-height: 1.6; }
.code .lang { position: absolute; top: 8px; right: 62px; color: #8d8d84; font-size: 11px; font-family: var(--mono); }
.code .copy { position: absolute; top: 6px; right: 6px; background: #2a2a27; color: #eee; border: 1px solid #3a3a36; font-size: 11.5px; padding: 3px 8px; border-radius: 5px; cursor: pointer; font-family: inherit; }
.code .copy:hover { background: #3a3a36; }
.inline-code, p code, td code, li code { background: var(--sunk); border: 1px solid var(--line); padding: 0 5px; border-radius: 4px; font-size: 12px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 18px 38px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--sunk); border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 28px; bottom: 4px; width: 1px; background: var(--line); }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 180px 1fr; gap: 32px; }
.toc { position: sticky; top: 78px; align-self: start; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.toc a { text-decoration: none; color: var(--muted); padding: 4px 10px; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--ink); border-left-color: var(--ink); }
.doc-sec { margin-bottom: 36px; scroll-margin-top: 80px; }
.doc-sec h2 { font-size: 18px; margin-bottom: 6px; }
.doc-sec h3 { margin-top: 18px; font-size: 14px; }
.doc-sec ul { padding-left: 18px; margin: 6px 0 10px; }
.doc-sec .card table td:first-child { white-space: nowrap; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-top: 8px; }
.tabs button { font: inherit; font-size: 13px; background: none; border: 0; padding: 7px 12px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 550; }

/* ---------- misc ---------- */
.warn { background: var(--warn-bg); color: var(--warn); padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--warn-line); }
.note { background: var(--sunk); border: 1px solid var(--line); padding: 10px 12px; border-radius: var(--r-sm); color: var(--ink-2); font-size: 13px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 9px 14px; border-radius: 8px; font-size: 13px; z-index: 10; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.two .card { margin-bottom: 0; }
form.grid4 { display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr auto; gap: 10px; align-items: end; }
.result-link { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; background: var(--signal-tint); border: 1px solid var(--signal-edge); border-radius: var(--r-sm); }
.result-link code { flex: 1; overflow-x: auto; white-space: nowrap; color: var(--signal-ink); background: none; border: 0; }

/* Login + approval pages */
main.narrow { max-width: 640px; margin: 0 auto; padding: 56px 24px; }
.login { text-align: center; max-width: 440px !important; padding-top: 12vh !important; }
.login h1 { font-size: 26px; margin: 22px 0 10px; }
.login p { color: var(--muted); }
.login .card { padding: 22px; margin-top: 22px; text-align: left; }
.gbtn { width: 100%; justify-content: center; padding: 10px 14px; font-size: 14px; }
.kv { display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
pre.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px; white-space: pre-wrap; word-break: break-word; max-height: 360px; overflow-y: auto; }
.post-card { padding: 14px 16px; margin-bottom: 12px; }
.post-card p { margin: 0; }
.post-text { white-space: pre-wrap; margin-top: 6px !important; font-size: 16px; }
form.decide { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
form.decide input { flex: 1 1 220px; }
details summary { cursor: pointer; color: var(--muted); }

@media (max-width: 960px) {
  .start, .tiles { grid-template-columns: repeat(2, 1fr); }
  .start a:nth-child(2), .tile:nth-child(2) { border-right: 0; }
  .start a:nth-child(-n+2), .tile:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .two, .docs { grid-template-columns: 1fr; }
  .toc { display: none; }
  form.grid4 { grid-template-columns: 1fr 1fr; }
  form.grid4 .wide { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 20; transform: translateX(-100%); transition: transform .18s; box-shadow: 0 0 40px rgba(0,0,0,.15); }
  .shell.nav-open .side { transform: none; }
  .btn.menu-btn { display: inline-flex; }
  .topbar { padding: 10px 16px; }
  .content { padding: 18px 16px; }
  .chart svg { height: 200px; }
  th, td { padding-left: 12px; padding-right: 12px; }
  .card-head, .card-body { padding-left: 14px; padding-right: 14px; }
}

/* ---------- page hero, section labels (big title + dotted texture, mono step labels) ---------- */
.page-head.hero { position: relative; padding: 18px 0 26px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.page-head.hero h1 { font-size: 32px; letter-spacing: -0.03em; font-weight: 600; }
.page-head.hero p { font-size: 14px; max-width: 620px; }
.page-head.hero::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 280px; pointer-events: none; z-index: -1;
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1.2px); background-size: 8px 8px;
  -webkit-mask-image: linear-gradient(to left, #000, transparent 85%), linear-gradient(to top, #000 20%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to left, #000, transparent 85%); opacity: .8; }
.content { position: relative; z-index: 0; }
.sec-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin: 6px 0 12px; display: flex; align-items: center; gap: 6px; }
.sec-label .br { color: var(--moss); font-weight: 600; }
.sec-label::before { content: ""; width: 2px; height: 14px; background: var(--chart); border-radius: 1px; margin-right: 4px; }

/* ---------- overview grid ---------- */
.ov-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 20px; align-items: start; margin-bottom: 26px; }
.ov-grid .chart-card { margin-bottom: 0; border-top: 0; border-radius: 0 0 var(--r) var(--r); }
.ov-grid .side-col .card:last-child { margin-bottom: 0; }
.tiles + .ov-grid { margin-top: 0; }
.big { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-right: 6px; }
.keybox { display: flex; align-items: center; gap: 8px; padding: 9px 10px 9px 12px; background: var(--signal-tint); border: 1px solid var(--signal-edge); border-radius: var(--r-sm); }
.keybox code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--signal-ink); }
.side-col .code pre { font-size: 12px; max-height: 260px; }

/* ---------- activity ---------- */
.ev { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; font-weight: 600; color: var(--muted); }
.ev-signup { color: var(--warn); }
.ev-signup.ok { color: var(--good); }

@media (max-width: 1100px) { .ov-grid { grid-template-columns: 1fr; } .ov-grid .chart-card { border-top: 0; } }
@media (max-width: 760px) { .page-head.hero h1 { font-size: 26px; } .page-head.hero::after { width: 140px; } .big { font-size: 20px; } }
/* tiles sit on their own; the chart is a normal card in the grid below */
.tiles { border-radius: var(--r); margin-bottom: 20px; box-shadow: var(--shadow); }
.ov-grid .chart-card, .chart-card { border-top: 1px solid var(--line); border-radius: var(--r); }
.chart-card .card-head { padding-bottom: 6px; }
.start code { white-space: nowrap; }
/* layout fixes from visual QA: grid children must be allowed to shrink; long code scrolls inside its box */
.docs { grid-template-columns: 180px minmax(0, 1fr); }
.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
form.grid4 { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) auto; }
@media (max-width: 1200px) { form.grid4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } form.grid4 .wide { grid-column: 1 / -1; } form.grid4 .btn { justify-self: start; } }
@media (max-width: 960px) { .docs { grid-template-columns: minmax(0, 1fr); } }
td.num.small, td .nowrap { white-space: nowrap; }
.doc-sec .card td:first-child { white-space: normal; }
.doc-sec .card td:first-child code { white-space: nowrap; }
@media (max-width: 760px) {
  .crumbs { white-space: nowrap; min-width: 0; }
  .crumbs > span:not(.sep), .crumbs .sep { display: none; }
  .topbar .row a.btn.ghost { display: none; }
  .start code { white-space: normal; }
}
@media (max-width: 1100px) { .ov-grid { grid-template-columns: minmax(0, 1fr); } }
.ov-grid > * , .side-col { min-width: 0; }

/* ===== UX pass from the real-user test (2026-11-09) ===== */
/* Code blocks: header bar (label + copy never overlap the code), text wraps, inline-code styles never leak in. */
.code { overflow: hidden; }
.code-bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 6px 14px; border-bottom: 1px solid #2a2a27; }
.code .lang { position: static; color: #8d8d84; font-size: 11px; font-family: var(--mono); text-transform: lowercase; }
.code .copy { position: static; }
.code pre { padding: 12px 14px; white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; }
.code code, .code pre code { background: none !important; border: 0 !important; padding: 0 !important; color: inherit; font-size: 12.5px; border-radius: 0; }

/* Stepper (first run) */
.stepper { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 18px; flex-wrap: wrap; }
.stepper li { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 13px; background: var(--panel); }
.stepper li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--sunk); border: 1px solid var(--line-strong); font-size: 11.5px; font-weight: 600; }
.stepper li.on { color: var(--ink); border-color: var(--ink); font-weight: 550; }
.stepper li.on span { background: var(--ink); color: #fff; border-color: var(--ink); }
.stepper li.done span { background: var(--chart); color: #fff; border-color: var(--chart); }

/* Live tag status on Install */
.tag-status { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); margin-bottom: 18px; border: 1px solid var(--line); background: var(--panel); }
.tag-status > div { flex: 1; }
.tag-status.ok { background: var(--signal-tint); border-color: var(--signal-edge); }
.tag-status.wait { background: var(--sunk); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--dim); flex: none; position: relative; }
.tag-status.ok .pulse { background: var(--good); }
.tag-status.wait .pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--dim); animation: grpulse 1.6s ease-out infinite; }
@keyframes grpulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tag-status.wait .pulse::after { animation: none; } }

/* Locked nav (no site yet) */
.nav a.locked { color: var(--dim); cursor: not-allowed; }
.nav a.locked:hover { background: none; }

/* Small sample hint */
.sample { color: var(--warn); }

/* Link maker labels on one line */
form.grid4 label.field > span { display: flex; gap: 6px; align-items: baseline; }

/* Login */
.login { max-width: 520px !important; }
.login h1 { font-size: 30px; }
.login-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: left; }
.login-points li { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; background: var(--panel); }
.login-points b { display: block; font-size: 14px; }
.login-points span { color: var(--muted); font-size: 12.5px; }
@media (max-width: 560px) { .login-points { grid-template-columns: 1fr; } }
