@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import "tailwindcss";

/* Visual system aligned with src/themes/linear/DESIGN.md — light (inverse) mode */
:root {
  --ln-primary: #32a06e;
  --ln-primary-hover: #3fb87c;
  --ln-primary-focus: #2b9260;
  --ln-primary-active: #2b9260;
  --ln-primary-soft: rgba(50, 160, 110, 0.1);
  --ln-primary-soft-strong: rgba(50, 160, 110, 0.16);
  --ln-ink: #18181b;
  --ln-body: #52525b;
  --ln-body-strong: #18181b;
  --ln-muted: #71717a;
  --ln-muted-soft: #a1a1aa;
  --ln-muted-80: #3f3f46;
  --ln-divider-soft: #f4f4f5;
  --ln-hairline: #e5e7eb;
  --ln-hairline-strong: #d4d4d8;
  --ln-hairline-tertiary: #e4e4e7;
  --ln-canvas: #ffffff;
  --ln-canvas-parchment: #f5f6f6;
  --ln-surface-pearl: #f6f7f7;
  --ln-surface-card: #ffffff;
  --ln-surface-strong: #f4f4f5;
  --ln-on-primary: #ffffff;
  --ln-success: #27a644;
  --ln-warning: #d97706;
  --ln-error: #e5484d;
  --ln-brand-secure: #6aad8a;
  --ln-radius-xs: 4px;
  --ln-radius-sm: 6px;
  --ln-radius-control: 8px;
  --ln-radius-card: 12px;
  --ln-radius-xl: 16px;
  --ln-radius-pill: 9999px;
  --ln-shadow-soft: 0 1px 2px rgba(24, 24, 27, 0.06);
  --ln-shadow-hover: 0 8px 24px rgba(24, 24, 27, 0.1);
  --ln-shadow-float: 0 12px 32px rgba(24, 24, 27, 0.12);
  --ln-shadow-modal: 0 20px 40px rgba(24, 24, 27, 0.14);
  --ln-shadow-none: none;
  --ln-link: var(--ln-primary);
  --ln-canvas-soft: var(--ln-surface-pearl);

  --vm-primary: var(--ln-primary);
  --vm-primary-dark: var(--ln-primary-focus);
  --vm-primary-soft: var(--ln-primary-soft);
  --vm-bg: var(--ln-canvas-parchment);
  --vm-surface: var(--ln-surface-card);
  --vm-border: var(--ln-hairline);
  --vm-text: var(--ln-ink);
  --vm-muted: var(--ln-muted);
  --vm-danger: var(--ln-error);
  --vm-warning: var(--ln-warning);
  --vm-link: var(--ln-link);
  --vm-control-height: 32px;
  --vm-btn-height: 36px;
  --vm-font: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  --vm-font-mono: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --vm-focus-border-color: var(--ln-primary);
}

/* Focus：边框改为主题色，不使用外侧 outline 环 */
.vm-focus-border:focus,
.vm-focus-border:focus-visible {
  outline: none;
  border-color: var(--vm-focus-border-color);
}

* { box-sizing: border-box; }

.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;
}

.vm-page {
  position: relative;
  min-height: 100vh;
  padding: 24px 32px 32px;
  background: var(--ln-canvas-parchment);
  color: var(--ln-body);
  font-family: var(--vm-font);
  font-size: 0.875rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.vm-doc-toolbar {
  position: fixed;
  top: 16px;
  right: 24px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: min(100vw - 32px, 720px);
}
.vm-doc-toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--vm-btn-height);
  padding: 0 14px;
  border: 1px solid var(--ln-hairline);
  border-radius: var(--ln-radius-control);
  background: var(--ln-surface-card);
  color: var(--ln-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--ln-shadow-soft);
  white-space: nowrap;
}
.vm-doc-toolbar-btn:hover {
  border-color: var(--ln-hairline-strong);
  color: var(--ln-ink);
  background: var(--ln-canvas-soft);
}
.vm-doc-toolbar-btn:focus-visible {
  outline: none;
  border-color: var(--vm-focus-border-color);
}

.vm-requirements-entry {
  position: fixed;
  top: 16px;
  right: 24px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--vm-btn-height);
  padding: 0 14px;
  border: 1px solid var(--ln-hairline);
  border-radius: var(--ln-radius-control);
  background: var(--ln-surface-card);
  color: var(--ln-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--ln-shadow-soft);
}
.vm-requirements-entry:hover {
  border-color: var(--ln-hairline-strong);
  color: var(--ln-ink);
  background: var(--ln-canvas-soft);
}
.vm-requirements-entry:focus-visible {
  outline: none;
  border-color: var(--vm-focus-border-color);
}

.vm-page-header { margin-bottom: 16px; }
.vm-page-header h1 { margin: 0; font-size: 1.125rem; font-weight: 600; color: var(--ln-ink); letter-spacing: -0.02em; }
.vm-page-header p { margin: 4px 0 0; color: var(--ln-muted); font-size: 0.875rem; }

.vm-filter-card {
  background: var(--ln-surface-card);
  border: 1px solid var(--ln-hairline);
  border-radius: var(--ln-radius-card);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--ln-shadow-soft);
}

.vm-filter-header {
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 16px;
}

.vm-filter-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ln-ink);
  letter-spacing: -0.02em;
}

.vm-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 20px;
}

.vm-filter-field {
  display: flex; flex-direction: column; align-items: stretch;
  gap: 6px; min-width: 0;
}
.vm-filter-field > span {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ln-muted);
}

.vm-filter-actions {
  display: flex; justify-content: flex-end; align-items: center; gap: 8px;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--ln-hairline); flex-wrap: wrap;
}

.vm-filter-card .vm-input:not(textarea) {
  min-height: var(--vm-control-height);
  height: var(--vm-control-height);
  padding: 0 10px;
  font-size: 0.875rem;
  border-radius: var(--ln-radius-control);
}

.vm-input {
  width: 100%; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--ln-hairline-strong); border-radius: var(--ln-radius-control);
  background: var(--ln-surface-card); color: var(--ln-ink); font-size: 1rem;
}
.vm-input:focus {
  outline: none;
  border-color: var(--vm-focus-border-color);
}
.vm-input .placeholder { color: var(--ln-muted-soft); }

.vm-plate-field { position: relative; }
.vm-plate-trigger {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; text-align: left;
  min-height: var(--vm-control-height);
  height: var(--vm-control-height);
  padding: 0 10px;
  font-size: 0.875rem;
  border-radius: var(--ln-radius-control);
}
.vm-plate-popover {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
  background: var(--ln-surface-card); border: 1px solid var(--ln-hairline);
  border-radius: var(--ln-radius-card); padding: 12px;
  box-shadow: var(--ln-shadow-hover);
}
.vm-plate-textarea {
  min-height: 120px;
  height: auto;
  padding: 10px 12px;
  resize: none;
  font-family: var(--vm-font-mono);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.vm-plate-popover-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }

