@font-face{font-family:LocalUI;src:local("Segoe UI");font-display:swap}
:root{font-family:LocalUI,"Segoe UI",Arial,sans-serif;color:#1a202c;background:#fafbfc;font-size:14px;--ink:#0e4f88;--muted:#586b82;--line:#e2e8f0;--teal:#0e4f88;--teal-light:#eaf2fb;--paper:#fff;--danger:#b34e3e;--amber:#9d6b26;--shadow:0 4px 22px #122b4606}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}a{color:var(--teal);text-decoration:none}a:hover{text-decoration:underline}button{border:0}button svg,a svg{width:18px;height:18px;flex:none}svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}h1,h2,h3,p{margin:0}h1{font-size:32px;font-weight:600;letter-spacing:-1px;line-height:1.2}h2{font-size:20px;font-weight:600;letter-spacing:-.4px}h3{font-size:15px;font-weight:600}p{line-height:1.6}
.skip-link{position:fixed;top:-100px;left:20px;background:white;padding:12px;z-index:100}
.skip-link:focus{top:10px}
.boot{height:100vh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px;color:var(--muted)}
.boot-mark{display:grid;place-items:center;width:56px;height:56px;background:var(--ink);color:white;border-radius:16px;font:30px Georgia,serif}
.shell{display:grid;grid-template-columns:224px 1fr;min-height:100vh}
.sidebar{background:#0e4f88;color:#d4deea;position:fixed;inset:0 auto 0 0;width:224px;display:flex;flex-direction:column;padding:32px 18px 20px;z-index:20}
.brand{display:flex;align-items:center;gap:12px;padding:0 13px 38px;color:white}
.brand-mark{width:37px;height:37px;border:1px solid #586b82;border-radius:11px;display:grid;place-items:center;font:25px Georgia,serif;color:#e2e8f0}
.brand-name{font-size:19px;letter-spacing:.4px;font-weight:600}
.brand-sub{font-size:12px;letter-spacing:2.2px;text-transform:uppercase;margin-top:5px;color:#586b82}
.nav-label{font-size:12px;text-transform:uppercase;letter-spacing:1.8px;color:#586b82;padding:0 16px;margin:9px 0 13px}
.main-nav{display:grid;gap:5px}
.nav-button{width:100%;display:flex;align-items:center;gap:13px;color:#c4d5e8;background:transparent;padding:13px 15px;text-align:left;border-radius:7px;font-size:14px}
.nav-button svg{width:19px;height:19px}
.nav-button:hover{background:#ffffff08}
.nav-button.active{background:#ffffff0c;color:white;box-shadow:inset 3px 0 #586b82}
.nav-count{margin-left:auto;background:#ffffff12;padding:2px 7px;border-radius:4px;font-size:13px;color:#d4deea}
.sidebar-bottom{margin-top:auto}
.local-note{margin:25px 13px;padding:16px 0 20px;border-top:1px solid #ffffff13;border-bottom:1px solid #ffffff13}
.local-dot{display:inline-block;width:6px;height:6px;background:#586b82;border-radius:50%;margin-right:7px}
.local-note strong{font-size:13px;font-weight:500;color:#c4d5e8}
.local-note p{font-size:12px;color:#586b82;margin-top:8px}
.account{display:flex;align-items:center;gap:10px;padding:0 12px}
.avatar{height:31px;width:31px;border-radius:50%;background:#25374d;display:grid;place-items:center;color:#d4deea;font-size:13px}
.account strong{display:block;color:#e2e8f0;font-size:13px;font-weight:500}
.account small{font-size:12px;color:#586b82;display:block;margin-top:4px}
.workspace{grid-column:2;min-width:0}
.topbar{height:78px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 44px;background:#fafbfc}
.breadcrumbs{font-size:14px;color:var(--muted);display:flex;align-items:center;gap:10px}
.breadcrumbs strong{font-weight:500;color:#465a72}
.topbar-right{display:flex;align-items:center;gap:18px;font-size:13px;color:#586b82}
.mode-pill{border:1px solid #d4deea;padding:6px 10px;border-radius:5px;color:#465a72;background:#f4f7fb}
.main{max-width:1600px;margin:auto;padding:38px 44px 48px}
.eyebrow{text-transform:uppercase;font-size:12px;letter-spacing:1.7px;font-weight:600;color:#586b82;margin-bottom:12px}
.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}
.page-heading p{font-size:14px;color:var(--muted);margin-top:10px}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:6px;background:white;border:1px solid #d4deea;min-height:38px;padding:9px 15px;color:#25374d;font-size:14px;font-weight:600;white-space:nowrap;text-decoration:none}
.button:hover{text-decoration:none;background:#f4f7fb}
.button.primary{background:var(--teal);border-color:var(--teal);color:white}
.button.primary:hover{background:#093c69}
.button.dark{background:var(--ink);border-color:var(--ink);color:white}
.button.ghost{background:transparent;border-color:transparent}
.button.danger{color:var(--danger);border-color:#e7d3cc}
.button.small{font-size:13px;min-height:29px;padding:5px 10px}
.button.icon-only{width:34px;padding:6px}
.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:28px}
.stat{background:var(--paper);border:1px solid var(--line);border-radius:9px;padding:20px 22px;box-shadow:var(--shadow)}
.stat-top{display:flex;align-items:center;justify-content:space-between;color:#586b82;font-size:13px}
.stat-top svg{width:17px;height:17px;color:#586b82}
.stat-value{font-size:31px;font-weight:500;letter-spacing:-1px;margin:12px 0 8px;color:#1a202c}
.stat-note{font-size:12px;color:#586b82}
.stat-accent{border-top:3px solid #586b82;padding-top:18px}
.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:24px;align-items:start}
.panel{background:white;border:1px solid var(--line);border-radius:9px;box-shadow:var(--shadow);overflow:hidden}
.panel-head{padding:22px 24px;display:flex;justify-content:space-between;gap:14px;align-items:center;border-bottom:1px solid #e2e8f0}
.panel-title{display:flex;align-items:center;gap:10px}
.panel-title h2{font-size:16px}
.count-badge{font-size:12px;padding:3px 7px;background:#f4f7fb;border-radius:4px;color:#586b82}
.panel-body{padding:24px}
.search{position:relative;width:225px}
.search svg{position:absolute;left:12px;top:11px;width:15px;height:15px;color:#586b82}
.search input{width:100%;padding:10px 10px 10px 35px;border:1px solid #e2e8f0;border-radius:5px;font-size:13px;background:#fafbfc;outline-color:#c4d5e8}
.case-table{width:100%;border-collapse:collapse;text-align:left}
.case-table th{font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:1px;color:#586b82;background:#fafbfc;padding:14px 24px;border-bottom:1px solid #e2e8f0}
.case-table td{padding:20px 24px;border-bottom:1px solid #e2e8f0;vertical-align:middle;font-size:14px}
.case-table tr:last-child td{border-bottom:0}
.case-table tbody tr{cursor:pointer}
.case-table tbody tr:hover{background:#fafbfc}
.person{display:flex;align-items:center;gap:12px}
.person-icon{width:34px;height:38px;border-radius:7px;color:#586b82;background:#f4f7fb;display:grid;place-items:center}
.person-icon svg{width:17px;height:17px}
.person strong{font-size:14px;color:#1a202c;font-weight:600}
.person small{display:block;font-size:12px;color:#586b82;margin-top:6px}
.badge{display:inline-flex;gap:5px;align-items:center;border-radius:4px;padding:5px 8px;background:#e2e8f0;color:#465a72;font-size:12px;font-weight:500;white-space:nowrap}
.badge.warn{background:#fbf1df;color:#9c7c42}
.badge.danger{background:#faeae5;color:#ae5f4e}
.badge.neutral{background:#f4f7fb;color:#586b82}
.badge.blue{background:#f4f7fb;color:#586b82}
.small-dot{width:4px;height:4px;border-radius:50%;background:currentColor}
.empty{min-height:270px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px;color:var(--muted)}
.empty-icon{height:54px;width:54px;background:#f4f7fb;border-radius:14px;display:grid;place-items:center;margin-bottom:18px;color:#586b82}
.empty-icon svg{height:25px;width:25px}
.empty h3{color:#1a202c;margin-bottom:8px}
.empty p{max-width:380px;font-size:14px;margin-bottom:20px}
.guide{padding:24px;border-radius:9px;background:#e2e8f0;border:1px solid #d4deea}
.guide-label{font-size:12px;text-transform:uppercase;letter-spacing:1.5px;color:#586b82;margin-bottom:13px}
.guide h2{font-family:Georgia,"Times New Roman",serif;font-size:24px;font-weight:400;color:#25374d;line-height:1.2}
.guide p{font-size:13px;color:#586b82;margin-top:12px}
.steps{display:grid;gap:20px;margin-top:26px}
.step{display:flex;gap:11px;align-items:flex-start}
.step-number{font-size:12px;border:1px solid #c4d5e8;color:#465a72;border-radius:50%;min-width:23px;height:23px;display:grid;place-items:center}
.step strong{font-size:13px;color:#465a72;font-weight:600}
.step p{font-size:12px;margin-top:5px}
.quiet-note{display:flex;align-items:flex-start;gap:10px;margin-top:18px;padding:18px 4px;color:#586b82;font-size:12px;line-height:1.6}
.quiet-note svg{width:16px;height:16px;flex:none;margin-top:1px}
.footer-note{display:flex;justify-content:space-between;font-size:12px;color:#586b82;margin-top:26px;padding:0 4px}
.tabs{display:flex;gap:26px;border-bottom:1px solid #d4deea;margin-bottom:25px;overflow:auto}
.tab{background:transparent;color:#586b82;white-space:nowrap;padding:0 2px 14px;font-size:14px;border-bottom:2px solid transparent}
.tab.active{color:#0e4f88;border-bottom-color:#0e4f88;font-weight:600}
.tab .count-badge{margin-left:5px}
.back-button{padding-left:0;margin-bottom:17px;color:#586b82}
.case-heading{margin-bottom:22px}
.case-heading h1{font-size:28px;max-width:800px}
.case-subtitle{display:flex;gap:14px;align-items:center;margin-top:11px;color:#586b82;font-size:13px;flex-wrap:wrap}
.case-layout{display:grid;grid-template-columns:200px minmax(0,1fr);gap:22px;align-items:start}
.section-menu{display:grid;gap:3px;position:sticky;top:20px}
.section-menu button{background:transparent;border-radius:5px;color:#586b82;text-align:left;padding:10px 12px;font-size:13px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.section-menu button:hover{background:#e2e8f0}
.section-menu button.active{background:#eaf2fb;color:#0e4f88;font-weight:600}
.section-menu .section-label{font-size:12px;color:#586b82;text-transform:uppercase;letter-spacing:1.4px;margin:18px 12px 6px}
.section-menu .tiny-count{font-size:12px;color:#586b82}
.editor-panel{padding:26px}
.editor-title{margin-bottom:24px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.editor-title p{font-size:13px;color:var(--muted);margin-top:7px}
.editor-fields{display:grid;gap:18px}
.field{display:block;min-width:0}
.field-label{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:13px;font-weight:500;color:#465a72;margin-bottom:8px}
.field-hint{font-weight:400;font-size:12px;color:#586b82}
.field input,.field select,.field textarea,.plain-input{width:100%;background:#fafbfc;border:1px solid #d4deea;padding:10px 11px;border-radius:5px;color:#1a202c;min-height:38px;outline-color:#586b82;font-size:14px;box-shadow:none}
.field textarea{min-height:77px;resize:vertical;line-height:1.55}
.field input:focus,.field textarea:focus,.field select:focus{background:white;border-color:#586b82}
.field input:disabled{background:#f4f7fb;color:#586b82}
.fact{border:1px solid #e2e8f0;border-radius:6px;padding:16px;background:#fff}
.fact-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px}
.fact-head .field-label{margin-bottom:0;font-size:14px;color:#465a72}
.fact-state{border:0;border-radius:4px;padding:5px 23px 5px 8px;font-size:12px;background:#f4f7fb;color:#586b82;max-width:195px}
.fact-state[data-state=conflict]{background:#faeae5;color:#ae5f4e}
.fact-state[data-state=known]{background:#e2e8f0;color:#465a72}
.fact-state[data-state=confirmed_absent]{background:#f4f7fb;color:#586b82}
.fact-message{font-size:13px;color:#586b82;line-height:1.5;padding:4px 0}
.review-details{margin-top:10px;border-top:1px solid #e2e8f0;padding-top:8px}
.review-details>summary{list-style:none;cursor:pointer;color:#586b82;font-size:12px;display:flex;gap:6px;align-items:center}
.review-details>summary:before{content:'+';display:inline-block;width:13px;color:#465a72}
.review-details[open]>summary:before{content:'−'}
.review-details .review-body{margin-top:13px;display:grid;gap:12px}
.inline-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.nested-group{border:1px solid #e2e8f0;border-radius:6px;overflow:hidden}
.nested-group>summary{padding:15px 16px;background:#fafbfc;color:#465a72;font-size:14px;font-weight:500;cursor:pointer;display:flex;align-items:center;gap:10px;list-style:none}
.nested-group>summary:before{content:'›';font-size:18px;font-weight:400;color:#586b82}
.nested-group[open]>summary:before{transform:rotate(90deg)}
.nested-body{padding:16px;display:grid;gap:14px}
.collection{border:1px solid #e2e8f0;border-radius:7px;padding:18px;background:#fff}
.collection-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.array-items{display:grid;gap:10px}
.array-card{border:1px solid #d4deea;border-radius:5px;overflow:hidden}
.array-card>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;cursor:pointer;padding:13px 14px;background:#fafbfc;list-style:none;color:#465a72;font-size:13px}
.array-card>summary .item-name{display:flex;align-items:center;gap:8px;min-width:0;overflow-wrap:anywhere}
.array-card>summary .item-index{color:#586b82;font-size:12px}
.array-card>.nested-body{background:white}
.array-empty{padding:15px 0;color:#586b82;font-size:13px;line-height:1.6}
.array-add{margin-top:12px}
.optional-placeholder{padding:12px;border:1px dashed #d4deea;border-radius:5px;color:#586b82;font-size:13px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.object-meta{font-size:12px;color:#586b82;overflow-wrap:anywhere;line-height:1.5}
.save-status{font-size:12px;color:#586b82;display:flex;align-items:center;gap:6px}
.save-status.dirty{color:#a97a35}
.sticky-save{position:sticky;bottom:16px;background:#fffffff5;box-shadow:0 4px 24px #122b4617;border:1px solid #d4deea;border-radius:8px;padding:13px 18px;margin-top:20px;display:flex;justify-content:space-between;align-items:center;gap:12px;z-index:5}
.overview-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.overview-card{padding:24px}
.overview-card .card-icon{width:32px;height:32px;background:#e2e8f0;color:#586b82;border-radius:8px;display:grid;place-items:center;margin-bottom:18px}
.overview-card .card-icon svg{width:16px;height:16px}
.overview-card h3{font-size:14px;margin-bottom:8px}
.overview-card p{font-size:13px;color:#586b82;line-height:1.7}
.overview-card .button{margin-top:16px}
.key-values{display:grid;gap:14px;margin-top:20px}
.key-value{display:flex;justify-content:space-between;gap:16px;font-size:13px}
.key-value span{color:#586b82}
.key-value strong{font-weight:500;color:#465a72;text-align:right}
.notice{padding:16px 18px;border:1px solid #d4deea;border-radius:6px;background:#f4f7fb;font-size:13px;color:#465a72;line-height:1.65;display:flex;gap:11px}
.notice svg{flex:none;width:17px;height:17px;margin-top:1px}
.notice.warn{background:#f4f7fb;border-color:#ece1c4;color:#a08852}
.notice.error{background:#fff3ee;border-color:#ecd8cb;color:#af7461}
.notice+.panel{margin-top:20px}
.upload-zone{border:1px dashed #c4d5e8;border-radius:7px;padding:32px;text-align:center;background:#fafbfc;cursor:pointer;position:relative}
.upload-zone svg{width:27px;height:27px;color:#465a72;margin-bottom:12px}
.upload-zone h3{font-size:14px;color:#465a72}
.upload-zone p{font-size:12px;color:#586b82;margin-top:8px}
.upload-zone input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}
.upload-zone:focus-within{outline:2px solid #465a72}
.files-list{display:grid;gap:9px;margin-top:20px}
.file-row{padding:14px;border:1px solid #d4deea;border-radius:5px;display:flex;align-items:center;gap:12px}
.file-row svg{width:19px;height:19px;color:#586b82;flex:none}
.file-row .file-info{min-width:0;flex:1}
.file-row strong{font-size:13px;font-weight:500;display:block;overflow-wrap:anywhere;color:#25374d}
.file-row small{display:block;color:#586b82;font-size:12px;margin-top:5px}
.file-row .button{margin-left:auto}
.choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.choice-card{position:relative;border:1px solid #d4deea;border-radius:6px;padding:17px;display:flex;gap:11px;align-items:flex-start;cursor:pointer;background:#fff}
.choice-card:has(input:checked){background:#eaf2fb;border-color:#586b82}
.choice-card input{accent-color:#0e4f88;margin-top:2px}
.choice-card strong{font-size:13px;font-weight:500;color:#25374d;line-height:1.5}
.choice-card small{display:block;color:#586b82;font-size:12px;margin-top:6px;line-height:1.5}
.documents-choices{display:grid;gap:9px;margin-top:18px}
.doc-choice{display:flex;align-items:center;gap:12px;padding:13px 15px;border:1px solid #e2e8f0;border-radius:5px;cursor:pointer;background:#fff}
.doc-choice:has(input:checked){background:#f4f7fb;border-color:#c4d5e8}
.doc-choice input{accent-color:#0e4f88}
.doc-code{font-size:12px;color:#586b82;background:#e2e8f0;border-radius:3px;padding:4px 5px;font-family:monospace}
.doc-name{font-size:13px;color:#465a72}
.generate-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:20px}
.generate-side{display:grid;gap:16px}
.generate-side .panel-body{padding:22px}
.generate-side h3{font-size:14px;margin-bottom:14px}
.generate-side p{font-size:12px;color:#586b82;margin:12px 0}
.generate-side .button{width:100%;margin-top:8px}
.form-divider{height:1px;background:#e2e8f0;margin:22px 0}
.check-summary{padding:21px 24px;display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid #e2e8f0}
.check-summary strong{font-size:14px;font-weight:500}
.check-summary p{font-size:13px;color:#586b82;margin-top:6px}
.issues{display:grid}
.issue{padding:18px 24px;border-bottom:1px solid #e2e8f0;display:flex;gap:13px}
.issue:last-child{border-bottom:0}
.issue-icon{margin-top:2px;color:#bc866b;flex:none}
.issue-icon svg{height:17px;width:17px}
.issue-body{min-width:0;flex:1}
.issue h3{font-size:14px;font-weight:500;line-height:1.55;color:#695d49}
.issue p{font-size:13px;color:#a3977f;margin-top:6px}
.issue-meta{display:flex;gap:8px;margin-top:9px;font-size:12px;color:#b5ac95;align-items:center;flex-wrap:wrap}
.issue .button{margin-left:auto;align-self:flex-start}
.history-list{display:grid;gap:13px}
.package-card{padding:22px}
.package-top{display:flex;align-items:center;justify-content:space-between;gap:16px}
.package-top h3{font-size:14px;font-weight:600;color:#25374d}
.package-top small{display:block;font-size:12px;color:#586b82;margin-top:7px}
.package-files{margin-top:15px;display:flex;gap:8px;flex-wrap:wrap}
.package-files a{font-size:12px;background:#f4f7fb;color:#465a72;border:1px solid #d4deea;padding:7px 10px;border-radius:4px;display:flex;gap:6px;align-items:center}
.package-files a svg{width:13px;height:13px}
.package-actions{border-top:1px solid #e2e8f0;padding-top:14px;margin-top:17px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.review-confirm{display:flex;align-items:flex-start;gap:8px;font-size:12px;color:#586b82;line-height:1.55;flex:1}
.review-confirm input{accent-color:#0e4f88}
.timeline{padding-left:14px}
.timeline-item{border-left:1px solid #d4deea;padding:0 0 23px 23px;position:relative}
.timeline-item:before{content:'';position:absolute;width:7px;height:7px;border-radius:50%;background:#586b82;left:-4px;top:4px;border:2px solid #f4f7fb}
.timeline-item strong{font-size:13px;font-weight:500;color:#465a72}
.timeline-item p{font-size:12px;color:#586b82;margin-top:6px}
.timeline-item:last-child{padding-bottom:0}
.toast{position:fixed;bottom:26px;left:calc(50% + 112px);transform:translateX(-50%) translateY(20px);background:#0e4f88;color:white;padding:13px 20px;border-radius:7px;box-shadow:0 8px 30px #122b4622;z-index:100;font-size:14px;opacity:0;pointer-events:none;transition:.2s;max-width:min(600px,80vw)}
.toast.visible{opacity:1;transform:translateX(-50%) translateY(0)}
.toast.error{background:#8d4938}
dialog{border:1px solid #d4deea;border-radius:12px;box-shadow:0 20px 100px #122b4620;padding:0;width:min(600px,90vw);max-height:90vh;color:var(--ink);background:#fff}
dialog::backdrop{background:#122b46b3;backdrop-filter:blur(3px)}
.modal-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:25px 28px;border-bottom:1px solid #e2e8f0}
.modal-head h2{font-size:20px}
.modal-body{padding:27px 28px;display:grid;gap:20px}
.modal-foot{padding:18px 28px;background:#f4f7fb;border-top:1px solid #d4deea;display:flex;justify-content:flex-end;gap:10px}
.modal-body p{font-size:14px;color:#586b82;line-height:1.75}
.modal-error{font-size:13px;color:#aa6047;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.pdf-modal{width:min(1150px,96vw);height:92vh}
.pdf-modal .modal-head{padding:14px 20px}
.pdf-modal iframe{width:100%;height:calc(100% - 70px);border:0;background:#e2e8f0}
.spinner{display:inline-block;width:13px;height:13px;border:2px solid #c4d5e8;border-top-color:#465a72;border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.mobile-menu{display:none}
.section-help{font-size:13px;color:#586b82;line-height:1.7;margin-top:10px}
.hidden{display:none!important}
.sr-only{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.skeleton{height:12px;background:#e2e8f0;border-radius:4px;animation:pulse 1.2s infinite}
@keyframes pulse{50%{opacity:.4}}
@media(min-width:1600px){.main{padding-top:46px}
.sidebar{width:240px}
.shell{grid-template-columns:240px 1fr}
.content-grid{grid-template-columns:minmax(0,1fr) 300px}}
@media(max-width:1150px){.sidebar{width:190px;padding-inline:12px}
.shell{grid-template-columns:190px 1fr}
.main{padding:30px 26px}
.topbar{padding:0 26px}
.content-grid{grid-template-columns:1fr}
.dashboard-aside{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.steps{grid-template-columns:repeat(3,1fr);gap:14px}
.guide{grid-column:1/-1}
.guide h2{font-size:22px}
.guide p{max-width:500px}
.quiet-note{margin:0}
.case-table th,.case-table td{padding-inline:18px}
.stats{gap:10px}
.stat{padding:18px 17px}
.case-layout{grid-template-columns:170px minmax(0,1fr)}
.generate-layout{grid-template-columns:1fr}
.generate-side{grid-template-columns:1fr 1fr}
.toast{left:calc(50% + 95px)}}
@media(max-width:840px){.sidebar{width:74px;padding:24px 9px}
.shell{grid-template-columns:74px 1fr}
.brand{padding:0 9px 32px}
.brand-mark{width:37px;min-width:37px}
.brand-copy,.nav-label,.nav-button span,.local-note,.account-copy{display:none}
.nav-button{justify-content:center;padding:14px}
.account{padding:0;justify-content:center}
.main{padding:26px 22px}
.topbar{padding-inline:22px;height:65px}
.topbar-date{display:none}
.stats{grid-template-columns:repeat(2,1fr)}
.page-heading{align-items:flex-start}
.page-heading h1{font-size:28px}
.case-table .hide-medium{display:none}
.case-layout{grid-template-columns:1fr}
.section-menu{position:static;display:flex;overflow:auto;gap:6px;padding-bottom:8px}
.section-menu button{white-space:nowrap;background:white;border:1px solid #d4deea;padding:9px 12px}
.section-menu .section-label{display:none}
.section-menu .tiny-count{margin-left:7px}
.overview-grid{grid-template-columns:1fr 1fr}
.toast{left:calc(50% + 37px)}
.tabs{gap:20px}}
@media(max-width:560px){.sidebar{display:none}
.shell{display:block}
.main{padding:22px 16px}
.topbar{padding-inline:16px;height:58px}
.breadcrumbs{font-size:12px}
.topbar-right{gap:8px}
.mode-pill{font-size:12px;padding:5px 7px}
.page-heading{gap:12px}
.page-heading h1{font-size:25px}
.page-heading .button{font-size:0;width:38px;padding:9px}
.page-heading .button svg{width:18px}
.stats{gap:8px}
.stat{padding:15px}
.stat-value{font-size:27px}
.stat-top{font-size:12px}
.stat-note{font-size:12px}
.panel-head{padding:16px;align-items:flex-start;flex-direction:column}
.panel-head .search{width:100%}
.case-table th,.case-table td{padding:16px 14px}
.case-table .hide-small{display:none}
.person strong{font-size:13px}
.person-icon{display:none}
.case-table th{font-size:8px}
.badge{font-size:12px}
.steps{grid-template-columns:1fr}
.dashboard-aside{display:block}
.quiet-note{padding-top:20px}
.footer-note{gap:20px;font-size:12px}
.case-heading h1{font-size:23px}
.case-heading{align-items:flex-start}
.case-heading .actions .button{font-size:13px;padding:8px 10px}
.case-heading .actions .button svg{display:none}
.tabs{gap:19px;margin-bottom:20px}
.tab{font-size:13px}
.overview-grid,.inline-fields,.choice-grid,.generate-side{grid-template-columns:1fr}
.editor-panel{padding:18px}
.fact{padding:13px}
.fact-head{gap:8px;align-items:flex-start}
.fact-head .field-label{font-size:13px}
.fact-state{max-width:155px;font-size:12px}
.panel-body{padding:18px}
.issue{padding:16px;gap:10px}
.issue .button{font-size:12px;padding:5px 7px}
.check-summary{padding:18px;align-items:flex-start}
.check-summary strong{font-size:14px}
.sticky-save{padding:11px;bottom:10px}
.save-status{font-size:12px}
.toast{left:50%;max-width:90vw;font-size:13px}
.package-card{padding:18px}
.package-top{align-items:flex-start}
.modal-head{padding:20px}
.modal-body{padding:20px}
.modal-foot{padding:16px 20px}
.collection-head{align-items:flex-start}
.section-menu{margin-right:-16px;padding-right:16px}
.button{font-size:13px}}
.pdf-modal[open]{display:flex;flex-direction:column;overflow:hidden}
.pdf-modal .modal-head{flex:none}
.pdf-preview-root{min-height:0;flex:1;display:flex;flex-direction:column}
.pdf-toolbar{padding:10px 18px;background:#f4f7fb;border-bottom:1px solid #d4deea;display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}
.pdf-page-count{font-size:13px;color:#586b82}
.pdf-zoom{display:flex;align-items:center;gap:8px}
.pdf-scale{font-size:12px;color:#465a72;min-width:65px;text-align:center}
.pdf-viewport{min-height:0;flex:1;overflow:auto;background:#e2e8f0;padding:4px 0 28px;scrollbar-gutter:stable}
.pdf-page{width:max-content;min-width:100%;padding:14px 24px 10px;display:flex;flex-direction:column;align-items:center;gap:8px}
.pdf-page-label{font-size:12px;color:#586b82}
.pdf-canvas-holder{background:#fff;box-shadow:0 2px 12px #122b4620;display:flex;align-items:center;justify-content:center;font-size:13px;color:#586b82;overflow:hidden;max-width:none;flex:none}
.pdf-canvas-holder canvas{display:block;flex:none}
.pdf-page-error{padding:30px;color:#af7260}
.pdf-loading{padding:35px;text-align:center;color:#465a72;font-size:14px;line-height:1.6}
@media(max-width:560px){.pdf-modal{width:98vw;height:96vh;max-width:98vw;max-height:96vh}
.pdf-modal .modal-head{padding:12px;align-items:flex-start}
.pdf-modal .modal-head h2{font-size:14px;overflow-wrap:anywhere;max-width:44vw}
.pdf-modal .modal-head .actions{flex-wrap:nowrap;gap:3px}
.pdf-modal .modal-head .button{font-size:12px;padding:5px 7px}
.pdf-modal .modal-head .button svg{width:13px;height:13px}
.pdf-toolbar{padding:8px 10px;gap:8px}
.pdf-page-count{font-size:12px}
.pdf-zoom{gap:4px}
.pdf-zoom .button{font-size:12px;padding:4px 7px;min-height:26px}
.pdf-scale{font-size:12px;min-width:53px}
.pdf-zoom .pdf-fit{display:none}
.pdf-page{padding:10px 12px}
.pdf-viewport{scrollbar-gutter:auto}}

/* Ordinary employee workflow: one value per field, optional lists when present. */
.directory-field{position:relative}
.directory-results{margin-top:7px;border:1px solid #c4d5e8;border-radius:7px;background:white;box-shadow:0 8px 22px #122b4612;max-height:310px;overflow-y:auto;grid-column:1/-1;position:relative;z-index:3}
.directory-results[hidden]{display:none!important}
.directory-results>button{width:100%;display:block;text-align:left;padding:12px 13px;background:#fff;border:0;border-bottom:1px solid #e2e8f0;color:#1a202c;cursor:pointer}
.directory-results>button:last-child{border-bottom:0}
.directory-results>button:hover,.directory-results>button:focus{background:#eaf2fb;outline:2px solid #586b82;outline-offset:-2px}
.directory-results strong{display:block;font-size:14px;line-height:1.5}
.directory-results span{display:block;margin-top:5px;font-size:13px;line-height:1.55;color:#465a72}
.directory-results small{display:block;margin-top:5px;font-size:12px;line-height:1.55;color:#586b82;overflow-wrap:anywhere}
.directory-empty{font-size:13px;line-height:1.6;padding:14px;color:#465a72}
.address-search{margin-bottom:20px}
.address-search input{width:100%}
.directory-selection{display:flex;gap:7px;align-items:flex-start;color:#465a72;font-size:12px;line-height:1.7;margin:10px 0 18px}
.directory-selection svg{width:14px;height:14px;flex:none;margin-top:2px}
.directory-selection a{text-decoration:underline}
.directory-status{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 0;border-bottom:1px solid #e2e8f0}
.directory-status strong{font-size:14px;color:#465a72}
.directory-status span{font-size:12px;color:#586b82;flex:1}
.directory-status .button{margin-left:auto}
.integration-state{padding:10px 14px;background:#f4f7fb;border-radius:5px}
.field-feedback{display:block;color:#a05838;font-size:13px;line-height:1.5;margin-top:6px}
.field-feedback:empty{display:none}
.field-extra{margin-top:18px;padding-top:14px}
.field-extra .form-grid{margin-top:16px}
.preset-preview:empty{display:none}
.preset-preview p{font-size:14px;line-height:1.75;color:#465a72;background:#f4f7fb;border-left:3px solid #c4d5e8;padding:13px 16px;margin:8px 0 10px}
.preset-preview .text-button{color:#465a72;text-align:left}
.field>input+input,.field>select+input{margin-top:9px}
.collection-help{font-size:13px;line-height:1.7;color:#586b82;margin:0 0 15px}
.directory-status small{display:block;margin-top:6px;color:#9c7358;line-height:1.6}
.integration-state p+p{margin-top:7px}
.integration-state .integration-error{color:#a05838}
.money-control{position:relative}
.money-control input{padding-right:105px!important;font-variant-numeric:tabular-nums}
.money-currency{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:12px;color:#586b82;pointer-events:none;white-space:nowrap}
.field input[type=date]{cursor:pointer}
.issue-body .issue-field-label{font-size:13px;color:#465a72;margin:0 0 6px}
.issue-path{display:block;font-size:12px;color:#586b82;margin-top:7px;overflow-wrap:anywhere}
.field [readonly]{background:#f4f7fb;color:#465a72}
.subsistence-entry{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;margin:0 0 16px;border:1px solid #d4deea;border-radius:6px;background:#f4f7fb}
.subsistence-entry strong{font-size:14px;color:#465a72;font-weight:500}
.subsistence-entry p{font-size:12px;color:#586b82;line-height:1.7;margin-top:5px}
.subsistence-entry .button{flex:none}
.subsistence-result{padding:16px;background:#f4f7fb;border-radius:6px}
.subsistence-result>strong{font-size:18px;color:#25374d}
.subsistence-result ul{padding-left:20px;margin:12px 0;font-size:13px;color:#465a72;line-height:1.8}
.subsistence-result .subsistence-source{font-size:12px;line-height:1.6}
.subsistence-source a{text-decoration:underline}
.modal-body [hidden]{display:none!important}
.currency-option{margin-top:12px}
.currency-option .text-button{color:#465a72}
.simple-case-layout{grid-template-columns:225px minmax(0,1fr);gap:26px}
.simple-section-menu{gap:5px}
.simple-section-menu button{justify-content:flex-start;font-size:14px;line-height:1.5;padding:12px 10px;align-items:flex-start}
.section-number{border:1px solid #c4d5e8;border-radius:50%;width:23px;height:23px;min-width:23px;display:grid;place-items:center;font-size:12px;line-height:1;background:#fafbfc}
.simple-section-menu button.active .section-number{background:#0e4f88;border-color:#0e4f88;color:white}
.menu-note{font-size:12px;color:#586b82;line-height:1.6;margin:20px 12px;max-width:180px}
.simple-case-layout .editor-panel{padding:30px 34px}
.simple-case-layout .editor-title{margin-bottom:30px}
.required-key{font-size:12px;color:#586b82;white-space:nowrap;padding-top:5px}
.required-mark{color:#aa7654;margin-left:4px}
.form-group{padding-bottom:28px;margin-bottom:28px;border-bottom:1px solid #e2e8f0}
.form-group:last-child{border-bottom:0;margin-bottom:0}
.form-group-heading{margin-bottom:19px}
.form-group-heading h3,.collection-heading h3{font-size:14px;color:#25374d}
.form-group-heading p{font-size:13px;color:#586b82;margin-top:6px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px}
.form-grid+.form-grid{margin-top:18px}
.field-wide{grid-column:1/-1}
.plain-form .field-label{justify-content:flex-start;font-size:14px;color:#465a72;margin-bottom:8px;gap:0}
.plain-form .field input,.plain-form .field select,.plain-form .field textarea{min-height:42px;font-size:14px;color:#1a202c;background:#fafbfc}
.plain-form .field textarea{min-height:78px}
.input-hint{display:block;font-size:12px;line-height:1.5;color:#586b82;margin-top:7px}
.field-invalid input,.field-invalid select,.field-invalid textarea{border-color:#bb7c5b!important;background:#fafbfc!important}
.plain-check{display:flex;align-items:flex-start;gap:9px;line-height:1.6;font-size:14px;color:#465a72;margin:14px 0}
.plain-check input{accent-color:#0e4f88;width:15px;height:15px;margin:2px 0 0;flex:none}
.form-grid .plain-check{margin:5px 0;align-self:center}
.document-id-choices{border:1px solid #d4deea;border-radius:6px;padding:16px;margin:0}
.document-id-choices legend{font-size:13px;color:#465a72;padding-inline:7px}
.collection-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.collection-heading .input-hint{margin-top:4px}
.simple-empty{display:flex;align-items:flex-start;gap:12px;background:#f4f7fb;border:1px solid #e2e8f0;border-radius:7px;padding:19px 20px;color:#465a72}
.simple-empty>svg{height:20px;width:20px;flex:none}
.simple-empty strong{font-size:14px;font-weight:500;color:#465a72}
.simple-empty p{font-size:12px;color:#586b82;margin-top:5px}
.simple-rows{display:grid;gap:12px}
.simple-row{border:1px solid #d4deea;border-radius:7px;overflow:hidden}
.simple-row>summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;background:#f4f7fb;padding:16px}
.simple-row>summary strong{font-size:14px;font-weight:500;color:#25374d;overflow-wrap:anywhere}
.simple-row>summary::-webkit-details-marker{display:none}
.row-number{font-size:12px;color:#586b82}
.row-chevron{margin-left:auto;color:#586b82;font-size:18px}
.simple-row[open] .row-chevron{transform:rotate(180deg)}
.simple-row-body{padding:23px}
.row-actions{display:flex;justify-content:flex-end;margin-top:15px}
.optional-details{border-top:1px solid #e2e8f0;margin-top:24px;padding-top:18px}
.optional-details>summary{font-size:13px;color:#586b82;cursor:pointer}
.optional-details .form-grid{margin-top:18px}
.step-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:32px;border-top:1px solid #e2e8f0;padding-top:22px}
.compact-upload{display:block;padding:24px}
.compact-upload h3{font-size:14px}
.document-workspace{display:grid;gap:24px;max-width:1120px}
.generation-actions{display:flex;align-items:center;gap:12px;margin-top:24px;flex-wrap:wrap}
.generation-notice{margin-top:16px}
.results-heading{display:flex;align-items:center;gap:12px;margin:6px 0 18px}
.results-heading h2{font-size:19px}
.exception-notice,.form-issues{margin-bottom:24px}
.exception-notice strong{font-weight:600}
.exception-notice ul{padding-left:18px;margin-bottom:0}
.exception-notice li+li{margin-top:6px}
.text-button{font-size:13px;background:none;padding:0;color:#756435;text-decoration:underline}
.success-check{margin-bottom:0}
.form-issues .issue h3{font-size:14px}
.plain-form [hidden]{display:none!important}
.address-preview{padding:14px 16px;background:#f4f7fb;border-radius:6px;margin-top:18px}
.address-preview>span{display:block;color:#586b82;font-size:12px;margin-bottom:6px}
.address-preview p{font-size:14px;color:#465a72;line-height:1.6}
.issue-section+.issue-section{border-top:1px solid #d4deea}
.issue-section-heading{display:flex;align-items:center;gap:10px;padding:16px 24px 8px;background:#fafbfc}
.issue-section-heading h3{font-size:14px;color:#465a72}
.issue-section .issue{padding-top:13px;padding-bottom:13px}
.more-issues>summary{cursor:pointer;font-size:13px;color:#465a72;padding:13px 24px;list-style-position:inside;background:#fafbfc}
.more-issues[open]>summary{border-bottom:1px solid #e2e8f0}
.issue-body .additional-issue{color:#856044;margin-top:8px}
.grouped-issues{padding-bottom:5px}
.card-readiness{margin-bottom:20px;border:1px solid #d4deea;border-radius:7px;background:#fafbfc}
.card-readiness>summary{display:flex;align-items:center;gap:10px;padding:13px 17px;cursor:pointer;font-size:14px;color:#465a72;list-style:none}
.card-readiness>summary>svg{width:17px;height:17px}
.card-readiness>summary:after{content:'⌄';margin-left:auto}
.card-readiness[open]>summary:after{transform:rotate(180deg)}
.card-readiness .form-issues{margin:0;border:0;border-top:1px solid #d4deea;border-radius:0 0 7px 7px;box-shadow:none}
@media(max-width:1150px){.simple-case-layout{grid-template-columns:190px minmax(0,1fr);gap:18px}
.simple-case-layout .editor-panel{padding:24px}
.simple-section-menu button{font-size:13px}}
@media(max-width:840px){.simple-case-layout{grid-template-columns:1fr}
.simple-section-menu{position:static;display:flex;gap:7px;overflow:auto}
.simple-section-menu button{align-items:center;white-space:nowrap}
.simple-section-menu .menu-note{display:none}
.section-number{width:21px;height:21px;min-width:21px}
.simple-case-layout .editor-panel{padding:24px}}
@media(max-width:560px){.form-grid{grid-template-columns:1fr;gap:16px}
.simple-case-layout .editor-panel{padding:20px 17px}
.field-wide{grid-column:auto}
.required-key{display:none}
.simple-row-body{padding:18px 14px}
.collection-heading{align-items:flex-start}
.collection-heading .button{font-size:12px;padding:5px 8px}
.simple-empty{padding:16px}
.case-heading .actions .button{font-size:13px;width:auto}
.case-heading .actions{justify-content:flex-end}
.case-heading .actions .button:first-child{padding-inline:10px}
.generation-actions .button{width:100%}
.document-id-choices{grid-column:auto}
.step-footer{gap:10px}
.simple-case-layout .editor-title h2{font-size:19px}
.form-group{padding-bottom:23px;margin-bottom:23px}}
.date-note{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:14px;color:var(--muted,#465a72);font-size:14px}
.attachment-plan-row{padding:14px 0;border-top:1px solid #e2e8f0}
.attachment-plan-row>.optional-details{margin:8px 0 0 27px}
.attachment-plan-row small{display:block;color:#465a72;font-weight:400;margin-top:4px}
.explicit-downloads{display:block!important}
.package-download-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-top:1px solid #e2e8f0}
.package-download-row>strong{font-size:14px;overflow-wrap:anywhere;font-weight:500}
.package-download-row .actions{flex-shrink:0;flex-wrap:wrap}
.package-download-row .button{width:auto!important;padding:8px 12px!important;border:1px solid #e2e8f0!important;border-radius:7px!important;font-size:14px!important}
.package-download-row .primary{background:#0e4f88!important;color:white!important}
.auth-page{display:grid;place-items:center;min-height:100vh;padding:24px}
.auth-card{width:min(460px,100%);padding:32px}
.auth-card .brand-mark{margin-bottom:20px}
.auth-card h1{font-size:26px}
.auth-card form{display:grid;gap:18px;margin-top:24px}
.staff-setup{max-width:800px;padding:28px}
.staff-table small{display:block;color:#465a72;margin-top:4px}
.case-lifecycle{display:flex;align-items:center;gap:12px;margin:0 0 20px;flex-wrap:wrap}
.lifecycle-tabs{margin-bottom:24px}
.sidebar-bottom>[data-action="logout"]{color:#e2e8f0;margin-top:14px}
@media(max-width:760px){.package-download-row{align-items:flex-start;flex-direction:column}
.staff-table{display:block;overflow-x:auto}
.staff-setup{padding:18px}
.attachment-plan-row>.optional-details{margin-left:0}}
/* The print actions refer to the saved package, never unsaved card edits. */
.package-print-actions{padding:16px 0 10px}.package-print-actions .section-help{margin:8px 0 0;max-width:760px}.print-format-note{font-weight:400;font-size:.85em;opacity:.8}
