/* JBNX Command Center — follows projects-portal/DESIGN.md (Steep: serif on warm paper).
   Color is functional only: green = healthy/free, amber = claimed/attention, red = broken.
   One peach TL;DR strip per page. Serif stays weight 400. */
:root {
  --bg: #fafafb; --surface: #ffffff; --panel: #f7f7f8; --sunk: #f2f2f3;
  --ink1: #17191c; --ink2: #565b66; --ink3: #777b86; --rule: #ececee; --rule2: #e0e0e4;
  --red: #b42318; --red-bg: #fef2f2; --red-bd: #fecaca;
  --ok: #067647; --ok-bg: #ecfdf5; --ok-bd: #a7f3d0;
  --amb: #9a3412; --amb-bg: #fff7ed; --amb-bd: #fed7aa;
  --blu: #1d4ed8; --blu-bg: #eff6ff; --blu-bd: #bfdbfe;
  --gry-bg: #f2f2f3; --gry: #565b66;
  --accent-bg: #fbe1d1; --accent-ink: #5d2a1a;
  --shadow: 0 1px 2px rgba(23,25,28,.04), 0 2px 8px rgba(23,25,28,.03);
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: Geist, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --side: 248px;
}
body.dark {
  --bg: #101114; --surface: #17181c; --panel: #1b1c21; --sunk: #202127;
  --ink1: #eceef2; --ink2: #b3b7c2; --ink3: #8c909b; --rule: #26272d; --rule2: #30323a;
  --red: #fca5a5; --red-bg: #2a1414; --red-bd: #5b2020;
  --ok: #6ee7b7; --ok-bg: #0f241c; --ok-bd: #1f4d3b;
  --amb: #fdba74; --amb-bg: #2a1c10; --amb-bd: #5a3a1c;
  --blu: #93c5fd; --blu-bg: #111c30; --blu-bd: #233d66;
  --gry-bg: #22232a; --gry: #b3b7c2;
  --accent-bg: #3a2218; --accent-ink: #f6c9b1;
  --shadow: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink1); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blu); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink1); color: var(--surface); padding: 8px 12px; border-radius: 999px; z-index: 99; }
