/* Vantage: the Table, evolved (redesign canvas Round 2, version A, his pick 12 Nov 2026). */
/* Version A: the approved Table, evolved. One lead per screen, a row's facts beside its name, calm default columns.
   Mono: black, greys and white; colour only marks a problem or a state. */
:root {
  --fh: 'Newsreader', Georgia, serif; --fb: 'Atkinson Hyperlegible Next', Arial, sans-serif;
  --bg: #000; --s1: #0f0f11; --s2: #18181b; --s3: #232327; --line: rgb(255 255 255 / .085); --line2: rgb(255 255 255 / .16);
  --ink: #fafafa; --ink2: #d6d6db; --acc: #f4f4f5; --acc-ink: #000; --hover: rgb(255 255 255 / .05); --band: rgb(255 255 255 / .028);
  --good: #4ccb73; --warn: #f2b53f; --bad: #f2674b; --good-soft: rgb(76 203 115 / .14); --bad-soft: rgb(242 103 75 / .15); --warn-soft: rgb(242 181 63 / .15);
  --u0: #ecd84a; --u1: #f4b23e; --u2: #f4813a; --u3: #f2524a;
  --t-todo: #8fb0ff; --t-todo-s: rgb(143 176 255 / .15); --t-idea: #f3cd4f; --t-idea-s: rgb(243 205 79 / .14); --t-bug: #ff7d66; --t-bug-s: rgb(255 125 102 / .15);
  --t-fb: #c9b8ff; --t-fb-s: rgb(201 184 255 / .14); --t-note: #e4e4e7; --t-note-s: rgb(255 255 255 / .07);
  --pop: 0 24px 60px -16px rgb(0 0 0 / .85), 0 0 0 1px rgb(255 255 255 / .13); --shadow: 0 0 0 1px rgb(255 255 255 / .07);
  --bar: rgb(255 255 255 / .42); --slowbar: #f2b53f;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f7f7f8; --s1: #fff; --s2: #f0f0f2; --s3: #e5e5e8; --line: rgb(0 0 0 / .08); --line2: rgb(0 0 0 / .16);
  --ink: #09090b; --ink2: #2e2e33; --acc: #09090b; --acc-ink: #fff; --hover: rgb(0 0 0 / .045); --band: rgb(0 0 0 / .024);
  --good: #13803a; --warn: #8f5e00; --bad: #c3341d; --good-soft: rgb(19 128 58 / .1); --bad-soft: rgb(195 52 29 / .1); --warn-soft: rgb(143 94 0 / .1);
  --u0: #c9ad00; --u1: #d98a00; --u2: #e0621b; --u3: #d32f22;
  --t-todo: #2050c8; --t-todo-s: rgb(32 80 200 / .1); --t-idea: #8a6500; --t-idea-s: rgb(201 160 0 / .14); --t-bug: #c0331c; --t-bug-s: rgb(192 51 28 / .1);
  --t-fb: #5b3fc4; --t-fb-s: rgb(91 63 196 / .1); --t-note: #27272a; --t-note-s: rgb(0 0 0 / .06);
  --pop: 0 24px 60px -18px rgb(0 0 0 / .28), 0 0 0 1px rgb(0 0 0 / .1); --shadow: 0 0 0 1px rgb(0 0 0 / .07), 0 6px 18px -14px rgb(0 0 0 / .25);
  --bar: rgb(0 0 0 / .38); --slowbar: #a86a00;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--fb); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
.num, td, .n { font-variant-numeric: tabular-nums; }
.h { font-family: var(--fh); font-weight: 500; letter-spacing: -.01em; margin: 0; line-height: 1.12; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.ic { flex: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 10px; background: var(--s2); color: var(--ink); font-weight: 500; font-size: 15px; white-space: nowrap; transition: background .12s, transform .12s cubic-bezier(.3,1.6,.6,1); }
.btn:hover { background: var(--s3); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--acc); color: var(--acc-ink); }
.btn.primary:hover { filter: brightness(.92); }
.btn.sm { height: 32px; padding: 0 11px; font-size: 14px; gap: 6px; border-radius: 9px; }
.btn.icon { width: 38px; padding: 0; justify-content: center; }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--hover); }
.kbd { font-size: 13px; line-height: 1; padding: 4px 6px; border-radius: 6px; background: var(--s3); color: var(--ink); font-weight: 600; }
.btn.primary .kbd { background: rgb(127 127 127 / .22); color: inherit; }
.count { font-size: 13px; padding: 2px 7px; border-radius: 99px; background: var(--s3); color: var(--ink); font-weight: 600; min-width: 22px; text-align: center; }
.tag { font-size: 13px; padding: 3px 8px; border-radius: 7px; background: var(--s2); color: var(--ink2); font-weight: 600; }

