/* FEDA console. Same palette and type as the landing page: cool grey, cobalt, Instrument Sans + DM Mono,
   sharp corners. Light by default, its own dark steps under prefers-color-scheme. */
:root {
  --bg: #eef0f3; --side: #e6e9ee; --card: #ffffff; --alt: #f5f6f8; --ink: #0b0c0e; --ink-2: #30353d; --muted: #5d6470;
  --line: rgb(11 12 14 / .10); --line-2: rgb(11 12 14 / .055);
  --accent: #1f2de6; --accent-soft: #e7e9fd; --accent-ink: #ffffff;
  --good: #11744a; --good-soft: #e2f3ea; --warn: #8a5300; --warn-soft: #fcefd9; --bad: #a3271b; --bad-soft: #fbe5e2;
  --font: "Instrument Sans", system-ui, sans-serif; --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --r: 8px; --r-sm: 6px; --side-w: 248px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0d10; --side: #111317; --card: #16181c; --alt: #1c1f24; --ink: #eef0f3; --ink-2: #c8ccd3; --muted: #959ba5;
    --line: rgb(238 240 243 / .11); --line-2: rgb(238 240 243 / .06);
    --accent: #8a93ff; --accent-soft: #20244a; --accent-ink: #0b0c0e;
    --good: #5fd39a; --good-soft: #13291d; --warn: #f0b45a; --warn-soft: #2f230f; --bad: #ff8b7c; --bad-soft: #351713;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.015em; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
svg { flex: none; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow: auto; background: var(--side); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 16px 12px; gap: 16px; }
.side__top { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 500 18px/1 var(--font); letter-spacing: -0.02em; }
.brand svg { width: 20px; height: 20px; fill: var(--accent); }
.brand em { font-style: normal; color: var(--muted); font-weight: 400; }
.side__close { display: none; }
.runcard { margin: 0 4px; padding: 12px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); font-size: 13px; line-height: 1.45; }
.runcard b { font-weight: 500; }
.runcard .mono { color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--good); margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 0 3px var(--good-soft); }
.nav { display: grid; gap: 2px; }
.nav__group { font-size: 12px; color: var(--muted); padding: 12px 12px 4px; font-weight: 500; }
.nav a { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 14.5px; transition: background .15s, color .15s; }
.nav a svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.nav a:hover { background: var(--line-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.nav a[aria-current="page"] svg { color: var(--accent); }
.nav a b { margin-left: auto; font: 500 12px/1 var(--mono); color: var(--muted); }
.side__foot { margin-top: auto; display: grid; gap: 2px; padding: 8px 4px 0; border-top: 1px solid var(--line); }
.side__foot a { font-size: 13.5px; color: var(--muted); text-decoration: none; padding: 8px; border-radius: var(--r-sm); }
.side__foot a:hover { color: var(--ink); background: var(--line-2); }
.scrim { display: none; }

.main { min-width: 0; display: flex; flex-direction: column; }
.bar { position: sticky; top: 0; z-index: 4; height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 32px;
  background: var(--bg); border-bottom: 1px solid var(--line); }
.bar__menu { display: none; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); min-width: 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs b { color: var(--ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar__right { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
main { padding: 28px 32px 64px; max-width: 1320px; width: 100%; outline: none; }
.loading { color: var(--muted); padding: 48px 0; }

/* ---------- page head ---------- */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.ph h1 { font-size: 28px; letter-spacing: -0.025em; line-height: 1.15; }
.ph p { color: var(--muted); margin-top: 6px; max-width: 72ch; }
.lede { font-size: 17px; color: var(--ink-2); max-width: 76ch; margin: -6px 0 22px; }
.lede b { font-weight: 500; color: var(--ink); }

/* ---------- cards, stats ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; min-width: 0; }
.card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card__head h2 { font-size: 16px; }
.card__head p { color: var(--muted); font-size: 13px; }
.card__head a { font-size: 13px; color: var(--accent); text-decoration: none; font-weight: 500; white-space: nowrap; }
.card__head a:hover { text-decoration: underline; }
.grid { display: grid; gap: 16px; }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.mt { margin-top: 16px; }
.stat { display: grid; gap: 2px; }
.stat__label { font-size: 13px; color: var(--muted); }
.stat__num { font: 500 32px/1.15 var(--font); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat__note { font-size: 13px; color: var(--muted); }
.stat__note.ok { color: var(--good); font-weight: 500; }

/* the pipeline strip */
.pipe { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pipe__step { padding: 4px 16px 4px 0; }
.pipe__step + .pipe__step { padding-left: 16px; border-left: 1px solid var(--line); }
.pipe__n { font: 500 28px/1.1 var(--font); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pipe__l { font-size: 14px; color: var(--ink); font-weight: 500; margin-top: 2px; }
.pipe__s { font-size: 12.5px; color: var(--muted); }
.pipe__bar { height: 6px; border-radius: 3px; background: var(--line-2); margin-top: 10px; overflow: hidden; }
.pipe__bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }

/* how it works */
.how { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: how; margin: 0; padding: 0; }
.how li { list-style: none; padding: 14px; border-radius: var(--r-sm); background: var(--alt); border: 1px solid var(--line-2); }
.how li b { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; }
.how li b::before { counter-increment: how; content: counter(how); width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 500 12px/20px var(--font); text-align: center; flex: none; }
.how li p { font-size: 13px; color: var(--muted); margin-top: 6px; }
.how li .tag { display: inline-block; margin-top: 8px; font: 500 11.5px/1 var(--mono); padding: 4px 6px; border-radius: 4px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); }
.how li .tag.ai { color: var(--accent); border-color: color-mix(in oklab, var(--accent) 35%, transparent); }

/* bars */
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: 128px minmax(0, 1fr) 44px; gap: 12px; align-items: center; font-size: 13.5px; }
.hbar span:first-child { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar__t { height: 12px; border-radius: 0 4px 4px 0; overflow: hidden; }
.hbar__t i { display: block; height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; min-width: 2px; }
.hbar__t i.soft { background: color-mix(in oklab, var(--accent) 35%, var(--card)); }
.hbar b { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.cols { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; align-items: end; height: 140px; border-bottom: 1px solid var(--line); }
.cols > div { display: grid; justify-items: center; align-content: end; gap: 4px; height: 100%; font-size: 12.5px; }
.cols i { width: 100%; max-width: 36px; border-radius: 4px 4px 0 0; background: color-mix(in oklab, var(--accent) 35%, var(--card)); }
.cols > div:last-child i { background: var(--accent); }
.cols b { font-weight: 500; font-variant-numeric: tabular-nums; }
.axis { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; font: 400 11.5px/1 var(--mono); color: var(--muted); text-align: center; margin-top: 6px; }

/* ---------- tables ---------- */
.tablewrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tablescroll { overflow-x: auto; }
.tools { display: flex; align-items: center; gap: 10px; padding: 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.search { position: relative; flex: 1 1 220px; max-width: 360px; }
.search svg { position: absolute; left: 11px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.6; }
.search input { width: 100%; height: 38px; padding: 0 12px 0 34px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--alt); color: var(--ink); font: inherit; font-size: 14px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--alt); border: 1px solid var(--line); border-radius: var(--r-sm); flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 6px 10px; border-radius: 4px; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; }
.seg button em { font-style: normal; margin-left: 5px; font-family: var(--mono); font-size: 12px; opacity: .8; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--alt); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr.link { cursor: pointer; }
tbody tr.link:hover td { background: var(--alt); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who a { text-decoration: none; font-weight: 500; }
.who a:hover { text-decoration: underline; }
.who small { display: block; color: var(--muted); font-size: 12.5px; }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 500 12.5px/1 var(--font); flex: none; background: var(--av, var(--alt)); color: #1b1f26; }
.av--lg { width: 52px; height: 52px; font-size: 17px; }
.empty-row { padding: 32px; text-align: center; color: var(--muted); }

/* chips */
.st { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 99px; font: 500 12.5px/1 var(--font); white-space: nowrap; background: var(--alt); color: var(--ink-2); }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st--booked { background: var(--good-soft); color: var(--good); }
.st--quoted { background: var(--accent-soft); color: var(--accent); }
.st--opted_out { background: var(--bad-soft); color: var(--bad); }
.st--talking, .st--contacted { background: var(--warn-soft); color: var(--warn); }
.pill { display: inline-flex; align-items: center; gap: 4px; font: 500 12px/1.2 var(--mono); padding: 3px 7px; white-space: nowrap; border-radius: 4px; background: var(--alt); border: 1px solid var(--line-2); color: var(--ink-2); }
.pill.ok { color: var(--good); background: var(--good-soft); border-color: transparent; }
.pill.no { color: var(--bad); background: var(--bad-soft); border-color: transparent; }
.pill.ai { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.chs { display: inline-flex; gap: 4px; }
.ch { position: relative; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--alt); border: 1px solid var(--line-2); }
.ch svg { width: 13px; height: 13px; fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ch img { width: 14px; height: 14px; }
.ch.off { opacity: .5; }
.ch.off::after { content: ""; position: absolute; left: 3px; right: 3px; top: 50%; height: 1.5px; background: var(--bad); transform: rotate(-35deg); }
.ch.used { background: var(--card); border-color: color-mix(in oklab, var(--accent) 50%, transparent); }

/* ---------- lead page ---------- */
.lead-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.lead-head h1 { font-size: 28px; letter-spacing: -0.025em; line-height: 1.15; }
.lead-head .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 14px; margin-top: 4px; }
.lead-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.summary { padding: 14px 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); margin-bottom: 16px; font-size: 15px; color: var(--ink-2); }
.summary b { color: var(--ink); font-weight: 500; }
.lead-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.side-col { position: sticky; top: 72px; display: grid; gap: 16px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; align-items: flex-end; flex-wrap: wrap; }
.tabs [role="tab"] { border: 0; background: none; padding: 10px 12px; font-weight: 500; font-size: 14px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tabs [role="tab"] em { font-style: normal; font: 400 12px/1 var(--mono); margin-left: 6px; }
.toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; padding: 10px 0; }
.toggle input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }

/* conversation */
.convo { display: grid; gap: 10px; }
.switch { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); margin: 10px 0 2px; }
.switch::before, .switch::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.switch .ch { width: 22px; height: 22px; }
.msg { max-width: 78%; display: grid; gap: 4px; }
.msg--in { justify-self: start; }
.msg--out { justify-self: end; }
.msg__by { font-size: 12px; color: var(--muted); }
.msg--out .msg__by { text-align: right; }
.bubble { padding: 10px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; }
.msg--in .bubble { border-top-left-radius: 4px; }
.msg--out .bubble { background: var(--accent); color: var(--accent-ink); border-color: transparent; border-top-right-radius: 4px; }
.bubble .subj { display: block; font-weight: 500; margin-bottom: 4px; }
.why { justify-self: end; width: min(78%, 640px); border: 1px dashed color-mix(in oklab, var(--accent) 40%, var(--line)); border-radius: var(--r); padding: 10px 12px; display: grid; gap: 6px; font-size: 13px; background: var(--card); }
.convo.no-why .why { display: none; }
.why__row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.why__k { font-weight: 500; color: var(--muted); font-size: 12px; }
.why__v { color: var(--ink-2); }
.why__v .pill { margin: 0 4px 3px 0; }
.why__v.bad { color: var(--bad); }

/* reasoning (step list) and activity */
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.steps > li { display: grid; grid-template-columns: 64px 24px minmax(0, 1fr); gap: 12px; }
.steps time { font: 400 12px/1 var(--mono); color: var(--muted); padding-top: 5px; text-align: right; }
.steps .rail { position: relative; display: grid; justify-items: center; align-content: start; }
.steps .rail::after { content: ""; position: absolute; top: 24px; bottom: 0; width: 1px; background: var(--line); }
.steps li:last-child .rail::after { display: none; }
.steps .ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); z-index: 1; }
.steps .ic svg { width: 12px; height: 12px; fill: none; stroke: var(--ink-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.steps .ic.say { background: var(--accent); border-color: var(--accent); } .steps .ic.say svg { stroke: var(--accent-ink); }
.steps .ic.ok { background: var(--good-soft); border-color: transparent; } .steps .ic.ok svg { stroke: var(--good); }
.steps .ic.bad { background: var(--bad-soft); border-color: transparent; } .steps .ic.bad svg { stroke: var(--bad); }
.steps .body { padding: 2px 0 18px; min-width: 0; }
.steps .body > b { font-weight: 500; }
.steps .body p { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.steps .body .q { color: var(--muted); font-size: 13.5px; margin-top: 3px; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.steps .body .pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.steps .body a { font-weight: 500; text-decoration: none; } .steps .body a:hover { text-decoration: underline; }

/* right column blocks */
.journey { list-style: none; margin: 0; padding: 0; display: grid; }
.journey li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; position: relative; padding-bottom: 14px; }
.journey li::after { content: ""; position: absolute; left: 10.5px; top: 22px; bottom: 0; width: 1px; background: var(--line); }
.journey li:last-child { padding-bottom: 0; } .journey li:last-child::after { display: none; }
.journey .k { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--alt); border: 1px solid var(--line); z-index: 1; }
.journey .k svg { width: 11px; height: 11px; fill: none; stroke: var(--muted); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.journey li.done .k { background: var(--accent); border-color: var(--accent); }
.journey li.done .k svg { stroke: var(--accent-ink); }
.journey li.final .k { background: var(--good); border-color: var(--good); }
.journey b { font-weight: 500; font-size: 14px; }
.journey p { font-size: 13px; color: var(--muted); }
.journey q { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-2); font-style: italic; }
.journey li.todo b { color: var(--muted); font-weight: 400; }
.facts { display: grid; margin: 0; }
.fact { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: 13.5px; }
.fact:first-child { border-top: 0; padding-top: 0; }
.fact dt { color: var(--muted); }
.fact dd { margin: 0; }
.fact dd b { font-weight: 500; }
.fact dd small { display: block; color: var(--muted); font-size: 12px; }
.consent { display: grid; gap: 10px; font-size: 13.5px; }
.consent > div { display: flex; align-items: center; gap: 10px; }
.consent > div > span:last-child { margin-left: auto; }

/* orders, rewrites */
.yes { font-style: italic; color: var(--ink-2); font-size: 13.5px; max-width: 46ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ids { display: grid; gap: 2px; font: 400 12px/1.4 var(--mono); color: var(--muted); }
.rw { display: grid; gap: 12px; }
.rw__item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; }
.rw__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
.rw__head a { font-weight: 500; text-decoration: none; } .rw__head a:hover { text-decoration: underline; }
.rw__head time { margin-left: auto; font: 400 12px/1 var(--mono); color: var(--muted); }
.rw__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rw__pair > div { border-radius: var(--r-sm); padding: 10px 12px; font-size: 13.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.rw__pair .draft { background: var(--bad-soft); color: var(--ink-2); }
.rw__pair .sent { background: var(--good-soft); color: var(--ink-2); }
.rw__pair small { display: block; font: 500 12px/1 var(--font); margin-bottom: 6px; white-space: normal; }
.rw__pair .draft small { color: var(--bad); } .rw__pair .sent small { color: var(--good); }
.rule { font-size: 13px; color: var(--muted); }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.okic { width: 20px; height: 20px; border-radius: 50%; background: var(--good-soft); display: grid; place-items: center; flex: none; margin-top: 1px; }
.okic svg { width: 11px; height: 11px; fill: none; stroke: var(--good); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.okic.no { background: var(--bad-soft); } .okic.no svg { stroke: var(--bad); }
.checklist small { display: block; color: var(--muted); font-size: 12.5px; }
.more { display: block; margin-top: 12px; border: 1px solid var(--line); background: var(--card); border-radius: var(--r-sm); padding: 9px; width: 100%; font-weight: 500; font-size: 13.5px; cursor: pointer; }
.more:hover { background: var(--alt); }

.tip { position: fixed; z-index: 30; pointer-events: none; background: var(--ink); color: var(--bg); font-size: 12.5px; padding: 6px 9px; border-radius: 6px; max-width: 300px; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lead-grid { grid-template-columns: 1fr; }
  .side-col { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 40; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform .2s ease; visibility: hidden; }
  body.menu-open .side { transform: none; visibility: visible; box-shadow: 0 0 40px rgb(0 0 0 / .25); }
  .side__close, .bar__menu { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); background: var(--card); border-radius: var(--r-sm); cursor: pointer; }
  .side__close svg, .bar__menu svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
  body.menu-open .scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgb(0 0 0 / .35); }
  .bar { padding: 0 16px; }
  main { padding: 20px 16px 48px; }
  .g-3, .g-21, .g-2 { grid-template-columns: 1fr; }
  .pipe { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
  .pipe__step:nth-child(4) { border-left: 0; padding-left: 0; }
  .side-col { grid-template-columns: 1fr; }
  .rw__pair { grid-template-columns: 1fr; }
  .hide-md { display: none; }
}
@media (max-width: 640px) {
  .how { grid-template-columns: 1fr; }
  .bar__right { display: none; }
  .ph h1, .lead-head h1 { font-size: 24px; }
  .msg, .why { max-width: 100%; width: 100%; }
  .hide-sm { display: none; }
  td, th { padding: 10px; }
  .stat__num { font-size: 26px; }
  .pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipe__step:nth-child(odd) { border-left: 0; padding-left: 0; }
  .pipe__step:nth-child(4) { border-left: 1px solid var(--line); padding-left: 16px; }
  .steps > li { grid-template-columns: 24px minmax(0, 1fr); }
  .steps time { display: none; }
  .why__row { grid-template-columns: 1fr; gap: 2px; }
}
