:root {
  --orange: #f6861f;
  --orange-dark: #a94f00;
  --orange-hover: #e97810;
  --orange-soft: #fff3e8;
  --charcoal: #1f1f1f;
  --black: #0e0e0e;
  --page: #f5f6f7;
  --line: #dedfe2;
  --line-strong: #c7c9cd;
  --muted: #64676c;
  --blue: #527f98;
  --blue-soft: #e9f2f7;
  --white: #fff;
  --green: #126343;
  --green-soft: #e7f7f0;
  --red: #a52319;
  --red-soft: #fff0ee;
  --amber: #765000;
  --amber-soft: #fff7df;
  --shadow: 0 12px 35px rgba(14, 14, 14, .08);
  --radius: 10px;
  --sidebar: 248px;
  --font: "Montserrat", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--charcoal); font-family: var(--font); line-height: 1.55; }
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .6; }
img { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
:focus-visible { outline: 3px solid rgba(246, 134, 31, .42); outline-offset: 3px; }
.tabular, .money { font-variant-numeric: tabular-nums; }
.money { font-weight: 750; white-space: nowrap; }
.muted { color: var(--muted); }
.stack { display: grid; align-content: start; gap: 18px; }
.section-gap { margin-top: 18px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 1000; padding: .75rem 1rem; border-radius: 6px; background: var(--white); color: var(--black); box-shadow: var(--shadow); font-weight: 700; }
.skip-link:focus { top: 1rem; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; display: flex; width: var(--sidebar); flex-direction: column; overflow-y: auto; background: linear-gradient(165deg, #292929, #131313); color: var(--white); border-right: 1px solid #333; }
.brand { min-height: 112px; padding: 27px 25px 22px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand img { width: 145px; }
.brand small { display: block; margin-top: 10px; color: #bcbcbc; font-size: .7rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.nav { display: grid; gap: 4px; padding: 19px 12px; }
.nav a { position: relative; display: flex; min-height: 46px; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 7px; color: #d7d7d7; font-size: .875rem; font-weight: 650; transition: background .18s ease, color .18s ease; }
.nav a:hover { background: rgba(255,255,255,.07); color: var(--white); }
.nav a.active { background: linear-gradient(90deg, rgba(246,134,31,.23), rgba(246,134,31,.07)); color: var(--white); }
.nav a.active::before { content: ""; position: absolute; left: -12px; top: 7px; bottom: 7px; width: 4px; border-radius: 0 4px 4px 0; background: var(--orange); }
.nav svg { width: 19px; height: 19px; flex: 0 0 19px; color: var(--orange); }
.sidebar-user { margin-top: auto; padding: 19px 22px; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-user-row { display: flex; align-items: center; gap: 11px; }
.sidebar-user-row > a { min-width: 0; }
.sidebar-user strong { display: block; overflow: hidden; color: var(--white); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user small { display: block; overflow: hidden; color: #bcbcbc; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.signout { min-height: 42px; margin: 5px 0 0 46px; padding: 8px 0; border: 0; background: none; color: #cfcfcf; font-size: .76rem; font-weight: 650; }
.nav-backdrop { display: none; }
.main { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; height: 72px; align-items: center; justify-content: space-between; padding: 0 36px; border-bottom: 1px solid var(--line); background: rgba(245,246,247,.94); backdrop-filter: blur(14px); }
.topbar-start, .top-actions { display: flex; align-items: center; gap: 11px; min-width: 0; }
.crumb { overflow: hidden; color: #62656a; font-size: .72rem; font-weight: 750; letter-spacing: .1em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.icon-button { position: relative; display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--white); color: var(--charcoal); }
.icon-button:hover { border-color: var(--line-strong); background: #fafafa; }
.icon-button svg { width: 20px; height: 20px; }
.menu-toggle { display: none; }
.notification-dot { position: absolute; right: -5px; top: -6px; display: grid; min-width: 20px; height: 20px; place-items: center; padding: 0 4px; border: 2px solid var(--page); border-radius: 20px; background: var(--orange); color: var(--black); font-size: .64rem; font-weight: 800; }
.avatar { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 50%; background: var(--orange); color: var(--black); box-shadow: 0 0 0 3px rgba(246,134,31,.15); font-size: .78rem; font-weight: 800; }
.content { width: 100%; max-width: 1550px; margin: auto; padding: 32px 36px 64px; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 25px; }
.page-head > div:first-child { min-width: 0; }
.eyebrow { margin-bottom: 6px; color: var(--orange-dark); font-size: .71rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.page-head h1, .auth-copy h1 { margin: 0; color: var(--black); font-size: clamp(1.8rem, 3vw, 2.45rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.12; }
.page-head p { max-width: 730px; margin: 8px 0 0; color: var(--muted); font-size: .92rem; }
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: 1px solid transparent; border-radius: 7px; font-size: .8rem; font-weight: 750; line-height: 1.2; text-align: center; transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 15px rgba(14,14,14,.09); }
.btn-primary { background: var(--orange); color: var(--black); }
.btn-primary:hover { background: var(--orange-hover); }
.btn-secondary { border-color: #cfd1d5; background: var(--white); color: var(--charcoal); }
.btn-secondary:hover { border-color: #b5b8bd; background: #fafafa; }
.btn-dark { background: var(--charcoal); color: var(--white); }
.btn-danger { border-color: #ebbbb6; background: var(--red-soft); color: var(--red); }
.btn-success { background: var(--green); color: var(--white); }
.btn-sm { min-height: 38px; padding: 8px 11px; font-size: .75rem; }
.btn-block { width: 100%; }
.btn-icon svg { width: 17px; height: 17px; }

.card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 2px 5px rgba(14,14,14,.025); }
.card-head { display: flex; min-height: 60px; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 19px; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { margin: 0; color: var(--black); font-size: 1rem; line-height: 1.3; }
.card-body { padding: 20px; }
.accent-card { border-top: 3px solid var(--orange); }
.correction-workflow .card-body { padding: 0; }
.correction-reason { margin: 20px 20px 0; }
.correction-reason p { margin: 5px 0 0; }
.correction-path { padding: 20px; }
.correction-path + .correction-path { border-top: 1px solid var(--line); }
.correction-path-heading { display: flex; align-items: flex-start; gap: 12px; }
.correction-path-heading h3 { margin: 0; color: var(--black); font-size: .9rem; line-height: 1.35; }
.correction-path-heading p { margin: 4px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.correction-path-number { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 50%; background: var(--orange-soft); color: var(--orange-dark); font-size: .75rem; font-weight: 900; }
.correction-action-help { display: block; margin-top: 7px; text-align: center; }
.btn:disabled:hover { box-shadow: none; transform: none; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.metric { position: relative; min-height: 126px; overflow: hidden; padding: 18px; border-left: 3px solid var(--orange); }
.metric::after { content: ""; position: absolute; right: -30px; top: -34px; width: 78px; height: 78px; border-radius: 50%; background: var(--orange-soft); }
.metric-label { color: #666a6f; font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.metric-value { margin: 7px 0 4px; color: var(--black); font-size: clamp(1.35rem, 2vw, 1.7rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.2; }
.metric-value.compact { font-size: 1.18rem; letter-spacing: -.02em; }
.metric-note { color: #777b80; font-size: .75rem; }
.metric-note.good { color: var(--green); }
.dashboard-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 4px 0 12px; }
.dashboard-section-heading h2 { margin: 4px 0 0; color: var(--black); font-size: 1.06rem; letter-spacing: -.015em; }
.dashboard-section-heading .eyebrow { font-size: .65rem; }
.section-context { color: var(--muted); font-size: .72rem; }
.dashboard-priority-heading { margin-top: 2px; }
.dashboard-work-heading { margin-top: 5px; }
.metric-link { color: inherit; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.metric-link:hover, .metric-link:focus-visible { border-color: #cfb69f; box-shadow: var(--shadow); transform: translateY(-2px); }
.metric-action { display: block; margin-top: 8px; color: var(--orange-dark); font-size: .68rem; font-weight: 800; }
.metric-alert { border-color: #e2a19a; border-left-color: var(--red); background: linear-gradient(135deg,#fff 70%,var(--red-soft)); }
.metric-alert::after { background: var(--red-soft); }
.metric-alert .metric-value, .metric-alert .metric-action { color: var(--red); }
.company-snapshot { margin-bottom: 20px; overflow: hidden; border-top: 3px solid var(--orange); }
.company-snapshot-values { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.company-snapshot-value { display: grid; gap: 5px; min-height: 92px; align-content: center; padding: 17px 20px; transition: background .15s ease; }
.company-snapshot-value + .company-snapshot-value { border-left: 1px solid var(--line); }
.company-snapshot-value:hover, .company-snapshot-value:focus-visible { outline: 0; background: #fff8f1; }
.company-snapshot-value strong { color: var(--black); font-size: 1.35rem; letter-spacing: -.025em; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(330px,.85fr); align-items: start; gap: 18px; margin-bottom: 18px; }
.dashboard-review-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(330px,.75fr); align-items: start; gap: 18px; margin-bottom: 20px; }
.dashboard-review-grid.single { grid-template-columns: 1fr; }
.dashboard-review-card { min-width: 0; overflow: hidden; border-top: 3px solid var(--orange); }
.dashboard-review-card .card-head .btn { flex: 0 0 auto; white-space: nowrap; }
.dashboard-review-table .record-title { display: block; }
.dashboard-independent-reviews { padding-top: 7px; padding-bottom: 7px; }
.dashboard-independent-reviews .list-row { min-height: 76px; }
.dashboard-management-heading { margin-top: 5px; }
.dashboard-commission-list { padding-top: 8px; padding-bottom: 8px; }
.dashboard-commission-row { min-height: 78px; }
.clickable-row { cursor: pointer; transition: background .15s ease, box-shadow .15s ease; }
.clickable-row:hover, .clickable-row:focus-visible { outline: 0; background: #fff8f1; box-shadow: inset 3px 0 var(--orange); }
.dashboard-notification-list { padding: 6px 19px 10px; }
.dashboard-notification-empty { padding-top: 24px; padding-bottom: 24px; }
.dashboard-notification-form { margin: 0; border-bottom: 1px solid #ededee; }
.dashboard-notification-form:last-child { border-bottom: 0; }
.dashboard-notification-row { display: grid; width: 100%; grid-template-columns: 34px minmax(0,1fr) auto 18px; align-items: center; gap: 12px; padding: 13px 4px; border: 0; border-radius: 7px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .15s ease; }
.dashboard-notification-row:hover, .dashboard-notification-row:focus-visible { outline: 0; background: #fff8f1; }
.notification-category-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; background: #f0f1f2; color: #5f6469; font-size: .72rem; font-weight: 900; }
.notification-category-icon.expense { background: var(--orange-soft); color: var(--orange-dark); }
.notification-category-icon.commission { background: #fff3cf; color: #725100; }
.notification-category-icon.lead { background: #edf6ef; color: #23613b; }
.notification-category-icon.contract { background: #f0edf8; color: #55417b; }
.notification-category-icon.general { background: #eaf2f7; color: #285b77; }
.notification-copy { display: grid; min-width: 0; gap: 3px; }
.notification-title-line { display: flex; min-width: 0; align-items: center; gap: 8px; }
.notification-title-line b { overflow: hidden; color: var(--black); font-size: .81rem; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-notification-row .record-subtitle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-notification-row > time { min-width: 82px; text-align: right; }
.unread-label { padding: 2px 6px; border-radius: 10px; background: var(--orange-soft); color: var(--orange-dark); font-size: .58rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.notification-chevron { color: var(--orange-dark); font-weight: 900; }
.two-col { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.three-col { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(300px,.65fr); gap: 18px; }

.admin-page-head { margin-bottom: 18px; }
.admin-tabs { position: sticky; top: 72px; z-index: 20; display: flex; gap: 5px; margin: 0 0 22px; overflow-x: auto; padding: 7px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.96); box-shadow: 0 7px 22px rgba(14,14,14,.045); scrollbar-width: thin; backdrop-filter: blur(12px); }
.admin-tabs a { min-height: 38px; flex: 0 0 auto; padding: 9px 12px; border-radius: 6px; color: #64686d; font-size: .73rem; font-weight: 750; white-space: nowrap; }
.admin-tabs a:hover { background: #f4f4f4; color: var(--black); }
.admin-tabs a.active { background: var(--charcoal); color: var(--white); }
.admin-metric { color: inherit; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.admin-metric:hover { border-color: #cfb69f; box-shadow: var(--shadow); transform: translateY(-2px); }
.admin-overview-grid { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); align-items: start; gap: 18px; }
.admin-health-list { display: grid; padding-top: 6px; padding-bottom: 6px; }
.admin-health-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid #ededee; }
.admin-health-row:last-child { border-bottom: 0; }
.admin-health-row > span:first-child { display: grid; min-width: 0; gap: 3px; }
.admin-health-row strong { color: var(--black); font-size: .82rem; }
.admin-health-row small { color: var(--muted); font-size: .73rem; }
.admin-activity-list { display: grid; padding: 5px 19px; }
.admin-activity-row { display: grid; grid-template-columns: 10px minmax(0,1fr); gap: 11px; padding: 12px 0; border-bottom: 1px solid #ededee; }
.admin-activity-row:last-child { border-bottom: 0; }
.admin-activity-row > span:last-child { display: grid; gap: 2px; }
.admin-activity-row strong { color: var(--charcoal); font-size: .78rem; }
.admin-activity-row small { color: var(--muted); font-size: .69rem; }
.activity-mark { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.admin-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 3px 0 17px; }
.admin-section-head h2 { margin: 0; color: var(--black); font-size: 1.45rem; letter-spacing: -.025em; }
.admin-section-head p { max-width: 780px; margin: 5px 0 0; color: var(--muted); font-size: .82rem; }
.admin-count { padding: 7px 10px; border-radius: 6px; background: #eceef0; color: #565a5f; font-size: .72rem; font-weight: 750; white-space: nowrap; }
.admin-card-grid { align-items: start; }
.admin-independent-card { align-self: start; overflow: hidden; }
.admin-table-tools { min-height: 62px; justify-content: flex-start; }
.admin-table-tools .record-subtitle { margin-left: auto; text-align: right; }
.admin-table-tools.compact { min-height: auto; padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.admin-search { width: min(430px,100%); }
.admin-search input { min-height: 40px; }
.table-search-form { display: flex; align-items: center; gap: 7px; }
.table-search-form label { min-width: 180px; flex: 1 1 auto; }
.admin-filter-empty td { border: 0; }
.admin-dialog { width: min(680px,calc(100vw - 30px)); border-top: 4px solid var(--orange); }
.admin-dialog .dialog-head { align-items: flex-start; }
.dialog-kicker { display: block; margin-bottom: 3px; color: var(--orange-dark); font-size: .63rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.admin-dialog-intro { margin: 0 0 19px; }
.admin-dialog .form-actions { margin-bottom: -4px; }
.no-break { white-space: nowrap; }
.code-label { width: fit-content; margin-top: 5px; padding: 2px 5px; border-radius: 4px; background: #f0f1f2; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .63rem; overflow-wrap: anywhere; }
.audit-table td { vertical-align: top; }
.audit-table td:nth-child(1) { width: 142px; }
.audit-table td:nth-child(2) { width: 235px; }
.audit-table td:nth-child(3) { width: 160px; }
.audit-details { margin-top: 7px; }
.audit-details summary { width: fit-content; color: var(--orange-dark); cursor: pointer; font-size: .69rem; font-weight: 750; }
.audit-details dl { display: grid; gap: 7px; margin: 9px 0 0; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #fafafa; }
.audit-details dl div { display: grid; grid-template-columns: 95px minmax(0,1fr); gap: 8px; }
.audit-details dt { color: var(--muted); font-size: .66rem; font-weight: 750; }
.audit-details dd { min-width: 0; margin: 0; color: var(--charcoal); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .66rem; overflow-wrap: anywhere; }
.admin-audit-filter { align-items: flex-end; }
.role-choice-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.role-choice-list > div { min-width: 0; }
.role-choice-list label { display: flex; align-items: flex-start; gap: 8px; min-height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: #fafafa; color: var(--charcoal); font-size: .76rem; font-weight: 700; line-height: 1.35; cursor: pointer; }
.role-choice-list input { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; accent-color: var(--orange-hover); }

.table-wrap { width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.data-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.data-table caption { padding: 12px 18px; color: var(--muted); font-size: .76rem; text-align: left; }
.data-table th { padding: 11px 14px; border-bottom: 2px solid var(--orange); color: #65686d; font-size: .66rem; font-weight: 800; letter-spacing: .075em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 13px 14px; border-bottom: 1px solid #ededee; vertical-align: middle; }
.data-table tbody tr:hover { background: #fffaf6; }
.data-table tbody tr.commission-action-row { background: #fffaf5; }
.data-table tbody tr.commission-action-row td:first-child { box-shadow: inset 3px 0 0 var(--orange); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.record-title { color: var(--black); font-weight: 750; }
.record-subtitle { display: block; margin-top: 2px; color: #73777c; font-size: .73rem; line-height: 1.45; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 99px; font-size: .69rem; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: currentColor; }
.status-approved, .status-paid, .status-verified, .status-won, .status-resolved { color: var(--green); background: var(--green-soft); }
.status-rejected, .status-cancelled, .status-lost, .status-withdrawn, .status-duplicate, .status-unqualified, .status-failed { color: var(--red); background: var(--red-soft); }
.status-draft, .status-historical { color: #50545a; background: #eceef0; }
.status-team_lead_review, .status-hr_review, .status-under_review, .status-submitted, .status-resubmitted, .status-assigned, .status-negotiation, .status-contract_signed, .status-initial_payment, .status-initial_payment_confirmed, .status-open { color: var(--amber); background: var(--amber-soft); }
.empty { padding: 42px 20px; color: var(--muted); text-align: center; }
.empty-mark { display: grid; width: 56px; height: 56px; margin: 0 auto 13px; place-items: center; border-radius: 15px; background: var(--orange-soft); color: var(--orange-dark); }
.empty-mark svg { width: 26px; height: 26px; }
.empty strong { display: block; margin-bottom: 4px; color: var(--charcoal); }
.list-stack { display: grid; }
.list-row { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid #ededee; }
.list-row:last-child { border-bottom: 0; }
.list-row > span:first-child { min-width: 0; }
.amount-block { display: grid; justify-items: end; gap: 5px; text-align: right; }

.filter-panel { display: flex; align-items: end; gap: 12px; margin-bottom: 18px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.filter-panel .field { flex: 1 1 190px; }
.filter-panel .search-field { flex: 2 1 280px; }
.filter-bar { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.filter-chip { display: inline-flex; min-height: 40px; flex: 0 0 auto; align-items: center; padding: 8px 13px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); font-size: .74rem; font-weight: 700; }
.filter-chip.active { border-color: var(--charcoal); background: var(--charcoal); color: var(--white); }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); background: #fcfcfc; }
.pagination-summary, .pagination-pages, .pagination-size { display: flex; align-items: center; gap: 8px; }
.pagination-summary { flex-wrap: wrap; }
.pagination-info { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.pagination-size { padding-left: 10px; border-left: 1px solid var(--line); }
.pagination-size label { color: var(--muted); font-size: .72rem; font-weight: 750; }
.pagination-size select { min-width: 70px; height: 34px; padding: 4px 26px 4px 9px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--white); color: var(--charcoal); font-size: .73rem; font-weight: 700; }
.pagination-pages { justify-content: flex-end; flex-wrap: wrap; }
.page-link { display: inline-grid; min-width: 34px; height: 34px; place-items: center; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--charcoal); font-size: .72rem; font-weight: 750; }
.page-link:hover { border-color: #b8bbc0; background: var(--orange-soft); }
.page-link.current { border-color: var(--charcoal); background: var(--charcoal); color: var(--white); }
.page-edge { min-width: auto; }
.page-ellipsis { display: inline-grid; width: 24px; height: 34px; place-items: center; color: var(--muted); }

.form-card { width: 100%; max-width: 1080px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.form-grid .full { grid-column: 1 / -1; }
.form-section { min-width: 0; margin: 0; padding: 0; border: 0; }
.form-section + .form-section { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-section legend { display: flex; align-items: center; gap: 11px; width: 100%; margin: 0 0 17px; padding: 0; color: var(--charcoal); }
.form-section legend strong, .form-section legend small { display: block; }
.form-section legend strong { font-size: .9rem; }
.form-section legend small { margin-top: 2px; color: var(--muted); font-size: .72rem; font-weight: 500; }
.form-section-number { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 50%; background: var(--orange-soft); color: var(--orange-dark); font-size: .76rem; font-weight: 900; }
.field { display: grid; min-width: 0; gap: 7px; }
.field label, .form-card form > p label, .auth-box form > p label, .dialog-body form > p label, .card-body form > p label { color: #555a60; font-size: .72rem; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.field.checkbox-field, form > p:has(.check-input) { display: flex; align-items: flex-start; gap: 10px; }
.field.checkbox-field label, form > p:has(.check-input) label { order: 2; padding-top: 2px; color: var(--charcoal); font-size: .8rem; letter-spacing: 0; text-transform: none; }
.required-marker { color: var(--orange-dark); font-weight: 900; }
.field-qualifier { color: var(--muted); font-size: .66rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.contract-source-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.contract-source-summary div { display: grid; gap: 3px; }
.contract-source-summary span { color: #527084; font-size: .67rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.contract-source-summary strong { overflow-wrap: anywhere; color: #24495e; }
.form-control { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #c8cbd0; border-radius: 7px; background: var(--white); color: var(--charcoal); transition: border .18s ease, box-shadow .18s ease; }
:where(.auth-box,.card-body,.dialog-body) input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
:where(.auth-box,.card-body,.dialog-body) select,
:where(.auth-box,.card-body,.dialog-body) textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #c8cbd0; border-radius: 7px; background: var(--white); color: var(--charcoal); }
:where(.auth-box,.card-body,.dialog-body) input:focus,
:where(.auth-box,.card-body,.dialog-body) select:focus,
:where(.auth-box,.card-body,.dialog-body) textarea:focus { border-color: var(--orange-hover); outline: 0; box-shadow: 0 0 0 3px rgba(246,134,31,.16); }
.form-control:hover { border-color: #aeb2b7; }
.form-control:focus { border-color: var(--orange-hover); outline: 0; box-shadow: 0 0 0 3px rgba(246,134,31,.16); }
.form-control[aria-invalid="true"] { border-color: var(--red); }
textarea.form-control { min-height: 86px; resize: vertical; }
select.form-control { padding-right: 36px; }
input[type="file"].form-control { padding: 7px; }
input[type="file"]::file-selector-button { min-height: 30px; margin-right: 10px; padding: 5px 10px; border: 0; border-radius: 5px; background: var(--charcoal); color: var(--white); font-weight: 700; }
.check-input { width: 20px; height: 20px; flex: 0 0 20px; margin: 1px 0 0; accent-color: var(--orange-hover); }
.helptext, .help { color: #6c7075; font-size: .73rem; }
.helptext ul, ul.helptext { margin: 5px 0 0; padding-left: 18px; }
.errorlist { margin: 2px 0 0; padding: 0; list-style: none; color: var(--red); font-size: .75rem; font-weight: 700; }
.error-summary { margin-bottom: 18px; padding: 14px 16px; border: 1px solid #e8b2ad; border-left: 4px solid var(--red); border-radius: 7px; background: var(--red-soft); color: #761811; }
.error-summary h2, .error-summary h3 { margin: 0 0 4px; font-size: .9rem; }
.error-summary p { margin: 0; font-size: .78rem; }
.form-card form > p, .auth-box form > p, .dialog-body form > p, .card-body form > p { display: grid; gap: 7px; margin: 0 0 16px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 19px; padding-top: 18px; border-top: 1px solid var(--line); }
.item-card { margin: 14px 0; padding: 20px; border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: 8px; background: var(--white); }
.item-card:first-child { margin-top: 0; }
.item-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.item-title strong { font-size: .9rem; }
.field-group { display: grid; gap: 17px; }
.subtle-panel { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--page); }
.info-panel, .warning-panel, .security-note { padding: 13px 15px; border-radius: 7px; font-size: .78rem; }
.info-panel, .security-note { border: 1px solid #c2d9e5; background: var(--blue-soft); color: #345b70; }
.security-note summary { cursor: pointer; font-weight: 750; }
.security-note p:last-child { margin-bottom: 0; }
.warning-panel { border: 1px solid #efc89f; background: var(--orange-soft); color: #64370e; }
.workflow-waiting { border-top: 3px solid #d5a83e; }
.workflow-owner { margin: 0; color: var(--muted); font-size: .82rem; }
.workflow-owner strong { color: var(--charcoal); }
.override-panel { overflow: hidden; border: 1px solid #e5c9a8; border-radius: 8px; background: #fffcf8; }
.override-panel > summary { padding: 13px 15px; color: #704211; cursor: pointer; font-size: .76rem; font-weight: 800; list-style-position: inside; }
.override-panel[open] > summary { border-bottom: 1px solid #ead8c3; background: var(--orange-soft); }
.override-panel-body { padding: 15px; }
.upload-note { display: flex; align-items: flex-start; gap: 10px; }
.claim-total { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); }
.claim-total .summary-row { padding: 0; }
.claim-total strong { font-size: 1.1rem; }
.expense-form-sidebar { align-content: start; align-self: start; }
.expense-form-sidebar .form-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.expense-form-sidebar .form-actions .btn { width: 100%; }
.expense-form-sidebar .form-actions .expense-submit-action { grid-column: 1 / -1; }

.summary-list { display: grid; }
.summary-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid #ededee; font-size: .8rem; }
.summary-row > :last-child { max-width: 66%; text-align: right; overflow-wrap: anywhere; }
.summary-row > span:first-child { color: #6b6f74; }
.summary-row:last-child { border-bottom: 0; }
.timeline { position: relative; padding-left: 27px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: #dedfe1; }
.timeline-item { position: relative; padding: 0 0 21px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -24px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.timeline-item strong { font-size: .8rem; }
.timeline-item p { margin: 3px 0; color: #666a6f; font-size: .75rem; }
.timeline-item time { color: #777b80; font-size: .69rem; }
.timeline-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.timeline-heading strong { min-width: 0; }
.history-version { flex: 0 0 auto; padding: 2px 6px; border-radius: 4px; background: #eef0f2; color: #5d6166; font-size: .58rem; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.history-override { display: inline-block; margin-left: 4px; padding: 1px 5px; border-radius: 4px; background: var(--orange-soft); color: var(--orange-dark); font-size: .6rem; font-weight: 800; }
.timeline-item .timeline-comment { color: var(--charcoal); font-style: italic; }
.stepper { display: grid; grid-template-columns: repeat(4,1fr); margin-bottom: 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.step { position: relative; display: grid; justify-items: center; gap: 5px; color: #73777c; font-size: .7rem; font-weight: 700; text-align: center; }
.step::before { content: ""; z-index: 1; width: 12px; height: 12px; border: 3px solid var(--white); border-radius: 50%; background: #c8cbd0; box-shadow: 0 0 0 1px #c8cbd0; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 6px; left: 50%; width: 100%; height: 2px; background: #dfe1e4; }
.step.complete::before, .step.current::before { background: var(--orange); box-shadow: 0 0 0 1px var(--orange-hover); }
.step.complete:not(:last-child)::after { background: var(--orange); }
.step.current { color: var(--black); }

.messages { position: fixed; right: 24px; top: 84px; z-index: 80; display: grid; gap: 8px; width: min(410px,calc(100vw - 32px)); }
.message { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 7px; background: var(--white); box-shadow: var(--shadow); font-size: .8rem; animation: slide-in .25s ease; }
.message.success { border-left-color: var(--green); }
.message.error { border-left-color: var(--red); }
.message.warning { border-left-color: var(--amber); }
.message button { width: 28px; height: 28px; flex: 0 0 28px; margin: -5px -6px -5px 0; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 1.05rem; }
@keyframes slide-in { from { opacity: 0; transform: translateX(12px); } }
dialog { width: min(560px,calc(100vw - 30px)); max-height: calc(100dvh - 30px); overflow-y: auto; padding: 0; border: 0; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(14,14,14,.6); backdrop-filter: blur(3px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.dialog-head h3 { margin: 0; font-size: 1rem; }
.dialog-body { padding: 20px; }
.dialog-close { display: grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 7px; background: transparent; font-size: 1.25rem; }
.confirm-dialog { width: min(500px,calc(100vw - 30px)); overflow: hidden; border-top: 4px solid var(--orange); background: var(--white); }
.confirm-dialog[open] { animation: confirm-dialog-in .2s ease-out; }
.confirm-dialog-inner { display: flex; align-items: flex-start; gap: 17px; padding: 28px 28px 21px; }
.confirm-dialog-mark { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border-radius: 50%; background: var(--orange-soft); color: var(--orange-dark); }
.confirm-dialog-mark svg { width: 25px; height: 25px; stroke-width: 1.9; }
.confirm-dialog-copy { min-width: 0; }
.confirm-dialog-eyebrow { display: block; margin-bottom: 5px; color: var(--orange-dark); font-size: .67rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.confirm-dialog h2 { margin: 0; color: var(--black); font-size: 1.28rem; letter-spacing: -.02em; line-height: 1.25; }
.confirm-dialog p { margin: 9px 0 0; color: var(--muted); font-size: .87rem; line-height: 1.65; }
.confirm-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 17px 28px 22px; border-top: 1px solid var(--line); background: #fafafa; }
.confirm-dialog-actions .btn { min-width: 118px; }
@keyframes confirm-dialog-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.code { display: inline-block; padding: 2px 6px; border-radius: 4px; background: #eceef0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .74rem; overflow-wrap: anywhere; }
.role-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { padding: 4px 8px; border-radius: 5px; background: var(--orange-soft); color: var(--orange-dark); font-size: .65rem; font-weight: 800; }
.progress-row { margin: 15px 0; }
.progress-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; font-size: .76rem; font-weight: 650; }
.progress { height: 8px; overflow: hidden; border-radius: 10px; background: #e9eaec; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--orange),#ffb367); }
.progress-native { width: 100%; height: 8px; border: 0; border-radius: 10px; overflow: hidden; background: #e9eaec; appearance: none; }
.progress-native::-webkit-progress-bar { background: #e9eaec; }
.progress-native::-webkit-progress-value { background: linear-gradient(90deg,var(--orange),#ffb367); }
.progress-native::-moz-progress-bar { background: var(--orange); }
.report-breakdown-grid { align-items: start; }
.report-breakdown-card { width: 100%; }
.report-progress-track { position: relative; }
.report-progress-track .progress-native { display: block; }
.report-progress-origin { position: absolute; inset: 0 auto 0 0; width: 5px; border-radius: 10px; background: var(--orange); pointer-events: none; }
.notification-item { position: relative; align-items: flex-start; padding-left: 18px; }
.notification-item.unread::before { content: ""; position: absolute; left: 0; top: 20px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.notification-centre-card { overflow: hidden; }
.notification-centre-list { padding: 7px 20px; }
.notification-centre-row { display: grid; grid-template-columns: 36px minmax(0,1fr) 142px; align-items: start; gap: 14px; padding: 16px 3px; border-bottom: 1px solid #e9eaec; transition: background .15s ease; }
.notification-centre-row:last-child { border-bottom: 0; }
.notification-centre-row:hover { background: #fffaf6; }
.notification-centre-row.unread { box-shadow: inset 3px 0 var(--orange); }
.notification-centre-row .notification-category-icon { margin-top: 1px; }
.notification-centre-copy { display: grid; min-width: 0; gap: 5px; }
.notification-centre-copy .notification-title-line { align-items: center; }
.notification-centre-copy h2 { min-width: 0; margin: 0; overflow: hidden; color: var(--black); font-size: .88rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.notification-centre-copy p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.notification-centre-meta { display: grid; justify-items: end; gap: 8px; }
.notification-centre-meta time { color: var(--muted); font-size: .69rem; white-space: nowrap; }
.notification-open-form { margin: 0; }
.notification-row-action { display: inline-flex; align-items: center; gap: 6px; padding: 3px 0; border: 0; background: transparent; color: var(--orange-dark); font: inherit; font-size: .72rem; font-weight: 800; cursor: pointer; }
.notification-row-action:hover, .notification-row-action:focus-visible { outline: 0; text-decoration: underline; text-underline-offset: 3px; }
.notification-access-note { color: #8b2f26; font-size: .71rem; font-weight: 700; }
.notification-centre-empty { min-height: 170px; }

.auth-shell { min-height: 100dvh; display: grid; grid-template-columns: minmax(390px,1.05fr) minmax(440px,.95fr); background: var(--white); }
.auth-visual { position: relative; display: flex; min-height: 100dvh; flex-direction: column; overflow: hidden; padding: 48px clamp(35px,6vw,90px); background: linear-gradient(145deg,#fa8a25,#e9740c); color: var(--black); }
.auth-brand { position: relative; z-index: 2; width: 170px; }
.auth-copy { position: relative; z-index: 2; margin: auto 0; }
.auth-copy .kicker { font-size: .71rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; opacity: .8; }
.auth-copy h1 { max-width: 700px; margin: 14px 0 20px; color: var(--black); font-size: clamp(2.3rem,4.2vw,4.2rem); }
.auth-copy p { max-width: 570px; margin: 0; font-size: .97rem; }
.hero-art { position: absolute; right: -25px; bottom: -20px; width: min(48vw,560px); opacity: .27; }
.auth-foot { position: relative; z-index: 2; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.auth-panel { display: grid; min-width: 0; place-items: center; padding: 42px; background: linear-gradient(135deg,#fff,#fbfbfb); }
.auth-box { width: min(440px,100%); }
.secure-mark { width: 44px; height: 4px; margin-bottom: 18px; border-radius: 4px; background: var(--orange); }
.auth-box h2 { margin: 0 0 7px; color: var(--black); font-size: 2rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.15; }
.auth-box > p { margin: 0 0 25px; color: var(--muted); font-size: .84rem; }
.auth-links { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 17px; font-size: .78rem; }
.auth-links a, .text-link { color: var(--orange-dark); font-weight: 750; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.auth-links a:hover, .text-link:hover { text-decoration-color: currentColor; }
.notification-open-form { display: inline; margin: 0; }
.notification-open-link { padding: 0; border: 0; background: transparent; font-size: .72rem; text-align: left; }
.auth-inline-links { display: flex; justify-content: space-between; gap: 12px; margin: -5px 0 15px; font-size: .75rem; }
.login-hero-copy { width: min(100%,600px); margin: clamp(68px,12vh,105px) 0 auto; }
.login-hero-title span { display: block; }
.login-hero-copy p { max-width: 540px; line-height: 1.6; }
.login-hero-copy + .hero-art { right: -70px; bottom: -45px; width: min(42vw,500px); opacity: .17; }
.login-auth-foot { margin-top: 38px; }
.no-wrap { white-space: nowrap; }
.login-form { margin-top: 2px; }
.login-form .field { gap: 8px; margin-bottom: 18px; }
.login-password-field { margin-bottom: 0 !important; }
.password-input-wrap { position: relative; }
.password-input-wrap input { padding-right: 50px !important; }
.password-toggle { position: absolute; top: 50%; right: 6px; display: grid; width: 36px; height: 36px; padding: 7px; place-items: center; transform: translateY(-50%); border: 0; border-radius: 6px; background: transparent; color: #60656b; cursor: pointer; }
.password-toggle:hover { background: #fff3e8; }
.password-toggle[aria-pressed="true"] { color: var(--orange-dark); }
.password-eye { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.password-eye-hide, .password-toggle[aria-pressed="true"] .password-eye-show { display: none; }
.password-toggle[aria-pressed="true"] .password-eye-hide { display: block; }
.password-toggle:focus-visible, .login-box a:focus-visible { outline: 3px solid rgba(246,134,31,.3); outline-offset: 2px; }
.profile-grid { align-items: start; }
.profile-page-head { margin-bottom: 22px; }
.profile-password-form, .profile-security-form, .profile-preference-form { display: grid; gap: 16px; }
.profile-password-form .profile-password-field, .profile-security-form .profile-password-field { gap: 8px; }
.profile-preference-choice { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 11px; align-items: start; padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: #fafafa; }
.profile-preference-choice .check-input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--orange); }
.profile-preference-choice label { cursor: pointer; }
.profile-preference-choice strong, .profile-preference-choice span { display: block; }
.profile-preference-choice strong { color: var(--charcoal); font-size: .83rem; }
.profile-preference-choice span { margin-top: 3px; color: var(--muted); font-size: .74rem; line-height: 1.45; }
.profile-security-footnote { margin: 17px 0 0; padding-top: 15px; border-top: 1px solid var(--line); line-height: 1.5; }
.login-password-support { display: flex; justify-content: flex-end; margin: 8px 0 20px; font-size: .76rem; }
.login-submit { min-height: 46px; }
.login-verification-help { display: grid; gap: 4px; margin-top: 16px; padding: 14px 0 15px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .77rem; }
.login-verification-help a { width: fit-content; }
.login-account-link { margin-top: 15px; }
.signup-box { width: min(500px,100%); }
.signup-box > .signup-required-note { margin: -10px 0 19px; color: var(--muted); font-size: .7rem; font-weight: 650; }
.signup-required-note span { color: var(--orange-dark); font-weight: 900; }
.signup-form { display: grid; gap: 22px; }
.signup-section { min-width: 0; margin: 0; padding: 0; border: 0; }
.signup-section + .signup-section { padding-top: 20px; border-top: 1px solid var(--line); }
.signup-section legend { width: 100%; margin: 0 0 15px; padding: 0; color: var(--charcoal); font-size: .73rem; font-weight: 850; letter-spacing: .065em; text-transform: uppercase; }
.signup-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px 14px; }
.signup-fields .full { grid-column: 1 / -1; }
.signup-form .field { gap: 7px; }
.signup-security-section { display: grid; gap: 14px; }
.signup-security-section .password-meter { margin: -6px 0 -6px; }
.signup-security-section .password-strength-text { margin: -2px 0 1px; }
.signup-confirmation { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 4px 10px; align-items: start; padding: 12px 13px; border: 1px solid var(--line); border-radius: 7px; background: #fafafa; }
.signup-confirmation label { padding-top: 1px; color: var(--charcoal); font-size: .78rem; font-weight: 750; line-height: 1.45; cursor: pointer; }
.signup-confirmation .errorlist { grid-column: 1 / -1; }
.signup-submit { min-height: 46px; }
.signup-hero-copy { margin: clamp(68px,12vh,105px) 0 auto; }
.signup-hero-copy p { max-width: 550px; line-height: 1.6; }
.signup-hero-copy + .hero-art { right: -70px; bottom: -45px; width: min(42vw,500px); opacity: .17; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.password-meter { height: 6px; margin: -7px 0 6px; overflow: hidden; border-radius: 5px; background: #e9eaec; }
.password-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--orange); transition: width .18s ease, background .18s ease; }
.password-meter .strength-1 { width: 20%; background: #a52319; }
.password-meter .strength-2 { width: 40%; background: #a52319; }
.password-meter .strength-3 { width: 60%; background: var(--orange); }
.password-meter .strength-4 { width: 80%; background: #126343; }
.password-meter .strength-5 { width: 100%; background: #126343; }
.password-strength-text { min-height: 20px; margin: 0 0 13px; color: var(--muted); font-size: .72rem; }
.mobile-only { display: none; }

@media (max-width: 1180px) {
  :root { --sidebar: 220px; }
  .content { padding: 28px 25px 58px; }
  .topbar { padding: 0 25px; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-grid, .dashboard-review-grid, .detail-grid { grid-template-columns: 1fr; }
  .admin-overview-grid { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 980px) {
  :root { --sidebar: 272px; }
  .sidebar { transform: translateX(-102%); box-shadow: 20px 0 50px rgba(0,0,0,.25); transition: transform .23s ease; }
  body.nav-open .sidebar { transform: translateX(0); }
  .nav-backdrop { position: fixed; inset: 0; z-index: 35; display: block; border: 0; background: rgba(14,14,14,.52); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  body.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
  .main { margin-left: 0; }
  .menu-toggle { display: grid; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { min-height: 255px; padding: 30px clamp(24px,7vw,60px); }
  .auth-copy { margin: 42px 0 35px; }
  .login-hero-copy { margin: 42px 0 35px; }
  .signup-hero-copy { margin: 42px 0 35px; }
  .auth-copy h1 { max-width: 680px; font-size: clamp(2rem,6vw,3.1rem); }
  .auth-copy p { max-width: 650px; }
  .auth-foot { display: none; }
  .hero-art { width: 330px; }
  .auth-panel { padding: 42px 24px 60px; }
}

@media (max-width: 860px) {
  .two-col, .three-col { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  html { font-size: 15px; }
  .content { padding: 21px 15px 88px; }
  .topbar { height: 64px; padding: 0 15px; }
  .crumb { max-width: calc(100vw - 155px); letter-spacing: .055em; }
  .page-head { flex-direction: column; gap: 15px; margin-bottom: 20px; }
  .page-head h1 { font-size: 1.85rem; }
  .page-head .actions { width: 100%; }
  .page-head .actions .btn { flex: 1 1 auto; }
  .admin-tabs { top: 64px; margin-right: -15px; margin-left: -15px; border-right: 0; border-left: 0; border-radius: 0; }
  .admin-section-head { align-items: stretch; flex-direction: column; gap: 12px; }
  .admin-section-head .btn { width: 100%; }
  .admin-table-tools { align-items: stretch; flex-direction: column; }
  .admin-table-tools .record-subtitle { margin-left: 0; text-align: left; }
  .admin-search { width: 100%; }
  .admin-health-row { align-items: flex-start; }
  .role-choice-list { grid-template-columns: 1fr; }
  .metric-grid, .two-col, .three-col, .form-grid, .contract-source-summary { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .metric-grid { gap: 10px; }
  .metric { min-height: 105px; padding: 15px; }
  .metric-value { font-size: 1.42rem; }
  .dashboard-section-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .section-context { display: none; }
  .company-snapshot-values { grid-template-columns: 1fr; }
  .company-snapshot-value + .company-snapshot-value { border-top: 1px solid var(--line); border-left: 0; }
  .dashboard-notification-list { padding-right: 12px; padding-left: 12px; }
  .dashboard-notification-row { grid-template-columns: 32px minmax(0,1fr) 18px; gap: 10px; padding: 13px 2px; }
  .dashboard-notification-row .notification-category-icon { grid-column: 1; grid-row: 1 / span 2; }
  .dashboard-notification-row .notification-copy { grid-column: 2; grid-row: 1; }
  .dashboard-notification-row > time { grid-column: 2; grid-row: 2; min-width: 0; text-align: left; }
  .dashboard-notification-row .notification-chevron { grid-column: 3; grid-row: 1 / span 2; }
  .notification-centre-list { padding-right: 12px; padding-left: 12px; }
  .notification-centre-row { grid-template-columns: 32px minmax(0,1fr); gap: 10px; padding: 14px 3px; }
  .notification-centre-row .notification-category-icon { width: 30px; height: 30px; }
  .notification-centre-copy h2 { white-space: normal; }
  .notification-centre-meta { grid-column: 2; grid-row: 2; display: flex; align-items: center; justify-content: space-between; justify-items: initial; }
  .notification-row-action { min-height: 32px; padding: 5px 0; }
  .card-head { min-height: 56px; padding: 13px 15px; }
  .card-body { padding: 16px; }
  .filter-panel { align-items: stretch; flex-direction: column; }
  .filter-panel .field { flex: 0 0 auto; }
  .filter-panel .btn { width: 100%; }
  .form-actions { position: sticky; bottom: 0; z-index: 10; margin-right: -15px; margin-left: -15px; padding: 12px 15px max(12px,env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.96); box-shadow: 0 -8px 22px rgba(14,14,14,.07); backdrop-filter: blur(10px); }
  .form-actions .btn { flex: 1; }
  .item-card { margin: 11px 0; padding: 15px; }
  .summary-row { gap: 10px; }
  .summary-row > :last-child { max-width: 62%; }
  .progress-label { align-items: flex-start; flex-direction: column; gap: 3px; }
  .progress-label b { align-self: stretch; }
  .stepper { overflow-x: auto; grid-template-columns: repeat(4,minmax(100px,1fr)); }
  .messages { right: 16px; top: 74px; }
  .confirm-dialog-inner { padding: 23px 20px 18px; }
  .confirm-dialog-actions { align-items: stretch; flex-direction: column-reverse; padding: 15px 20px 20px; }
  .confirm-dialog-actions .btn { width: 100%; }
  .pagination { align-items: stretch; flex-direction: column; }
  .pagination-summary { justify-content: space-between; }
  .pagination-pages { justify-content: flex-start; overflow-x: auto; padding-bottom: 3px; flex-wrap: nowrap; }
  .page-link { flex: 0 0 auto; }
  .auth-visual { min-height: 190px; padding: 24px 22px; }
  .auth-brand { width: 137px; }
  .auth-copy { margin: 28px 0 0; }
  .login-hero-copy { margin: 28px 0 0; }
  .signup-hero-copy { margin: 28px 0 0; }
  .auth-copy .kicker, .auth-copy p, .hero-art { display: none; }
  .auth-copy h1 { margin: 0; max-width: 320px; font-size: 2rem; }
  .login-hero-title span { display: inline; }
  .login-hero-title span + span::before { content: " "; }
  .auth-panel { place-items: start center; padding: 31px 20px 50px; }
  .auth-box h2 { font-size: 1.75rem; }
  .auth-links { align-items: flex-start; flex-direction: column; }
  .login-password-support { justify-content: flex-start; }
  .signup-fields { grid-template-columns: 1fr; }
  .signup-fields .full { grid-column: auto; }
  .desktop-only { display: none !important; }
  .mobile-only { display: block; }

  .responsive-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .responsive-table, .responsive-table tbody, .responsive-table tr, .responsive-table td { display: block; width: 100%; }
  .responsive-table tbody { padding: 6px 14px; }
  .responsive-table tr { margin: 8px 0; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .responsive-table tr:last-child { border-bottom: 0; }
  .responsive-table td { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 5px 0; border: 0; text-align: right; }
  .responsive-table td::before { content: attr(data-label); flex: 0 0 auto; color: var(--muted); font-size: .69rem; font-weight: 800; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
  .responsive-table td[data-primary] { display: block; padding-bottom: 9px; text-align: left; }
  .responsive-table td[data-primary]::before, .responsive-table td[data-action]::before, .responsive-table .empty-cell::before { display: none; }
  .responsive-table td[data-action] { padding-top: 10px; }
  .responsive-table td[data-action] .btn { width: 100%; }
  .responsive-table .empty-cell { display: block; text-align: center; }
}

@media (max-width: 390px) {
  .content { padding-right: 12px; padding-left: 12px; }
  .topbar { padding: 0 12px; }
  .top-actions { gap: 7px; }
  .page-head .actions { align-items: stretch; flex-direction: column; }
  .summary-row { align-items: flex-start; flex-direction: column; gap: 3px; }
  .summary-row > :last-child { max-width: 100%; text-align: left; }
  .item-title { align-items: flex-start; }
  .item-title .btn { min-height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