.vm-operate-city-field { position: relative; }
.vm-operate-city-popover {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
  background: var(--ln-surface-card); border: 1px solid var(--ln-hairline);
  border-radius: var(--ln-radius-card); padding: 12px;
  box-shadow: var(--ln-shadow-hover);
}
.vm-operate-city-cascade {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px;
}
.vm-operate-city-step { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vm-operate-city-step-single { margin-bottom: 10px; }
.vm-operate-city-step > span { font-size: 0.8125rem; color: var(--ln-muted); font-weight: 500; }
.vm-operate-city-options {
  display: grid; gap: 6px; max-height: 180px; overflow: auto;
  padding: 4px 0; border-top: 1px solid var(--ln-hairline); border-bottom: 1px solid var(--ln-hairline);
}
.vm-operate-city-option {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-radius: var(--ln-radius-sm); cursor: pointer; font-size: 0.875rem;
}
.vm-operate-city-option:hover { background: var(--ln-canvas-soft); }
.vm-operate-city-option:focus-within {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--vm-focus-border-color);
}
.vm-operate-city-option.checked { background: var(--ln-primary-soft); color: var(--ln-primary-focus); font-weight: 500; }
.vm-operate-city-empty { margin: 8px 0; text-align: center; color: var(--ln-muted); font-size: 0.875rem; }
.vm-operate-city-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.vm-operate-city-tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px;
  border-radius: 9999px; background: var(--ln-surface-strong); font-size: 0.6875rem;
  font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ln-ink);
}
.vm-operate-city-tag button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border: none; background: transparent;
  color: var(--ln-muted); cursor: pointer; border-radius: var(--ln-radius-xs);
}
.vm-operate-city-tag button:hover { background: var(--ln-hairline-strong); color: var(--ln-ink); }
.vm-operate-city-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }

.vm-filter-picker-field { position: relative; }
.vm-filter-picker-control {
  display: flex; align-items: center; gap: 4px;
  width: 100%; min-height: var(--vm-control-height); height: var(--vm-control-height);
  padding: 0 8px 0 10px;
  border: 1px solid var(--ln-hairline-strong); border-radius: var(--ln-radius-control);
  background: var(--ln-surface-card);
}
.vm-filter-picker-control.open,
.vm-filter-picker-control:focus-within {
  outline: none;
  border-color: var(--vm-focus-border-color);
}
.vm-filter-picker-input {
  flex: 1; min-width: 0; height: 100%;
  border: none; background: transparent; padding: 0;
  font-size: 0.875rem; color: var(--ln-ink);
}
.vm-filter-picker-input:focus { outline: none; }
.vm-filter-picker-input::placeholder { color: var(--ln-muted-soft); }
.vm-filter-picker-clear {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; flex-shrink: 0;
  border: none; background: transparent; color: var(--ln-muted);
  border-radius: var(--ln-radius-xs); cursor: pointer;
}
.vm-filter-picker-clear:hover { background: var(--ln-surface-strong); color: var(--ln-ink); }
.vm-filter-picker-clear:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--vm-focus-border-color);
  border-radius: var(--ln-radius-xs);
}
.vm-filter-picker-chevron { flex-shrink: 0; color: var(--ln-muted-soft); pointer-events: none; }
.vm-filter-picker-popover {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
  background: var(--ln-surface-card); border: 1px solid var(--ln-hairline);
  border-radius: var(--ln-radius-card); padding: 8px;
  box-shadow: var(--ln-shadow-hover);
}
.vm-filter-picker-options {
  display: grid; gap: 4px; max-height: 220px; overflow: auto;
}
.vm-filter-picker-option {
  display: flex; align-items: center; width: 100%;
  padding: 8px 10px; border: none; border-radius: var(--ln-radius-sm);
  background: transparent; color: var(--ln-ink);
  font-size: 0.875rem; text-align: left; cursor: pointer;
}
.vm-filter-picker-option:hover { background: var(--ln-canvas-soft); }
.vm-filter-picker-option:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--vm-focus-border-color);
}
.vm-filter-picker-option.checked { background: var(--ln-primary-soft); color: var(--ln-primary-focus); font-weight: 500; }
.vm-filter-picker-empty { margin: 8px 0; text-align: center; color: var(--ln-muted); font-size: 0.875rem; }

.vm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: var(--vm-btn-height); height: var(--vm-btn-height);
  padding: 0 16px; border-radius: var(--ln-radius-control); border: 1px solid transparent;
  font-size: 0.875rem; font-weight: 500; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.vm-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.vm-btn:focus-visible {
  outline: none;
  border-color: var(--vm-focus-border-color);
}
.vm-btn-link:focus-visible {
  outline: none;
  border: 1px solid var(--vm-focus-border-color);
}
.vm-btn-primary { background: var(--ln-primary); color: var(--ln-on-primary); }
.vm-btn-primary:hover:not(:disabled) { background: var(--ln-primary-hover); }
.vm-btn-secondary {
  background: var(--ln-surface-card); color: var(--ln-ink);
  border-color: var(--ln-hairline);
}
.vm-btn-secondary:hover:not(:disabled) { background: var(--ln-canvas-soft); border-color: var(--ln-hairline-strong); }
.vm-btn-ghost { background: transparent; color: var(--ln-body); border-color: var(--ln-hairline); }
.vm-btn-ghost:hover:not(:disabled) { background: var(--ln-canvas-soft); color: var(--ln-ink); }
.vm-btn-link {
  background: none; border: none; color: var(--ln-primary);
  padding: 0 8px; min-height: var(--vm-btn-height); height: var(--vm-btn-height);
  font-weight: 500;
}
.vm-btn-link:hover:not(:disabled) { color: var(--ln-primary-hover); }
.vm-btn-back { border-color: var(--ln-hairline-strong); color: var(--ln-ink); background: var(--ln-canvas); }

.vm-kpi-row {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 16px; margin-bottom: 0;
  position: relative; z-index: 1;
  overflow: visible;
}

.vm-kpi-card {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 20px 36px 20px 20px; border-radius: var(--ln-radius-card);
  border: 1px solid var(--ln-hairline); background: var(--ln-surface-card); min-height: 88px;
  cursor: pointer; text-align: left;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
  overflow: visible;
}
.vm-kpi-card:hover {
  border-color: var(--ln-hairline-strong);
  background: var(--ln-surface-card);
  box-shadow: var(--ln-shadow-soft);
}
.vm-kpi-card.active {
  background: var(--ln-surface-card);
  border-color: var(--ln-primary);
  box-shadow:
    0 0 0 1px var(--ln-primary),
    0 4px 14px rgba(50, 160, 110, 0.14),
    0 2px 6px rgba(50, 160, 110, 0.08);
}
.vm-kpi-card:focus-visible {
  outline: none;
  border-color: var(--vm-focus-border-color);
}

.vm-kpi-tip {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  color: var(--ln-muted-soft); cursor: help;
  border: 1px solid transparent;
  border-radius: var(--ln-radius-xs);
}
.vm-kpi-tip:hover,
.vm-kpi-tip:focus-visible { color: var(--ln-ink); outline: none; }
.vm-kpi-tip:focus-visible {
  border-color: var(--vm-focus-border-color);
  box-shadow: none;
}

