@font-face {
  font-family: Archivo;
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url('fonts/archivo-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/public-sans-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/spline-sans-mono-latin.woff2') format('woff2');
}
:root {
  --ink: #1A2733;
  --muted: #5B6B78;
  --paper: #FAF8F4;
  --white: #FFFFFF;
  --copper: #B2562C;
  --teal: #2E6E62;
  --teal-light: #F0F4F0;
  --line: #8C8377;
  --sand: #E8E2D6;
  --warm: #F8F3E8;
  --red: #982F28;
  --red-light: #FFF0ED;
  --amber: #744500;
  --amber-light: #FFF4D9;
  --radius: 3px;
  --display: Archivo, Arial, sans-serif;
  --sans: 'Public Sans', Arial, sans-serif;
  --mono: 'Spline Sans Mono', Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
a { color: var(--copper); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select, summary { touch-action: manipulation; }
button, .button { min-height: 44px; border: 1px solid var(--copper); border-radius: var(--radius); background: var(--copper); color: var(--white); font-weight: 600; padding: 10px 16px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1.4; text-decoration: none; }
button:hover, .button:hover { background: #944622; border-color: #944622; }
.secondary { background: var(--white); color: var(--ink); border-color: var(--line); }
.secondary:hover { background: var(--warm); border-color: var(--ink); }
.quiet { border-color: var(--line); background: transparent; color: var(--ink); }
.quiet:hover { background: var(--warm); border-color: var(--ink); }
.danger-button, .text-button { color: var(--red); border-color: var(--line); background: var(--white); }
.danger-button:hover, .text-button:hover { background: var(--red-light); border-color: var(--red); }
button:disabled { cursor: not-allowed; background: var(--sand); color: #46535C; border-color: var(--line); }
button.small, .button.small { font-size: .85rem; padding: 8px 12px; min-height: 44px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--copper); outline-offset: 4px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .65em; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); max-width: 940px; }
h2 { font-size: clamp(1.4rem, 2.3vw, 1.8rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.03rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.35em; margin: .6em 0 1.2em; }
li { margin: .35em 0; }
small, .small-text { font-size: .84rem; }
.muted { color: var(--muted); }
.eyebrow, .number, .format { font-family: var(--mono); font-weight: 500; }
.eyebrow { font-size: .7rem; letter-spacing: .11em; text-transform: uppercase; color: var(--copper); margin-bottom: 8px; }
.mono { font-family: var(--mono); font-size: .78rem; overflow-wrap: anywhere; }
.wrap { width: min(1152px, calc(100% - 48px)); margin: 0 auto; }
.narrow { max-width: 790px; }
.skip { position: absolute; left: 20px; top: -100px; background: var(--ink); color: white; padding: 12px; z-index: 30; }
.skip:focus { top: 12px; }
.masthead { background: var(--paper); }
.utility-bar { background: var(--ink); color: #C9D2DA; font-family: var(--mono); font-size: .66rem; padding: 6px 0; letter-spacing: .035em; }
.brand-row { display: flex; gap: 24px; align-items: center; justify-content: space-between; min-height: 64px; position: relative; }
.brand { display: inline-flex; gap: 10px; align-items: center; flex: none; font-family: var(--display); font-size: 1.14rem; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand img { width: auto; height: 36px; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); font-size: .83rem; font-weight: 500; text-decoration: none; }
.site-nav a:hover { color: var(--copper); }
.site-menu { display: none; }
.toolkit-nav-wrap { border-top: 1px solid var(--sand); border-bottom: 1px solid var(--line); }
.topnav { display: flex; align-items: center; gap: 24px; overflow-x: auto; overscroll-behavior-inline: contain; }
.topnav a { display: inline-flex; align-items: center; white-space: nowrap; min-height: 44px; border-bottom: 2px solid transparent; padding: 8px 0; font-size: .81rem; text-decoration: none; color: var(--muted); }
.topnav a[aria-current='page'] { border-bottom-color: var(--copper); color: var(--copper); font-weight: 600; }
.breadcrumb { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; color: var(--muted); font-size: .73rem; padding-top: 16px; }
.breadcrumb a { color: var(--muted); }
.hero { padding: 20px 0 28px; }
.hero .intro { font-size: 1rem; max-width: 780px; color: var(--muted); }
.worksheet-page .hero { padding: 16px 0 12px; }
.worksheet-page .hero h1 { margin-bottom: 10px; }
.worksheet-page .hero .intro { max-width: 850px; margin-bottom: 12px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 0; }
.entry-actions { margin: 14px 0 0; gap: 8px; }
.entry-actions .button, .entry-actions button { font-size: .86rem; padding: 9px 13px; }
.meta { display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: .81rem; color: var(--muted); margin: 14px 0 0; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.card { background: var(--white); border: 1px solid var(--sand); border-top: 3px solid var(--copper); border-radius: var(--radius); padding: 24px; min-width: 0; }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card .number { display: block; color: var(--copper); font-size: .66rem; letter-spacing: .1em; margin-bottom: 16px; }
.section { padding: 34px 0; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section-heading h2 { margin: 0; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.callout { padding: 16px 20px; border-left: 3px solid var(--teal); background: var(--teal-light); border-radius: 0 var(--radius) var(--radius) 0; margin: 18px 0; }
.callout p:last-child { margin-bottom: 0; }
.warning { background: var(--amber-light); border-color: var(--amber); }
.error { background: var(--red-light); border-color: var(--red); }
.neutral { background: #EFF3F6; border-color: var(--muted); }
.status { display: inline-block; border: 1px solid var(--sand); border-radius: 2px; padding: 4px 8px; font-size: .74rem; font-weight: 600; color: var(--ink); background: var(--paper); line-height: 1.4; }
.status.hold { background: var(--red-light); color: var(--red); border-color: #D9B4AD; }
.status.ready { background: var(--teal-light); color: var(--teal); border-color: #9EBBAE; }
.status.practice { background: var(--warm); color: #674B18; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.workspace { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.workspace-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 24px; background: var(--warm); border-bottom: 1px solid var(--sand); }
.workspace-header .eyebrow { margin-bottom: 3px; color: #944622; }
.workspace-header h2 { font-size: 1.2rem; margin: 0; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.steps button { border: 0; border-radius: 0; background: var(--white); color: var(--muted); padding: 13px 15px; font-size: .85rem; justify-content: flex-start; border-bottom: 3px solid transparent; }
.steps button span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 2px; background: var(--sand); color: var(--ink); flex: none; font-family: var(--mono); font-weight: 500; }
.steps button[aria-current='step'] { border-bottom-color: var(--copper); color: var(--ink); background: var(--warm); }
.steps button[aria-current='step'] span { background: var(--copper); color: var(--white); }
.steps button:focus-visible { outline-offset: -5px; }
.stage { padding: 24px; }
.workspace .stage h2 { font-size: 1.45rem; }
.stage-intro { max-width: 760px; margin-bottom: 20px; }
.stage > .intro { font-size: .94rem; color: var(--muted); max-width: 780px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; min-width: 0; }
.field label, .field legend { font-size: .87rem; font-weight: 600; line-height: 1.45; }
.help, .field .help { font-size: .8rem; color: var(--muted); line-height: 1.55; }
.field .help { margin-bottom: 0; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; background: var(--white); color: var(--ink); font-size: 1rem; }
.field textarea { min-height: 108px; resize: vertical; line-height: 1.55; }
.field textarea.tall, #r-original_draft_text { min-height: 152px; }
.field input[type='checkbox'] { width: 20px; height: 20px; min-height: 20px; flex: none; margin: 3px 10px 0 0; accent-color: var(--teal); }
.field label.check { display: flex; align-items: flex-start; font-weight: 400; min-height: 44px; }
.field input[aria-invalid='true'], .field textarea[aria-invalid='true'], .field select[aria-invalid='true'] { border: 2px solid var(--red); }
.field .required, .required-marker { color: var(--red); font-size: .74rem; font-weight: 600; }
.optional, .optional-label { color: var(--muted); font-size: .75rem; font-weight: 400; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { font-weight: 600; margin-bottom: 10px; }
.source-card, .claim-card, .issue-card { background: var(--paper); border: 1px solid var(--sand); border-radius: var(--radius); margin: 18px 0; padding: 22px; }
.source-card { border-top: 3px solid var(--teal); }
.claim-card { background: var(--white); border-top: 3px solid var(--copper); }
.issue-card { border-top: 3px solid var(--amber); }
.source-card .two, .claim-card .two { gap: 18px; }
.record-heading { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.record-heading h3 { font-size: 1.12rem; margin: 0; }
.source-options { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); margin-bottom: 18px; }
.source-options .check { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 8px 0; }
.source-options input { width: 20px; height: 20px; flex: none; margin-top: 3px; accent-color: var(--teal); }
.three-judgments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; border: 1px solid var(--line); padding: 18px 18px 0; border-radius: var(--radius); background: var(--teal-light); margin: 18px 0; }
.next-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--sand); padding-top: 20px; margin-top: 24px; }
.errors { list-style: none; padding: 0; margin: 0; }
.errors li { margin: 0; padding: 8px 0; border-bottom: 1px solid #E5C8C1; }
.errors li:last-child { border-bottom: 0; }
.errors button { background: transparent; color: var(--red); border: 0; padding: 0; min-height: 44px; text-align: left; justify-content: flex-start; font-size: .86rem; font-weight: 500; }
#tool-errors:not(.hidden) { margin: 18px 24px; padding: 16px 20px; background: var(--red-light); border-left: 3px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; }
#review-tool > .callout, #status-summary > .callout { margin: 14px 24px; }
.sticky-note { margin-bottom: 18px; }
.result-box { border: 2px solid var(--teal); padding: 22px; border-radius: var(--radius); margin: 18px 0; }
.result-box h3 { margin-bottom: 10px; }
.result-box ul { margin-bottom: 0; }
.announcement { font-size: .86rem; color: var(--teal); padding: 0 2px; margin: 0 0 12px; }
.announcement:empty { margin: 0; }
.announcement.error-text { color: var(--red); }
.hidden, [hidden] { display: none !important; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 24px; border-top: 1px solid var(--sand); background: var(--paper); align-items: center; position: relative; }
.toolbar button { font-size: .82rem; }
.file-label { display: inline-flex; gap: 8px; align-items: center; font-size: .86rem; }
.file-label input { max-width: 250px; }
details { margin: 16px 0; }
summary { cursor: pointer; font-weight: 600; min-height: 44px; padding: 9px 0; color: var(--teal); }
details > div { padding: 12px 0; }
.details-panel { border-top: 1px solid var(--sand); padding-top: 6px; }
.doc-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 42px; align-items: start; }
.doc-layout > * { min-width: 0; }
.contents { font-size: .81rem; line-height: 1.55; position: sticky; top: 20px; }
.contents ol { list-style: none; padding: 0; margin: 0; }
.contents a { display: block; padding: 8px 0; }
.prose { max-width: 790px; }
.prose section { padding: 10px 0 24px; border-bottom: 1px solid var(--sand); margin-bottom: 26px; }
.prose h2 { font-size: 1.65rem; }
.prose h3 { font-size: 1.2rem; }
.prose p { max-width: 75ch; }
.source-ref { font-size: .8rem; color: var(--muted); }
.source-ref a { font-weight: 600; }
.table-wrap { max-width: 100%; overflow: auto; overscroll-behavior-inline: contain; border: 1px solid var(--line); border-radius: var(--radius); margin: 18px 0; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
th { background: var(--warm); text-align: left; color: var(--ink); font-weight: 600; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--sand); vertical-align: top; overflow-wrap: anywhere; }
tr:last-child td { border-bottom: 0; }
caption { text-align: left; padding: 12px 14px; font-weight: 600; background: var(--white); }
blockquote { border-left: 3px solid var(--line); margin: 14px 0; padding: 12px 20px; background: var(--paper); }
.passage { white-space: pre-wrap; overflow-wrap: anywhere; background: #EFF3F6; padding: 18px; border-radius: var(--radius); font-size: .91rem; }
.passage p:last-child { margin-bottom: 0; }
.source-v-draft { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; margin: 20px 0; }
.draft-pane { border-left: 3px solid var(--copper); padding-left: 18px; }
.answer { border-top: 1px solid var(--sand); margin-top: 18px; padding-top: 12px; }
.case { scroll-margin-top: 20px; margin-bottom: 26px; }
.case .case-top { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; }
.case h2 { font-size: 1.5rem; }
.case-filter { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.download-card { display: flex; flex-direction: column; gap: 14px; }
.download-card .button { margin-top: auto; align-self: flex-start; }
.download-card .format { font-size: .72rem; color: var(--muted); }
.download-card h2, .download-card h3 { margin: 0; font-size: 1.23rem; }
.footer { margin-top: 42px; padding: 34px 0 20px; background: var(--ink); color: #C9D2DA; font-size: .8rem; }
.footer a { color: #E8E2D6; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1.2fr; gap: 36px; }
.footer h2 { font-family: var(--mono); font-size: .67rem; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: #E8E2D6; }
.footer p { margin: 0 0 10px; }
.footer nav { display: flex; flex-direction: column; gap: 10px; }
.footer nav a { width: fit-content; }
.footer-bottom { display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; border-top: 1px solid #5B6B78; padding-top: 20px; margin-top: 24px; font-size: .72rem; }
.review-timeline { border-left: 2px solid var(--line); padding-left: 20px; }
.review-timeline article { padding: 8px 0 22px; }
.read-record dl, .source-definition { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(0, 3fr); gap: 8px 18px; }
.read-record dt, .source-definition dt { font-weight: 600; font-size: .83rem; }
.read-record dd, .source-definition dd { margin: 0; overflow-wrap: anywhere; font-size: .85rem; }
.read-record dl dl { display: block; border-left: 2px solid var(--line); padding-left: 15px; margin: 10px 0; }
.read-record dl dl dt { margin-top: 10px; }
.read-record pre { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; font-size: .78rem; background: var(--paper); padding: 14px; }
.print-only { display: none; }
.strong-link { font-weight: 600; }
.top-link { font-size: .86rem; }
.standalone-note { font-size: .83rem; padding: 10px 24px; background: var(--warm); border-bottom: 1px solid var(--line); text-align: center; }
.case-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.case-nav a { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.input-subtitle { margin: 26px 0 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.source-definition a, .card a, .prose a { overflow-wrap: anywhere; }
.three > .card h2 { font-size: 1.35rem; }
.preserved-fields { padding-top: 16px; }
.preserved-fields legend { font-size: 1rem; }
[data-action='copy-claim'] { margin-bottom: 16px; }
.claim-panel { margin: 0; }
.claim-panel > summary { padding: 2px 0; }
.claim-panel > summary h3 { display: inline; font-size: 1.05rem; letter-spacing: 0; line-height: 1.5; margin: 0; }
.claim-panel > summary .status { margin-left: 12px; }
.claim-panel .claim-content { padding: 14px 0 0; }
.claim-panel .source-v-draft { align-items: start; }
.claim-panel .source-v-draft .passage { font-size: .85rem; padding: 16px; }
.claim-panel .source-v-draft h4 { margin-top: 4px; }
.claim-panel:not([open]) { margin: 0; }
.claim-card:has(> .claim-panel:not([open])) { padding-top: 16px; padding-bottom: 16px; }
dialog { width: min(820px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 26px; border: 1px solid var(--line); border-top: 4px solid var(--copper); border-radius: var(--radius); background: var(--white); color: var(--ink); overflow: auto; }
dialog::backdrop { background: rgb(26 39 51 / .55); }
dialog .dialog-header { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
dialog .dialog-header h2 { margin: 0; }
dialog .dialog-header button { flex: none; }
.inline-help, .help-panel { padding: 16px 18px; background: var(--teal-light); border-left: 3px solid var(--teal); margin: 16px 0; }
.save-state, .save-indicator, .capacity-note { font-size: .77rem; color: var(--muted); }
.save-state.unsaved, .save-indicator.unsaved { color: var(--amber); }
.capacity-note.warning, .capacity-note.error { padding: 8px 12px; }
.privacy-line { margin: 0; padding: 8px 24px; font-size: .77rem; line-height: 1.45; color: var(--muted); background: var(--paper); }
.privacy-line button { background: transparent; color: var(--teal); border: 0; padding: 0 4px; min-height: 28px; font-size: inherit; text-decoration: underline; text-underline-offset: .2em; }
.save-state { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin: 0; padding: 8px 24px; background: var(--paper); }
.save-state button { font-size: .75rem; min-height: 36px; padding: 6px 10px; }
.capacity-notice { font-size: .8rem; padding: 12px 24px; color: var(--amber); background: var(--amber-light); border-top: 1px solid var(--sand); }
.capacity-notice:empty { display: none; }
.completion-progress { font-size: .78rem; color: var(--muted); margin: 0; padding: 10px 24px; border-bottom: 1px solid var(--sand); }
.context-suggestions { margin: 12px 0 18px; }
.context-suggestions dl { margin: 12px 0; }
.context-suggestions dt { font-size: .85rem; font-weight: 600; }
.context-suggestions dd { margin: 0 0 12px; overflow-wrap: anywhere; }
.context-suggestions button { font-size: .78rem; min-height: 44px; max-width: 100%; margin-bottom: 8px; padding: 8px 12px; background: var(--white); color: var(--ink); border-color: var(--line); }
.context-suggestions:not([open]) > :not(summary) { display: none; }
.record-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.record-actions button { font-size: .78rem; padding: 7px 11px; }
.required-hint { font-size: .73rem; color: var(--muted); font-weight: 400; margin-left: 5px; }
.editorial-summary { padding: 20px; background: var(--paper); border-left: 3px solid var(--teal); margin: 18px 0; overflow-wrap: anywhere; }
.editorial-summary h3 { font-size: 1.12rem; }
.more-actions { position: relative; margin: 0; }
.more-actions > summary { font-size: .8rem; padding: 10px; color: var(--ink); }
.more-actions > div { position: absolute; top: 100%; left: 0; display: flex; flex-direction: column; gap: 8px; width: 240px; max-width: calc(100vw - 48px); padding: 12px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 8px 16px rgb(26 39 51 / .1); z-index: 12; }
.more-actions:not([open]) > div, .site-menu:not([open]) > nav { display: none; }
.review-dialog .dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.review-dialog .dialog-heading h2 { margin: 0; font-size: 1.5rem; }
.review-dialog .dialog-heading button { flex: none; }
.review-dialog .dialog-body { margin-top: 18px; }
.review-dialog .dialog-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--sand); }
.recovery-panel { padding: 12px 16px; border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: var(--radius); background: var(--teal-light); margin: 14px 0 20px; }
.recovery-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px; }
.recovery-heading h3 { font-size: 1rem; margin: 0; }
.recovery-heading p { font-size: .78rem; margin: 0; color: var(--teal); }
.recovery-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.recovery-actions button { font-size: .78rem; padding: 8px 12px; }
.recovery-panel > .help { margin: 6px 0 0; }
.recovery-error { color: var(--red); font-size: .85rem; background: var(--red-light); border-left: 3px solid var(--red); padding: 10px 12px; margin: 10px 0; overflow-wrap: anywhere; }
.recovery-details { margin: 0; font-size: .85rem; }
.recovery-details > summary { font-size: .78rem; padding: 8px 0; min-height: 36px; }
.recovery-details p { max-width: 78ch; margin: 8px 0; }
.saved-reviews-list { list-style: none; padding: 0; margin: 14px 0; }
.saved-reviews-list > li { border: 1px solid var(--line); border-left: 3px solid var(--teal); padding: 14px 16px; margin: 12px 0; overflow-wrap: anywhere; }
.saved-reviews-list h3 { font-size: 1rem; margin: 0 0 6px; }
.saved-reviews-list p { font-size: .8rem; margin: 0 0 8px; }
@media (max-width: 1000px) {
  .site-nav { gap: 12px; }
  .site-nav a { font-size: .76rem; }
  .brand-row { gap: 16px; }
}
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .contents { position: static; border-bottom: 1px solid var(--sand); padding-bottom: 20px; }
  .contents ol { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .three { grid-template-columns: 1fr; }
  .card .number { margin-bottom: 10px; }
  .source-v-draft { grid-template-columns: minmax(0, 1fr); }
  .three-judgments { grid-template-columns: minmax(0, 1fr); }
  .three-judgments .field { margin-bottom: 12px; }
  .site-nav { display: none; }
  .site-menu { display: block; margin: 0; }
  .site-menu > summary { font-size: .77rem; min-height: 44px; padding: 11px 0 11px 8px; color: var(--ink); }
  .site-menu > nav { position: absolute; top: 100%; right: 0; min-width: 220px; padding: 10px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 8px 16px rgb(26 39 51 / .1); z-index: 15; display: flex; flex-direction: column; }
  .site-menu nav a { padding: 10px 12px; min-height: 44px; font-size: .87rem; text-decoration: none; color: var(--ink); }
  .site-menu nav a:hover { background: var(--warm); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > section:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .utility-bar { font-size: .59rem; letter-spacing: 0; padding: 5px 0; }
  .brand-row { min-height: 56px; gap: 10px; }
  .brand { font-size: 1.04rem; gap: 7px; }
  .brand img { height: 28px; }
  .topnav { gap: 22px; }
  .topnav a { font-size: .75rem; }
  .breadcrumb { font-size: .65rem; gap: 7px; padding-top: 12px; }
  .hero, .worksheet-page .hero { padding: 14px 0 16px; }
  .hero .intro { font-size: .91rem; line-height: 1.55; }
  .worksheet-page .utility-bar, .worksheet-page .hero > .eyebrow { display: none; }
  .worksheet-page .hero { padding: 10px 0; }
  .worksheet-page .hero h1 { margin-bottom: 8px; }
  .worksheet-page .breadcrumb { padding-top: 8px; }
  h1 { font-size: 1.75rem; }
  .eyebrow { font-size: .64rem; }
  .entry-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
  .entry-actions .button, .entry-actions button { font-size: .74rem; padding: 8px; }
  .two { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .section { padding: 28px 0; }
  .stage { padding: 14px 16px 20px; }
  .workspace-header { padding: 8px 16px; align-items: center; gap: 10px; flex-wrap: wrap; }
  .workspace-header .eyebrow { display: none; }
  .workspace-header h2 { font-size: 1.05rem; }
  .workspace .stage h2 { font-size: 1.25rem; }
  .source-card, .claim-card, .issue-card { padding: 18px 14px; }
  .steps button { padding: 10px 7px; align-items: flex-start; font-size: .7rem; gap: 6px; }
  .steps button span { width: 21px; height: 21px; }
  .toolbar { padding: 8px 16px; }
  .recovery-panel { padding: 10px 16px; }
  .recovery-heading { gap: 3px; }
  .recovery-heading p { font-size: .73rem; }
  .recovery-actions { gap: 6px; }
  .recovery-actions button { font-size: .73rem; padding: 7px 9px; }
  .toolbar button { font-size: .76rem; }
  .privacy-line, .save-state, .capacity-notice, .completion-progress { padding-right: 16px; padding-left: 16px; }
  .save-state { padding-top: 6px; padding-bottom: 6px; }
  #r-original_draft_text { min-height: 120px; }
  .more-actions { position: static; }
  .more-actions > div { left: 16px; right: 16px; width: auto; max-width: none; }
  .editorial-summary { padding: 16px; }
  .contents ol { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 22px; }
  .read-record dl, .source-definition { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .read-record dd, .source-definition dd { margin-bottom: 13px; }
  .record-heading { gap: 9px; }
  .table-wrap th, .table-wrap td { padding: 11px; min-width: 150px; }
  .callout { padding: 15px; }
  .meta { gap: 6px 15px; }
  .footer { margin-top: 28px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .footer-grid > section:first-child { grid-column: auto; }
  .case-top { flex-direction: column; }
  #tool-errors:not(.hidden) { margin: 14px 16px; padding: 15px; }
  #review-tool > .callout, #status-summary > .callout { margin: 12px 16px; }
  dialog { padding: 20px 16px; max-height: calc(100dvh - 32px); }
  dialog .dialog-header { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  @page { size: letter; margin: 17mm; }
  body { font-size: 10pt; line-height: 1.45; background: white; color: #111; }
  .masthead, .breadcrumb, .footer, .skip, .toolbar, .steps, .actions, .contents, .case-filter, .case-nav, .top-link, .no-print, button, .standalone-note, .recovery-panel { display: none !important; }
  .wrap { width: 100%; max-width: none; }
  .hero, .section { padding: 10px 0; }
  .hero h1 { font-size: 24pt; }
  .hero .intro { font-size: 11pt; }
  .prose, .narrow { max-width: none; }
  .doc-layout { display: block; }
  .card, .callout, .source-card, .claim-card, .issue-card { border-color: #AAA; box-shadow: none; break-inside: avoid; }
  .three, .two, .source-v-draft { display: block; }
  .card { margin: 10px 0; }
  .table-wrap { overflow: visible; border-radius: 0; }
  table { font-size: 9pt; }
  th, td { padding: 7px; min-width: 0 !important; }
  thead { display: table-header-group; }
  tr { break-inside: avoid; }
  .prose section { padding-bottom: 15px; margin-bottom: 18px; }
  .prose h2, h2 { font-size: 18pt; break-after: avoid; }
  h3, h4 { break-after: avoid; }
  p { orphans: 3; widows: 3; }
  a { color: #111; }
  .source-ref { font-size: 8.5pt; }
  .passage { font-size: 10pt; padding: 10px; }
  .case { break-before: auto; }
  details > div { display: block !important; }
  details:not([open]) > *:not(summary) { display: block !important; }
  summary { list-style: none; min-height: 0; padding: 5px 0; }
  .workspace { border: 0; }
  .print-only { display: block; }
  .printing-review > body > *:not(#print-record) { display: none !important; }
  .printing-review #print-record { display: block !important; }
  .printing-review #print-record h1 { font-size: 22pt; }
  .printing-review .read-record article { break-inside: auto; }
  .printing-review pre { font-size: 8pt; white-space: pre-wrap; overflow-wrap: anywhere; }
  .printing-review details { break-inside: auto; }
  .print-page { break-before: page; }
  .status { border: 1px solid #888; color: #111; background: white; }
  .read-record dl { display: grid; grid-template-columns: 140px 1fr; }
}
