:root {
  color-scheme: light;
  --paper: #f7f6f2;
  --surface: #fffefa;
  --ink: #202620;
  --muted: #7d827a;
  --line: #e5e4dc;
  --line-dark: #d3d3c9;
  --green: #31463a;
  --green-soft: #e9eee9;
  --amber: #966b2d;
  --amber-soft: #f5efe2;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Literata", Georgia, serif;
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); min-width: 320px; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.app-shell { min-height: 100vh; }
.sidebar { width: 238px; background: #f2f1eb; border-right: 1px solid var(--line); padding: 27px 18px 20px; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; z-index: 5; }
.brand { display: flex; align-items: center; gap: 11px; margin: 0 0 56px 2px; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; background: var(--green); color: #f7f5ed; border-radius: 9px; font-family: var(--serif); font-size: 15px; letter-spacing: -.08em; padding-right: 2px; }
.brand-name { font-size: 12px; line-height: 1.3; font-weight: 600; letter-spacing: -.025em; }
.workspace-label, .eyebrow, .panel-label, .subsection-heading, .aside-heading, .section-kicker, .node-label, .dialog-kicker { font-family: var(--mono); font-size: 9px; letter-spacing: .095em; }
.workspace-label { color: #999b92; font-size: 8px; margin: 0 0 14px 7px; white-space: nowrap; }
.primary-nav { display: grid; gap: 3px; }
.nav-link { height: 39px; display: flex; align-items: center; gap: 10px; padding: 0 10px; color: #71766f; font-size: 12px; border-radius: 5px; transition: background .18s, color .18s; }
.nav-link:hover { background: #e9e8e1; color: var(--ink); }
.nav-link.active { color: var(--green); background: #e5e9e2; font-weight: 600; }
.nav-icon { width: 16px; text-align: center; font-size: 17px; font-weight: 400; color: #899087; }
.nav-link.active .nav-icon { color: var(--green); }
.nav-current, .nav-count { margin-left: auto; color: #999d94; font: 9px var(--mono); }
.nav-current { color: var(--green); }
.sidebar-bottom { margin-top: auto; }
.corpus-status { border: 1px solid #dfded5; background: rgba(255,255,255,.32); padding: 12px 10px; display: flex; gap: 9px; align-items: flex-start; border-radius: 5px; }
.status-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #a1aaa0; margin-top: 4px; flex: none; }
.status-dot-amber { background: #c09754; box-shadow: 0 0 0 3px #f3eadb; }
.corpus-status strong { display: block; font-size: 10px; font-weight: 600; }
.corpus-status small { display: block; color: var(--muted); font: 9px var(--mono); margin-top: 5px; }
.independent-note { font-size: 9px; line-height: 1.55; color: #878a81; margin: 13px 3px 19px; }
.sidebar-version { display: flex; justify-content: space-between; color: #989b92; font: 8px var(--mono); letter-spacing: .08em; border-top: 1px solid #dfded6; padding: 13px 3px 0; }
.main-area { min-height: 100vh; margin-left: 238px; }
.topbar { height: 57px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 42px; background: rgba(250,249,245,.84); }
.breadcrumbs { display: flex; align-items: center; gap: 11px; color: #9a9d93; font: 9px var(--mono); letter-spacing: .06em; }
.breadcrumbs span:last-child { color: #555d54; }
.breadcrumb-slash { color: #c6c5bc; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.scope-pill { display: inline-flex; align-items: center; gap: 7px; height: 25px; padding: 0 9px; background: #edf0e8; color: #53634f; border: 1px solid #e3e7dc; border-radius: 3px; font-size: 10px; }
.scope-pill i { color: #a0a598; font-style: normal; }
.scope-dot { width: 5px; height: 5px; background: #74846c; border-radius: 50%; }
.topbar-divider { height: 17px; width: 1px; background: var(--line); }
.region-label { color: #8c9088; font: 8px var(--mono); letter-spacing: .06em; }
.page-root { max-width: 1410px; padding: 47px 42px 72px; margin: auto; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin: 0 0 36px; }
.eyebrow { color: #8b9187; font-size: 8px; margin-bottom: 13px; }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(35px, 4vw, 52px); letter-spacing: -.055em; line-height: 1.08; margin: 0; color: #242a23; }
.page-heading p { color: #777d73; font-size: 12px; line-height: 1.6; margin: 11px 0 0; }
.verified-counter, .source-count { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
.counter-number { font: 32px var(--serif); color: #6d766a; }
.verified-counter > span:last-child, .source-count > span { color: #858a81; font: 8px/1.5 var(--mono); letter-spacing: .08em; }
.ask-layout { display: grid; grid-template-columns: minmax(480px, 1.7fr) minmax(245px, .75fr); gap: 43px; align-items: start; }
.ask-main { min-width: 0; }
.panel-label { display: flex; align-items: center; gap: 8px; color: #6d766b; font-size: 9px; letter-spacing: .08em; }
.panel-index { color: #a0a49a; }
.panel-label-muted { color: #9ca096; margin-left: auto; font-size: 8px; }
.ask-form { background: var(--surface); border: 1px solid #dcdcd2; border-radius: 5px; margin-top: 13px; box-shadow: 0 4px 14px rgba(41,47,38,.025); }
.ask-form:focus-within { border-color: #889889; box-shadow: 0 0 0 3px rgba(80,105,84,.08); }
.ask-form textarea { display: block; width: 100%; min-height: 90px; resize: vertical; border: 0; outline: 0; background: transparent; padding: 19px 19px 7px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.ask-form textarea::placeholder { color: #a4a79f; }
.ask-form-footer { min-height: 48px; border-top: 1px solid #eeede6; padding: 8px 10px 8px 16px; display: flex; align-items: center; justify-content: space-between; }
.input-hint { display: flex; align-items: center; gap: 6px; color: #9da096; font-size: 9px; }
.keycap { border: 1px solid #e2e1d8; background: #f8f7f2; border-radius: 3px; min-width: 18px; height: 18px; display: grid; place-items: center; font: 10px var(--mono); }
.button-primary, .button-secondary { border: 0; border-radius: 3px; background: var(--green); color: #fffefa; padding: 9px 12px; font-size: 10px; cursor: pointer; transition: background .18s, transform .18s; }
.button-primary:hover { background: #24382c; transform: translateY(-1px); }
.button-primary span { margin-left: 11px; font-size: 13px; }
.prompt-list { margin-top: 29px; }
.subsection-heading { display: flex; justify-content: space-between; color: #92968d; font-size: 8px; margin-bottom: 8px; }
.mono { font-family: var(--mono); font-size: 8px; letter-spacing: .045em; }
.muted { color: #a1a49c; }
.suggestion { border: 0; border-bottom: 1px solid #e8e7df; width: 100%; padding: 11px 2px; display: grid; grid-template-columns: 27px 1fr 20px; align-items: center; gap: 8px; text-align: left; background: transparent; color: #555d53; cursor: pointer; font-size: 11px; transition: color .15s, padding .15s; }
.suggestion:first-of-type { border-top: 1px solid #e8e7df; }
.suggestion:hover { color: var(--green); padding-left: 6px; }
.suggestion-index { font: 8px var(--mono); color: #a5a99e; }
.suggestion-arrow { color: #a4a99f; opacity: 0; text-align: right; transition: opacity .15s; }
.suggestion:hover .suggestion-arrow { opacity: 1; }
.answer-panel { background: #f1f1eb; border: 1px solid #e4e3db; border-radius: 5px; margin-top: 28px; padding: 17px 18px 0; }
.answer-topline { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.status-badge { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; border-radius: 2px; padding: 5px 7px; font: 8px var(--mono); letter-spacing: .045em; }
.badge-outline { border: 1px solid #d6cbb4; color: #8a6a37; background: #f7f4eb; }
.badge-amber { border: 1px solid #ebdfca; color: #987340; background: #f8f2e7; }
.badge-current { border: 1px solid #d4e0d3; color: #527050; background: #edf3eb; }
.badge-superseded { border: 1px solid #e3d9d5; color: #8e6b61; background: #f4eeeb; }
.answer-title { font-family: var(--serif); color: #343b33; font-size: 20px; letter-spacing: -.025em; margin-top: 17px; }
.answer-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; color: #8a8e85; font: 8px var(--mono); }
.answer-meta > span:first-child { display: flex; align-items: center; gap: 6px; }
.meta-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #b48a4b; }
.answer-rule { height: 1px; background: #dfdfd6; margin: 16px 0; }
.answer-body-grid { display: grid; grid-template-columns: 1fr 160px; gap: 25px; }
.section-kicker { display: flex; align-items: center; justify-content: space-between; color: #8b9086; font-size: 8px; letter-spacing: .07em; }
.determination { font-family: var(--serif); font-size: 15px; line-height: 1.55; color: #333c33; margin: 8px 0 15px; }
.answer-secondary { color: #777e74; font-size: 10px; line-height: 1.6; margin: 7px 0 0; }
.answer-citation-column { border-left: 1px solid #ddddd5; padding-left: 14px; }
.no-evidence { display: flex; gap: 8px; align-items: center; color: #96998f; font-size: 9px; line-height: 1.5; margin: 17px 0 14px; }
.no-evidence-icon { font: 17px var(--serif); color: #b29a70; }
.text-link { border: 0; padding: 0; background: none; color: #52684e; font-size: 9px; cursor: pointer; }
.text-link span { margin-left: 5px; }
.answer-bottom { border-top: 1px solid #dfdfd6; margin-top: 18px; min-height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #989b91; font: 8px var(--mono); }
.answer-state-note { display: flex; align-items: center; gap: 6px; }
.state-mark { border: 1px solid #c8b999; width: 13px; height: 13px; display: inline-grid; place-items: center; border-radius: 50%; color: #90774d; font-size: 8px; }
.answer-disclaimer { letter-spacing: .08em; }
.api-loading { min-height: 120px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #788273; font-size: 10px; }
.loading-mark { color: #8a9a83; font-size: 18px; animation: loading-pulse 1.2s ease-in-out infinite; }
@keyframes loading-pulse { 50% { opacity: .35; transform: translateY(-2px); } }
.backend-error { border-top: 1px solid #dfdfd6; margin-top: 17px; padding: 17px 0 20px; }
.backend-error strong { color: #695f4d; font-size: 11px; }
.backend-error p { color: #737a70; font-size: 10px; line-height: 1.55; margin: 8px 0; }
.backend-error > span { color: #9b9c92; font: 8px var(--mono); }
.backend-states { display: flex; flex-wrap: wrap; gap: 5px; margin: -5px 0 15px; }
.citation-heading { border-top: 1px solid #dfdfd6; padding-top: 13px; }
.citation-list { display: grid; gap: 8px; margin-top: 8px; }
.citation-card { border: 1px solid #dfdfd6; background: #f8f8f3; padding: 11px; border-radius: 3px; }
.citation-card-top { display: flex; align-items: center; gap: 7px; }
.citation-number { color: #9da197; font: 8px var(--mono); }
.citation-card-top .status-badge { padding: 3px 5px; font-size: 7px; }
.citation-authority { color: #8b9085; font: 8px var(--mono); }
.citation-title { display: inline-block; color: #465744; font: 13px var(--serif); margin-top: 9px; }
.citation-title:hover { text-decoration: underline; }
.citation-title span { color: #8d9588; font: 11px var(--sans); }
.citation-version { color: #9b9e95; font: 7px var(--mono); margin-top: 4px; }
.citation-card p { color: #687166; font: 10px/1.6 var(--serif); margin: 9px 0 0; white-space: pre-wrap; }
.backend-limitations { border-top: 1px solid #dfdfd6; padding: 13px 0 2px; margin-top: 13px; }
.backend-limitations ul { color: #84897f; font-size: 9px; line-height: 1.6; padding-left: 16px; margin: 7px 0; }
.backend-determination .determination { margin-bottom: 12px; }
.ask-aside { padding-top: 0; border-left: 1px solid var(--line); padding-left: 23px; }
.aside-section + .aside-section { margin-top: 31px; }
.aside-heading { display: flex; align-items: center; justify-content: space-between; color: #868b81; font-size: 8px; margin: 2px 0 12px; }
.aside-heading a { font: 8px var(--mono); color: #858c80; }
.aside-heading a span { font-size: 12px; margin-left: 3px; }
.movement-card { display: block; text-align: left; border: 1px solid #e4e2d7; background: #fbfaf6; padding: 13px 13px 11px; width: 100%; cursor: pointer; border-radius: 3px; }
.movement-card:hover { border-color: #bfc8bb; }
.movement-kind { color: #9a8a6b; font: 8px var(--mono); letter-spacing: .055em; }
.movement-kind i { font-style: normal; color: #b0aa9e; }
.movement-card strong { display: block; font: 15px var(--serif); margin: 9px 0 12px; color: #303a31; }
.movement-foot { display: flex; align-items: center; justify-content: space-between; gap: 7px; color: #999c91; font-size: 8px; }
.movement-foot .status-badge { font-size: 7px; padding: 4px 5px; }
.empty-movement { display: flex; gap: 9px; align-items: center; color: #a0a398; font-size: 9px; line-height: 1.5; margin: 13px 0 0; }
.empty-line { height: 1px; width: 17px; background: #cfcec4; flex: none; }
.empty-movement p { margin: 0; }
.topic-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.topic-list span { color: #747b70; background: #efeee8; border: 1px solid #e9e8df; border-radius: 2px; padding: 7px 8px; font-size: 8px; line-height: 1.35; }
.aside-footnote { margin: 10px 0 0; color: #a0a197; font-size: 9px; line-height: 1.5; }
.residency-note { border-top: 1px solid var(--line); margin-top: 28px; padding: 14px 0 0; display: flex; gap: 11px; color: #788375; }
.residency-icon { font-size: 17px; }
.residency-note strong { font-size: 9px; font-weight: 600; }
.residency-note p { font-size: 9px; line-height: 1.55; color: #999b92; margin: 4px 0 0; }

/* Changes */
.review-banner { display: flex; align-items: center; gap: 12px; background: #f4f0e7; border: 1px solid #e8deca; padding: 13px 15px; margin: -14px 0 27px; border-radius: 3px; color: #78613d; }
.review-banner-icon { width: 19px; height: 19px; flex: none; border: 1px solid #c3ab82; border-radius: 50%; display: grid; place-items: center; font: 10px var(--mono); }
.review-banner strong { display: block; font-size: 10px; font-weight: 600; }
.review-banner p { color: #8b806a; font-size: 9px; line-height: 1.5; margin: 4px 0 0; }
.review-banner > .mono { margin-left: auto; color: #a29170; white-space: nowrap; }
.change-workspace { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(440px, 1.6fr); border: 1px solid var(--line); background: var(--surface); min-height: 510px; }
.change-list-column { border-right: 1px solid var(--line); }
.list-toolbar { height: 43px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid var(--line); color: #8b8f85; font: 8px var(--mono); letter-spacing: .055em; }
.list-toolbar b { color: #9b8a67; background: #f2eddf; border-radius: 10px; padding: 3px 5px; font-weight: 400; margin-left: 4px; }
.change-row { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: #f7f6f1; padding: 15px 11px; display: grid; grid-template-columns: 56px 1fr 43px; gap: 9px; text-align: left; cursor: pointer; }
.change-row.selected { background: #f1f2eb; box-shadow: inset 2px 0 var(--green); }
.change-date { color: #8d9187; font: 14px var(--serif); }
.change-date small { display: block; color: #aba99d; font: 7px var(--mono); margin-top: 5px; }
.change-row-main { min-width: 0; }
.change-issuer { display: block; color: #97998f; font: 7px var(--mono); line-height: 1.5; letter-spacing: .04em; }
.change-row-main strong { display: block; color: #394136; font: 14px var(--serif); margin-top: 5px; }
.change-subtitle { display: block; color: #989b91; font-size: 8px; margin-top: 5px; }
.relevance-pill { align-self: center; color: #9a7440; background: #f4efe3; border: 1px solid #ebe2cf; padding: 5px 3px; text-align: center; font: 7px/1.5 var(--mono); }
.relevance-pill small { color: #b0a48e; font-size: 6px; }
.queue-empty { display: flex; gap: 10px; align-items: flex-start; padding: 18px 14px; color: #a1a398; font-size: 9px; line-height: 1.5; }
.queue-empty > span { color: #a2a798; font-size: 15px; }
.queue-empty p { margin: 1px 0 0; }
.change-detail { padding: 22px 25px; }
.detail-eyebrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #aaa99e; }
.detail-eyebrow .status-badge { font-size: 7px; }
.change-detail h2 { font: 27px var(--serif); letter-spacing: -.035em; color: #333a31; margin: 21px 0 9px; }
.change-detail h2 span { color: #969a90; font-size: 20px; }
.detail-lede { color: #7b8077; max-width: 520px; font-size: 10px; line-height: 1.65; margin: 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 27px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 26px 0 19px; padding: 19px 0; }
.detail-grid p { color: #737b71; font-size: 10px; line-height: 1.55; margin: 8px 0 0; }
.detail-footer { display: flex; justify-content: space-between; align-items: flex-end; }
.detail-footer > div > strong { display: block; color: #666f63; font-size: 10px; margin-top: 5px; font-weight: 500; }
.button-secondary { border: 1px solid #d9ddd4; background: #fbfcf8; color: #51614f; }
.button-secondary:hover:not(:disabled) { background: #edf0e9; }
.button-secondary span { margin-left: 8px; }
.empty-detail { min-height: 240px; display: flex; align-items: flex-start; justify-content: center; flex-direction: column; padding: 22px 0; }
.empty-detail h2 { color: #586153; font: 23px var(--serif); margin: 12px 0 5px; }
.empty-detail p { max-width: 420px; color: #8a8f85; font-size: 10px; line-height: 1.6; }
.diff-block { border-top: 1px solid var(--line); padding-top: 14px; margin: 0 0 18px; }
.diff-content { background: #f4f3ee; max-height: 180px; overflow: auto; margin-top: 8px; padding: 8px; color: #7a8077; font: 8px/1.6 var(--mono); }
.diff-line { white-space: pre-wrap; overflow-wrap: anywhere; }
.diff-add { color: #557551; background: #edf4eb; }
.diff-remove { color: #956d61; background: #f4ece8; }

/* Impact */
.impact-toolbar { display: flex; justify-content: space-between; align-items: flex-end; margin: -5px 0 17px; }
.impact-toolbar select { display: block; margin-top: 7px; min-width: 260px; }
select { color: #697166; border: 1px solid #deded5; background: #fffefa; border-radius: 3px; padding: 9px 28px 9px 10px; font-size: 9px; outline: none; }
select:focus, input:focus { border-color: #899889; }
.potential-label { color: #9a7a49; display: inline-flex; align-items: center; gap: 7px; font: 8px var(--mono); letter-spacing: .06em; }
.potential-dot { background: #b99559; border-radius: 50%; width: 6px; height: 6px; }
.impact-canvas { border: 1px solid var(--line); background: #fbfaf6; padding: 22px; }
.node-label { display: block; color: #92968c; font-size: 8px; }
.source-node { margin-top: 9px; padding: 11px 13px; display: flex; align-items: center; gap: 11px; max-width: 410px; border: 1px solid #e8dfcc; background: #f7f3e9; border-radius: 3px; }
.node-symbol { width: 29px; height: 29px; border: 1px solid #d6c6a7; color: #937749; display: grid; place-items: center; font: 15px var(--serif); }
.source-node strong { display: block; font: 13px var(--serif); color: #4d4d3f; }
.source-node small { display: block; color: #9b927d; font-size: 8px; margin-top: 4px; }
.node-status { margin-left: auto; color: #a78b5e; font: 7px var(--mono); }
.impact-connector { display: flex; flex-direction: column; align-items: center; width: min(410px, 100%); height: 67px; justify-content: center; color: #adaea4; }
.impact-connector > span { width: 1px; flex: 1; background: #deded5; }
.impact-connector i { padding: 6px 0; font: normal 7px var(--mono); letter-spacing: .06em; }
.impact-groups { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 9px; gap: 9px; }
.impact-group { min-height: 89px; border: 1px dashed #dcddd4; background: rgba(255,255,255,.48); padding: 12px; display: flex; flex-direction: column; }
.impact-group > span { color: #878d83; font: 7px var(--mono); letter-spacing: .04em; }
.impact-group b { color: #a6a99f; font: 17px var(--serif); margin-top: 8px; font-weight: 400; }
.impact-group small { color: #aaa99e; font-size: 8px; margin-top: auto; }
.impact-private { background: #f1f0ea; border: 1px solid #e5e4dc; margin-top: 20px; padding: 15px; }
.private-heading { display: flex; justify-content: space-between; align-items: center; }
.private-sub { display: block; color: #999c93; font-size: 8px; margin-top: 4px; }
.lock-icon { font-size: 19px; color: #899184; }
.private-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid #e2e1d8; border-left: 1px solid #e2e1d8; margin-top: 13px; }
.private-grid > div { min-height: 38px; border-right: 1px solid #e2e1d8; border-bottom: 1px solid #e2e1d8; display: flex; gap: 7px; align-items: center; padding: 0 9px; color: #71796f; font-size: 8px; }
.lock-mini { color: #92998e; font-size: 12px; }
.private-grid em { margin-left: auto; color: #aaa99e; font: normal 7px var(--mono); }
.institutional-cta { display: flex; justify-content: space-between; color: #66765f; padding-top: 13px; font-size: 9px; }
.impact-note { color: #96998f; font-size: 9px; line-height: 1.5; margin: 13px 0 0; }
.impact-note span { color: #8c9387; font: 8px var(--mono); margin-right: 5px; }
.impact-empty { grid-column: 1 / -1; padding: 15px; border: 1px dashed #dcddd4; color: #93978d; font-size: 9px; line-height: 1.5; background: rgba(255,255,255,.45); }
.impact-detail-list { grid-column: 1 / -1; border: 1px solid #e1e1d8; background: #fffefa; }
.impact-detail-list > div { padding: 10px 12px; border-bottom: 1px solid #efeee8; }
.impact-detail-list > div:last-child { border-bottom: 0; }
.impact-detail-list strong { display: inline-block; color: #596454; font: 12px var(--serif); }
.impact-detail-list span { color: #999c93; font: 7px var(--mono); margin-left: 9px; }
.impact-detail-list p { color: #82877e; font-size: 9px; line-height: 1.5; margin: 5px 0 0; }

/* Sources */
.source-count strong { font: 31px var(--serif); color: #6e786b; }
.source-count i { color: #9a9b91; font-style: normal; }
.source-disclaimer { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #e8deca; background: #f4f0e7; border-radius: 3px; margin: -12px 0 21px; color: #957644; }
.source-disclaimer > span:first-child { width: 17px; height: 17px; border: 1px solid #c8af83; border-radius: 50%; display: grid; place-items: center; font: 10px var(--serif); flex: none; }
.source-disclaimer p { color: #827761; font-size: 9px; line-height: 1.5; margin: 0; }
.source-disclaimer strong { color: #665f4f; font-weight: 600; }
.source-disclaimer .mono { margin-left: auto; white-space: nowrap; color: #a19172; }
.filter-bar { display: flex; gap: 7px; align-items: center; margin-bottom: 13px; }
.filter-bar select { padding-top: 8px; padding-bottom: 8px; font-size: 8px; }
.search-box { flex: 1; max-width: 260px; display: flex; align-items: center; gap: 7px; height: 32px; border: 1px solid #deded5; background: #fffefa; padding: 0 8px; border-radius: 3px; color: #9da096; }
.search-box input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: #60685e; font-size: 9px; }
.search-box input::placeholder { color: #a6a79d; }
.source-table { border: 1px solid var(--line); background: var(--surface); }
.table-heading, .source-row { display: grid; grid-template-columns: minmax(200px, 2fr) minmax(165px, 1.4fr) minmax(75px, .7fr) minmax(105px, .85fr) minmax(112px, .85fr); gap: 13px; align-items: center; }
.table-heading { min-height: 37px; padding: 0 13px; border-bottom: 1px solid var(--line); color: #96998f; font: 7px var(--mono); letter-spacing: .055em; }
.table-heading i { color: #aaa99e; font-style: normal; margin-left: 4px; }
.source-row { border: 0; border-bottom: 1px solid #efeee8; width: 100%; text-align: left; background: transparent; padding: 12px 13px; cursor: pointer; }
.source-row:hover { background: #f8f8f2; }
.source-name-cell strong { display: block; color: #3f493e; font: 13px var(--serif); }
.source-name-cell small { display: block; color: #9a9d93; font-size: 8px; margin-top: 4px; }
.source-authority { color: #777f74; font-size: 8px; line-height: 1.45; }
.source-jurisdiction { color: #747c70; font-size: 9px; }
.source-row .status-badge { justify-self: start; font-size: 7px; padding: 4px 5px; }
.source-verified { color: #aaa99f; font: 7px var(--mono); white-space: nowrap; }
.source-verified span { color: #8b9286; margin-left: 6px; font-size: 10px; }
.source-table-footer { display: flex; justify-content: space-between; color: #989b92; font-size: 8px; padding: 12px 2px; }
.source-table-footer b { color: #656e63; font-weight: 500; }
.no-results { padding: 25px; text-align: center; color: #999c92; font-size: 10px; }
.hidden { display: none !important; }

/* Source profile */
.detail-dialog { border: 1px solid #dcdcd3; border-radius: 5px; background: var(--surface); color: var(--ink); width: min(510px, calc(100% - 28px)); max-height: min(690px, calc(100% - 28px)); padding: 28px; box-shadow: 0 22px 80px rgba(34,39,33,.18); }
.detail-dialog::backdrop { background: rgba(28,33,28,.24); backdrop-filter: blur(2px); }
.dialog-close { position: absolute; top: 13px; right: 15px; border: 0; background: none; color: #8e9389; font-size: 22px; cursor: pointer; }
.dialog-kicker { color: #899184; }
.dialog-kicker span { color: #aaa99d; }
.detail-dialog h2 { font: 27px/1.2 var(--serif); letter-spacing: -.035em; color: #333b32; margin: 17px 25px 5px 0; }
.dialog-issuer { color: #858b80; font-size: 10px; margin: 0; }
.dialog-state { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding: 17px 0; margin: 0 0 16px; color: #858a81; font-size: 9px; }
.dialog-state .status-badge { font-size: 7px; }
.dialog-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.dialog-fields > div > span, .dialog-section > span { display: block; color: #999c92; font: 7px var(--mono); letter-spacing: .06em; }
.dialog-fields strong { display: block; color: #666f64; font-size: 9px; font-weight: 500; margin-top: 5px; }
.dialog-section { border-top: 1px solid var(--line); margin-top: 17px; padding-top: 14px; }
.topic-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.topic-chips span { background: #eff0e9; color: #747e71; padding: 5px 7px; border-radius: 2px; font-size: 8px; }
.dialog-note { background: #f5f3ec; border: 1px solid #ebe9df; padding: 11px; margin-top: 17px; }
.dialog-note strong { color: #747a70; font-size: 9px; font-weight: 600; }
.dialog-note p { color: #898d83; font-size: 9px; line-height: 1.55; margin: 5px 0 0; }
.dialog-action { width: 100%; margin-top: 15px; color: #9a9b91; font-size: 8px; cursor: not-allowed; }
.source-original-link { display: flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1080px) {
  .sidebar { width: 208px; padding-left: 13px; padding-right: 13px; }
  .main-area { margin-left: 208px; }
  .topbar { padding: 0 28px; }
  .page-root { padding: 38px 28px 60px; }
  .ask-layout { grid-template-columns: minmax(420px, 1.5fr) minmax(210px, .7fr); gap: 25px; }
  .ask-aside { padding-left: 17px; }
  .table-heading, .source-row { grid-template-columns: minmax(170px, 1.7fr) minmax(135px, 1.3fr) 65px 95px 100px; gap: 8px; }
  .source-authority { font-size: 7px; }
}
@media (max-width: 780px) {
  .sidebar { width: auto; height: 57px; inset: auto 0 0; border-top: 1px solid var(--line-dark); border-right: 0; background: #f3f2ec; padding: 4px 12px calc(4px + env(safe-area-inset-bottom)); flex-direction: row; justify-content: center; }
  .brand, .workspace-label, .sidebar-bottom { display: none; }
  .primary-nav { width: min(100%, 540px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
  .nav-link { height: 46px; flex-direction: column; justify-content: center; gap: 0; padding: 2px; font-size: 8px; border-radius: 4px; }
  .nav-icon { width: auto; height: 20px; font-size: 15px; }
  .nav-current, .nav-count { display: none; }
  .main-area { margin-left: 0; padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .topbar { height: 49px; padding: 0 18px; }
  .region-label, .topbar-divider { display: none; }
  .page-root { padding: 32px 18px 42px; }
  .page-heading { align-items: flex-start; margin-bottom: 26px; }
  h1 { font-size: clamp(34px, 8vw, 47px); }
  .page-heading p { max-width: 410px; }
  .verified-counter { display: none; }
  .ask-layout { grid-template-columns: 1fr; gap: 26px; }
  .ask-aside { border-left: 0; border-top: 1px solid var(--line); padding: 21px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 19px; }
  .aside-section + .aside-section, .residency-note { margin-top: 0; }
  .residency-note { grid-column: 1 / -1; }
  .change-workspace { grid-template-columns: 1fr; }
  .change-list-column { border-right: 0; border-bottom: 1px solid var(--line); }
  .change-detail { padding: 20px 17px; }
  .review-banner > .mono { display: none; }
  .table-heading { display: none; }
  .source-row { grid-template-columns: 1fr auto; gap: 7px 10px; padding: 12px; }
  .source-name-cell { grid-column: 1 / -1; }
  .source-authority { grid-column: 1; grid-row: 2; }
  .source-jurisdiction { grid-column: 2; grid-row: 2; justify-self: end; }
  .source-row > span:nth-child(4) { grid-column: 1; grid-row: 3; }
  .source-verified { grid-column: 2; grid-row: 3; justify-self: end; }
}
@media (max-width: 520px) {
  .topbar-right { gap: 0; }
  .breadcrumbs { font-size: 8px; gap: 7px; }
  .scope-pill { font-size: 8px; height: 23px; padding: 0 7px; }
  .page-root { padding-left: 14px; padding-right: 14px; }
  .page-heading { gap: 10px; }
  .page-heading > .status-badge { margin-top: 3px; white-space: normal; text-align: center; }
  .eyebrow { font-size: 7px; }
  .page-heading p { font-size: 11px; }
  .ask-layout { gap: 20px; }
  .ask-form textarea { min-height: 80px; font-size: 12px; }
  .answer-panel { padding: 13px 12px 0; margin-top: 22px; }
  .answer-title { font-size: 17px; }
  .answer-meta { align-items: flex-start; flex-direction: column; gap: 5px; }
  .answer-body-grid { grid-template-columns: 1fr; gap: 16px; }
  .answer-citation-column { border-left: 0; border-top: 1px solid #ddddd5; padding: 12px 0 0; }
  .no-evidence { margin: 10px 0; }
  .answer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; padding: 8px 0; }
  .ask-aside { grid-template-columns: 1fr; }
  .topic-section { margin-top: 3px !important; }
  .residency-note { grid-column: auto; }
  .detail-grid { gap: 17px; }
  .change-detail h2 { font-size: 23px; }
  .impact-toolbar { align-items: flex-start; flex-direction: column; gap: 12px; }
  .impact-toolbar select { min-width: 0; width: 100%; }
  .impact-toolbar > div { width: 100%; }
  .impact-canvas { padding: 14px 11px; }
  .impact-groups { grid-template-columns: 1fr; }
  .impact-group { min-height: 67px; }
  .private-grid { grid-template-columns: 1fr; }
  .source-disclaimer { align-items: flex-start; }
  .source-disclaimer .mono { display: none; }
  .filter-bar { display: grid; grid-template-columns: 1fr 1fr; }
  .search-box { grid-column: 1 / -1; max-width: none; }
  .filter-bar select { min-width: 0; width: 100%; }
  .source-count { gap: 6px; }
  .impact-detail-list span { display: block; margin: 4px 0 0; }
}