/* ---------- top bar ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 31; }
.top-in { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 max(24px, env(safe-area-inset-right, 0px)) 0 max(24px, env(safe-area-inset-left, 0px)); }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--fh); font-size: 25px; font-weight: 500; letter-spacing: -.015em; margin-right: 10px; }
.logo svg { width: 22px; height: 22px; }
.nav { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--s1); box-shadow: var(--shadow); }
.nav a { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px; border-radius: 9px; font-size: 15px; font-weight: 500; color: var(--ink2); transition: background .15s, color .15s; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { background: var(--s3); color: var(--ink); }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ---------- page ---------- */
.page { max-width: 1272px; margin: 0 auto; padding: 8px max(24px, env(safe-area-inset-right, 0px)) 120px max(24px, env(safe-area-inset-left, 0px)); }
.col { max-width: 920px; margin: 0 auto; }
.page-in { animation: rise .26s cubic-bezier(.2,.9,.3,1.15) both; }
@keyframes rise { from { opacity: .4; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .page-in { animation: none; } * { transition: none !important; } }

/* status: a shape and a word */
.st { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; white-space: nowrap; }
.st svg { width: 10px; height: 10px; }
.st.live, .st.up { color: var(--ink); } .st.live svg, .st.up svg { color: var(--good); }
.st.down svg, .st.down { color: var(--bad); }
.st.slow svg { color: var(--warn); }
.st.paused, .st.idea { color: var(--ink2); }
.delta { font-size: 14px; font-weight: 600; white-space: nowrap; }
.delta.up { color: var(--good); } .delta.down { color: var(--bad); }
.udot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
.udot.u0 { background: var(--u0); } .udot.u1 { background: var(--u1); } .udot.u2 { background: var(--u2); } .udot.u3 { background: var(--u3); box-shadow: 0 0 0 3px color-mix(in srgb, var(--u3) 22%, transparent); }

/* uptime strip */
.upt { display: inline-flex; gap: 2px; align-items: stretch; height: 22px; }
.upt i { width: 3px; border-radius: 1.5px; background: var(--bar); }
.upt i.slow { background: var(--slowbar); } .upt i.down { background: var(--bad); } .upt i.none { background: var(--line2); }
.upt i:last-child { background: var(--ink); } .upt i.slow:last-child { background: var(--slowbar); }
.spark { display: block; color: var(--ink); }

/* ---------- overview: the lead ---------- */
.lead { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px 48px; padding: 24px 0 22px; }
.verdict .h { font-size: 44px; letter-spacing: -.02em; display: flex; align-items: center; gap: 14px; }
.verdict .h .vs { width: 14px; height: 14px; border-radius: 50%; background: var(--good); flex: none; margin-top: 4px; }
.verdict .h .vs.bad { background: var(--bad); }
.upt-w { font-size: 15px; color: var(--ink); }
.verdict .upt i { width: 5px; border-radius: 2px; }
.stats { display: flex; gap: 8px; }
.stat { text-align: left; padding: 12px 16px; border-radius: 14px; min-width: 150px; transition: background .15s; }
.stat:hover, .stat[aria-expanded="true"] { background: var(--s1); box-shadow: var(--shadow); }
.stat .l { font-size: 14px; color: var(--ink2); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.stat .v { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; font-size: 24px; font-weight: 500; white-space: nowrap; }
.stat .v small { font-size: 14px; font-weight: 500; color: var(--ink2); }
.stat .spark { margin-top: 8px; opacity: .9; }
.stat .meter { margin-top: 12px; width: 120px; }
.meter { display: block; height: 5px; border-radius: 3px; background: var(--s3); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 3px; background: var(--ink); }
.meter.full i { background: var(--good); }

/* tools */
.tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--s1); box-shadow: var(--shadow); }
.seg button { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px; border-radius: 9px; font-size: 15px; font-weight: 500; color: var(--ink2); white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--s3); color: var(--ink); }
.seg button .count { background: transparent; padding: 0; min-width: 0; color: inherit; font-weight: 500; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 13px; border-radius: 11px; background: var(--s1); box-shadow: var(--shadow); font-size: 15px; font-weight: 500; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--acc); color: var(--acc-ink); box-shadow: none; }
.field { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 11px; background: var(--s1); box-shadow: var(--shadow); color: var(--ink2); }
.field input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 15px; color: var(--ink); }
.field input::placeholder { color: var(--ink2); opacity: 1; }
.field:focus-within { box-shadow: 0 0 0 1.5px var(--ink); }
.typeb .num { font-weight: 500; }
.tools .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ---------- the table ---------- */
.tbl-wrap { border-radius: 16px; background: var(--s1); box-shadow: var(--shadow); overflow: hidden; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 14px; font-weight: 600; color: var(--ink2); padding: 0 12px; height: 46px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.tbl th.r, .tbl td.r { text-align: right; }
.tbl th button:not(.check) { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: inherit; height: 30px; padding: 0 6px; margin: 0 -6px; border-radius: 7px; }
.tbl th button:not(.check):hover { color: var(--ink); background: var(--hover); }
.tbl th button[data-on] { color: var(--ink); }
.tbl td { padding: 0 12px; height: 54px; font-size: 15px; white-space: nowrap; border-top: 1px solid var(--line); }
.tbl tr.row { cursor: pointer; transition: background .1s; }
.tbl tr.row:hover td { background: var(--hover); }
.tbl tr.row.sel td { background: var(--band); }
.tbl tr.grp td { height: auto; padding: 20px 12px 8px; border-top: 0; background: transparent; cursor: default; }
.tbl tr.grp:first-child td { padding-top: 16px; }
.tbl tr.grp + tr td { border-top: 0; }
.grp-b { display: inline-flex; align-items: center; gap: 10px; border-radius: 8px; padding: 2px 6px 2px 2px; margin-left: -2px; }
.grp-b:hover { background: var(--hover); }
.grp-b .h { font-size: 23px; }
.grp-b .gn { font-size: 15px; color: var(--ink2); }
.grp-b .ic { transition: transform .2s cubic-bezier(.3,1.4,.6,1); color: var(--ink2); }
.grp-b[aria-expanded="false"] .ic { transform: rotate(-90deg); }
td.c-chk, th.c-chk { width: 44px; padding-right: 0; }
.check { width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--line2); display: inline-grid; place-items: center; color: transparent; transition: background .12s; }
.check svg { width: 13px; height: 13px; }
[aria-checked="true"] > .check, .check[aria-checked="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.proj { display: flex; align-items: center; gap: 12px; min-width: 0; }
.proj .appicon { box-shadow: 0 0 0 1px var(--line); }
.p-name { display: flex; align-items: center; gap: 8px; font-family: var(--fh); font-size: 18px; font-weight: 500; letter-spacing: -.005em; color: var(--ink); line-height: 1.15; }
.p-ver { font-size: 14px; color: var(--ink2); margin-top: 1px; line-height: 1.25; }
.needb { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px 0 7px; border-radius: 99px; background: var(--s2); font-family: var(--fb); font-size: 13px; font-weight: 600; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.needb .udot { width: 8px; height: 8px; }
.needb:hover { background: var(--s3); }
.site-cell { display: flex; align-items: center; gap: 12px; }
.site-cell .ms { min-width: 52px; text-align: right; }
.views-cell { display: inline-grid; grid-template-columns: 70px 5ch 7ch; gap: 12px; align-items: center; justify-items: end; }
.err-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px; border-radius: 8px; background: var(--bad-soft); color: var(--bad); font-weight: 600; }
.setup-cell { display: inline-flex; align-items: center; gap: 10px; }
.setup-cell .meter { width: 56px; }
.none { color: var(--ink2); }
.empty-row td { height: 88px; text-align: center; color: var(--ink2); cursor: default; }

/* phone list */
.plist { display: none; flex-direction: column; }
.pgrp { display: flex; align-items: center; gap: 10px; padding: 22px 2px 10px; }
.pgrp .h { font-size: 22px; }
.pgrp .gn { color: var(--ink2); font-size: 15px; }
.pbox { background: var(--s1); border-radius: 16px; box-shadow: var(--shadow); padding: 6px; }
.prow { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border-radius: 11px; }
.prow + .prow::before { content: ""; position: absolute; left: 10px; right: 10px; top: 0; height: 1px; background: var(--line); }
.prow:active { background: var(--hover); }
.prow .r { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.prow .r .n { font-size: 16px; font-weight: 500; white-space: nowrap; }
.prow .l2 { display: flex; align-items: center; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.prow .l2 .st { font-size: 14px; }

/* bulk bar */
.bulk { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 18px; border-radius: 16px; background: var(--s2); box-shadow: var(--pop); animation: pop .22s cubic-bezier(.2,1.3,.4,1) both; }
.bulk .t { font-weight: 600; margin-right: 8px; white-space: nowrap; }

/* ---------- popovers, sheet, palette, toast ---------- */
.pop { position: fixed; z-index: 60; min-width: 260px; max-width: min(440px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 100px)); overflow: auto; overscroll-behavior: contain; padding: 8px; border-radius: 16px; background: var(--s2); box-shadow: var(--pop); animation: pop .18s cubic-bezier(.2,1.3,.4,1) both; transform-origin: top; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.pop.wide { max-width: min(520px, calc(100vw - 32px)); width: 520px; }
.pop-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 10px; }
.pop-h .h { font-size: 21px; }
.mi { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 10px; border-radius: 10px; text-align: left; font-size: 15px; }
.mi:hover, .mi.on { background: var(--hover); }
.mi .r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.mi[aria-checked] .check { flex: none; }
.mh { padding: 12px 10px 4px; font-size: 14px; font-weight: 600; color: var(--ink2); }
.sheet-bg { position: fixed; inset: 0; z-index: 59; background: rgb(0 0 0 / .45); animation: fade .2s both; }
@keyframes fade { from { opacity: 0; } }
.palette { position: fixed; z-index: 70; left: 50%; top: 14vh; transform: translateX(-50%); width: min(620px, calc(100vw - 32px)); border-radius: 18px; background: var(--s2); box-shadow: var(--pop); overflow: hidden; animation: pop .18s cubic-bezier(.2,1.3,.4,1) both; }
.palette .pi { display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 58px; border-bottom: 1px solid var(--line); }
.palette .pi input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 18px; color: var(--ink); }
.palette .pi input::placeholder { color: var(--ink2); opacity: 1; }
.palette .pl { max-height: 420px; overflow: auto; padding: 8px; overscroll-behavior: contain; }
.toast { position: fixed; left: 50%; bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 12px)); transform: translateX(-50%); z-index: 80; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 12px; background: var(--acc); color: var(--acc-ink); font-size: 15px; font-weight: 500; box-shadow: var(--pop); animation: pop .2s cubic-bezier(.2,1.3,.4,1) both; white-space: nowrap; max-width: calc(100vw - 32px); }
.toast:not(:has(button)) { padding-right: 16px; }
.toast button { height: 30px; padding: 0 11px; border-radius: 8px; background: rgb(127 127 127 / .2); font-weight: 600; font-size: 14px; }
.tip { position: fixed; z-index: 90; pointer-events: none; padding: 6px 10px; border-radius: 8px; background: var(--acc); color: var(--acc-ink); font-size: 14px; font-weight: 500; white-space: nowrap; opacity: 0; transition: opacity .1s; }
.tip.show { opacity: 1; }

