/* FirmPrint AI public site. Generated by scripts/build-site.mjs; edit src/site.css and src/styles.css instead. */
@font-face{font-family:'Libre Baskerville';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/libre-baskerville-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Public Sans';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/public-sans-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Public Sans';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/public-sans-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:'Public Sans';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/public-sans-latin-600-normal.woff2) format('woff2')}
@font-face{font-family:'Public Sans';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/public-sans-latin-700-normal.woff2) format('woff2')}
@font-face{font-family:'Source Serif 4';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/source-serif-4-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Source Serif 4';font-style:italic;font-weight:400;font-display:swap;src:url(fonts/source-serif-4-latin-400-italic.woff2) format('woff2')}
@font-face{font-family:'Source Serif 4';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/source-serif-4-latin-600-normal.woff2) format('woff2')}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2')}

/* Layout: quiet light workspace (sidebar + search bar) for operating; formal firm memos on paper for reading. Color is reserved for status. */
:root {
  --bg: #F7F5F0; --surface: #FFFFFF; --subtle: #F0EDE6; --hover: #ECE9E2; --line: #E3DFD6; --line-strong: #CFCAC0;
  --fg: #15181F; --muted: #4A5568; --faint: #8B9099;
  --ink: #14213D; --ink-fg: #FFFFFF; --mark: #14213D; --mark-2: #A35F12;
  --link: #2B4E8F; --focus: #C8902F;
  --high: #B42318; --high-soft: #FDEFED; --watch: #94590A; --watch-soft: #FBF2E2; --low: #1E6A45; --low-soft: #E9F4EE;
  --draft: #34529A; --draft-soft: #EDF1FA; --cite: #A35F12; --cite-soft: #F7EEDF;
  --paper: #FFFFFF; --paper-fg: #1B1E26; --paper-line: #E4E1D9;
  --ui: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;
  --serif-display: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --r: 8px;
  --shadow: 0 1px 2px rgba(20, 24, 31, 0.04), 0 2px 8px rgba(20, 24, 31, 0.04);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0F1115; --surface: #16191F; --subtle: #1B1F26; --hover: #20252D; --line: #272B34; --line-strong: #353A45;
  --fg: #ECEDEF; --muted: #A1A7B2; --faint: #747B87;
  --ink: #E9EAEE; --ink-fg: #0F1115; --mark: #E2B26B; --mark-2: #E2B26B;
  --link: #9DB9F2; --focus: #E2B26B;
  --high: #F38C7F; --high-soft: #3A1D1A; --watch: #EAB45C; --watch-soft: #33281A; --low: #80C69E; --low-soft: #16301F;
  --draft: #AABCF3; --draft-soft: #1D2440; --cite: #E5BC7A; --cite-soft: #2F2618;
  --paper: #1A1D23; --paper-fg: #E6E7EA; --paper-line: #2C303A;
  --shadow: none; color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0F1115; --surface: #16191F; --subtle: #1B1F26; --hover: #20252D; --line: #272B34; --line-strong: #353A45;
  --fg: #ECEDEF; --muted: #A1A7B2; --faint: #747B87;
  --ink: #E9EAEE; --ink-fg: #0F1115; --mark: #E2B26B; --mark-2: #E2B26B;
  --link: #9DB9F2; --focus: #E2B26B;
  --high: #F38C7F; --high-soft: #3A1D1A; --watch: #EAB45C; --watch-soft: #33281A; --low: #80C69E; --low-soft: #16301F;
  --draft: #AABCF3; --draft-soft: #1D2440; --cite: #E5BC7A; --cite-soft: #2F2618;
  --paper: #1A1D23; --paper-fg: #E6E7EA; --paper-line: #2C303A;
  --shadow: none; color-scheme: dark; }

html, body { height: 100%; }
[hidden] { display: none !important; }
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--fg); font-family: var(--ui); font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--link); }
button, select, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
td, .num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 0.85em; }

