:root {
  --paper: #f6f7f5;
  --surface: #ffffff;
  --surface-subtle: #f1f3f0;
  --ink: #17201b;
  --muted: #68716b;
  --line: #dde2de;
  --line-strong: #cbd2cd;
  --nav: #17221d;
  --nav-muted: #9eaaa3;
  --accent: #5a54d6;
  --accent-soft: #eeedff;
  --green: #207a54;
  --green-soft: #e6f4ec;
  --amber: #9a6414;
  --amber-soft: #fff3dc;
  --red: #ad3b3b;
  --red-soft: #faeaea;
  --shadow: 0 12px 34px rgba(31, 43, 36, .11);
  --radius: 10px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.app { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 248px; display: flex; flex-direction: column; color: #f8fbf9; background: var(--nav); border-right: 1px solid rgba(255,255,255,.06); }
.brand-lockup { height: 78px; padding: 0 24px; display: flex; align-items: center; gap: 12px; }
.brand-lockup strong, .brand-lockup small { display: block; }
.brand-lockup strong { font-size: 15px; letter-spacing: .01em; }
.brand-lockup small { margin-top: 2px; color: var(--nav-muted); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.brand-lockup-dark { padding: 0; color: var(--ink); }
.brand-lockup-dark small { color: var(--muted); }
.brand-mark { position: relative; width: 31px; height: 31px; flex: 0 0 31px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 9px; background: #f5f2e8; }
.brand-lockup-dark .brand-mark { border-color: var(--line); }
.brand-mark::before { content: ""; width: 9px; height: 9px; border: 2px solid var(--nav); border-radius: 50%; }
.brand-mark span { position: absolute; top: 16px; width: 2px; height: 7px; border-radius: 2px; background: var(--nav); }

.primary-nav { padding: 6px 12px; }
.nav-label { margin: 8px 12px 9px; color: #738078; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.nav-label-spaced { margin-top: 22px; }
.nav-item { width: 100%; height: 40px; padding: 0 11px; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 7px; color: #bbc5bf; background: transparent; text-align: left; cursor: pointer; transition: background-color 130ms ease, color 130ms ease; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-item.active { color: #fff; background: rgba(255,255,255,.095); box-shadow: inset 2px 0 0 #9690ff; }
.nav-item svg { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-item:first-of-type svg { fill: currentColor; stroke: none; }
.nav-item span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-count { margin-left: auto; padding: 1px 6px; border-radius: 999px; color: #fee; background: var(--red); font-size: 10px; font-weight: 700; }
.status-dot { width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: #66736b; box-shadow: 0 0 0 3px rgba(255,255,255,.04); }
.status-dot.online { background: #56c28b; }
.status-dot.warning { background: #e9ad54; }
.sidebar-footer { margin-top: auto; padding: 18px 24px 22px; border-top: 1px solid rgba(255,255,255,.07); }
.sidebar-link { padding: 6px 0; display: flex; justify-content: space-between; gap: 8px; color: var(--nav-muted); font-size: 12px; text-decoration: none; }
.sidebar-link:hover { color: #fff; }
.sidebar-button { width: 100%; border: 0; background: transparent; cursor: pointer; text-align: left; }

.workspace { min-height: 100vh; margin-left: 248px; }
.topbar { position: sticky; top: 0; z-index: 20; height: 64px; padding: 0 32px; display: flex; align-items: center; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.page-context { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.page-context span { color: var(--muted); }
.page-context span::after { content: "/"; margin-left: 8px; color: var(--line-strong); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.global-search { width: min(320px, 28vw); height: 36px; padding: 0 10px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.global-search:focus-within { border-color: #aaa6ee; box-shadow: 0 0 0 3px var(--accent-soft); }
.global-search svg { width: 15px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.global-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.global-search kbd { padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); background: #fff; font-size: 10px; }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: #fff; cursor: pointer; }
.icon-button:hover { color: var(--ink); border-color: var(--line-strong); }
.icon-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-button { display: none; margin-right: 10px; }
.admin-avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #47534c; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.dev-banner { padding: 8px 32px; display: flex; gap: 10px; color: #6f4a0c; background: #fff4dc; border-bottom: 1px solid #efd8a8; font-size: 12px; }

.main { max-width: 1460px; margin: 0 auto; padding: 38px 42px 64px; outline: none; }
.page { display: none; }
.page.active { display: block; animation: page-in 150ms ease-out; }
@keyframes page-in { from { opacity: .45; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.page-heading { margin-bottom: 31px; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.page-heading h1 { margin: 3px 0 7px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(31px, 3.1vw, 43px); line-height: 1.05; font-weight: 500; letter-spacing: -.035em; }
.page-heading .muted { max-width: 700px; }
.eyebrow { margin: 0 0 6px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.muted { margin: 0; color: var(--muted); line-height: 1.55; }
.heading-actions { display: flex; align-items: center; gap: 15px; }
.last-updated { color: var(--muted); font-size: 11px; white-space: nowrap; }
.button { min-height: 37px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 650; text-decoration: none; cursor: pointer; }
.button-primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.button-primary:hover { background: #4d48c3; }
.button-secondary { color: var(--ink); background: #fff; border-color: var(--line-strong); }
.button-secondary:hover { border-color: #aeb7b0; background: #fafbfa; }
.button-danger { color: #fff; background: var(--red); border-color: var(--red); }
.button-danger:hover { background: #933030; }
.button-wide { width: 100%; min-height: 44px; }
.text-button { padding: 4px 0; border: 0; color: var(--accent); background: none; font-size: 11px; font-weight: 700; cursor: pointer; }
.text-button:hover { text-decoration: underline; }
.button[aria-disabled="true"], a[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.metric-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); background: rgba(255,255,255,.42); }
.metric { min-width: 0; padding: 20px 22px 18px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric span, .metric small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metric span { color: var(--muted); font-size: 11px; }
.metric strong { margin: 7px 0 2px; display: block; font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 500; letter-spacing: -.02em; }
.metric small { color: #8b938e; font-size: 10px; }

.overview-grid { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .8fr); gap: 22px; }
.work-panel, .status-panel, .runbook, .settings-aside { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.work-panel, .status-panel { padding: 22px; }
.work-panel.flush { padding: 0; overflow: hidden; }
.work-panel.flush .section-heading { padding: 21px 22px 16px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.section-heading h2, .runbook h2, .settings-aside h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 500; letter-spacing: -.02em; }
.section-heading.compact h2 { font-size: 18px; }
.count-badge { padding: 4px 8px; border-radius: 999px; color: var(--muted); background: var(--surface-subtle); font-size: 10px; font-weight: 650; }
.readiness-list { margin-top: 12px; }
.readiness-item { padding: 14px 0; display: grid; grid-template-columns: 21px 1fr auto; gap: 10px; align-items: flex-start; border-top: 1px solid var(--line); }
.readiness-item:first-child { border-top: 0; }
.readiness-check { width: 18px; height: 18px; margin-top: 1px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: #fff; font-size: 10px; }
.readiness-item.complete .readiness-check { border-color: var(--green); background: var(--green); }
.readiness-item.blocker .readiness-check { border-color: #dda8a8; color: var(--red); background: var(--red-soft); }
.readiness-item strong { display: block; font-size: 12px; }
.readiness-item p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.readiness-item .item-state { color: var(--muted); font-size: 10px; font-weight: 650; }
.readiness-item.blocker .item-state { color: var(--red); }

.service-list { margin-top: 11px; }
.service-item { padding: 12px 0; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); }
.service-item:first-child { border-top: 0; }
.service-indicator { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #aab1ac; }
.service-indicator.online { background: var(--green); }
.service-indicator.down { background: var(--red); }
.service-indicator.setup { background: var(--amber); }
.service-item div { min-width: 0; }
.service-item strong, .service-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.service-item strong { font-size: 11px; }
.service-item small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.service-meta { margin-left: auto; color: var(--muted); font-size: 10px; white-space: nowrap; }
.activity-section { margin-top: 30px; }
.empty-row { margin-top: 12px; padding: 25px 0; display: flex; gap: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.empty-row .empty-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); background: var(--surface-subtle); }
.empty-row strong { font-size: 12px; }
.empty-row p { max-width: 700px; margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.toolbar { min-height: 58px; padding: 10px 12px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; background: var(--surface); }
.input, .select { height: 36px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 6px; outline: 0; color: var(--ink); background: #fff; font-size: 12px; }
.input:focus, .select:focus { border-color: #aaa6ee; box-shadow: 0 0 0 3px var(--accent-soft); }
.input-large { height: 44px; }
.table-search { flex: 1; }
.table-search .input { width: min(390px, 100%); }
.table-total { margin-left: auto; padding-right: 4px; color: var(--muted); font-size: 11px; }
.table-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.toolbar + .table-wrap { border-radius: 0 0 var(--radius) var(--radius); }
table { width: 100%; border-collapse: collapse; }
th { height: 42px; padding: 0 16px; color: var(--muted); background: #fafbfa; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { min-height: 55px; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 11px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcfb; }
.customer-cell strong, .customer-cell small { display: block; }
.customer-cell strong { font-size: 12px; }
.customer-cell small { margin-top: 3px; color: var(--muted); }
.row-action { width: 28px; height: 28px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; cursor: pointer; }
.row-action:hover { color: var(--ink); background: var(--surface-subtle); }
.table-empty { padding: 58px 24px; text-align: center; }
.table-empty.inset { padding: 50px 24px; border-top: 1px solid var(--line); }
.table-empty strong { font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 500; }
.table-empty p { max-width: 500px; margin: 7px auto 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.table-empty a { margin-top: 10px; display: inline-block; color: var(--accent); font-size: 11px; font-weight: 650; text-decoration: none; }
.status-pill { display: inline-flex; align-items: center; min-height: 23px; padding: 2px 8px; border-radius: 999px; color: var(--green); background: var(--green-soft); font-size: 10px; font-weight: 700; text-transform: capitalize; }
.status-pill.suspended, .status-warning { color: var(--amber); background: var(--amber-soft); }
.status-pill.revoked, .status-pill.expired, .status-danger { color: var(--red); background: var(--red-soft); }
.status-neutral { color: var(--muted); background: var(--surface-subtle); }

.notice { margin-bottom: 22px; padding: 15px 17px; display: grid; grid-template-columns: max-content 1fr; gap: 13px; border: 1px solid var(--line); border-radius: 8px; font-size: 11px; }
.notice strong { font-size: 11px; }
.notice p { margin: 0; color: var(--muted); line-height: 1.5; }
.notice-info { border-color: #d4d3f4; background: #f6f5ff; }
.notice-warning { border-color: #ead4aa; background: #fff8e9; }
.notice-danger { border-color: #e8bcbc; background: #fff5f5; }
.recovery-layout, .tax-grid, .settings-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); gap: 22px; }
.runbook, .settings-aside { padding: 22px; }
.runbook ol { margin: 18px 0 0; padding-left: 20px; }
.runbook li { padding: 0 0 12px 4px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.coverage-row { padding: 17px 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); }
.coverage-row strong { font-size: 12px; }
.coverage-row p { max-width: 650px; margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.check-list { border-top: 1px solid var(--line); }
.check-row { padding: 15px 22px; display: grid; grid-template-columns: 25px 1fr; gap: 11px; border-bottom: 1px solid var(--line); }
.check-row:last-child { border-bottom: 0; }
.check-row > span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: var(--red); background: var(--red-soft); font-size: 10px; font-weight: 700; }
.check-row.complete > span { color: var(--green); background: var(--green-soft); }
.check-row strong { font-size: 11px; }
.check-row p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.tax-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 22px; border: 1px solid var(--line-strong); }
.fleet-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 22px; border: 1px solid var(--line-strong); }
.tax-ledger-section { margin-top: 22px; }
.tax-filing-section { margin-bottom: 22px; }
.filing-notice { margin: 0; border-width: 1px 0 0; border-radius: 0; }
.document-actions { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.document-actions a, .document-actions button { border: 0; padding: 0; color: var(--accent); background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; text-decoration: none; }
.catalog-summary { margin-bottom: 22px; padding: 17px 20px; display: grid; grid-template-columns: 100px 100px 1fr; gap: 18px; align-items: center; border-left: 3px solid var(--accent); background: var(--accent-soft); }
.catalog-summary span, .catalog-summary strong { display: block; }
.catalog-summary span { color: var(--muted); font-size: 10px; }
.catalog-summary strong { margin-top: 2px; font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 500; }
.catalog-summary p { margin: 0; color: #57538d; font-size: 11px; line-height: 1.5; }

.operations-list { margin-bottom: 22px; border-top: 1px solid var(--line-strong); }
.operation-row { min-height: 72px; padding: 13px 4px; display: grid; grid-template-columns: 12px minmax(150px, .7fr) minmax(220px, 1.3fr) 90px auto; gap: 17px; align-items: center; border-bottom: 1px solid var(--line); }
.operation-row strong { font-size: 12px; }
.operation-row p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.operation-state { font-size: 10px; font-weight: 700; text-transform: capitalize; }
.operation-state.online { color: var(--green); }
.operation-state.down { color: var(--red); }
.operation-state.setup { color: var(--amber); }
.operation-link { color: var(--accent); font-size: 10px; font-weight: 650; text-decoration: none; }
.operation-link:hover { text-decoration: underline; }
.integration-list { border-top: 1px solid var(--line); }
.integration-row { padding: 16px 22px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; border-bottom: 1px solid var(--line); }
.integration-row:last-child { border-bottom: 0; }
.integration-row strong, .integration-row small { display: block; }
.integration-row strong { font-size: 12px; }
.integration-row small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.settings-aside dl { margin: 18px 0 0; }
.settings-aside dl div { padding: 12px 0; border-top: 1px solid var(--line); }
.settings-aside dt { font-size: 11px; font-weight: 700; }
.settings-aside dd { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }

.drawer { position: fixed; inset: 0 0 0 auto; z-index: 60; width: min(440px, 100vw); transform: translateX(101%); background: var(--surface); box-shadow: -15px 0 44px rgba(31,43,36,.16); transition: transform 180ms ease; }
.drawer.open { transform: none; }
.drawer-scrim { position: fixed; inset: 0; z-index: 50; background: rgba(18,26,21,.35); }
.drawer-header { min-height: 87px; padding: 20px 23px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--line); }
.drawer-header h2 { margin: 2px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 500; }
.drawer-header .icon-button { border: 0; font-size: 24px; }
.drawer-body { padding: 23px; }
.detail-status { padding-bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.detail-list { margin: 0; }
.detail-list div { padding: 14px 0; display: grid; grid-template-columns: 120px 1fr; gap: 15px; border-bottom: 1px solid var(--line); }
.detail-list dt { color: var(--muted); font-size: 10px; }
.detail-list dd { margin: 0; overflow-wrap: anywhere; font-size: 11px; }
.drawer-actions { padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.drawer-note { margin: 18px 0 0; padding: 12px; color: var(--muted); background: var(--surface-subtle); font-size: 10px; line-height: 1.5; }

.confirm-dialog { width: min(420px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow); }
.confirm-dialog::backdrop { background: rgba(18,26,21,.45); }
.confirm-dialog form { padding: 24px; }
.confirm-dialog h2 { margin: 4px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 500; }
.dialog-actions { margin-top: 22px; display: flex; justify-content: flex-end; gap: 8px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 100; max-width: min(390px, calc(100vw - 44px)); padding: 12px 15px; border-radius: 8px; color: #fff; background: #26312b; box-shadow: var(--shadow); font-size: 11px; }
.toast.error { background: #8f3131; }

.login-screen { min-height: 100vh; padding: 32px; display: grid; place-items: center; background: #edf0ed; }
.login-panel { width: min(420px, 100%); padding: 31px; display: grid; gap: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.login-panel .brand-lockup { margin-bottom: 14px; }
.login-panel h1 { margin: 2px 0 7px; font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-weight: 500; letter-spacing: -.03em; }
.field-label { margin-bottom: -9px; color: var(--muted); font-size: 11px; font-weight: 650; }
.form-error { min-height: 16px; margin: -5px 0; color: var(--red); font-size: 11px; }
.login-note { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: center; }

@media (max-width: 1080px) {
  .main { padding-inline: 28px; }
  .metric-strip { grid-template-columns: repeat(3, 1fr); }
  .metric:nth-child(3) { border-right: 0; }
  .metric:nth-child(n+4) { border-top: 1px solid var(--line); }
  .overview-grid, .recovery-layout, .tax-grid, .settings-layout { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .sidebar { transform: translateX(-101%); transition: transform 180ms ease; }
  .sidebar.open { transform: none; }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 25; background: rgba(18,26,21,.4); }
  .workspace { margin-left: 0; }
  .menu-button { display: grid; }
  .topbar { padding: 0 18px; }
  .global-search { display: none; }
  .main { padding: 28px 18px 50px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .heading-actions { width: 100%; justify-content: space-between; }
  .operation-row { grid-template-columns: 12px 1fr auto; }
  .operation-row > div:nth-child(3), .operation-row .operation-link { display: none; }
  .dev-banner { padding-inline: 18px; flex-direction: column; gap: 2px; }
}

@media (max-width: 580px) {
  .page-heading h1 { font-size: 32px; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2), .metric:nth-child(4) { border-right: 0; }
  .metric:nth-child(3) { border-right: 1px solid var(--line); }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
  .metric:last-child { grid-column: 1 / -1; border-right: 0; }
  .notice { grid-template-columns: 1fr; gap: 5px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .table-total { margin: 4px 0 0; }
  .table-wrap { overflow-x: auto; }
  table { min-width: 690px; }
  .catalog-summary { grid-template-columns: 1fr 1fr; }
  .catalog-summary p { grid-column: 1 / -1; }
  .coverage-row { flex-direction: column; }
}

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