﻿/* T8 interface tokens: graphite navigation, cool paper, cobalt actions. */
:root {
  color-scheme: light;
  --canvas: #f5f6f9;
  --surface: #fff;
  --ink: #182232;
  --muted: #5f6c7e;
  --faint: #6b788d;
  --line: #e4e8ef;
  --primary: #355cf2;
  --primary-hover: #2447d4;
  --primary-soft: #edf1ff;
  --nav: #141c2a;
  --nav-muted: #94a3b8;
  --positive: #167255;
  --positive-soft: #eaf7f0;
  --warning: #94611a;
  --warning-soft: #fff6e5;
  --danger: #b33d45;
  --danger-soft: #fff0f0;
  --radius: 12px;
  --shadow: 0 2px 4px #15273d03, 0 8px 24px #15273d03;
  --sidebar: 248px;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-md: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font:
    15px/1.55 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Noto Sans",
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
a,
input,
select,
textarea,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
a,
button,
input,
select,
textarea,
summary {
  outline-offset: 4px;
}
:focus-visible {
  outline: 3px solid #6684ff;
}
::selection {
  background: #dbe4ff;
}
.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -80px;
  z-index: 100;
  background: white;
  padding: 12px 20px;
  border-radius: 8px;
}
.skip-link:focus {
  top: 14px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  background: var(--nav);
  color: #dfe7f3;
  display: flex;
  flex-direction: column;
  padding: 30px 18px 18px;
  z-index: 40;
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none !important;
}
.sidebar .brand {
  padding: 0 10px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 11px;
  background: var(--primary);
  color: white;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -2px;
  font-style: italic;
  padding-right: 3px;
}
.brand-text {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.4px;
}
.brand-text small {
  font-size: var(--text-xs);
  letter-spacing: 0.35px;
  color: var(--nav-muted);
  font-weight: 500;
  margin-top: 3px;
}
.workspace-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 11px;
  border: 1px solid #ffffff16;
  border-radius: 9px;
  margin: 30px 4px 23px;
  color: #dce4f0;
  font-size: var(--text-md);
  background: #ffffff03;
}
.workspace-card > span:nth-child(2) {
  min-width: 0;
  overflow-wrap: anywhere;
}
.workspace-card .icon {
  color: #93a4c1;
}
.workspace-card small {
  font-size: var(--text-xs);
  color: var(--nav-muted);
  margin-top: 2px;
}
.workspace-card:hover {
  border-color: #ffffff40;
  text-decoration: none;
}
.workspace-chevron {
  margin-left: auto;
  color: var(--nav-muted);
}
.nav-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 1.65px;
  text-transform: uppercase;
  color: #8593a9;
  margin: 22px 14px 10px;
}
.nav-label:first-child {
  margin-top: 0;
}
.sidebar nav > a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #b5c0d2;
  padding: 11px 13px;
  margin: 3px 0;
  border-radius: 7px;
  font-size: var(--text-md);
  font-weight: 500;
  position: relative;
}
.sidebar nav > a:hover {
  color: white;
  background: #ffffff06;
  text-decoration: none;
}
.sidebar nav > a[aria-current="page"] {
  background: #25355c;
  color: #eff3ff;
}
.sidebar nav > a[aria-current="page"]:before {
  content: "";
  position: absolute;
  left: -18px;
  width: 3px;
  height: 24px;
  border-radius: 0 4px 4px 0;
  background: #7c98ff;
}
.sidebar nav > a[aria-current="page"] .icon {
  color: #8ba4ff;
}
.sidebar nav .icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
  color: #93a0b6;
}
.sidebar-footer {
  margin-top: auto;
  padding: 36px 4px 0;
}
.security-note {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 8px 22px;
  color: #b7c6bd;
  font-size: var(--text-sm);
}
.security-note .icon {
  color: #7fad9c;
}
.security-note small {
  font-size: var(--text-xs);
  color: #81948e;
}
.account-menu {
  border-top: 1px solid #ffffff12;
  padding-top: 16px;
  margin: 0;
}
.account-menu > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  font-size: var(--text-md);
  padding: 4px;
  cursor: pointer;
}
.account-menu > summary > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.account-menu small {
  color: var(--nav-muted);
  font-size: var(--text-xs);
  margin-top: 2px;
}
.avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #344255;
  color: #dce6f7;
  font-weight: 600;
}
.account-links {
  padding: 12px 5px 0;
  display: grid;
  gap: 4px;
}
.account-links a,
.account-links .text-button {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-md);
  color: #b9c6da;
  padding: 8px;
}
.account-links a:hover {
  color: white;
}
.account-links form {
  margin: 0;
}
.account-links .text-button {
  width: 100%;
  text-align: left;
}
.workspace-area {
  margin-left: var(--sidebar);
}
.topbar {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: #ffffffd9;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.breadcrumb {
  font-size: var(--text-sm);
  color: var(--muted);
}
.breadcrumb > span {
  padding: 0 12px;
  color: #acb5c4;
}
.breadcrumb strong {
  font-weight: 500;
  color: #344359;
}
.role-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: var(--text-xs);
  font-weight: 500;
  color: #526078;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}