.skip:focus { left: 8px; }
.mono, code, kbd { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--ink2); } .faint { color: var(--ink3); }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- frame ---------- */
.app { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--rule); padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 4px 8px 12px; color: var(--ink1); }
.brand span { font-family: var(--serif); font-size: 18px; letter-spacing: -.02em; line-height: 1.1; }
.brand b { font-weight: 400; }
#nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-group { margin: 10px 0 2px; padding: 0 10px; font-size: 12px; color: var(--ink3); }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 999px; text-decoration: none; color: var(--ink2); }
.nav-link:hover { background: var(--panel); color: var(--ink1); }
.nav-link[aria-current="page"] { background: var(--ink1); color: var(--surface); }
.nav-link svg { flex: none; opacity: .85; }
.nav-link .count { margin-left: auto; font-family: var(--mono); font-size: 11.5px; padding: 0 7px; border-radius: 999px; background: var(--sunk); color: var(--ink2); }
.nav-link[aria-current="page"] .count { background: rgba(255,255,255,.18); color: var(--surface); }
.nav-link .count.hot { background: var(--red-bg); color: var(--red); }
.side-foot { border-top: 1px solid var(--rule); padding: 10px 10px 4px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.side-foot a { color: var(--ink2); text-decoration: none; }
.side-foot a:hover { color: var(--ink1); text-decoration: underline; }
.main-wrap { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 24px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.icon-btn.menu { display: none; }
main:focus, main:focus-visible { outline: none; }
.crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; font-size: 13px; color: var(--ink2); overflow: hidden; white-space: nowrap; }
.crumbs a { text-decoration: none; color: var(--ink2); }
.crumbs a:hover { color: var(--ink1); text-decoration: underline; }
.crumbs .sep { color: var(--ink3); }
.crumbs [aria-current] { color: var(--ink1); overflow: hidden; text-overflow: ellipsis; }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--rule2); background: var(--surface); border-radius: 999px; padding: 6px 8px 6px 12px; color: var(--ink3); cursor: pointer; min-width: 220px; }
.search span { flex: 1; text-align: left; }
.search kbd { border: 1px solid var(--rule2); border-radius: 6px; padding: 0 5px; font-size: 11px; color: var(--ink3); }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--ink2); }
.icon-btn:hover { background: var(--panel); color: var(--ink1); }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink3); white-space: nowrap; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink3); }
.live.on i { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.live.off i { background: var(--amb); }
.acct { position: relative; }
.acct button { border: 1px solid var(--rule2); background: var(--surface); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
main { padding: 24px 28px 64px; max-width: 1480px; width: 100%; outline: none; }
.boot { padding: 60px 0; color: var(--ink3); }

/* ---------- page header ---------- */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.ph h1 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; letter-spacing: -.02em; margin: 0; }
.ph .sub { color: var(--ink2); margin-top: 6px; max-width: 72ch; }
.ph .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tldr { background: var(--accent-bg); color: var(--accent-ink); border-radius: 16px; padding: 12px 16px; margin: 0 0 20px; font-size: 14.5px; line-height: 1.55; }
.tldr b { font-weight: 600; }
h2 { font-family: var(--serif); font-weight: 400; font-size: 21px; letter-spacing: -.015em; margin: 0; }
h3 { font-size: 13.5px; font-weight: 600; margin: 0; }

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 7px 14px; border: 1px solid var(--rule2); background: var(--surface); cursor: pointer; text-decoration: none; font-weight: 500; white-space: nowrap; }
.btn:hover { background: var(--panel); }
.btn.primary { background: var(--ink1); color: var(--surface); border-color: var(--ink1); }
.btn.primary:hover { opacity: .9; }
.btn.sm { padding: 3px 10px; font-size: 12.5px; }
.btn.danger { color: var(--red); border-color: var(--red-bd); }
.btn[disabled] { opacity: .5; cursor: default; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; border: 1px solid transparent; background: var(--gry-bg); color: var(--gry); }
.chip.ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-bd); }
.chip.warn { background: var(--amb-bg); color: var(--amb); border-color: var(--amb-bd); }
.chip.bad { background: var(--red-bg); color: var(--red); border-color: var(--red-bd); }
.chip.info { background: var(--blu-bg); color: var(--blu); border-color: var(--blu-bd); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ink3); flex: none; }
.dot.ok { background: var(--ok); } .dot.warn { background: #ea8a2b; } .dot.bad { background: var(--red); } .dot.gray { background: #b4b7be; }
body.dark .dot.gray { background: #585b64; }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 24px; padding: 18px 20px; box-shadow: var(--shadow); min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card.flush .card-h { padding: 16px 20px 0; }
.card-h a.more { font-size: 13px; color: var(--ink2); text-decoration: none; white-space: nowrap; }
.card-h a.more:hover { color: var(--ink1); text-decoration: underline; }
.section { margin-top: 16px; }
.empty { color: var(--ink3); padding: 14px 0; }
.card.flush .empty { padding: 14px 20px 18px; }
.err { background: var(--red-bg); color: var(--red); border: 1px solid var(--red-bd); border-radius: 16px; padding: 12px 16px; margin-bottom: 12px; }

/* KPI band: one dense instrument row, not a card kit */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--surface); border: 1px solid var(--rule); border-radius: 24px; overflow: hidden; margin-bottom: 16px; box-shadow: var(--shadow); }
.kpi { padding: 14px 18px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; display: block; min-width: 0; }
.kpi:hover { background: var(--panel); }
.kpi .v { font-family: var(--serif); font-size: 30px; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .v small { font-family: var(--sans); font-size: 13px; color: var(--ink3); letter-spacing: 0; }
.kpi .l { font-size: 12.5px; color: var(--ink2); margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.kpi.bad .v { color: var(--red); } .kpi.warn .v { color: var(--amb); } .kpi.ok .v { color: var(--ok); }
.bar { height: 5px; border-radius: 999px; background: var(--sunk); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; background: var(--ink1); border-radius: 999px; }
.bar.warn i { background: #ea8a2b; } .bar.bad i { background: var(--red); } .bar.ok i { background: var(--ok); }

/* Estate strip: every public surface as a tile — the signature element */
.estate { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 8px; }
.site { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--ok-bd); background: var(--ok-bg); text-decoration: none; color: var(--ink1); min-width: 0; }
.site.bad { border-color: var(--red-bd); background: var(--red-bg); }
.site.warn { border-color: var(--amb-bd); background: var(--amb-bg); }
.site .n { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.site .m { font-family: var(--mono); font-size: 11.5px; color: var(--ink2); }

/* lists */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { border-top: 1px solid var(--rule); }
.list > li:first-child { border-top: 0; }
.row { display: flex; align-items: flex-start; gap: 12px; padding: 11px 20px; text-decoration: none; color: inherit; width: 100%; background: none; border: 0; text-align: left; cursor: pointer; }
button.row:hover, a.row:hover { background: var(--panel); }
.row .grow { flex: 1; min-width: 0; }
.row .t { font-weight: 500; overflow-wrap: anywhere; }
.row .d { font-size: 12.5px; color: var(--ink2); margin-top: 2px; overflow-wrap: anywhere; }
.row .r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; font-size: 12px; color: var(--ink3); }
.card:not(.flush) .row { padding-left: 0; padding-right: 0; }
.clip2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* tables */
.tbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.tbar input[type=search], .tbar select, .field input, .field select, .field textarea { border: 1px solid var(--rule2); background: var(--surface); border-radius: 16px; padding: 7px 12px; min-width: 0; }
.tbar input[type=search] { min-width: 240px; flex: 1; max-width: 360px; border-radius: 999px; }
.tbar select { border-radius: 999px; }
.seg { display: inline-flex; border: 1px solid var(--rule2); border-radius: 999px; padding: 2px; background: var(--surface); }
.seg button { border: 0; background: none; padding: 4px 12px; border-radius: 999px; cursor: pointer; color: var(--ink2); font-size: 13px; }
.seg button[aria-pressed="true"] { background: var(--ink1); color: var(--surface); }
.tw { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--ink2); padding: 10px 12px; border-bottom: 1px solid var(--rule); white-space: nowrap; background: var(--surface); position: sticky; top: 0; }
table.t th button { border: 0; background: none; padding: 0; cursor: pointer; color: inherit; font: inherit; display: inline-flex; gap: 4px; align-items: center; }
table.t th[aria-sort] button { color: var(--ink1); }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr[data-href] { cursor: pointer; }
table.t tbody tr[data-href]:hover, table.t tbody tr[data-task]:hover { background: var(--panel); cursor: pointer; }
table.t td.r, table.t th.r { text-align: right; }
table.t .ttl { font-weight: 500; }
table.t .sub { font-size: 12px; color: var(--ink3); }

/* kanban */
.board { display: grid; grid-template-columns: repeat(4, minmax(250px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.col { background: var(--panel); border: 1px solid var(--rule); border-radius: 20px; padding: 10px; min-width: 250px; }
.col-h { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px; font-weight: 600; font-size: 13px; }
.tcard { display: block; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
.tcard:hover { border-color: var(--rule2); box-shadow: var(--shadow); }
.tcard .t { font-weight: 500; font-size: 13.5px; }
.tcard .m { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 6px; font-size: 12px; color: var(--ink3); }
.tcard .p { display: inline-flex; align-items: center; gap: 5px; }
.col .more-btn { width: 100%; }

/* project cards */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.pcard { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--rule); border-radius: 20px; padding: 16px; text-decoration: none; color: inherit; box-shadow: var(--shadow); border-top: 3px solid var(--acc, var(--rule2)); }
.pcard:hover { border-color: var(--rule2); border-top-color: var(--acc, var(--rule2)); }
.pcard .h { display: flex; align-items: center; gap: 8px; }
.pcard .nm { font-family: var(--serif); font-size: 19px; letter-spacing: -.015em; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard .tg { font-size: 12.5px; color: var(--ink2); min-height: 2.9em; }
.pcard .st { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; border-top: 1px solid var(--rule); padding-top: 10px; }
.pcard .st div { font-size: 11.5px; color: var(--ink3); }
.pcard .st b { display: block; font-weight: 500; color: var(--ink1); font-size: 14px; font-variant-numeric: tabular-nums; }
.pcard .ft { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink3); }

/* key-value */
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; font-size: 13.5px; }
.kv dt { color: var(--ink2); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.hblock { border-top: 1px solid var(--rule); padding: 12px 0; }
.hblock:first-of-type { border-top: 0; padding-top: 0; }
.hblock h3 { margin-bottom: 4px; color: var(--ink2); font-weight: 500; }

/* bars chart */
.hbars { display: flex; flex-direction: column; gap: 8px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; gap: 10px; align-items: center; font-size: 13px; text-decoration: none; color: inherit; }
.hbar .track { height: 10px; background: var(--sunk); border-radius: 999px; overflow: hidden; }
.hbar .track i { display: block; height: 100%; background: var(--ink1); border-radius: 999px; }
.hbar .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 64px; }
.spark i { flex: 1; background: var(--ink1); border-radius: 4px 4px 0 0; min-height: 2px; opacity: .85; }
.spark-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink3); margin-top: 4px; }

/* feed */
.feed li { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 9px 20px; border-top: 1px solid var(--rule); font-size: 13px; }
.feed li:first-child { border-top: 0; }
.feed .when { color: var(--ink3); font-family: var(--mono); font-size: 11.5px; padding-top: 2px; }
.feed .fresh { animation: flash 2.4s ease-out; }
@keyframes flash { from { background: var(--amb-bg); } to { background: transparent; } }

/* dialog, palette, toast */
.dlg-back { position: fixed; inset: 0; background: rgba(16,17,20,.42); z-index: 60; display: grid; place-items: start center; padding: 8vh 16px 16px; overflow-y: auto; }
.dlg { background: var(--surface); border: 1px solid var(--rule); border-radius: 24px; width: min(640px, 100%); box-shadow: 0 20px 60px rgba(0,0,0,.18); }
.dlg-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px 10px; }
.dlg-h h2 { font-size: 22px; }
.dlg-b { padding: 4px 20px 20px; }
.dlg-f { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding: 12px 20px 18px; border-top: 1px solid var(--rule); }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field label { font-size: 12.5px; color: var(--ink2); font-weight: 500; }
.field textarea { min-height: 90px; resize: vertical; }
.frow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pal { width: min(680px, 100%); }
.pal input { width: 100%; border: 0; border-bottom: 1px solid var(--rule); padding: 18px 20px; font-size: 16px; background: transparent; border-radius: 24px 24px 0 0; outline: none; }
.pal ul { list-style: none; margin: 0; padding: 6px; max-height: 58vh; overflow-y: auto; }
.pal li button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 9px 12px; border: 0; background: none; border-radius: 12px; text-align: left; cursor: pointer; }
.pal li button[aria-selected="true"] { background: var(--panel); }
.pal .k { margin-left: auto; font-size: 11.5px; color: var(--ink3); white-space: nowrap; }
#toastHost { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--ink1); color: var(--surface); padding: 9px 16px; border-radius: 999px; font-size: 13.5px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.toast.bad { background: var(--red); color: #fff; }

