/* en3 design tokens (extracted 2026-12-02 from en3.live dark theme, en3.pro home, en3.money; UI-BRAND.md).
   Shared by Enzo Dash + Enzo Business Admin. Serve fonts from /static/fonts/ (files in brand/en3/fonts/). Source of truth: edit here, copy to apps. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/static/fonts/Archivo-500-800.woff2) format('woff2');
  
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/IBMPlexMono-400.woff2) format('woff2');
  
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/IBMPlexMono-500.woff2) format('woff2');
  
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/static/fonts/InstrumentSans-400-600.woff2) format('woff2');
  
}:root {
  color-scheme: dark;
  /* surfaces: en3.pro home end-card base #0a0a0c */
  --en3-bg: #0a0a0c; --en3-s1: #101014; --en3-s2: #16161c; --en3-s3: #1d1d25;
  --en3-line: #24242c; --en3-hair: #1b1b22; --en3-line-strong: #3a3a44;
  /* ink */
  --en3-tx: #f2f2f4; --en3-tx2: #c4c4cc; --en3-mu: #9a9aa6; --en3-mu2: #71717a;
  /* brand: coral accent (en3.live/en3.money, dark text tone), iris + mint (en3.pro) */
  --en3-accent: #ff7a68; --en3-accent-500: #d94434; --en3-accent-600: #bd3122; --en3-accent-ink: #1a0604;
  --en3-iris: #7c86ff; --en3-mint: #5fe3b4; --en3-gold: #f0bd5c;
  /* status (en3.live dark) */
  --en3-ok: #3fbf8f; --en3-warn: #f0a93b; --en3-bad: #ff7a68;
  /* shape + depth */
  --en3-r-sm: 4px; --en3-r: 8px; --en3-r-lg: 12px; --en3-r-xl: 16px; --en3-r-full: 999px;
  --en3-shadow-sm: 0 1px 2px #0000004d, 0 1px 3px #00000066;
  --en3-shadow-md: 0 4px 12px #00000066, 0 2px 4px #00000040;
  --en3-glow: 0 0 0 1px #ff7a6838, 0 0 24px -8px #ff7a6838;
  /* type: Archivo display, Instrument Sans body, IBM Plex Mono data/labels */
  --en3-font-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --en3-font-body: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --en3-font-data: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  /* spacing 4/8/12/16/24/32/48 */
  --en3-sp-1: 4px; --en3-sp-2: 8px; --en3-sp-3: 12px; --en3-sp-4: 16px; --en3-sp-6: 24px; --en3-sp-8: 32px; --en3-sp-12: 48px;
  /* motion */
  --en3-ease: cubic-bezier(.2, 0, 0, 1); --en3-dur: 160ms;
}
@media (prefers-reduced-motion: reduce) { :root { --en3-dur: 0ms; } }

:root {
  --bg: var(--en3-bg); --panel: var(--en3-s1); --panel-2: var(--en3-s2); --ink: var(--en3-tx); --muted: var(--en3-mu);
  --line: var(--en3-line); --soft: var(--en3-s3); --accent: var(--en3-accent); --accent-ink: var(--en3-accent-ink);
  --ok: var(--en3-ok); --warn: var(--en3-warn); --bad: var(--en3-accent-500); --violet: var(--en3-iris); --mint: var(--en3-mint);
  --radius: var(--en3-r-lg); --tap: 44px; color-scheme: dark;
  --glow: none;
  --sans: var(--en3-font-body); --serif: var(--en3-font-body); --mono: var(--en3-font-data); --display: var(--en3-font-display);
  accent-color: var(--accent);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); letter-spacing: -.006em; }
a { color: inherit; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.i { width: 20px; height: 20px; flex: none; }

/* header + nav */
header.top { display: flex; align-items: center; gap: 16px; padding: 10px 20px; border-bottom: 1px solid var(--line);
  background: var(--panel);
  position: sticky; top: 0; z-index: 5; }
.brand { font-family: var(--display); font-weight: 800; font-size: 19px; text-decoration: none; letter-spacing: -.02em; }
.brand span { color: var(--accent); }
nav.primary { display: flex; gap: 4px; flex: 1; }
nav.primary a, nav.bottom a { display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--muted);
  min-height: 40px; padding: 0 12px; border-radius: 8px; position: relative; }