/* Shell */
.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100%; }
.side-nav { border-right: 1px solid var(--line); background: var(--bg); padding-block: 18px; padding-inline: 14px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 9px; padding-inline: 8px; color: var(--fg); text-decoration: none; }
.brand svg { width: 22px; height: 22px; flex: none; color: var(--mark); }
.brand .word { font-family: var(--serif-display); letter-spacing: 1.4px; font-size: 13px; }
.brand .word b { font-family: var(--ui); font-weight: 600; font-size: 9.5px; letter-spacing: 1.2px; color: var(--mark-2); margin-left: 3px; vertical-align: 1px; }
.firmsel { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.firmsel .av { width: 28px; height: 28px; border-radius: 6px; background: var(--ink); color: var(--ink-fg); display: grid; place-items: center; font-family: var(--serif-display); font-size: 12px; flex: none; }
.firmsel .nm { font-weight: 600; font-size: 13.5px; line-height: 1.2; }
.firmsel .sub { font-size: 11.5px; color: var(--muted); }
.nav { display: flex; flex-direction: column; gap: 1px; }
.nav a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 6px; color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 500; }
.nav a:hover { background: var(--hover); color: var(--fg); }
.nav a[aria-current="page"] { background: var(--surface); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.nav .count { font-size: 11.5px; color: var(--faint); font-weight: 400; }
.nav .count.attn { color: var(--draft); font-weight: 600; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-inline: 8px; font-size: 11.5px; color: var(--faint); }
.sync { display: flex; align-items: center; gap: 6px; }
.sync::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--low); }
.proto { border: 1px dashed var(--line-strong); border-radius: 6px; padding: 5px 8px; color: var(--muted); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 6; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding-block: 10px; padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); flex-wrap: wrap; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.search { position: relative; flex: 1 1 320px; max-width: 520px; min-width: 0; }
.search input { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px 8px 34px; font-size: 14px; box-shadow: var(--shadow); }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--faint); }
.search kbd { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 11px; color: var(--faint); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; background: var(--subtle); }
.results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 32px rgba(0,0,0,0.12); padding: 6px; z-index: 8; max-height: 60vh; overflow-y: auto; }
.results .grp { font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--faint); padding: 8px 10px 4px; }
.results a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 6px; color: var(--fg); text-decoration: none; font-size: 13.5px; }
.results a:hover, .results a.sel { background: var(--hover); }
.results a span:last-child { color: var(--faint); font-size: 12px; white-space: nowrap; }
.results .none { padding: 12px 10px; color: var(--muted); font-size: 13px; }
.who { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.who select { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 8px; font-size: 13px; }
.content { padding-block: 32px 72px; padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); max-width: 1240px; width: 100%; display: flex; flex-direction: column; gap: 32px; }