.role-chip .icon {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}
.menu-toggle {
  display: none !important;
}
main {
  padding: 30px 34px 18px;
  max-width: 1760px;
  margin: 0 auto;
  min-width: 0;
}
.page-footer {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  padding: 20px 0 2px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--text-xs);
  color: #778396;
}
.page-footer > span:first-child {
  font-size: var(--text-xs);
  letter-spacing: 1.4px;
  font-weight: 600;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 9px;
}
h2 {
  font-size: 16px;
  letter-spacing: -0.25px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 7px;
}
h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 9px;
}
p {
  margin-bottom: 16px;
}
small {
  display: block;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--muted);
  margin-top: 4px;
}
.muted,
.disclaimer {
  color: var(--muted);
}
.eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 1.7px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}
.heading > div:first-child {
  min-width: 0;
}
.heading h1 {
  overflow-wrap: anywhere;
}
.heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: var(--text-md);
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.heading > .button {
  flex-shrink: 0;
}
.back-link {
  display: inline-flex;
  font-size: var(--text-sm);
  gap: 6px;
  margin: 0 0 20px;
  color: var(--muted);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.section-heading p {
  font-size: var(--text-md);
  color: var(--muted);
  margin: 3px 0 0;
}
.section-kicker {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary-soft);
  display: inline-grid;
  place-items: center;
  color: var(--primary);
  font-size: var(--text-sm);
  margin-right: 8px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin: 0 0 22px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.panel > p {
  color: var(--muted);
  font-size: var(--text-md);
}
.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.columns > .panel {
  margin-bottom: 22px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid > .span-all {
  grid-column: 1/-1;
}
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}
.side-note {
  background: #eef1f8;
  border: 1px solid #e1e6f0;
  border-radius: var(--radius);
  padding: 23px;
  height: fit-content;
}
.side-note .icon {
  color: var(--primary);
  margin-bottom: 13px;
}
.side-note h2 {
  font-size: 14px;
}
.side-note p,
.side-note li {
  font-size: var(--text-md);
  color: var(--muted);
}
.side-note ul {
  padding-left: 18px;
}
.side-note li + li {
  margin-top: 12px;
}
.step-list {
  list-style: none;
  padding: 0 !important;
  counter-reset: steps;
}
.step-list li {
  position: relative;
  padding-left: 30px;
  counter-increment: steps;
}
.step-list li:before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0;
  border: 1px solid #d0d8e9;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: var(--text-xs);
  color: var(--primary);
}
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--primary);
  color: white;
  padding: 10px 15px;
  min-height: 39px;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}
