:root {
  color-scheme: light;
  --ink: #192a3a;
  --muted: #637386;
  --line: #dbe3ea;
  --surface: #ffffff;
  --background: #f4f7fa;
  --blue: #155eef;
  --blue-dark: #1147b8;
  --soft-blue: #edf4ff;
  --green: #176b4d;
  --red: #a33434;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); line-height: 1.55; }
button, input, textarea, select { font: inherit; }
a { color: var(--blue); }
.site-header { min-height: 68px; display: flex; justify-content: space-between; align-items: center; padding: 0 clamp(20px, 5vw, 72px); background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); font-weight: 750; text-decoration: none; letter-spacing: -.02em; }
.page-shell { width: min(1120px, calc(100% - 32px)); margin: 40px auto 72px; }
.page-heading { display: flex; gap: 20px; align-items: end; justify-content: space-between; margin: 0 0 24px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.15; letter-spacing: -.035em; margin-bottom: 12px; }
h2 { font-size: 1.35rem; margin-bottom: 0; letter-spacing: -.02em; }
h3 { font-size: 1.05rem; margin-bottom: 0; }
.eyebrow { color: var(--blue); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 750; margin-bottom: 8px; }
.muted, .small { color: var(--muted); }
.small { font-size: .88rem; }
.user-label { color: var(--muted); font-size: .9rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 3vw, 30px); box-shadow: 0 8px 26px rgba(28, 47, 70, .045); margin-bottom: 22px; }
.intro-panel { max-width: 720px; margin: 9vh auto; padding: clamp(30px, 6vw, 62px); }
.intro-panel > p:not(.eyebrow) { max-width: 56ch; color: var(--muted); }
.two-column { display: grid; grid-template-columns: minmax(270px, .82fr) minmax(0, 1.4fr); gap: 22px; align-items: start; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.panel-heading > div { min-width: 0; }
.subsection { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; }
.field { display: grid; gap: 6px; font-size: .88rem; font-weight: 650; color: #304255; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #cbd6e0; border-radius: 9px; background: #fff; padding: 10px 12px; color: var(--ink); font-weight: 450; outline: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21, 94, 239, .12); }
.inline-form { display: flex; align-items: end; gap: 12px; }
.grow { flex: 1; }
.compact-field { min-width: 220px; }
.form-stack { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.button-row { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 15px; border-radius: 9px; border: 1px solid transparent; font-weight: 680; text-decoration: none; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.button:disabled { opacity: .48; cursor: not-allowed; }
.button-primary { color: #fff; background: var(--blue); }
.button-primary:hover:not(:disabled) { background: var(--blue-dark); }
.button-secondary { color: #17439b; background: var(--soft-blue); border-color: #cbdcff; }
.button-secondary:hover:not(:disabled) { background: #dce9ff; }
.button-quiet { color: #304255; background: transparent; border-color: var(--line); }
.button-quiet:hover:not(:disabled) { background: #f4f7fa; }
.list-empty { color: var(--muted); padding: 12px 0; }
.item-list { display: grid; gap: 8px; }
.case-button { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 13px; border: 1px solid var(--line); background: #fff; border-radius: 10px; text-align: left; color: var(--ink); cursor: pointer; }
.case-button:hover, .case-button[aria-current="true"] { border-color: #8bb2ff; background: #f5f8ff; }
.case-meta, .small { font-size: .85rem; }
.role-badge { padding: 4px 9px; border-radius: 999px; background: #eef3f7; color: #41566b; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.disclosure { padding: 13px 15px; border-left: 3px solid #d29427; border-radius: 5px; background: #fff8e9; color: #684c15; }
.notice { border: 1px solid #c4d4e2; background: #f7fbff; color: #274258; border-radius: 10px; padding: 12px 15px; margin-bottom: 18px; }
.notice.error { background: #fff3f3; border-color: #e5b7b7; color: var(--red); }
.notice.success { background: #effaf4; border-color: #b5dfc6; color: var(--green); }
.consent-card { border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin: 18px 0; }
.consent-card h2 { font-size: 1.1rem; margin-bottom: 8px; }
.summary-grid { display: flex; flex-wrap: wrap; gap: 30px; padding: 14px 0; }
.summary-grid dt { color: var(--muted); font-size: .82rem; }
.summary-grid dd { font-weight: 760; font-size: 1.2rem; margin: 4px 0 0; }
.narrow-panel { max-width: 700px; margin: 6vh auto; }
.evidence-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding: 11px 0; }
.evidence-item:last-child { border-bottom: 0; }
video { display: block; max-width: 100%; width: 480px; min-height: 120px; background: #172432; border-radius: 10px; margin: 12px 0; }
.site-footer { color: var(--muted); font-size: .82rem; border-top: 1px solid var(--line); padding: 18px 5vw; text-align: center; }
.hidden { display: none !important; }
@media (max-width: 820px) { .two-column { grid-template-columns: 1fr; } .page-heading { align-items: start; flex-direction: column; } }
@media (max-width: 580px) { .site-header { padding: 0 16px; } .page-shell { margin-top: 22px; width: min(100% - 24px, 1120px); } .inline-form, .panel-heading { align-items: stretch; flex-direction: column; } .compact-field { min-width: 0; } .inline-form .button { width: 100%; } }

/* BNKFND portal visual system */
:root {
  --ink: #0b1f3a;
  --muted: #65758b;
  --line: #e2e8f0;
  --surface: #fff;
  --background: #f6f8fc;
  --blue: #0969ed;
  --blue-dark: #0759cf;
  --soft-blue: #edf5ff;
  --green: #07864b;
  --red: #b42332;
  --violet: #6244d8;
  --amber: #bf7407;
}
body { background: var(--background); color: var(--ink); line-height: 1.5; }
.site-header { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: minmax(160px, 240px) minmax(220px, 1fr) auto; gap: 28px; min-height: 68px; padding: 0 clamp(18px, 3vw, 40px); background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(20, 42, 74, .025); }
.brand { display: inline-flex; align-items: center; width: fit-content; }
.brand img { display: block; width: 126px; height: 42px; object-fit: contain; }
.global-search { align-self: center; display: flex; align-items: center; gap: 9px; width: min(100%, 440px); min-height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 0 11px; color: #718096; background: #fbfcfe; }
.global-search span, .case-search span { font-size: 1.25rem; line-height: 1; }
.global-search input, .case-search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: .82rem; color: var(--ink); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.header-actions .button { min-height: 36px; padding: 6px 12px; font-size: .82rem; }
.app-version { color: #73839a; font-size: .68rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.user-chip { display: inline-flex; align-items: center; gap: 9px; max-width: 220px; padding: 4px 7px; }
.user-label { display: block; overflow: hidden; max-width: 170px; color: #26374d; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.user-avatar { display: grid; flex: 0 0 29px; width: 29px; height: 29px; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-size: .78rem; font-weight: 750; }
.page-shell { width: 100%; max-width: none; margin: 0; }
#notice { position: relative; z-index: 2; width: min(900px, calc(100% - 32px)); margin: 16px auto 0; }
.app-frame { display: grid; grid-template-columns: 218px minmax(0, 1fr); min-height: calc(100vh - 68px); }
.workspace-sidebar { position: sticky; top: 68px; display: flex; flex-direction: column; height: calc(100vh - 68px); padding: 25px 12px 18px; border-right: 1px solid var(--line); background: #fff; }
.sidebar-caption { margin: 0 12px 11px; color: #98a4b4; font-size: .66rem; font-weight: 750; letter-spacing: .12em; }
.side-nav { display: grid; gap: 4px; }
.side-nav-item { position: relative; display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 8px 12px; border-radius: 8px; color: #35465c; font-size: .84rem; font-weight: 580; text-decoration: none; }
.side-nav-item > span { display: grid; width: 19px; place-items: center; color: #63758d; font-size: 1rem; }
.side-nav-item:hover, .side-nav-item.is-active { background: #edf4ff; color: #064ebc; }
.side-nav-item.is-active { font-weight: 720; }
.side-nav-item.is-active::before { position: absolute; top: 8px; bottom: 8px; left: -12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue); content: ""; }
.side-nav-item.is-active > span { color: var(--blue); }
.help-card { margin-top: auto; padding: 14px 12px; border: 1px solid #dce8f8; border-radius: 10px; background: #f4f8ff; color: #194c8f; }
.help-card > span { display: block; margin-bottom: 7px; font-size: 1rem; }
.help-card strong { font-size: .78rem; }
.help-card p { margin: 4px 0 0; font-size: .7rem; line-height: 1.4; }
.workspace-content { min-width: 0; padding: 30px clamp(20px, 3vw, 48px) 54px; }
.dashboard-view { width: min(1480px, 100%); margin: 0 auto; }
.page-heading { margin-bottom: 23px; }
.dashboard-heading { align-items: end; }
.dashboard-heading h1 { margin-bottom: 5px; font-size: clamp(1.65rem, 2.3vw, 2rem); letter-spacing: -.04em; }
.dashboard-heading .eyebrow { margin-bottom: 7px; }
.dashboard-heading .muted { margin-bottom: 0; font-size: .87rem; }
.account-switcher { min-width: 230px; max-width: 300px; font-size: .72rem; }
.account-switcher select { min-height: 38px; padding: 7px 10px; font-size: .82rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 25px; }
.stat-card { display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; align-items: center; gap: 2px 11px; min-height: 86px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: 0 3px 11px rgba(20, 42, 74, .035); }
.stat-icon { display: grid; grid-row: 1 / span 2; width: 36px; height: 36px; place-items: center; border-radius: 9px; font-size: 1.12rem; font-weight: 700; }
.stat-icon-green { background: #eaf8f0; color: #0a9853; }
.stat-icon-blue { background: #edf4ff; color: var(--blue); }
.stat-icon-violet { background: #f2efff; color: var(--violet); }
.stat-icon-amber { background: #fff6e8; color: var(--amber); }
.stat-card > div { display: flex; align-items: baseline; gap: 8px; }
.stat-card strong { font-size: 1.27rem; line-height: 1.2; }
.stat-card > div span { font-size: .72rem; font-weight: 620; }
.stat-card small { color: var(--muted); font-size: .65rem; }
.two-column.case-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 18px; margin-bottom: 20px; }
.two-column.case-layout.case-selected { grid-template-columns: minmax(420px, .98fr) minmax(400px, 1.02fr); }
.panel { margin-bottom: 0; padding: 21px; border-color: var(--line); border-radius: 12px; box-shadow: 0 4px 16px rgba(20, 42, 74, .04); }
.case-list-panel { min-width: 0; }
.panel-heading { margin-bottom: 15px; }
.case-list-heading { align-items: center; }
.case-list-heading h2 { font-size: 1.2rem; }
.case-list-heading .eyebrow { margin: 0 0 3px; font-size: .64rem; }
.button { min-height: 38px; border-radius: 8px; font-size: .82rem; }
.button-primary { background: var(--blue); box-shadow: 0 2px 4px rgba(9, 105, 237, .12); }
.button-secondary { color: #0757c1; background: #f1f6ff; border-color: #d7e5fc; }
.case-filters { display: grid; grid-template-columns: minmax(130px, 1fr) auto auto; gap: 8px; margin: 16px 0 13px; }
.case-search { display: flex; align-items: center; min-width: 0; min-height: 36px; gap: 7px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; color: #73839a; }
.case-filters select { min-width: 105px; max-width: 145px; min-height: 36px; padding: 5px 27px 5px 9px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: #35465c; font-size: .72rem; }
.case-table-wrap { width: 100%; overflow-x: auto; }
.case-table { width: 100%; min-width: 650px; border-collapse: collapse; text-align: left; }
.case-table th { padding: 10px 11px; background: #f8fafd; color: #63748a; font-size: .66rem; font-weight: 700; white-space: nowrap; }
.case-table th:first-child { border-radius: 7px 0 0 7px; }
.case-table th:last-child { border-radius: 0 7px 7px 0; }
.case-table td { padding: 11px; border-bottom: 1px solid #edf0f4; color: #314258; font-size: .72rem; white-space: nowrap; }
.case-table tbody tr { transition: background .15s ease; }
.case-table tbody tr.case-row-clickable { cursor: pointer; }
.case-table tbody tr:hover, .case-table tbody tr.is-selected { background: #f5f8ff; }
.case-table tbody tr:last-child td { border-bottom: 0; }
.case-name-button { max-width: 220px; overflow: hidden; border: 0; padding: 0; background: transparent; color: var(--ink); font-size: .73rem; font-weight: 700; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.case-name-button:hover { color: var(--blue); }
.case-name-button[aria-current="true"] { color: #0757c1; }
.amount-cell { font-variant-numeric: tabular-nums; }
.date-cell { color: #61728a !important; }
.status-pill { display: inline-flex; align-items: center; min-height: 23px; padding: 3px 9px; border-radius: 999px; background: #edf2f8; color: #43566d; font-size: .65rem; font-weight: 700; white-space: nowrap; }
.status-pending { background: #eaf2ff; color: #0758c7; }
.status-completed { background: #e6f7ee; color: #087746; }
.status-refused { background: #fff0ef; color: #ad302c; }
.case-empty { padding: 17px 5px; font-size: .8rem; }
.create-case-form { margin-top: 18px; padding: 18px; border: 1px solid #dce8f8; border-radius: 10px; background: #f9fbff; }
.create-case-form .panel-heading { align-items: center; }
.case-detail { min-width: 0; padding: 20px; scroll-margin-top: 82px; }
.case-detail-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.case-detail-heading h2 { margin: 5px 0 3px; font-size: 1.18rem; }
.case-detail-heading .button { flex: 0 0 auto; min-height: 35px; padding: 6px 10px; font-size: .71rem; }
.back-to-cases { color: #63758d; font-size: .72rem; text-decoration: none; }
.back-to-cases:hover { color: var(--blue); }
.case-detail-subheading { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 12px 0 13px; }
.case-detail-subheading > .small { margin-left: auto; font-size: .68rem; }
.role-badge { padding: 4px 9px; font-size: .64rem; }
.case-tabs { display: flex; gap: 16px; overflow-x: auto; margin: 0 -2px 15px; border-bottom: 1px solid var(--line); }
.case-tab-button { flex: 0 0 auto; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 9px 3px; background: transparent; color: #586b82; font-size: .72rem; cursor: pointer; }
.case-tab-button:hover, .case-tab-button.is-active { border-bottom-color: var(--blue); color: #0757c1; }
.case-tab-button.is-active { font-weight: 720; }
.overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.detail-card { min-width: 0; padding: 14px; border: 1px solid #e7ecf2; border-radius: 9px; background: #fff; }
.detail-card h3, .visitor-purpose-card h2 { margin: 0 0 10px; font-size: .8rem; }
.detail-card .panel-heading { margin-bottom: 9px; }
.detail-card .panel-heading h3 { margin: 0; }
.button-small { min-height: 29px; padding: 4px 8px; font-size: .68rem; }
.detail-list { display: grid; gap: 9px; margin: 0; }
.detail-list > div { display: flex; justify-content: space-between; gap: 10px; font-size: .69rem; }
.detail-list dt { color: #63748a; }
.detail-list dd { margin: 0; color: #1b2d45; font-weight: 650; text-align: right; }
.privacy-note { margin: 12px 0 0; color: #63748a; font-size: .64rem; }
.detail-copy { margin: 0; color: #52647a; font-size: .72rem; line-height: 1.55; overflow-wrap: anywhere; }
.share-card { background: #fbfdff; }
.share-card > .small { margin: -4px 0 9px; font-size: .65rem; }
#new-link-reveal { overflow-wrap: anywhere; }
#new-link-reveal p { margin: 5px 0; border-radius: 6px; background: #eff6ff; padding: 7px; color: #174278; font-size: .68rem; }
#created-link { padding: 2px 0; font-size: .68rem; }
.case-tab-panel { min-width: 0; }
.case-tab-panel .panel-heading { align-items: center; }
.case-tab-panel .panel-heading h3, .tab-heading h3 { margin-bottom: 3px; font-size: .88rem; }
.case-tab-panel .panel-heading .small, .tab-heading .small { margin: 0; font-size: .68rem; }
.case-tab-panel .evidence-item { align-items: start; flex-wrap: wrap; font-size: .73rem; }
.edit-case-details { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.edit-case-details > summary { color: #0757c1; font-size: .75rem; font-weight: 680; cursor: pointer; }
.edit-case-details form { margin-top: 12px; }
.account-settings-panel { margin: 18px 0; scroll-margin-top: 84px; }
.account-settings-panel h2, .team-access-grid h2 { font-size: 1.08rem; }
.account-settings-panel .eyebrow, .team-access-grid .eyebrow { margin-bottom: 4px; font-size: .64rem; }
.team-access-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; scroll-margin-top: 84px; }
.team-access-grid > .panel { min-width: 0; }
.team-access-grid .evidence-item { font-size: .72rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.mobile-nav { display: none; }
.visitor-mode { min-height: 100vh; background: #f6f8fc; }
.visitor-mode .site-header { display: none; }
.visitor-mode .site-footer { display: none; }
.visitor-mode #main { padding: 16px; }
.visitor-shell { width: min(900px, 100%); margin: 0 auto 44px; }
.visitor-brand { display: flex; justify-content: center; padding: 10px 0 23px; }
.visitor-brand img { display: block; width: 148px; height: 52px; object-fit: contain; }
.visitor-card { padding: clamp(23px, 5vw, 42px); border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 10px 30px rgba(20, 42, 74, .055); }
.visitor-access { width: min(100%, 370px); margin: 0 auto; text-align: center; }
.visitor-shield { display: grid; width: 58px; height: 58px; place-items: center; margin: 0 auto 15px; border-radius: 50%; background: #edf5ff; color: var(--blue); font-size: 1.65rem; }
.visitor-access .eyebrow { margin-bottom: 7px; font-size: .66rem; }
.visitor-access h1, .visitor-case-heading h1 { margin-bottom: 10px; font-size: clamp(1.35rem, 4vw, 1.7rem); letter-spacing: -.035em; }
.visitor-access > .muted { margin-bottom: 21px; font-size: .83rem; }
.visitor-access .field { text-align: left; }
.visitor-access .field input { min-height: 44px; }
.visitor-access .button { min-height: 43px; width: 100%; }
.privacy-promise { display: flex; align-items: start; justify-content: center; gap: 9px; margin: 22px 0 0; color: #596b82; font-size: .69rem; }
.privacy-promise > span:first-child { color: #1f4777; }
.visitor-content .summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; padding: 0; margin: 18px 0; }
.visitor-content .summary-grid > div { padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfe; }
.visitor-content .summary-grid dt { font-size: .72rem; }
.visitor-content .summary-grid dd { font-size: 1rem; }
.visitor-purpose-card { margin: 14px 0; }
.visitor-purpose-card p { margin: 0; color: #52647a; font-size: .8rem; }
.visitor-content .disclosure { margin: 14px 0; font-size: .72rem; }
.visitor-content .consent-card { margin: 14px 0; padding: 16px; border-color: var(--line); background: #fff; }
.visitor-content .consent-card h2 { font-size: .93rem; }
.visitor-content .consent-card p { font-size: .77rem; }
.visitor-content .button-row { gap: 8px; }
.visitor-content video { width: 100%; max-height: 360px; }
.visitor-submit { display: grid; gap: 9px; margin-top: 17px; }
.visitor-submit .button { min-height: 43px; }
.visitor-mode .notice { width: 100%; }
@media (max-width: 1180px) {
  .two-column.case-layout.case-selected { grid-template-columns: minmax(0, 1fr); }
  .case-detail { width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .site-header { grid-template-columns: auto minmax(160px, 1fr) auto; gap: 14px; padding: 0 18px; }
  .brand img { width: 112px; }
  .app-frame { grid-template-columns: 1fr; min-height: calc(100vh - 62px); }
  .workspace-sidebar { display: none; }
  .workspace-content { padding: 26px 20px 88px; }
  .team-access-grid { grid-template-columns: 1fr; }
  .mobile-nav { position: fixed; z-index: 25; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, 1fr); min-height: 63px; padding: 5px 8px max(5px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); backdrop-filter: blur(12px); }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #5b6c82; font-size: .62rem; text-decoration: none; }
  .mobile-nav a > span { font-size: 1.15rem; line-height: 1.1; }
  .mobile-nav a.is-active { color: var(--blue); font-weight: 700; }
}
@media (max-width: 580px) {
  .site-header { min-height: 60px; grid-template-columns: auto minmax(70px, 1fr) auto; gap: 7px; padding: 0 13px; }
  .brand img { width: 102px; height: 36px; }
  .global-search { min-height: 35px; justify-self: end; width: min(100%, 200px); }
  .header-actions { gap: 5px; }
  .header-actions .button { min-height: 32px; padding: 4px 8px; font-size: .69rem; }
  .user-chip { display: none !important; }
  .workspace-content { padding: 22px 12px 82px; }
  .dashboard-heading { gap: 13px; }
  .dashboard-heading h1 { font-size: 1.5rem; }
  .account-switcher { min-width: 0; max-width: none; width: 100%; }
  .stats-grid { grid-template-columns: 1fr; gap: 8px; margin-bottom: 15px; }
  .stat-card { grid-template-columns: 31px 1fr; gap: 2px 8px; min-height: 75px; padding: 10px; }
  .stat-icon { width: 30px; height: 30px; font-size: .95rem; }
  .stat-card > div { display: grid; gap: 1px; }
  .stat-card strong { font-size: 1.12rem; }
  .stat-card > div span { font-size: .64rem; }
  .stat-card small { font-size: .59rem; }
  .panel { padding: 15px; border-radius: 10px; }
  .case-list-heading { flex-direction: row; align-items: center; }
  .case-list-heading .button { min-height: 34px; padding: 5px 9px; }
  .case-filters { grid-template-columns: 1fr 1fr; }
  .case-search { grid-column: 1 / -1; }
  .case-filters select { max-width: none; width: 100%; }
  .case-table, .case-table tbody { display: block; min-width: 0; }
  .case-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; }
  .case-table tbody { display: grid; gap: 8px; }
  .case-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 9px; padding: 9px; border: 1px solid #e8edf3; border-radius: 8px; }
  .case-table td { min-width: 0; overflow-wrap: anywhere; border: 0; padding: 2px 1px; white-space: normal; }
  .case-table td::before { display: block; margin-bottom: 2px; color: #8290a3; content: attr(data-label); font-size: .56rem; }
  .case-table td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .case-table td:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
  .case-table td:nth-child(3) { grid-column: 1; grid-row: 2; }
  .case-table td:nth-child(4) { grid-column: 1; grid-row: 3; }
  .case-table td:nth-child(5) { grid-column: 2; grid-row: 3; text-align: right; }
  .case-name-button { max-width: min(220px, 62vw); font-size: .75rem; }
  .case-detail-heading { flex-direction: column; }
  .case-detail-heading .button { width: 100%; }
  .case-detail-subheading > .small { width: 100%; margin-left: 0; }
  .overview-grid { grid-template-columns: 1fr; }
  .detail-list > div { font-size: .7rem; }
  .team-access-grid { gap: 12px; }
  .inline-form, .panel-heading { align-items: stretch; }
  .inline-form .button { width: 100%; }
  .visitor-mode #main { padding: 10px; }
  .visitor-brand { padding: 4px 0 14px; }
  .visitor-brand img { width: 130px; height: 45px; }
  .visitor-card { padding: 22px 16px; }
  .visitor-content .summary-grid { grid-template-columns: 1fr; }
  .visitor-content .button-row .button { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