/* ---------- sections (project page) ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 6px; margin: 16px 0 0 -6px; border-radius: 9px; font-size: 15px; color: var(--ink2); }
.back:hover { color: var(--ink); background: var(--hover); }
.phead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px 0 26px; }
.phead .appicon { box-shadow: 0 0 0 1px var(--line); }
.phead .h { font-size: 42px; letter-spacing: -.02em; }
.phead .meta { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; font-size: 15px; }
.phead .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.catb { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px; border-radius: 8px; background: var(--s2); font-size: 14px; font-weight: 500; }
.catb:hover { background: var(--s3); }
.sep { width: 4px; height: 4px; border-radius: 50%; background: var(--ink2); opacity: .6; }
.sec { border-radius: 18px; background: var(--s1); box-shadow: var(--shadow); padding: 6px 20px 8px; margin-bottom: 14px; }
.sec-h { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.sec-t { display: flex; align-items: center; gap: 10px; border-radius: 9px; padding: 4px 8px 4px 4px; margin-left: -4px; }
.sec-t:hover { background: var(--hover); }
.sec-t .ic { color: var(--ink2); transition: transform .22s cubic-bezier(.3,1.4,.6,1); }
.sec.folded .sec-t .ic { transform: rotate(-90deg); }
.sec-t .h { font-size: 25px; }
.sec-h .sec-n { font-size: 16px; color: var(--ink2); }
.sec-h .sec-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.sec-b { padding-bottom: 12px; }
.sec.folded .sec-b { display: none; }
.sec.folded { padding-bottom: 6px; }
.nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 4px 4px 26px; }
.nums .l { font-size: 14px; color: var(--ink2); white-space: nowrap; }
.nums .v { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; font-size: 26px; font-weight: 500; white-space: nowrap; }
.nums .v small { font-size: 14px; color: var(--ink2); font-weight: 500; }

/* needs-you rows: a title that opens into steps */
.nd { border-top: 1px solid var(--line); }
.nd:first-child { border-top: 0; }
.nd-h { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 14px 4px; border-radius: 10px; }
.nd-h:hover { background: var(--hover); }
.nd-h .udot { justify-self: center; }
.nd-t { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 17px; font-weight: 500; }
.nd-t .age { font-size: 14px; font-weight: 400; color: var(--ink2); }
.nd-t .app { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink2); }
.nd-s { font-size: 15px; color: var(--ink2); margin-top: 2px; }
.chev { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--s2); transition: transform .22s cubic-bezier(.3,1.4,.6,1), background .12s; }
.nd-h:hover .chev { background: var(--s3); }
.nd.open .chev { transform: rotate(180deg); }
.nd-b { display: none; padding: 0 4px 18px 36px; }
.nd.open .nd-b { display: block; animation: rise .22s cubic-bezier(.2,.9,.3,1.1) both; }
.nd-fix { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.steps { margin: 0 0 14px; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 8px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; font-size: 16px; line-height: 1.45; }
.steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; background: var(--s3); display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.nd-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.quote { font-size: 16px; line-height: 1.5; padding: 12px 14px; border-radius: 12px; background: var(--s2); margin-bottom: 12px; }
.quote .m { font-size: 14px; color: var(--ink2); margin-top: 6px; }
textarea.reply { width: 100%; min-height: 76px; resize: vertical; padding: 12px 14px; border-radius: 12px; background: var(--s2); border: 0; outline: 0; margin-bottom: 10px; font-size: 16px; }
textarea.reply:focus { box-shadow: 0 0 0 1.5px var(--ink); }
textarea.reply::placeholder { color: var(--ink2); opacity: 1; }
.calm { padding: 18px 4px 20px; color: var(--ink2); font-size: 16px; }

/* note rows */
.nr { display: grid; grid-template-columns: 26px auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 11px 4px; border-top: 1px solid var(--line); }
.nr:first-child { border-top: 0; }
.nr .txt { font-size: 16px; line-height: 1.4; }
.nr .age { font-size: 14px; color: var(--ink2); white-space: nowrap; }
.tick { position: relative; width: 32px; height: 32px; margin: -5px; border-radius: 50%; display: grid; place-items: center; color: transparent; transition: transform .15s cubic-bezier(.3,1.6,.6,1); }
.tick::before { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line2); transition: background .15s, box-shadow .15s; }
.tick svg { position: relative; }
.tick:hover::before { box-shadow: inset 0 0 0 1.5px var(--ink2); }
.tick:active { transform: scale(.88); }
.tick[aria-checked="true"] { color: #000; }
.tick[aria-checked="true"]::before { background: var(--good); box-shadow: none; }
.tp { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 8px; border-radius: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.tp.note { color: var(--t-note); background: var(--t-note-s); box-shadow: inset 0 0 0 1px var(--line2); }
.tp.todo { color: var(--t-todo); background: var(--t-todo-s); }
.tp.idea { color: var(--t-idea); background: var(--t-idea-s); }
.tp.bug { color: var(--t-bug); background: var(--t-bug-s); }
.tp.feedback { color: var(--t-fb); background: var(--t-fb-s); }
.tp.yours { color: var(--acc-ink); background: var(--acc); }

/* chart */
.chart { position: relative; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .gl { stroke: var(--line); }
.chart .ax { fill: var(--ink2); font-size: 13px; font-family: var(--fb); }
.chart .ln { fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart .ar { fill: var(--ink); opacity: .1; }
.chart .xh { stroke: var(--ink2); stroke-dasharray: 3 3; }
.chart .pt { fill: var(--ink); stroke: var(--s1); stroke-width: 3; }
.chart .ct { position: absolute; top: 0; pointer-events: none; padding: 6px 10px; border-radius: 9px; background: var(--acc); color: var(--acc-ink); font-size: 14px; font-weight: 500; white-space: nowrap; transform: translateX(-50%); }
.tr-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 4px 0 18px; }
.tr-nums .l { font-size: 14px; color: var(--ink2); }
.tr-nums .v { font-size: 22px; font-weight: 500; margin-top: 2px; }

/* versions */
.cmp { position: relative; border-radius: 12px; overflow: hidden; background: var(--s2); aspect-ratio: 16 / 10; max-width: 100%; touch-action: none; cursor: ew-resize; user-select: none; }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; pointer-events: none; }
.cmp-b-wrap { position: absolute; inset: 0; }
.cmp-handle { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .2); }
.cmp-knob { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; height: 36px; padding: 0 6px; border-radius: 99px; background: #fff; color: #000; box-shadow: 0 4px 16px rgb(0 0 0 / .35); }
.vpick { display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.vpick .lab { font-size: 14px; color: var(--ink2); margin-bottom: 4px; }
.cmp-tags { display: flex; justify-content: space-between; margin-top: 8px; font-size: 14px; color: var(--ink2); }

/* changes list */
.chg { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 11px 4px; border-top: 1px solid var(--line); font-size: 16px; }
.chg:first-child { border-top: 0; }
.chg .age { font-size: 14px; color: var(--ink2); }

/* info sheet */
.info { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px 16px; padding: 6px 10px 12px; font-size: 15px; }
.info .k { font-family: var(--fh); font-size: 17px; font-weight: 500; color: var(--ink); }
.info .v { color: var(--ink); word-break: break-word; }
.info .v a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line2); }
.ck-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.ck { display: flex; align-items: center; gap: 8px; }
.ck .m { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ck.done .m { background: var(--good-soft); color: var(--good); }
.ck.missing .m { box-shadow: inset 0 0 0 1.5px var(--warn); }
.ck.missing { color: var(--ink); font-weight: 600; }

/* ---------- notes page ---------- */
.notes-col { max-width: 1040px; margin: 0 auto; }
.ph { padding: 30px 0 22px; display: flex; align-items: flex-end; gap: 16px; }
.ph .h { font-size: 42px; letter-spacing: -.02em; }
.ph .sum { font-size: 18px; color: var(--ink); padding-bottom: 6px; }
.nbox { border-radius: 18px; background: var(--s1); box-shadow: var(--shadow); padding: 12px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.pop .nbox { box-shadow: none; background: transparent; padding: 6px; margin: 0; width: min(500px, calc(100vw - 48px)); }
.nb-row { display: flex; gap: 8px; align-items: center; }
.nb-text { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 12px; background: var(--s2); border: 0; outline: 0; font-size: 17px; }
.nb-text:focus { box-shadow: 0 0 0 1.5px var(--ink); }
.nb-text::placeholder { color: var(--ink2); opacity: 1; }
.nb-add { height: 46px; padding: 0 20px; border-radius: 12px; }
.nb-opts { flex-wrap: wrap; justify-content: space-between; }
.nb-types { display: flex; gap: 6px; flex-wrap: wrap; }
.tb { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px 0 10px; border-radius: 10px; font-size: 15px; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--line); transition: background .12s, box-shadow .12s, color .12s; }
.tb.note { color: var(--t-note); } .tb.todo { color: var(--t-todo); } .tb.idea { color: var(--t-idea); } .tb.bug { color: var(--t-bug); }
.tb[aria-checked="true"].note { background: var(--t-note-s); box-shadow: inset 0 0 0 1.5px var(--t-note); }
.tb[aria-checked="true"].todo { background: var(--t-todo-s); box-shadow: inset 0 0 0 1.5px var(--t-todo); }
.tb[aria-checked="true"].idea { background: var(--t-idea-s); box-shadow: inset 0 0 0 1.5px var(--t-idea); }
.tb[aria-checked="true"].bug { background: var(--t-bug-s); box-shadow: inset 0 0 0 1.5px var(--t-bug); }
.nb-for { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 10px; background: var(--s2); font-size: 15px; font-weight: 500; }
.nb-for:hover { background: var(--s3); }
.pj-stack { display: inline-flex; }
.pj-stack { gap: 3px; }
.nb-apps { border-top: 1px solid var(--line); padding-top: 6px; }
.ab-h { padding: 12px 6px 6px; font-family: var(--fh); font-size: 18px; font-weight: 500; }
.ab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px; }
.ab { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 6px 8px; border-radius: 10px; text-align: left; font-size: 15px; }
.ab:hover { background: var(--hover); }
.ntbl .tbl td { height: 58px; white-space: normal; }
.ntbl .tbl td.c-txt { font-size: 16px; line-height: 1.4; padding-top: 10px; padding-bottom: 10px; }
.ntbl td.c-type { width: 1%; white-space: nowrap; }
.ntbl td.c-proj { white-space: nowrap; }
.pcell { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.ntbl tr.done td.c-txt { text-decoration: line-through; text-decoration-color: var(--ink2); }
.ntbl tr.exp td { height: auto; padding: 0 12px 16px 56px; border-top: 0; cursor: default; }
.ntbl tr.exp:hover td { background: transparent; }
.ngrp-h { display: flex; align-items: center; gap: 10px; }
.ngrp-h .h { font-size: 21px; }
.super { font-family: var(--fb); font-size: 14px; font-weight: 600; color: var(--ink2); padding: 22px 12px 0; }

/* ---------- keys page ---------- */
.keys-tbl .tbl td { height: 62px; }
.k-name { font-family: var(--fh); font-size: 19px; font-weight: 500; }
.k-prov { font-size: 14px; color: var(--ink2); }
.k-spend { display: inline-flex; align-items: center; gap: 12px; }
.k-spend .meter { width: 120px; }
.k-spend .meter.low i { background: var(--warn); }
.desks { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.desk { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 12px; background: var(--s1); box-shadow: var(--shadow); font-size: 15px; font-weight: 500; }
.sub-h { font-size: 25px; margin: 34px 0 6px; }
.pend-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 6px; border-top: 1px solid var(--line); }
.pend-row:first-child { border-top: 0; }
.pend-row .w { font-size: 14px; color: var(--ink2); }
.prog { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.prog .meter { width: 70px; }

/* ---------- phone tab bar ---------- */
.tabbar { display: none; }

/* ---------- desktop in-between ---------- */
@media (max-width: 1220px) {
  .lead { grid-template-columns: 1fr; }
  .stats { flex-wrap: wrap; }
}
@media (max-width: 1100px) {
  .c-setup, .c-upt-hide { display: none; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .tick { width: 44px; height: 44px; margin: -11px; }
  .field input { font-size: 16px; }
  .top-in { height: 58px; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); gap: 6px; }
  .nav, .top .lbl, .top .kbd { display: none; }
  .top-r .btn { width: 40px; padding: 0; justify-content: center; }
  .top-r .btn.todos { width: auto; padding: 0 12px; }
  .page { padding: 4px max(16px, env(safe-area-inset-right, 0px)) calc(110px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
  .lead { padding: 18px 0 20px; gap: 18px; }
  .verdict .h { font-size: 32px; gap: 10px; }
  .verdict .h .vs { width: 11px; height: 11px; }
  .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat { min-width: 0; background: var(--s1); box-shadow: var(--shadow); padding: 12px 14px; }
  .stat .v { font-size: 21px; }
  .stat svg, .stat .meter { display: none; }
  .tools .field { flex: 1 1 100%; min-width: 0; max-width: none !important; order: 3; }
  .ntbl.tools .right { display: flex; width: 100%; order: 4; }
  .ntbl.tools .right .seg { flex: 1; }
  .ntbl.tools .right .seg button { flex: 1; justify-content: center; }
  .ntbl.tools .seg[data-nshow] { width: 100%; }
  .ntbl.tools .seg[data-nshow] button { flex: 1; justify-content: center; padding: 0 6px; }
  .ntbl .tbl tr.row td.c-type { display: none; }
  .tools .right { display: none; }
  .tbl-wrap.home-tbl { display: none; }
  .plist { display: flex; }
  .bulk { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .toast { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .phead { grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding-bottom: 20px; }
  .phead .h { font-size: 32px; }
  .phead .acts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .phead .acts .btn { justify-content: center; padding: 0 6px; font-size: 14px; gap: 6px; }
  .phead .acts .btn .ic { display: none; }
  .sec { padding: 4px 14px 6px; border-radius: 16px; }
  .sec-t .h { font-size: 22px; }
  .nums, .tr-nums { grid-template-columns: 1fr 1fr; gap: 14px; }
  .nd-b { padding-left: 4px; }
  .nd-acts .btn { flex: 1; justify-content: center; }
  .nr { grid-template-columns: 26px minmax(0, 1fr); }
  .nr .tp, .nr .txt { grid-column: 2; }
  .nr .tp { justify-self: start; }
  .nr .tick { grid-row: 1 / 3; align-self: start; }
  .ph { padding: 20px 0 16px; flex-wrap: wrap; gap: 6px 14px; }
  .ph .h { font-size: 34px; }
  .ph .sum { font-size: 16px; padding-bottom: 4px; }
  .nb-text { font-size: 16px; }
  .ntbl .tbl thead { display: none; }
  .ntbl .tbl, .ntbl .tbl tbody { display: block; }
  .ntbl .tbl tr.row { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 0; padding: 12px 6px 12px 0; border-top: 1px solid var(--line); }
  .ntbl .tbl tr.row td { display: block; height: auto; border: 0; padding: 0 8px; background: transparent !important; }
  .ntbl .tbl tr.row td.c-chk { grid-row: 1 / 4; padding: 2px 0 0 12px; }
  .ntbl .tbl tr.row td.c-type { order: 2; }
  .ntbl .tbl tr.row td.c-txt { order: 1; padding-top: 0; padding-bottom: 4px; }
  .ntbl .tbl tr.row td.c-meta { order: 3; }
  .ntbl .tbl tr.row td.c-proj, .ntbl .tbl tr.row td.c-age { display: none; }
  .ntbl .tbl tr.row td.c-act { grid-column: 2; order: 4; }
  .ntbl .tbl tr.row td.c-act:empty { display: none; }
  .ntbl .tbl tr.grp { display: block; }
  .ntbl .tbl tr.grp td { display: block; }
  .ntbl .tbl tr.exp { display: block; }
  .ntbl .tbl tr.exp td { display: block; padding: 0 12px 16px 52px; }
  .ntbl .tools .seg { order: 1; }
  .meta-m { display: flex !important; }
  .keys-tbl .tbl thead { display: none; }
  .keys-tbl .tbl, .keys-tbl .tbl tbody { display: block; }
  .keys-tbl .tbl tr.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 14px 16px; border-top: 1px solid var(--line); }
  .keys-tbl .tbl tr.row:first-child { border-top: 0; }
  .keys-tbl .tbl tr.row td { display: block; height: auto; border: 0; padding: 0; background: transparent !important; }
  .keys-tbl td.c-calls, .keys-tbl td.c-last { display: none !important; }
  .keys-tbl td.c-apps { grid-column: 1 / -1; }
  .keys-tbl td.c-spend { grid-column: 1 / -1; }
  .keys-tbl td:last-child { grid-column: 1 / -1; text-align: left; }
  .keys-tbl td:last-child:empty { display: none !important; }
  .info { grid-template-columns: 1fr; gap: 4px; }
  .info .k { margin-top: 10px; }
  .ck-list { grid-template-columns: 1fr; }
  .pop.sheet { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto !important; max-width: none; max-height: 82vh; border-radius: 20px 20px 0 0; padding: 8px 8px calc(16px + env(safe-area-inset-bottom, 0px)); animation: sheet .26s cubic-bezier(.2,1,.3,1) both; }
  .pop.sheet .nbox { width: auto; }
  @keyframes sheet { from { transform: translateY(40px); opacity: .4; } }
  .tabbar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; padding: 6px max(10px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px)); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 -1px 0 var(--line); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 54px; border-radius: 12px; font-size: 13px; font-weight: 600; color: var(--ink2); }
  .tabbar [aria-current="page"] { color: var(--ink); }
  .tabbar .new { color: var(--ink); }
  .tabbar .new .ic { background: var(--acc); color: var(--acc-ink); border-radius: 9px; padding: 3px; width: 26px; height: 26px; }
}
.meta-m { display: none; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--ink2); }
/* live Keys & AI extras: PostHog, connecting an AI, the account */
.live-sec { padding: 14px 20px 16px; display: grid; gap: 12px; }
.live-sec .lrow { display: flex; align-items: center; gap: 16px; min-height: 40px; }
.live-sec .lrow + .lrow { border-top: 1px solid var(--line); padding-top: 12px; }
.live-sec .llab { font-weight: 600; min-width: 110px; }
.live-sec .lval { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.live-sec .lmsg:empty { display: none; }
.live-sec .lmsg { margin: 0; font-size: 15px; }
.live-sec .steps { margin: 0; }
@media (max-width: 760px) { .live-sec .lrow { flex-wrap: wrap; gap: 6px 12px; } .live-sec .llab { min-width: 0; width: 100%; } }