/* Page heads + sections */
.crumbs { font-size: 12.5px; color: var(--faint); display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--faint); text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.pagehead h1 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; margin-top: 6px; }
.pagehead .sub { color: var(--muted); margin-top: 6px; font-size: 14px; max-width: 72ch; }
section { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sh h2 { font-size: 15px; font-weight: 600; letter-spacing: -0.005em; }
.sh .aside { color: var(--faint); font-size: 12.5px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.small { font-size: 12.5px; color: var(--muted); }
.note { font-size: 12.5px; color: var(--faint); }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.High { color: var(--high); } .status.Watch { color: var(--watch); } .status.Low { color: var(--low); }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.badge.draft { color: var(--draft); background: var(--draft-soft); }
.badge.ok { color: var(--low); background: var(--low-soft); }
.badge.high { color: var(--high); background: var(--high-soft); }
.tag { font-size: 11.5px; padding: 1px 7px; border-radius: 4px; background: var(--subtle); color: var(--muted); white-space: nowrap; border: 1px solid var(--line); }
.tag.court { color: var(--cite); background: var(--cite-soft); border-color: transparent; font-weight: 600; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line-strong); background: var(--surface); padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none; color: var(--fg); white-space: nowrap; }
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--ink); color: var(--ink-fg); border-color: var(--ink); }
.btn.primary:hover { opacity: 0.9; background: var(--ink); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.opt { display: flex; gap: 6px; flex-wrap: wrap; }
.opt button { border: 1px solid var(--line-strong); background: var(--surface); padding: 5px 11px; border-radius: 999px; font-size: 13px; cursor: pointer; }
.opt button:hover { background: var(--hover); }
.opt button[aria-pressed="true"] { background: var(--ink); color: var(--ink-fg); border-color: var(--ink); }
.opt button.no[aria-pressed="true"] { background: var(--high-soft); color: var(--high); border-color: transparent; }

/* Summary */
.metrics { display: flex; flex-wrap: wrap; gap: 0; }
.metrics > * { padding: 14px 20px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; min-width: 130px; flex: 1 1 130px; }
.metrics > *:first-child { border-left: 0; }
.metrics a:hover { background: var(--subtle); }
.metrics .v { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.metrics .k { font-size: 12.5px; color: var(--muted); }
.decide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dcard { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.dcard .q { font-size: 15px; font-weight: 600; }
.dcard .ctx { font-size: 13px; color: var(--muted); }
.dcard.wide { grid-column: 1 / -1; }
.dcard .done { font-size: 12.5px; color: var(--low); font-weight: 600; }
.staff { display: flex; flex-direction: column; }
.staff .row { display: flex; gap: 14px; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.staff .row:first-child { border-top: 0; padding-top: 0; }
.staff .row p { margin: 0; flex: 1 1 320px; min-width: 0; font-size: 13.5px; }
.headlines { list-style: none; margin: 0; padding: 4px 0; counter-reset: h; }
.headlines li { counter-increment: h; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 14px; }
.headlines li:first-child { border-top: 0; }
.headlines li::before { content: counter(h); font-variant-numeric: tabular-nums; color: var(--faint); font-weight: 600; }
.headlines strong { font-weight: 600; }

.tablewrap { overflow-x: auto; }
table.grid { border-collapse: collapse; width: 100%; font-size: 13.5px; }
table.grid th { text-align: left; font-weight: 500; font-size: 12px; color: var(--faint); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.grid td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
table.grid tbody tr:first-child td { border-top: 0; }
table.grid tbody tr.click { cursor: pointer; }
table.grid tbody tr.click:hover td { background: var(--subtle); }
table.grid .r { text-align: right; }
.case-link { color: var(--fg); font-weight: 600; text-decoration: none; }
.case-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.due { white-space: nowrap; }
.soon { color: var(--high); font-weight: 600; }

.cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.cal { padding: 4px 0; }
.wk { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--faint); padding: 12px 18px 4px; font-weight: 600; }
.ev { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; padding: 8px 18px; font-size: 13.5px; }
.ev .d { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.ev .d b { display: block; color: var(--fg); font-size: 14px; }
.ev.conflict { background: var(--high-soft); }
.ev .meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.bars { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.bar { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: start; }
.bar .n { font-size: 13.5px; font-weight: 500; }
.bar .n span { display: block; font-size: 11.5px; color: var(--faint); font-weight: 400; }
.track { position: relative; height: 18px; margin-top: 2px; background: linear-gradient(to right, var(--line) 1px, transparent 1px) 0 0 / calc(100% / 14 * 5) 100%; }
.fill { position: absolute; left: 0; top: 4px; bottom: 4px; background: var(--line-strong); border-radius: 0 3px 3px 0; }
.fill.hot { background: var(--high); } .fill.warm { background: var(--watch); }
.fill b { position: absolute; left: calc(100% + 6px); top: 50%; transform: translateY(-50%); font-size: 12px; font-variant-numeric: tabular-nums; }
.assess { font-size: 12px; color: var(--muted); margin-top: 3px; }
.axis { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; font-size: 11px; color: var(--faint); }
.axis div:last-child { position: relative; height: 14px; }
.axis span { position: absolute; transform: translateX(-50%); }
ul.plain { margin: 0; padding: 14px 18px 14px 34px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }

/* Matters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters select, .filters input { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; font-size: 13px; }
.filters input { flex: 1 1 200px; max-width: 300px; min-width: 0; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; padding: 2px; background: var(--subtle); gap: 2px; }
.seg button { border: 0; background: transparent; padding: 4px 10px; border-radius: 4px; font-size: 13px; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); font-weight: 500; }

/* Matter page */
.mhead { display: flex; flex-direction: column; gap: 10px; }
.mhead h1 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 600; letter-spacing: -0.015em; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 13px; color: var(--muted); }
.facts b { color: var(--fg); font-weight: 500; }
.matter { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.docwrap { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.docbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r) var(--r) 0 0; background: var(--surface); }
.docbar .l { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.vtabs { display: inline-flex; gap: 2px; border: 1px solid var(--line); border-radius: 6px; padding: 2px; background: var(--subtle); }
.vtabs button { border: 0; background: transparent; border-radius: 4px; padding: 3px 9px; font-size: 12.5px; cursor: pointer; color: var(--muted); }
.vtabs button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; }
.notice { padding: 12px 16px; border: 1px solid var(--line); border-bottom: 0; display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; font-size: 13.5px; background: var(--draft-soft); }
.notice.ok { background: var(--low-soft); }
.notice p { margin: 0; flex: 1 1 300px; min-width: 0; }
.notice .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.confirm { padding: 14px 16px; border: 1px solid var(--line); border-bottom: 0; background: var(--subtle); display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.confirm ul { margin: 0; padding-left: 18px; }
.confirm textarea { width: 100%; min-height: 70px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px; padding: 8px; }
.steps { padding: 14px 16px; border: 1px solid var(--line); border-bottom: 0; background: var(--surface); display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.steps div { display: flex; gap: 10px; align-items: center; color: var(--faint); }
.steps div.done { color: var(--fg); }
.steps div::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; }
.steps div.done::before { background: var(--low); border-color: var(--low); }
.steps div.run::before { border-color: var(--focus); border-top-color: transparent; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* The memo as a firm document */
.paper { position: relative; background: var(--paper); color: var(--paper-fg); border: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); box-shadow: var(--shadow); padding: 44px clamp(20px, 5vw, 64px) 52px; }
.letterhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--paper-line); }
.letterhead .firm { font-family: var(--serif-display); letter-spacing: 3px; font-size: 13px; }
.letterhead .priv { font-family: var(--ui); font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); }
.stamp { position: absolute; top: 18px; right: 22px; font-family: var(--ui); font-weight: 700; font-size: 11px; letter-spacing: 2px; color: var(--draft); border: 1.5px solid var(--draft); border-radius: 4px; padding: 2px 8px; transform: rotate(3deg); }
.memo-title { font-family: var(--serif-display); font-weight: 400; font-size: 22px; letter-spacing: 0.5px; margin: 26px 0 16px; }
.memo-meta { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 6px 14px; margin: 0; font-family: var(--serif); font-size: 15px; padding-bottom: 18px; border-bottom: 3px double var(--paper-line); }
.memo-meta dt { font-family: var(--ui); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--faint); padding-top: 3px; }
.memo-meta dd { margin: 0; }
.rich { font-family: var(--serif); font-size: 16px; line-height: 1.62; padding-top: 6px; max-width: 70ch; }
.rich[contenteditable="true"] { outline: 2px dashed var(--draft); outline-offset: 8px; border-radius: 2px; }
.rich h2 { font-family: var(--serif-display); font-weight: 400; font-size: 16.5px; letter-spacing: 0.2px; margin: 30px 0 10px; }
.rich p { margin: 10px 0; }
.rich ol, .rich ul { padding-left: 24px; margin: 10px 0; }
.rich li { margin: 5px 0; }
.rich strong { font-weight: 600; }
.rich table { border-collapse: collapse; width: 100%; font-family: var(--ui); font-size: 13px; line-height: 1.45; margin: 14px 0; display: block; overflow-x: auto; }
.rich th { text-align: left; font-weight: 600; font-size: 12px; padding: 7px 10px; border-bottom: 1.5px solid var(--paper-fg); }
.rich td { padding: 7px 10px; border-bottom: 1px solid var(--paper-line); vertical-align: top; }
.rich hr { border: 0; border-top: 1px solid var(--paper-line); }
.signoff { margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--paper-line); font-family: var(--serif); font-size: 15px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.signoff .sig { font-family: var(--serif); font-style: italic; font-size: 18px; }
.signoff .pending { color: var(--draft); font-family: var(--ui); font-size: 13px; font-weight: 600; }
a.ref { color: var(--link); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; cursor: pointer; }
a.ref.lref { font-family: var(--mono); font-size: 0.78em; text-decoration: none; color: var(--cite); background: var(--cite-soft); padding: 1px 5px; border-radius: 3px; font-weight: 500; vertical-align: 1px; }
.rail { display: flex; flex-direction: column; gap: 16px; min-width: 0; position: sticky; top: 76px; }
.card h3 { font-size: 12px; font-weight: 600; color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; }
.card h3 span:last-child { color: var(--faint); font-weight: 400; }
.card .body { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.task { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.chk { width: 16px; height: 16px; margin-top: 2px; border: 1.5px solid var(--line-strong); border-radius: 4px; background: var(--surface); cursor: pointer; padding: 0; display: grid; place-items: center; font-size: 11px; line-height: 1; color: var(--ink-fg); }
.chk:hover { border-color: var(--fg); }
.chk[disabled] { cursor: not-allowed; opacity: 0.5; }
.chk.on { background: var(--low); border-color: var(--low); }
.task.donet .t { text-decoration: line-through; color: var(--muted); }
.cform { grid-column: 2 / -1; display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.cform textarea { width: 100%; min-height: 54px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px; padding: 6px 8px; font-size: 13px; }
.cform .row { display: flex; gap: 6px; flex-wrap: wrap; }
.sugg { border: 1px solid var(--line); border-left: 3px solid var(--draft); border-radius: 6px; padding: 10px 12px; background: var(--draft-soft); display: flex; flex-direction: column; gap: 6px; }
.sugg .row { display: flex; gap: 6px; flex-wrap: wrap; }
.since { padding: 10px 16px; border: 1px solid var(--line); border-bottom: 0; background: var(--subtle); display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; font-size: 13px; }
.since p { margin: 0; flex: 1 1 280px; min-width: 0; }
.tchip { font-family: var(--mono); font-size: 0.8em; padding: 0 4px; border-radius: 3px; background: var(--subtle); border: 1px solid var(--line); white-space: nowrap; }
.tchip.done { background: var(--low-soft); color: var(--low); border-color: transparent; }
.donelist summary { cursor: pointer; font-size: 12.5px; color: var(--muted); }
.task:first-child { padding-top: 0; border-top: 0; }
.task .id { font-family: var(--mono); font-size: 11.5px; color: var(--faint); padding-top: 2px; }
.task .m { font-size: 12px; color: var(--muted); }
.task.proposed .t { color: var(--muted); }
.doc { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.doc .f { font-family: var(--mono); font-size: 10.5px; color: var(--faint); flex: none; width: 24px; }
.doc .nm { overflow-wrap: anywhere; min-width: 0; }
.new { font-size: 10.5px; color: var(--draft); font-weight: 700; letter-spacing: 0.5px; margin-left: 4px; }
.hist { display: flex; flex-direction: column; gap: 8px; }
.hist div { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; }
.hist b { font-family: var(--mono); font-size: 12px; font-weight: 500; }
.empty { padding: 28px; color: var(--muted); display: flex; flex-direction: column; gap: 10px; }

/* Playbook */
.lessons { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.lesson { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.lesson.on { box-shadow: 0 0 0 1.5px var(--fg); }
.lesson .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lid { font-family: var(--mono); font-weight: 500; color: var(--cite); background: var(--cite-soft); padding: 1px 7px; border-radius: 4px; font-size: 12.5px; }
.lesson .txt { font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.lesson .sup { font-size: 13px; color: var(--muted); }
.meter { display: flex; gap: 3px; }
.meter i { width: 12px; height: 5px; border-radius: 2px; background: var(--line); }
.meter i.on { background: var(--cite); }
.queue { display: flex; flex-direction: column; gap: 12px; }
.qitem { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; border-left: 3px solid var(--draft); }
.qitem .top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.qitem .txt { font-size: 15px; font-weight: 600; }
.qitem textarea { width: 100%; min-height: 60px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px; padding: 8px; font-size: 14.5px; }
.qitem .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.warn { font-size: 12.5px; color: var(--watch); background: var(--watch-soft); padding: 4px 8px; border-radius: 4px; align-self: flex-start; }
table.matrix { min-width: 1160px; }
table.matrix td:first-child { min-width: 220px; }
tr.hl td { background: var(--cite-soft); }
.mult { font-weight: 600; }
.mult.lost { color: var(--high); }

/* Ask */
.askbox { display: flex; gap: 10px; flex-wrap: wrap; }
.askbox input { flex: 1 1 280px; min-width: 0; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); padding: 11px 14px; font-size: 15px; box-shadow: var(--shadow); }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.answer .q { padding: 16px 22px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15.5px; }
.answer .a { padding: 16px 22px; display: flex; flex-direction: column; gap: 10px; font-family: var(--serif); font-size: 16px; line-height: 1.6; max-width: 76ch; }
.answer .a p { margin: 0; }
.answer .src { padding: 12px 22px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12.5px; }

/* Roles: update box, proposals, queues */
.updtext { width: 100%; min-height: 76px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px; padding: 8px 10px; font-size: 13.5px; resize: vertical; }
.exs button { font-size: 12px; padding: 4px 9px; text-align: left; }
.props { display: flex; flex-direction: column; gap: 8px; }
.prop { border: 1px solid var(--line); border-left: 3px solid var(--draft); border-radius: 6px; padding: 9px 10px; background: var(--draft-soft); display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.prop.done { border-left-color: var(--low); background: var(--low-soft); }
.prop.gone { opacity: 0.55; background: var(--subtle); border-left-color: var(--line-strong); }
.prop .k { font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--draft); }
.prop.done .k { color: var(--low); }
.prop .row, .qrow .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.brief { padding: 14px 18px; font-size: 14.5px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.brief b { font-weight: 600; }
.qlist { display: flex; flex-direction: column; }
.qrow { display: flex; gap: 14px; justify-content: space-between; align-items: flex-start; padding: 12px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; font-size: 13.5px; }
.qrow:first-child { border-top: 0; }
.qrow .main { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.qrow .meta { font-size: 12px; color: var(--muted); }
.letter { white-space: pre-wrap; font-family: var(--serif); font-size: 14.5px; line-height: 1.55; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; margin-top: 6px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.ccard { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.ccard h3 { font-size: 16px; font-weight: 600; }
.ccard .line { font-size: 13px; color: var(--muted); }
.ccard .line b { color: var(--fg); font-weight: 500; }
.empty-state { padding: 22px 18px; color: var(--muted); font-size: 13.5px; }

.admin-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; font-size: 13px; color: var(--muted); }
.conn { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0; }
.conn > div { padding: 14px 18px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.conn > div:first-child { border-left: 0; }
.conn b { font-weight: 600; font-size: 13.5px; }
.ok-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--low); margin-right: 6px; }
.rolesel { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; font-size: 13px; }
.form { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; padding: 14px 16px; align-items: end; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.form input, .form select { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px; padding: 7px 9px; font-size: 13.5px; color: var(--fg); }
tr.removed td { color: var(--faint); }
.inline-confirm td { background: var(--subtle); }

/* Drawer + toast */
.scrim { position: fixed; inset: 0; background: rgba(10, 12, 18, 0.28); z-index: 30; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--surface); border-left: 1px solid var(--line); z-index: 31; display: flex; flex-direction: column; box-shadow: -12px 0 32px rgba(0,0,0,0.12); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px); }
.drawer header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer header h2 { font-size: 17px; font-weight: 600; margin-top: 4px; line-height: 1.35; }
.drawer .eb { font-size: 12px; color: var(--faint); }
.drawer .x { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; width: 30px; height: 30px; cursor: pointer; flex: none; }
.drawer .dbody { padding: 18px 22px 26px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; font-size: 13.5px; }
.drawer .dbody h3 { font-size: 12px; color: var(--faint); font-weight: 500; margin-bottom: 6px; }
.kv { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 7px 12px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.mini { width: 100%; border-collapse: collapse; }
.mini td { padding: 8px 0; border-top: 1px solid var(--line); vertical-align: top; }
.mini td.r { text-align: right; white-space: nowrap; padding-left: 10px; }
.toast { position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--ink-fg); padding: 11px 16px; border-radius: var(--r); font-size: 13.5px; max-width: min(420px, calc(100vw - 40px)); box-shadow: 0 8px 28px rgba(0,0,0,0.2); z-index: 40; }

@media (max-width: 1100px) { .cols, .matter { grid-template-columns: minmax(0, 1fr); } .rail { position: static; } }
@media (max-width: 820px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side-nav { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding-block: 12px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); gap: 10px; }
  .firmsel, .side-foot { display: none; }
  .nav { flex-direction: row; overflow-x: auto; }
  .nav a { white-space: nowrap; }
  .nav .count { display: none; }
  .topbar, .content { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .who { margin-left: 0; }
  .decide { grid-template-columns: minmax(0, 1fr); }
  .bar, .axis { grid-template-columns: 92px minmax(0, 1fr); }
  .search kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) { .steps div.run::before { animation: none; } }

/* Public site (signed-out). Shares the app's tokens from styles.css. */
.site { background: var(--bg); color: var(--fg); min-height: 100vh; }
.site a { color: var(--link); }
.site .wrap { max-width: 1200px; width: 100%; box-sizing: border-box; margin: 0 auto; padding-inline: 24px; }
.site section { display: block; padding: 0; }
.site .eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--cite) !important; }
.site h1, .site h2 { font-family: var(--serif-display); font-weight: 400; color: var(--ink); letter-spacing: -0.01em; margin: 0; }
.site h1 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.12; }
.site h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.25; }
.site h3 { margin: 0; font-size: 18px; font-weight: 600; }
.site p { margin: 0; }
.site-nav { border-bottom: 1px solid var(--line); }
.site-nav .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.site-nav .links { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; font-size: 15px; }
.site-nav .links a { color: var(--muted); text-decoration: none; }
.site-nav .links a:hover { color: var(--fg); }
.site .brand .word { font-size: 15px; letter-spacing: 2px; }
.site .cta { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; background: var(--ink); color: var(--ink-fg) !important; text-decoration: none; padding: 12px 20px; border-radius: 6px; font-weight: 600; }
.site .cta.ghost { background: var(--surface); color: var(--fg) !important; border: 1px solid var(--line-strong); font-weight: 500; }
.hero .wrap { padding-block: 88px 72px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero .copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero .lede { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 540px; }
.hero .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero figure { flex: 1 1 420px; min-width: 0; margin: 0; }
.hero figcaption { font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.sample { background: var(--paper); border: 1px solid var(--paper-line); border-radius: 10px; box-shadow: 0 2px 4px rgba(20,24,31,.04), 0 16px 40px rgba(20,24,31,.08); padding: 32px 34px; display: flex; flex-direction: column; gap: 16px; }
.sample .lh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--paper-line); padding-bottom: 12px; font-size: 10.5px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--faint); }
.sample .lh b { font-family: var(--serif-display); letter-spacing: 3px; font-size: 12px; font-weight: 400; color: var(--fg); text-transform: none; }
.sample .case { font-family: var(--serif-display); font-size: 20px; color: var(--ink); }
.sample .k { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.sample .body { font-family: var(--serif); font-size: 15px; line-height: 1.6; }
.sample .les { display: flex; gap: 12px; padding: 10px 12px; background: var(--cite-soft); border-radius: 6px; font-size: 14px; line-height: 1.5; margin-top: 8px; }
.sample .les span:first-child { font-family: var(--mono); font-size: 12px; color: var(--cite); padding-top: 2px; }
.sample .sig { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--paper-line); padding-top: 14px; font-family: var(--serif); font-style: italic; }
.band { background: #14213D; color: #FFFFFF; }
.band .wrap { padding-block: 80px; display: flex; flex-direction: column; gap: 40px; }
.band h2 { color: #FFFFFF; max-width: 760px; }
.band .grid > div { border-top: 1px solid rgba(255,255,255,.25); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.band .grid p { font-size: 16px; line-height: 1.6; color: #BFC9D9; }
.site .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.site section.pad .wrap { padding-block: 88px; display: flex; flex-direction: column; gap: 40px; }
.steps3 { list-style: none; margin: 0; padding: 0; }
.steps3 li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.steps3 .n { font-family: var(--mono); font-size: 13px; color: var(--cite); }
.steps3 h3 { font-size: 20px; color: var(--ink); }
.steps3 p, .roles p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.roles { background: var(--subtle); border-block: 1px solid var(--line); }
.secure .wrap { display: flex !important; flex-direction: row !important; flex-wrap: wrap; gap: 48px !important; }
.secure .intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.secure .intro p { font-size: 16.5px; line-height: 1.6; color: var(--muted); }
.secure ul { flex: 1 1 520px; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.secure li { display: flex; gap: 12px; font-size: 15.5px; line-height: 1.55; }
.secure li svg { flex: none; margin-top: 2px; color: var(--low); }
.pilot { padding-bottom: 88px; }
.pilot .box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 48px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; }
.pilot .box > div:first-child { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.pilot .box p { font-size: 16.5px; line-height: 1.6; color: var(--muted); }
.pilot .act { display: flex; flex-direction: column; gap: 10px; flex: 0 1 280px; text-align: center; font-size: 13.5px; color: var(--muted); }
.pilot .act .cta { justify-content: center; }
.site footer { border-top: 1px solid var(--line); }
.site footer .wrap { padding-block: 28px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 14px; color: var(--muted); }
.site footer .wrap div { display: flex; gap: 20px; }
@media (max-width: 600px) { .pilot .box { padding: 28px; } .sample { padding: 24px; } }
.site section.pilot { padding-bottom: 88px; }
.site .brand, .site .brand:hover { color: var(--ink); }

html{scroll-behavior:smooth}