/* Just B2B introducer portal, design prototype v2 (18 Oct 2026).
   v1 was rejected as "a leopard: everything everywhere" (kept in v1/). This version is calm and controlled, like the references
   Ibby sent (Potion, the Sales portal, Shopper AI): a near-white canvas, white panels on hairlines, navy ink, ONE accent (Mo's teal)
   at a few uses, status as soft washes, three weights. Mo's brand appears as his logo, his navy and his teal, nothing more.
   Every colour is a token, so a broker who buys Mo's template swaps tokens, never the structure. */



:root {
  --navy: #0A2233; --ink: #1d3640; --ink-2: #3e5862; --muted: #5d747b; --faint: #8a9ea4;
  --accent: #0a8f97; --accent-ink: #076b72; --accent-wash: #e9f5f5; --accent-line: #c5e6e5;
  --canvas: #f6f8f9; --panel: #ffffff; --line: #e6ecee; --line-2: #d8e1e4; --hover: #f4f7f8;
  /* statuses: soft washes, dark text, never the only signal */
  --ok-bg: #e9f5f2; --ok-tx: #13685a; --wait-bg: #fbf4e6; --wait-tx: #7d5410; --info-bg: #edf2f7; --info-tx: #2c4a63; --neu-bg: #f1f4f5; --neu-tx: #50666d; --bad-bg: #fbeeee; --bad-tx: #9c2f2f;
  /* the four commission stops, muted */
  --s1: #c9d4d8; --s2: #7f97a6; --s3: #d9b25e; --s4: #0a8f97;
  --f: "Figtree", system-ui, sans-serif;
  --r: 12px; --r-sm: 8px;
  --pop: 0 12px 32px -16px rgba(10,34,51,.28), 0 1px 2px rgba(10,34,51,.06);
  --ease: cubic-bezier(.16,1,.3,1);
  --side: 248px; --side-shut: 68px;
  --menu: #0A2233; --menu-2: #14344a; --menu-ink: #b4c8cf; --menu-line: rgba(255,255,255,.12); --menu-accent: #3fd0d0;
}
[data-brand="harbour"] {
  --navy: #1c2b22; --ink: #22322a; --ink-2: #44564b; --muted: #5f6f65; --faint: #8f9c94;
  --accent: #2f7d4f; --accent-ink: #25633f; --accent-wash: #edf5f0; --accent-line: #cde3d6; --s4: #2f7d4f;
  --menu: #1c2b22; --menu-2: #2a4033; --menu-ink: #bccbc2; --menu-accent: #7ccf9c;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--f); font-size: 14px; line-height: 1.5; color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; color: var(--navy); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
svg { flex: none; }

/* ------------------------------------------------------------------ buttons: slim pills, one primary per view */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--navy); font-weight: 500; font-size: 14px; cursor: pointer; white-space: nowrap; transition: border-color .15s, background .15s; }
.btn:hover { border-color: var(--faint); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: #12344a; }
.btn.sm { height: 30px; padding: 0 12px; font-size: 14px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn .k { font-size: 12px; opacity: .6; border: 1px solid currentColor; border-radius: 5px; padding: 0 4px; line-height: 16px; }
.tlink { background: none; border: 0; padding: 0; min-height: 28px; display: inline-flex; align-items: center; gap: 4px; color: var(--accent-ink); font-weight: 500; font-size: 14px; cursor: pointer; }
.tlink:hover { color: var(--navy); }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); display: inline-grid; place-items: center; cursor: pointer; color: var(--ink-2); position: relative; padding: 0; }
.icon-btn:hover { border-color: var(--line-2); color: var(--navy); }
.icon-btn .dot { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--panel); }

/* ------------------------------------------------------------------ shell: one quiet sidebar (the portal standard's menu, light) */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.shell.shut { grid-template-columns: var(--side-shut) minmax(0, 1fr); }