nav.primary a:hover { background: var(--soft); color: var(--ink); }
nav.primary a[aria-current], nav.bottom a[aria-current] { color: var(--ink); background: var(--soft); font-weight: 600; }
nav.primary a[aria-current] { color: var(--accent); }
nav.bottom { display: none; }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; }

main { max-width: 1120px; margin: 0 auto; padding: 24px 20px 72px; }
h1 { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.25; margin: 0 0 10px; letter-spacing: -.015em; text-wrap: balance; }
h2:not(.board h2, .col h2, .prose h2, .card h2) { display: flex; align-items: center; gap: 8px; margin: 32px 0 10px;
  font: 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
h2:not(.board h2, .col h2, .prose h2, .card h2)::before { content: ""; flex: none; width: 16px; height: 2px; border-radius: 2px;
  background: var(--accent); }
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.crumb { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.muted { color: var(--muted); } .small { font-size: 14px; }

/* stats + cta */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { position: relative; display: flex; flex-direction: column; gap: 2px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px 12px 16px; text-decoration: none; }
.stat::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--accent); }
.stat b { font: 26px/1.1 var(--mono); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font: 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.cta { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; min-height: 44px; padding: 8px 18px;
  border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--accent) 80%, transparent); box-shadow: var(--glow); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 24px; }

/* lists */
.items { list-style: none; margin: 0; padding: 0; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.items li { padding: 12px 16px; border-top: 1px solid var(--line); }
.items li:first-child { border-top: 0; }
.items li:hover { background: color-mix(in srgb, var(--soft) 55%, transparent); box-shadow: inset 2px 0 0 var(--accent); }
.row { text-decoration: none; display: flex; gap: 10px; align-items: baseline; }
.row .t { font-weight: 600; }
.excerpt { margin: 4px 0 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tag { font: 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; flex: none; padding: 4px 8px;
  border-radius: 999px; border: 1px solid currentColor; color: var(--muted); background: color-mix(in srgb, currentColor 10%, transparent); }
.meta .tag { min-width: 0; }
.k-task, .k-question { color: var(--accent); } .k-reminder { color: var(--warn); } .k-approval { color: var(--violet); }
.k-update, .k-payment { color: var(--ok); } .k-note { color: var(--muted); }
.d-brief { color: var(--accent); } .d-instruction { color: var(--bad); } .d-idea { color: var(--warn); }
.d-context { color: var(--ok); } .d-note { color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font: 12px/1.5 var(--mono);
  font-variant-numeric: tabular-nums; color: var(--muted); margin-top: 6px; }
.meta.big { font-size: 13px; margin-bottom: 18px; }
.pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px;
  padding: 2px 10px; font: 11px/1.7 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pill.hi, .late { color: var(--bad); border-color: currentColor; }
.s-pending, .s-open, .s-draft { color: var(--warn); }
.s-approved, .s-done, .s-paid, .s-answered, .s-submitted { color: var(--ok); }
.s-rejected, .s-failed { color: var(--bad); }
.s-doing, .s-waiting, .s-posted, .s-saved { color: var(--accent); }
.empty { color: var(--muted); background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius); padding: 16px; margin: 0; }
.chips, .tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 10px; padding-bottom: 2px; }
.chips a, .tabs a { flex: none; text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 14px; background: var(--panel); }
.tabs a { border-color: transparent; background: none; }
.chips a[aria-current], .tabs a[aria-current] { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 16%, var(--panel)); }
.search { display: flex; gap: 8px; margin: 12px 0; }
.search input { flex: 1; }