.vm-kpi-tooltip {
  position: absolute; bottom: calc(100% + 8px); right: 0;
  width: max-content; max-width: min(260px, 70vw);
  padding: 12px 16px;
  border: 1px solid var(--ln-hairline); border-radius: var(--ln-radius-control);
  background: var(--ln-surface-card); color: var(--ln-body);
  font-size: 0.875rem; font-weight: 400; line-height: 1.5;
  box-shadow: var(--ln-shadow-hover);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
  transform: translateY(4px);
  text-align: left; white-space: normal;
}
.vm-kpi-tooltip::before {
  content: '';
  position: absolute; bottom: -7px; right: 10px; top: auto;
  border: 7px solid transparent; border-top-color: var(--ln-hairline);
  border-bottom-color: transparent;
}
.vm-kpi-tooltip::after {
  content: '';
  position: absolute; bottom: -6px; right: 11px; top: auto;
  border: 6px solid transparent; border-top-color: var(--ln-surface-card);
  border-bottom-color: transparent;
}
.vm-kpi-tip:hover .vm-kpi-tooltip,
.vm-kpi-tip:focus-visible .vm-kpi-tooltip,
.vm-kpi-tip:focus-within .vm-kpi-tooltip {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.vm-kpi-icon {
  flex-shrink: 0; align-self: center; width: 32px; height: 32px; border-radius: var(--ln-radius-control);
  display: flex; align-items: center; justify-content: center;
  background: var(--ln-primary-soft); color: var(--ln-primary);
  transition: background 0.2s, color 0.2s;
}
.vm-kpi-icon svg { width: 18px; height: 18px; }
.vm-kpi-card.active .vm-kpi-icon {
  background: var(--ln-primary-soft-strong);
  color: var(--ln-primary-focus);
}
.vm-kpi-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vm-kpi-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ln-muted);
}
.vm-kpi-val {
  font-size: 1.375rem; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--ln-ink); letter-spacing: -0.03em; line-height: 1.1;
}
.vm-kpi-card.active .vm-kpi-val { color: var(--ln-primary-focus); }

.vm-table-section { display: flex; flex-direction: column; gap: 0; }
.vm-table-toolbar {
  display: flex; justify-content: flex-end; align-items: center;
  min-height: var(--vm-btn-height);
  padding: 16px 0;
}
.vm-table-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.vm-table-card {
  background: var(--ln-surface-card); border-radius: var(--ln-radius-card);
  border: 1px solid var(--ln-hairline); overflow: hidden;
  box-shadow: var(--ln-shadow-soft);
  display: flex; flex-direction: column;
}

.vm-table-footer {
  flex-shrink: 0;
  padding: 16px;
  border-top: 1px solid var(--ln-hairline);
}

.vm-table-wrap { overflow: auto; max-height: calc(100vh - 540px); }
.vm-table { width: max-content; min-width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.vm-table th, .vm-table td {
  padding: 8px 12px; border-bottom: 1px solid var(--ln-hairline);
  white-space: nowrap; text-align: left; vertical-align: middle;
}
.vm-table th {
  position: sticky; top: 0; background: var(--ln-canvas-soft); color: var(--ln-muted);
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0; text-transform: none;
  z-index: 2;
}
.vm-table .sticky-col { position: sticky; left: 0; background: var(--ln-surface-card); z-index: 1; }
.vm-table th.sticky-col { z-index: 3; background: var(--ln-canvas-soft); }
.vm-table .sticky-right { position: sticky; right: 0; background: var(--ln-surface-card); z-index: 1; }
.vm-table th.sticky-right { z-index: 3; background: var(--ln-canvas-soft); }
.vm-th-label { display: inline-flex; align-items: center; gap: 4px; }
.vm-th-tip {
  position: relative; display: inline-flex; align-items: center;
  color: var(--ln-muted-soft); cursor: help; line-height: 0;
  border: 1px solid transparent;
  border-radius: var(--ln-radius-xs);
}
.vm-th-tip:hover,
.vm-th-tip:focus-visible { color: var(--ln-ink); outline: none; }
.vm-th-tip:focus-visible {
  border-color: var(--vm-focus-border-color);
  box-shadow: none;
}
.vm-th-tooltip {
  position: absolute; top: calc(100% + 8px); left: 50%;
  width: max-content; max-width: min(240px, 70vw);
  padding: 8px 12px;
  border: 1px solid var(--ln-hairline); border-radius: var(--ln-radius-control);
  background: var(--ln-surface-card); color: var(--ln-body);
  font-size: 0.75rem; font-weight: 400; line-height: 1.5;
  box-shadow: var(--ln-shadow-hover);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
  transform: translateX(-50%) translateY(-4px);
  text-align: left; white-space: normal; z-index: 4;
}
.vm-th-tip:hover .vm-th-tooltip,
.vm-th-tip:focus-visible .vm-th-tooltip,
.vm-th-tip:focus-within .vm-th-tooltip {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.vm-table tr:hover td { background: var(--ln-canvas-soft); }
.vm-table tr:hover .sticky-col, .vm-table tr:hover .sticky-right { background: var(--ln-canvas-soft); }

.vm-identity { display: flex; flex-direction: column; gap: 2px; white-space: normal; line-height: 1.4; }
.vm-vin { font-family: var(--vm-font-mono); font-size: 0.8125rem; color: var(--ln-muted); word-break: break-all; }
.vm-link.vm-vin { color: var(--ln-link); font-weight: 500; }
.vm-link.vm-vin:hover { color: var(--ln-primary-hover); }
.vm-brand { font-size: 0.8125rem; color: var(--ln-body); }

.vm-link {
  padding: 0; border: none; background: none; color: var(--ln-primary);
  font-weight: 500; cursor: pointer; text-align: left;
}
.vm-link:hover { color: var(--ln-primary-hover); text-decoration: underline; text-underline-offset: 2px; }
.vm-link:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--vm-focus-border-color);
  border-radius: var(--ln-radius-xs);
}

.vm-stack { display: flex; flex-direction: column; gap: 2px; white-space: normal; line-height: 1.4; }
.vm-stack .primary { font-weight: 500; color: var(--ln-ink); }
.vm-stack .code { font-family: var(--vm-font-mono); font-size: 0.8125rem; color: var(--ln-muted); }
.vm-stack .vm-link.primary { color: var(--ln-link); font-weight: 500; }
.vm-stack .vm-link.code { font-family: var(--vm-font-mono); font-size: 0.8125rem; color: var(--ln-link); }
.vm-stack .sub { font-size: 0.8125rem; color: var(--ln-body); }

.vm-handover-situation-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: normal;
  line-height: 1.4;
  min-width: 10rem;
}
.vm-handover-situation-line--mile { font-weight: 500; color: var(--ln-ink); font-size: 0.8125rem; }
.vm-handover-situation-line--person { font-size: 0.8125rem; color: var(--ln-body); }
.vm-handover-situation-line--time { font-size: 0.8125rem; color: var(--ln-muted); font-variant-numeric: tabular-nums; }
.vm-handover-situation-cell--clickable {
  display: flex; flex-direction: column; gap: 2px;
  padding: 0; border: none; background: none;
  text-align: left; cursor: pointer; font: inherit;
  min-width: 10rem;
}
.vm-handover-situation-cell--clickable .vm-handover-situation-line--mile,
.vm-handover-situation-cell--clickable .vm-handover-situation-line--person {
  color: var(--ln-link); font-weight: 500;
}
.vm-handover-situation-cell--clickable .vm-handover-situation-line--time {
  color: var(--ln-link); font-variant-numeric: tabular-nums;
}
.vm-handover-situation-cell--clickable:hover .vm-handover-situation-line--mile,
.vm-handover-situation-cell--clickable:hover .vm-handover-situation-line--person,
.vm-handover-situation-cell--clickable:hover .vm-handover-situation-line--time {
  color: var(--ln-primary-hover);
  text-decoration: underline; text-underline-offset: 2px;
}
.vm-handover-situation-cell--clickable:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--vm-focus-border-color);
  border-radius: var(--ln-radius-xs);
}