.button:hover,
button:hover {
  background: var(--primary-hover);
  text-decoration: none;
}
.button .icon,
button .icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}
.subtle,
.button.subtle {
  background: white;
  color: #46546a;
  border-color: #dce2ec;
}
.subtle:hover {
  background: #f4f6fa;
  border-color: #c3cddd;
}
.danger {
  background: var(--danger-soft);
  border-color: #f0d7d8;
  color: var(--danger);
}
.danger:hover {
  background: #fce2e4;
  border-color: #e4bcc0;
}
.text-button {
  padding: 5px 0;
  min-height: 30px;
  background: transparent;
  color: var(--primary);
  border: 0;
}
.text-button:hover {
  background: transparent;
  color: var(--primary-hover);
}
.icon-button {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 8px;
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}
.icon-button:hover {
  background: #f0f3f9;
  color: var(--ink);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.form-footer {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.form-footer p {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: 0;
}
label {
  display: grid;
  gap: 7px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: #475368;
  margin: 0 0 15px;
}
label:last-child {
  margin-bottom: 0;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #dce2eb;
  border-radius: 6px;
  padding: 10px 12px;
  min-height: 39px;
  background: white;
  color: var(--ink);
  font-size: var(--text-md);
  line-height: 1.45;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
input::placeholder,
textarea::placeholder {
  color: #69788b;
}
input:hover,
select:hover,
textarea:hover {
  border-color: #b9c6d9;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #6987fa;
  box-shadow: 0 0 0 3px #355cf210;
}
input:read-only {
  background: #f6f8fc;
}
input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  min-height: 16px;
  height: 16px;
  accent-color: var(--primary);
  flex: 0 0 16px;
  padding: 0;
}
label:has(> input[type="checkbox"]),
label:has(> input[type="radio"]) {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-weight: 400;
  line-height: 1.5;
}
label:has(> input[type="checkbox"]) input {
  margin-top: 1px;
}
textarea {
  resize: vertical;
  min-height: 96px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
fieldset:disabled {
  opacity: 0.75;
}
.helptext {
  display: block;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.5;
  margin-top: 6px;
}
.errorlist {
  color: var(--danger);
  font-size: var(--text-md);
  padding: 10px 12px 10px 28px;
  background: var(--danger-soft);
  border-radius: 6px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin: 0 0 20px;
}
.filters input,
.filters select {
  width: auto;
}
.filters label {
  margin: 0;
}
.filters label input,
.filters label select {
  width: 100%;
}
.filters > .search-field {
  flex: 1;
  min-width: 230px;
}
.search-field {
  position: relative;
  display: block;
  margin: 0;
}
.search-field .icon {
  position: absolute;
  left: 13px;
  top: 12px;
  width: 17px;
  height: 17px;
  color: var(--faint);
  pointer-events: none;
}
.search-field input {
  width: 100%;
  padding-left: 39px;
}
.filter-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.filter-panel .filters {
  margin: 0;
}
.filter-secondary {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 15px;
  margin-top: 15px;
  border-top: 1px solid #edf0f5;
}
.filter-secondary > label {
  max-width: 160px;
}
.filter-secondary .text-button {
  margin-left: auto;
}
.filter-label {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-right: 4px;
  align-self: center;
}
.filter-panel summary {
  font-size: var(--text-sm);
  color: var(--muted);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 17px 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.stat-label {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: 7px;
}
.stat-value {
  display: block;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.7px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.stat-icon {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  background: #f0f3fb;
  color: #6e84bd;
  border-radius: 10px;
}
.stat-icon.green {
  background: var(--positive-soft);
  color: #4d9980;
}
.stat-value small {
  display: inline;
  font-size: var(--text-md);
}
.table-section {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 21px;
  border-bottom: 1px solid var(--line);
}
.table-toolbar h2 {
  font-size: var(--text-md);
  margin: 0;
}
.table-toolbar .muted {
  font-size: var(--text-sm);
}
.count-chip {
  display: inline-block;
  background: #eff2f8;
  color: #67758a;
  border-radius: 5px;
  padding: 2px 7px;
  font-size: var(--text-xs);
  margin-left: 7px;
  font-weight: 500;
}
.table-wrap {
  overflow-x: auto;
}
.grouping-hint {
  padding: 0 20px;
  font-size: var(--text-sm);
  color: var(--muted);
}
.catalog-table .vin-group-heading th {
  padding: 0;
  background: var(--primary-soft);
  border-top: 1px solid var(--line);
}
.catalog-table .vin-group-toggle {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  width: 100%;
  padding: 12px 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: var(--text-md);
  font-weight: 600;
}
.catalog-table .vin-group-toggle:hover { background: var(--primary-soft); color: var(--primary); }
.vin-group-toggle .vin { font-size: var(--text-md); }
.vin-group-toggle:focus-visible { outline-offset: -3px; }
.group-count { margin-left: auto; color: var(--muted); font-size: var(--text-xs); font-weight: 400; }
.group-chevron { display: inline-block; }
.vin-group-toggle[aria-expanded="false"] .group-chevron { transform: rotate(-90deg); }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-md);
}
th {
  text-align: left;
  padding: 12px 19px;
  background: #fafbfd;
  color: #627086;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 17px 19px;
  border-bottom: 1px solid #edf0f5;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fbfcff;
}
.file-cell {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 220px;
  max-width: 340px;
}
.file-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  height: 40px;
  border: 1px solid #dce5fa;
  background: #f3f6ff;
  color: #6481c2;
  border-radius: 6px;
  position: relative;
}
.file-symbol .icon {
  width: 18px;
  height: 18px;
}
.filename {
  font-size: var(--text-md);
  color: #263653;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.filename:hover {
  color: var(--primary);
}
td small {
  font-size: var(--text-xs);
  margin-top: 5px;
}
.file-path {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 250px;
}
.mono,
code,
.hash {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}
.hash {
  line-height: 1.7;
}
.hash-short {
  display: inline-block;
  margin-top: 6px;
  font-size: var(--text-xs);
  color: #65758c;
  letter-spacing: 0.25px;
}
code {
  background: #f1f4f9;
  padding: 3px 5px;
  border-radius: 4px;
  color: #5c6e89;
}
.vin {
  font-family: ui-monospace, Consolas, monospace;
  font-size: var(--text-xs);
  white-space: nowrap;
}
.plate {
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: 0.3px;
}
.row-link {
  display: inline-flex;
  padding: 7px;
  color: #8b99b1;
  border: 1px solid #e6eaf1;
  border-radius: 6px;
}
.row-link:hover {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: #d9e2ff;
}
.row-link .icon {
  width: 16px;
  height: 16px;
}
.row-end {
  text-align: right;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0f2f6;
  color: #68748a;
  border: 1px solid #e7eaf0;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.4;
  vertical-align: middle;
  white-space: nowrap;
}
.badge:before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.65;
}
.badge.positive,
.badge[data-state="recognized"],
.badge[data-state="clean"],
.badge[data-state="done"] {
  color: var(--positive);
  background: var(--positive-soft);
  border-color: #d5eee0;
}
.badge.warning,
.badge[data-state="unsupported"],
.badge[data-state="partial"],
.badge[data-state="ambiguous"] {
  color: var(--warning);
  background: var(--warning-soft);
  border-color: #f4e7cc;
}
.badge.danger,
.badge[data-state="error"],
.badge[data-state="malformed"],
.badge[data-state="quarantined"] {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: #f2d9dc;
}
.badge.info,
.badge[data-state="processing"],
.badge[data-state="accepted"] {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: #dee5ff;
}
.badge-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 7px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 21px;
  font-size: var(--text-sm);
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.pagination:empty {
  display: none;
}
.pagination a,
.pagination button {
  background: white;
  color: #53627a;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 12px;
  min-height: 32px;
  font-size: var(--text-xs);
}
.pagination a:hover {
  text-decoration: none;
  background: #f4f7fc;
}
.empty {
  text-align: center;
  padding: 60px 25px !important;
  color: var(--muted);
}
.empty-icon {
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  border: 1px solid #e1e8f5;
  background: #f5f7fc;
  margin-bottom: 18px;
  color: #8b9ebe;
}
.empty-icon .icon {
  width: 26px;
  height: 26px;
}
.empty h2 {
  color: #38485f;
  font-size: 16px;
}
.empty p {
  max-width: 370px;
  margin: 8px auto 20px;
  font-size: var(--text-md);
}
.loading-state {
  padding: 38px;
  text-align: center;
  font-size: var(--text-md);
  color: var(--muted);
}
.loading-state:before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #d7dff3;
  border-top-color: var(--primary);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: -2px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.htmx-request {
  opacity: 0.7;
}
.htmx-request button {
  pointer-events: none;
}
.notice,
#feedback:not(:empty) {
  padding: 13px 16px;
  background: var(--warning-soft);
  color: #7c602a;
  border: 1px solid #f0e2c4;
  border-radius: 8px;
  font-size: var(--text-md);
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0 0 20px;
}
#feedback:not(:empty) {
  background: var(--primary-soft);
  color: #3854a2;
  border-color: #d8e1ff;
}
#feedback[data-kind="error"] {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: #f1d1d6;
}
#feedback[data-kind="success"] {
  background: var(--positive-soft);
  color: var(--positive);
  border-color: #d1eadc;
}
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 24px;
  border: 1.5px dashed #b8c9f2;
  border-radius: 10px;
  background: #f8faff;
  min-height: 220px;
  justify-content: center;
}
.dropzone-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  border: 1px solid #dce5ff;
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 12px #355cf207;
  margin-bottom: 17px;
}
.dropzone-icon .icon {
  width: 23px;
  height: 23px;
}
.dropzone h2 {
  font-size: 16px;
  margin: 0 0 7px;
}
.dropzone p {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 440px;
}
.dropzone .actions {
  margin: 0;
  justify-content: center;
}
.dropzone label.button {
  display: inline-flex;
  color: white;
  margin: 0;
  font-size: var(--text-sm);
}
.dropzone label.subtle {
  color: #52627d;
}
.dropzone label:has(input:disabled) {
  opacity: 0.5;
  cursor: wait;
}
.dropzone label {
  cursor: pointer;
}
.dropzone label:focus-within {
  outline: 3px solid #6684ff;
  outline-offset: 3px;
}
.import-source {
  display: flex;
  align-items: end;
  gap: 16px;
  margin-bottom: 20px;
}
.import-source > label {
  flex: 1;
  max-width: 420px;
  margin: 0;
}
.source-editor {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.source-editor .form-grid {
  margin-top: 15px;
}
.selection-status {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  padding: 16px 0 10px;
  font-size: var(--text-sm);
}
.selection-status p {
  margin: 0;
  color: var(--muted);
}
progress {
  display: block;
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  accent-color: var(--primary);
  background: #edf1f8;
}
progress::-webkit-progress-bar {
  background: #edf1f8;
  border-radius: 8px;
}
progress::-webkit-progress-value {
  background: var(--primary);
  border-radius: 8px;
}
#upload-status {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: 9px 0 12px;
  overflow-wrap: anywhere;
}
.scroll {
  max-height: 210px;
  overflow: auto;
}
.file-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 12px;
  border-bottom: 1px solid #edf0f6;
  font-size: var(--text-sm);
}
.file-row span:first-child {
  overflow-wrap: anywhere;
  min-width: 0;
}
.file-row span:last-child {
  flex-shrink: 0;
  color: var(--muted);
}
.resume-panel {
  padding: 18px 20px;
  background: #f7f9fd;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-top: 22px;
}
.resume-panel > summary {
  font-size: var(--text-md);
  font-weight: 500;
  color: #576881;
}
.resume-panel > p {
  margin: 14px 0;
  color: var(--muted);
  font-size: var(--text-sm);
}
.resume-controls {
  display: flex;
  align-items: end;
  gap: 10px;
}
.resume-controls label {
  margin: 0;
  flex: 1;
}
.import-help {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: var(--muted);
  font-size: var(--text-sm);
  margin-top: 20px;
}
.import-help .icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}
.import-help p {
  margin: 0;
}
.import-batch {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px;
  margin-top: 14px;
}
.batch-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.batch-heading h3 {
  font-size: var(--text-md);
  margin: 0;
}
.batch-meta {
  font-size: var(--text-xs);
  color: var(--faint);
  margin: 5px 0 17px;
}
.batch-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 13px;
}
.batch-stat strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.batch-stat span {
  font-size: var(--text-xs);
  color: var(--muted);
}
.batch-notes {
  font-size: var(--text-xs);
  color: var(--muted);
  margin: 0 0 14px;
}
.batch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.batch-actions button {
  min-height: 32px;
  padding: 6px 10px;
  font-size: var(--text-xs);
}
details {
  margin: 15px 0;
}
summary {
  cursor: pointer;
  font-size: var(--text-md);
  color: #566881;
  font-weight: 500;
}
summary::marker {
  color: #91a1bc;
}
.batch-file {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid #edf0f5;
  padding: 10px 0;
  font-size: var(--text-sm);
}
.batch-file > span:first-child {
  flex: 1;
  min-width: 140px;
  overflow-wrap: anywhere;
}
dl {
  margin: 0;
}
.data-list > div {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid #edf0f5;
}
.data-list > div:last-child {
  border-bottom: 0;
}
dt {
  font-size: var(--text-sm);
  color: var(--muted);
}
dd {
  margin: 0;
  font-size: var(--text-md);
  overflow-wrap: anywhere;
}
.hash-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: #f7f9fc;
  border: 1px solid #e8edf5;
  border-radius: 7px;
  margin: 18px 0;
}
.hash-block > div {
  flex: 1;
  min-width: 0;
}
.hash-block small {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin: 0 0 6px;
}
.hash-block code {
  padding: 0;
  background: transparent;
  line-height: 1.9;
  font-size: var(--text-xs);
  color: #596d8b;
}
.metadata-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.metadata-heading .icon {
  color: #7990b5;
}
.detail-topline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.parser-result {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.parser-result:first-child {
  padding-top: 0;
}
.parser-result:last-child {
  border: 0;
}
.parser-result h3 {
  font-size: var(--text-md);
}
.parser-result > p {
  font-size: var(--text-md);
  color: #637289;
}
.parser-result .notice {
  font-size: var(--text-sm);
}
.comment {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.comment:first-child {
  padding-top: 0;
}
.comment small {
  margin: 0;
  font-size: var(--text-xs);
}
.comment p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: var(--text-md);
  margin: 10px 0;
}
.comment button {
  font-size: var(--text-xs);
  padding: 5px 9px;
  min-height: 28px;
  margin-right: 6px;
}
.comment-editor {
  margin: 12px 0;
}
.comment-editor .actions {
  margin-top: 9px;
}
#comment-form {
  margin-top: 18px;
}
.danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #ebd8dc;
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-top: 4px;
}
.danger-zone h2 {
  font-size: var(--text-md);
  margin: 0 0 4px;
}
.danger-zone p {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: 0;
}
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.vehicle-grid > .panel {
  margin-bottom: 0;
}
.vehicle-grid > .pagination,
.vehicle-grid > .empty {
  grid-column: 1/-1;
}
.vehicle-card h2 {
  font-size: 15px;
}
.vehicle-card details {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.vehicle-card details form {
  margin-top: 15px;
}
.vehicle-card details label {
  margin-bottom: 12px;
}
.vehicle-card > p {
  font-size: var(--text-md);
}
.member-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.member-card .section-heading {
  margin-bottom: 18px;
}
.member-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.member-identity h2 {
  font-size: 14px;
  overflow-wrap: anywhere;
  margin: 0;
}
.member-identity .avatar {
  color: #536eac;
  background: #edf2ff;
}
.member-card details {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 20px;
}
.member-card .filters {
  gap: 12px;
}
.member-card .filters > label {
  flex: 1;
}
.member-card .filters select {
  width: 100%;
}
.member-card .check-label {
  flex-basis: 100%;
  margin-top: 0;
}
.member-card .recovery-actions {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.member-card .recovery-actions button {
  text-align: left;
  justify-content: flex-start;
}
.invite-form {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 15px 20px;
}
.invite-form p {
  margin: 0;
}
.invite-form p:has(input[type="checkbox"]),
.invite-form .actions {
  grid-column: 1/-1;
}
.invite-form label {
  margin-bottom: 6px;
}
.invite-form input[type="checkbox"] {
  vertical-align: middle;
}
.invite-form .actions {
  margin: 0;
}
.audit-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.audit-row:last-of-type {
  border: 0;
}
.audit-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 8px;
  background: #f0f4fc;
  color: #8296b7;
}
.audit-body {
  flex: 1;
  min-width: 0;
}
.audit-body h3 {
  font-size: var(--text-md);
  margin: 0 0 3px;
}
.audit-body small {
  font-size: var(--text-xs);
}
.audit-row time {
  font-size: var(--text-xs);
  white-space: nowrap;
  color: var(--muted);
}
.audit-row details {
  margin: 9px 0 0;
}
.audit-row summary {
  font-size: var(--text-xs);
}
.audit-row pre {
  font-size: var(--text-xs);
  color: var(--muted);
  max-height: 160px;
  overflow: auto;
}
.rule-tokens {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 20px;
}
.rule-tokens code {
  font-size: var(--text-sm);
  background: #e5ebfc;
  color: #576fae;
  padding: 5px 8px;
}
.rules-empty {
  border: 1px dashed #dce3ef;
  border-radius: 8px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-size: var(--text-md);
}
.rules-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.rules-result > div {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faff;
}
.rules-result small {
  font-size: var(--text-xs);
  margin: 0 0 6px;
}
.rules-result strong {
  font-size: var(--text-md);
  overflow-wrap: anywhere;
}
.rules-result .notice {
  grid-column: 1/-1;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(540px, 1.1fr);
  background: white;
}
.auth-story {
  background: #141e31;
  color: white;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding: 54px 60px;
  min-height: 100vh;
}
.auth-story:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent, #4164a513),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 55px,
      #ffffff03 55px,
      #ffffff03 56px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 55px,
      #ffffff03 55px,
      #ffffff03 56px
    );
}
.auth-story > * {
  position: relative;
}
.auth-story .brand-text {
  font-size: 18px;
}
.auth-story .brand-mark {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}
.auth-story-copy {
  margin: auto 0;
  padding: 80px 0;
  max-width: 400px;
}
.auth-story .eyebrow {
  color: #8fa7d8;
  letter-spacing: 2px;
}
.auth-story h2 {
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: -1.5px;
  font-weight: 500;
  margin: 20px 0 24px;
}
.auth-story p {
  font-size: 14px;
  line-height: 1.8;
  color: #9eadc5;
  max-width: 350px;
}
.auth-features {
  display: grid;
  gap: 18px;
  margin-top: 35px;
  font-size: var(--text-md);
  color: #c3cee0;
}
.auth-features > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.auth-features .icon {
  color: #82a6ec;
}
.auth-story-footer {
  font-size: var(--text-xs);
  letter-spacing: 1.2px;
  color: #6f809b;
}
.auth main {
  padding: 65px;
  max-width: 600px;
  width: 100%;
  align-self: center;
  margin: auto;
  min-width: 0;
}
.auth main > .brand {
  display: none;
}
.auth h1 {
  font-size: 28px;
  margin-bottom: 14px;
}
.auth main p {
  font-size: var(--text-md);
  color: var(--muted);
}
.auth main form {
  margin-top: 27px;
}
.auth main form p {
  margin-bottom: 18px;
}
.auth main label {
  margin-bottom: 7px;
}
.auth main button[type="submit"],
.auth main form > button {
  width: 100%;
  min-height: 43px;
  font-size: var(--text-md);
}
.auth ul {
  padding-left: 20px;
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.7;
}
.auth li + li {
  margin-top: 5px;
}
.auth main svg {
  max-width: 100%;
  height: auto;
}
.auth-return {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 28px;
  font-size: var(--text-sm);
}
.auth-caption {
  margin-bottom: 32px;
  color: var(--muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 1.3px;
}
.auth input[type="checkbox"] {
  width: 16px;
}
@media (min-width: 1700px) {
  main {
    padding-top: 38px;
  }
  .heading {
    margin-bottom: 32px;
  }
  .stats-grid {
    gap: 20px;
  }
}
@media (max-width: 1200px) {
  :root {
    --sidebar: 220px;
  }
  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .sidebar .brand {
    padding: 0 6px;
  }
  .brand-text {
    font-size: 14px;
  }
  .brand-text small {
    font-size: var(--text-xs);
  }
  .sidebar nav > a {
    font-size: var(--text-sm);
    padding: 11px 10px;
    gap: 10px;
  }
  .sidebar nav > a[aria-current="page"]:before {
    left: -12px;
  }
  main {
    padding: 27px 24px 18px;
  }
  .topbar {
    padding: 0 24px;
  }
  .stat {
    padding: 15px;
  }
  .stat-icon {
    display: none;
  }
  .split-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .heading-actions {
    max-width: 260px;
  }
  .data-list > div {
    grid-template-columns: 125px minmax(0, 1fr);
    gap: 12px;
  }
  .form-grid {
    gap: 12px;
  }
  .auth-story {
    padding: 40px;
  }
  .auth main {
    padding: 45px;
  }
  .auth-story h2 {
    font-size: 36px;
  }
}
@media (max-width: 1000px) {
  .split-layout,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .side-note {
    display: none;
  }
  .member-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    gap: 10px;
  }
  .stat-value {
    font-size: 23px;
  }
  .auth {
    grid-template-columns: 0.8fr 1.2fr;
  }
  .auth-story {
    padding: 32px;
  }
  .auth main {
    padding: 35px;
  }
  .auth-story h2 {
    font-size: 32px;
  }
  .heading {
    gap: 15px;
  }
  .heading > .button {
    max-width: 180px;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .heading-actions {
    max-width: 220px;
  }
  .detail-grid > .panel {
    margin-bottom: 0;
  }
  .detail-grid {
    margin-bottom: 22px;
  }
}
@media (max-width: 800px) {
  :root {
    --sidebar: 248px;
  }
  .workspace-area {
    margin-left: 0;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    max-width: 85vw;
    box-shadow: 12px 0 50px #07152925;
  }
  .nav-open .sidebar {
    transform: translateX(0);
  }
  .nav-open {
    overflow: hidden;
  }
  .nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 35;
    background: #09152c70;
    border: 0;
    border-radius: 0;
  }
  .nav-scrim:hover {
    background: #09152c70;
  }
  .menu-toggle {
    display: inline-flex !important;
  }
  .topbar {
    height: 64px;
    padding: 0 20px;
  }
  .breadcrumb {
    font-size: var(--text-xs);
  }
  .breadcrumb > span {
    padding: 0 7px;
  }
  .role-chip {
    font-size: var(--text-xs);
  }
  .topbar-left {
    gap: 10px;
  }
  main {
    padding: 25px 20px 15px;
  }
  .sidebar-footer {
    padding-top: 30px;
  }
  .sidebar .brand {
    padding: 0 10px;
  }
  .brand-text {
    font-size: 16px;
  }
  .brand-text small {
    font-size: var(--text-xs);
  }
  .sidebar nav > a {
    font-size: var(--text-md);
  }
  .auth {
    display: block;
  }
  .auth-story {
    display: none;
  }
  .auth main {
    max-width: 490px;
    margin: 0 auto;
    padding: 45px 30px;
  }
  .auth main > .brand {
    display: flex;
    margin-bottom: 42px;
  }
  .auth main .brand-text {
    color: var(--ink);
  }
  .auth-caption {
    margin-bottom: 22px;
  }
  .auth {
    background: var(--canvas);
  }
  .auth main {
    min-height: 100vh;
    background: white;
  }
  .heading-actions {
    max-width: none;
  }
  .vehicle-grid {
    gap: 15px;
  }
}
@media (max-width: 560px) {
  main {
    padding: 23px 16px 14px;
  }
  .topbar {
    padding: 0 16px;
  }
  .breadcrumb {
    font-size: 0;
  }
  .breadcrumb > span {
    display: none;
  }
  .breadcrumb strong {
    font-size: var(--text-sm);
  }
  .role-chip {
    padding: 5px 7px;
  }
  .role-chip .icon {
    display: none;
  }
  h1 {
    font-size: 25px;
  }
  .heading {
    display: block;
    margin-bottom: 22px;
  }
  .heading > .button,
  .heading-actions {
    margin-top: 17px;
    max-width: none;
  }
  .heading-actions .button {
    flex: 1;
    font-size: var(--text-xs);
  }
  .heading p:last-child {
    font-size: var(--text-sm);
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
  }
  .stat {
    padding: 14px 15px;
  }
  .stat-value {
    font-size: 23px;
  }
  .stat-icon {
    display: grid;
    width: 30px;
    height: 30px;
  }
  .stat-icon .icon {
    width: 16px;
    height: 16px;
  }
  .stat-label {
    font-size: var(--text-xs);
  }
  .panel {
    padding: 20px 17px;
    margin-bottom: 18px;
  }
  .section-heading {
    gap: 10px;
    margin-bottom: 17px;
  }
  .section-heading h2 {
    font-size: 15px;
  }
  .section-heading .subtle {
    font-size: var(--text-xs);
    padding: 7px 10px;
  }
  .filter-panel {
    padding: 15px;
  }
  .filters {
    gap: 9px;
  }
  .filters > .search-field {
    flex-basis: 100%;
    min-width: 0;
  }
  .filters > select {
    flex: 1;
    width: 0;
    min-width: 90px;
  }
  .filter-secondary {
    gap: 10px;
  }
  .filter-secondary > label {
    flex: 1;
    max-width: none;
    min-width: 110px;
  }
  .filter-secondary .text-button {
    margin: 0;
  }
  .filter-label {
    display: none;
  }
  .filter-secondary .text-button {
    font-size: var(--text-xs);
  }
  .table-toolbar {
    padding: 16px;
  }
  .table-toolbar > .muted {
    display: none;
  }
  .catalog-table thead {
    display: none;
  }
  .catalog-table,
  .catalog-table tbody,
  .catalog-table tr,
  .catalog-table td {
    display: block;
    width: 100%;
  }
  .catalog-table tr {
    position: relative;
    padding: 17px;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 15px;
  }
  .catalog-table tr:last-child {
    border: 0;
  }
  .catalog-table td {
    padding: 0;
    border: 0;
    font-size: var(--text-sm);
    min-width: 0;
  }
  .catalog-table td:first-child {
    grid-column: 1/-1;
    padding-right: 34px;
  }
  .catalog-table td.row-end {
    position: absolute;
    right: 16px;
    top: 19px;
    width: auto;
  }
  .catalog-table td.dates-cell {
    display: none;
  }
  .catalog-table td.vin-cell,
  .catalog-table td.version-cell {
    grid-column: 1/-1;
  }
  .catalog-table td.import-date-cell {
    grid-column: 1/-1;
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--muted);
    font-size: var(--text-xs);
  }
  .catalog-table td.import-date-cell small {
    margin: 0;
  }
  .file-cell {
    max-width: none;
    min-width: 0;
    gap: 10px;
  }
  .file-cell > div:last-child {
    min-width: 0;
  }
  .file-path {
    max-width: 220px;
  }
  .filename {
    font-size: var(--text-md);
  }
  .hash-short {
    font-size: var(--text-xs);
  }
  .catalog-table tr:has(.empty) {
    display: block;
    padding: 0;
  }
  .catalog-table tr.vin-group-heading { display: block; padding: 0; }
  .catalog-table .vin-group-heading th { display: block; width: 100%; white-space: normal; }
  .vin-group-toggle { padding: 12px 16px; }
  .catalog-table .empty {
    padding: 40px 20px !important;
  }
  .vin {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .row-link {
    padding: 6px;
  }
  .row-link .icon {
    width: 14px;
    height: 14px;
  }
  .pagination {
    padding: 14px 16px;
    font-size: var(--text-xs);
    gap: 8px;
  }
  .page-footer {
    display: block;
    margin-top: 25px;
    font-size: var(--text-xs);
  }
  .page-footer span {
    display: block;
  }
  .page-footer span + span {
    margin-top: 5px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .import-source {
    display: block;
  }
  .import-source > label {
    max-width: none;
  }
  .import-source .text-button {
    margin-top: 10px;
  }
  .dropzone {
    padding: 28px 16px;
    min-height: 240px;
  }
  .dropzone .actions {
    width: 100%;
    gap: 8px;
  }
  .dropzone label.button {
    flex: 1;
    font-size: var(--text-xs);
    padding: 9px 10px;
  }
  .selection-status {
    display: block;
  }
  .selection-status p {
    font-size: var(--text-xs);
  }
  .resume-controls {
    display: block;
  }
  .resume-controls button {
    margin-top: 12px;
    width: 100%;
  }
  .batch-stats {
    gap: 8px;
  }
  .batch-stat strong {
    font-size: 16px;
  }
  .batch-stat span {
    font-size: var(--text-xs);
  }
  .import-batch {
    padding: 16px;
  }
  .batch-heading {
    align-items: flex-start;
  }
  .batch-heading h3 {
    font-size: var(--text-sm);
  }
  .batch-meta {
    font-size: var(--text-xs);
  }
  .batch-file {
    gap: 8px;
  }
  .form-footer {
    align-items: flex-start;
  }
  .data-list > div {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 12px 0;
  }
  .data-list dd {
    font-size: var(--text-sm);
  }
  .danger-zone {
    display: block;
    padding: 18px;
  }
  .danger-zone button {
    margin-top: 14px;
  }
  .vehicle-grid {
    grid-template-columns: 1fr;
  }
  .invite-form {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .member-card .section-heading {
    align-items: flex-start;
  }
  .member-identity h2 {
    font-size: var(--text-md);
  }
  .audit-row {
    gap: 10px;
    flex-wrap: wrap;
  }
  .audit-row time {
    margin-left: 40px;
    flex-basis: 100%;
    margin-top: -8px;
  }
  .rules-result {
    grid-template-columns: 1fr;
  }
  .auth main {
    padding: 34px 25px;
  }
  .auth h1 {
    font-size: 25px;
  }
  .auth form {
    margin-top: 23px;
  }
  .button,
  button {
    min-height: 42px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !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;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
.disclaimer {
  font-size: var(--text-sm);
  margin-top: 18px;
  margin-bottom: 0;
}
#comments > .muted {
  font-size: var(--text-md);
}

input,
select,
textarea {
  font-weight: 400;
}
.account-menu > summary {
  color: #dce4f0;
}
.invite-form > .check-label {
  grid-column: 1/-1;
  align-items: center;
}
.member-card .filters > .check-label {
  flex: 0 0 100%;
}
.invite-form > .check-label input {
  margin: 0;
}
@media (max-width: 800px) {
  .sidebar {
    box-shadow: none;
  }
  .nav-open .sidebar {
    box-shadow: 12px 0 50px #07152925;
  }
}
@media (max-width: 560px) {
  .filter-panel .filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .filter-panel .filters > .search-field,
  .filter-panel .filters > button {
    grid-column: 1/-1;
  }
  .filter-panel .filters > select {
    width: 100%;
    min-width: 0;
  }
  .filter-panel .filters > button {
    width: 100%;
  }
  .stat:last-child .stat-value {
    font-size: 20px;
  }
}
