:root {
  --ink: #242b30;
  --muted: #66717a;
  --line: #e1e5e8;
  --accent: #17634d;
  --accent-hover: #104b3a;
  --paper: #fff;
  --surface: #f7f8fa;
  --review: #f3eaff;
}
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
code { color: #52616d; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { font-size: 30px; line-height: 1.24; font-weight: 650; margin: 0 0 12px; }
h2 { font-size: 18px; line-height: 1.4; font-weight: 650; margin: 28px 0 16px; }
h3 { font-size: 14px; font-weight: 650; margin: 28px 0 12px; }
.icon { width: 19px; height: 19px; flex: 0 0 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
:focus-visible { outline: 3px solid #4e8aab; outline-offset: 3px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; background: white; padding: 12px; }
.skip-link:focus { top: 8px; }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 28px 0 24px; border-bottom: 1px solid var(--line); background: white; position: sticky; top: 0; z-index: 20; }
.brand-group, .brand, .account { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand { color: var(--ink); font-size: 18px; font-weight: 650; text-decoration: none; white-space: normal; }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; border-radius: 7px; display: grid; place-items: center; background: #243b33; color: white; }
.brand-mark .icon { width: 22px; height: 22px; }
.account { gap: 16px; }
.account form { margin: 0; }
.org-switch { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--muted); font-size: 13px; min-width: 0; }
.org-switch span { max-width: 300px; overflow-wrap: anywhere; line-height: 1.25; }
.org-switch .icon:last-child { width: 14px; flex-basis: 14px; }
.account .language-select { min-height: 34px; font-size: 12px; padding: 4px 6px; border-color: transparent; background: var(--surface); }
.workspace-shell { display: flex; min-height: calc(100vh - 72px); }
.sidebar { width: 224px; flex: 0 0 224px; border-right: 1px solid var(--line); background: #f7f8f9; padding: 28px 14px 16px; display: flex; flex-direction: column; position: sticky; top: 72px; height: calc(100vh - 72px); overflow: auto; }
.nav-group { margin-bottom: 24px; }
.nav-heading { display: block; font-size: 11px; font-weight: 650; text-transform: uppercase; color: #79828a; padding: 0 14px; margin-bottom: 9px; }
.sidebar a { display: flex; align-items: center; gap: 11px; padding: 10px 13px; min-height: 42px; border-radius: 5px; text-decoration: none; color: #505c64; margin: 3px 0; font-size: 13px; line-height: 1.4; }
.sidebar a .icon { color: #7b858c; }
.sidebar a:hover { background: #eceff1; color: #242b30; }
.sidebar a[aria-current] { color: #164f3d; background: #e4efe9; font-weight: 650; }
.sidebar a[aria-current] .icon { color: #17634d; }
.sidebar-account { margin-top: auto; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 20px 10px 0; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; background: #e3e7eb; color: #3c4b57; border-radius: 50%; font-weight: 600; }
main { flex: 1; min-width: 0; padding: 36px 36px 60px; max-width: 1800px; }
main:focus { outline: none; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
.page-heading > div { min-width: 0; }
.page-heading p { margin: 8px 0 0; color: var(--muted); }
.eyebrow { display: block; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.result-count { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.actions form { margin: 0; }
.page-heading .actions { flex-shrink: 0; margin: 0; }
.btn { --bs-btn-border-radius: 5px; border-radius: 5px; font-weight: 550; font-size: 13px; min-height: 40px; padding: 9px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1.4; }
.btn-primary { --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-hover-bg: var(--accent-hover); --bs-btn-hover-border-color: var(--accent-hover); --bs-btn-active-bg: var(--accent-hover); --bs-btn-active-border-color: var(--accent-hover); }
.btn-outline-primary { --bs-btn-color: var(--accent); --bs-btn-border-color: #a9c0b5; --bs-btn-hover-bg: #e9f3ed; --bs-btn-hover-color: var(--accent); --bs-btn-hover-border-color: #89ad9b; }
.btn-outline-secondary { --bs-btn-color: #46525b; --bs-btn-border-color: #d0d7dc; --bs-btn-hover-bg: #f0f3f5; --bs-btn-hover-color: #222c34; --bs-btn-hover-border-color: #aebbc4; }
.btn-sm { min-height: 34px; padding: 6px 10px; font-size: 12px; }
.icon-button { width: 36px; height: 36px; flex: 0 0 36px; border: 1px solid transparent; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--muted); text-decoration: none; }
.icon-button:hover { background: #edf1f3; color: var(--ink); }
.mobile-menu { display: none; }
button:disabled { opacity: .65; cursor: wait; }
label { display: block; font-size: 12px; font-weight: 600; color: #536069; }
input, select, textarea { border: 1px solid #cfd6db; border-radius: 5px; padding: 9px 11px; background: white; color: var(--ink); max-width: 100%; }
input:not([type=checkbox]), select { min-height: 40px; }
input:focus, select:focus, textarea:focus { border-color: #5b8c77; }
input::placeholder { color: #7b858e; font-weight: 400; }
select { font-size: 13px; font-weight: 400; }
input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; flex: 0 0 16px; }
textarea { width: 100%; min-height: 110px; }
.filters { margin: 0 0 24px; }
.filter-primary, .filter-secondary, .reader-filters { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.filter-primary > label { min-width: 130px; }
.filters label select, .filters label input:not([type=checkbox]) { display: block; margin-top: 5px; width: 100%; }
.search-input { position: relative; flex: 1 1 240px; min-width: 160px; }
.search-input > .icon { position: absolute; left: 12px; top: 12px; color: #7d8890; pointer-events: none; }
.search-input input { width: 100%; padding-left: 40px; font-size: 13px; }
.filter-more { margin: 12px 0 0; padding: 0; border: 0; }
.filter-more summary { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; padding: 7px 0; }
.filter-more summary .icon { height: 16px; width: 16px; }
.filter-secondary { background: var(--surface); padding: 16px; margin-top: 6px; border-block: 1px solid var(--line); }
.filter-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.check { display: flex; align-items: center; gap: 8px; padding: 10px 0; font-weight: 500; margin: 0; }
.table-scroll, .table-responsive { overflow: auto; border-top: 1px solid var(--line); }
.table { --bs-table-color: var(--ink); --bs-table-border-color: var(--line); width: 100%; border-collapse: collapse; margin-bottom: 0; font-size: 13px; }
.table th { font-size: 11px; font-weight: 600; color: var(--muted); background: #f8f9fa; padding: 13px 12px; vertical-align: middle; }
.table td { vertical-align: top; padding: 20px 12px; overflow-wrap: anywhere; background: transparent; }
.library-table { min-width: 900px; }
.library-table tbody tr:hover { background: #fafcfc; }
.library-table td:first-child { min-width: 250px; max-width: 460px; }
.record-title { display: flex; align-items: start; gap: 12px; }
.record-title > div { min-width: 0; }
.record-icon { width: 32px; height: 38px; border: 1px solid #dbe6df; background: #f2f7f4; border-radius: 5px; color: #5f8470; display: grid; place-items: center; flex: 0 0 32px; }
.amendment-icon { background: #f0f4fb; color: #577795; border-color: #dce5ef; }
.record-link { display: inline-block; font-weight: 600; line-height: 1.45; color: #263d46; text-decoration: none; margin-bottom: 5px; }
.record-link:hover { color: var(--accent); text-decoration: underline; }
.file-name { font-size: 11px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; margin: 3px 0; }
.tool-label, .muted-cell { font-size: 12px; color: var(--muted); }
.date-cell { min-width: 95px; font-size: 12px; font-variant-numeric: tabular-nums; }
.date-cell small { display: block; color: var(--muted); margin-top: 4px; }
.duration-cell, .numeric { font-variant-numeric: tabular-nums; }
.duration-cell { white-space: nowrap; }
.numeric { text-align: right; }
.state { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; padding: 4px 8px; border-radius: 4px; background: #edf0f2; color: #59636b; white-space: nowrap; }
.state::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.state.completed { background: #e8f4ec; color: #266440; }
.state.failed, .state.interrupted { color: #a43747; background: #fcecf0; }
.state.running { background: #fff4d9; color: #825d13; }
.review-badge { display: inline-flex; align-items: center; gap: 5px; background: #f0e4fc; color: #6e3499; padding: 3px 7px; border-radius: 4px; font-weight: 600; text-decoration: none; }
.review-badge .icon { width: 13px; height: 13px; flex-basis: 13px; }
.empty-state { padding: 48px 16px; text-align: center; color: var(--muted); }
.empty-state > .icon { width: 28px; height: 28px; color: #99a5ac; }
.empty-state h2 { margin: 14px 0; font-size: 16px; }
.notice { display: flex; align-items: start; gap: 10px; padding: 13px 16px; background: #fff8e7; border: 1px solid #ebddb4; border-left: 3px solid #b38a35; margin: 16px 0; border-radius: 3px; font-size: 13px; }
.notice .icon { margin-top: 2px; color: #927220; }
.error, .errorlist { color: #a32840; }
.error:empty { display: none; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 12px; margin-bottom: 22px; }
.back-link .icon { height: 15px; width: 15px; }
.form-surface { max-width: 720px; }
.form-surface .page-heading { margin-bottom: 22px; }
.heading-icon { color: #6c897c; background: #edf4ef; border-radius: 6px; padding: 12px; }
.heading-icon .icon { width: 26px; height: 26px; }
.budget-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 14px 0; border-block: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.budget-line strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.field { margin: 24px 0; }
.field > label { color: #3a4952; font-size: 13px; margin-bottom: 8px; }
.field input:not([type=checkbox]), .field select { width: 100%; }
.field input[type=checkbox] { width: 16px; }
.upload-control { display: flex; align-items: center; gap: 18px; border: 1px dashed #bdcbd2; background: #fafcfd; padding: 22px; border-radius: 6px; }
.upload-control > .icon { width: 28px; height: 28px; flex-basis: 28px; color: #628599; }
.upload-control input[type=file] { padding: 0; border: 0; background: transparent; min-width: 0; font-size: 12px; }
.selected-file { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; margin: 8px 0 0; }
.selected-file:empty { display: none; }
input[type=file]::file-selector-button { border: 1px solid #cbd4da; border-radius: 4px; background: white; color: #34454e; padding: 8px 12px; margin: 4px 12px 4px 0; cursor: pointer; font: inherit; }
.form-footer { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 22px; margin-top: 30px; border-top: 1px solid var(--line); }
.form-surface form p { display: flex; flex-direction: column; gap: 6px; }
.progress-surface { border-block: 1px solid var(--line); background: #fafbfc; padding: 20px 24px 0; }
.status-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12px; }
.status-line [data-stage] { color: var(--muted); overflow-wrap: anywhere; }
.stage-counts { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--muted); }
.metrics { display: flex; gap: 28px; flex-wrap: wrap; margin: 22px 0; }
.metrics > div { flex: 1 1 115px; min-width: 0; }
.metrics dt { font-size: 11px; color: var(--muted); font-weight: 500; margin-bottom: 7px; }
.metrics dd { font-size: 23px; font-weight: 550; font-variant-numeric: tabular-nums; margin: 0; overflow-wrap: anywhere; }
.detail-columns { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; padding-top: 8px; }
.artifact-list { display: flex; flex-wrap: wrap; gap: 10px; }
.artifact-link { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 5px; text-decoration: none; color: #3e535e; min-width: 115px; }
.artifact-link:hover { background: #f2f7f4; border-color: #a5bcae; }
.artifact-link strong { font-size: 12px; font-weight: 600; }
.artifact-link .icon:last-child { width: 14px; height: 14px; flex-basis: 14px; margin-left: auto; color: #85918f; }
.budget-caption { font-size: 12px; color: var(--muted); margin-top: 18px; }
.source-row { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.source-row > .icon { color: #8a979e; margin-top: 4px; }
.source-row > div { min-width: 0; }
.source-row a, .source-row span, .source-row small { overflow-wrap: anywhere; }
.source-row a { display: block; text-decoration: none; font-size: 13px; }
.source-row small { display: block; color: var(--muted); }
.source-row .eyebrow { margin-bottom: 4px; }
.activity-section { border-left: 1px solid var(--line); padding-left: 28px; }
.activity-list { list-style: none; padding: 0 8px 0 4px; max-height: 340px; overflow: auto; }
.activity-list li { border-left: 1px solid #d6dfdc; padding: 0 0 22px 18px; position: relative; font-size: 11px; }
.activity-list li::before { content: ""; position: absolute; top: 5px; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: #9aafa4; }
.activity-list strong, .activity-list span, .activity-list time { display: block; overflow-wrap: anywhere; }
.activity-list strong { font-weight: 600; font-size: 12px; }
.activity-list span, .activity-list time { color: var(--muted); margin-top: 3px; }
.record-management { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
details { margin: 24px 0; border-top: 1px solid var(--line); padding-top: 16px; }
summary { cursor: pointer; color: var(--muted); font-size: 13px; }
summary .icon { height: 16px; width: 16px; margin-right: 6px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; margin-top: 14px; padding: 16px; background: var(--surface); }
.pagination-row { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 20px; font-size: 12px; color: var(--muted); }
.reader-heading h1 { font-size: 25px; max-width: 900px; }
.reader-heading { margin-bottom: 20px; }
.view-tabs { display: flex; gap: 24px; align-items: stretch; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.view-tabs > a { display: flex; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 13px; }
.view-tabs > a[aria-current] { color: var(--accent); border-color: var(--accent); font-weight: 600; }
.view-tabs .icon { width: 17px; height: 17px; flex-basis: 17px; }
.print-button { margin-left: auto; align-self: center; }
.reader-filters { align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.reader-filters .search-input { max-width: 410px; }
.article-layout { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: 36px; }
.article-nav { border-right: 1px solid var(--line); padding-right: 14px; position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; align-self: start; }
.article-nav-heading { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; padding: 0 10px 12px; }
.article-nav > a { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 9px 10px; font-size: 12px; text-decoration: none; color: #5a6871; border-radius: 4px; margin: 2px 0; }
.article-nav > a small { flex-basis: 100%; overflow-wrap: anywhere; line-height: 1.4; }
.article-nav > a[aria-current] { background: #e9f2ed; color: #18593f; font-weight: 600; }
.article-nav > a:hover { background: #f0f3f4; }
.article-nav .icon { width: 13px; height: 13px; flex-basis: 13px; margin-left: auto; }
.article-reading { max-width: 960px; min-width: 0; }
.legal-article { padding: 0 0 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.legal-article > h2:first-child { margin-top: 0; font-size: 20px; }
.legal-article { scroll-margin-top: 92px; }
.article-step a { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.6; text-decoration: none; }
.article-step a:hover strong { text-decoration: underline; }
.article-step span { min-width: 0; overflow-wrap: anywhere; }
.article-step strong { font-weight: 600; }
.article-step-previous { padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.article-step-previous + h2 { margin-top: 0; font-size: 20px; }
.article-step-next { padding-top: 20px; margin-top: 30px; border-top: 1px solid var(--line); }
.legal-text { white-space: pre-wrap; overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.85; }
.diff-deleted { color: #b11c29; text-decoration: line-through; }
.diff-added { color: #1000ff; font-weight: 700; text-decoration: none; }
.diff-same { color: #111; }
.review-required { background: var(--review)!important; box-shadow: inset 3px 0 #8043b2; padding: 22px; }
.table .review-required > * { background: var(--review); }
.review-label, .review-link { color: #71349d!important; font-weight: 600; }
.annotation-fields { margin: 28px 0; display: grid; grid-template-columns: 150px minmax(0,1fr); border-top: 1px solid var(--line); }
.annotation-fields dt, .annotation-fields dd { border-bottom: 1px solid var(--line); padding: 14px 0; margin: 0; }
.annotation-fields dt { font-size: 12px; font-weight: 600; color: #5b6570; padding-right: 20px; }
.annotation-fields dd { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
.article-table { min-width: 800px; table-layout: fixed; }
.article-table th:first-child { width: 16%; }
.article-table th:nth-child(2), .article-table th:nth-child(3) { width: 42%; }
.article-table td { max-width: 500px; }
.article-table .legal-text { font-size: 15px; }
.article-table dt { font-size: 12px; }
.document-reading { max-width: 950px; margin: 32px auto 0; padding: 0 20px; }
.document-reading .legal-article { padding-bottom: 34px; }
.search-match { font-size: 12px; margin-top: 12px; border-left: 2px solid #d7e6df; padding-left: 12px; }
.connection-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 26px 0; }
.connection-form label { margin-bottom: 6px; }
.connections-table { min-width: 640px; }
.org-choice { margin: 16px 0; max-width: 620px; }
.org-choice button { width: 100%; justify-content: space-between; text-align: left; padding: 20px; }
.signed-out main { max-width: 470px; margin: 8vh auto 0; width: 100%; }
.signed-out .form-surface form p { margin: 24px 0; }
.signed-out .form-surface form label { font-size: 13px; }
.signed-out .form-surface button { width: 100%; margin-top: 12px; }
.article-citation { display: inline-flex; align-items: baseline; gap: 8px; }
.article-citation > span:not(.classification-dot) { min-width: 0; overflow-wrap: anywhere; }
.classification-dot { display: inline-block; width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; border: 1px solid; }
.substantive-dot { background: #26966b; border-color: #176447; }
.classification-value { display: inline-flex; align-items: baseline; gap: 8px; }
.cosmetic-dot { background: #a0a6ae; border-color: #737b85; }
.article-summary { border: 1px solid #dce2e8; background: #f7f9fb; border-radius: 6px; padding: 18px 20px; margin: 18px 0 26px; }
.article-summary h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; line-height: 1.4; margin: 0 0 12px; }
.article-summary h4 { font-size: 13px; line-height: 1.5; margin: 0 0 10px; }
.summary-group + .summary-group, .summary-fields:not(:empty) + .summary-group { border-top: 1px solid #dce2e8; padding-top: 14px; margin-top: 14px; }
.summary-fields { margin: 0; }
.summary-field { display: grid; grid-template-columns: minmax(110px, 155px) minmax(0, 1fr); gap: 12px; padding: 7px 0; font-size: 13px; line-height: 1.65; }
.summary-field dt { color: #596471; font-weight: 500; }
.summary-field dd { min-width: 0; margin: 0; }
.field-value { white-space: pre-wrap; overflow-wrap: anywhere; }
.field-expander { margin: 0; }
.field-expander summary { color: #176c56; cursor: pointer; font-weight: 500; }
.field-expander[open] summary { margin-bottom: 8px; }
.field-expander .field-value { padding-left: 10px; border-left: 2px solid #dce2e8; }
.document-summary { margin-bottom: 20px; }
.technical-group { margin: 18px 0; }
.technical-group h3 { font-size: 14px; margin-bottom: 10px; }
.technical-entry { border-top: 1px solid var(--line); padding: 10px 0; }
.technical-entry > summary { color: var(--ink); font-weight: 500; }
.technical-entry .summary-field { grid-template-columns: minmax(120px, 32%) minmax(0, 1fr); }
.technical-entry dt { overflow-wrap: anywhere; }
.field-path-separator { color: #87939e; }
.article-table .article-summary { margin: 0; padding: 14px; min-width: 280px; }
.article-table .summary-field { grid-template-columns: 1fr; gap: 3px; }
@media(min-width:1600px) { main { padding-inline: 48px; } }
@media(max-width:1100px) {
  .sidebar { width: 194px; flex-basis: 194px; padding-inline: 10px; }
  main { padding: 28px 24px 48px; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; }
  .detail-columns { grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; }
  .article-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 24px; }
}
@media(max-width:760px) {
  .library-table { min-width: 0; }
  .library-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .library-table tbody { display: block; }
  .library-table tr { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
  .library-table td { display: block; padding: 0; border: 0; min-width: 0; text-align: left; box-shadow: none; }
  .library-table td:first-child { grid-column: 1 / -1; min-width: 0; max-width: none; margin-bottom: 6px; }
  .library-table td[data-label]::before { content: attr(data-label); display: block; font-size: 10px; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
  .library-table .date-cell small { display: inline; margin-left: 5px; }
  .topbar { height: auto; min-height: 64px; padding: 12px 16px; flex-wrap: wrap; gap: 12px; position: relative; }
  .brand { font-size: 16px; }
  .brand-mark { width: 30px; height: 30px; }
  .mobile-menu { display: inline-flex; }
  .account { width: 100%; justify-content: flex-end; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
  .org-switch { margin-right: auto; font-size: 11px; }
  .org-switch span { max-width: 180px; }
  .workspace-shell { display: block; min-height: calc(100vh - 118px); }
  .sidebar { display: none; position: static; width: 100%; height: auto; border-bottom: 1px solid var(--line); padding: 18px 16px; }
  .sidebar.is-open { display: flex; }
  .sidebar .nav-group { margin-bottom: 12px; }
  .sidebar-account { display: none; }
  main { padding: 26px 18px 44px; }
  h1 { font-size: 25px; }
  .page-heading { gap: 18px; margin-bottom: 22px; }
  .page-heading .actions { flex-shrink: 1; width: 100%; }
  .page-heading .actions .btn { flex: 1 1 140px; }
  .filter-primary { gap: 10px; }
  .filter-primary .search-input { flex-basis: 100%; }
  .filter-primary > label { flex: 1 1 115px; min-width: 0; }
  .filter-primary > .btn { align-self: end; }
  .filter-secondary { padding: 14px; }
  .filter-secondary label { flex: 1 1 130px; min-width: 0; }
  .filter-secondary label.check { flex-basis: 100%; }
  .detail-columns { grid-template-columns: 1fr; gap: 8px; }
  .activity-section { border-left: 0; padding-left: 0; }
  .progress-surface { padding: 16px 16px 0; }
  .metrics { gap: 20px; }
  .metrics > div { flex-basis: 100px; }
  .metrics dd { font-size: 21px; }
  .stage-counts { margin-left: 0; }
  .upload-control { padding: 16px; gap: 10px; }
  .upload-control > .icon { width: 22px; height: 22px; flex-basis: 22px; }
  .view-tabs { gap: 18px; }
  .view-tabs > a { font-size: 12px; gap: 5px; }
  .view-tabs > a > .icon { display: none; }
  .reader-heading h1 { font-size: 22px; }
  .reader-filters { gap: 12px; }
  .reader-filters .search-input { flex-basis: 100%; max-width: none; }
  .article-layout { grid-template-columns: 1fr; gap: 24px; }
  .article-nav { position: static; max-height: 195px; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 12px; }
  .annotation-fields { grid-template-columns: 1fr; }
  .article-summary { padding: 16px; }
  .summary-field { grid-template-columns: 1fr; gap: 3px; }
  .technical-entry .summary-field { grid-template-columns: 1fr; }
  .annotation-fields dt { padding-bottom: 0; border-bottom: 0; }
  .annotation-fields dd { padding-top: 6px; }
  .document-reading { padding: 0; }
  .review-required { padding: 16px; }
  .legal-text { font-size: 16px; line-height: 1.8; }
  .signed-out main { margin-top: 36px; }
}
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { scroll-behavior: auto!important; transition: none!important; } }
@media print {
  .article-step { display: none!important; }
  .article-summary .field-expander { display: block!important; }
  .article-summary .field-expander summary { display: none; }
  .article-summary .field-expander > .field-value { display: block!important; }
  .classification-dot { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .topbar, .sidebar, .filters, .view-tabs, .article-nav, .pagination-row, .actions, details, .back-link, .record-management, .skip-link { display: none!important; }
  main { padding: 0; max-width: none; }
  .workspace-shell, .article-layout { display: block; }
  .article-reading, .document-reading { max-width: none; padding: 0; margin: 0; }
  .legal-article { break-inside: auto; }
  .review-required, .diff-deleted, .diff-added { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .table-scroll { overflow: visible; }
  a { color: inherit; text-decoration: none; }
}
/* Human review stays compact beside the authoritative legal text. */
.collaboration-panel { max-height: 380px; overflow: auto; border-block: 1px solid #cdd5d8; background: #f5f8f7; padding: 12px; margin-block: 16px 24px; }
.collaboration-heading, .assignment-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.collaboration-heading { justify-content: space-between; }
.collaboration-panel details { margin-block: 8px; }
.collaboration-form { display: grid; gap: 8px; margin: 10px 0; }
.collaboration-form label { display: grid; gap: 4px; }
.collaboration-form textarea, .article-editor textarea, .article-editor select { width: 100%; min-width: 0; border: 1px solid #adbabb; border-radius: 4px; padding: 8px; background: #fff; }
.member-picker { display: flex; flex-wrap: wrap; gap: 8px 16px; max-height: 100px; overflow: auto; }
.member-picker label { display: flex; gap: 6px; align-items: center; }
.collaboration-form legend { font-size: 14px; }
.assignment-row form { display: flex; gap: 6px; flex-wrap: wrap; }
.discussion-reply { border-left: 2px solid #aac9bd; margin: 10px 0; padding-left: 12px; }
.discussion-reply time { font-size: 12px; color: #536368; }
.notification-count { margin-left: auto; background: #dbeee4; color: #19513a; padding: 1px 7px; border-radius: 10px; font-size: 12px; }
.article-editor { max-width: 1000px; }
.article-editor .field { display: grid; gap: 6px; margin-bottom: 16px; }
.article-editor input[type=checkbox] { width: 18px; height: 18px; }
.editable-field { border-bottom: 1px solid #dde2e1; padding: 12px 0; }
.editor-group { border-top: 1px solid #cdd5d8; margin: 24px 0; padding-top: 16px; }
.editor-group h3 { font-size: 18px; }
.editor-group h4, .collaboration-panel h4 { font-size: 14px; margin-top: 12px; }
.field-value { white-space: pre-wrap; overflow-wrap: anywhere; }
[data-editor-conflict] { border: 2px solid #9b6b11; padding: 16px; max-height: 500px; overflow: auto; }
@media (max-width: 600px) { .collaboration-panel { padding: 10px; } .assignment-row select { max-width: 170px; } }
@media print { .collaboration-panel, .article-editor, [data-edit-preview] { display: none; } }