.vm-status {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 3px 8px; border-radius: var(--ln-radius-pill);
  font-size: 0.75rem; font-weight: 400; line-height: 1; letter-spacing: 0; text-transform: none;
  min-height: 22px; box-sizing: border-box;
}
.vm-status-green { background: rgba(39, 166, 68, 0.12); color: var(--ln-success); }
.vm-status-blue { background: var(--ln-surface-strong); color: var(--ln-ink); }
.vm-status-amber { background: rgba(217, 119, 6, 0.12); color: var(--ln-warning); }
.vm-status-red { background: rgba(229, 72, 77, 0.1); color: var(--ln-error); }
.vm-status-gray { background: var(--ln-surface-strong); color: var(--ln-body); }

.vm-tag {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 3px 8px; border-radius: var(--ln-radius-pill);
  font-size: 0.75rem; font-weight: 400; line-height: 1; letter-spacing: 0; text-transform: none;
  min-height: 22px; box-sizing: border-box;
}
.vm-tag-teal { background: rgba(39, 166, 68, 0.12); color: var(--ln-success); }
.vm-tag-gps { background: rgba(94, 106, 210, 0.12); color: var(--ln-primary-focus); }
.vm-tag-manual { background: var(--ln-surface-strong); color: var(--ln-muted); }

.vm-mileage { font-weight: 500; font-variant-numeric: tabular-nums; }

.vm-cell-tags,
.vm-expire {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  white-space: normal;
}
.vm-expire-date { font-variant-numeric: tabular-nums; font-family: var(--vm-font-mono); font-size: 0.8125rem; }
.vm-expire .vm-link.vm-expire-date { font-family: inherit; padding: 0; }
.vm-expire-tag {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 3px 8px; border-radius: var(--ln-radius-pill); font-size: 0.75rem; font-weight: 400;
  line-height: 1; letter-spacing: 0; text-transform: none;
  min-height: 22px; box-sizing: border-box;
  background: var(--ln-surface-strong); color: var(--ln-body);
}
.vm-expire-tag.warning { background: rgba(217, 119, 6, 0.12); color: var(--ln-warning); }
.vm-expire-tag.danger { background: rgba(229, 72, 77, 0.1); color: var(--ln-error); }

.vm-location { display: flex; flex-direction: column; gap: 4px; white-space: normal; max-width: 280px; }
.vm-online { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 500; }
.vm-online .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.vm-online.on .dot { background: var(--ln-success); box-shadow: 0 0 0 2px rgba(39, 166, 68, 0.25); }
.vm-online.off .dot { background: var(--ln-error); box-shadow: 0 0 0 2px rgba(229, 72, 77, 0.2); }
.vm-loc-text, .vm-loc-time { font-size: 0.8125rem; color: var(--ln-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vm-loc-text.vm-link {
  max-width: 100%;
  text-align: left;
  color: var(--ln-primary);
  font-weight: 500;
}
.vm-loc-text.vm-link:hover {
  color: var(--ln-primary-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vm-modal-map { width: min(720px, calc(100vw - 32px)); }
.vm-location-map-body { padding: 0 24px 24px; }
.vm-location-map-frame-wrap {
  position: relative; overflow: hidden;
  border: 1px solid var(--ln-hairline); border-radius: var(--ln-radius-card);
  background: var(--ln-canvas-soft);
}
.vm-location-map-frame {
  display: block; width: 100%; height: 360px; border: 0;
}
.vm-location-map-marker {
  position: absolute; left: 50%; top: 50%;
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: var(--ln-error);
  box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.25);
  pointer-events: none;
}
.vm-location-map-gps-time {
  margin: 12px 0 0;
  font-size: 0.8125rem; color: var(--ln-muted);
  font-variant-numeric: tabular-nums; font-family: var(--vm-font-mono);
}

.vm-row-actions { display: inline-flex; align-items: center; gap: 4px; }
.vm-action-menu { position: relative; display: inline-flex; }
.vm-action-menu-popover {
  min-width: 148px; padding: 4px;
  border: 1px solid var(--ln-hairline); border-radius: var(--ln-radius-control);
  background: var(--ln-surface-card); box-shadow: var(--ln-shadow-hover);
}
.vm-action-menu-popover--portal {
  position: fixed;
  z-index: 45;
  transform: translateX(-100%);
}
.vm-action-menu-item {
  display: block; width: 100%; padding: 8px 12px;
  border: none; border-radius: var(--ln-radius-sm);
  background: transparent; color: var(--ln-ink);
  font-size: 0.875rem; text-align: left; cursor: pointer;
}
.vm-action-menu-item:hover { background: var(--ln-canvas-soft); }
.vm-action-menu-item:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--vm-focus-border-color);
}

.vm-icon-btn {
  width: var(--vm-btn-height); height: var(--vm-btn-height);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: var(--ln-radius-control);
  background: transparent; color: var(--ln-muted); cursor: pointer;
}
.vm-icon-btn:hover { background: var(--ln-canvas-soft); color: var(--ln-ink); }
.vm-icon-btn:focus-visible {
  outline: none;
  border-color: var(--vm-focus-border-color);
}

.vm-empty { padding: 48px 24px; text-align: center; color: var(--ln-muted); }
.vm-pagination {
  display: flex; justify-content: flex-end; align-items: center;
  flex-wrap: wrap; gap: 12px 16px;
  width: 100%; padding: 0;
}
.vm-pagination-size {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.875rem; color: var(--ln-muted);
  flex-shrink: 0;
}
.vm-pagination-size-label { white-space: nowrap; }
.vm-pagination-select {
  min-width: 72px; height: var(--vm-control-height);
  padding: 0 28px 0 10px;
  border: 1px solid var(--ln-hairline-strong); border-radius: var(--ln-radius-control);
  background: var(--ln-surface-card); color: var(--ln-ink);
  font-size: 0.875rem; cursor: pointer;
}
.vm-pagination-select:focus {
  outline: none;
  border-color: var(--vm-focus-border-color);
}
.vm-pagination-pages {
  display: inline-flex; align-items: center; gap: 4px;
  flex-shrink: 0;
}
.vm-pagination-nav,
.vm-pagination-page {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: var(--vm-control-height); height: var(--vm-control-height);
  padding: 0 8px;
  border: 1px solid var(--ln-hairline-strong); border-radius: var(--ln-radius-control);
  background: var(--ln-surface-card); color: var(--ln-ink);
  font-size: 0.875rem; font-weight: 500; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.vm-pagination-nav:disabled { opacity: 0.45; cursor: not-allowed; }
.vm-pagination-nav:hover:not(:disabled),
.vm-pagination-page:hover:not(.active) { background: var(--ln-canvas-soft); border-color: var(--ln-hairline-strong); }
.vm-pagination-page.active {
  background: var(--ln-primary); border-color: var(--ln-primary); color: var(--ln-on-primary);
}
.vm-pagination-nav:focus-visible,
.vm-pagination-page:focus-visible {
  outline: none;
  border-color: var(--vm-focus-border-color);
}
.vm-pagination-ellipsis {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: var(--vm-control-height);
  color: var(--ln-muted); font-size: 0.875rem;
}

.vm-modal-backdrop {
  position: fixed; inset: 0; background: rgba(24, 24, 27, 0.4);
  display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 50;
}
.vm-modal {
  width: min(560px, 100%); max-height: calc(100vh - 48px); overflow: auto;
  background: var(--ln-surface-card); border-radius: var(--ln-radius-card);
  border: 1px solid var(--ln-hairline); box-shadow: var(--ln-shadow-modal);
}
.vm-modal-sm { width: min(480px, 100%); }
.vm-modal-lg { width: min(720px, 100%); }
.vm-modal-prd { width: min(920px, calc(100vw - 48px)); }
.vm-prd-header p { margin: 6px 0 0; color: var(--ln-muted); font-size: 0.875rem; }
.vm-prd-header--compact {
  justify-content: flex-end;
  padding-bottom: 8px;
}
.vm-prd-body {
  padding: 0 24px 16px;
  max-height: calc(100vh - 220px);
  overflow: auto;
}
.vm-prd-h1 { margin: 0 0 12px; font-size: 1.25rem; font-weight: 600; color: var(--ln-ink); }
.vm-prd-h2 { margin: 24px 0 12px; font-size: 1.0625rem; font-weight: 600; color: var(--ln-ink); }
.vm-prd-h3 { margin: 16px 0 8px; font-size: 0.9375rem; font-weight: 600; color: var(--ln-ink); }
.vm-prd-p { margin: 0 0 10px; color: var(--ln-body); line-height: 1.6; }
.vm-prd-quote {
  margin: 0 0 12px; padding: 10px 12px;
  border-left: 3px solid var(--ln-primary);
  background: var(--ln-canvas-soft);
  color: var(--ln-body); font-size: 0.875rem;
}
.vm-prd-hr { border: none; border-top: 1px solid var(--ln-hairline); margin: 20px 0; }
.vm-prd-list { margin: 0 0 12px 1.25rem; color: var(--ln-body); }
.vm-prd-list li { margin-bottom: 6px; line-height: 1.55; }
.vm-prd-table-wrap { overflow: auto; margin: 0 0 16px; }
.vm-prd-table {
  width: 100%; border-collapse: collapse; font-size: 0.8125rem;
}
.vm-prd-table th, .vm-prd-table td {
  padding: 8px 10px; border: 1px solid var(--ln-hairline); text-align: left; vertical-align: top;
}
.vm-prd-table th { background: var(--ln-canvas-soft); color: var(--ln-muted); font-weight: 500; }
.vm-prd-table td { color: var(--ln-body); }
.vm-edit-body { padding: 16px 24px 8px; }
.vm-edit-banner {
  margin-bottom: 16px; padding: 12px 14px;
  border-radius: var(--ln-radius-control); background: var(--ln-canvas-soft);
  font-size: 0.875rem; color: var(--ln-muted);
}
.vm-edit-banner strong { color: var(--ln-ink); font-weight: 600; }
.vm-form-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px;
}
.vm-form-field { min-width: 0; }
.vm-form-field > span { color: var(--ln-muted); font-size: 0.75rem; font-weight: 500; }
.vm-form-input {
  min-height: var(--vm-control-height);
  height: var(--vm-control-height);
  border-radius: var(--ln-radius-control);
  padding: 0 10px;
  font-size: 0.875rem;
}
.vm-form-input:focus {
  outline: none;
  border-color: var(--vm-focus-border-color);
}
.vm-edit-body .vm-filter-picker-popover { z-index: 55; }
.vm-form-label { font-size: 0.875rem; color: var(--ln-ink); font-weight: 500; }
.vm-form-required { color: var(--ln-error); margin-left: 2px; }
.vm-form-hint { font-size: 0.75rem; color: var(--ln-muted); }
.vm-modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; padding: 20px 24px 0;
}
.vm-modal-close {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid transparent; border-radius: var(--ln-radius-control);
  background: transparent; color: var(--ln-muted);
  cursor: pointer;
}
.vm-modal-close:hover { background: var(--ln-canvas-soft); color: var(--ln-ink); }
.vm-modal-close:focus-visible {
  outline: none;
  border-color: var(--vm-focus-border-color);
}
.vm-modal-header h2 { margin: 0; font-size: 1.125rem; font-weight: 600; color: var(--ln-ink); }
.vm-modal-header p { margin: 6px 0 0; color: var(--ln-muted); font-size: 0.875rem; }
.vm-modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 0 24px 24px; }
.vm-modal-hint { font-size: 0.875rem; color: var(--ln-muted); margin: 0 0 12px; }

