:root {
    --ink: #203632; --muted: #65766f; --nav: #132d29; --accent: #176b55;
    --line: #dce4df; --paper: #fff; --ground: #f5f7f4; --soft: #edf3ee;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink); background: var(--ground); font-size: 14px; color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #569c85; outline-offset: 4px; }
[hidden] { display: none !important; }
.icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.skip-link { position: fixed; left: 20px; top: -100px; z-index: 30; background: white; padding: 14px; }
.skip-link:focus { top: 10px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 238px; background: var(--nav); color: #fff; padding: 28px 16px 18px; display: flex; flex-direction: column; overflow-y: auto; z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 16px; font-weight: 720; letter-spacing: .07em; padding: 2px 9px 27px; }
.brand:hover { text-decoration: none; }
.brand small { display: block; font-size: 8px; letter-spacing: .12em; color: #a9c4b9; margin-top: 7px; }
.brand-mark { font-size: 34px; font-weight: 800; letter-spacing: -.13em; line-height: 1; border-bottom: 2px solid #9fe0ba; }
.brand-mark span { color: #a5e1be; font-size: 22px; }
.sidebar nav { display: flex; flex-direction: column; gap: 17px; }
.nav-caption { display: block; color: #97b6aa; font-size: 9px; letter-spacing: .13em; font-weight: 650; padding: 0 12px 7px; }
.nav-group a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; margin: 2px 0; border-radius: 7px; color: #d1e1d8; font-size: 12px; }
.nav-group a:hover { background: #224038; color: white; text-decoration: none; }
.nav-group a.active { background: #d4ebdc; color: #173c2d; font-weight: 650; }
.nav-group .icon { width: 18px; height: 18px; opacity: .85; }
.nav-count { margin-left: auto; background: #a9d0b6; border-radius: 4px; padding: 2px 6px; font-size: 10px; }
.nav-utilities { margin-top: 22px; padding-top: 12px; border-top: 1px solid #355048; }
.nav-utilities a { display: flex; align-items: center; gap: 10px; color: #bfd3c8; padding: 9px 12px; font-size: 12px; border-radius: 6px; }
.nav-utilities a[aria-current] { background: #2d4b40; color: white; }
.nav-utilities .icon { width: 17px; height: 17px; }
.local-card { padding: 18px 12px 0; margin-top: auto; font-size: 10px; color: #c4d8ce; }
.local-card small { display: block; padding: 7px 0 0 12px; color: #94b0a3; line-height: 1.6; }
.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #78b991; margin-right: 5px; }
.workspace { margin-left: 238px; }
.topbar { height: 65px; padding: 0 38px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; background: #fcfdfb; gap: 16px; }
.topbar-label { font-size: 10px; letter-spacing: .12em; color: #617b6e; }
.topbar-divider { margin: 0 12px; color: #b5c4ba; }
.operator { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #e6eee7; font-weight: 650; color: #3c6a51; }
.menu-toggle { display: none; }
main { max-width: 1530px; padding: 34px 38px 28px; margin: auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 28px; }
.eyebrow { display: block; font-size: 10px; font-weight: 700; letter-spacing: .13em; color: #688274; margin: 0 0 12px; line-height: 1.6; }
h1 { font-size: 34px; font-weight: 670; letter-spacing: -.045em; line-height: 1.16; margin: 0 0 10px; }
h2 { font-size: 21px; font-weight: 630; line-height: 1.35; letter-spacing: -.025em; margin: 0 0 14px; }
h3 { font-size: 16px; font-weight: 650; line-height: 1.5; margin: 0 0 10px; }
h4 { font-size: 13px; margin: 18px 0 6px; }
p { line-height: 1.7; }
.subtitle { color: var(--muted); font-size: 13px; margin: 0; max-width: 720px; }
.archive-meta { color: #708174; font-size: 11px; text-align: right; flex-shrink: 0; }
.archive-meta small { display: block; margin-top: 8px; color: #7a8d80; }
.button, button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 7px; padding: 11px 16px; font-size: 13px; font-weight: 630; cursor: pointer; line-height: 1.35; }
.button:hover, button:hover { background: #11513f; color: white; text-decoration: none; }
.button .icon, button .icon { width: 17px; height: 17px; }
.button.secondary, button.secondary { background: #fff; color: var(--ink); border-color: #cbd8ce; }
.button.secondary:hover, button.secondary:hover { background: var(--soft); border-color: #8fab98; }
button:disabled { opacity: .55; cursor: not-allowed; }
.text-link { font-size: 13px; font-weight: 600; }
.back-link { display: inline-block; margin: 0 0 20px; font-size: 12px; color: #52705f; }
.panel { background: var(--paper); padding: 27px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 22px; min-width: 0; }
.panel > p { color: var(--muted); font-size: 13px; }
.section-heading, .list-heading, .record-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.section-heading { flex-wrap: wrap; margin-bottom: 15px; }
.section-heading h2, .list-heading h2, .record-heading h2 { margin-bottom: 0; }
.section-heading a { font-size: 12px; font-weight: 550; }
.list-heading p, .record-heading p { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.record-heading { align-items: flex-start; padding-bottom: 5px; }
.record-heading h2 { font-size: 25px; max-width: 850px; }
.record-heading .eyebrow { font-size: 10px; margin-bottom: 6px; }
.record-actions { display: flex; gap: 15px; align-items: center; flex-shrink: 0; }
.count-badge { display: inline-block; vertical-align: middle; padding: 3px 9px; border-radius: 6px; font-size: 12px; background: #e3ece3; margin-left: 8px; }
.muted, .help { color: var(--muted); font-size: 12px; line-height: 1.7; }
.body-copy, .panel > p.body-copy { color: var(--ink); font-size: 14px; }
.workflow-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 9px; background: #fff; margin-bottom: 30px; overflow: hidden; }
.workflow-strip a { display: flex; align-items: center; gap: 10px; padding: 13px 16px; color: #6e8175; }
.workflow-strip a:hover { text-decoration: none; background: #f1f6f0; }
.workflow-strip a.current { background: #e8f1e7; color: #245a3d; }
.step-number { width: 26px; height: 26px; flex-shrink: 0; display: inline-grid; place-items: center; border: 1px solid #d3dfd1; border-radius: 50%; font-size: 11px; font-weight: 600; }
.current .step-number { background: #38684b; color: white; border-color: #38684b; }
.workflow-strip strong { display: block; font-size: 12px; }
.workflow-strip small { display: block; font-size: 10px; margin-top: 4px; }
.workflow-strip .icon { width: 14px; margin-left: auto; opacity: .5; }
.workflow-strip a:last-child .icon { display: none; }
.section-tabs { display: flex; gap: 5px; margin-bottom: 24px; border-bottom: 1px solid #ccd9cd; overflow-x: auto; position: sticky; top: 0; z-index: 5; background: var(--ground); }
.section-tabs a { white-space: nowrap; padding: 13px 17px; color: #637b6a; font-size: 13px; font-weight: 560; border-bottom: 3px solid transparent; }
.section-tabs a:hover { text-decoration: none; background: #eaf0e7; }
.section-tabs a[aria-selected="true"] { color: #225e3d; border-color: #246545; }
.tab-panel { scroll-margin-top: 20px; min-width: 0; }
.journey-note { display: flex; flex-direction: column; gap: 5px; padding: 16px 20px; border-left: 3px solid #7da384; background: #eaf1e7; margin-bottom: 22px; font-size: 13px; border-radius: 0 8px 8px 0; line-height: 1.6; }
.journey-note span { color: #59715f; font-size: 12px; }
.next-step { background: #e9f0e6; border: 1px solid #d7e2d1; padding: 20px 24px; border-radius: 9px; margin-bottom: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; }
.next-step p { margin-bottom: 0; }
.focus-card { display: flex; justify-content: space-between; gap: 45px; padding: 35px 38px; border-radius: 14px; background: #193d30; color: #fff; margin-bottom: 24px; overflow: hidden; }
.focus-copy { max-width: 690px; }
.focus-card .eyebrow { color: #b5d3b6; }
.focus-card h2 { font-size: clamp(25px, 2.5vw, 35px); font-weight: 570; letter-spacing: -.045em; line-height: 1.25; margin-bottom: 16px; }
.focus-copy > p:not(.eyebrow) { color: #c0d5c7; font-size: 13px; max-width: 580px; }
.focus-card .button { margin-top: 9px; background: #d9edb1; border-color: #d9edb1; color: #23402b; }
.focus-card .button:hover { background: #ebf7cf; }
.focus-aside { display: flex; flex-direction: column; justify-content: center; min-width: 185px; max-width: 220px; border-left: 1px solid #4b6751; padding-left: 30px; }
.focus-aside strong { font-size: 19px; line-height: 1.5; font-weight: 550; }
.focus-aside p { font-size: 12px; color: #b1c9b8; }
.focus-symbol { display: grid; place-items: center; width: 48px; height: 48px; background: #365542; border-radius: 12px; margin-bottom: 18px; color: #d9edb1; }
.focus-symbol .icon { width: 27px; height: 27px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 21px; color: var(--ink); display: flex; flex-direction: column; }
.stat:hover { border-color: #8eaf93; text-decoration: none; }
.stat > span { display: flex; gap: 9px; align-items: center; font-size: 12px; color: #536e5b; line-height: 1.5; }
.stat .icon { width: 17px; height: 17px; }
.stat strong { font-size: 37px; font-weight: 570; letter-spacing: -.05em; margin: 15px 0 8px; line-height: 1; }
.stat small { font-size: 11px; color: #748578; line-height: 1.5; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.system-row { padding: 21px 0; border-bottom: 1px solid #e6ece5; }
.system-row:last-of-type { border: 0; }
.system-heading { display: flex; align-items: center; gap: 13px; font-size: 13px; font-weight: 650; }
.system-heading small { display: block; font-size: 11px; font-weight: 400; margin-top: 7px; color: var(--muted); }
.system-icon, .source-icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 9px; background: #eaf1e8; color: #487c56; }
.system-state { display: flex; align-items: center; gap: 14px; justify-content: space-between; margin: 15px 0 0 53px; }
.system-state a { font-size: 12px; font-weight: 550; }
.source-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); padding: 16px 0; font-size: 13px; }
.source-row small { display: block; color: var(--muted); font-size: 11px; margin: 0 0 7px; }
.workflow-guide { border-top: 1px solid #d8e3d5; padding-top: 26px; margin: 7px 0 28px; }
.guide-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 23px; margin-top: 24px; }
.guide-grid a { color: var(--ink); border-right: 1px solid #d9e3d5; padding-right: 20px; }
.guide-grid a:last-child { border: 0; }
.guide-grid a:hover { text-decoration: none; }
.guide-grid h3 { font-size: 14px; margin: 12px 0 5px; }
.guide-grid p { font-size: 12px; color: var(--muted); margin: 0; }
.asset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.asset-card { background: white; border: 1px solid var(--line); padding: 26px; border-radius: 12px; min-width: 0; }
.asset-card h2 { font-size: 21px; }
.asset-card h2 a { color: var(--ink); }
.asset-address { color: var(--muted); font-size: 13px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding-top: 20px; font-size: 12px; }
.filter-bar { display: flex; align-items: end; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; padding: 17px 20px; background: #eaf0e7; border-radius: 9px; }
.filter-bar .field { flex: 1; min-width: 190px; }
.filter-bar [data-search-count] { font-size: 11px; color: #5c7663; padding-bottom: 12px; }
.local-filters { background: transparent; padding: 0; }
.source-cards { display: flex; flex-direction: column; gap: 14px; }
.source-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 20px; border: 1px solid var(--line); background: #fff; border-radius: 11px; overflow: hidden; }
.source-card-main { display: flex; align-items: flex-start; gap: 14px; padding: 22px 0 18px 22px; min-width: 0; }
.source-card-main > div { min-width: 0; }
.source-card-title { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.source-card h3 { margin: 0; font-size: 16px; }
.source-components { font-size: 12px; color: var(--muted); margin: 7px 0; overflow-wrap: anywhere; }
.mode-label { font-size: 11px; font-weight: 650; }
.mode-label.automatic { color: #216b4b; }
.mode-label.manual { color: #6a7168; }
.source-progress { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px; margin: 0 22px 20px; padding: 20px; background: #f4f7f0; border: 1px solid #dfe8d8; border-radius: 9px; }
.progress-caption { display: flex; align-items: center; gap: 8px; color: #4b6754; font-size: 11px; font-weight: 650; margin-bottom: 11px; }
.progress-caption .icon { width: 16px; height: 16px; }
.consultation-date > strong { display: block; color: #254f37; font-size: 21px; font-weight: 650; letter-spacing: -.025em; }
.consultation-date.not-recorded > strong { color: #69776a; font-size: 18px; }
.consultation-date.attempt-failed > strong { color: #9b4231; }
.source-progress small { display: block; color: #617463; font-size: 11px; line-height: 1.6; margin-top: 7px; }
.source-progress .date-context { font-size: 10px; margin-top: 12px; }
.source-review-progress { border-left: 1px solid #d9e2d4; padding-left: 24px; }
.review-progress-row + .review-progress-row { border-top: 1px solid #d9e2d4; padding-top: 12px; margin-top: 12px; }
.review-asset-name { display: block; font-size: 12px; line-height: 1.6; margin-bottom: 6px; }
.source-review-progress > .text-link { display: inline-block; margin-top: 12px; font-size: 12px; }
.source-buttons { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding: 20px 22px 20px 0; max-width: 330px; }
.source-buttons form { margin: 0; }
.source-buttons button, .source-buttons .button { font-size: 12px; padding: 9px 12px; white-space: nowrap; }
.source-buttons .text-link { font-size: 11px; }
.source-card-details { grid-column: 1 / -1; border-top: 1px solid #ecf0e9; }
.source-card-details > summary { padding: 11px 22px; font-size: 11px; color: #617b68; }
.source-detail-body { padding: 4px 24px 22px; font-size: 12px; }
.source-coverage { padding: 14px 0; border-top: 1px solid var(--line); line-height: 1.6; }
.source-coverage .pill { margin-left: 10px; }
.source-coverage small { display: block; }
.catalog-options { max-height: 480px; overflow: auto; border: 1px solid var(--line); padding: 20px; border-radius: 8px; }
.catalog-options .check { margin-bottom: 12px; }
.catalog-options h3 { margin-top: 20px; }
.diagnosis-statusbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; background: #fbefce; color: #77591c; font-size: 11px; padding: 12px 17px; border-radius: 7px; margin-bottom: 17px; }
.diagnosis-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.recommendation { background: #e9f2e5; border-color: #d6e4cd; }
.diagnosis-text { white-space: pre-line; overflow-wrap: anywhere; }
.diagnosis-finding { border: 1px solid var(--line); border-radius: 9px; margin: 12px 0; overflow: hidden; }
.diagnosis-finding > summary { display: flex; align-items: center; padding: 19px; gap: 20px; }
.finding-title { font-size: 14px; line-height: 1.5; color: var(--ink); font-weight: 550; }
.finding-title b { display: block; color: #5a7962; font-size: 11px; margin-bottom: 5px; }
.finding-status { max-width: 210px; flex-shrink: 0; background: #faf1dc; color: #825d19; border-radius: 5px; padding: 6px 9px; font-size: 11px; font-weight: 500; line-height: 1.5; }
.finding-body { border-top: 1px solid var(--line); padding: 6px 22px 18px; font-size: 13px; }
.finding-body > div { border-left: 2px solid #d2e1cf; padding-left: 16px; }
.finding-body p { margin-top: 6px; }
.diagnosis-list { display: flex; flex-direction: column; gap: 16px; }
.diagnosis-card { display: flex; align-items: flex-start; gap: 18px; background: white; border: 1px solid var(--line); padding: 24px; border-radius: 11px; }
.diagnosis-card > div { flex: 1; min-width: 0; }
.diagnosis-card h2 { font-size: 19px; }
.diagnosis-card p { color: var(--muted); font-size: 12px; }
.diagnosis-card .button { flex-shrink: 0; align-self: center; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.copy-request { padding: 20px; border: 1px solid #cadbc4; background: #f3f7ef; border-radius: 9px; }
.copy-request > p { margin-top: 0; line-height: 1.9; }
.copy-request [data-copy-status] { display: inline-block; margin-left: 15px; }
.document-links { padding-left: 20px; line-height: 2.4; font-size: 13px; }
.pill { display: inline-block; padding: 5px 8px; background: #eef2ec; color: #5f7563; font-size: 10px; font-weight: 600; line-height: 1.4; border-radius: 5px; }
.pill.warning, .pill.planned, .pill.proposed, .pill.awaiting_direction, .pill.high, .pill.relevant { background: #fbefce; color: #805b17; }
.pill.error, .pill.critical, .pill.unreachable, .pill.above { background: #fae9e5; color: #9b4231; }
.pill.validated, .pill.done, .pill.closed, .pill.none, .pill.within { background: #e6f2e4; color: #37693d; }
.pill.accepted, .pill.mitigated, .pill.completed { background: #e6eff3; color: #3d687b; }
.alert { font-size: 13px; line-height: 1.7; padding: 16px 20px; border: 1px solid transparent; border-radius: 8px; margin: 0 0 20px; }
.alert p:last-child { margin-bottom: 0; }
.alert.warning { background: #fff7e5; border-color: #efdfb6; color: #805b20; }
.alert.error { background: #fff0ec; border-color: #efcfc5; color: #983b28; }
.alert.success { background: #e8f4e5; border-color: #cce0c2; color: #326334; }
.alert.info { background: #edf3ef; border-color: #d4e1d7; color: #4b6853; }
.execution-case h2 { font-size: 20px; }
.execution-case-state { flex-shrink: 0; font-size: 12px; }
.execution-timeline { list-style: none; padding: 0; margin: 20px 0; }
.execution-timeline > li { position: relative; display: grid; grid-template-columns: minmax(170px, 1fr) minmax(220px, 1.3fr); gap: 8px 24px; margin-left: 7px; padding: 0 0 20px 24px; border-left: 2px solid #dce7dc; }
.execution-timeline > li::before { content: ''; position: absolute; width: 10px; height: 10px; top: 4px; left: -6px; border-radius: 50%; background: #397557; }
.execution-timeline > li:last-child { padding-bottom: 0; border-left-color: transparent; }
.execution-phase { display: flex; flex-direction: column; gap: 5px; font-size: 14px; }
.execution-phase > span { font-size: 11px; color: var(--muted); }
.execution-clock { display: flex; gap: 8px 25px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.execution-clock strong { display: block; color: var(--ink); font-size: 13px; font-variant-numeric: tabular-nums; }
.execution-proof { grid-column: 1 / -1; font-size: 12px; min-width: 0; overflow-wrap: anywhere; }
.execution-proof > summary { padding: 3px 0; font-size: 11px; color: var(--muted); }
.execution-proof p { margin: 8px 0; }
.execution-records { border-top: 1px solid var(--line); margin-top: 24px; }
.execution-records > summary { padding: 16px 0 0; }
@media (max-width: 700px) {
    .execution-timeline > li { grid-template-columns: 1fr; }
    .execution-case .section-heading { flex-wrap: wrap; }
}
.compose { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 22px; }
summary { cursor: pointer; font-size: 13px; font-weight: 620; padding: 18px 20px; line-height: 1.6; }
summary::marker { color: #6c8f73; font-size: 10px; }
.compose > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; }
.compose > summary::-webkit-details-marker { display: none; }
.compose > summary > span { color: #587e5d; font-size: 21px; font-weight: 400; }
.compose[open] > summary { border-bottom: 1px solid var(--line); }
.compose[open] > summary > span { transform: rotate(45deg); }
.compose-body { padding: 25px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: 12px; }
.field > span { color: #435f4c; font-weight: 600; }
.field b { color: #9b6544; font-weight: 400; }
input, select, textarea { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #c5d3c8; border-radius: 6px; background: #fff; color: var(--ink); font-size: 13px; line-height: 1.5; }
textarea { resize: vertical; }
.field small { color: #6c8171; font-size: 11px; line-height: 1.6; }
.wide { grid-column: 1 / -1; }
.check { display: flex; align-items: flex-start; gap: 11px; font-size: 13px; line-height: 1.7; color: #4e6857; }
.check input { width: 17px; height: 17px; flex-shrink: 0; accent-color: var(--accent); margin-top: 4px; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; padding-top: 20px; margin-top: 8px; border-top: 1px solid var(--line); }
.form-actions span { color: #728575; font-size: 11px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); background: white; border-radius: 8px; margin: 16px 0 22px; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 12px; }
th { background: #f1f5ed; color: #627965; font-size: 11px; font-weight: 600; white-space: nowrap; }
th, td { padding: 15px 17px; border-bottom: 1px solid #e4ebe0; vertical-align: top; line-height: 1.7; }
td { max-width: 390px; overflow-wrap: anywhere; }
td a { font-weight: 550; }
td small { display: block; font-size: 11px; color: #6f8172; margin-top: 6px; }
td summary { padding: 9px 0; font-size: 11px; font-weight: 500; }
.collection-limits { margin-bottom: 24px; border: 1px solid var(--line); border-radius: 8px; padding: 0 18px 14px; }
.collection-limits:not([open]) { padding-bottom: 0; }
.collection-limits summary { padding-left: 0; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcf8; }
.table-search { display: flex; align-items: center; gap: 20px; font-size: 11px; color: var(--muted); margin-top: 18px; }
.table-search label { display: flex; align-items: center; gap: 10px; }
.table-search input { max-width: 300px; }
.empty { padding: 32px 22px; text-align: center; border: 1px dashed #cfdccc; border-radius: 10px; background: #fcfdfb; margin: 18px 0; }
.empty p { color: var(--muted); font-size: 12px; max-width: 420px; margin: 0 auto; }
.empty .button { margin-top: 20px; }
.empty.compact { border: 0; padding: 22px 8px; }
.empty-symbol { display: inline-grid; place-items: center; height: 42px; width: 42px; margin-bottom: 18px; border-radius: 50%; background: #eef3e9; color: #709075; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 30px; margin: 24px 0; }
.detail-grid > div { min-width: 0; }
dt { font-size: 11px; color: #6b8170; margin-bottom: 7px; }
dd { margin: 0; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; overflow-wrap: anywhere; }
.hash { max-width: 170px; display: block; font-size: 10px; }
.late { color: #a33d28 !important; font-weight: 650; }
.quick-links { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 20px; font-size: 13px; }
.readable-list { padding-left: 20px; color: #506b59; font-size: 13px; line-height: 1.8; }
.readable-list li { margin-bottom: 10px; }
.policy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.policy-grid > div { padding-left: 18px; border-left: 2px solid #b4cdb0; }
.policy-grid span { color: #6e8d70; font-size: 10px; letter-spacing: .1em; }
.policy-grid strong { display: block; margin: 12px 0; font-size: 16px; }
.policy-grid p { color: var(--muted); font-size: 12px; }
.transfer-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 25px; }
.transfer-steps > div { background: #e9f0e4; border: 1px solid #d7e3d0; border-radius: 9px; padding: 25px; }
.transfer-steps span { display: block; color: #597f5f; font-size: 12px; margin-bottom: 16px; }
.transfer-steps p { color: var(--muted); font-size: 12px; }
.import-preview { border-color: #cbb274; }
.census { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 25px; margin-bottom: 22px; }
.census-preview { margin-top: 24px; padding-top: 20px; border-top: 1px solid #c8dac5; }
.census-report { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 460px; overflow: auto; padding: 18px; border: 1px solid #d6e1d0; border-radius: 8px; background: #f6f9f3; font-size: 12px; line-height: 1.7; }
.fetch-results { margin: 16px 0; }
.inventory-heading { margin: 0 0 20px; }
.inventory-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.inventory-section { min-width: 0; padding: 21px; border: 1px solid var(--line); border-radius: 9px; margin: 16px 0; }
.inventory-sections .inventory-section { margin: 0; }
.inventory-full, .inventory-section .wide { grid-column: 1 / -1; }
.inventory-section .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.inventory-fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.inventory-fieldset legend { font-weight: 650; padding: 0 8px; }
.inventory-fieldset .wide { grid-column: 1 / -1; }
footer { display: flex; justify-content: space-between; gap: 28px; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 32px; color: #738576; font-size: 10px; line-height: 1.8; }
footer span { max-width: 340px; }
@media (min-width: 1650px) { main { padding-top: 42px; } .focus-card { padding: 40px; } .sidebar { width: 252px; } .workspace { margin-left: 252px; } }
@media (max-width: 1200px) {
    .sidebar { width: 220px; padding: 24px 12px; } .workspace { margin-left: 220px; }
    main { padding: 28px; } .topbar { padding: 0 28px; } .brand { font-size: 14px; gap: 10px; }
    .focus-card { padding: 28px; gap: 26px; } .focus-aside { min-width: 160px; padding-left: 23px; }
    .stats { gap: 12px; } .stat { padding: 17px; } .stat > span { align-items: flex-start; }
    .workflow-strip a { padding: 12px 10px; } .workflow-strip small { display: none; }
    .source-card { grid-template-columns: 1fr; } .source-buttons { padding: 0 22px 18px 76px; max-width: none; justify-content: flex-start; }
    .dashboard-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
    .record-heading, .record-actions { flex-wrap: wrap; }
    .diagnosis-card { flex-wrap: wrap; } .diagnosis-card > div { flex-basis: 60%; }
    .inventory-sections { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-grid, .diagnosis-columns, .columns { grid-template-columns: 1fr; }
    .focus-aside { display: none; } .asset-grid { grid-template-columns: 1fr; }
    .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .guide-grid a:nth-child(2) { border: 0; } .archive-meta { display: none; }
}
@media (max-width: 760px) {
    .sidebar { position: static; width: 100%; height: auto; padding: 20px; }
    .sidebar .brand { padding-bottom: 18px; } .sidebar nav { display: grid; grid-template-columns: 1fr 1fr; }
    .sidebar .local-card { display: none; } .nav-utilities { display: flex; flex-wrap: wrap; margin-top: 15px; }
    .js-ready .sidebar { display: none; } .js-ready.menu-open .sidebar { display: flex; }
    .js-ready .menu-toggle { display: inline-flex; padding: 8px 10px; font-size: 12px; }
    .workspace { margin-left: 0; } .topbar { height: 59px; padding: 0 18px; } .topbar-label { display: none; }
    main { padding: 25px 18px; } h1 { font-size: 29px; } .page-heading { margin-bottom: 23px; }
    .workflow-strip a { padding: 11px 7px; flex-direction: column; gap: 6px; } .workflow-strip strong { font-size: 10px; } .workflow-strip .icon { display: none; }
    .panel, .compose-body, .asset-card { padding: 20px; }
    .form-grid, .detail-grid, .inventory-fieldset, .inventory-section .detail-grid, .policy-grid, .transfer-steps { grid-template-columns: 1fr; }
    .list-heading, .record-heading { flex-direction: column; align-items: flex-start; }
    .record-heading h2 { font-size: 23px; } .record-actions { gap: 12px; }
    .focus-card { padding: 26px; } .focus-card h2 { font-size: 29px; }
    .stat > span { font-size: 11px; gap: 6px; } .stat small { font-size: 10px; }
    .section-tabs a { padding: 12px; font-size: 12px; }
    .system-state { margin-left: 0; gap: 9px; } .system-heading { font-size: 12px; }
    .source-card-main { padding: 18px; gap: 12px; } .source-card-title { align-items: flex-start; }
    .source-buttons { padding: 0 18px 18px; } .source-card-details > summary { padding: 11px 18px; }
    .source-progress { grid-template-columns: 1fr; margin: 0 18px 18px; padding: 16px; gap: 16px; }
    .source-review-progress { border-left: 0; padding-left: 0; border-top: 1px solid #d9e2d4; padding-top: 16px; }
    .diagnosis-finding > summary { flex-direction: column; align-items: flex-start; gap: 12px; }
    .finding-status { max-width: none; } .finding-body { padding: 5px 16px 16px; }
    .filter-bar { padding: 15px; } .local-filters { padding: 0; }
    footer { display: block; } footer span { display: block; margin-top: 8px; max-width: none; }
}
@media (prefers-reduced-motion: no-preference) { a, button { transition: background-color .14s, border-color .14s; } }
.control-intro { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.control-intro h2 { font-size: clamp(25px, 2.5vw, 36px); margin: 8px 0 12px; }
.control-intro p { max-width: 750px; line-height: 1.7; }
.control-intro > a { flex-shrink: 0; }
.control-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #d6e2d8; border: 1px solid #d6e2d8; border-radius: 12px; overflow: hidden; margin: 0 0 24px; }
.control-steps li { padding: 22px; background: #edf3e9; }
.control-steps b, .control-steps span { display: block; }
.control-steps span { font-size: 13px; margin-top: 7px; color: #4b665a; }
.control-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 12px; }
.control-metrics > div { padding: 24px; border: 1px solid #d6e2d8; border-radius: 12px; background: #fff; }
.control-metrics strong { font-size: 32px; display: block; color: #275b49; }
.control-metrics b, .control-metrics span { display: block; margin-top: 8px; }
.control-metrics span { font-size: 13px; line-height: 1.5; color: #54695f; }
.control-metrics .needs-attention { background: #fff9ec; border-color: #ebdbb4; }
.component-summary { border-top: 1px solid #e0e7e2; padding: 18px 0; }
.component-summary .section-heading { margin-bottom: 10px; }
.component-summary h3 { margin: 0; }
.component-summary p { line-height: 1.6; overflow-wrap: anywhere; }
.component-summary details { margin-top: 12px; }
.stat strong.stat-status { font-size: clamp(21px, 2vw, 28px); }
.followup-metrics { margin-top: 18px; }
.control-metrics .followup-complete { background: #edf5ef; }
.diagnosis-original { margin: 24px 0; padding: 16px 20px; border: 1px solid #d6e2d8; border-radius: 10px; background: #f6f8f4; }
.diagnosis-original > summary { font-weight: 600; cursor: pointer; }
.followup-closed { border-left: 4px solid #548466; padding-left: 20px; }
.followup-case { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px; background: #f2f6ef; border-radius: 10px; margin: 16px 0; }
.followup-case p { margin: 6px 0; }
.followup-case .button { flex-shrink: 0; }
.followup-link { padding: 12px 0; }
.followup-link .form-grid { margin-top: 18px; }
[id^="tema-"], #seguito { scroll-margin-top: 24px; }
@media (max-width: 700px) {
    .followup-case { flex-direction: column; align-items: flex-start; }
    .component-summary .section-heading { flex-direction: column; align-items: flex-start; }
}
.page-controls .copy-request { background: #f3f7f1; border-radius: 8px; padding: 20px; }
.page-controls .copy-request p { font-size: 14px; line-height: 1.7; }
.page-controls .panel > summary { font-weight: 700; cursor: pointer; }
.page-controls [data-control-progress] { padding: 14px 0; color: #44614f; }
.page-controls .panel details li { margin-bottom: 8px; }
@media (max-width: 900px) {
    .control-intro { flex-direction: column; align-items: flex-start; }
    .control-steps, .control-metrics { grid-template-columns: 1fr; }
}
.control-closure { border-top: 4px solid #38694d; scroll-margin-top: 24px; }
.closure-points { list-style: none; margin: 20px 0; padding: 0; }
.closure-points li { padding: 12px 0; border-bottom: 1px solid #dbe5dc; }
.closure-points small { display: block; margin-top: 5px; color: #58705e; }
.residual-selection { padding: 20px; border: 1px solid #dbe5dc; border-radius: 12px; background: #f5f8f1; }
.followup-residual { border-left: 3px solid #bc963a; padding-left: 16px; }
@media print {
    .sidebar, .topbar, .workflow-strip, .section-tabs, .filter-bar, footer, form, .back-link { display: none !important; }
    .workspace { margin: 0; } main { padding: 0; max-width: none; }
    .tab-panel[hidden] { display: block !important; } .panel { break-inside: avoid; } body { background: white; }
}
