:root {
  color-scheme: light;
  --ink: #1e2936;
  --ink-soft: #566476;
  --navy: #102b3a;
  --teal: #116d69;
  --teal-hover: #0b5654;
  --line: #dce5e8;
  --surface: #fff;
  --background: #f5f8f8;
  --mint: #e9f7f0;
  --yellow: #fff3d4;
  --red: #ffebeb;
  --blue: #e8f3ff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.48;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--background); color: var(--ink); }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
input, select, textarea { min-width: 0; border: 1px solid #b8c7ce; border-radius: 7px; color: var(--ink); background: #fff; padding: .65rem .77rem; }
input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid #52bbb5; outline-offset: 2px; }
textarea { resize: vertical; width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 3vw, 2.8rem); letter-spacing: -.045em; line-height: 1.14; margin-bottom: .72rem; }
h2 { font-size: 1.26rem; line-height: 1.3; letter-spacing: -.015em; margin-bottom: .36rem; }
h3 { font-size: 1.04rem; }
.container { max-width: 1440px; margin: 0 auto; padding: 0 clamp(18px, 3vw, 48px); }
.site-header { background: var(--navy); color: #fff; border-bottom: 3px solid #3eb5aa; }
.header-inner { max-width: 1536px; margin: 0 auto; min-height: 72px; padding: 10px clamp(18px, 3vw, 48px); display: flex; align-items: center; gap: clamp(18px, 3vw, 44px); }
.brand { color: #fff; display: inline-flex; gap: 10px; align-items: center; white-space: nowrap; }
.brand:hover { color: #fff; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 37px; height: 37px; background: #43bdb0; color: #102d35; font-weight: 850; border-radius: 10px 10px 10px 2px; letter-spacing: -.07em; }
.brand-word { font-size: 1.08rem; font-weight: 740; letter-spacing: -.035em; }
.brand-word span { color: #84d8c7; }
.site-nav { display: flex; align-items: stretch; align-self: stretch; gap: 2px; }
.site-nav a { color: #cbdde1; display: flex; align-items: center; border-bottom: 2px solid transparent; padding: 0 .72rem; font-weight: 560; font-size: .9rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; text-decoration: none; border-color: #68d4c6; }
.account-menu { margin-left: auto; display: flex; gap: 14px; align-items: center; white-space: nowrap; font-size: .85rem; }
.account-menu form { margin: 0; }
.account-name { color: #d0e2e2; overflow: hidden; text-overflow: ellipsis; max-width: 12rem; }
.text-button { border: 0; background: none; padding: .3rem 0; color: #9edbd4; font-weight: 650; }
.text-button:hover { color: white; text-decoration: underline; }
.skip-link { position: absolute; left: 8px; top: -70px; background: #fff; padding: .5rem; z-index: 20; }
.skip-link:focus { top: 8px; }
main.container { min-height: calc(100vh - 152px); padding-top: 34px; padding-bottom: 72px; }
.site-footer { border-top: 1px solid var(--line); background: #f0f5f5; color: #687887; font-size: .83rem; }
.footer-inner { min-height: 72px; display: flex; gap: 24px; justify-content: space-between; align-items: center; }
.page-head { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 29px; }
.page-intro { color: var(--ink-soft); max-width: 760px; font-size: 1rem; margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .13em; color: var(--teal); font-size: .72rem; font-weight: 800; margin-bottom: .65rem; }
.muted { color: var(--ink-soft); }
.small { font-size: .82rem; }
.button { background: #fff; color: var(--teal); border: 1px solid #a8c5c5; border-radius: 7px; font-weight: 700; padding: .7rem 1rem; white-space: nowrap; display: inline-flex; justify-content: center; align-items: center; text-align: center; min-height: 40px; }
.button:hover { text-decoration: none; background: #f0fbf9; border-color: var(--teal); }
.button-primary { background: var(--teal); color: #fff; border-color: var(--teal); box-shadow: 0 2px 6px #116d6922; }
.button-primary:hover { background: var(--teal-hover); border-color: var(--teal-hover); color: #fff; }
.button-small { padding: .42rem .7rem; min-height: 34px; font-size: .81rem; }
.full-width { width: 100%; }
.inline-link { font-weight: 700; white-space: nowrap; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 3px 16px #14344609; padding: 24px; margin-bottom: 22px; }
.subtle-panel { background: #f9fcfc; }
.panel-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 20px; }
.panel-head p { margin-bottom: 0; }
.count-pill { font-size: .76rem; font-weight: 700; color: #3c6270; background: #e8f1f3; border-radius: 100px; padding: 4px 10px; white-space: nowrap; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.metric { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 21px; min-height: 131px; display: flex; flex-direction: column; }
.metric-label { color: #486170; font-size: .85rem; font-weight: 670; }
.metric strong { font-variant-numeric: tabular-nums; font-size: 2rem; line-height: 1.14; letter-spacing: -.04em; margin: 9px 0 auto; }
.metric .metric-alert { color: #b54137; }
.metric-foot { font-size: .76rem; color: var(--ink-soft); }
.metric-foot.link { color: var(--teal); font-weight: 700; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data-table th { text-align: left; color: #5d7080; font-size: .72rem; text-transform: uppercase; letter-spacing: .055em; font-weight: 760; background: #f5f8f8; border-bottom: 1px solid var(--line); padding: .88rem .8rem; white-space: nowrap; }
.data-table td { padding: 1rem .8rem; border-bottom: 1px solid #e7edef; vertical-align: top; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #f9fcfc; }
.data-table .table-sub { display: block; color: #6b7b86; font-size: .75rem; margin-top: 3px; font-weight: 400; }
.data-table .numeric, .numeric { font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table .empty-row { text-align: center; padding: 34px 12px; color: var(--ink-soft); }
.row-link { font-weight: 700; white-space: nowrap; }
.status-badge, .severity { display: inline-flex; align-items: center; border-radius: 5px; padding: .25rem .56rem; font-size: .76rem; font-weight: 740; white-space: nowrap; }
.status-badge { background: #ebf1f4; color: #345165; }
.status-ready, .status-sent { background: #e7f4eb; color: #19674b; }
.status-in_review { background: #e9f3fa; color: #235d85; }
.severity-green { background: var(--mint); color: #126b4b; }
.severity-yellow { background: var(--yellow); color: #886309; }
.severity-red { background: var(--red); color: #a33330; }
.severity-blue { background: var(--blue); color: #255c94; }
.severity-unknown, .severity-missing, .severity-ambiguous { background: #eceef3; color: #555f73; }
.message-stack { display: grid; gap: 8px; margin-bottom: 20px; }
.message { background: #e9f7f0; border-left: 4px solid #268460; padding: 13px 16px; border-radius: 4px; margin-bottom: 15px; }
.message-warning { background: #fff4d9; border-color: #cc981c; }
.message-error { background: #ffe9e8; border-color: #c04438; }
.split-content, .template-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(270px, .85fr); gap: 20px; align-items: start; }
.stack-form { display: grid; gap: 10px; }
.stack-form label, .block-form label { font-weight: 690; font-size: .85rem; }
.stack-form button { justify-self: start; margin-top: 10px; }
.dropzone { min-height: 188px; border: 1.5px dashed #9ebfbe; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 20px; background: #f5fbfa; color: #416579; cursor: pointer; font-weight: 400 !important; }
.dropzone strong { font-size: 1.16rem; color: var(--teal); }
.dropzone span:last-child { max-width: 360px; font-size: .84rem; }
.dropzone-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 50%; background: #d4eee7; font-size: 1.5rem; color: var(--teal); }
.workflow-list { list-style: none; counter-reset: workflow; padding: 0; margin: 23px 0; display: grid; gap: 20px; }
.workflow-list li { counter-increment: workflow; display: grid; grid-template-columns: 29px 1fr; column-gap: 10px; }
.workflow-list li:before { content: counter(workflow); width: 26px; height: 26px; background: #e1f1ef; color: var(--teal); border-radius: 50%; display: grid; place-items: center; font-size: .79rem; font-weight: 800; grid-row: span 2; }
.workflow-list span { color: var(--ink-soft); font-size: .85rem; }
.privacy-note { border-left: 3px solid #77bfb7; padding: 10px 13px; background: #ebf6f4; color: #395b60; font-size: .86rem; margin: 24px 0 18px; }
.inline-form { display: flex; gap: 7px; align-items: center; }
.inline-form select { min-width: 150px; max-width: 230px; font-size: .79rem; padding: .42rem; }
.pool-actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.pool-actions form { margin: 0; }
.issue-panel { border-color: #e4c36c; background: #fffaf0; }
.issue-panel ul { margin: 12px 0 0; padding-left: 22px; }
.document-review-form { display: grid; gap: 2px; }
.metadata-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; align-items: end; }
.metadata-grid .wide-field { grid-column: 1 / -1; }
.field-group { display: grid; gap: 6px; }
.field-group label, .assignment-grid label, .metadata-grid label { font-size: .84rem; font-weight: 690; }
.field-error { color: #a33330; font-size: .78rem; }
.assignment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.assignment-grid select { width: 100%; margin: 10px 0 16px; }
.assignment-grid .button { margin-top: 14px; }
.confirm-row { display: flex !important; gap: 8px; align-items: flex-start; font-size: .84rem; }
.confirm-row input { flex: 0 0 auto; margin-top: 3px; }
.event-summary { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.event-summary li { display: grid; grid-template-columns: auto minmax(150px, .5fr) 1fr; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.event-selection-form fieldset, .event-choices { border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin: 0 0 14px; }
.event-selection-form legend, .event-choices legend { padding: 0 7px; font-weight: 700; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 14px; }
.checkbox-grid label { display: flex; align-items: flex-start; gap: 8px; font-size: .83rem; }
.checkbox-grid input { flex: 0 0 auto; margin-top: 3px; }
.checkbox-grid small { display: block; color: var(--ink-soft); font-weight: 400; }
.regenerate-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; border-top: 1px solid var(--line); margin-top: 17px; padding-top: 17px; }
.regenerate-form label { display: flex; align-items: flex-start; gap: 8px; font-size: .82rem; }
.event-admin-list { display: grid; gap: 10px; }
.event-admin-row { display: grid; grid-template-columns: minmax(150px, .45fr) minmax(180px, .7fr) 1fr auto auto; gap: 12px; align-items: end; padding: 13px 0; border-top: 1px solid var(--line); }
.event-admin-row label { display: grid; gap: 5px; font-size: .8rem; font-weight: 690; }
.event-admin-row code { display: block; margin-top: 7px; overflow-wrap: anywhere; }
.event-admin-row textarea { min-height: 62px; }
.add-event { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 15px; }
.add-event summary { cursor: pointer; color: var(--teal); font-weight: 700; margin-bottom: 15px; }
.block-options { display: grid; grid-template-columns: minmax(120px, .4fr) 1fr; gap: 14px; align-items: end; }
.block-options label { display: grid; gap: 5px; }
.block-form { border-top: 1px solid var(--line); padding: 20px 0; display: grid; gap: 10px; }
.block-form:last-child { padding-bottom: 0; }
.block-head { display: flex; justify-content: space-between; align-items: center; }
.block-form button { justify-self: start; }
.empty-copy { color: var(--ink-soft); padding: 15px 0; }
.auth-shell { display: flex; justify-content: center; align-items: center; min-height: calc(100vh - 290px); }
.auth-card { background: #fff; width: min(100%, 440px); padding: clamp(25px, 4vw, 43px); border: 1px solid var(--line); box-shadow: 0 12px 40px #1b475410; border-radius: 12px; }
.auth-card h1 { font-size: 1.8rem; }
.auth-card .stack-form { margin-top: 25px; }
.auth-card .stack-form button { width: 100%; }
.breadcrumb { display: flex; gap: 9px; align-items: center; font-size: .83rem; color: #738393; margin-bottom: 25px; }
.case-head { align-items: flex-start; }
.case-head .inline-link { font-size: .83rem; display: inline-block; margin-top: 12px; }
.case-redaction-link { margin-top: 14px; }
.case-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); border-radius: 10px; background: var(--line); overflow: hidden; margin-bottom: 26px; }
.case-meta > div { background: #fff; padding: 15px 19px; min-width: 0; }
.case-meta span { display: block; color: #627381; font-size: .75rem; margin-bottom: 3px; }
.case-meta strong { display: block; font-size: .91rem; overflow-wrap: anywhere; }
.case-meta small { color: var(--ink-soft); font-weight: 400; display: block; font-size: .75rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 23px; border-bottom: 1px solid #cfdadd; margin-bottom: 23px; }
.tabs a { color: #526776; font-weight: 710; border-bottom: 3px solid transparent; padding: 0 5px 12px; }
.tabs a[aria-current="page"], .tabs a:hover { border-color: var(--teal); color: var(--teal); text-decoration: none; }
.start-panel { display: flex; justify-content: space-between; gap: 22px; align-items: center; background: #f0f9f6; border-color: #b8dbd3; }
.start-panel p { margin: 0; }
.review-workspace { display: grid; grid-template-columns: minmax(0, 2fr) minmax(330px, .78fr); align-items: start; gap: 15px; }
.review-workspace > * { min-width: 0; }
.pdf-grid, .letter-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 15px; }
.review-workspace .pdf-grid { align-items: start; }
.pdf-panel { padding: 0; overflow: hidden; }
.pdf-head { min-height: 98px; padding: 16px 19px; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.pdf-head .eyebrow { margin-bottom: 4px; }
.pdf-head h2 { font-size: 1.1rem; }
.pdf-head p:last-child { margin: 0; font-size: .76rem; overflow-wrap: anywhere; }
.pdf-head .inline-link { font-size: .78rem; }
.viewer-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-height: 42px; padding: 7px 10px; background: #f5f8f8; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.viewer-toolbar button { min-width: 32px; min-height: 28px; padding: 2px 8px; border: 1px solid #a8c5c5; border-radius: 5px; background: #fff; color: var(--teal); font-weight: 750; }
.viewer-toolbar output { min-width: 52px; text-align: center; color: var(--ink-soft); font-size: .76rem; font-variant-numeric: tabular-nums; }
.pdf-panel iframe { width: 100%; border: 0; border-top: 1px solid var(--line); height: min(64vh, 660px); min-height: 430px; background: #eef2f2; }
.pdf-empty { display: grid; place-items: center; height: 430px; background: #f3f6f7; color: var(--ink-soft); }
.version-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }
.version-grid select { width: 100%; }
.version-grid button { justify-self: start; margin: 0; }
.document-note { margin: -10px 0 23px; }
.findings-rail { position: sticky; top: 18px; max-height: calc(100vh - 36px); overflow: auto; padding: 19px; }
.findings-rail .panel-head { margin-bottom: 12px; }
.findings-rail .legend { margin-bottom: 12px; }
.finding-cards { display: grid; gap: 10px; }
.finding-card { border: 1px solid var(--line); border-left: 4px solid #8c96a1; border-radius: 8px; padding: 12px; background: #fff; scroll-margin-top: 18px; }
.finding-card.finding-green { border-left-color: #5cba92; }
.finding-card.finding-yellow { border-left-color: #e2b343; }
.finding-card.finding-red { border-left-color: #df7571; }
.finding-card.finding-blue { border-left-color: #74b5e9; }
.finding-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.finding-card-head h3 { margin: 2px 0 9px; font-size: .9rem; }
.finding-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0 0 9px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.finding-values div { background: #f8fafa; padding: 7px; min-width: 0; }
.finding-values dt { color: var(--ink-soft); font-size: .65rem; }
.finding-values dd { margin: 2px 0 0; font-size: .78rem; font-weight: 720; overflow-wrap: anywhere; }
.evidence-jumps { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0; }
.evidence-jumps a { padding: 4px 7px; border-radius: 5px; background: #edf6f5; font-size: .72rem; font-weight: 700; }
.findings-panel { padding-left: 0; padding-right: 0; }
.findings-panel .panel-head, .findings-panel .legend { padding-left: 24px; padding-right: 24px; }
.findings-panel .table-scroll { padding: 0 12px 4px; }
.legend { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.findings-table { min-width: 940px; }
.findings-table td:nth-child(1) { min-width: 170px; }
.findings-table td:nth-child(5) { min-width: 225px; }
.findings-table td:nth-child(6) { min-width: 182px; }
.finding-row td:first-child { border-left: 3px solid transparent; }
.finding-red td:first-child { border-left-color: #df7571; }
.finding-yellow td:first-child { border-left-color: #e2b343; }
.finding-green td:first-child { border-left-color: #5cba92; }
.finding-blue td:first-child { border-left-color: #74b5e9; }
.finding-reason { font-size: .8rem; margin: 7px 0 0; color: #5f6974; }
.source-line { font-size: .74rem; margin: 4px 0 0; color: #617481; }
.classify-form { display: grid; gap: 6px; }
.classify-form select, .classify-form textarea { width: 100%; padding: .44rem .5rem; font-size: .79rem; }
.classify-form button { justify-self: start; white-space: normal; }
.text-findings { list-style: none; padding: 0; margin: 0; }
.text-findings li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.text-findings blockquote { margin: 0; max-width: 90ch; color: #33495a; font-size: .9rem; overflow-wrap: anywhere; }
.document-links { display: grid; gap: 9px; }
.document-management { display: grid; gap: 1px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--line); }
.document-management-row { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(380px, auto); gap: 14px; align-items: center; padding: 13px; background: #fff; }
.document-management-row .table-sub { display: block; color: var(--ink-soft); font-size: .76rem; margin-top: 3px; }
.document-management-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; align-items: center; }
.document-management-actions form { margin: 0; }
.compact-delete-form { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.compact-delete-form label { display: flex; gap: 5px; align-items: center; font-size: .75rem; color: #77423e; }
.compact-delete-form input { flex: 0 0 auto; }
.number-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.number-grid div { padding: 16px; border-radius: 8px; background: #f4f8f8; }
.number-grid dt { color: var(--ink-soft); font-size: .8rem; margin-bottom: 6px; }
.number-grid dd { margin: 0; font-size: 1.2rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.section-heading { margin-top: 29px; }
.callout { border-left: 3px solid #81badc; background: var(--blue); border-radius: 4px; padding: 11px 14px; margin: 17px 0 0; }
.callout-yellow { background: var(--yellow); border-left-color: #d7a543; }
.letter-layout { grid-template-columns: minmax(0, 1.45fr) minmax(270px, .7fr); align-items: start; }
.letter-layout .panel { min-width: 0; }
.letter-preview { white-space: pre-wrap; font-family: Georgia, serif; line-height: 1.65; background: #fff; border: 1px solid var(--line); padding: 24px; min-height: 300px; }
.letter-layout textarea { line-height: 1.6; padding: 17px; }
.letter-blocks { display: grid; gap: 8px; margin-bottom: 24px; }
.letter-blocks .callout { margin: 0; font-size: .83rem; }
.letter-blocks .callout p { margin: 5px 0 0; }
.evidence-list { padding: 0; margin: 0; list-style: none; }
.evidence-list li { border-top: 1px solid var(--line); padding: 13px 0; display: grid; gap: 8px; font-size: .85rem; }
.evidence-list small { display: block; color: var(--ink-soft); }
.final-panel { display: grid; grid-template-columns: 1fr minmax(250px, .95fr); gap: 30px; align-items: center; }
.finish-form { display: grid; gap: 7px; }
.finish-form label { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; }
.finish-form input { margin-top: 3px; }
.finish-form button { justify-self: start; margin-top: 8px; }
.download-panel { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 15px 20px; border: 1px solid #b6ddc7; border-radius: 9px; background: #edf8f0; font-weight: 690; }
.download-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.send-panel { display: grid; grid-template-columns: 1fr minmax(230px, .7fr); align-items: center; gap: 26px; }
.analysis-warnings { margin: 0 0 22px; }
.analysis-warnings ul, .privacy-details ul { padding-left: 20px; margin: 8px 0 0; }
.privacy-details { border: 1px solid var(--line); border-radius: 7px; margin-top: 20px; }
.privacy-details summary { cursor: pointer; padding: 11px 14px; font-weight: 690; }
.privacy-details pre { border-top: 1px solid var(--line); max-height: 440px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; padding: 18px; margin: 0; font-size: .82rem; line-height: 1.52; background: #f8fafb; }
.redaction-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.redaction-column { min-width: 0; }
.redaction-column label { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 9px; }
.redaction-column textarea { width: 100%; min-height: 480px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .79rem; line-height: 1.55; }
.redaction-document { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 22px; }
.redaction-document:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.redaction-document-head, .workspace-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.redaction-document-head { margin-bottom: 13px; }
.redaction-document-head .eyebrow { margin-bottom: 3px; }
.redaction-document-head h3 { margin-bottom: 0; overflow-wrap: anywhere; }
.redaction-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 15px; align-items: stretch; }
.redaction-original, .redaction-editor { min-width: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fbfdfd; }
.workspace-head { min-height: 48px; padding: 10px 13px; background: #f2f7f7; border-bottom: 1px solid var(--line); }
.original-pages { height: min(72vh, 760px); min-height: 520px; overflow: auto; padding: 12px; background: #dfe6e7; display: grid; gap: 12px; align-content: start; }
.original-pages figure { width: var(--page-zoom, 100%); margin: 0; background: #fff; border: 1px solid #c8d2d4; box-shadow: 0 2px 8px #102b3a1c; transition: width .16s ease, box-shadow .16s ease; scroll-margin: 12px; }
.original-pages img { display: block; width: 100%; height: auto; }
.original-pages figcaption { border-top: 1px solid var(--line); padding: 5px 9px; color: var(--ink-soft); font-size: .72rem; text-align: right; }
.original-pages figure.evidence-target { box-shadow: 0 0 0 4px #20a49a, 0 4px 18px #102b3a40; }
.case-original-pages { height: min(64vh, 660px); min-height: 430px; border-top: 1px solid var(--line); }
.redaction-editor { padding-bottom: 12px; }
.redaction-editor .redaction-reasons, .redaction-editor .redaction-marker-preview, .redaction-editor textarea { width: calc(100% - 24px); margin-left: 12px; margin-right: 12px; }
.redaction-editor .redaction-reasons { margin-top: 12px; }
.redaction-editor textarea { min-height: 360px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .79rem; line-height: 1.55; }
.manual-redaction-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 12px 0; }
.redaction-marker-preview { margin-top: 12px; margin-bottom: 12px; border: 1px solid #dbc578; border-radius: 6px; background: #fffdf5; }
.redaction-marker-preview summary { cursor: pointer; padding: 9px 11px; font-size: .8rem; font-weight: 720; color: #6b591e; }
.redaction-marker-preview pre { margin: 0; padding: 12px; border-top: 1px solid #e5d594; max-height: 220px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .77rem; line-height: 1.5; }
.redaction-marker-preview mark { background: #ffd865; color: #493900; border-radius: 3px; padding: 1px 3px; font-weight: 760; }
.residual-warning { margin-top: 12px !important; margin-bottom: 0 !important; }
.redaction-reasons { margin: 0 0 9px; padding: 10px 12px 10px 28px; background: var(--yellow); color: #735d1c; border-radius: 6px; font-size: .78rem; }
.redaction-form > button { margin-top: 7px; }
.replacement-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 16px; }
.replacement-form { border: 1px solid #e2c6c3; border-radius: 8px; padding: 14px; background: #fffafa; display: grid; gap: 10px; }
.replacement-form strong { overflow-wrap: anywhere; }
.replacement-form label { display: flex; gap: 8px; align-items: flex-start; font-size: .81rem; color: #77423e; }
.replacement-form input { flex: 0 0 auto; margin-top: 3px; }
.replacement-form button { justify-self: start; }
.approval-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; align-items: stretch; }
.approval-grid .panel { min-width: 0; }
.approval-grid button { margin-top: 12px; }
.ai-hypotheses { padding-left: 20px; }
.ai-hypotheses li { margin: 18px 0; padding-left: 8px; }
.ai-hypotheses p { margin: 6px 0; }
.ai-hypotheses .count-pill { margin-left: 10px; }
.ai-evidence { display: grid; gap: 7px; margin: 12px 0; }
.ai-evidence blockquote { margin: 0; padding: 9px 13px; background: #f1f7f9; border-left: 3px solid #77bbbc; border-radius: 4px; font-size: .85rem; }
.ai-raw { white-space: pre-wrap; overflow-wrap: anywhere; background: #f8fafb; padding: 15px; border: 1px solid var(--line); border-radius: 6px; max-height: 500px; overflow: auto; }
.ai-model-note { padding: 10px 13px; border: 1px solid #b9ded9; border-radius: 7px; background: #edf8f6; margin: 14px 0; overflow-wrap: anywhere; }
.ai-model-note code, .cost-config-summary code, .cost-ledger code { color: #174d59; font-size: .95em; overflow-wrap: anywhere; }
.ai-usage-details, .cost-config-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 17px 0 19px; }
.ai-usage-details > div, .cost-config-summary > div { background: #f9fcfc; padding: 12px 14px; min-width: 0; }
.ai-usage-details dt, .cost-config-summary dt { font-size: .75rem; color: var(--ink-soft); margin-bottom: 4px; }
.ai-usage-details dd, .cost-config-summary dd { margin: 0; font-size: .92rem; font-weight: 690; overflow-wrap: anywhere; }
.ai-usage-details small { display: block; color: var(--ink-soft); font-weight: 400; font-size: .75rem; }
.cost-warning { margin: 0 0 22px; }
.cost-settings-form { display: grid; gap: 17px; }
.cost-model-field { max-width: 560px; }
.cost-model-field label, .cost-rate-grid label { display: block; font-weight: 690; font-size: .84rem; margin-bottom: 7px; }
.cost-model-field input { width: 100%; }
.cost-model-field p { margin: 7px 0 0; }
.cost-rate-fields { border: 1px solid var(--line); border-radius: 8px; padding: 17px; margin: 0; min-width: 0; }
.cost-rate-fields legend { padding: 0 8px; font-weight: 700; }
.cost-rate-fields p { margin-bottom: 12px; }
.cost-rate-fields p:last-child { margin: 12px 0 0; }
.cost-rate-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.cost-rate-grid input { width: 100%; font-variant-numeric: tabular-nums; }
.cost-rate-confirm { display: flex; align-items: flex-start; gap: 9px; margin-top: 16px; font-size: .84rem; font-weight: 650; }
.cost-rate-confirm input { flex: 0 0 auto; margin-top: 3px; }
.cost-settings-form > button { justify-self: start; }
.cost-config-summary { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cost-breakdown { display: grid; grid-template-columns: 1.3fr 1fr; align-items: start; gap: 18px; }
.cost-breakdown .panel { min-width: 0; }
.cost-ledger { min-width: 1050px; }
.cost-ledger th, .cost-ledger td { white-space: nowrap; }
.cost-ledger .status-badge, .cost-ledger .severity { white-space: nowrap; }
.trend-review { margin-top: 27px; padding-top: 22px; border-top: 1px solid var(--line); }
.trend-review h4 { margin: 17px 0 7px; }
.trend-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 15px 0; }
.trend-metrics div { padding: 11px; border-radius: 7px; background: #f4f8f8; }
.trend-metrics dt { color: var(--ink-soft); font-size: .72rem; }
.trend-metrics dd { margin: 3px 0 0; font-weight: 760; font-variant-numeric: tabular-nums; }
.trend-sources { margin: 0; padding-left: 20px; color: var(--ink-soft); font-size: .84rem; }
.trend-sources li { margin: 5px 0; }
button:disabled { opacity: .52; cursor: not-allowed; box-shadow: none; }
.date-overdue { font-weight: 760; color: #b54137; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
@media (max-width: 1050px) {
  .header-inner { flex-wrap: wrap; gap: 0 20px; padding-top: 12px; padding-bottom: 0; }
  .site-nav { order: 3; flex-basis: 100%; overflow-x: auto; min-height: 43px; }
  .site-nav a { white-space: nowrap; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdf-panel iframe { height: 510px; }
  .cost-rate-grid, .ai-usage-details, .cost-config-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cost-breakdown { grid-template-columns: 1fr; }
  .review-workspace { grid-template-columns: 1fr; }
  .findings-rail { position: static; max-height: none; }
}
@media (max-width: 720px) {
  .header-inner { gap: 8px; }
  .brand-word { font-size: 1rem; }
  .account-name { max-width: 100px; }
  .site-nav { gap: 0; }
  .site-nav a { padding: 9px 10px; }
  main.container { padding-top: 25px; padding-bottom: 44px; }
  .page-head, .footer-inner { flex-direction: column; align-items: flex-start; gap: 13px; }
  .start-panel { flex-direction: column; align-items: flex-start; }
  .metric-grid { gap: 9px; }
  .metric { min-height: 105px; padding: 14px; }
  .metric strong { font-size: 1.65rem; }
  .panel { padding: 17px; }
  .split-content, .template-layout, .pdf-grid, .letter-layout, .final-panel, .send-panel, .redaction-grid, .redaction-workspace, .replacement-grid, .approval-grid, .version-grid, .assignment-grid, .metadata-grid, .checkbox-grid, .event-admin-row { grid-template-columns: 1fr; }
  .event-summary li { grid-template-columns: 1fr; gap: 5px; }
  .document-management-row { grid-template-columns: 1fr; }
  .document-management-actions { justify-content: flex-start; }
  .pdf-panel { padding: 0; }
  .pdf-panel iframe { min-height: 360px; height: 420px; }
  .findings-panel { padding: 17px 0; }
  .findings-panel .panel-head, .findings-panel .legend { padding-left: 17px; padding-right: 17px; }
  .number-grid { grid-template-columns: 1fr; }
  .trend-metrics { grid-template-columns: 1fr; }
  .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-panel { flex-direction: column; align-items: flex-start; }
  .cost-rate-grid { grid-template-columns: 1fr; }
}
@media (max-width: 430px) {
  .account-name { display: none; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .case-meta { grid-template-columns: 1fr; }
  .case-meta > div { padding: 9px 13px; }
  .ai-usage-details, .cost-config-summary { grid-template-columns: 1fr; }
}