.vm-import-body { padding: 8px 24px 0; display: grid; gap: 14px; }
.vm-import-step { padding: 16px 18px; border-radius: var(--ln-radius-card); background: var(--ln-canvas-soft); border: 1px solid var(--ln-hairline); }
.vm-import-step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 600; color: var(--ln-ink); }
.vm-step-badge {
  width: 24px; height: 24px; border-radius: var(--ln-radius-control); display: inline-flex;
  align-items: center; justify-content: center; background: var(--ln-primary);
  color: var(--ln-on-primary); font-size: 0.75rem; font-weight: 600;
}
.vm-upload-zone {
  width: 100%; border: 1.5px dashed var(--ln-hairline-strong); border-radius: var(--ln-radius-card);
  background: var(--ln-surface-card); padding: 24px 16px; text-align: center;
  cursor: pointer; color: var(--ln-muted);
}
.vm-upload-zone:hover { border-color: var(--ln-primary); background: var(--ln-canvas-soft); color: var(--ln-primary-focus); }
.vm-upload-zone:focus-visible {
  outline: none;
  border-color: var(--vm-focus-border-color);
}
.vm-upload-zone .hint { margin-top: 6px; font-size: 0.875rem; }

.vm-ops-body { padding: 16px 24px; }
.vm-ops-vehicle-capsule {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 8px; padding: 6px 12px;
  border: 1px solid var(--ln-hairline); border-radius: var(--ln-radius-pill);
  background: var(--ln-canvas-soft); max-width: 100%;
}
.vm-ops-vehicle-plate {
  font-size: 0.875rem; font-weight: 600; color: var(--ln-ink);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.vm-ops-vehicle-divider {
  width: 1px; height: 14px; background: var(--ln-hairline-strong); flex-shrink: 0;
}
.vm-ops-vehicle-region {
  font-size: 0.8125rem; color: var(--ln-muted); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.vm-ops-picker { position: relative; }
.vm-ops-picker-control { position: relative; }
.vm-ops-picker-popover--portal {
  position: fixed; z-index: 55;
}
.vm-ops-picker-options { max-height: 200px; }
.vm-ops-picker-option {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--ln-radius-sm);
  cursor: pointer; font-size: 0.875rem; color: var(--ln-ink);
}
.vm-ops-picker-option:hover { background: var(--ln-canvas-soft); }
.vm-ops-picker-option:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--vm-focus-border-color);
}
.vm-ops-picker-option.checked {
  background: var(--ln-primary-soft); color: var(--ln-primary-focus); font-weight: 500;
}
.vm-ops-picker-option input[type="checkbox"] {
  width: 16px; height: 16px; margin: 0; flex-shrink: 0; accent-color: var(--ln-primary);
}
.vm-ops-picker-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--ln-hairline);
}
.vm-ops-picker-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--ln-radius-pill);
  background: var(--ln-primary-soft); color: var(--ln-primary-focus);
  font-size: 0.8125rem; font-weight: 500;
}
.vm-ops-picker-tag button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border: none; background: transparent;
  color: var(--ln-muted); cursor: pointer; border-radius: var(--ln-radius-xs);
}
.vm-ops-picker-tag button:hover { background: var(--ln-primary-soft-strong); color: var(--ln-ink); }
.vm-ops-picker-name { flex: 1; min-width: 0; }
.vm-ops-picker-role { margin-left: auto; font-size: 0.8125rem; color: var(--ln-muted); flex-shrink: 0; }
.vm-ops-picker-option.checked .vm-ops-picker-role { color: var(--ln-primary-focus); }

