/* Local Material-inspired design system. Every surface uses theme tokens. */
:root {
  color-scheme: light;
  --bg: #f6f8f7;
  --card: #ffffff;
  --surface-low: #eff4f1;
  --surface-high: #e8efeb;
  --surface-hover: #edf4f0;
  --ink: #202b26;
  --muted: #5d6e64;
  --line: #d9e3dc;
  --outline: #a8b8ae;
  --teal: #246b50;
  --on-primary: #ffffff;
  --primary-hover: #195a42;
  --primary-container: #d2eddf;
  --on-primary-container: #174b38;
  --nav: #edf3ef;
  --focus: #358760;
  --success-bg: #e0f1e6;
  --success-ink: #225b3d;
  --warning-bg: #fff0cf;
  --warning-ink: #795617;
  --error-bg: #fde9e8;
  --error-ink: #a23434;
  --info-bg: #e6eff6;
  --info-ink: #325b73;
  --graph-node: #357d60;
  --graph-border: #c4e4d4;
  --graph-edge: #9aafa2;
  --graph-arrow: #627f6e;
  --graph-selected: #a3652b;
  --graph-event: #7771a7;
  --graph-indiz: #a17a24;
  --graph-label: #455e4e;
  --radius: 20px;
  --shadow: 0 2px 7px #17342806, 0 1px 2px #17342804;
  --shadow-raised: 0 5px 18px #1734280d;
  --sidebar-width: 268px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111714;
  --card: #1b2420;
  --surface-low: #17201b;
  --surface-high: #26322b;
  --surface-hover: #293a30;
  --ink: #e2eae3;
  --muted: #acbdb0;
  --line: #344239;
  --outline: #607165;
  --teal: #a5d6b7;
  --on-primary: #123826;
  --primary-hover: #bde8cc;
  --primary-container: #304e3c;
  --on-primary-container: #c9edd5;
  --nav: #17201b;
  --focus: #b1dfc2;
  --success-bg: #254533;
  --success-ink: #b4e0c2;
  --warning-bg: #453921;
  --warning-ink: #edd398;
  --error-bg: #4b2b2b;
  --error-ink: #ffb8b1;
  --info-bg: #263b46;
  --info-ink: #b8d5e8;
  --graph-node: #9cceaf;
  --graph-border: #375d45;
  --graph-edge: #597966;
  --graph-arrow: #90b19b;
  --graph-selected: #f0c27c;
  --graph-event: #c1b7e8;
  --graph-indiz: #dfbd76;
  --graph-label: #c2d2c6;
  --shadow: 0 2px 8px #0000000d;
  --shadow-raised: 0 6px 22px #00000026;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 "Segoe UI Variable", "Segoe UI", system-ui, sans-serif; }
a { color: var(--teal); text-decoration: none; text-underline-offset: 3px; overflow-wrap: anywhere; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font: inherit; }
button, .button {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  min-height: 42px; padding: 10px 19px; border: 1px solid var(--outline); border-radius: 24px;
  background: transparent; color: var(--teal); cursor: pointer; font-size: 13px; font-weight: 600;
  line-height: 1.45; text-align: center; max-width: 100%; text-decoration: none;
  transition: background-color 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}
button:hover, .button:hover { background: var(--surface-hover); text-decoration: none; border-color: var(--teal); }
button:active, .button:active { background: var(--primary-container); }
button.primary, .button.primary { background: var(--teal); color: var(--on-primary); border-color: transparent; }
button.primary:hover, .button.primary:hover { background: var(--primary-hover); box-shadow: var(--shadow-raised); }
button:disabled, .button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.danger { color: var(--error-ink); border-color: var(--error-ink); }
.danger:hover { color: var(--error-ink); background: var(--error-bg); border-color: var(--error-ink); }
.text-button { border-color: transparent; padding: 8px 10px; background: transparent; }
.text-button:hover { border-color: transparent; }
input, textarea, select {
  width: 100%; background: var(--card); border: 1px solid var(--outline); border-radius: 10px;
  padding: 11px 13px; color: var(--ink); min-width: 0; min-height: 46px;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .87; font-weight: 400; }
input:read-only { background: var(--surface-low); }
input:disabled, textarea:disabled, select:disabled { opacity: .6; }
select { cursor: pointer; }
textarea { resize: vertical; line-height: 1.6; }
input[type="checkbox"] { width: 19px; height: 19px; min-height: 0; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--teal); cursor: pointer; }
input[type="hidden"] { display: none; }
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { border-color: var(--teal); outline-width: 2px; outline-offset: 1px; }
label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; min-width: 0; }
label small, label .hint { font-weight: 400; line-height: 1.5; }
label.check { flex-direction: row; align-items: flex-start; gap: 12px; font-weight: 400; padding: 4px 0; }
.icon { width: 21px; height: 21px; flex: 0 0 21px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.app-bar { position: sticky; top: 0; z-index: 8; margin-left: var(--sidebar-width); min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 38px; background: var(--bg); border-bottom: 1px solid var(--line); }
.app-bar-context { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; color: var(--muted); }
.local-chip { border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; font-size: 10px; color: var(--muted); }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
.theme-control { display: flex; flex-direction: row; gap: 7px; align-items: center; color: var(--muted); }
.theme-control .icon { width: 18px; height: 18px; flex-basis: 18px; }
.theme-control select { width: 112px; min-height: 36px; padding: 5px 10px; border-radius: 18px; font-size: 12px; background: var(--surface-low); border-color: var(--line); }
.nav-toggle { display: none; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); background: var(--nav); color: var(--ink); padding: 27px 16px 16px; display: flex; flex-direction: column; overflow-y: auto; z-index: 10; border-right: 1px solid var(--line); scrollbar-width: thin; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: 23px; font-weight: 650; letter-spacing: -.75px; padding: 0 9px; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; color: var(--on-primary); background: var(--teal); font: italic 31px Georgia, serif; width: 44px; height: 44px; border-radius: 15px; }
.brand small { margin-top: 0; font-size: 10px; font-weight: 500; letter-spacing: .65px; color: var(--muted); }
.local { font-size: 11px; display: flex; align-items: center; gap: 8px; margin: 23px 11px 22px; color: var(--muted); }
.sidebar nav a { display: flex; align-items: center; gap: 12px; color: var(--muted); padding: 9px 13px; min-height: 41px; margin: 3px 0; font-size: 12px; font-weight: 500; border-radius: 24px; line-height: 1.4; }
.sidebar nav a:hover { background: var(--surface-high); color: var(--ink); text-decoration: none; }
.sidebar nav a.selected { background: var(--primary-container); color: var(--on-primary-container); font-weight: 650; }
.sidebar nav a .icon { width: 19px; height: 19px; flex-basis: 19px; }
.nav-label { font-size: 10px; font-weight: 650; letter-spacing: .6px; color: var(--muted); margin: 25px 14px 8px; }
.nav-label:first-child { margin-top: 0; }
.sidebar-bottom { margin-top: auto; padding: 20px 4px 0; font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sidebar-bottom form { flex-shrink: 0; }
.sidebar-bottom button { font-size: 11px; }
a.account { display: flex; align-items: center; gap: 8px; min-width: 0; text-decoration: none; border-radius: 8px; padding: 4px; margin: -4px; }
a.account:hover, a.account.selected { background: var(--surface-container); }
.account strong { display: block; max-width: 84px; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.account small { font-size: 10px; margin: 0; }
.account-avatar { width: 32px; height: 32px; display: grid; place-items: center; background: var(--primary-container); color: var(--on-primary-container); font-size: 13px; font-weight: 600; border-radius: 50%; flex-shrink: 0; }
.workspace { margin-left: var(--sidebar-width); padding: 32px 38px 16px; max-width: 1840px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin: 0 0 28px; }
.page-heading > div { min-width: 0; }
.page-heading > .button, .page-heading > .badge { flex-shrink: 0; }
.eyebrow { font-size: 10px; text-transform: uppercase; letter-spacing: 1.7px; font-weight: 650; color: var(--teal); }
h1 { font-size: clamp(27px, 2.7vw, 36px); line-height: 1.2; letter-spacing: -1.1px; margin: 8px 0 12px; font-weight: 600; overflow-wrap: anywhere; }
h2 { font-size: 18px; line-height: 1.4; margin: 0 0 18px; font-weight: 600; letter-spacing: -.35px; overflow-wrap: anywhere; }
h3 { font-size: 15px; line-height: 1.5; margin: 12px 0; font-weight: 600; }
h4 { font-size: 12px; margin: 8px 0; color: var(--muted); }
p { margin: 10px 0 16px; overflow-wrap: anywhere; }
.lead { color: var(--muted); font-size: 14px; margin: 0; }
.record-title { font-size: 30px; }
.hero-search { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; align-items: center; padding: 8px 10px 8px 20px; gap: 14px; border-radius: 30px; margin-bottom: 25px; }
.hero-search:focus-within { border-color: var(--teal); }
.hero-search > span { font-size: 28px; color: var(--teal); line-height: 1; }
.hero-search input { border: 0; background: transparent; padding: 7px 2px; min-height: 40px; }
.hero-search input:focus-visible { outline: none; }
.hero-search button { border-color: transparent; background: var(--primary-container); color: var(--on-primary-container); padding: 9px 23px; }
.hero-search button:hover { border-color: var(--teal); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 24px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--ink); box-shadow: var(--shadow); transition: background-color 140ms, box-shadow 140ms; }
.stat:hover { background: var(--surface-hover); box-shadow: var(--shadow-raised); text-decoration: none; }
.stat > span { font-size: 12px; color: var(--muted); }
.stat strong { font-size: 35px; font-weight: 550; display: block; letter-spacing: -1.5px; margin: 5px 0 8px; line-height: 1.25; }
.stat small { font-size: 11px; color: var(--teal); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); min-width: 0; margin-bottom: 22px; }
.columns { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; }
.tint { background: var(--primary-container); border-color: transparent; color: var(--on-primary-container); padding: 28px; }
.tint .eyebrow, .tint p { color: var(--on-primary-container); }
.tint h2 { font-size: 27px; line-height: 1.3; margin-top: 16px; }
.tint p { font-size: 13px; max-width: 500px; }
.tint .button { background: var(--card); border-color: transparent; color: var(--teal); }
.tint .button:hover { background: var(--surface-high); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 8px; }
.section-heading h2 { margin-bottom: 6px; }
.section-heading > a { font-size: 12px; }
.action-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 17px 0; border-top: 1px solid var(--line); color: var(--ink); }
.action-row:hover { text-decoration: none; color: var(--teal); }
.action-row > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.action-row > span:last-child { flex-shrink: 0; }
.action-row strong { font-weight: 600; font-size: 14px; }
.action-row small { font-size: 11px; margin-top: 4px; }
.job-list-row { flex-wrap: wrap; }
.job-list-link { flex: 1 1 180px; min-width: 0; color: inherit; }
.job-list-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.job-list-actions .button { min-height: 36px; padding: 7px 13px; font-size: 12px; }
.muted, small, .hint { color: var(--muted); }
small { display: block; font-size: 11px; margin-top: 4px; }
.badge { display: inline-flex; border: 1px solid transparent; border-radius: 8px; font-size: 11px; line-height: 1.5; padding: 4px 9px; background: var(--surface-high); color: var(--muted); font-weight: 500; overflow-wrap: anywhere; max-width: 100%; }
.badge.good { background: var(--success-bg); color: var(--success-ink); }
.badge.warning { background: var(--warning-bg); color: var(--warning-ink); }
.badges { display: flex; flex-wrap: wrap; gap: 7px; }
.notice { background: var(--info-bg); color: var(--info-ink); border: 1px solid transparent; border-radius: 16px; padding: 17px 21px; margin-bottom: 22px; font-size: 13px; overflow-wrap: anywhere; }
.notice a { color: inherit; text-decoration: underline; }
.notice.success { background: var(--success-bg); color: var(--success-ink); }
.notice.warning, .release { background: var(--warning-bg); color: var(--warning-ink); }
.notice.error { background: var(--error-bg); color: var(--error-ink); }
label.release { padding: 17px; border-radius: 12px; }
.notice p:last-child { margin-bottom: 0; }
.toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin: 0 0 22px; }
.toolbar > input { flex: 1; min-width: 180px; }
.toolbar > select { width: auto; max-width: 340px; }
.toolbar > label { flex: 1; min-width: 120px; }
.toolbar > label:has([data-entity-picker]) { flex: 2 1 260px; min-width: min(260px, 100%); }
.toolbar > label.check { flex: 0 1 170px; font-size: 12px; align-items: center; margin-bottom: 8px; }
.toolbar > button, .toolbar > .button { min-height: 46px; }
.card > .toolbar:last-child { margin-bottom: 0; }
.table-card { padding: 0; overflow: auto; }
.table-scroll { max-width: 100%; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
thead { text-align: left; background: var(--surface-low); color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .75px; }
th, td { padding: 16px 21px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { white-space: nowrap; font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td:first-child { max-width: 560px; }
tbody tr:hover { background: var(--surface-hover); }
.row-title { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.row-title:hover { color: var(--teal); }
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 18px; font-size: 12px; color: var(--muted); margin: 24px 0; }
.empty { padding: 34px 20px; text-align: center; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 17px; }
.stack > .card { margin-bottom: 0; }
.stack > button { align-self: flex-start; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.wide { grid-column: 1 / -1; }
.actions { display: flex; gap: 12px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.record-layout { display: grid; grid-template-columns: minmax(0, 1fr) 305px; gap: 22px; }
.record-layout aside .card { padding: 21px; }
.record-layout aside h2 { font-size: 15px; }
.record-layout aside .button { margin-top: 10px; font-size: 12px; width: 100%; }
.record-layout aside p { font-size: 12px; }
.back { font-size: 12px; display: inline-block; margin-bottom: 18px; }
dl { margin: 0; }
dt { font-size: 11px; font-weight: 650; color: var(--muted); margin-top: 18px; }
dt:first-child { margin-top: 0; }
dd { margin: 5px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; }
pre { white-space: pre-wrap; word-break: break-word; background: var(--surface-low); color: var(--ink); border-radius: 12px; border: 1px solid var(--line); padding: 17px; font: 12px/1.75 Consolas, monospace; max-height: 500px; overflow: auto; }
code { font-family: Consolas, monospace; font-size: .9em; background: var(--surface-low); border-radius: 4px; padding: 2px 5px; overflow-wrap: anywhere; }
.source-content { font: 14px/1.85 "Segoe UI", sans-serif; max-height: none; background: transparent; border: 0; padding: 0; }
.mono { font-family: Consolas, monospace; font-size: 11px; word-break: break-all; }
.payload { max-height: 580px; }
.evidence, .review-item, .analysis-row { border-top: 1px solid var(--line); padding: 21px 0; }
.evidence:first-of-type, .review-item:first-of-type, .analysis-row:first-of-type { border-top: 0; }
.evidence small { margin-top: 6px; }
blockquote { margin: 15px 0; padding: 8px 0 8px 18px; border-left: 3px solid var(--teal); white-space: pre-wrap; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
details { border-top: 1px solid var(--line); padding: 15px 0; font-size: 13px; }
details:first-child { border-top: 0; }
details:last-child { padding-bottom: 0; }
details[open] > summary { margin-bottom: 18px; }
summary { cursor: pointer; font-weight: 500; overflow-wrap: anywhere; padding: 3px 0; }
summary::marker { color: var(--teal); }
.diff { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.diff > div { min-width: 0; }
.graph-layout { display: grid; grid-template-columns: minmax(0, 1fr) 275px; gap: 20px; }
.graph-card { padding: 0; overflow: hidden; }
.graph-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.graph-top button { font-size: 11px; padding: 6px 12px; min-height: 34px; }
#network { height: 530px; background: var(--surface-low); }
.graph-status { padding: 13px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--graph-node); margin-right: 5px; }
.legend-line { display: inline-block; width: 15px; border-top: 2px dashed var(--graph-indiz); margin: 0 5px 0 15px; }
#graph-inspector { font-size: 13px; align-self: start; }
#graph-inspector a { display: block; margin-top: 12px; }
.dossier-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.dossier-grid .card { margin-bottom: 0; }
.dossier-grid + .card { margin-top: 25px; }
.dossier-grid h2 { margin-top: 10px; }
.dossier-grid a { font-size: 12px; }
.picker-search { margin-top: 4px; padding: 10px; background: var(--surface-low); border: 1px solid var(--line); border-radius: 12px; }
.picker-search input { font-size: 12px; min-height: 39px; }
.picker-results { max-height: 240px; overflow: auto; font-size: 12px; font-weight: 400; color: var(--muted); }
.picker-results:not(:empty) { margin-top: 7px; }
.picker-results button { display: block; width: 100%; text-align: left; font-size: 12px; padding: 9px; border: 0; border-radius: 8px; font-weight: 400; }
.picker-results button:hover { background: var(--primary-container); }
footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); margin-top: 38px; padding: 20px 0; }
.auth-bar { margin: 0; background: transparent; border: 0; padding: 22px 32px; }
.auth-workspace { max-width: 540px; margin: 4vh auto; padding: 25px; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 38px; box-shadow: var(--shadow-raised); }
.auth-card h1 { font-size: 43px; }
.auth-card .lead { margin: 12px 0 27px; }
.auth-card .primary { width: 100%; margin-top: 8px; }
.teal { color: var(--teal); }
.auth-workspace footer { justify-content: center; text-align: center; border: 0; gap: 3px; }
.skip { position: fixed; top: -100px; left: calc(var(--sidebar-width) + 15px); z-index: 20; background: var(--card); border: 1px solid var(--outline); border-radius: 10px; padding: 10px; }
.skip:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.error-page { padding: 42px; }
.error-page .button { margin-top: 20px; }
/* Keep the daily workspace small; details stay one deliberate click away. */
[hidden] { display: none !important; }
.sidebar nav > a { min-height: 47px; font-size: 13px; margin: 5px 0; }
.sidebar .nav-more { margin-top: 23px; padding-top: 18px; }
.nav-more > summary { color: var(--muted); margin: 0 13px; font-size: 12px; }
.nav-more[open] > summary { margin-bottom: 12px; }
.quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 26px; }
.quick-action { display: flex; flex-direction: column; align-items: flex-start; position: relative; gap: 12px; padding: 26px; min-height: 208px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); color: var(--ink); transition: background-color 140ms, border-color 140ms; }
.quick-action:hover { background: var(--surface-hover); border-color: var(--outline); text-decoration: none; }
.quick-action strong { font-size: 18px; letter-spacing: -.3px; font-weight: 600; }
.quick-action > span:not(.quick-icon):not(.quick-arrow) { font-size: 13px; color: var(--muted); max-width: 27em; }
.quick-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--primary-container); color: var(--on-primary-container); }
.quick-arrow { position: absolute; right: 25px; top: 34px; color: var(--teal); }
.compact-card { padding: 22px 26px; }
.compact-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.compact-stats > a { color: var(--muted); font-size: 12px; }
.compact-stats strong { display: block; color: var(--ink); font-size: 24px; font-weight: 550; margin-bottom: 2px; }
.compact-stats > a:hover { color: var(--teal); text-decoration: none; }
.review-prompt { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 23px; border-radius: 17px; margin-bottom: 22px; background: var(--primary-container); color: var(--on-primary-container); font-size: 13px; }
.review-prompt small { color: inherit; }
.review-prompt:hover { text-decoration: none; box-shadow: var(--shadow-raised); }
details.disclosure-card, details.disclosure-card:last-child { padding: 19px 24px; }
.disclosure-card > summary { font-size: 14px; font-weight: 600; padding: 3px 0; }
.disclosure-card[open] > summary { margin-bottom: 22px; }
.stack > .disclosure-card { margin-bottom: 0; }
.profile-actions { margin: -9px 0 26px; }
.simple-record { grid-template-columns: minmax(0, 1fr) 290px; }
.record-layout aside .disclosure-card { padding: 18px 20px; }
.record-layout aside .disclosure-card > summary { font-size: 12px; }
.options { margin: 2px 0; }
.options .toolbar { margin-bottom: 0; }
.options summary, .search-options summary { color: var(--muted); font-size: 12px; }
.options .form-grid { padding-top: 2px; }
.kind-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 25px; }
.kind-tabs > a, .kind-tabs .inline-more > summary { display: inline-block; color: var(--muted); font-size: 12px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 22px; font-weight: 500; }
.kind-tabs a.selected { background: var(--primary-container); border-color: transparent; color: var(--on-primary-container); }
.kind-tabs > a:hover { text-decoration: none; background: var(--surface-high); }
.inline-more { border: 0; padding: 0; position: relative; }
.inline-more > summary::after { content: ' ▾'; }
.inline-more > summary::-webkit-details-marker { display: none; }
.inline-more[open] > summary { margin: 0; }
.inline-more > div { position: absolute; z-index: 6; right: 0; top: calc(100% + 7px); padding: 7px; min-width: 190px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow-raised); }
.inline-more > div > a { display: block; padding: 10px 13px; border-radius: 9px; font-size: 12px; color: var(--ink); }
.inline-more > div > a:hover { background: var(--surface-hover); text-decoration: none; }
.search-form { margin-bottom: 24px; }
.search-form > .toolbar { margin-bottom: 8px; }
.search-options { border: 0; padding-top: 3px; }
.search-options .toolbar { margin-top: 14px; margin-bottom: 0; }
.row-details { border: 0; padding: 7px 0 0; }
.row-details > summary { font-size: 10px; color: var(--muted); font-weight: 400; }
.row-details[open] > summary { margin-bottom: 5px; }
.field-label { display: block; font-size: 13px; font-weight: 600; }
.context-choice > .hint { font-size: 12px; margin-top: 7px; }
.object-picker .picker-results:not(:empty) { padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-low); }
.context-selection { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.context-selection .context-chip { font-size: 11px; min-height: 31px; padding: 5px 11px; border-color: transparent; background: var(--primary-container); color: var(--on-primary-container); }
.context-choice details { padding-top: 11px; border-top: 0; }
.context-choice details > summary { font-size: 11px; color: var(--muted); }
.campaign-overview .section-heading > div { min-width: 0; }
.campaign-switch { display: inline-flex; gap: 10px; align-items: center; white-space: nowrap; border-color: transparent; padding: 9px; }
.switch-track { display: inline-block; width: 43px; height: 25px; border-radius: 18px; background: var(--surface-high); border: 1px solid var(--outline); position: relative; flex-shrink: 0; }
.switch-track::after { content: ''; width: 17px; height: 17px; position: absolute; top: 3px; left: 3px; border-radius: 50%; background: var(--muted); }
.campaign-switch[aria-checked="true"] .switch-track { background: var(--teal); border-color: var(--teal); }
.campaign-switch[aria-checked="true"] .switch-track::after { left: 21px; background: var(--bg); }
.campaign-categories { border: 0; padding: 0; display: grid; gap: 12px; margin: 0; }
.campaign-categories legend { margin-bottom: 12px; font-weight: 600; }
.campaign-topic { margin: 0; padding: 15px 0; }
.campaign-topic > summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.campaign-topic > summary > span:first-child { min-width: 0; }
.campaign-topic small { display: block; color: var(--muted); font-weight: 400; margin-top: 5px; }
.campaign-topic .payload { max-width: 100%; }
.results-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.workspace-start { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 22px; }
.start-card { position: relative; display: flex; flex-direction: column; padding: 30px; margin: 0; overflow: hidden; }
.start-card-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 24px; border-radius: 16px; background: var(--primary-container); color: var(--on-primary-container); }
.start-card-icon .icon { width: 26px; height: 26px; }
.start-card .eyebrow { margin-bottom: 9px; }
.start-card h2 { font-size: clamp(22px, 2.1vw, 29px); letter-spacing: -.65px; line-height: 1.25; margin-bottom: 12px; max-width: 18em; }
.start-card p { color: var(--muted); font-size: 13px; margin: 0 0 23px; max-width: 35em; }
.start-network { background: var(--surface-low); border-color: var(--outline); }
.start-network .start-card-icon { background: var(--teal); color: var(--on-primary); }
.start-form { margin-top: auto; gap: 15px; }
.start-form label { font-size: 12px; }
.start-form input { font-size: 13px; }
.start-form button { min-height: 44px; }
.start-form button > span { margin-left: 6px; }
.start-card-bottom { display: flex; justify-content: space-between; gap: 9px 15px; flex-wrap: wrap; margin-top: 23px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.start-card-bottom a { font-weight: 600; }
.workspace-continue { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 25px; }
.continue-action { display: flex; align-items: center; gap: 14px; color: var(--ink); border: 1px solid var(--line); border-radius: 17px; padding: 18px 21px; background: var(--card); }
.continue-action:hover { background: var(--surface-hover); text-decoration: none; border-color: var(--outline); }
.continue-icon { color: var(--teal); display: flex; flex-shrink: 0; }
.continue-action > span:nth-child(2) { min-width: 0; flex: 1; }
.continue-action > span:last-child { color: var(--teal); flex-shrink: 0; }
.continue-action strong { font-size: 14px; font-weight: 600; }
.continue-action small { font-size: 11px; }
.disclosure-card > .compact-stats { margin-bottom: 22px; }
.research-mode { display: flex; flex-wrap: wrap; gap: 9px; border: 0; padding: 0; margin: 0; min-width: 0; }
.research-mode legend { margin-bottom: 10px; font-weight: 600; font-size: 13px; }
.research-mode label.check { gap: 8px; align-items: center; padding: 9px 15px; border: 1px solid var(--line); border-radius: 23px; font-size: 12px; cursor: pointer; }
.research-mode label.check:hover { background: var(--surface-hover); }
.research-mode label.check:has(input:checked) { background: var(--primary-container); color: var(--on-primary-container); border-color: var(--primary-container); }
.research-mode input[type="radio"] { width: 15px; height: 15px; min-height: 0; margin: 0; accent-color: var(--teal); }
@media (max-width: 1150px) {
  .start-card { padding: 25px; }
  .start-card h2 { font-size: 24px; }
  .start-card-bottom { flex-direction: column; }
}
@media (max-width: 720px) {
  .workspace-start, .workspace-continue { grid-template-columns: 1fr; gap: 15px; }
  .start-card { padding: 24px; }
  .start-card-icon { margin-bottom: 19px; }
  .start-card-bottom { flex-direction: row; }
  .continue-action { padding: 17px 20px; }
}
@media (max-width: 600px) {
  .campaign-overview .section-heading { flex-direction: column; }
  .campaign-topic > summary { flex-direction: column; gap: 8px; }
  .campaign-topic > summary strong { overflow-wrap: anywhere; }
}
@media (min-width: 1700px) {
  .workspace { padding: 40px 58px 20px; }
  .app-bar { padding-left: 58px; padding-right: 58px; }
  .stats { gap: 23px; }
}
@media (max-width: 1250px) {
  :root { --sidebar-width: 246px; }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .workspace { padding: 28px 25px 16px; }
  .app-bar { padding-left: 25px; padding-right: 25px; }
  .record-layout, .graph-layout { grid-template-columns: 1fr; }
  .record-layout > aside { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 20px; }
  .columns { grid-template-columns: 1fr; gap: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .dossier-grid { grid-template-columns: 1fr 1fr; }
  .page-heading { align-items: flex-start; }
  th, td { padding: 14px 16px; }
}
@media (max-width: 900px) {
  .app-bar { margin: 0; padding: 12px 20px; min-height: 65px; }
  .app-bar-context { margin-right: auto; }
  .authenticated .app-bar-context > span:not(.status-dot) { display: none; }
  .sidebar { position: static; width: auto; max-height: 70vh; border: 0; border-bottom: 1px solid var(--line); padding: 22px; }
  .sidebar nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .sidebar .nav-more { grid-column: 1 / -1; margin-top: 14px; }
  .nav-more[open] { display: grid; grid-template-columns: 1fr 1fr; }
  .nav-more > summary { grid-column: 1 / -1; }
  .nav-label { grid-column: 1 / -1; }
  .sidebar .brand, .sidebar .local { display: none; }
  html[data-enhanced="true"] .sidebar { display: none; }
  html[data-enhanced="true"] body[data-nav-open="true"] .sidebar { display: flex; }
  html[data-enhanced="true"] .nav-toggle { display: inline-flex; padding: 7px 13px; min-height: 39px; border-color: transparent; color: var(--ink); }
  html[data-enhanced="true"] .nav-toggle[aria-expanded="true"] { background: var(--primary-container); color: var(--on-primary-container); }
  .workspace { margin: 0; padding: 28px 24px 16px; }
  .skip { left: 14px; }
}
@media (max-width: 600px) {
  .app-bar { padding: 11px 14px; gap: 12px; }
  .app-bar-context { font-size: 10px; }
  .authentication .app-bar-context .status-dot, .authentication .local-chip { display: none; }
  .theme-control { gap: 5px; }
  .theme-control select { width: 100px; }
  .sidebar { padding: 14px; }
  .sidebar nav { gap: 0 5px; }
  .sidebar nav a { padding: 10px; font-size: 11px; gap: 8px; }
  .sidebar nav a .icon { width: 17px; height: 17px; flex-basis: 17px; }
  .workspace { padding: 25px 16px 16px; }
  .page-heading { display: block; margin-bottom: 23px; }
  .page-heading > .button, .page-heading > .badge { margin-top: 16px; }
  h1 { font-size: 28px; }
  .record-title { font-size: 26px; }
  .card { padding: 20px; border-radius: 17px; }
  .table-card, .graph-card { padding: 0; }
  .form-grid, .diff, .dossier-grid, .record-layout > aside { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
  .stat { padding: 17px; border-radius: 17px; }
  .stat > span { font-size: 11px; }
  .stat strong { font-size: 30px; }
  .stats { gap: 11px; }
  .quick-actions { grid-template-columns: 1fr; gap: 12px; }
  .quick-action { min-height: 0; padding: 19px 22px 19px 77px; gap: 5px; border-radius: 18px; }
  .quick-icon { position: absolute; left: 20px; top: 23px; width: 38px; height: 38px; }
  .quick-action strong { font-size: 16px; padding-right: 12px; }
  .quick-action > span:not(.quick-icon):not(.quick-arrow) { font-size: 12px; }
  .quick-arrow { top: 19px; right: 20px; }
  .compact-stats { grid-template-columns: 1fr 1fr; gap: 17px; }
  .compact-stats strong { font-size: 23px; }
  .compact-stats > a { font-size: 11px; }
  .profile-actions { gap: 9px; }
  .profile-actions .button { font-size: 12px; padding: 9px 15px; }
  details.disclosure-card, details.disclosure-card:last-child { padding: 17px 20px; }
  .kind-tabs { gap: 6px; }
  .kind-tabs > a, .kind-tabs .inline-more > summary { padding: 7px 11px; font-size: 11px; }
  .hero-search { padding-left: 13px; gap: 8px; }
  .hero-search button { padding: 8px 14px; }
  .hero-search input { font-size: 12px; }
  .section-heading { align-items: flex-start; gap: 12px; }
  .section-heading h2 { font-size: 17px; }
  .toolbar > * { max-width: 100%; }
  .toolbar > input { min-width: 150px; }
  .action-row { align-items: flex-start; gap: 10px; }
  .action-row > .badge { max-width: 120px; }
  .auth-workspace { margin-top: 1vh; padding: 20px 16px; }
  .auth-card { padding: 28px 23px; }
  .auth-card h1 { font-size: 37px; }
  .graph-top { padding: 12px; }
  #network { height: 420px; }
  .notice { padding: 16px; }
  footer { font-size: 10px; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  :root { color-scheme: light; --bg: #fff; --card: #fff; --surface-low: #fff; --ink: #000; --muted: #333; --line: #bbb; --teal: #174b38; }
  .sidebar, .app-bar, .skip, .actions, button, .button { display: none !important; }
  .workspace { margin: 0; padding: 0; }
  .card { box-shadow: none; break-inside: avoid; }
  pre, .payload { max-height: none; }
}
