/* v0.6 — the client portal's blue palette, adapted for a document workspace. */
@font-face{font-family:Montserrat;src:url('/static/fonts/montserrat-cyrillic-ext-wght-normal.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap;unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:Montserrat;src:url('/static/fonts/montserrat-cyrillic-wght-normal.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Montserrat;src:url('/static/fonts/montserrat-latin-ext-wght-normal.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Montserrat;src:url('/static/fonts/montserrat-latin-wght-normal.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{
  font-family:Montserrat,'Segoe UI',Arial,sans-serif;
  --brand:#0e4f88;--brand-hover:#093c69;--accent:#2b6cb0;--ink:#1a202c;
  --muted:#586b82;--line:#e2e8f0;--paper:#fff;--canvas:#fafbfc;
  --teal:var(--brand);--teal-light:#eaf2fb;--danger:#b42332;--amber:#865300;
  --success:#207346;--shadow:0 3px 16px #16385a05;
  color:var(--ink);background:var(--canvas);font-size:14px;line-height:1.5;
}
body{color:var(--ink);background:var(--canvas);-webkit-font-smoothing:antialiased}
::selection{background:#cde3fb;color:#153657}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
input,select,textarea{accent-color:var(--brand)}
input::placeholder,textarea::placeholder{color:#66778c;opacity:1}
button,a,summary,input,select,textarea{touch-action:manipulation}
button,.button,summary,input,select,textarea{transition:background-color 140ms ease,border-color 140ms ease,box-shadow 140ms ease,color 140ms ease}
button:disabled,.button[aria-disabled='true']{opacity:1;color:#67758a;background:#f0f3f7;border-color:#e0e6ee;box-shadow:none}
h1{font-size:30px;font-weight:650;letter-spacing:-.9px;line-height:1.25}
h2{letter-spacing:-.4px;line-height:1.4}h3{line-height:1.5}
p{line-height:1.65}

/* Persistent navigation and workspace. */
.shell{grid-template-columns:232px minmax(0,1fr)}
.sidebar{width:232px;background:var(--brand);padding:28px 16px 20px;color:#e8f1fa;overflow-y:auto}
.brand{padding:0 12px 32px;gap:12px}
.brand-mark{border-color:#8bb3d8;color:#fff;border-radius:11px;background:#ffffff09}
.brand-name{font-size:19px;letter-spacing:-.3px}.brand-sub{color:#d3e5f7;font-size:10px;letter-spacing:1.8px}
.nav-label{color:#c9def2;font-size:10px;letter-spacing:1.4px}
.nav-button{font-size:13px;line-height:1.5;min-height:46px;border-radius:8px;color:#e2edf8;padding:12px;gap:10px}
.nav-button:hover{background:#ffffff12;color:white}
.nav-button.active{color:#fff;background:#ffffff1c;box-shadow:inset 3px 0 #b5d9ff}
.nav-button:focus-visible,.sidebar a:focus-visible{outline-color:#fff;outline-offset:-3px}
.nav-count{font-size:11px;color:white;background:#ffffff20;padding:2px 7px}
.local-note{margin:24px 12px;padding:16px 0;border-color:#ffffff26}
.local-note strong,.account strong{color:#f4f8fc;font-size:12px}
.local-note p,.account small{color:#cfdfef;font-size:11px;line-height:1.6}
.avatar{background:#ffffff20;color:white;flex:none}.local-dot{background:#8ce3b0}
.account{padding:0 12px}.account-copy{min-width:0;overflow-wrap:anywhere}
.topbar{height:68px;background:#fff;padding:0 34px}
.breadcrumbs{font-size:12px}.breadcrumbs strong{color:#384d66}
.topbar-right{font-size:12px;color:var(--muted)}
.mode-pill{background:#f4f7fb;border-color:var(--line);color:#4a607b;border-radius:20px;font-size:11px}
.main{padding:32px 34px 40px;max-width:1620px}
.eyebrow{color:var(--muted);font-size:10px;letter-spacing:1.6px;margin-bottom:10px}
.page-heading{margin-bottom:26px}.page-heading p{font-size:14px;max-width:680px}
.button{min-height:42px;padding:10px 16px;font-size:13px;border-radius:8px;color:#334b66;border-color:#d4deea;background:#fff;line-height:1.4}
.button:hover{background:#f0f5fb;border-color:#a8bfd9}
.button.primary{background:var(--brand);border-color:var(--brand);color:#fff;box-shadow:0 2px 4px #0e4f8814}
.button.primary:hover{background:var(--brand-hover);border-color:var(--brand-hover)}
.button.dark{background:#213d5c;border-color:#213d5c;color:#fff}
.button.ghost{border-color:transparent;background:transparent}.button.ghost:hover{background:#edf3fa}
.button.danger{color:var(--danger);border-color:#edc8ce}.button.danger:hover{background:#fff1f3;border-color:#dc9ca7}
.button.small{min-height:36px;font-size:12px;padding:8px 12px}.button.icon-only{width:38px;min-height:38px;padding:8px;flex:none}
.button:disabled{background:#f0f3f7;border-color:#e0e6ee;color:#67758a;box-shadow:none}
.panel{border-radius:12px;border-color:var(--line)}.panel-head{padding:21px 24px;background:#fff}
.panel-title h2{font-size:17px;font-weight:600}.count-badge{background:#edf2f7;color:#435a76;font-size:11px;border-radius:5px;padding:3px 7px}
.panel-body{padding:24px}.footer-note{font-size:11px;line-height:1.5;color:#586b82;gap:20px}

/* List, lifecycle and help. */
.content-grid{grid-template-columns:minmax(0,1fr) 252px;gap:24px}
.cases-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px;flex-wrap:wrap}.cases-toolbar .lifecycle-tabs{margin-bottom:0}.cases-toolbar .search{flex:1 1 220px;max-width:290px;margin-left:auto}.cases-panel{overflow:hidden}.search-summary{flex-basis:100%;font-size:12px;color:var(--muted);margin-top:-6px}
.search{width:min(290px,48%)}.search input{font-size:13px;min-height:42px;border-radius:8px;background:#fafbfc;border-color:#c7d3e2}
.search svg{top:13px;color:#5b728e}
.case-table th{font-size:10px;letter-spacing:.7px;font-weight:600;color:#506580;background:#f7f9fc;padding:13px 22px}
.case-table td{font-size:12px;padding:16px 22px;color:#465a72}.case-table:not(.staff-table) td{vertical-align:middle}.case-table:not(.staff-table) td:last-child{font-variant-numeric:tabular-nums;white-space:nowrap}
.case-table:not(.staff-table) td>small{display:block;font-size:11px;line-height:1.5;color:var(--muted);margin-top:6px}
.case-table tbody tr:hover{background:#f3f7fc}
.case-table tbody tr:focus-visible{outline:3px solid var(--accent);outline-offset:-3px;background:#eef5ff}
.person strong{font-size:13px;line-height:1.5;color:#213349;font-weight:600;overflow-wrap:anywhere}.person small{font-size:11px;color:var(--muted);line-height:1.5;margin-top:4px}
.person-icon{background:#eaf2fb;color:var(--brand);flex:none}
.badge{background:#eaf7ee;color:#207346;font-size:11px;padding:5px 8px;border-radius:5px;line-height:1.4}
.badge.warn{background:#fff4d9;color:#805000}.badge.danger{background:#fff0f2;color:var(--danger)}
.badge.neutral{background:#edf2f7;color:#4d6078}.badge.blue{background:#eaf2fb;color:#18578d}
.lifecycle-tabs{display:flex;flex-wrap:wrap;gap:5px;border:0;background:#edf2f7;border-radius:10px;padding:5px;width:fit-content;max-width:100%;margin-bottom:24px;overflow:visible}
.lifecycle-tabs .tab{padding:9px 13px;min-height:38px;border:0;border-radius:7px;color:#4b607b;font-size:12px}
.lifecycle-tabs .tab:hover{background:#e1eaf5}.lifecycle-tabs .tab.active{background:white;color:var(--brand);box-shadow:0 1px 5px #153b6020}
.lifecycle-tabs .count-badge{background:#e5edf7;color:#31587f;margin-left:7px}
.guide{border-radius:12px;background:#f3f6fa;border-color:#e0e7f0;padding:22px}
.guide-label{font-size:10px;color:#536b87;letter-spacing:1.1px}
.guide h2{font-family:inherit;font-size:17px;font-weight:600;line-height:1.4;letter-spacing:-.3px;color:#294967}
.guide p{font-size:12px;color:#526b87}.steps{gap:20px;margin-top:22px}
.step-number{background:white;border-color:#c3d8ee;color:var(--brand);font-size:11px;min-width:25px;height:25px;font-weight:600}
.step strong{font-size:12px;line-height:1.5;color:#284e75}.step p{font-size:12px;line-height:1.65;margin-top:5px}.step>div{min-width:0}.quiet-note{color:var(--muted);font-size:12px}

/* A clear, comfortable data entry surface. */
.case-heading{align-items:flex-start;margin-bottom:16px}.case-heading h1{font-size:27px;overflow-wrap:anywhere}.case-identity{min-width:0;flex:1}.case-heading>.actions{justify-content:flex-end}.case-save{flex:none;gap:12px;min-height:42px}.case-save .save-status{white-space:nowrap}.case-lifecycle{margin-bottom:12px}
.case-subtitle{font-size:12px;line-height:1.7;color:var(--muted);margin-top:8px;max-width:650px}.back-button{font-size:12px;color:var(--muted);min-height:32px;margin-bottom:12px;padding-block:5px}
.tabs:not(.lifecycle-tabs){gap:24px;margin-bottom:20px}.tab{font-size:13px;color:#526982;min-height:42px}.tab.active{color:var(--brand);border-color:var(--brand)}
.simple-case-layout{grid-template-columns:205px minmax(0,1fr);gap:24px}
.section-menu{top:20px;gap:4px}.simple-section-menu button{font-size:13px;line-height:1.5;padding:12px 10px;min-height:48px;border-radius:8px;color:#4a607b;align-items:flex-start}.simple-section-menu button>span:last-child{padding-top:1px}
.section-menu button:hover{background:#f0f4f9}.section-menu button.active{background:#eaf2fb;color:var(--brand);font-weight:600}
.section-number{border-color:#c4d3e5;background:#fff;font-size:11px;flex:none}.simple-section-menu button.active .section-number{background:var(--brand);border-color:var(--brand)}
.menu-note{font-size:11px;line-height:1.65;color:var(--muted);margin:18px 10px}
.simple-case-layout .editor-panel{padding:24px 28px;container-type:inline-size}.simple-case-layout .editor-title{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:5px 16px;margin-bottom:20px}.editor-title>p{grid-column:1/-1;margin-top:0}.editor-title>.required-key{padding-top:0}
.editor-title h2{font-size:21px}.editor-title h2:focus{outline:none}.editor-title p{font-size:13px}.required-key{font-size:11px;color:var(--muted)}.required-mark{color:var(--danger)}
.form-group-heading h3,.collection-heading h3{font-size:15px;color:#24374f;font-weight:600}
.form-group-heading p,.collection-help{font-size:12px;color:var(--muted);line-height:1.65}.form-group-heading{margin-bottom:16px}
.form-grid{gap:21px 20px}.form-group{border-color:var(--line);margin-bottom:26px;padding-bottom:26px}
.field-label,.plain-form .field-label{font-size:13px;color:#344a64;font-weight:500;line-height:1.5}
.field input,.field select,.field textarea,.plain-input,.plain-form .field input,.plain-form .field select,.plain-form .field textarea{
  min-height:44px;font-size:14px;line-height:1.5;background:#fff;color:#1a202c;border-color:#bac9db;border-radius:8px;padding:10px 12px;
}
.field input:focus,.field select:focus,.field textarea:focus,.plain-input:focus{border-color:var(--accent);outline:2px solid #b9d5f3;outline-offset:1px;background:#fff}
.field input:disabled,.field select:disabled,.field textarea:disabled,.field [readonly]{background:#f1f4f8;color:#55677e;border-color:#d5dfea}
.field textarea,.plain-form .field textarea{min-height:100px;line-height:1.7}
.input-hint,.field-hint,.section-help{font-size:12px;line-height:1.6;color:var(--muted)}
.input-hint a,.section-help a,.modal-body p a{color:var(--brand);text-decoration:underline;text-underline-offset:2px}
.plain-check{font-size:13px;color:#344a64;gap:10px;cursor:pointer}.plain-check input{width:18px;height:18px;accent-color:var(--brand);margin-top:2px}
.field-invalid input,.field-invalid select,.field-invalid textarea{border-color:var(--danger)!important;background:#fff9fa!important}
.field-feedback,.modal-error,.modal-body .modal-error,.integration-state .integration-error{color:var(--danger);font-size:12px;line-height:1.65}
.field-invalid:focus-within{scroll-margin-block:40px}
.money-currency{font-size:12px;color:#526982}.money-control input{font-variant-numeric:tabular-nums}
.simple-row,.collection,.document-id-choices{border-color:#d5e0ec;border-radius:10px}
.simple-row>summary,.array-card>summary,.nested-group>summary{background:#f4f7fb;padding:16px 18px;color:#2a4667;min-height:52px}
.simple-row>summary:hover,.nested-group>summary:hover{background:#eaf2fb}.simple-row>summary strong{font-size:13px;color:#2b4665;font-weight:600}
.simple-row[open]>summary{border-bottom:1px solid #dce6f1}.simple-row-body{padding:24px}.row-number{font-size:11px;color:#586b82}
.simple-row>summary:focus-visible,.array-card>summary:focus-visible,.nested-group>summary:focus-visible{outline-offset:-3px}
.row-chevron{color:#3e638b;transition:transform 160ms ease}
.optional-details{border-color:var(--line);padding-top:14px;margin-top:22px}.optional-details>summary{font-size:12px;color:var(--brand);padding:6px 0;min-height:34px}
.optional-details>summary:hover{color:var(--brand-hover)}.optional-details>summary:focus-visible{border-radius:4px}
.simple-empty{background:#f5f8fc;border-color:#e0e8f2;color:#4473a0;padding:19px;border-radius:10px}
.simple-empty strong{color:#355574;font-size:13px}.simple-empty p{font-size:12px;color:#586b82}
.address-preview,.integration-state,.subsistence-result{background:#f0f5fb;border-radius:8px}.address-preview p{color:#304f70;font-size:13px}.address-preview>span{color:#526982;font-size:11px}
.directory-results{border-color:#a8c1de;border-radius:8px;box-shadow:0 8px 24px #153b6012}.directory-results>button{color:#243b55;padding:13px 14px}
.directory-results>button:hover,.directory-results>button:focus{background:#eaf2fb;outline-color:var(--accent)}
.directory-results strong{font-size:13px}.directory-results span,.directory-empty{font-size:12px;color:#526982}.directory-results small{font-size:11px;color:#586b82}
.directory-status strong{font-size:13px;color:#2e4c6a}.directory-status span{font-size:12px;color:var(--muted)}
.preset-preview p{background:#f0f5fb;border-color:#8ab3df;color:#385576;font-size:13px}
.subsistence-entry{background:#f4f7fb;border-color:#dce6f1;border-radius:8px}.subsistence-entry strong{color:#355574;font-size:13px}.subsistence-entry p{color:var(--muted);font-size:12px}
.subsistence-result>strong{color:var(--brand)}.subsistence-result ul{color:#385576;font-size:13px}
.text-button{color:var(--brand);font-size:12px;min-height:28px}.currency-option .text-button,.preset-preview .text-button{color:var(--brand)}
.sticky-save{bottom:16px;padding:14px 18px;background:#fff;border-color:#cbd9e9;border-radius:10px;box-shadow:0 5px 26px #16385a13}
.save-status{color:#466079;font-size:12px}.save-status.dirty{color:#865300}.step-footer{border-color:var(--line)}

/* Status is conveyed in words as well as colour. */
.notice{background:#f0f5fb;border-color:#d6e4f4;color:#30577e;font-size:13px;border-radius:8px}
.notice.warn{background:#fff8e7;border-color:#eed8a0;color:#795000}.notice.error{background:#fff2f4;border-color:#efc9d0;color:#9c2231}
.card-readiness{background:#f4f7fb;border-color:#d7e2ef;border-radius:10px}.card-readiness>summary{font-size:13px;color:#345574;min-height:48px}
.issue-section-heading,.more-issues>summary{background:#f5f8fc;color:#355574}.issue-section-heading h3{color:#355574;font-size:13px}
.issue h3,.form-issues .issue h3{color:#713d31;font-size:13px;font-weight:600}.issue p{color:#6e5260;font-size:12px}.issue-meta,.issue-path{color:#64748b;font-size:11px}
.issue-icon{color:#ae3547}.issue-body .issue-field-label{color:#3f5875;font-size:12px}.issue-body .additional-issue{color:#865300}
.check-summary strong{font-size:15px;color:#243b55}.check-summary p{font-size:12px;color:var(--muted)}
.success-check{background:#eff8f1;border-color:#cbe6d3;color:var(--success)}
.choice-card:has(input:checked),.doc-choice:has(input:checked){background:#eef5fd;border-color:#8db5df}
.choice-card input,.doc-choice input,.review-confirm input{accent-color:var(--brand);width:17px;height:17px;flex:none}
.choice-card strong,.doc-name{font-size:13px;color:#304d70}.choice-card small{font-size:12px;color:var(--muted)}
.doc-choice{min-height:52px;border-radius:8px}.doc-code{font-size:11px;background:#e9f0f9;color:#365a82}
.package-top h3{font-size:14px;color:#294767}.package-top small{font-size:12px;color:var(--muted)}
.package-download-row{display:grid;grid-template-columns:minmax(0,1fr) 292px;gap:16px;padding:15px 0}.package-download-row>strong{font-size:13px;color:#263f5b;min-width:0}.package-download-row>.actions{display:grid;grid-template-columns:148px 132px;gap:12px}.package-download-row .button{justify-content:center;white-space:nowrap}.package-download-row.package-archive{margin-top:12px;padding:18px 0 2px}.package-archive>.actions{display:flex;justify-content:flex-end}
.package-download-row .button{min-height:38px;font-size:12px!important;border-color:#cbd8e8!important;background:#fff;color:var(--brand)}
.package-download-row .primary{background:var(--brand)!important;color:#fff!important;border-color:var(--brand)!important}
.package-download-row .primary:hover{background:var(--brand-hover)!important}.review-confirm{font-size:12px;color:#48617f}
.timeline-item strong{color:#355574}.timeline-item p{color:var(--muted);font-size:12px}.timeline-item:before{background:#6596c5;border-color:#f2f7fd}
.overview-card p,.key-value span,.generate-side p{color:var(--muted);font-size:13px}.key-value strong{color:#304d70}
.upload-zone{background:#f6f9fd;border-color:#b9cde4}.upload-zone h3{color:#365a82}.upload-zone p{color:var(--muted);font-size:12px}
.file-row strong{color:#355574;font-size:13px}.file-row small{color:var(--muted);font-size:11px}

/* Employee identity, sign-in and administration. */
.topbar:has(.session-header){gap:24px;min-height:76px;height:auto;padding-block:12px}
.topbar:has(.session-header) .topbar-right{min-width:0;max-width:58%}
.session-header{display:flex;align-items:center;gap:12px;min-width:0}
.session-avatar{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:50%;background:#eaf2fb;color:var(--brand);font-size:12px;font-weight:650}
.session-identity{min-width:0;line-height:1.45}.session-identity strong{display:block;font-size:12px;color:#243b55;font-weight:600;overflow-wrap:anywhere}.session-identity>span{display:block;margin-top:3px;font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.session-header .account-logout{flex:none;min-height:36px;margin-left:6px;color:var(--brand);border-color:#d7e2ef;background:#fff}.session-header .account-logout:hover{background:#eef5fd}
.auth-page{background:#f4f7fb;min-height:100dvh;padding:28px 20px}.auth-card{border-color:#d9e3ef;box-shadow:0 12px 48px #16385a0c;max-width:460px;padding:36px}
.auth-heading{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:10px 14px;margin-bottom:28px}.auth-heading .brand-mark{margin:0;flex:none}.auth-heading h1{margin:0;font-size:24px}.auth-heading>.section-help{grid-column:1/-1;margin:4px 0 0;font-size:13px}.auth-heading strong{display:block;color:#24435f;font-size:18px;font-weight:650}.auth-heading span{color:var(--muted);font-size:12px}.auth-card h1{font-size:25px;line-height:1.3}.auth-card form{gap:20px}.auth-card .field input{font-size:16px;min-height:46px}.auth-card form>.button{min-height:46px;width:100%;justify-content:center}.auth-note{font-size:12px;color:var(--muted);line-height:1.65;border-top:1px solid var(--line);padding-top:18px;margin-top:24px}.auth-card #auth-error:empty{display:none}
.staff-table{table-layout:fixed}.staff-table th:first-child{width:25%}.staff-table th:nth-child(2){width:20%}.staff-table th:nth-child(3){width:12%}.staff-table th:nth-child(4){width:18%}.staff-table th:nth-child(5){width:12%}.staff-table th:last-child{width:13%}
.staff-table th,.staff-table td{padding:16px;overflow-wrap:anywhere;vertical-align:middle}.staff-table th{font-size:10px;letter-spacing:.2px}.staff-table td{font-size:12px}.staff-identity strong{display:block;font-size:13px;line-height:1.5;color:#243b55}.staff-identity small{display:block;margin-top:4px;color:var(--muted);font-size:12px}.staff-current{display:inline-block;margin-top:6px;font-size:10px;color:var(--brand);background:#edf4fc;padding:2px 6px;border-radius:4px}.staff-role{font-size:12px;line-height:1.5;color:#344e6c}.staff-access-note{font-size:12px;line-height:1.65;color:var(--muted);margin:0}.staff-form{display:grid;gap:22px}.staff-form>.section-help{margin:0}.staff-form .form-grid{gap:18px}.staff-form .field-feedback:empty{display:none}
@media(max-width:1100px){.staff-table,.staff-table tbody{display:block}.staff-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.staff-table tbody tr{display:grid;grid-template-columns:1fr 1fr;gap:0;padding:16px;border-bottom:1px solid var(--line)}.staff-table tbody tr:last-child{border-bottom:0}.staff-table td{display:block;padding:10px 12px;border:0;min-width:0}.staff-table td:first-child,.staff-table td:last-child{grid-column:1/-1}.staff-table td[data-label]::before{content:attr(data-label);display:block;color:var(--muted);font-size:11px;margin-bottom:5px}.staff-table td:last-child{padding-top:14px}.staff-identity strong{font-size:14px}}
@media(max-width:600px){.topbar:has(.session-header){align-items:flex-start;gap:10px;padding:12px 16px;flex-wrap:wrap}.topbar:has(.session-header) .breadcrumbs{width:100%}.topbar:has(.session-header) .topbar-right{width:100%;max-width:none}.session-header{width:100%;gap:9px}.session-identity{flex:1}.session-avatar{width:32px;height:32px;font-size:11px}.session-identity strong{font-size:12px}.session-header .account-logout{padding:7px 10px;margin-left:2px}.auth-page{padding:20px 14px}.auth-card{padding:28px 22px}.auth-heading{margin-bottom:24px}.staff-table tbody tr{padding:10px}.staff-table td{padding:9px 10px}}

/* Dialog headings/actions stay visible while long content scrolls. */
dialog{width:min(660px,calc(100vw - 40px));max-height:calc(100dvh - 48px);border:1px solid #d8e2ef;border-radius:16px;box-shadow:0 24px 90px #112f5140;color:var(--ink)}
dialog::backdrop{background:#0b203a80;backdrop-filter:blur(3px)}
dialog[open]:not(.pdf-modal){display:flex;flex-direction:column;overflow:hidden;animation:dialog-in 170ms ease-out}
.modal-head{padding:22px 26px;flex:none;background:white;border-color:var(--line);gap:14px}.modal-head h2{font-size:20px;color:#233c58}
.modal-head h2:focus{outline:none}.modal-head .button{flex:none}
.modal-body{padding:24px 26px;gap:20px;overflow-y:auto;min-height:0;overscroll-behavior:contain;scrollbar-gutter:stable}
.modal-body .form-divider{margin:2px 0}.modal-body>.section-help{margin-top:0}
.directory-section{display:grid;gap:16px;min-width:0}.directory-section+.directory-section{border-top:1px solid var(--line);padding-top:24px;margin-top:4px}.directory-section h3{font-size:15px;font-weight:600;color:#29445f;margin:0}.directory-section>p,.directory-section>.plain-check{margin:0}.directory-section-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.directory-section>.button{justify-self:start}.directory-section .button{white-space:normal;max-width:100%;text-align:center}.directory-section>.optional-details{margin:0;padding:0;border:0}.directory-status{display:grid;grid-template-columns:144px minmax(0,1fr) auto;gap:12px;align-items:center}.directory-section .directory-status{padding:13px 0}.directory-status-list .directory-status:first-child{padding-top:0}.directory-status-list .directory-status:last-child{padding-bottom:0;border-bottom:0}
.modal-body p{font-size:13px;line-height:1.7;color:#526982}.modal-body .field-label{font-size:13px}
.modal-foot{padding:16px 26px;flex:none;background:#f7f9fc;border-color:var(--line);flex-wrap:wrap}
.pdf-modal{width:min(1200px,96vw);height:92dvh;max-height:94dvh}.pdf-toolbar{background:#f4f7fb;border-color:#d7e2ef}.pdf-viewport{background:#e3eaf2}
.pdf-page-count,.pdf-scale,.pdf-page-label{color:#506580}.pdf-page-error{color:var(--danger)}
@media(max-width:560px){.pdf-toolbar{flex-wrap:wrap}.pdf-zoom{flex-wrap:wrap;gap:6px}.pdf-zoom .pdf-fit{display:inline-flex}.pdf-zoom .button{min-height:34px;font-size:12px}.pdf-scale,.pdf-page-count{font-size:11px}}
.toast{left:calc(50% + 116px);background:#213d5c;font-size:13px;line-height:1.6;box-shadow:0 8px 32px #16385a26;z-index:100;border-radius:10px}
.toast.error{background:#9f2436}.spinner{border-color:#b9cde4;border-top-color:var(--brand)}
.auth-card{border-radius:16px;padding:36px}.auth-card .brand-mark{background:var(--brand);color:white}.staff-table small{font-size:12px;color:var(--muted)}
.staff-setup>.section-help{margin:10px 0 22px}.staff-setup>.button{margin-top:20px}.staff-table tbody tr{cursor:default}
@keyframes dialog-in{from{opacity:0;transform:translateY(8px) scale(.99)}to{opacity:1;transform:none}}
@container(max-width:520px){.form-grid,.inline-fields,.choice-grid{grid-template-columns:1fr}.field-wide{grid-column:auto}.editor-title{flex-wrap:wrap}.required-key{white-space:normal}.collection-heading{flex-wrap:wrap}}

@media(min-width:1600px){.main{padding-top:36px}.sidebar{width:232px}.shell{grid-template-columns:232px minmax(0,1fr)}.content-grid{grid-template-columns:minmax(0,1fr) 290px}}
@media(max-width:1200px){.content-grid{grid-template-columns:1fr}.dashboard-aside{display:block}.guide h2{font-size:17px}.steps{grid-template-columns:repeat(3,minmax(0,1fr))}.guide{padding:22px}.simple-case-layout{grid-template-columns:180px minmax(0,1fr);gap:18px}.simple-case-layout .editor-panel{padding:24px}.case-heading{flex-wrap:wrap}.case-heading>.actions{justify-content:flex-start}.main{padding:28px}.topbar{padding-inline:28px}}
@media(max-width:1000px){.sidebar{width:190px;padding-inline:12px}.shell{grid-template-columns:190px minmax(0,1fr)}.brand{padding-inline:8px;gap:9px}.brand-name{font-size:17px}.main{padding:24px}.topbar{padding-inline:24px}.simple-case-layout{grid-template-columns:1fr}.simple-section-menu{position:static;display:flex;overflow:auto;gap:7px;padding-bottom:10px;scrollbar-width:thin}.simple-section-menu button{white-space:nowrap;border:1px solid #d9e4f0;background:#fff;flex:none}.simple-section-menu button.active{background:#eaf2fb;border-color:#a7c6e8}.menu-note{display:none}.toast{left:calc(50% + 95px)}}
@media(max-width:850px){.cases-toolbar .search{flex-basis:100%;max-width:none;margin-left:0}}
@media(max-width:840px){.sidebar{width:74px;padding:22px 9px}.shell{grid-template-columns:74px minmax(0,1fr)}.brand{padding:0 9px 28px}.nav-button{padding:13px 10px;min-height:46px}.main{padding:24px 22px}.topbar{height:62px;padding-inline:22px}.section-menu{position:static}.toast{left:calc(50% + 37px)}}
@media(min-width:601px) and (max-width:1100px){.package-download-row{grid-template-columns:1fr;gap:10px}.package-archive>.actions{justify-content:flex-start}}
@media(max-width:600px){
  .sidebar{display:flex;flex-direction:column;gap:3px;position:sticky;inset:0 0 auto;width:100%;padding:7px 10px;z-index:20;overflow:visible;box-shadow:0 2px 10px #123b5920}
  .sidebar .brand,.sidebar .nav-label,.sidebar-bottom{display:none}.shell{display:block}
  .main-nav{display:flex;gap:3px;justify-content:space-between;min-width:0;width:100%}.nav-button{flex:1;flex-direction:column;justify-content:center;gap:5px;text-align:center;padding:7px 3px;font-size:11px;line-height:1.3;min-height:54px}
  .sidebar-bottom:has([data-action='logout']){display:flex;align-items:center;justify-content:space-between;gap:10px;margin:3px 0 0;border-top:1px solid #ffffff26;padding-top:4px;min-width:0}.sidebar-bottom .local-note{display:none}.sidebar-bottom .account{display:block;min-width:0;flex:1;padding:0 4px}.sidebar-bottom .avatar,.sidebar-bottom .account small{display:none}.sidebar-bottom .account-copy{display:block;overflow:hidden}.sidebar-bottom .account strong{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-bottom>[data-action='logout']{margin:0;min-height:32px;font-size:11px;padding:6px 10px;flex:none}
  .nav-button span:not(.nav-count){display:inline}.nav-button .nav-count{display:none}.nav-button svg{width:18px;height:18px}.nav-button.active{box-shadow:inset 0 -2px #b5d9ff}
  .main{padding:22px 16px 28px}.topbar{height:48px;padding:0 16px}.breadcrumbs{font-size:11px}.topbar-right{font-size:10px}.mode-pill{font-size:10px}
  .page-heading{align-items:flex-start;flex-wrap:wrap;gap:15px}.page-heading h1{font-size:26px}.page-heading p{font-size:13px}
  .page-heading .button{font-size:12px;width:auto;padding:9px 12px}.page-heading .button svg{display:inline;width:17px}
  .case-identity{flex-basis:100%}.case-heading h1{font-size:24px}.case-heading .actions{justify-content:flex-start;gap:10px}.case-save{flex-direction:row-reverse}.case-save .save-status{font-size:11px}.case-heading .actions .button{font-size:12px}
  .panel-head{padding:18px;gap:14px}.panel-head .search{width:100%}.search{width:100%}.cases-toolbar{gap:14px;margin-bottom:18px}.cases-toolbar .search{flex-basis:100%;margin-left:0}
  .case-table th,.case-table td{padding:15px 12px}.case-table th{font-size:11px;letter-spacing:.2px}.case-table td{font-size:12px}.person strong{font-size:12px}.person small{font-size:11px}.person-icon{display:none}.badge{font-size:11px;white-space:normal}
  .lifecycle-tabs{width:100%;gap:2px;padding:4px}.lifecycle-tabs .tab{flex:1;padding:8px 5px;font-size:11px}.lifecycle-tabs .count-badge{font-size:10px;margin-left:4px;padding:2px 4px}
  .steps{grid-template-columns:1fr;gap:18px}.guide h2{font-size:17px}.footer-note{flex-direction:column;gap:4px;font-size:10px}
  .simple-case-layout .editor-panel{padding:21px 17px}.simple-case-layout .editor-title h2{font-size:20px}.editor-title{flex-wrap:wrap}
  .form-grid{grid-template-columns:1fr;gap:19px}.field-wide{grid-column:auto}.inline-fields,.choice-grid,.overview-grid,.generate-side{grid-template-columns:1fr}
  .field input,.field select,.field textarea,.plain-form .field input,.plain-form .field select,.plain-form .field textarea{font-size:16px}
  .simple-row-body{padding:20px 14px}.collection-heading{flex-wrap:wrap}.collection-heading .button{font-size:12px;min-height:36px}
  .sticky-save{bottom:10px;flex-wrap:wrap;padding:12px;gap:10px}.sticky-save .actions{margin-left:auto}.save-status{font-size:11px}.step-footer{flex-wrap:wrap;gap:12px}
  .issue{flex-wrap:wrap;padding:17px}.issue .button{margin-left:30px;font-size:12px;min-height:36px}.issue-body{flex-basis:calc(100% - 40px)}
  .check-summary{flex-wrap:wrap}.subsistence-entry{align-items:flex-start;flex-wrap:wrap}.package-download-row{display:flex;align-items:flex-start;flex-direction:column;gap:10px}.package-download-row .actions{display:flex;width:100%;gap:8px}.package-archive>.actions{justify-content:flex-start}.package-download-row .button{padding:8px 10px!important}
  .directory-status{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:14px 0}.directory-status strong{grid-column:1;grid-row:1}.directory-status span{grid-column:1/-1;grid-row:2}.directory-status .button{grid-column:2;grid-row:1}.directory-status small{grid-column:1/-1}
  dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 24px);border-radius:12px}.modal-head{padding:18px 20px}.modal-head h2{font-size:18px}.modal-body{padding:20px;gap:18px}.modal-foot{padding:14px 20px}
  .toast{left:50%;max-width:calc(100vw - 28px);font-size:12px}.auth-card{padding:26px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Per-case document imports and the employee's event inbox. */
.case-import-panel{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:16px 0 22px;padding:17px 20px;border:1px solid var(--line);border-radius:10px;background:#f5f9fd}
.case-import-copy{min-width:0;flex:1}.case-import-title{display:flex;align-items:center;flex-wrap:wrap;gap:9px;color:#254562;font-size:13px}.case-import-title svg{width:18px;height:18px;flex:none;color:var(--brand)}
.case-import-copy p{margin:6px 0 0;color:#546b82;font-size:12px;line-height:1.7}.case-import-copy small{display:block;margin-top:5px;color:#64768a;font-size:11px;line-height:1.65;overflow-wrap:anywhere}.case-import-copy .import-draft-note{color:#8a5527}
.case-import-actions{display:flex;align-items:flex-end;flex-direction:column;gap:8px;flex:none}.case-import-actions small{max-width:180px;font-size:11px;line-height:1.6;color:#64768a}.case-import-actions .text-button{font-size:11px}
.notification-count{margin-left:auto;min-width:20px;display:inline-flex;justify-content:center;border-radius:12px;padding:2px 6px;background:#e8f2ff;color:#123d66;font-weight:700;font-size:11px}.notification-count[hidden]{display:none!important}
.notification-list{display:grid;gap:12px;max-width:1080px}.notification-row{display:flex;gap:14px;padding:20px 23px}.notification-row.is-unread{border-color:#a8c7e5;background:#fafdff}.notification-marker{width:8px;height:8px;border-radius:50%;background:#c5d0dc;flex:none;margin-top:8px}.is-unread .notification-marker{background:var(--accent)}
.notification-copy{min-width:0;flex:1}.notification-heading{display:flex;align-items:baseline;justify-content:space-between;gap:18px}.notification-heading h2{font-size:15px;line-height:1.6;color:#26425e;overflow-wrap:anywhere}.notification-heading time{color:#748397;font-size:11px;line-height:1.6;white-space:nowrap}.notification-copy p{margin-top:5px;font-size:13px;color:#526982;line-height:1.7;overflow-wrap:anywhere}
.notification-copy .notification-case{margin-top:3px;font-size:12px;font-weight:600;color:#375774}.notification-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-top:12px}.notification-actions .text-button{font-size:12px;display:inline-flex;align-items:center;gap:7px}.notification-actions svg{width:14px;height:14px}.notification-read-label{font-size:11px;color:#748397}.notification-empty>svg{width:30px;height:30px;margin:0 auto 12px;color:#6b89a8}
.import-proposals{display:grid;gap:15px}.import-proposal{display:grid;gap:10px;border:1px solid var(--line);padding:17px;border-radius:8px;background:#fff}.import-proposal.has-conflict{border-color:#dfcba6;background:#fffcf6}.import-proposal-choice{display:flex;align-items:flex-start;gap:10px;color:#29445f;font-size:13px;line-height:1.6}.import-proposal-choice input{width:16px;height:16px;flex:none;margin-top:2px;accent-color:var(--brand)}
.import-proposal-values{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:15px;padding-left:26px}.import-proposal-values>span{display:grid;align-content:start;gap:5px}.import-proposal-values small{font-size:11px;color:#708196}.import-proposal-values span span{font-size:13px;color:#29445f;line-height:1.65;overflow-wrap:anywhere;white-space:pre-wrap}.import-conflict{padding-left:26px;font-size:11px;color:#8a5527;line-height:1.65}.import-source{padding-left:26px;font-size:11px;color:#6d7b8a;line-height:1.65;overflow-wrap:anywhere}
@media(max-width:760px){.case-import-panel{align-items:flex-start;flex-direction:column;gap:14px;padding:15px 17px}.case-import-actions{align-items:flex-start;flex-direction:row;flex-wrap:wrap;gap:12px}.case-import-actions small{max-width:none;flex-basis:100%}.notification-row{padding:17px 15px;gap:10px}.notification-heading{align-items:flex-start;flex-direction:column;gap:4px}.notification-heading h2{font-size:14px}.notification-copy p{font-size:12px}.notification-actions{gap:12px}.import-proposal{padding:13px}.import-proposal-values{grid-template-columns:1fr;gap:10px}.main-nav [data-notifications-nav]{position:relative}.main-nav [data-notification-count]{display:inline-flex!important;position:absolute;right:6px;top:2px;font-size:9px;min-width:16px;padding:1px 4px}.main-nav [data-notification-count][hidden]{display:none!important}}