.vm-operate-city-edit-body { padding: 0 24px 8px; display: grid; gap: 12px; }
.vm-operate-city-edit-cities {
  display: grid; gap: 6px; max-height: 240px; overflow: auto;
  padding: 4px 0; border-top: 1px solid var(--ln-hairline);
}
.vm-operate-city-edit-option {
  display: block; width: 100%; text-align: left;
  padding: 10px 12px; border: 1px solid var(--ln-hairline); border-radius: var(--ln-radius-control);
  background: var(--ln-surface-card); color: var(--ln-ink); font-size: 0.875rem;
  cursor: pointer;
}
.vm-operate-city-edit-option:hover { background: var(--ln-canvas-soft); border-color: var(--ln-hairline-strong); }
.vm-operate-city-edit-option.checked {
  border-color: var(--ln-primary); background: var(--ln-primary-soft); color: var(--ln-primary-focus); font-weight: 500;
}
.vm-operate-city-edit-option:focus-visible {
  outline: none;
  border-color: var(--vm-focus-border-color);
}

.vm-detail-topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.vm-detail-heading { margin: 0; font-size: 1.125rem; font-weight: 600; color: var(--ln-ink); letter-spacing: -0.02em; }
.vm-detail-card {
  background: var(--ln-surface-card); border-radius: var(--ln-radius-card);
  border: 1px solid var(--ln-hairline); padding: 24px;
  box-shadow: var(--ln-shadow-soft);
}
.vm-detail-hero {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 24px;
  margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--ln-hairline);
}
.vm-detail-plate { font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ln-ink); letter-spacing: -0.02em; }
.vm-detail-meta { margin: 6px 0 0; font-size: 0.875rem; color: var(--ln-muted); }
.vm-detail-meta.mono { font-family: var(--vm-font-mono); }
.vm-detail-aside { text-align: right; max-width: 360px; }
.vm-detail-gps-time { font-size: 0.8125rem; color: var(--ln-muted); font-variant-numeric: tabular-nums; font-family: var(--vm-font-mono); }

.vm-detail-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px; margin-bottom: 20px;
  --vm-detail-stat-bg: var(--ln-surface-card);
}
.vm-detail-stat {
  padding: 12px 14px;
  border-radius: var(--ln-radius-control);
  background: var(--vm-detail-stat-bg);
  border: 1px solid var(--ln-hairline);
}
.vm-detail-stat--actionable {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vm-detail-stat-main {
  flex: 1;
  min-width: 0;
}
.vm-detail-stat-action {
  flex-shrink: 0;
  align-self: center;
}
.vm-detail-stats .vm-detail-stat-value,
.vm-detail-stats .vm-detail-stat-value--rich,
.vm-detail-stats .vm-cell-tags {
  background: transparent;
}
.vm-detail-stats .vm-detail-edit-btn {
  background: var(--vm-detail-stat-bg);
}
.vm-detail-stats .vm-detail-edit-btn:hover,
.vm-detail-stats .vm-detail-edit-btn:focus-visible {
  background: var(--ln-canvas-soft);
}
.vm-detail-stat-label { display: block; margin-bottom: 4px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ln-muted); }
.vm-detail-stat-value { font-size: 0.875rem; font-weight: 500; color: var(--ln-ink); }
.vm-detail-stat-value--rich {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.vm-detail-field {
  display: flex; flex-direction: column; gap: 6px; padding: 12px 14px;
  border-radius: var(--ln-radius-control); background: var(--ln-surface-card); border: 1px solid var(--ln-hairline);
}
.vm-detail-field--actionable {
  position: relative;
  padding-right: 42px;
}
.vm-detail-field-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.vm-detail-field--actionable .vm-detail-field-action {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}
.vm-detail-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--ln-hairline);
  border-radius: var(--ln-radius-control);
  background: var(--ln-surface-card);
  color: var(--ln-muted);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.vm-detail-edit-btn:hover {
  border-color: color-mix(in srgb, var(--ln-primary) 45%, var(--ln-hairline));
  background: var(--ln-canvas-soft);
  color: var(--ln-primary);
}
.vm-detail-edit-btn:focus-visible {
  outline: none;
  border-color: var(--vm-focus-border-color);
  color: var(--ln-primary);
}
.vm-detail-inline-input {
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid var(--ln-hairline);
  border-radius: var(--ln-radius-control);
  font-size: 0.875rem;
  color: var(--ln-body);
  background: var(--ln-surface-card);
}
.vm-detail-inline-input:focus {
  outline: none;
  border-color: var(--vm-focus-border-color);
}

.vm-tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--ln-hairline); }
.vm-tab {
  min-height: 44px; padding: 0 16px; border: none; background: none;
  color: var(--ln-muted); font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent;
}
.vm-tab.active { color: var(--ln-primary-focus); border-bottom-color: var(--ln-primary); }
.vm-tab:focus-visible {
  outline: none;
  border-bottom-color: var(--vm-focus-border-color);
  color: var(--ln-primary);
}

.vm-section-title {
  display: flex; align-items: center; gap: 8px; margin: 0 0 16px;
  font-size: 0.9375rem; font-weight: 600; color: var(--ln-ink);
}
.vm-section-title::before {
  content: ""; width: 3px; height: 14px; border-radius: 2px;
  background: var(--ln-primary);
}
.vm-section-follow { margin-top: 24px; }

.vm-detail-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px;
}
.vm-detail-label { font-size: 0.75rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ln-muted); }
.vm-detail-value { font-size: 0.875rem; font-weight: 500; word-break: break-word; color: var(--ln-body); }

.vm-tab-placeholder { padding: 32px 16px; text-align: center; color: var(--ln-muted); background: var(--ln-canvas-soft); border-radius: var(--ln-radius-card); }

/* 型号参数 Tab（只读查看） */
.vm-model-param-tab {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.vm-model-param-section {
  padding: 16px 18px;
  border-radius: var(--ln-radius-card);
  background: var(--ln-surface-card);
  border: 1px solid var(--ln-hairline);
}
.vm-model-param-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ln-ink);
  line-height: 1.35;
}
.vm-model-param-section-title::before {
  content: '';
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--ln-primary);
  flex-shrink: 0;
}
.vm-model-param-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
}
.vm-model-param-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.vm-model-param-grid--1 {
  grid-template-columns: 1fr;
}
.vm-model-param-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.vm-model-param-item--wide {
  grid-column: 1 / -1;
}
.vm-model-param-item--actionable {
  position: relative;
  padding-right: 36px;
}
.vm-model-param-item--actionable .vm-detail-field-action {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
.vm-model-param-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ln-muted);
}
.vm-model-param-tab--readonly .vm-model-param-value {
  min-height: auto;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ln-ink);
  line-height: 1.5;
  word-break: break-word;
}
.vm-model-param-tab--readonly .vm-model-param-value.is-empty {
  color: var(--ln-muted);
  font-weight: 400;
}
.vm-model-param-table-wrap {
  overflow-x: auto;
  border-radius: var(--ln-radius-control);
  border: 1px solid var(--ln-hairline);
  background: var(--ln-surface-card);
}
.vm-model-param-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
.vm-model-param-table th,
.vm-model-param-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--ln-hairline);
  text-align: left;
  white-space: nowrap;
}
.vm-model-param-table th {
  background: var(--ln-surface-strong);
  font-weight: 600;
  color: var(--ln-muted);
}
.vm-model-param-table tbody tr:last-child td {
  border-bottom: none;
}
.vm-model-param-table tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--ln-canvas-soft) 55%, var(--ln-surface-card));
}

