:root {
  --red: #d5000d;
  --red-dark: #aa0008;
  --graphite: #292b2f;
  --graphite-2: #35383d;
  --ink: #1f2226;
  --muted: #697078;
  --paper: #f3f4f5;
  --white: #fff;
  --line: #dfe2e5;
  --green: #238557;
  --amber: #b06e00;
  --blue: #3472b8;
  --shadow: 0 16px 45px rgba(21, 23, 26, .11);
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 94px; }
body { min-width: 300px; min-height: 100vh; margin: 0; color: var(--ink); background: var(--paper); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.dialog-open { overflow: hidden; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button { cursor: pointer; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; z-index: 1000; left: 16px; top: 10px; padding: 10px 15px; color: #fff; background: var(--red); border-radius: 8px; transform: translateY(-160%); }.skip-link:focus { transform: none; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(213,0,13,.24); outline-offset: 2px; }

.client-app { min-height: 100vh; display: flex; flex-direction: column; }
.client-header { position: sticky; z-index: 90; top: 0; min-height: 74px; color: #fff; background: rgba(41,43,47,.98); border-bottom: 3px solid var(--red); box-shadow: 0 4px 16px rgba(0,0,0,.12); backdrop-filter: blur(14px); }
.client-header-inner { width: min(calc(100% - 36px), 1380px); min-height: 71px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.client-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }.client-brand-mark { width: 37px; height: 37px; display: grid; place-items: center; color: #d6d8da; background: #3a3d42; border: 1px solid #4a4e53; border-radius: 9px; font-size: 13px; font-weight: 950; }.client-brand-mark span { color: #ff1e2b; }.client-brand > span:last-child { display: flex; flex-direction: column; line-height: 1.05; }.client-brand strong { font-size: 15px; letter-spacing: .04em; }.client-brand small { margin-top: 5px; color: #989da3; font-size: 7px; font-weight: 800; letter-spacing: .17em; }
.client-brand-logo { width: 132px; height: 38px; display: block; object-fit: contain; object-position: center; background: #fff; border-radius: 6px; }
.client-brand-context { display: flex; flex-direction: column; line-height: 1.05; }
.client-brand-context small { margin: 0; color: #c2c6ca; }
.client-header-status { display: flex; align-items: center; gap: 13px; }.connection-status { display: flex; align-items: center; gap: 6px; padding: 5px 9px; color: #a9e8c5; background: rgba(35,133,87,.2); border-radius: 999px; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }.connection-status i { width: 6px; height: 6px; background: #4fcb84; border-radius: 50%; box-shadow: 0 0 0 3px rgba(79,203,132,.13); }.company-name { max-width: 260px; overflow: hidden; color: #f2f3f4; font-size: 11px; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }.icon-button { width: 39px; height: 39px; display: grid; place-items: center; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 9px; opacity: .72; }.icon-button:hover { opacity: 1; background: rgba(255,255,255,.07); }.icon-button svg { width: 19px; height: 19px; }

.login-view { position: relative; flex: 1; overflow: hidden; min-height: calc(100vh - 120px); display: grid; place-items: center; padding: 70px 20px; color: #fff; background: linear-gradient(126deg, #222428, #303338 65%, #25272b); }
.login-view::before { content: ""; position: absolute; inset: 0; opacity: .1; background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(90deg, black, transparent); }
.login-decoration span { position: absolute; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; }.login-decoration span:nth-child(1) { width: 520px; height: 520px; right: -140px; top: -220px; }.login-decoration span:nth-child(2) { width: 390px; height: 390px; right: -70px; top: -150px; border-color: rgba(213,0,13,.18); }.login-decoration span:nth-child(3) { width: 260px; height: 260px; left: -100px; bottom: -100px; border-color: rgba(213,0,13,.15); }
.login-shell { position: relative; z-index: 1; width: min(100%, 980px); display: grid; grid-template-columns: 1fr 420px; align-items: center; gap: 95px; }
.eyebrow { margin: 0 0 15px; display: flex; align-items: center; gap: 8px; color: #afb3b8; font-size: 9px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }.eyebrow span { width: 28px; height: 2px; background: var(--red); }
.login-intro h1 { margin: 0; font-size: clamp(40px, 5vw, 58px); line-height: 1.08; letter-spacing: -.045em; }.login-intro > p:last-of-type { max-width: 490px; margin: 22px 0 25px; color: #b8bcc1; font-size: 14px; line-height: 1.7; }.login-intro ul { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; list-style: none; }.login-intro li { display: flex; align-items: center; gap: 8px; color: #d8dade; font-size: 11px; font-weight: 650; }.login-intro li svg { width: 17px; height: 17px; color: #ff4f5a; stroke-width: 2.4; }
.login-card { padding: 32px; color: var(--ink); background: #fff; border: 1px solid rgba(255,255,255,.24); border-radius: 19px; box-shadow: 0 30px 70px rgba(0,0,0,.34); }
.login-card-heading { display: flex; gap: 13px; padding-bottom: 22px; border-bottom: 1px solid #e7e9eb; }.login-icon { width: 45px; height: 45px; flex: 0 0 auto; display: grid; place-items: center; color: var(--red); background: #fff0f1; border-radius: 11px; }.login-icon svg { width: 22px; height: 22px; }.login-card-heading h2 { margin: 0; font-size: 20px; }.login-card-heading p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.login-card form { margin-top: 23px; }.field { margin-bottom: 16px; }.field label, .filter-field label { display: block; margin-bottom: 6px; color: #474c52; font-size: 10px; font-weight: 800; }.input-wrap { position: relative; }.input-wrap > svg { position: absolute; z-index: 1; left: 13px; top: 50%; width: 18px; height: 18px; color: #878d94; transform: translateY(-50%); }.input-wrap input { width: 100%; height: 48px; padding: 10px 44px 10px 42px; color: var(--ink); background: #f9f9fa; border: 1px solid #d7dade; border-radius: 10px; font-size: 13px; }.input-wrap input:focus { background: #fff; border-color: var(--red); outline: 3px solid rgba(213,0,13,.09); }.password-toggle { position: absolute; right: 7px; top: 50%; width: 36px; height: 36px; display: grid; place-items: center; color: #71777e; background: transparent; border: 0; border-radius: 7px; transform: translateY(-50%); }.password-toggle:hover { background: #eceef0; }.password-toggle svg { width: 18px; height: 18px; }.password-toggle .eye-closed { display: none; }.password-toggle[aria-pressed="true"] .eye-open { display: none; }.password-toggle[aria-pressed="true"] .eye-closed { display: block; }
.form-message { min-height: 21px; margin-top: -3px; color: var(--red); font-size: 10px; font-weight: 700; }
.primary-button, .secondary-button, .text-button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 15px; border: 1px solid transparent; border-radius: 9px; font-weight: 800; font-size: 11px; transition: background .18s ease, transform .18s ease, opacity .18s ease; }.primary-button { color: #fff; background: var(--red); box-shadow: 0 8px 18px rgba(213,0,13,.2); }.primary-button:hover { background: var(--red-dark); transform: translateY(-1px); }.primary-button:disabled, .secondary-button:disabled { cursor: wait; opacity: .55; transform: none; }.primary-button svg, .secondary-button svg { width: 17px; height: 17px; }.full-button { width: 100%; min-height: 49px; }
.secondary-button { color: #40454b; background: #fff; border-color: #d4d7db; }.secondary-button:hover { background: #f6f7f8; border-color: #aeb3b9; }.text-button { color: #5e646c; background: transparent; }.text-button:hover { color: var(--red); background: #fff1f2; }
.login-help { display: grid; grid-template-columns: 19px minmax(0,1fr); gap: 9px; margin-top: 20px; padding: 13px; color: #6e747b; background: #f5f6f7; border-radius: 9px; }.login-help svg { width: 18px; height: 18px; color: #757b82; }.login-help p { margin: 0; font-size: 9px; }

.dashboard-view { background: var(--paper); }.dashboard-layout { min-height: calc(100vh - 74px); display: grid; grid-template-columns: 220px minmax(0,1fr); }
.dashboard-sidebar { position: sticky; z-index: 10; top: 74px; height: calc(100vh - 74px); display: flex; flex-direction: column; padding: 25px 16px 20px; color: #c7cacf; background: var(--graphite); border-right: 1px solid #3c3f43; }.sidebar-brand { display: flex; align-items: center; gap: 8px; padding: 0 8px 22px; border-bottom: 1px solid rgba(255,255,255,.08); }.sidebar-brand > span { width: 32px; height: 32px; display: grid; place-items: center; background: #36393e; border-radius: 8px; font-size: 11px; font-weight: 900; }.sidebar-brand span span { color: #ff2430; }.sidebar-brand strong { color: #fff; font-size: 12px; }
.sidebar-brand-logo { width: 150px; height: 43px; display: block; object-fit: contain; object-position: center; background: #fff; border-radius: 7px; }
.dashboard-sidebar nav { display: flex; flex-direction: column; gap: 5px; margin-top: 22px; }.dashboard-sidebar nav a { display: flex; align-items: center; gap: 11px; padding: 11px 12px; color: #aeb2b7; border-radius: 9px; font-size: 10px; font-weight: 750; text-decoration: none; }.dashboard-sidebar nav a:hover { color: #fff; background: rgba(255,255,255,.06); }.dashboard-sidebar nav a.active { color: #fff; background: var(--red); box-shadow: 0 8px 18px rgba(213,0,13,.18); }.dashboard-sidebar nav svg { width: 18px; height: 18px; }
.readonly-note { margin-top: auto; display: grid; grid-template-columns: 27px minmax(0,1fr); gap: 9px; padding: 13px; color: #aeb2b7; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; }.readonly-note > svg { width: 24px; height: 24px; color: #d7d9dc; }.readonly-note p { margin: 0; font-size: 8px; line-height: 1.5; }.readonly-note strong { display: block; margin-bottom: 3px; color: #fff; font-size: 9px; }
.dashboard-main { min-width: 0; width: min(100%, 1260px); margin-inline: auto; padding: 38px 42px 70px; }.mobile-identity { display: none; }
.mobile-brand-logo { width: 112px; height: 33px; flex: 0 0 auto; object-fit: contain; object-position: center; background: #fff; border-radius: 5px; }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 27px; }.dashboard-kicker { margin: 0 0 4px; color: var(--red); font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }.dashboard-heading h1 { margin: 0; font-size: clamp(29px, 3.3vw, 42px); line-height: 1.1; letter-spacing: -.035em; }.dashboard-heading > div:first-child > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 12px; }.heading-actions { display: flex; align-items: center; gap: 11px; }.last-update { color: #848a91; font-size: 8px; }.last-update strong { color: #555b62; }
.dashboard-notice { margin-bottom: 15px; padding: 11px 14px; color: #7a5100; background: #fff5da; border: 1px solid #eed593; border-left: 4px solid var(--amber); border-radius: 9px; font-size: 10px; font-weight: 700; }.dashboard-notice.error { color: #940008; background: #fff0f1; border-color: #efb5b9; border-left-color: var(--red); }

.filters-card { margin-bottom: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }.filters-heading { min-height: 69px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 16px; }.filters-heading > div { display: flex; align-items: center; gap: 10px; }.filter-icon { width: 36px; height: 36px; display: grid; place-items: center; color: var(--graphite); background: #eff0f2; border-radius: 8px; }.filter-icon svg { width: 18px; height: 18px; }.filters-heading h2 { margin: 0; font-size: 13px; }.filters-heading p { margin: 2px 0 0; color: var(--muted); font-size: 8px; }.filter-toggle { display: none; align-items: center; gap: 6px; padding: 8px 10px; color: #555b61; background: #f6f7f8; border: 1px solid #d9dce0; border-radius: 8px; font-size: 9px; font-weight: 800; }.filter-toggle svg { width: 15px; height: 15px; transition: transform .18s ease; }.filter-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.filters-form { display: grid; grid-template-columns: repeat(4,minmax(125px,1fr)); gap: 11px; padding: 16px; border-top: 1px solid #e9ebed; }.filter-field { min-width: 0; }.filter-field input, .filter-field select { width: 100%; height: 39px; padding: 8px 10px; color: #30343a; background: #fafafa; border: 1px solid #d6d9dd; border-radius: 8px; font-size: 10px; }.filter-field input:focus, .filter-field select:focus { background: #fff; border-color: var(--red); outline: 3px solid rgba(213,0,13,.07); }.filter-actions { grid-column: 3/-1; display: flex; align-items: end; justify-content: flex-end; gap: 5px; }.filter-actions button { min-height: 39px; }

.metrics-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin: 14px 0; }.metric-card { min-width: 0; display: grid; grid-template-columns: 43px minmax(0,1fr); gap: 12px; align-items: start; padding: 17px; background: #fff; border: 1px solid var(--line); border-radius: 13px; }.metric-icon { width: 43px; height: 43px; display: grid; place-items: center; color: var(--red); background: #fff0f1; border-radius: 10px; }.metric-icon.green { color: var(--green); background: #edf8f1; }.metric-icon.amber { color: var(--amber); background: #fff6df; }.metric-icon.graphite { color: #4b5056; background: #eff0f2; }.metric-icon svg { width: 21px; height: 21px; }.metric-card div { min-width: 0; }.metric-card small { display: block; overflow: hidden; color: #70767d; font-size: 8px; font-weight: 750; white-space: nowrap; text-overflow: ellipsis; }.metric-card strong { display: block; margin: 2px 0 -1px; font-size: 28px; line-height: 1.2; letter-spacing: -.03em; }.metric-card p { margin: 0; overflow: hidden; color: #9ba0a5; font-size: 7px; white-space: nowrap; text-overflow: ellipsis; }

.analytics-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 12px; }.chart-panel { min-width: 0; min-height: 270px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }.volume-panel { grid-row: span 2; min-height: 554px; }.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 10px; padding-bottom: 13px; border-bottom: 1px solid #eceef0; }.panel-heading h2 { margin: 0; font-size: 13px; }.panel-heading p { margin: 3px 0 0; color: var(--muted); font-size: 8px; }.panel-badge { padding: 5px 8px; color: #676d74; background: #f1f2f3; border-radius: 999px; font-size: 7px; font-weight: 800; }
.column-chart { height: 440px; display: flex; align-items: stretch; gap: 5px; padding: 28px 1px 0; overflow-x: auto; background-image: linear-gradient(#eceef0 1px,transparent 1px); background-size: 100% 25%; }.column-group { min-width: 31px; flex: 1; display: grid; grid-template-rows: 1fr 29px; align-items: end; gap: 5px; text-align: center; }.column-track { width: 100%; height: 100%; display: flex; align-items: end; }.column-bar { position: relative; width: 72%; height: var(--bar-height); min-height: 2px; margin: 0 auto; background: linear-gradient(to top,var(--red-dark),var(--red)); border-radius: 5px 5px 2px 2px; transition: height .35s ease; }.column-bar::before { content: attr(data-value); position: absolute; left: 50%; top: -18px; color: #5f656c; font-size: 7px; font-weight: 850; transform: translateX(-50%); }.column-label { overflow: hidden; color: #8b9097; font-size: 7px; white-space: nowrap; text-overflow: ellipsis; }
.chart-empty { height: 210px; display: grid; place-items: center; color: #93989e; font-size: 10px; }
.progress-chart { display: flex; flex-direction: column; gap: 15px; padding-top: 21px; }.progress-row { display: grid; grid-template-columns: minmax(90px,1fr) 2fr 28px; align-items: center; gap: 8px; }.progress-row span { overflow: hidden; color: #5b6167; font-size: 8px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }.progress-track { height: 7px; overflow: hidden; background: #eceef0; border-radius: 10px; }.progress-track i { display: block; width: var(--progress); height: 100%; background: var(--red); border-radius: inherit; }.progress-row strong { text-align: right; font-size: 9px; }
.donut-layout { display: grid; grid-template-columns: 122px minmax(0,1fr); align-items: center; gap: 17px; padding-top: 21px; }.donut-chart { width: 118px; height: 118px; display: grid; place-items: center; background: conic-gradient(var(--green) 0 var(--clean), var(--red) var(--clean) 100%); border-radius: 50%; }.donut-chart::before { content: ""; grid-area: 1/1; width: 78px; height: 78px; background: #fff; border-radius: 50%; }.donut-chart span { z-index: 1; grid-area: 1/1; text-align: center; }.donut-chart strong { display: block; font-size: 20px; }.donut-chart small { display: block; color: #8b9097; font-size: 6px; }.legend { min-width: 0; display: flex; flex-direction: column; gap: 9px; }.legend-row { min-width: 0; display: grid; grid-template-columns: 7px minmax(0,1fr) auto; align-items: center; gap: 7px; }.legend-row i { width: 7px; height: 7px; background: var(--legend-color); border-radius: 2px; }.legend-row span { overflow: hidden; color: #656b72; font-size: 7px; white-space: nowrap; text-overflow: ellipsis; }.legend-row strong { font-size: 8px; }

.records-section { margin-top: 42px; }.records-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }.records-heading h2 { margin: 0; font-size: 23px; }.record-count { padding: 6px 10px; color: #686e75; background: #e8eaec; border-radius: 999px; font-size: 8px; }.record-count strong { color: var(--ink); }
.table-shell { position: relative; min-height: 170px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }.records-table-wrap { overflow-x: auto; }.table-shell table { width: 100%; border-collapse: collapse; }.table-shell th { padding: 13px 15px; color: #d4d7da; background: var(--graphite); border-bottom: 3px solid var(--red); font-size: 8px; letter-spacing: .04em; text-align: left; text-transform: uppercase; }.table-shell td { padding: 14px 15px; border-bottom: 1px solid #eceef0; vertical-align: middle; font-size: 10px; }.table-shell tbody tr:last-child td { border-bottom: 0; }.table-shell tbody tr:hover { background: #fafafb; }.primary-value { display: block; color: #292d32; font-size: 10px; font-weight: 800; }.secondary-value { display: block; margin-top: 3px; color: #868c93; font-size: 8px; }.plate-value { display: inline-block; padding: 5px 8px; color: #282c31; background: #f1f2f3; border: 1px solid #dfe1e4; border-radius: 6px; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 10px; font-weight: 850; letter-spacing: .04em; }.incident-pill { display: inline-flex; align-items: center; gap: 5px; max-width: 170px; padding: 5px 8px; color: #61676e; background: #eceef0; border-radius: 999px; font-size: 7px; font-weight: 750; }.incident-pill::before { content: ""; width: 6px; height: 6px; flex: 0 0 auto; background: #858a90; border-radius: 50%; }.incident-pill.issue { color: #865700; background: #fff3d4; }.incident-pill.issue::before { background: var(--amber); }.photo-button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 6px 9px; color: #41464c; background: #fff; border: 1px solid #d4d7da; border-radius: 7px; font-size: 8px; font-weight: 800; }.photo-button:hover { color: var(--red); border-color: #d9a4a8; background: #fff7f7; }.photo-button svg { width: 15px; height: 15px; }.no-photo { color: #9ba0a5; font-size: 8px; }
.records-loading, .records-empty { min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #858b92; }.records-loading > span, .photo-loading > span { width: 28px; height: 28px; margin-bottom: 10px; border: 3px solid #e0e3e5; border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; }.records-loading strong { font-size: 10px; }.records-empty > span { width: 54px; height: 54px; display: grid; place-items: center; color: #7c8289; background: #eff1f2; border-radius: 50%; }.records-empty svg { width: 26px; height: 26px; }.records-empty h3 { margin: 12px 0 2px; color: #484e55; font-size: 13px; }.records-empty p { margin: 0; font-size: 9px; }.privacy-note { display: flex; align-items: center; gap: 7px; margin: 11px 0 0; color: #868c93; font-size: 8px; }.privacy-note svg { width: 15px; height: 15px; }
.records-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 13px; margin-top: 13px; }.records-pagination > span { color: #777d84; font-size: 9px; }.records-pagination > span strong { color: #3e4349; }.records-pagination .secondary-button { min-width: 174px; }

.client-footer { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 22px; padding: 10px 20px; color: #8c9197; background: #222428; font-size: 8px; }.client-footer a { color: #c8cbd0; text-decoration: none; }.client-footer a:hover { color: #fff; }
.photo-dialog { width: min(calc(100% - 28px), 900px); max-height: 92vh; padding: 0; color: var(--ink); background: #fff; border: 0; border-radius: 17px; box-shadow: 0 30px 85px rgba(0,0,0,.42); }.photo-dialog::backdrop { background: rgba(12,14,16,.78); backdrop-filter: blur(4px); }.photo-dialog-head { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 18px; color: #fff; background: var(--graphite); border-bottom: 3px solid var(--red); }.photo-dialog-head p { margin: 0; color: #aeb2b7; font-size: 7px; text-transform: uppercase; letter-spacing: .12em; }.photo-dialog-head h2 { margin: 2px 0 0; font-size: 15px; }.photo-dialog-body { min-height: 240px; max-height: calc(92vh - 140px); display: grid; place-items: center; overflow: auto; padding: 18px; background: #eceef0; }.photo-dialog-body img { max-width: 100%; max-height: calc(92vh - 180px); object-fit: contain; background: #fff; border-radius: 8px; box-shadow: 0 8px 22px rgba(0,0,0,.15); }.photo-loading { display: flex; flex-direction: column; align-items: center; color: #6e747a; font-size: 9px; }.photo-dialog-foot { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 18px; }.photo-dialog-foot > span { color: #747a81; font-size: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1060px) {
  .login-shell { gap: 55px; }.dashboard-layout { grid-template-columns: 78px minmax(0,1fr); }.dashboard-sidebar { padding-inline: 11px; }.sidebar-brand strong, .dashboard-sidebar nav span, .readonly-note p { display: none; }.sidebar-brand { justify-content: center; padding-inline: 0; }.dashboard-sidebar nav a { justify-content: center; padding: 12px; }.readonly-note { display: grid; grid-template-columns: 1fr; place-items: center; padding: 11px; }.dashboard-main { padding-inline: 30px; }
  .sidebar-brand-logo { width: 54px; height: 22px; border-radius: 4px; }
  .metrics-grid { grid-template-columns: repeat(2,1fr); }.filters-form { grid-template-columns: repeat(3,minmax(125px,1fr)); }.filter-actions { grid-column: auto; }.volume-panel { min-height: 520px; }
}

@media (max-width: 780px) {
  .client-header-status .connection-status { display: none; }.company-name { max-width: 180px; }
  .login-view { align-items: start; padding: 55px 20px; }.login-shell { width: min(100%, 520px); grid-template-columns: 1fr; gap: 38px; }.login-intro { text-align: center; }.login-intro .eyebrow { justify-content: center; }.login-intro > p:last-of-type { margin-inline: auto; }.login-intro ul { align-items: center; }
  .dashboard-layout { display: block; }.dashboard-sidebar { display: none; }.dashboard-main { padding: 24px 20px 60px; }.mobile-identity { display: flex; align-items: center; gap: 9px; margin-bottom: 25px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }.mobile-identity > div { display: flex; flex-direction: column; }.mobile-identity strong { font-size: 11px; }.mobile-identity small { color: #7f858c; font-size: 8px; }
  .dashboard-heading { align-items: start; }.heading-actions { flex-direction: column; align-items: flex-end; }.last-update { order: 2; }.filter-toggle { display: flex; }.filters-form { display: none; grid-template-columns: repeat(2,1fr); }.filters-form.open { display: grid; }.filter-search { grid-column: 1/-1; }.filter-actions { grid-column: 1/-1; }
  .analytics-grid { grid-template-columns: 1fr 1fr; }.volume-panel { grid-column: 1/-1; grid-row: auto; min-height: 470px; }.column-chart { height: 355px; }
}

@media (max-width: 590px) {
  html { scroll-padding-top: 72px; }.client-header, .client-header-inner { min-height: 68px; }.client-header { border-bottom-width: 2px; }.client-header-inner { width: calc(100% - 24px); }.client-brand small { display: none; }.company-name { display: none; }.client-header-status { gap: 7px; }
  .login-view { min-height: calc(100vh - 108px); padding: 40px 14px; }.login-intro h1 { font-size: clamp(34px,10vw,47px); }.login-intro ul { align-items: flex-start; max-width: 250px; margin-inline: auto; }.login-card { padding: 24px 20px; border-radius: 15px; }
  .dashboard-main { padding: 20px 14px 55px; }.dashboard-heading { display: block; }.dashboard-heading h1 { font-size: 31px; }.heading-actions { flex-direction: row; align-items: center; justify-content: space-between; margin-top: 18px; }.last-update { order: 0; }.secondary-button span { display: none; }
  .filters-heading p { display: none; }.filters-form { grid-template-columns: 1fr; }.filter-search, .filter-actions { grid-column: auto; }.filter-actions { justify-content: stretch; }.filter-actions button { flex: 1; }
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 8px; }.metric-card { grid-template-columns: 34px minmax(0,1fr); gap: 8px; padding: 12px 10px; }.metric-icon { width: 34px; height: 34px; }.metric-icon svg { width: 17px; height: 17px; }.metric-card strong { font-size: 23px; }.metric-card p { display: none; }
  .analytics-grid { grid-template-columns: 1fr; }.volume-panel { grid-column: auto; min-height: 410px; }.column-chart { height: 295px; }.chart-panel { min-height: 240px; }.donut-layout { grid-template-columns: 120px minmax(0,1fr); }
  .records-heading { display: block; }.record-count { display: inline-block; margin-top: 9px; }.table-shell { overflow: visible; background: transparent; border: 0; }.records-table-wrap { overflow: visible; }.table-shell table, .table-shell tbody, .table-shell tr, .table-shell td { display: block; width: 100%; }.table-shell thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }.table-shell tbody { display: flex; flex-direction: column; gap: 9px; }.table-shell tbody tr { padding: 7px 13px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--graphite); border-radius: 12px; }.table-shell td { display: grid; grid-template-columns: 102px minmax(0,1fr); gap: 9px; min-height: 41px; align-items: center; padding: 9px 0; border-bottom: 1px solid #eceef0; }.table-shell td:last-child { border-bottom: 0; }.table-shell td::before { content: attr(data-label); color: #858b91; font-size: 8px; font-weight: 800; text-transform: uppercase; }.table-shell tbody tr:has(.incident-pill.issue) { border-left-color: var(--amber); }.privacy-note { align-items: start; }
  .records-pagination { align-items: stretch; flex-direction: column-reverse; text-align: center; }.records-pagination .secondary-button { width: 100%; }.records-pagination .secondary-button span { display: inline; }
  .photo-dialog { max-height: 96vh; }.photo-dialog-body { max-height: calc(96vh - 138px); padding: 9px; }.photo-dialog-body img { max-height: calc(96vh - 168px); }.photo-dialog-foot > span { max-width: 65%; }
  .client-footer { flex-direction: column; gap: 4px; }
}

@media (max-width: 380px) {
  .client-brand > span:last-child { display: none; }.dashboard-main { padding-inline: 10px; }.metrics-grid { grid-template-columns: 1fr; }.metric-card { grid-template-columns: 39px minmax(0,1fr); }.metric-card p { display: block; }.table-shell td { grid-template-columns: 86px minmax(0,1fr); }
}

@media (max-width: 590px) {
  .table-shell tbody tr.issue-row { border-left-color: var(--amber); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (forced-colors: active) {
  .primary-button, .secondary-button, .login-card, .metric-card, .chart-panel, .filters-card, .table-shell { border: 1px solid currentColor; }
}