/* sign-in */
.signin { max-width: 420px; margin: 8vh auto 0; }
.signin .card { padding: 26px; }
.signin h1 { font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: -.02em; margin: 0 0 6px; }
.signin .field input { border-radius: 999px; padding: 9px 14px; }
.signin .err { margin: 10px 0 0; }
.pk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pk-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--rule2); border-radius: 14px; }
.pubstrip { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; font-size: 12.5px; color: var(--ink3); justify-content: center; }

.skel { background: linear-gradient(90deg, var(--sunk), var(--panel), var(--sunk)); background-size: 200% 100%; animation: sk 1.4s linear infinite; border-radius: 12px; height: 14px; margin: 8px 0; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel, .feed .fresh { animation: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .g-main { grid-template-columns: 1fr; }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); z-index: 50; transform: translateX(-102%); transition: transform .2s ease; box-shadow: 0 0 40px rgba(0,0,0,.2); }
  .side.open { transform: none; }
  .scrim { position: fixed; inset: 0; background: rgba(16,17,20,.35); z-index: 40; }
  .icon-btn.menu { display: inline-grid; }
  .acct button { padding: 5px 10px; font-size: 12.5px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .search { min-width: 0; }
  .search span, .search kbd { display: none; }
  .live span { display: none; }
  .top { padding: 8px 12px; gap: 6px; padding-top: max(8px, env(safe-area-inset-top)); }
  main { padding: 16px 14px 56px; }
  .ph h1 { font-size: 27px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { margin-top: 8px; }
  .frow { grid-template-columns: 1fr; }
  .tbar input[type=search] { min-width: 0; max-width: none; width: 100%; }
  .kpi .v { font-size: 25px; }
  .row { padding-left: 16px; padding-right: 16px; }
  .feed li { padding: 9px 16px; grid-template-columns: 58px 1fr; }
  .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) { .side { transition: none; } }

.noteform input { padding: 9px 11px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); color: var(--ink1); font: inherit; }