/* 证照信息 Tab（只读） */
.vm-license-tab {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.vm-license-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 12px;
  padding: 6px 4px;
}
.vm-license-legend-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ln-muted);
}
.vm-license-legend-items {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--ln-muted);
}
.vm-license-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.vm-license-legend-item--help {
  cursor: help;
}
.vm-license-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.vm-license-status-dot--success {
  background: #52c41a;
  box-shadow: 0 0 0 2px color-mix(in srgb, #52c41a 22%, transparent);
}
.vm-license-status-dot--warning {
  background: #faad14;
  box-shadow: 0 0 0 2px color-mix(in srgb, #faad14 22%, transparent);
}
.vm-license-status-dot--error {
  background: #ff4d4f;
  box-shadow: 0 0 0 2px color-mix(in srgb, #ff4d4f 22%, transparent);
}
.vm-license-status-dot--default {
  background: #d9d9d9;
  box-shadow: 0 0 0 2px color-mix(in srgb, #d9d9d9 35%, transparent);
}
.vm-license-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}
.vm-license-nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--ln-hairline);
  border-radius: var(--ln-radius-pill);
  background: var(--ln-surface-card);
  color: var(--ln-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  flex: 0 0 auto;
}
.vm-license-nav-item:hover {
  background: var(--ln-canvas-soft);
  border-color: color-mix(in srgb, var(--ln-primary) 25%, var(--ln-hairline));
  color: var(--ln-ink);
}
.vm-license-nav-item.is-active {
  border-color: color-mix(in srgb, var(--ln-primary) 45%, var(--ln-hairline));
  background: color-mix(in srgb, var(--ln-primary) 10%, var(--ln-surface-card));
  color: var(--ln-primary-focus);
  font-weight: 600;
}
.vm-license-nav-item:focus-visible {
  outline: none;
  border-color: var(--vm-focus-border-color);
}
.vm-license-cert-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.vm-license-cert {
  padding: 16px 18px;
  border-radius: var(--ln-radius-card);
  background: var(--ln-surface-card);
  border: 1px solid var(--ln-hairline);
  scroll-margin-top: 12px;
}
.vm-license-cert-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ln-hairline);
}
.vm-license-cert-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ln-ink);
}
.vm-license-cert-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vm-license-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: var(--ln-radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
}
.vm-license-status--uploaded {
  background: color-mix(in srgb, var(--ln-primary) 12%, var(--ln-surface-card));
  color: var(--ln-primary-focus);
}
.vm-license-status--empty {
  background: var(--ln-surface-strong);
  color: var(--ln-muted);
}
.vm-license-photo-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vm-license-photo-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ln-muted);
}
.vm-license-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.vm-license-photo {
  aspect-ratio: 1 / 1;
  border-radius: var(--ln-radius-control);
  overflow: hidden;
  border: 1px solid var(--ln-hairline);
  background: var(--ln-canvas-soft);
  padding: 0;
  cursor: zoom-in;
  display: block;
  width: 100%;
  min-height: 44px;
}
.vm-license-photo:focus-visible {
  outline: none;
  border-color: var(--vm-focus-border-color);
}
.vm-license-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.vm-license-preview {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.78);
}
.vm-license-preview-body {
  max-width: min(92vw, 720px);
  max-height: min(88vh, 720px);
  border-radius: var(--ln-radius-card);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.35);
}
.vm-license-preview-body img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: min(92vw, 720px);
  max-height: min(88vh, 720px);
  object-fit: contain;
  background: #0f172a;
}
.vm-license-preview-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  border-radius: var(--ln-radius-pill);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}
.vm-license-preview-close:hover {
  background: rgba(255, 255, 255, 0.24);
}
.vm-license-preview-close:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.9);
}
.vm-license-photos-empty {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ln-radius-control);
  border: 1px dashed var(--ln-hairline);
  background: var(--ln-canvas-soft);
  color: var(--ln-muted);
  font-size: 0.875rem;
}
.vm-license-sh-panel {
  padding: 14px 16px;
  border-radius: var(--ln-radius-control);
  background: color-mix(in srgb, #7c3aed 8%, var(--ln-surface-card));
  border: 1px solid color-mix(in srgb, #7c3aed 20%, var(--ln-hairline));
}
.vm-license-sh-badge {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: var(--ln-radius-pill);
  background: color-mix(in srgb, #7c3aed 14%, var(--ln-surface-card));
  color: #5b21b6;
  font-size: 0.75rem;
  font-weight: 600;
}
.vm-license-h2-card {
  padding: 16px 18px;
  border-radius: var(--ln-radius-card);
  background: linear-gradient(135deg, #0f766e 0%, #059669 100%);
  color: #fff;
}
.vm-license-h2-card-no {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.vm-license-h2-card-balance {
  margin-top: 8px;
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.vm-license-h2-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 10px;
  font-size: 0.75rem;
  opacity: 0.9;
}
.vm-license-h2-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 148px;
  padding: 24px 20px;
  border-radius: var(--ln-radius-card);
  border: 1px dashed color-mix(in srgb, var(--ln-muted) 35%, var(--ln-hairline));
  background: linear-gradient(180deg, var(--ln-canvas-soft) 0%, var(--ln-surface-card) 100%);
  text-align: center;
}
.vm-license-h2-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ln-surface-card);
  border: 1px solid var(--ln-hairline);
  color: var(--ln-muted);
}
.vm-license-h2-empty-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ln-ink);
}
.vm-license-h2-empty-desc {
  margin: 0;
  max-width: 280px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ln-muted);
}
.vm-license-meta-grid {
  padding-top: 4px;
  border-top: 1px dashed var(--ln-hairline);
}