/* reading */
.card.prose, .card.response, .card.summary { display: block; margin-bottom: 16px; padding: 16px 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.summary { border-left: 3px solid var(--accent); }
.card.summary h2 { margin: 0 0 6px; font: 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.response { white-space: pre-wrap; }
.response h3 { margin: 0 0 6px; font: 12px/1.3 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.prose { overflow-wrap: anywhere; }
.prose.doc { font: 17px/1.65 var(--sans); max-width: 70ch; }
.prose.doc h2, .prose.doc h3, .prose.doc h4 { font-family: var(--sans); color: var(--ink); text-transform: none; letter-spacing: -.01em; }
.prose.doc h2 { font-size: 21px; margin: 32px 0 8px; }
.prose.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose .table { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 3px 0; }
.prose blockquote { border-left: 3px solid var(--line); padding-left: 14px; color: var(--muted); }
.prose code { font: .88em var(--mono); background: var(--panel-2); color: var(--accent); padding: 1px 5px; border-radius: 5px; border: 1px solid var(--line); }
.prose pre { background: var(--panel-2); border: 1px solid var(--line); padding: 12px 14px; border-radius: 10px; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; color: var(--ink); }
.prose a { color: var(--accent); text-underline-offset: 2px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.prose.small { font-size: 15px; }
.table { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.prose table { border-collapse: collapse; font: 14px/1.45 var(--sans); width: 100%; }
.prose th, .prose td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--soft); font-weight: 600; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }

/* questions */
.qform { display: grid; gap: 14px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.q { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.q legend { float: left; width: 100%; font-weight: 600; margin-bottom: 10px; display: flex; gap: 10px; }
.qn { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--soft); display: grid; place-items: center;
  font: 12px var(--mono); color: var(--muted); }
.opts { clear: both; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; }
.opt span { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 14px; border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer; background: var(--panel-2); }
.opt input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--panel-2)); font-weight: 600; }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* thread */
.thread { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.thread li { background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 14px; }
.thread li.me { border-left: 3px solid var(--ink); }
.thread li.enzo { border-left: 3px solid var(--accent); }
.who { font: 12px/1.4 var(--mono); color: var(--muted); margin-bottom: 4px; }
.who b { color: var(--ink); }
.events { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.events li { padding: 4px 0 10px 14px; font-size: 14px; }
.events time, .who time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

/* compose */
.compose { display: grid; gap: 8px; }
.compose label, .act label, .qform > label, .share label { font-size: 14px; font-weight: 600; margin-top: 6px; }
.compose label small { font-weight: 400; color: var(--muted); }
.modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 8px; }
.modes legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.mode { position: relative; }
.mode input { position: absolute; opacity: 0; inset: 0; }
.mode > span { display: block; height: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel-2); cursor: pointer; }
.mode small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.mode code { font: 12px var(--mono); color: var(--muted); }
.mode input:checked + span { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.mode input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* controls */
input, select, textarea, button, .btn { font: inherit; color: var(--ink); background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 12px; min-height: var(--tap); }
input, select, textarea { font-size: 16px; } /* no iOS zoom */
textarea { width: 100%; resize: vertical; line-height: 1.5; }
.act textarea { margin: 6px 0 8px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
button, .btn { background: var(--ink); color: var(--bg); border-color: var(--ink); cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; }
button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.ghost, .btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
button.danger, .btn.danger { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 50%, transparent); }
button.danger-solid { background: var(--bad); border-color: var(--bad); color: var(--bg); }
.row-btns, form.quick { display: flex; flex-wrap: wrap; gap: 8px; }
form.quick { flex-wrap: nowrap; align-items: center; }
form.quick input[name=title] { flex: 1 1 200px; }
form.quick input[type=datetime-local] { flex: 0 1 190px; }
.share { display: grid; gap: 6px; margin-bottom: 12px; }
.share-row { display: flex; gap: 8px; }
.share-row input { flex: 1; min-width: 0; font: 14px var(--mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }


/* login */
.login { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.login main { padding: 0; width: min(380px, 100%); }
.login form { background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--glow); padding: 32px 28px; display: grid; gap: 16px; }
.login .brand { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: -.03em; text-align: center; }
.login .brand span { color: var(--accent); }
.login label { display: grid; gap: 6px; font: 12px/1.3 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.error { color: var(--bad); margin: 0; font-size: 14px; }

/* needs-you queue (progressive enhancement replaces the list) */
.queue { display: grid; gap: 8px; }
.q-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.q-count { font: 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.queue-card { display: grid; gap: 6px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.q-title { margin: 2px 0; font-size: 20px; line-height: 1.3; letter-spacing: -.01em; }
.q-age { font: 11px/1.3 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.q-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.q-clear { color: var(--muted); font: 13px/1.5 var(--mono); padding: 12px 2px; }
.q-err { color: var(--bad); font: 12px/1.4 var(--mono); }

/* ops panel */
.ops { background: var(--panel); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius); margin: 0 0 14px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 5%, transparent); }
.ops summary { cursor: pointer; padding: 12px 16px; list-style: none; display: flex; align-items: center; gap: 10px;
  min-height: 44px; font: 12px/1.4 var(--mono); }
.ops summary::-webkit-details-marker { display: none; }
.ops summary b { color: var(--accent); letter-spacing: .14em; font-size: 12px; }
.ops #ops-sum { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ops .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); flex: none; }
.ops .dot.live { background: var(--ok); } .ops .dot.warn { background: var(--warn); } .ops .dot.bad { background: var(--bad); }
.ostale { margin-left: auto; padding: 2px 8px; border: 1px solid var(--bad); color: var(--bad); border-radius: 999px;
  font: 10px/1.6 var(--mono); letter-spacing: .08em; }
.ops-body { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 12px; border-top: 1px solid var(--line); }
.otile { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-width: 0; }
.otile-h { font: 10px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 6px; }
.onum { font: 28px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.onum.small { font-size: 16px; }
.ostate { display: flex; align-items: center; gap: 7px; font: 12px/1.4 var(--mono); color: var(--muted); }
.ostate::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.ostate.ok { color: var(--ok); } .ostate.warn { color: var(--warn); } .ostate.bad { color: var(--bad); }
.omuted { color: var(--muted); font: 11px/1.5 var(--mono); }
.ojob { border-top: 1px solid var(--line); padding: 6px 0; }
.ojob .oj-title { color: var(--ink); font-weight: 600; font-size: 13px; }
.ojob .oj-meta { color: var(--muted); font: 11px/1.4 var(--mono); }
.obar-row { display: flex; align-items: center; gap: 6px; }
.obar { flex: 1; height: 3px; background: var(--soft); border-radius: 2px; overflow: hidden; }
.obar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 2px; }
.obar-tag { color: var(--muted); font: 10px/1 var(--mono); }
.olast { color: var(--muted); font: 11px/1.4 var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.osegs { display: flex; gap: 3px; flex-wrap: wrap; margin: 4px 0; }
.oseg { width: 10px; height: 10px; border-radius: 2px; background: var(--bad); }
.oseg.ok { background: var(--ok); } .oseg.warn { background: var(--warn); }
.otimer { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; font: 12px/1.4 var(--mono); }
.otimer + .otimer { border-top: 1px solid var(--line); }
.otimer .ot-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.otile .ghost { font-size: 12px; }
@media (min-width: 720px) { .ops-body { grid-template-columns: repeat(4, 1fr); } }


/* mobile: bottom tab bar, single column */
@media (max-width: 720px) {
  body { font: 15px/1.5 var(--sans); }
  header.top { padding: 8px 16px; }
  nav.primary, header.top .icon-btn span { display: none; }
  header.top form { margin-left: auto; }
  main { padding: 16px 16px calc(88px + env(safe-area-inset-bottom)); }
  nav.bottom { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; inset: auto 0 0 0; z-index: 5;
    background: var(--panel);
    border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
  nav.bottom a { flex-direction: column; gap: 2px; font: 10px/1.2 var(--mono); min-height: 52px; justify-content: center; padding: 0; }
  nav.bottom a[aria-current] { background: transparent; color: var(--accent); box-shadow: inset 0 2px 0 var(--accent); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .modes { grid-template-columns: 1fr; }
  .tag { min-width: 0; }
  .row { flex-direction: column; gap: 2px; }
  h1 { font-size: 23px; }
  .prose.doc { font-size: 17px; }
  form.quick { flex-direction: column; align-items: stretch; }
  form.quick input, form.quick select, form.quick button { width: 100%; }
}

/* motion: short colour/opacity transitions only (no hover lift: jittery on touch, extra paints) */
@media (prefers-reduced-motion: no-preference) {
  button, .btn, a.row, .chips a, .tabs a, .items li { transition: background-color var(--en3-dur) var(--en3-ease), border-color var(--en3-dur) var(--en3-ease), color var(--en3-dur) var(--en3-ease); }
  .dot.live { animation: opspulse 2.4s ease-out infinite; }
  .queue-card.leaving { animation: qout .18s ease both; }
  @view-transition { navigation: auto; }
}
@keyframes opspulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes qout { to { opacity: 0; transform: translateX(-14px); } }
/* board (kanban) */
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.board-filters { display: flex; gap: 6px; margin: 0 0 12px; overflow-x: auto; scrollbar-width: none; }
.board-filters::-webkit-scrollbar { display: none; }
.board-filter { border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 999px; min-height: 34px; padding: 0 12px; font-size: 14px; cursor: pointer; }
.board-filter[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.board .col { background: var(--soft); border-radius: var(--radius); padding: 10px; min-height: 120px;  display: flex; flex-direction: column; scrollbar-width: thin; }
.board .col h2 { font-size: 0.95rem; margin: 0 0 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; position: sticky; top: -10px; background: var(--soft); z-index: 1; padding: 2px 0; }
.board .count { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; font-size: 12px; color: var(--muted); min-width: 26px; text-align: center; }
.board .card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 6px; }
.board .card.task { cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.board .card.dragging { opacity: 0.92; box-shadow: 0 10px 30px color-mix(in srgb, var(--ink) 30%, transparent); cursor: grabbing; touch-action: none; }
.board .card .kind { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.board .card.pinned { border-style: dashed; background: color-mix(in srgb, var(--soft) 55%, var(--panel)); }
.board .card.pinned::after { content: "pinned"; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.board .card .who { align-self: flex-start; font-size: 0.8rem; min-height: 28px; padding: 2px 10px; }
.board .card time { font-size: 12px; color: var(--muted); }
.board .ph { border: 2px dashed var(--accent); border-radius: 10px; margin-bottom: 8px; background: color-mix(in srgb, var(--accent) 8%, transparent); }
.board .col.over { outline: 2px solid var(--accent); outline-offset: -2px; }
.board .add { align-self: stretch; background: transparent; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; min-height: 34px; font-size: 13px; }
.board .add:hover { color: var(--ink); border-color: var(--muted); }
.board .add-form { display: flex; gap: 6px; margin-bottom: 8px; }
.board .add-form input { flex: 1; min-width: 0; }
.board-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; font-size: 14px; z-index: 30; opacity: 0; pointer-events: none; transition: opacity 0.2s; max-width: calc(100vw - 32px); }
.board-toast.show { opacity: 1; }
@media (max-width: 760px) {
  .board { display: flex; scroll-snap-type: x mandatory; scroll-padding-left: 16px; }
  .board .col { flex: 0 0 86vw; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  .board .card, .board-toast { transition: none; }
}

/* polish pass: wide board, compact cards, ops tile flow */
main:has(.board) { max-width: 1400px; }
.board { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.board .card { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 10px 12px; }
.board .card > a { flex: 1 1 100%; text-decoration: none; font-weight: 600; font-size: 14.5px; line-height: 1.35; overflow-wrap: anywhere; }
.board .card > a:hover { color: var(--accent); }
.board .card .pill, .board .card .who, .board .card .kind { padding: 1px 8px; min-height: 0; line-height: 1.5; font-size: 11px; width: auto; }
.board .card .who { min-height: 26px; }
.board .card time { margin-left: auto; font: 11px var(--mono); }
.board .card.pinned::after { display: none; }
.board .card.pinned { border-style: solid; border-left: 3px solid var(--warn); }
.board .card.task { border-left: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); }
@media (min-width: 761px) { .ops-body { grid-template-columns: repeat(4, 1fr); } .otile:last-child { grid-column: span 3; } }
@media (max-width: 760px) { .otile:last-child { display: none; } .ops-body { gap: 8px; padding: 8px; } .otile { padding: 8px 10px; } }
.ops-body { align-items: stretch; }

.num { font: 12px/1 var(--mono); color: var(--muted, #8b95a7); flex: none; }
h1 .num { font-size: .6em; vertical-align: middle; margin-right: 6px; }
form.search { display: flex; gap: 8px; margin: 8px 0; }
form.search input { flex: 1; min-width: 0; }
.prose img.media { max-width: 100%; max-height: 420px; border-radius: 8px; border: 1px solid var(--line); margin: 4px 8px 4px 0; }

/* projects */
form.stack { display: grid; gap: 8px; margin: 12px 0; }
form.stack label { font-size: 14px; color: var(--muted); }
form.stack input[type=checkbox] { width: auto; margin-right: 6px; }
.addlink { margin: 0 0 12px; }
.addlink summary { cursor: pointer; display: inline-flex; list-style: none; }
.items .row-btns { margin-top: 8px; }

/* ===== v2 (en3 brand): cockpit, needs queue, files ===== */
html { scroll-padding-top: 64px; }
body { overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
main, main > * { min-width: 0; }
img, svg, video { max-width: 100%; }
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand img { width: 32px; height: auto; display: block; }
.brand b { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; }
.nbadge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 600 11px/18px var(--mono); text-align: center; }
nav.primary a .nbadge { margin-left: 2px; }
h2 .count, .h2c { font: 500 11px var(--mono); color: var(--muted); letter-spacing: .08em; margin-left: auto; text-transform: none; }
h2 a.more, a.more { margin-left: auto; font: 500 12px var(--mono); color: var(--accent); text-decoration: none; letter-spacing: .04em; text-transform: none; }
.btn, button { font-family: var(--sans); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--en3-r); border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); text-decoration: none; cursor: pointer; font-size: 15px; }
.btn.sm, button.sm { min-height: 34px; padding: 0 10px; font-size: 14px; }
.btn.go, button.go { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.btn.no, button.no { color: var(--muted); }
.btn[disabled], button[disabled] { opacity: .5; }

/* status dot */
.sdot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; display: inline-block; }
.sdot.ok, .sdot.running { background: var(--ok); } .sdot.warn, .sdot.paused, .sdot.waiting { background: var(--warn); } .sdot.bad, .sdot.failed { background: var(--bad); }
.sdot.running { animation: opspulse 2.4s ease-out infinite; } .sdot.waiting { background: var(--muted); opacity: .6; }
.sdot.idle { background: var(--muted); opacity: .6; }

/* insight strip */
.strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -20px 6px; padding: 2px 20px 8px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.ins { flex: none; scroll-snap-align: start; max-width: min(78vw, 340px); display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); text-decoration: none; font-size: 14px; line-height: 1.4; }
.ins .sdot { margin-top: 6px; }
.ins.bad { border-color: color-mix(in srgb, var(--bad) 55%, var(--line)); } .ins.warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.ins.ok .sdot { background: var(--ok); } .ins.info .sdot { background: var(--violet); }
.ins.bad .sdot { background: var(--bad); } .ins.warn .sdot { background: var(--warn); }

/* needs queue */
.needs { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.need { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 8px; content-visibility: auto; contain-intrinsic-size: auto 110px; }
.need.money { border-left: 3px solid var(--accent); } .need.delete { border-left: 3px solid var(--bad); } .need.question, .need.brief { border-left: 3px solid var(--violet); } .need.reminder { border-left: 3px solid var(--warn); }
.need .nt { display: flex; gap: 8px; align-items: baseline; text-decoration: none; font-weight: 600; line-height: 1.35; }
.need .nt .num { color: var(--muted); font: 500 12px var(--mono); flex: none; }
.need .ns { margin: 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.need .nm { display: flex; flex-wrap: wrap; gap: 4px 10px; font: 500 12px var(--mono); color: var(--muted); }
.need .nm .late { color: var(--warn); }
.need .na { display: flex; gap: 8px; }
.need .na .btn { flex: 1; }
.need.gone { opacity: 0; transform: translateX(-12px); transition: opacity .18s, transform .18s; }
.grp { margin: 0 0 8px; }
.grp > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--muted); }
.grp > summary::-webkit-details-marker { display: none; }
.grp[open] > summary { margin-bottom: 8px; }
.grp > summary b { color: var(--ink); font-weight: 600; }
.allclear { display: flex; gap: 10px; align-items: center; padding: 14px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.toast { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); max-width: 420px; margin: 0 auto; z-index: 30; display: flex; gap: 12px; align-items: center; justify-content: space-between; background: var(--en3-tx); color: var(--en3-bg); border-radius: var(--en3-r); padding: 10px 14px; font-size: 14px; box-shadow: var(--en3-shadow-md); }
.toast button { background: none; border: 0; color: #9e2316; font-weight: 700; min-height: 32px; padding: 0 6px; cursor: pointer; }
@media (min-width: 761px) { .toast { bottom: 24px; } }

/* cockpit */
.cockpit { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 12px; align-items: start; }
.wg { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.wg > header { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.wg > header b { color: var(--ink); font-weight: 600; letter-spacing: .1em; }
.wg > header .h2c { margin-left: auto; }
.wr { padding: 10px 14px; border-top: 1px solid var(--hair, var(--line)); display: grid; gap: 4px; content-visibility: auto; contain-intrinsic-size: auto 64px; }
.wr:first-of-type { border-top: 0; }
.wr .w1 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wr .w1 .wn { font-weight: 600; min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wr .w1 .wt { font: 500 12px var(--mono); color: var(--muted); flex: none; }
.wr .wd { color: var(--muted); font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--mono); }
.wr .wm { display: flex; flex-wrap: wrap; gap: 2px 10px; font: 500 12px var(--mono); color: var(--muted); }
.wr .wc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.wr .wc form { display: contents; }
.wr .wc select { min-height: 34px; font-size: 13px; padding: 0 8px; width: auto; max-width: 150px; }
.wr .warn { color: var(--warn); } .wr .bad { color: var(--bad); }
.wr.idle .wn { color: var(--muted); font-weight: 500; }
.meter { height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--ok); border-radius: 3px; }
.meter.warn i { background: var(--warn); } .meter.bad i { background: var(--bad); }
.anom { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.anom li { display: flex; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); font-size: 14px; }
.anom li.bad { border-color: color-mix(in srgb, var(--bad) 50%, var(--line)); } .anom li.warn { border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }
.anom .sdot { margin-top: 7px; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 0; }
.kv > div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.kv dt { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.kv dd { margin: 2px 0 0; font: 500 20px var(--mono); font-variant-numeric: tabular-nums; }
.pre-note { padding: 8px 12px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.tbl { overflow-x: auto; }
.timers { list-style: none; margin: 0; padding: 0; }

/* files */
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.topic { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); text-decoration: none; content-visibility: auto; contain-intrinsic-size: auto 150px; }
.topic .tt { display: flex; align-items: baseline; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 17px; }
.topic .tt small { font: 500 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-left: auto; }
.topic .tm { font: 500 12px var(--mono); color: var(--muted); }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.thumbs img, .th { aspect-ratio: 1; width: 100%; object-fit: cover; border-radius: 6px; background: var(--soft); display: block; }
.tl { display: flex; flex-direction: column; gap: 6px; padding: 8px 0 24px; }
.day { align-self: center; position: sticky; top: 58px; z-index: 2; font: 500 11px var(--mono); letter-spacing: .08em; color: var(--muted); background: var(--soft); border-radius: 999px; padding: 4px 12px; margin: 10px 0 4px; text-transform: uppercase; }
.bub { max-width: min(92%, 560px); align-self: flex-start; background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 10px 12px; display: grid; gap: 6px; text-decoration: none; content-visibility: auto; contain-intrinsic-size: auto 120px; }
.bub.me { align-self: flex-end; background: color-mix(in srgb, var(--accent) 14%, var(--panel)); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); border-radius: 14px 4px 14px 14px; }
.bub .bt { font-weight: 600; line-height: 1.35; }
.bub .bs { margin: 0; font-size: 14px; color: var(--en3-tx2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bub .bs.insight::before { content: "Insight  "; font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.bub .bm { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font: 500 11px var(--mono); color: var(--muted); }
.bub .bm .chip { border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.bub .bm time { margin-left: auto; }
.bub img.bi { width: min(100%, 320px); aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; background: var(--soft); }
.bub .mv { display: flex; gap: 6px; }
.bub .mv select { min-height: 30px; font-size: 12px; padding: 0 6px; width: auto; max-width: 160px; }
.earlier { align-self: center; }
.fbar { position: sticky; top: 52px; z-index: 3; background: var(--bg); padding: 8px 0; display: grid; gap: 8px; }
.fbar .search { margin: 0; }

/* mobile additions (base mobile layout is the 720px block above) */
@media (max-width: 720px) {
  .strip { margin: 0 -16px 6px; padding: 2px 16px 8px; }
  nav.bottom a { position: relative; }
  nav.bottom .nbadge { position: absolute; top: 2px; left: calc(50% + 6px); }
  .toast { bottom: calc(72px + env(safe-area-inset-bottom)); }
  .day { top: 52px; }
  .fbar { top: 48px; }
  h1 { font-size: 24px; }
}

.flat { border: 0 !important; border-top: 1px solid var(--line) !important; border-radius: 0 !important; }
.m-b4 { margin: 0 0 4px; } .m-note { margin: -4px 0 10px; } .m-t16 { margin-top: 16px; } .m-t20 { margin-top: 20px; } .m-t10 { margin: 10px 0 0; } .p-t0 { padding-top: 0; } .nodeco { text-decoration: none; } .mz { margin: 0 !important; }
.fbar { top: 60px; }
.bub .mv .btn { border-color: transparent; background: none; min-height: 28px; padding: 0 6px; font-size: 12px; color: var(--muted); }
@media (max-width: 720px) { .fbar { top: 58px; } .day { top: 112px; } }
