:root {
    color-scheme: light;
    --navy: #12344d;
    --navy-dark: #0b2639;
    --teal: #008f83;
    --teal-soft: #e5f5f2;
    --ink: #172b3a;
    --muted: #647483;
    --line: #d7e0e5;
    --surface: #ffffff;
    --page: #f3f6f7;
    --danger: #b42318;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
.staging-banner { background: #7f1d1d; color: #fff; font-weight: 800; letter-spacing: .06em; padding: .65rem 1rem; text-align: center; }
a { color: var(--teal); }
button, input { font: inherit; }
.topbar { background: var(--navy); color: white; }
.topbar-inner { max-width: 1180px; min-height: 68px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; font-weight: 750; letter-spacing: .01em; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--teal); font-weight: 850; }
.nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav a, .nav button { color: #e9f2f5; background: transparent; border: 0; padding: 10px 12px; text-decoration: none; cursor: pointer; border-radius: 8px; }
.nav a:hover, .nav button:hover { background: rgba(255,255,255,.1); }
.role-pill { color: #d6e6eb; font-size: 13px; }
.container { max-width: 1180px; margin: 0 auto; padding: 34px 24px 56px; }
.page-heading { margin: 0 0 8px; font-size: 28px; }
.page-intro { margin: 0 0 28px; color: var(--muted); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 24px rgba(18,52,77,.05); }
.metric { padding: 22px; }
.metric-label { color: var(--muted); font-size: 14px; font-weight: 650; }
.metric-value { margin-top: 8px; font-size: 32px; font-weight: 800; color: var(--navy); }
.panel { margin-top: 22px; padding: 24px; }
.panel h2 { margin: 0 0 16px; font-size: 19px; }
.empty { color: var(--muted); padding: 18px 0; }
.activity { list-style: none; padding: 0; margin: 0; }
.activity li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 18px; }
.activity time { color: var(--muted); font-size: 13px; }
.guest-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(280px, 44%) 1fr; }
.guest-brand { background: linear-gradient(145deg, var(--navy-dark), var(--navy)); color: white; padding: 60px clamp(32px,7vw,100px); display: flex; flex-direction: column; justify-content: center; }
.guest-brand .brand-mark { width: 54px; height: 54px; font-size: 22px; }
.guest-brand h1 { max-width: 500px; margin: 28px 0 12px; font-size: clamp(32px,4vw,50px); line-height: 1.08; }
.guest-brand p { max-width: 500px; color: #c7d9e1; line-height: 1.7; }
.guest-main { display: grid; place-items: center; padding: 36px; }
.auth-card { width: min(440px,100%); }
.auth-card h2 { margin: 0 0 8px; font-size: 28px; }
.auth-card > p { color: var(--muted); margin: 0 0 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 650; margin-bottom: 7px; }
.field input { width: 100%; border: 1px solid #b9c7cf; border-radius: 9px; padding: 12px 13px; background: white; }
.field input:focus { outline: 3px solid rgba(0,143,131,.18); border-color: var(--teal); }
.check { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: 14px; }
.button { width: 100%; border: 0; border-radius: 9px; padding: 12px 16px; background: var(--teal); color: white; font-weight: 750; cursor: pointer; }
.button:hover { background: #007c72; }
.errors { margin: 0 0 18px; padding: 12px 14px; background: #fff1f0; border: 1px solid #f4c7c3; border-radius: 9px; color: var(--danger); }
.security-note { margin-top: 22px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.narrow { max-width: 760px; }
.mfa-card h1 { margin: 8px 0 10px; }
.mfa-card > p { color: var(--muted); line-height: 1.6; }
.step-label { color: var(--teal); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 800; }
.setup-steps { padding-left: 22px; line-height: 1.6; }
.setup-steps li { margin: 14px 0; }
.qr-code { width: 260px; max-width: 100%; border: 1px solid var(--line); border-radius: 12px; background: white; padding: 10px; }
.manual-key { display: block; max-width: 100%; margin-top: 8px; padding: 11px; border-radius: 8px; background: #edf2f4; color: var(--navy); font-size: 14px; overflow-wrap: anywhere; user-select: all; }
.recovery-option { margin: 4px 0 18px; color: var(--muted); }
.recovery-option summary { cursor: pointer; margin-bottom: 14px; }
.recovery-codes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; list-style: none; padding: 18px; background: #edf2f4; border-radius: 10px; }
.recovery-codes code { color: var(--navy); font-weight: 750; letter-spacing: .05em; }
.button-link { display: inline-block; width: auto; margin-top: 8px; text-decoration: none; }
.page-actions, .case-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.table-card { overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #edf2f4; color: var(--navy); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
td { font-size: 14px; }
.stage-pill { display: inline-block; padding: 5px 9px; border-radius: 999px; background: var(--teal-soft); color: #006d64; font-size: 12px; font-weight: 750; }
.stage-pill.large { padding: 8px 13px; font-size: 14px; }
.empty-pad, .pagination { padding: 22px; }
.narrow-wide { max-width: 980px; }
.back-link { display: inline-block; margin-bottom: 18px; text-decoration: none; }
.form-section { padding: 24px; margin: 0 0 18px; }
.form-section h2 { margin: 0 0 20px; font-size: 19px; }
.form-section h2 span { color: var(--muted); font-size: 13px; font-weight: 500; margin-left: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; }
.field select, .field textarea { width: 100%; border: 1px solid #b9c7cf; border-radius: 9px; padding: 12px 13px; background: white; }
.field small { display: block; margin-top: 6px; color: var(--muted); }
.full-field { grid-column: 1 / -1; }
.submit-button { width: auto; min-width: 190px; }
.success { margin-bottom: 18px; padding: 12px 14px; border: 1px solid #acd9d2; background: var(--teal-soft); color: #006d64; border-radius: 9px; }
.eyebrow { color: var(--teal); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.two-column { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); gap: 22px; align-items: start; }
.two-column .panel { margin-top: 0; margin-bottom: 22px; }
.case-control-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 22px; align-items: start; margin-bottom: 22px; }
.case-control-grid > .panel { min-width: 0; margin-top: 0; }
.case-heading-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.applicant-summary { padding: 16px 0; border-top: 1px solid var(--line); }
.applicant-summary h3 { margin: 0 0 12px; }
dl { margin: 0; } dl div { margin-bottom: 11px; } dt { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; } dd { margin: 3px 0 0; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: flex; justify-content: space-between; gap: 24px; padding: 15px 0; border-top: 1px solid var(--line); }
.timeline span, .timeline time { color: var(--muted); font-size: 13px; }
.timeline p { margin: 6px 0 0; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.dashboard-grid > .panel { min-width: 0; }
.overdue td:first-child { color: var(--danger); font-weight: 750; }
.inline-work-form { padding-bottom: 18px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.inline-work-form .button { width: auto; }
.work-item { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.work-item strong, .work-item span { display: block; }
.work-item span { margin-top: 5px; color: var(--muted); font-size: 13px; }
.work-item.completed strong { text-decoration: line-through; color: var(--muted); }
.small-button { border: 1px solid var(--teal); border-radius: 7px; padding: 7px 10px; color: var(--teal); background: white; cursor: pointer; }
.applicants-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 30px 0 14px; }
.applicants-heading h2 { margin: 0 0 4px; font-size: 21px; }
.applicants-heading p { margin: 0; color: var(--muted); }
.applicant-counter { white-space: nowrap; border-radius: 999px; padding: 7px 11px; background: var(--teal-soft); color: #006d64; font-size: 13px; font-weight: 750; }
.applicant-card { margin-bottom: 16px; overflow: hidden; }
.js .applicant-card[data-active="false"] { display: none; }
.applicant-card-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; background: #f8fafb; border-bottom: 1px solid var(--line); }
.applicant-card.is-collapsed .applicant-card-header { border-bottom: 0; }
.applicant-number, .applicant-summary { display: block; }
.applicant-number { color: var(--teal); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.applicant-summary { margin-top: 4px; color: var(--navy); }
.applicant-card-actions { display: flex; gap: 12px; }
.text-button { border: 0; background: transparent; color: var(--teal); padding: 5px; cursor: pointer; font-weight: 700; }
.danger-text { color: var(--danger); }
.applicant-card-body { padding: 22px; }
.address-panel { margin-top: 4px; border-top: 1px solid var(--line); padding-top: 16px; }
.address-panel summary { color: var(--navy); cursor: pointer; font-weight: 750; }
.address-panel summary span { margin-left: 8px; color: var(--muted); font-size: 12px; font-weight: 500; }
.address-fields { margin-top: 18px; }
.copy-address { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--muted); font-size: 14px; }
.secondary-action { width: 100%; border: 1px dashed #91a8b4; border-radius: 11px; padding: 14px; color: var(--navy); background: transparent; cursor: pointer; font-weight: 750; }
.secondary-action:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-soft); }
.secondary-action:disabled { cursor: default; opacity: .65; }
.form-submit-row { display: flex; justify-content: flex-end; margin-top: 24px; }
.action-group { display: flex; align-items: center; gap: 12px; }
.secondary-link { display: inline-block; padding: 11px 14px; border: 1px solid var(--line); border-radius: 9px; color: var(--navy); text-decoration: none; background: white; font-weight: 700; }
.table-subtext { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.status-chip { display: inline-block; margin: 2px 5px 2px 0; padding: 4px 7px; border-radius: 999px; font-size: 11px; font-weight: 750; }
.status-chip.good { background: var(--teal-soft); color: #006d64; }
.status-chip.warning { background: #fff5d6; color: #7a5800; }
.status-chip.inactive { background: #edf0f2; color: var(--muted); }
.row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.row-actions form { margin: 0; }
.row-actions button { border: 0; padding: 0; color: var(--teal); background: transparent; cursor: pointer; text-decoration: underline; }
.temporary-secret { margin-bottom: 20px; padding: 18px 20px; border: 2px solid var(--teal); border-radius: 12px; background: var(--teal-soft); }
.temporary-secret h2 { margin: 0 0 7px; font-size: 18px; }
.temporary-secret p { margin: 0 0 12px; color: var(--muted); }
.temporary-secret code { display: block; padding: 12px; border-radius: 8px; background: white; color: var(--navy); font-size: 18px; font-weight: 800; letter-spacing: .06em; user-select: all; overflow-wrap: anywhere; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.checkbox-grid label, .member-list label, .toggle-row { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fafcfc; }
.member-list { display: grid; gap: 10px; }
.member-list span, .toggle-row span { display: block; }
.member-list small, .toggle-row small { display: block; margin-top: 3px; color: var(--muted); }
.onboarding-alert { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; padding: 16px 18px; border: 1px solid #e6c55c; border-radius: 11px; background: #fff8dc; color: #614900; }
.onboarding-alert span { font-size: 14px; }
.profile-section { margin-bottom: 20px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.section-heading h2 { margin: 0 0 5px; }
.section-heading p { margin: 0; color: var(--muted); line-height: 1.5; }
.field-error { color: var(--danger) !important; font-weight: 650; }
.account-security-summary { margin-top: 0; }
.document-type-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.document-type-grid label { display: flex; align-items: center; gap: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: #fafcfc; }
.security-callout { display: flex; flex-direction: column; gap: 4px; margin: 16px 0 20px; padding: 14px 16px; border-left: 4px solid var(--teal); border-radius: 8px; background: var(--teal-soft); }
.security-callout span { color: var(--muted); }
.portal-credentials label { display: block; margin-top: 12px; font-weight: 700; }
.portal-credentials input { display: block; width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.portal-credentials code { margin-top: 6px; }
.credential-copy-row { display: flex; align-items: stretch; gap: 8px; margin-top: 6px; }
.credential-copy-row input { flex: 1; min-width: 0; }
.portal-credentials [data-copy-value] { cursor: copy; transition: border-color .15s, box-shadow .15s, background .15s; }
.portal-credentials [data-copy-value]:focus,.portal-credentials [data-copy-value].copied { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,151,139,.18); background: #fff; }
.copy-status { display: block; min-height: 20px; margin-top: 8px; color: #006d64; font-size: 13px; font-weight: 700; }
.request-item { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); }
.request-item strong,.request-item span,.upload-meta strong,.upload-meta span { display: block; }
.request-item span,.upload-meta span { margin-top: 4px; color: var(--muted); font-size: 13px; }
.upload-review { margin: 0 0 16px 20px; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: #fafcfc; }
.upload-review.deleted { opacity: .75; }
.upload-meta p { margin: 8px 0 0; }
.deletion-note { color: var(--danger); }
.document-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; margin-top: 12px; }
.document-actions form { width: 100%; display: flex; gap: 7px; flex-wrap: wrap; }
.document-actions input,.document-actions select { min-width: 170px; flex: 1; border: 1px solid #b9c7cf; border-radius: 7px; padding: 8px; }
.danger-outline { color: var(--danger); border-color: #dc8b84; }
.danger-button { background: var(--danger); }
.portal-page { min-height: 100vh; background: linear-gradient(145deg,var(--navy-dark),var(--navy)); }
.portal-shell { width: min(100% - 32px,520px); min-height: 100vh; margin: auto; display: grid; place-items: center; padding: 30px 0; }
.portal-shell.wide { width: min(100% - 32px,760px); }
.portal-card { width: 100%; padding: 30px; border-radius: 16px; background: white; box-shadow: 0 24px 60px rgba(0,0,0,.24); }
.portal-card .brand-mark { margin-bottom: 18px; color: white; }
.portal-card h1 { margin: 8px 0 10px; color: var(--navy); }
.portal-card > p { color: var(--muted); line-height: 1.6; }
.portal-progress { margin: 22px 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafb; }
.portal-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.portal-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; color: var(--muted); text-align: center; font-size: 12px; font-weight: 700; }
.portal-steps li::after { content: ''; position: absolute; z-index: 0; top: 14px; left: calc(50% + 18px); width: calc(100% - 28px); height: 3px; border-radius: 3px; background: #d9e1e5; }
.portal-steps li:last-child::after { display: none; }
.portal-steps li span { position: relative; z-index: 1; display: grid; width: 30px; height: 30px; margin: 0; place-items: center; border-radius: 50%; background: #e5ebee; color: var(--muted); font-size: 13px; }
.portal-steps li.complete,.portal-steps li.current { color: var(--navy); }
.portal-steps li.complete span { background: var(--teal); color: white; }
.portal-steps li.complete::after { background: var(--teal); }
.portal-steps li.current span { outline: 3px solid rgba(0,151,139,.18); background: white; color: #006d64; border: 2px solid var(--teal); }
.progress-heading { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.progress-heading span,.portal-progress small { color: var(--muted); font-size: 13px; }
.portal-progress progress { display: block; width: 100%; height: 14px; overflow: hidden; border: 0; border-radius: 999px; background: #dfe7ea; }
.portal-progress progress::-webkit-progress-bar { border-radius: 999px; background: #dfe7ea; }
.portal-progress progress::-webkit-progress-value { border-radius: 999px; background: var(--teal); }
.portal-progress progress::-moz-progress-bar { border-radius: 999px; background: var(--teal); }
.portal-progress small { display: block; margin-top: 7px; text-align: right; }
.portal-upload-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.portal-upload-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.portal-upload-item form { display: flex; align-items: center; gap: 8px; }
.upload-in-progress { color: #006d64 !important; font-weight: 700; }
.statement-layout { margin-top: 22px; }
.statement-metrics { margin-top: 20px; }
.statement-metrics .metric-value { font-size: 25px; }
.review-warning { display: flex; flex-direction: column; gap: 5px; margin: 18px 0; padding: 15px 17px; border-left: 4px solid #b7791f; border-radius: 8px; background: #fff5d6; color: #654a00; }
.preserve-lines { white-space: pre-line; line-height: 1.6; }
.transaction-form { margin-bottom: 24px; padding: 18px; border: 1px solid var(--line); border-radius: 11px; background: #f8fafb; }
.transaction-form .toggle-row { margin: 10px 0; }
.flag-fields { padding-top: 12px; }
.transaction-table { margin: 0 -24px -24px; }
.flagged-row td:first-child { border-left: 4px solid #b7791f; }
.document-chip-list { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 5px; }
.case-search { margin: 22px 0; padding: 20px; }
.case-search > label { display: block; margin-bottom: 8px; color: var(--navy); font-weight: 750; }
.case-search > div { display: flex; gap: 10px; }
.case-search input { flex: 1; min-width: 0; border: 1px solid #b9c7cf; border-radius: 9px; padding: 12px 13px; }
.case-search .button { width: auto; min-width: 110px; }
.case-search > a { display: inline-block; margin-top: 10px; }
.case-results { display: grid; gap: 12px; }
.case-result { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 22px; }
.case-result h2 { margin: 5px 0; font-size: 18px; }
.case-result p { margin: 0; color: var(--muted); }
.case-result .button-link { flex: none; margin: 0; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.filter-tabs a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); background: white; text-decoration: none; font-size: 13px; font-weight: 700; }
.filter-tabs a.active { border-color: var(--teal); background: var(--teal-soft); color: #006d64; }
.document-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); margin: 18px 0 22px; }
.document-review-layout { margin-top: 0; }
.document-applicant-section { margin-bottom: 20px; overflow: hidden; }
.document-applicant-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: #edf2f4; }
.document-applicant-heading h2 { margin: 4px 0 0; font-size: 20px; }
.document-applicant-heading > span { color: var(--muted); font-size: 13px; font-weight: 700; }
.document-review-item { margin: 18px; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.document-review-item > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 17px; background: #fafcfc; }
.document-review-item > header strong,.document-review-item > header span { display: block; }
.document-review-item > header div > span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.document-review-item.missing { border-left: 4px solid #b7791f; }
.document-review-item.rejected { border-left: 4px solid var(--danger); }
.document-review-item.accepted { border-left: 4px solid var(--teal); }
.document-file { padding: 16px 17px; border-top: 1px solid var(--line); }
.document-file.deleted { opacity: .72; }
.missing-message { margin: 0; padding: 16px 17px; border-top: 1px solid var(--line); color: var(--muted); }
.review-reason { padding: 9px 11px; border-radius: 7px; background: #fff5d6; }
.file-action-row { display: flex; gap: 8px; }
.primary-outline { border-color: var(--navy); color: var(--navy); }
.review-control { padding: 12px; border-radius: 9px; background: #f3f6f7; }
.danger-disclosure { width: 100%; color: var(--danger); font-size: 13px; }
.danger-disclosure summary { cursor: pointer; font-weight: 700; }
.danger-disclosure form { margin-top: 9px; }
@media (max-width: 850px) { .metrics { grid-template-columns: repeat(2,1fr); } .guest-shell { grid-template-columns: 1fr; } .guest-brand { padding: 38px 28px; } .guest-brand h1 { font-size: 30px; } }
@media (max-width: 850px) { .two-column, .dashboard-grid, .case-control-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .metrics { grid-template-columns: 1fr; } .topbar-inner { padding: 0 16px; } .role-pill { display: none; } .container { padding: 26px 16px; } .guest-main { padding: 28px 20px; } }

.checklist-panel { margin: 22px 0; }
.checklist-score { min-width: 82px; text-align: right; }
.checklist-score strong { display: block; color: var(--navy); font-size: 25px; }
.checklist-score span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.progress-track { height: 9px; overflow: hidden; border-radius: 999px; background: #e4eaed; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--teal); transition: width .2s ease; }
.checklist-help { margin: 10px 0 18px; color: var(--muted); font-size: 13px; }
.checklist-groups { display: grid; gap: 10px; }
.checklist-group { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfc; }
.checklist-group > summary, .checklist-item > summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; cursor: pointer; list-style: none; }
.checklist-group > summary::-webkit-details-marker, .checklist-item > summary::-webkit-details-marker { display: none; }
.checklist-group > summary { padding: 15px 17px; }
.checklist-group > summary strong, .checklist-group > summary small { display: block; }
.checklist-group > summary small { margin-top: 3px; color: var(--muted); }
.group-count { min-width: 43px; padding: 5px 8px; border-radius: 999px; background: var(--teal-soft); color: #006d64; text-align: center; font-weight: 750; }
.checklist-items { padding: 0 16px 15px; }
.checklist-item { border-top: 1px solid var(--line); background: white; }
.checklist-item:first-child { border-top: 0; }
.checklist-item > summary { padding: 13px 11px; }
.checklist-title strong, .checklist-title small { display: block; }
.checklist-title small { margin-top: 4px; color: var(--muted); }
.checklist-detail { padding: 4px 12px 18px; }
.checklist-detail form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.info-note { padding: 11px 13px; border-radius: 8px; background: #edf7f6; color: #275b57; font-size: 13px; }
.service-filters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)) auto; gap: 14px; align-items: end; margin: 22px 0; padding: 18px; }
.service-filters .field { margin: 0; }
.service-filters .button { width: auto; min-width: 130px; }
.service-create { margin-bottom: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fafcfc; }
.service-create > summary { padding: 14px 16px; color: var(--teal); cursor: pointer; font-weight: 750; }
.service-create .inline-work-form { margin: 0; padding: 4px 16px 18px; border: 0; }
.service-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.service-item > div:first-child { min-width: 0; }
.service-item strong,.service-item span { display: block; }
.service-item > div:first-child > span { margin-top: 5px; color: var(--muted); font-size: 13px; }
.service-item p { margin: 8px 0 0; color: var(--muted); white-space: pre-line; }
.service-item.completed { opacity: .72; }
.service-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.service-actions form { margin: 0; }
.service-actions .text-button { font-size: 13px; }
.property-summary { margin-top: 0; }
.property-summary-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.applicant-maintenance { margin-bottom: 16px; overflow: hidden; }
.applicant-maintenance > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; background: #f8fafb; cursor: pointer; list-style: none; }
.applicant-maintenance > summary::-webkit-details-marker { display: none; }
.applicant-maintenance > summary strong,.applicant-maintenance > summary .applicant-number { display: block; }
.applicant-maintenance > form { padding: 22px; border-top: 1px solid var(--line); }
.maintenance-section-grid { display: grid; gap: 16px; padding: 22px; border-top: 1px solid var(--line); background: #fbfcfd; }
.maintenance-section-grid .maintenance-fieldset { margin: 0; background: #fff; }
.maintenance-fieldset { min-width: 0; margin: 20px 0; padding: 18px; border: 1px solid var(--line); border-radius: 11px; }
.maintenance-fieldset legend { padding: 0 7px; color: var(--navy); font-weight: 800; }
.lookup-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.property-check-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.property-check-grid .maintenance-fieldset { margin: 8px 0 20px; }
.case-module-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.case-module-grid > .panel { min-width: 0; margin-top: 0; }
.module-form { margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fafcfc; }
.module-form > summary { padding: 14px 16px; color: var(--teal); cursor: pointer; font-weight: 750; }
.module-form > form { padding: 4px 16px 18px; }
.identity-record,.insurance-record { margin-top: 11px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fafcfc; }
.identity-record > summary,.insurance-record > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 15px; cursor: pointer; list-style: none; }
.identity-record > summary::-webkit-details-marker,.insurance-record > summary::-webkit-details-marker { display: none; }
.identity-record > summary strong,.identity-record > summary small,.insurance-record > summary strong,.insurance-record > summary small { display: block; }
.identity-record > summary small,.insurance-record > summary small { margin-top: 4px; color: var(--muted); }
.identity-body,.insurance-body { padding: 16px; border-top: 1px solid var(--line); background: white; }
.identity-body form,.insurance-body form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.module-submit { display: flex; justify-content: flex-end; }
.post-completion-insurance { margin-top: 22px; }
.recipient-select-list { display: grid; gap: 10px; margin-bottom: 20px; }
.recipient-select { display: flex; align-items: flex-start; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fafcfc; }
.recipient-select input { margin-top: 4px; }
.recipient-select strong,.recipient-select small { display: block; }
.recipient-select small { margin-top: 4px; color: var(--muted); }
.recipient-select.disabled { opacity: .58; }
.campaign-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.campaign-actions form { margin: 0; }
.campaign-actions .secondary-link { cursor: pointer; }
.email-preview { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fafcfc; }
.email-preview p { margin-bottom: 0; }
@media (max-width: 650px) { .checklist-group > summary, .checklist-item > summary { align-items: flex-start; } }
@media (max-width: 850px) { .service-filters { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 900px) { .property-check-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .case-module-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } .full-field { grid-column: auto; } .page-actions, .case-heading { display: block; } .stage-pill.large { margin-bottom: 18px; } }
@media (max-width: 620px) { .service-filters { grid-template-columns: 1fr; } .service-filters .button { width: 100%; } .service-item { flex-direction: column; } }
@media (max-width: 620px) { .case-heading-actions { justify-content: flex-start; margin-bottom: 18px; } .property-summary-grid { grid-template-columns: 1fr; } .applicant-maintenance > summary { align-items: flex-start; } }
@media (max-width: 620px) { .applicant-card-header, .applicants-heading { align-items: flex-start; } .applicant-card-header { padding: 16px; } .applicant-card-body { padding: 18px 16px; } .applicant-card-actions { flex-direction: column; gap: 2px; } }
@media (max-width: 620px) { .action-group { align-items: stretch; flex-direction: column; margin-top: 16px; } .checkbox-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .document-type-grid { grid-template-columns: 1fr; } .portal-card { padding: 22px 18px; } .portal-upload-item,.portal-upload-item form { align-items: stretch; flex-direction: column; } }
@media (max-width: 620px) { .case-search > div,.case-result { align-items: stretch; flex-direction: column; } .case-search .button,.case-result .button-link { width: 100%; text-align: center; } }

.servicing-queue,.servicing-history { margin-top: 22px; }
.queue-count { display: grid; min-width: 44px; height: 44px; padding: 0 10px; place-items: center; border-radius: 999px; background: var(--teal-soft); color: #006d64; font-size: 18px; font-weight: 800; }
.servicing-list { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.servicing-row { display: grid; grid-template-columns: 22px 72px minmax(210px,1.5fr) minmax(145px,.8fr) minmax(130px,.7fr); align-items: center; gap: 14px; padding: 15px 16px; border-top: 1px solid var(--line); background: white; cursor: pointer; }
.servicing-row:first-child { border-top: 0; }
.servicing-row:hover { background: #f8fbfb; }
.servicing-row.disabled { cursor: not-allowed; opacity: .62; }
.servicing-row input { width: 18px; height: 18px; accent-color: var(--teal); }
.servicing-date,.servicing-main,.servicing-event,.servicing-progress { display: flex; flex-direction: column; gap: 3px; }
.servicing-date strong { color: var(--navy); font-size: 17px; }
.servicing-row small,.history-event small,.history-event time,.service-history-item small { color: var(--muted); font-size: 12px; }
.servicing-main > strong { color: var(--navy); }
.overdue-date strong,.overdue-date small { color: var(--danger); }
.send-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 18px; }
.send-bar p { max-width: 680px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.send-bar .button { width: auto; min-width: 160px; }
.history-event { padding: 17px 0; border-top: 1px solid var(--line); }
.history-event:first-of-type { border-top: 0; }
.history-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.history-summary > div:first-child > strong,.history-summary > div:first-child > small { display: block; }
.history-event-date { text-align: right; }
.history-event-date small,.history-event-date strong { display: block; }
.recipient-results { margin-top: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #fafcfc; }
.recipient-results > div { display: grid; grid-template-columns: minmax(170px,1fr) auto minmax(180px,.8fr); align-items: center; gap: 12px; padding: 11px 13px; border-top: 1px solid var(--line); }
.recipient-results > div:first-child { border-top: 0; }
.recipient-results strong,.recipient-results small { display: block; }
.recipient-results time { color: var(--muted); font-size: 12px; text-align: right; }
.service-subheading { margin: 22px 0 6px; color: var(--navy); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.service-history-item { display: grid; grid-template-columns: minmax(170px,.8fr) minmax(240px,1.2fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.service-history-item > div:first-child > strong,.service-history-item > div:first-child > small { display: block; }
.case-recipient-results { display: grid; gap: 7px; }
.case-recipient-results > span { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; }
.case-recipient-results > span > small { grid-column: 1 / -1; }
@media (max-width: 850px) { .servicing-row { grid-template-columns: 22px 65px 1fr; } .servicing-event,.servicing-progress { grid-column: 3; } }
@media (max-width: 620px) { .servicing-row { grid-template-columns: 22px 1fr; align-items: start; } .servicing-date,.servicing-main,.servicing-event,.servicing-progress { grid-column: 2; } .send-bar,.history-summary { align-items: stretch; flex-direction: column; } .send-bar .button { width: 100%; } .history-event-date { text-align: left; } .recipient-results > div,.service-history-item { grid-template-columns: 1fr; } .recipient-results time { text-align: left; } }
@media (max-width: 620px) { .document-metrics { grid-template-columns: 1fr; } .document-applicant-heading,.document-review-item > header { align-items: flex-start; } .file-action-row { width: 100%; } .file-action-row a { flex: 1; text-align: center; } }