/* 详情 Tab 内筛选与表格 */
.vm-lease-records-tab {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.vm-detail-tab-filter {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.vm-detail-tab-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 16px 20px;
  flex: 1;
  min-width: 0;
}
.vm-detail-tab-filter-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.vm-detail-tab-filter-grid--accident,
.vm-detail-tab-filter-grid--violation {
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(150px, 1fr));
}
.vm-detail-tab-filter-grid--movement,
.vm-detail-tab-filter-grid--transfer,
.vm-detail-tab-filter-grid--annual-review {
  grid-template-columns: minmax(260px, 1.35fr) repeat(2, minmax(150px, 1fr));
}
.vm-date-range-field { position: relative; width: 100%; }
.vm-date-range-trigger { cursor: pointer; }
.vm-date-range-icon {
  flex-shrink: 0;
  color: var(--ln-muted-soft);
  pointer-events: none;
}
.vm-date-range-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  min-width: min(100%, 560px);
  padding: 12px;
  border: 1px solid var(--ln-hairline);
  border-radius: var(--ln-radius-card);
  background: var(--ln-surface-card);
  box-shadow: var(--ln-shadow-hover);
}
.vm-date-range-calendars {
  position: relative;
}
.vm-date-range-calendars-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.vm-date-range-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--ln-hairline);
  border-radius: var(--ln-radius-xs);
  background: var(--ln-surface-card);
  color: var(--ln-muted);
  cursor: pointer;
}
.vm-date-range-nav-btn:hover {
  border-color: var(--vm-focus-border-color);
  color: var(--ln-primary);
}
.vm-date-range-calendars-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.vm-date-range-month-title {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ln-ink);
  margin-bottom: 8px;
}
.vm-date-range-weekdays,
.vm-date-range-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}
.vm-date-range-weekday {
  text-align: center;
  font-size: 0.75rem;
  color: var(--ln-muted);
  padding: 4px 0;
}
.vm-date-range-day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  border: none;
  border-radius: var(--ln-radius-xs);
  background: transparent;
  color: var(--ln-ink);
  font-size: 0.8125rem;
  cursor: pointer;
}
.vm-date-range-day:hover:not(:disabled) {
  background: var(--ln-primary-soft);
}
.vm-date-range-day.is-outside {
  color: var(--ln-muted-soft);
}
.vm-date-range-day.is-in-range {
  background: var(--ln-primary-soft);
}
.vm-date-range-day.is-range-start,
.vm-date-range-day.is-range-end {
  background: var(--ln-primary);
  color: var(--ln-on-primary);
  font-weight: 600;
}
.vm-date-range-day.is-today:not(.is-range-start):not(.is-range-end) {
  box-shadow: inset 0 0 0 1px var(--ln-primary);
}
.vm-accident-records-tab,
.vm-violation-records-tab,
.vm-movement-records-tab,
.vm-transfer-records-tab,
.vm-annual-review-records-tab {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.vm-table--accident .vm-table-num,
.vm-table--violation .vm-table-num,
.vm-table--movement .vm-table-num,
.vm-table--annual-review .vm-table-num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.vm-detail-tab-filter-grid--fault {
  grid-template-columns: repeat(3, minmax(160px, 1fr));
}
.vm-fault-records-tab {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.vm-table-wrap--wide {
  overflow-x: auto;
}
.vm-table--fault th,
.vm-table--fault td {
  white-space: nowrap;
}
.vm-table--fault th:nth-child(9),
.vm-table--fault td:nth-child(9) {
  min-width: 180px;
  max-width: 240px;
  white-space: normal;
}
.vm-fault-ai-yes {
  color: var(--ln-success);
  font-weight: 500;
}
.vm-table-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vm-table-wrap--detail-tab {
  max-height: none;
}
.vm-table-wrap--detail-tab .vm-table th,
.vm-table-wrap--detail-tab .vm-table td {
  text-align: left;
}
.vm-table-wrap--detail-tab .vm-empty-cell {
  text-align: left;
}
.vm-table-footer--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
  min-height: 0;
}
.vm-table-footer--compact {
  padding: 6px 12px;
}
.vm-table-footer--compact .vm-table-total {
  font-size: 0.8125rem;
  line-height: 28px;
}
.vm-table-footer--compact .vm-pagination {
  width: auto;
  flex: 0 1 auto;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}
.vm-table-footer--compact .vm-pagination-size {
  gap: 4px;
  font-size: 0.8125rem;
}
.vm-table-footer--compact .vm-pagination-select {
  min-width: 52px;
  height: 28px;
  padding: 0 22px 0 8px;
  font-size: 0.8125rem;
}
.vm-table-footer--compact .vm-pagination-nav,
.vm-table-footer--compact .vm-pagination-page {
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  font-size: 0.8125rem;
}
.vm-table-footer--compact .vm-pagination-ellipsis {
  min-width: 20px;
  height: 28px;
  font-size: 0.8125rem;
}
.vm-table-total {
  font-size: 0.875rem;
  color: var(--ln-muted);
  white-space: nowrap;
}
.vm-empty-cell {
  padding: 40px 16px !important;
  color: var(--ln-muted);
}

/* 保险记录 Tab */
.vm-ins-records-tab {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.vm-ins-records-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-radius: var(--ln-radius-card);
  border: 1px solid var(--ln-hairline);
  background: var(--ln-surface-card);
}
.vm-ins-records-hero-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ln-ink);
}
.vm-ins-records-hero-sub {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--ln-muted);
}
.vm-ins-type-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.vm-ins-type-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid var(--ln-hairline);
  border-radius: var(--ln-radius-card);
  background: var(--ln-surface-card);
  cursor: pointer;
  text-align: left;
}
.vm-ins-type-card:hover {
  border-color: color-mix(in srgb, var(--ln-primary) 30%, var(--ln-hairline));
  background: var(--ln-canvas-soft);
}
.vm-ins-type-card.is-active {
  border-color: var(--ln-primary);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ln-primary) 35%, transparent);
}
.vm-ins-type-card:focus-visible {
  outline: none;
  border-color: var(--vm-focus-border-color);
}
.vm-ins-type-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
.vm-ins-type-card-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ln-ink);
}
.vm-ins-type-card-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--ln-radius-pill);
  background: color-mix(in srgb, var(--ln-primary) 12%, var(--ln-surface-card));
  color: var(--ln-primary-focus);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}
.vm-ins-type-card-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  flex-wrap: wrap;
}
.vm-ins-type-card-date {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--ln-muted);
  text-align: right;
}
.vm-ins-type-card-date .vm-expire {
  justify-content: flex-end;
}
.vm-ins-policy-file-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.vm-ins-policy-file-divider {
  color: var(--ln-muted-soft);
}
.vm-ins-policy-file-empty {
  color: var(--ln-muted);
  font-size: 0.8125rem;
}
.vm-ins-records-panel {
  padding: 16px 18px;
  border-radius: var(--ln-radius-card);
  border: 1px solid var(--ln-hairline);
  background: var(--ln-surface-card);
}
.vm-ins-records-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.vm-ins-records-panel-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ln-ink);
}
.vm-ins-records-summary {
  margin-bottom: 14px;
}
.vm-ins-records-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 148px;
  padding: 24px 20px;
  border-radius: var(--ln-radius-control);
  border: 1px dashed color-mix(in srgb, var(--ln-muted) 35%, var(--ln-hairline));
  background: var(--ln-canvas-soft);
  text-align: center;
}
.vm-ins-records-empty-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ln-ink);
}
.vm-ins-records-empty-upload {
  margin-top: 12px;
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.vm-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--ln-surface-card); color: var(--ln-ink);
  padding: 12px 18px; border-radius: var(--ln-radius-control);
  border: 1px solid var(--ln-hairline); box-shadow: var(--ln-shadow-hover);
  font-size: 0.875rem; z-index: 60;
}

.ellipsis { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1600px) {
  .vm-kpi-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1280px) {
  .vm-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vm-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vm-model-param-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vm-ins-type-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .vm-kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vm-detail-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .vm-page { padding: 16px; }
  .vm-filter-card { padding: 16px; }
  .vm-filter-grid, .vm-detail-grid, .vm-detail-stats { grid-template-columns: 1fr; }
  .vm-model-param-grid,
  .vm-model-param-grid--2 { grid-template-columns: 1fr; }
  .vm-kpi-row { grid-template-columns: 1fr; }
  .vm-operate-city-cascade { grid-template-columns: 1fr; }
  .vm-ins-type-grid { grid-template-columns: 1fr 1fr; }
  .vm-detail-tab-filter-grid,
  .vm-detail-tab-filter-grid--accident,
  .vm-detail-tab-filter-grid--violation,
  .vm-detail-tab-filter-grid--movement,
  .vm-detail-tab-filter-grid--transfer,
  .vm-detail-tab-filter-grid--annual-review,
  .vm-detail-tab-filter-grid--fault { grid-template-columns: 1fr; }
  .vm-date-range-popover { min-width: min(100vw - 48px, 320px); }
  .vm-date-range-calendars-body { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