.side { background: var(--menu); border-right: 0; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 14px 14px; overflow: hidden; }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 16px; min-height: 34px; }
.side-top img { height: 21px; display: block; }
.side-top .wm { font-weight: 600; font-size: 18px; color: #fff; letter-spacing: -.01em; white-space: nowrap; }
.shut .side-top .logo { display: none; }
.collapse { width: 28px; height: 28px; border-radius: 8px; border: 0; background: none; cursor: pointer; color: var(--menu-ink); display: grid; place-items: center; padding: 0; }
.collapse:hover { background: var(--menu-2); color: #fff; }
.shut .collapse { margin: 0 auto; transform: rotate(180deg); }
.acct { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--menu-line); border-radius: var(--r); margin-bottom: 18px; }
.acct .av { width: 30px; height: 30px; border-radius: 50%; background: var(--menu-2); color: #fff; font-weight: 600; font-size: 12px; display: grid; place-items: center; flex: none; }
.acct b { display: block; font-weight: 600; font-size: 14px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct small { display: block; font-size: 12px; color: var(--menu-ink); }
.acct span:last-child { min-width: 0; }
.shut .acct { border: 0; padding: 0 0 0 3px; } .shut .acct span:last-child { display: none; }
.navlab { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #7f9aa4; padding: 6px 10px; }
.shut .navlab { visibility: hidden; height: 12px; padding: 0; }
.nv { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 9px; color: var(--menu-ink); font-weight: 500; font-size: 14px; position: relative; }
.nv svg { width: 18px; height: 18px; color: #8fa9b3; }
.nv:hover { background: var(--menu-2); color: #fff; }
.nv.on { background: var(--menu-2); color: #fff; font-weight: 600; }
.nv.on svg { color: var(--menu-accent); }
.nv .ct { margin-left: auto; font-size: 12px; color: var(--menu-ink); font-variant-numeric: tabular-nums; }
.shut .nv { justify-content: center; padding: 0; } .shut .nv span, .shut .nv .ct { display: none; }
.shut .nv[data-tip]:hover::after { content: attr(data-tip); position: absolute; left: 50px; background: var(--navy); color: #fff; font-size: 12px; padding: 4px 9px; border-radius: 6px; white-space: nowrap; z-index: 5; }
.side .grow { flex: 1; }
.contact { border: 1px solid var(--menu-line); border-radius: var(--r); padding: 12px; }
.contact .who { display: flex; align-items: center; gap: 10px; }
.contact .av { width: 34px; height: 34px; border-radius: 50%; background: var(--menu-accent); color: var(--menu); font-weight: 600; font-size: 12px; display: grid; place-items: center; flex: none; }
.contact b { display: block; font-size: 14px; font-weight: 600; color: #fff; }
.contact small { display: block; font-size: 12px; color: var(--menu-ink); }
.contact .acts { display: flex; gap: 6px; margin-top: 10px; }
.contact .acts .btn { flex: 1; background: transparent; border-color: var(--menu-line); color: #fff; }
.contact .acts .btn:hover { background: var(--menu-2); }
.dock .contact { border-color: var(--line); } .dock .contact b { color: var(--navy); } .dock .contact small { color: var(--muted); } .dock .contact .av { background: var(--navy); color: #fff; }
.shut .contact { border: 0; padding: 0; } .shut .contact .who > span, .shut .contact .acts { display: none; } .shut .contact .who { justify-content: center; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 24px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.search { flex: 1; max-width: 440px; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 12px; border-radius: 10px; background: var(--canvas); border: 1px solid transparent; color: var(--faint); }
.search:focus-within { border-color: var(--line-2); background: var(--panel); }
.search input { border: 0; outline: 0; background: none; flex: 1; min-width: 0; color: var(--ink); font-size: 14px; }
.search .k { font-size: 12px; border: 1px solid var(--line-2); border-radius: 5px; padding: 0 5px; color: var(--muted); }
.top .sp { flex: 1; }
.burger { display: none; }
.mlogo { display: none; }
.body { display: flex; gap: 16px; align-items: flex-start; padding: 16px; flex: 1; min-width: 0; }
.view { padding: 12px 16px 96px; flex: 1; min-width: 0; max-width: 1180px; margin: 0 auto; container-type: inline-size; }
.dock-open .view { max-width: none; margin: 0; padding: 12px 8px 96px 16px; }
.dock-open .ph { margin-bottom: 12px; }
.dock-open .ph h1 { font-size: 18px; }
.dock-open .ph p { display: none; }

/* ------------------------------------------------------------------ page header */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.ph h1 { font-size: 24px; }
.ph p { color: var(--muted); margin-top: 4px; }

/* ------------------------------------------------------------------ panels */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-h h2 { font-size: 16px; }
.panel-h .muted { font-size: 14px; }
.panel-b { padding: 16px 20px; }
.panel-f { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }

/* the setup and attention bars (Potion's, without the gradient) */
.bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--r); background: var(--accent-wash); border: 1px solid var(--accent-line); margin-bottom: 20px; }
.bar .ic { width: 30px; height: 30px; border-radius: 50%; background: var(--panel); color: var(--accent); display: grid; place-items: center; flex: none; }
.bar .tx { flex: 1; min-width: 0; color: var(--ink); }
.bar .tx b { color: var(--navy); font-weight: 600; }
.bar .acts { display: flex; gap: 8px; align-items: center; }
.bar.setup { background: var(--panel); border-color: var(--line); }
.prog { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.bar.setup .prog { width: 220px; }

/* one strip of key figures (never four identical boxes) */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 20px; }
.kpi { padding: 18px 20px; }
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi .l { font-size: 14px; color: var(--muted); }
.kpi .v { font-size: 28px; font-weight: 600; color: var(--navy); letter-spacing: -.01em; margin-top: 4px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.kpi .v small { font-size: 16px; font-weight: 500; }
.kpi .h { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ------------------------------------------------------------------ tables */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 10px 20px; background: #fafbfc; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 13px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; font-variant-numeric: tabular-nums; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr.click:hover td { background: var(--hover); }
.tbl tbody tr.sel td { background: var(--accent-wash); }
.tbl .r { text-align: right; }
.tbl .nm b { display: block; font-weight: 600; color: var(--navy); font-size: 14px; }
.tbl .nm small { display: block; color: var(--muted); font-size: 12px; }
.tbl .chev { width: 28px; color: var(--faint); padding-left: 0; }
.tbl td, .tbl th { padding-left: 16px; padding-right: 16px; }
.tbl td:first-child { min-width: 190px; }
.grp td { background: #fafbfc; font-size: 12px; color: var(--muted); font-weight: 500; padding: 8px 20px; }
.stage b { display: block; font-weight: 500; color: var(--navy); }
.stage .prog { width: 120px; height: 4px; margin-top: 6px; }
.stage small { font-size: 12px; color: var(--muted); }

.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--neu-bg); color: var(--neu-tx); }
.chip.ok { background: var(--ok-bg); color: var(--ok-tx); }
.chip.wait { background: var(--wait-bg); color: var(--wait-tx); }
.chip.info { background: var(--info-bg); color: var(--info-tx); }
.chip.bad { background: var(--bad-bg); color: var(--bad-tx); }

/* the segmented filter and its counts */
.toolbar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--canvas); gap: 2px; flex-wrap: wrap; }
.seg a, .seg button { height: 30px; padding: 0 12px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink-2); border: 0; background: none; cursor: pointer; }
.seg .on { background: var(--panel); color: var(--navy); box-shadow: 0 1px 2px rgba(10,34,51,.1); }
.seg .c { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.toolbar .sp { flex: 1; }
.mini-search { height: 32px; width: 220px; border: 1px solid var(--line-2); border-radius: 8px; display: flex; align-items: center; gap: 6px; padding: 0 10px; color: var(--faint); }
.mini-search input { border: 0; outline: 0; flex: 1; min-width: 0; font-size: 14px; background: none; }
.dd { position: relative; }
.dd > button { height: 32px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel); padding: 0 10px 0 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.dd .menu { position: absolute; right: 0; top: 38px; min-width: 210px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--pop); padding: 6px; z-index: 30; }
.dd .menu button { display: flex; width: 100%; align-items: center; justify-content: space-between; height: 34px; border: 0; background: none; border-radius: 7px; padding: 0 10px; cursor: pointer; font-size: 14px; color: var(--ink); }
.dd .menu button:hover, .dd .menu button.on { background: var(--hover); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.legend b { color: var(--navy); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ updates list (calm: a dot, a line, a time) */
.ups { list-style: none; margin: 0; padding: 0; }
.ups li { display: grid; grid-template-columns: 8px 1fr; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); cursor: pointer; }
.ups li:last-child { border-bottom: 0; }
.ups li:hover { background: var(--hover); }
.ups .d { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--s1); }
.ups .d.ok { background: var(--accent); } .ups .d.wait { background: var(--s3); } .ups .d.bad { background: #c75454; }
.ups b { display: block; font-weight: 600; font-size: 14px; color: var(--navy); }
.ups p { font-size: 14px; color: var(--ink-2); }
.ups time { display: block; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 2px; }
.ups b { font-weight: 500; }
.ups li.unread b { font-weight: 600; }
.ups li.unread { background: #fbfdfd; }

/* ------------------------------------------------------------------ the commission split: one thin bar, then the figures */
.split { display: flex; height: 8px; border-radius: 999px; overflow: hidden; gap: 2px; background: var(--line); }
.split i { display: block; height: 100%; transform-origin: left; animation: grow .7s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }
.split-key { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.split-key a { display: block; padding: 8px 10px; border-radius: 8px; }
.split-key a:hover, .split-key a.on { background: var(--hover); }
.split-key .l { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.split-key .l i { width: 8px; height: 8px; border-radius: 2px; }
.split-key .v { font-size: 18px; font-weight: 600; color: var(--navy); margin-top: 2px; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ side panel (pushes the page) */
.dock { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; position: sticky; top: 80px; width: 420px; flex: none; height: calc(100vh - 96px); overflow-y: auto; display: flex; flex-direction: column; animation: din .22s var(--ease) both; }
@keyframes din { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.dock-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 22px; border-radius: 16px 16px 0 0; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 2; }
.dock-h h2 { font-size: 18px; }
.dock-h p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.dock-b { padding: 6px 22px 24px; flex: 1; }
.dock-f { position: sticky; bottom: 0; background: var(--panel); border-top: 1px solid var(--line); border-radius: 0 0 16px 16px; padding: 12px 22px; display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.dock-f .hint { margin-right: auto; font-size: 12px; color: var(--muted); }
.dsec { padding: 18px 0; border-bottom: 1px solid var(--line); }
.dsec:last-child { border-bottom: 0; }
.dsec h3 { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--navy); font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.kv .hidden { color: var(--faint); font-weight: 400; display: inline-flex; gap: 5px; align-items: center; }
.kv .shared { display: inline-flex; gap: 6px; align-items: center; }
.kv .shared small { font-size: 12px; color: var(--accent-ink); font-weight: 500; }
.note { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--canvas); font-size: 14px; color: var(--ink-2); display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.note b { color: var(--navy); font-weight: 600; display: block; }
.note.wait { background: var(--wait-bg); } .note.ok { background: var(--ok-bg); } .note.bad { background: var(--bad-bg); }
.big-amt { font-size: 24px; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* vertical steps */
.vsteps { list-style: none; margin: 0; padding: 0; }
.vsteps li { display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: start; position: relative; padding-bottom: 14px; }
.vsteps li:last-child { padding-bottom: 0; }
.vsteps li::before { content: ""; position: absolute; left: 9px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.vsteps li:last-child::before { display: none; }
.vsteps li.done::before { background: var(--accent-line); }
.vsteps .k { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--panel); display: grid; place-items: center; color: #fff; position: relative; z-index: 1; }
.vsteps .done .k { background: var(--accent); border-color: var(--accent); }
.vsteps .now .k { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
.vsteps .stop .k { background: #c75454; border-color: #c75454; }
.vsteps .t { font-size: 14px; color: var(--muted); }
.vsteps .done .t, .vsteps .now .t { color: var(--navy); font-weight: 500; }
.vsteps .t small { display: block; color: var(--muted); font-weight: 400; }
.vsteps time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hsteps { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.hsteps span { display: inline-flex; align-items: center; gap: 6px; }
.hsteps i { width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--line-2); }
.hsteps .done i { background: var(--accent); border-color: var(--accent); }
.hsteps .now { color: var(--navy); font-weight: 500; } .hsteps .now i { border-color: var(--s3); background: var(--s3); }
.hsteps .sep { width: 14px; height: 1px; background: var(--line-2); }

/* ------------------------------------------------------------------ forms */
.fld { margin-top: 16px; }
.fld label, .fld .lab { display: block; font-size: 14px; font-weight: 500; color: var(--navy); margin-bottom: 6px; }
.fld .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.inp { width: 100%; height: 40px; border: 1px solid var(--line-2); border-radius: 9px; padding: 0 12px; background: var(--panel); outline: 0; font-size: 14px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.inp:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
textarea.inp { height: 84px; padding: 10px 12px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 9px; cursor: pointer; background: var(--panel); text-align: left; font-size: 14px; color: var(--ink); width: 100%; }
.opt .bx { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; color: #fff; }
.opt.radio .bx { border-radius: 50%; }
.opt.on { border-color: var(--accent); background: var(--accent-wash); }
.opt.on .bx { background: var(--accent); border-color: var(--accent); }
.opt.radio.on .bx { background: var(--panel); border: 5px solid var(--accent); }
.opt small { display: block; font-size: 12px; color: var(--muted); }
.lookup { position: relative; }
.lookup .res { position: absolute; left: 0; right: 0; top: 44px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--pop); z-index: 5; padding: 4px; }
.lookup .res button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 7px; cursor: pointer; }
.lookup .res button:hover { background: var(--hover); }
.lookup .res b { display: block; font-weight: 500; color: var(--navy); font-size: 14px; }
.lookup .res small { color: var(--muted); font-size: 12px; }
.picked { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 9px; }
.picked b { display: block; font-weight: 500; color: var(--navy); }
.picked small { color: var(--muted); font-size: 12px; }
.done-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-wash); color: var(--accent); display: grid; place-items: center; margin: 22px 0 14px; }
.copybox { display: flex; gap: 8px; align-items: center; }
.copybox .inp { background: var(--canvas); }

/* settings-style pages */
.rows .row { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.rows .row:last-child { border-bottom: 0; }
.rows .row .k { font-size: 14px; color: var(--muted); }
.rows .row .v { color: var(--navy); font-weight: 500; }
.rows .row .v small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.sw { width: 34px; height: 20px; border-radius: 999px; background: var(--line-2); border: 0; position: relative; cursor: pointer; padding: 0; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .18s var(--ease); box-shadow: 0 1px 2px rgba(10,34,51,.25); }
.sw.on { background: var(--accent); } .sw.on::after { transform: translateX(14px); }
.sw[disabled] { opacity: .5; cursor: default; }
.guide { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.guide:last-child { border-bottom: 0; }
.guide .th { width: 72px; height: 52px; border-radius: 8px; background-size: cover; background-position: center; }
.guide b { display: block; font-weight: 600; color: var(--navy); }
.guide small { display: block; color: var(--muted); font-size: 12px; }
.guide .acts { display: flex; gap: 6px; }
details.faq { border-bottom: 1px solid var(--line); }
details.faq:last-child { border-bottom: 0; }
details.faq summary { list-style: none; cursor: pointer; padding: 14px 20px; font-weight: 500; color: var(--navy); display: flex; justify-content: space-between; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--faint); }
details.faq[open] summary::after { content: "–"; }
details.faq p { padding: 0 20px 14px; color: var(--ink-2); }

/* ------------------------------------------------------------------ popovers, toast, preview */
.pop { position: fixed; top: 58px; right: 24px; width: 380px; max-height: 70vh; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--pop); z-index: 60; animation: din .18s var(--ease) both; }
.pop .panel-h { position: sticky; top: 0; background: var(--panel); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0; visibility: hidden; background: var(--navy); color: #fff; border-radius: 999px; padding: 8px 8px 8px 16px; display: flex; gap: 12px; align-items: center; z-index: 90; font-size: 14px; transition: transform .3s var(--ease), opacity .2s, visibility .2s; box-shadow: var(--pop); }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast .btn { height: 28px; background: rgba(255,255,255,.12); border-color: transparent; color: #fff; font-size: 12px; }
.pv { position: fixed; left: calc(var(--side) + 24px); bottom: 16px; z-index: 80; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--pop); padding: 6px; display: flex; gap: 4px; align-items: center; font-size: 12px; }
.shell.shut ~ .pv { left: calc(var(--side-shut) + 24px); }
.pv .lab { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 0 6px 0 8px; }
.pv button { height: 28px; padding: 0 10px; border-radius: 7px; border: 0; background: none; cursor: pointer; color: var(--ink-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.pv button:hover { background: var(--hover); }
.pv button.on { background: var(--navy); color: #fff; }
.pv .sep { width: 1px; height: 18px; background: var(--line); margin: 0 2px; }
.pv.fold > :not(.pvf) { display: none; }
.pv .pvf { width: 28px; padding: 0; display: grid; place-items: center; }

/* ------------------------------------------------------------------ sign in (calm, Shopper AI's control) */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--panel); }
.auth-l { padding: 40px 56px; display: flex; flex-direction: column; }
.auth-l .logo img { height: 24px; }
.auth-form { margin: auto 0; max-width: 400px; width: 100%; }
.auth-form .eb { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.auth-form h1 { font-size: 30px; font-weight: 600; margin-top: 10px; letter-spacing: -.02em; }
.auth-form > p { color: var(--muted); margin-top: 8px; }
.auth-form .btn.primary { width: 100%; height: 42px; margin-top: 22px; }
.auth-form .alt { margin-top: 16px; font-size: 14px; color: var(--muted); }
.auth-l .foot { font-size: 12px; color: var(--faint); }
.auth-r { background: linear-gradient(160deg, #eef4f6 0%, #e4edf0 100%); position: relative; overflow: hidden; display: grid; place-items: center; padding: 48px; }
.mock { width: min(520px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 30px 60px -36px rgba(10,34,51,.35); overflow: hidden; }
.mock .mh { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.mock .mh b { color: var(--navy); font-weight: 600; font-size: 14px; }
.mock .mr { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 14px; align-items: center; }
.mock .mr:last-child { border-bottom: 0; }
.mock .mr b { display: block; color: var(--navy); font-weight: 500; }
.mock .mr small { color: var(--muted); font-size: 12px; }
.glass { position: absolute; background: rgba(255,255,255,.72); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.9); border-radius: 12px; padding: 12px 14px; box-shadow: 0 18px 40px -24px rgba(10,34,51,.4); font-size: 12px; color: var(--muted); }
.glass b { display: block; font-size: 18px; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }

/* registration (one column, a setup bar, one group at a time) */
.reg { max-width: 640px; margin: 0 auto; padding: 32px 24px 96px; }
.reg-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 32px; background: var(--panel); border-bottom: 1px solid var(--line); }
.reg-top img { height: 22px; display: block; }
.reg .stepline { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin: 10px 0 22px; gap: 8px; }
.reg .stepline .on { color: var(--navy); font-weight: 600; }
.agree { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.agree:last-child { border-bottom: 0; }
.agree .ic { width: 34px; height: 34px; border-radius: 8px; background: var(--canvas); color: var(--ink-2); display: grid; place-items: center; flex: none; }
.agree b { display: block; font-weight: 500; color: var(--navy); }
.agree small { display: block; color: var(--muted); font-size: 12px; }
.agree .sp { flex: 1; }

/* ------------------------------------------------------------------ the Just B2B team side (his CRM's structure) */
.crm-stages { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 3px; overflow: hidden; }
.crm-stages span { flex: 1; text-align: center; font-size: 12px; font-weight: 500; color: var(--muted); padding: 8px 4px; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%, 9px 50%); background: var(--canvas); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-stages span:first-child { clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%); border-radius: 999px 0 0 999px; }
.crm-stages span.done, .crm-stages span.now { background: var(--accent); color: #fff; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 18px 0 20px; overflow-x: auto; }
.tabs span { padding: 10px 12px; font-size: 14px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs span.on { color: var(--navy); border-bottom-color: var(--navy); }
.hstage { display: flex; align-items: flex-start; }
.hstage span { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; font-size: 12px; color: var(--muted); text-align: center; position: relative; }
.hstage span::before { content: ""; position: absolute; top: 9px; right: 50%; left: -50%; height: 2px; background: var(--line); }
.hstage span:first-child::before { display: none; }
.hstage span.done::before, .hstage span.now::before { background: var(--accent-line); }
.hstage i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--panel); position: relative; z-index: 1; display: grid; place-items: center; color: #fff; }
.hstage .done i { background: var(--accent); border-color: var(--accent); }
.hstage .now i { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
.hstage .done, .hstage .now { color: var(--navy); }
.wfrow { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); align-items: start; }
.wfrow:last-child { border-bottom: 0; }
.wfrow .n { width: 26px; height: 26px; border-radius: 50%; background: var(--canvas); color: var(--ink-2); font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.wfrow b { display: block; font-weight: 600; color: var(--navy); }
.wfrow p { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.wfrow .when { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.wfrow .when span { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--canvas); color: var(--ink-2); }
.wfrow .when span.new { background: var(--wait-bg); color: var(--wait-tx); }

/* ------------------------------------------------------------------ reflow */
@container (max-width: 900px) {
  .tbl .hide-s { display: none; }
}
@container (max-width: 980px) {
  .cols { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(3) { border-left: 0; } .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .split-key { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tbl .hide-m { display: none; }
  .tbl .nm b { white-space: normal; }
}
@media (max-width: 860px) {
  .shell, .shell.shut, .shell.dock-open, .shell.shut.dock-open { grid-template-columns: 1fr; }
  .side { display: none; }
  .shell.menu .side { display: flex; position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 70; box-shadow: var(--pop); }
  .top { padding: 0 16px; }
  .top .search { display: none; }
  .burger { display: inline-grid; }
  .mlogo { display: block; height: 20px; }
  .top .refer { padding: 0 12px; }
  .top .refer .k { display: none; }
  .body { padding: 0; }
  .view { padding: 20px 16px 120px; }
  .dock { border-radius: 0; width: auto; height: 100vh; top: 0; }
  .dock { position: fixed; inset: 0; z-index: 75; }
  .auth { grid-template-columns: 1fr; }
  .auth-r { display: none; }
  .auth-l { padding: 28px 22px; }
  .tbl th, .tbl td { padding-left: 14px; padding-right: 14px; }
  .tbl .hide-s, .tbl .hide-m, .tbl .chev { display: none; }
  .tbl td.r, .tbl th.r { padding-left: 4px; }
  .tbl td:first-child { min-width: 0; }
  .tbl td, .tbl th { padding-left: 12px; padding-right: 12px; }

  .panel { overflow-x: auto; }
  .stage .prog { width: 80px; }
  .rows .row { grid-template-columns: 1fr auto; }
  .rows .row .k { grid-column: 1 / -1; }
  .guide { grid-template-columns: 56px minmax(0, 1fr); }
  .guide .acts { grid-column: 1 / -1; }
  .bar { flex-wrap: wrap; }
  .bar .tx { flex-basis: calc(100% - 44px); }
  .bar .acts { margin-left: 44px; }
  .dock-f .hint { display: none; }
  .bar.setup .prog { width: 100%; }
  .pv { left: 8px; right: 8px; overflow-x: auto; }
  .choice { grid-template-columns: 1fr; }
  .toast { bottom: 84px; }
  .toolbar .mini-search { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* portal shell (slice 1) additions */
.alert { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--bad-bg); color: var(--bad-tx); font-size: 14px; }
.btn.outline { background: transparent; border-color: var(--menu-line); color: #fff; width: 100%; }
.btn.outline:hover { background: var(--menu-2); }
.wm { font-weight: 600; font-size: 18px; letter-spacing: -.01em; white-space: nowrap; }
.side-top .wm { color: #fff; }
.search input:disabled { cursor: default; }
.rows .row .v small { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dock-b .fld:first-child { margin-top: 18px; }
.auth-form .alt { margin-top: 16px; }
.mlogo img { height: 20px; display: block; }
.mlogo .wm { font-size: 16px; }
.reg-top img { height: 22px; }

/* ================================================================== ALTERNATIVE (18 Oct): the Reeve Consult portal's richer pages, kept calm
   From the RC portal: welcome hero with a dark "How you earn" card, a ticked first-steps journey, two routes, a Who to introduce
   picker (good fit, what to say, what not to say), dos and don'ts, what happens next, Learn as a library, A message for. Drawn in
   this shell's tokens: Mo's navy for the one dark card, his teal for the accent, his own photos, Figtree 600, nothing louder. */
.eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-ink); }
.eyebrow.no { color: var(--bad-tx); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; margin: 8px 0 24px; }
.hero h1 { font-size: 30px; letter-spacing: -.02em; line-height: 1.15; margin-top: 10px; max-width: 26ch; }
.hero .lede { font-size: 16px; color: var(--muted); margin-top: 12px; max-width: 54ch; }
.hero .acts { display: flex; gap: 18px; align-items: center; margin-top: 22px; flex-wrap: wrap; }
.darkcard { background: var(--menu); color: var(--menu-ink); border-radius: 16px; padding: 24px; position: relative; overflow: hidden; }
.darkcard .ring, .opt-card.dark .ring { position: absolute; width: 240px; height: 240px; right: -80px; top: -80px; border-radius: 50%; border: 1px solid rgba(63,208,208,.16); pointer-events: none; }
.darkcard .ring::after, .opt-card.dark .ring::after { content: ""; position: absolute; inset: 44px; border-radius: 50%; border: 1px solid rgba(63,208,208,.12); }
.darkcard .eyebrow, .opt-card.dark .eyebrow { color: var(--menu-accent); }
.darkcard .big { font-size: 34px; font-weight: 600; color: #fff; letter-spacing: -.02em; margin-top: 10px; font-variant-numeric: tabular-nums; }
.darkcard .when { font-size: 14px; color: var(--menu-ink); margin-top: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--menu-line); }
.darkcard ul { list-style: none; margin: 0; padding: 6px 0 4px; position: relative; }
.darkcard li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: 14px; border-bottom: 1px solid var(--menu-line); }
.darkcard li:last-child { border-bottom: 0; }
.darkcard li b { color: #fff; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.darkcard ul.earn { padding-top: 10px; }
.darkcard ul.earn li b { max-width: 60%; }
.tlink.light { color: #fff; } .tlink.light:hover { color: var(--menu-accent); }
.sec { margin-top: 32px; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.sec-h h2 { font-size: 18px; }
.sec-h .muted { font-size: 14px; }
.sec.cols { display: grid; }

.trackcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tcard { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 12px; min-height: 170px; transition: border-color .15s, box-shadow .2s var(--ease); }
.tcard:hover { border-color: var(--line-2); box-shadow: 0 10px 24px -18px rgba(10,34,51,.35); }
.tcard .tc-top { display: flex; gap: 10px; align-items: center; min-width: 0; }
.tcard .tc-top b { font-weight: 600; color: var(--navy); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mono { width: 30px; height: 30px; border-radius: 50%; background: var(--canvas); color: var(--ink-2); font-size: 12px; font-weight: 600; display: grid; place-items: center; flex: none; border: 1px solid var(--line); }
.tcard .st { font-size: 18px; font-weight: 600; color: var(--navy); letter-spacing: -.01em; }
.segs { display: flex; gap: 4px; }
.segs i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.segs i.on { background: var(--accent); }
.tcard .ft { display: flex; justify-content: space-between; align-items: center; margin-top: auto; font-size: 12px; color: var(--muted); gap: 8px; }
.tcard.ask { background: var(--accent-wash); border-color: var(--accent-line); justify-content: space-between; }
.tcard.ask h3 { font-size: 18px; line-height: 1.3; }

.people { padding: 8px 20px; }
.person { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.person:last-child { border-bottom: 0; }
.person .face { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 600; font-size: 14px; display: grid; place-items: center; flex: none; }
.person b { display: block; font-weight: 600; color: var(--navy); }
.person small { display: block; font-size: 12px; color: var(--muted); }

.journey { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.journey li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.journey .n { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--panel); color: var(--ink-2); font-size: 12px; font-weight: 600; display: grid; place-items: center; cursor: pointer; padding: 0; font-variant-numeric: tabular-nums; }
.journey li.done .n { background: var(--accent); border-color: var(--accent); color: #fff; }
.journey li.done b { color: var(--muted); }
.journey b { display: block; font-weight: 600; color: var(--navy); }
.journey small { display: block; font-size: 12px; color: var(--muted); }

.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.opt-card { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; cursor: pointer; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; transition: border-color .15s, box-shadow .2s var(--ease); }
.opt-card:hover { border-color: var(--line-2); box-shadow: 0 12px 28px -20px rgba(10,34,51,.4); }
.opt-card h3 { font-size: 22px; letter-spacing: -.02em; }
.opt-card p { color: var(--muted); max-width: 46ch; }
.opt-card .ft { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 12px; }
.opt-card .ft small { font-size: 12px; color: var(--muted); }
.opt-card.dark { background: var(--menu); border-color: var(--menu); }
.opt-card.dark h3 { color: #fff; } .opt-card.dark p, .opt-card.dark .ft small { color: var(--menu-ink); }
.btn.light { background: #fff; border-color: #fff; color: var(--navy); }

.picker { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pick { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; border: 0; padding: 0; cursor: pointer; background: var(--canvas); transition: box-shadow .15s; }
.pick img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pick:hover img { transform: scale(1.03); }
.pick::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,34,51,0) 45%, rgba(10,34,51,.82) 100%); }
.pick span { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; text-align: left; }
.pick b { display: block; color: #fff; font-weight: 600; font-size: 16px; letter-spacing: -.01em; line-height: 1.25; }
.pick small { display: block; color: #d3e1e6; font-size: 12px; margin-top: 2px; }
.pick.on { box-shadow: 0 0 0 2px var(--canvas), 0 0 0 4px var(--accent); }
.fit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 22px 24px; margin-top: 16px; }
.fit p { margin-top: 6px; color: var(--ink); }
.ddcards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dd { list-style: none; margin: 0; padding: 8px 20px 12px; }
.dd li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; color: var(--ink); }
.dd li svg { color: var(--accent); margin-top: 3px; }
.dd.no li svg { color: var(--bad-tx); }
.stepsrow { list-style: none; margin: 0; padding: 22px 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stepsrow i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-wash); color: var(--accent-ink); font-size: 12px; font-weight: 600; display: grid; place-items: center; margin-bottom: 10px; }
.stepsrow b { display: block; font-weight: 600; color: var(--navy); }
.stepsrow span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }

.learn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lc { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .2s var(--ease); }
.lc:hover { border-color: var(--line-2); box-shadow: 0 10px 24px -18px rgba(10,34,51,.35); }
.lc .im { height: 120px; background-size: cover; background-position: center; }
.lc .bd { padding: 16px 44px 18px 18px; }
.lc b { display: block; font-weight: 600; color: var(--navy); font-size: 16px; }
.lc .bd span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.lc .ar { position: absolute; right: 14px; bottom: 18px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink-2); background: var(--panel); }
.msgbox { background: var(--canvas); border-radius: 12px; padding: 18px 20px; white-space: pre-line; color: var(--ink); margin: 12px 0 14px; line-height: 1.6; }

@container (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; }
  .hero .darkcard { max-width: 520px; }
  .trackcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .learn { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stepsrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fit { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 860px) {
  .trackcards, .opts, .ddcards, .learn { grid-template-columns: 1fr; }
  .picker { grid-template-columns: repeat(5, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .pick { scroll-snap-align: start; aspect-ratio: 4 / 3; }
  .stepsrow { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .panel-b[style*="grid-template-columns"] { display: block !important; }
  .panel-b[style*="grid-template-columns"] .copybox { margin-top: 12px; }
}
@media (max-width: 860px) {
  .guide .th { width: 56px; height: 44px; }
  .lc .im { height: 96px; }
  .tcard { min-height: 0; }
}
