:root {
  color-scheme: dark;
  --bg: #050608;
  --surface: #101216;
  --surface-2: #171a20;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f5f7fa;
  --muted: #9ca3af;
  --soft: #c9ced6;
  --accent: #f5f7fa;
  --accent-ink: #08090b;
  --brand: #7dd3fc;
  --success: #43d686;
  --warning: #f8c471;
  --danger: #ff6b6b;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #eceef2;
  --line: rgba(0, 0, 0, 0.1);
  --text: #111318;
  --muted: #68707d;
  --soft: #303642;
  --accent: #111318;
  --accent-ink: #ffffff;
  --brand: #0369a1;
  --success: #067647;
  --warning: #9a6700;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--brand) 14%, transparent), transparent 360px),
    linear-gradient(180deg, rgba(255,255,255,0.035), transparent 320px),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

main {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 clamp(16px, 5vw, 48px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.wordmark,
.topnav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wordmark {
  font-weight: 700;
}

.brand-logo {
  width: 170px;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
  background: #000000;
}

.brand-mark {
  display: block;
  width: min(310px, 92%);
  aspect-ratio: 16 / 9;
  object-fit: contain;
  margin: 0 auto 18px;
}

.topnav a,
.topnav button,
.ghost-action,
.panel-head a,
.panel-head button,
.filter-bar button,
.filter-bar a,
.image-dialog button,
.image-dialog a,
.small-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.topnav a:hover,
.topnav button:hover,
.ghost-action:hover,
.panel-head a:hover,
.panel-head button:hover,
.filter-bar button:hover,
.filter-bar a:hover,
.image-dialog button:hover,
.image-dialog a:hover,
.small-button:hover,
.section-nav a:hover,
.row-actions a:hover,
.linked-docs a:hover,
.table-actions a:hover,
.quick-actions a:hover {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  background: color-mix(in srgb, var(--surface-2) 82%, var(--brand));
}

.topnav form {
  margin: 0;
}

.auth-page main {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-shell {
  width: min(420px, 100%);
}

.login-panel {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.login-panel h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  line-height: 0.95;
}

.login-panel p {
  margin: 14px 0 30px;
  text-align: center;
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--soft);
}

.login-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  padding: 14px 14px;
  outline: none;
}

.login-form input:focus {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
}

.login-form button {
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
}

.messages {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.message {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 12px 14px;
}

.message--success {
  border-color: rgba(67, 214, 134, 0.3);
  background: rgba(67, 214, 134, 0.08);
}

.alert {
  margin-bottom: 18px;
  border: 1px solid color-mix(in srgb, var(--danger) 42%, var(--line));
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 10%, transparent);
}

.page-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 0 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 7vw, 5.4rem);
  line-height: 0.95;
}

.metric-strip,
.vehicle-grid,
.split-layout,
.detail-grid {
  display: grid;
  gap: 16px;
}

.metric-strip {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 18px;
}

.metric-strip article,
.vehicle-card,
.panel,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
}

.metric-strip article {
  padding: 18px;
}

.metric-strip span,
.vehicle-card span,
.timeline-row span,
.timeline-row em,
.muted {
  color: var(--muted);
}

.metric-strip strong {
  display: block;
  margin-top: 8px;
  font-size: 1.4rem;
}

.vehicle-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vehicle-card {
  display: grid;
  gap: 20px;
  padding: 22px;
  transition: transform 160ms ease, border-color 160ms ease;
}

.vehicle-card__image,
.vehicle-hero-image img,
.vehicle-detail-hero__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.vehicle-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
}

.vehicle-card__header,
.panel-head,
.timeline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.vehicle-card__header p,
.vehicle-card__header h2 {
  margin: 0;
}

.vehicle-card__header p {
  color: var(--muted);
}

.vehicle-card__header h2 {
  margin-top: 5px;
  font-size: 1.7rem;
}

.vehicle-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.vehicle-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vehicle-card__meta span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  background: var(--surface-2);
}

.vehicle-card__metrics div {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.vehicle-card__metrics strong {
  display: block;
  margin-top: 5px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
}

.split-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vehicle-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 24px;
  align-items: end;
  padding: 28px 0 18px;
}

.vehicle-detail-hero__content h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.5rem);
  line-height: 0.95;
}

.hero-actions,
.section-nav,
.row-actions,
.linked-docs,
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-actions {
  margin-top: 22px;
}

.hero-actions__group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-form {
  margin: 0;
}

.inline-form .ghost-action {
  height: 100%;
}

.archive-note {
  margin: 14px 0 0;
  color: var(--warning);
}

.vehicle-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  color: var(--muted);
  font-size: clamp(4rem, 14vw, 9rem);
  font-weight: 800;
}

.section-nav {
  position: sticky;
  top: 73px;
  z-index: 8;
  margin: 4px 0 18px;
  padding: 10px 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.section-nav a,
.row-actions a,
.linked-docs a,
.table-actions a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.92rem;
}

.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.quick-panel {
  margin-bottom: 18px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.quick-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 14px;
}

.quick-card span {
  color: var(--muted);
}

.quick-actions a {
  flex: 1 1 96px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
}

.quick-action-button {
  flex: 1 1 96px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
}

.quick-actions--large a {
  min-height: 52px;
}

.dashboard-reminders a.timeline-row {
  color: inherit;
}

.telegram-preview {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.telegram-preview p {
  margin: 0;
  color: var(--muted);
}

.telegram-link-box {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 14px;
}

.telegram-link-box span {
  color: var(--muted);
}

.telegram-link-box strong {
  overflow-wrap: anywhere;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.cost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.cost-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 14px;
}

.cost-grid span {
  color: var(--muted);
}

.cost-grid strong {
  display: block;
  margin-top: 7px;
}

.trend-list,
.mini-table {
  display: grid;
  gap: 12px;
}

.trend-row,
.mini-table-row {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 14px;
}

.trend-row span,
.mini-table-row span {
  display: inline-block;
  margin-right: 10px;
  color: var(--muted);
}

.trend-row strong,
.mini-table-row strong,
.mini-table-row em {
  font-style: normal;
}

.trend-bar,
.table-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, var(--line));
}

.trend-bar i,
.table-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--success));
}

.table-bar {
  width: min(220px, 100%);
  margin-top: 8px;
}

.vehicle-hero-image {
  margin-bottom: 18px;
}

.vehicle-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.document-preview {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.notes-block {
  margin: 12px 0 0;
  color: var(--soft);
  white-space: pre-wrap;
}

.data-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.data-list div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  padding: 8px 0 12px;
  border-bottom: 1px solid var(--line);
}

.data-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.data-list dt {
  color: var(--muted);
}

.data-list dd {
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.form-shell {
  width: min(760px, 100%);
}

.app-form {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  padding: 22px;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--soft);
}

.field input,
.field select,
.field textarea,
.filter-bar input,
.filter-bar select,
.link-field-row input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  padding: 13px 14px;
  outline: none;
}

.field textarea {
  resize: vertical;
  min-height: 118px;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.filter-bar input:focus,
.filter-bar select:focus,
.link-field-row input:focus {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
}

.field--checkbox {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.field--checkbox span {
  grid-column: 2;
  grid-row: 1;
}

.field--checkbox input {
  grid-column: 1;
  grid-row: 1;
  width: 20px;
  height: 20px;
  padding: 0;
}

.field small,
.field-error {
  color: var(--muted);
  font-size: 0.9rem;
}

.field-error {
  color: var(--danger);
  font-weight: 600;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 6px;
}

.form-actions button {
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 11px 16px;
  font-weight: 700;
  cursor: pointer;
}

.form-actions .danger-button {
  background: var(--danger);
  color: #ffffff;
}

.panel {
  padding: 20px;
}

.panel-head {
  margin-bottom: 18px;
}

summary.panel-head {
  list-style: none;
}

summary.panel-head::-webkit-details-marker {
  display: none;
}

.collapsible-panel > summary h2::before {
  content: "▾";
  display: inline-block;
  width: 1.2em;
  color: var(--muted);
}

.collapsible-panel:not([open]) > summary h2::before {
  content: "▸";
}

.collapsible-panel:not([open]) > summary {
  margin-bottom: 0;
}

.panel-head h2 {
  margin: 0;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-row strong small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 500;
}

.timeline-row:last-child {
  border-bottom: 0;
}

.timeline-row em {
  font-style: normal;
}

.compact-timeline .timeline-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.status-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--surface-2);
  color: var(--soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.status-pill--faellig {
  border-color: color-mix(in srgb, var(--danger) 45%, var(--line));
  color: var(--danger);
}

.status-pill--bald {
  border-color: color-mix(in srgb, var(--warning) 45%, var(--line));
  color: var(--warning);
}

.block-panel {
  margin-bottom: 18px;
}

.table-shell {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: color-mix(in srgb, var(--surface-2) 92%, var(--bg));
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table tbody tr:hover {
  background: color-mix(in srgb, var(--surface-2) 58%, transparent);
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table strong {
  font-weight: 700;
}

.table-actions {
  white-space: nowrap;
}

.table-actions a {
  display: inline-block;
  margin: 0 0 6px 6px;
  font-size: 0.88rem;
}

.icon-button {
  display: inline-grid !important;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  margin: 0 0 6px 6px !important;
  padding: 0 !important;
  line-height: 1;
}

.icon-button::before {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1;
}

.icon-button--edit::before {
  content: "\2699\FE0E";
}

.icon-button--delete::before {
  content: "\1F5D1\FE0E";
}

.icon-button--open::before {
  content: "↗";
}

.icon-button--delete {
  color: var(--danger);
}

.empty-cell {
  color: var(--muted);
  text-align: center !important;
  padding: 28px !important;
}

.table-list {
  display: grid;
}

.table-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.table-row:last-child {
  border-bottom: 0;
}

.table-row span,
.table-row small,
.document-card span,
.document-card small {
  color: var(--muted);
}

.table-row strong,
.document-card strong {
  display: block;
  margin: 5px 0;
}

.row-actions {
  align-items: center;
  justify-content: flex-end;
}

.row-actions em {
  color: var(--soft);
  font-style: normal;
  white-space: nowrap;
}

.danger-link {
  color: var(--danger) !important;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.document-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 14px;
}

.delete-copy {
  margin: 0;
  color: var(--soft);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(150px, 220px) auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.link-fields {
  display: grid;
  gap: 10px;
}

.link-field-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(180px, 1fr) auto;
  gap: 10px;
}

.inline-action {
  justify-self: start;
}

.image-dialog {
  width: min(980px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 0;
}

.image-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.image-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 14px;
}

.image-dialog__body {
  display: grid;
  place-items: center;
  min-height: min(72vh, 740px);
  overflow: auto;
  padding: 18px;
  background: var(--bg);
}

.image-dialog__body img {
  max-width: 100%;
  max-height: 68vh;
  object-fit: contain;
  transform-origin: center;
}

.registration-pdf {
  width: min(92vw, 980px);
  height: 78vh;
  border: 0;
  background: var(--surface);
}

@media (max-width: 760px) {
  main {
    width: min(100vw - 24px, 1180px);
    padding-top: 12px;
  }

  .page-hero {
    padding: 18px 0 14px;
  }

  .page-hero h1,
  .vehicle-detail-hero__content h1 {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-strip article,
  .panel,
  .vehicle-card {
    padding: 14px;
  }

  .metric-strip strong {
    font-size: 1.12rem;
  }

  .topbar,
  .page-hero,
  .vehicle-card__header {
    align-items: stretch;
    flex-direction: column;
  }

  .topnav {
    flex-wrap: wrap;
  }

  .metric-strip,
  .vehicle-grid,
  .split-layout,
  .vehicle-info,
  .detail-grid,
  .document-grid,
  .vehicle-detail-hero,
  .table-row,
  .filter-bar,
  .link-field-row {
    grid-template-columns: 1fr;
  }

  .section-nav {
    top: 129px;
    overflow-x: auto;
    flex-wrap: nowrap;
    margin-bottom: 10px;
  }

  .section-nav a,
  .row-actions a {
    white-space: nowrap;
  }

  .row-actions {
    justify-content: flex-start;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions a,
  .form-actions button {
    width: 100%;
    text-align: center;
  }

  .vehicle-card__metrics {
    grid-template-columns: 1fr;
  }

  .quick-actions a {
    flex-basis: calc(50% - 4px);
  }

  .vehicle-detail-hero {
    gap: 14px;
    padding-top: 14px;
  }

  .vehicle-detail-hero__media img,
  .vehicle-placeholder {
    max-height: 210px;
  }

  .data-list div {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
  }

  .table-shell {
    border: 0;
    overflow: visible;
  }

  .data-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
    background: transparent;
  }

  .data-table thead {
    display: none;
  }

  .data-table tr {
    display: grid;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 12px;
  }

  .data-table td {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 10px;
    border-bottom: 0;
    padding: 0;
  }

  .data-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.82rem;
  }

  .table-actions {
    white-space: normal;
  }

  .table-actions a,
  .icon-button {
    margin: 0 6px 6px 0 !important;
  }

  .data-table--mobile-compact tr {
    align-items: start;
    gap: 6px 10px;
    padding: 11px 12px;
  }

  .data-table--mobile-compact td {
    display: block;
    min-width: 0;
    color: var(--soft);
    font-size: 0.9rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .data-table--mobile-compact td::before {
    display: none;
  }

  .data-table--mobile-compact td strong {
    color: var(--text);
  }

  .data-table--mobile-compact .table-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    white-space: nowrap;
  }

  .data-table--mobile-compact .table-actions .icon-button {
    width: 34px;
    height: 34px;
    margin: 0 !important;
  }

  .data-table--mobile-compact .linked-docs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .data-table--mobile-compact .linked-docs a {
    max-width: 100%;
    padding: 7px 9px;
    font-size: 0.84rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .data-table--fuel tr {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "date total"
      "km status"
      "liters price"
      "station actions";
  }

  .data-table--fuel td:nth-child(1) {
    grid-area: date;
    color: var(--text);
    font-weight: 700;
  }

  .data-table--fuel td:nth-child(2)::before {
    display: inline;
    content: "km ";
    color: var(--muted);
  }

  .data-table--fuel td:nth-child(2) {
    grid-area: km;
  }

  .data-table--fuel td:nth-child(3) {
    grid-area: liters;
  }

  .data-table--fuel td:nth-child(4) {
    grid-area: price;
    text-align: right;
  }

  .data-table--fuel td:nth-child(5) {
    grid-area: total;
    color: var(--text);
    font-weight: 700;
    text-align: right;
  }

  .data-table--fuel td:nth-child(6) {
    grid-area: station;
    color: var(--muted);
  }

  .data-table--fuel td:nth-child(7) {
    grid-area: status;
    justify-self: end;
  }

  .data-table--fuel td:nth-child(8) {
    grid-area: actions;
  }

  .data-table--service tr {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "title price price"
      "date category km"
      "detail detail detail"
      "docs docs actions";
  }

  .data-table--service td:nth-child(1),
  .data-table--service td:nth-child(2),
  .data-table--service td:nth-child(4) {
    display: inline;
    color: var(--muted);
    font-size: 0.82rem;
  }

  .data-table--service td:nth-child(1) {
    grid-area: date;
  }

  .data-table--service td:nth-child(2) {
    grid-area: category;
  }

  .data-table--service td:nth-child(3) {
    grid-area: title;
    font-size: 1rem;
  }

  .data-table--service td:nth-child(4) {
    grid-area: km;
    text-align: right;
  }

  .data-table--service td:nth-child(4)::before {
    display: inline;
    content: "km ";
    color: var(--muted);
  }

  .data-table--service td:nth-child(5) {
    grid-area: detail;
    color: var(--muted);
    font-size: 0.84rem;
  }

  .data-table--service td:nth-child(6) {
    grid-area: price;
    color: var(--text);
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
  }

  .data-table--service td:nth-child(7) {
    grid-area: docs;
    min-width: 0;
  }

  .data-table--service td:nth-child(8) {
    grid-area: actions;
    align-self: end;
  }

  .data-table--mobile-compact .empty-cell {
    display: block;
    padding: 16px !important;
    text-align: center !important;
  }

  .data-table--documents tr,
  .data-table--infos tr {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .data-table--documents td:nth-child(1),
  .data-table--infos td:nth-child(2),
  .data-table--infos td:nth-child(4) {
    color: var(--muted);
    font-size: 0.82rem;
  }

  .data-table--documents td:nth-child(2),
  .data-table--infos td:nth-child(3) {
    grid-column: 1;
    grid-row: 1;
    font-size: 1rem;
  }

  .data-table--documents td:nth-child(1),
  .data-table--documents td:nth-child(3),
  .data-table--documents td:nth-child(4),
  .data-table--infos td:nth-child(1),
  .data-table--infos td:nth-child(2),
  .data-table--infos td:nth-child(4) {
    grid-column: 1;
  }

  .data-table--documents td:nth-child(5),
  .data-table--infos td:nth-child(5) {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: center;
  }

  .login-panel {
    padding: 28px 20px;
  }
}

/* Final cockpit overrides: keep these at the end so legacy rules cannot win. */
:root {
  --bg: #05070a;
  --surface: rgba(8, 17, 26, 0.76);
  --surface-2: rgba(13, 27, 40, 0.86);
  --surface-3: rgba(17, 38, 54, 0.74);
  --line: rgba(120, 216, 234, 0.14);
  --line-strong: rgba(0, 217, 255, 0.34);
  --text: #f3f9ff;
  --muted: #7e91a3;
  --soft: #bbcad6;
  --accent: #00d9ff;
  --accent-2: #14f1d9;
  --accent-ink: #031015;
  --brand: #00d9ff;
  --success: #14f1d9;
  --warning: #f6c65b;
  --danger: #ff5f72;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --glow: 0 0 34px rgba(0, 217, 255, 0.16);
}

body {
  background:
    radial-gradient(circle at 72% 0%, rgba(0, 217, 255, 0.13), transparent 34vw),
    radial-gradient(circle at 18% 18%, rgba(20, 241, 217, 0.08), transparent 28vw),
    linear-gradient(145deg, #05070a 0%, #08111a 44%, #05070a 100%);
}

.topbar {
  display: none;
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 244px;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: rgba(5, 9, 14, 0.82);
  box-shadow: 18px 0 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(22px);
}

.bottom-nav {
  display: none;
}

.app-main {
  width: min(1220px, calc(100vw - 300px));
  margin: 0 32px 0 276px;
  padding: 28px 0 72px;
}

.brand-logo {
  width: 154px;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}

.app-nav {
  display: grid;
  align-content: start;
  gap: 8px;
  margin-top: 28px;
}

.app-nav a,
.bottom-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--soft);
  padding: 10px 12px;
}

.app-nav a span,
.bottom-nav a span,
.ghost-action span,
.quick-actions a span,
.quick-action-button span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(0, 217, 255, 0.1);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(0, 217, 255, 0.16);
}

.app-nav a:hover,
.bottom-nav a:hover {
  border-color: var(--line-strong);
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.12), rgba(20, 241, 217, 0.05));
  color: var(--text);
}

.sidebar-user {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(13, 27, 40, 0.74);
  padding: 10px;
}

.sidebar-user strong,
.sidebar-user small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user small {
  color: var(--muted);
}

.sidebar-user form {
  margin: 0;
}

.sidebar-user button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
}

.user-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.84), rgba(20, 241, 217, 0.72));
  color: #021015;
  font-weight: 800;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  letter-spacing: 0;
}

.eyebrow {
  color: var(--accent-2);
}

.ghost-action,
.panel-head a,
.panel-head button,
.filter-bar button,
.filter-bar a,
.small-button,
.image-dialog button,
.image-dialog a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  border-color: var(--line);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(14, 31, 45, 0.86), rgba(8, 17, 26, 0.72));
  color: var(--text);
}

.ghost-action--primary,
.form-actions button {
  border-color: rgba(0, 217, 255, 0.42);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  box-shadow: 0 12px 34px rgba(0, 217, 255, 0.22);
}

.hero-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: min(100%, 720px);
}

.hero-actions__group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.hero-actions__group--manage {
  grid-column: 1 / -1;
  padding-top: 2px;
}

.action-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid rgba(120, 216, 234, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--soft);
  padding: 8px 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

button.action-chip {
  cursor: pointer;
}

.action-chip:hover,
.quick-action-button:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 217, 255, 0.34);
  background: rgba(0, 217, 255, 0.09);
  color: var(--text);
}

.action-chip span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: rgba(0, 217, 255, 0.1);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(0, 217, 255, 0.14);
}

.action-chip--fuel {
  min-height: 48px;
  border-color: rgba(0, 217, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(0, 217, 255, 0.22), rgba(20, 241, 217, 0.08)),
    rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 10px 16px;
}

.action-chip--fuel span {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  box-shadow: 0 8px 22px rgba(0, 217, 255, 0.22);
}

.action-chip--fuel strong {
  font-size: 1rem;
}

.metric-strip article,
.vehicle-card,
.panel,
.empty-state,
.quick-card,
.cost-grid article,
.trend-row,
.mini-table-row,
.telegram-link-box,
.document-card,
.app-form,
.login-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(8, 17, 26, 0.74);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(18px);
}

.vehicle-grid {
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
}

.vehicle-card {
  position: relative;
  overflow: hidden;
  padding: 14px;
  gap: 16px;
}

.vehicle-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow), var(--glow);
}

.vehicle-card__image,
.vehicle-hero-image img,
.vehicle-detail-hero__media img,
.vehicle-placeholder {
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: #0c1721;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.vehicle-card__header {
  align-items: start;
}

.vehicle-card__header p {
  color: var(--accent-2);
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 800;
}

.vehicle-card__header h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.vehicle-card__header > span,
.hero-plate {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--soft);
  padding: 7px 10px;
  white-space: nowrap;
}

.vehicle-card__metrics {
  gap: 8px;
}

.vehicle-card__metrics div {
  border: 1px solid rgba(120, 216, 234, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  padding: 12px;
}

.vehicle-card__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}

.vehicle-card__summary span,
.vehicle-card__summary em {
  color: var(--muted);
  font-style: normal;
}

.vehicle-card__summary strong {
  grid-row: span 2;
  color: var(--accent);
  font-size: 1.2rem;
}

.quick-actions a,
.quick-action-button {
  min-height: 54px;
  border-color: rgba(120, 216, 234, 0.16);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(0, 217, 255, 0.11), rgba(255, 255, 255, 0.035));
  color: var(--text);
}

.dashboard-top-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
}

.garage-vault-meter {
  display: grid;
  place-items: center;
  min-height: 160px;
  border: 1px solid rgba(0, 217, 255, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle, rgba(0, 217, 255, 0.16), transparent 58%),
    rgba(255, 255, 255, 0.025);
  text-align: center;
}

.garage-vault-meter strong {
  color: var(--accent);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.vehicle-detail-hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  align-items: stretch;
  gap: 18px;
  margin: 6px 0 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(0, 217, 255, 0.11), transparent 38%),
    rgba(8, 17, 26, 0.72);
  box-shadow: var(--shadow);
  padding: 16px;
  overflow: hidden;
}

.vehicle-detail-hero__media img,
.vehicle-placeholder {
  height: 100%;
  min-height: 280px;
}

.vehicle-detail-hero__content {
  display: grid;
  align-content: center;
  justify-items: start;
  padding: clamp(8px, 2vw, 26px);
}

.hero-plate {
  margin-top: 12px;
}

.section-nav {
  top: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(5, 9, 14, 0.72);
  padding: 8px;
}

.table-shell {
  border-color: rgba(120, 216, 234, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.data-table,
.data-table th {
  background: transparent;
}

.data-table th,
.data-table td {
  border-bottom-color: rgba(120, 216, 234, 0.09);
}

.data-table tbody tr:hover {
  background: rgba(0, 217, 255, 0.055);
}

.icon-button {
  border-color: rgba(120, 216, 234, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.icon-button--edit::before {
  content: "⚙︎";
}

.icon-button--delete::before {
  content: "⌫";
}

.icon-button--open::before {
  content: "↗";
}

.filter-bar input,
.filter-bar select,
.field input,
.field select,
.field textarea,
.link-field-row input,
.login-form input {
  border-color: rgba(120, 216, 234, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
}

@media (max-width: 940px) {
  .app-sidebar {
    display: none;
  }

  .bottom-nav {
    position: fixed;
    inset: auto 10px 10px 10px;
    z-index: 35;
    display: grid;
    grid-template-columns: 1fr 1fr 64px 1fr 1fr;
    align-items: end;
    gap: 4px;
    min-height: 76px;
    border: 1px solid rgba(120, 216, 234, 0.14);
    border-radius: 24px;
    background: rgba(5, 9, 14, 0.9);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(22px);
    padding: 8px;
  }

  .bottom-nav a {
    display: grid;
    justify-items: center;
    gap: 3px;
    min-height: 56px;
    padding: 7px 4px;
    font-size: 0.76rem;
  }

  .bottom-nav .bottom-nav__primary {
    width: 62px;
    height: 62px;
    min-height: 62px;
    align-self: start;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 28px rgba(0, 217, 255, 0.42);
    transform: translateY(-16px);
  }

  .bottom-nav .bottom-nav__primary span {
    width: auto;
    height: auto;
    background: transparent;
    box-shadow: none;
    color: #031015;
    font-size: 2rem;
  }

  .app-main {
    width: min(100vw - 24px, 1180px);
    margin: 0 auto;
    padding: 20px 0 112px;
  }

  .page-hero {
    align-items: center;
    flex-direction: row;
  }

  .dashboard-top-grid,
  .detail-grid,
  .vehicle-detail-hero,
  .metric-strip,
  .vehicle-grid,
  .split-layout,
  .vehicle-info,
  .document-grid,
  .table-row,
  .filter-bar,
  .link-field-row {
    grid-template-columns: 1fr;
  }

  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vehicle-card__metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vehicle-detail-hero__media img,
  .vehicle-placeholder {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .hero-actions {
    display: none;
  }

  .mobile-action-panel {
    display: block;
  }

  .section-nav {
    top: 68px;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .quick-actions--large {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-actions--large a {
    min-height: 64px;
  }

  .quick-actions--large .quick-action-button {
    min-height: 64px;
  }

  .quick-actions--large a:nth-last-child(1):nth-child(odd),
  .quick-actions--large .quick-action-button:nth-last-child(1):nth-child(odd) {
    grid-column: 1 / -1;
  }

  .data-table tr {
    border-color: rgba(120, 216, 234, 0.12);
    border-radius: 16px;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
      rgba(8, 17, 26, 0.78);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
  }
}

@media (min-width: 941px) {
  .mobile-action-panel {
    display: none;
  }
}

@media (max-width: 520px) {
  .brand-logo {
    width: 138px;
  }

  .page-hero h1 {
    font-size: clamp(1.95rem, 11vw, 2.8rem);
  }

  .metric-strip article,
  .panel,
  .vehicle-card {
    padding: 12px;
  }

  .vehicle-card__metrics {
    grid-template-columns: 1fr;
  }

  .vehicle-card__header {
    flex-direction: row;
    align-items: start;
  }

  .vehicle-card__header > span {
    max-width: 46%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Vehicle detail cockpit refinement */
.vehicle-detail-page .app-main {
  width: calc(100vw - 332px);
  max-width: 1680px;
  margin-left: 276px;
  margin-right: 56px;
}

.vehicle-detail-page .vehicle-detail-hero {
  grid-template-columns: minmax(330px, 0.88fr) minmax(330px, 0.82fr) minmax(360px, 0.76fr);
  align-items: stretch;
  gap: 18px;
  min-height: 340px;
  padding: 18px;
}

.vehicle-detail-page .vehicle-detail-hero__media img,
.vehicle-detail-page .vehicle-placeholder {
  min-height: 304px;
  height: 100%;
}

.vehicle-detail-page .vehicle-detail-hero__content {
  align-content: space-between;
  min-width: 0;
  padding: clamp(12px, 1.8vw, 28px);
}

.vehicle-detail-page .vehicle-detail-hero__content h1 {
  font-size: clamp(3rem, 4.4vw, 6rem);
}

.vehicle-hero-meta,
.vehicle-hero-summary,
.hero-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vehicle-hero-meta {
  margin-top: 16px;
}

.vehicle-hero-meta span,
.vehicle-hero-summary div {
  border: 1px solid rgba(120, 216, 234, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--soft);
  padding: 9px 12px;
}

.vehicle-hero-summary {
  width: 100%;
  margin-top: 24px;
}

.vehicle-hero-summary div {
  flex: 1 1 170px;
  display: grid;
  gap: 5px;
}

.vehicle-hero-summary span,
.action-tile em {
  color: var(--muted);
  font-style: normal;
}

.vehicle-hero-summary strong {
  font-size: 1.35rem;
}

.hero-action-panel {
  display: grid;
  align-content: stretch;
  gap: 12px;
  min-width: 0;
}

.action-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.action-tile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 72px;
  border: 1px solid rgba(120, 216, 234, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    rgba(8, 17, 26, 0.68);
  color: var(--text);
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.action-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 217, 255, 0.38);
  background:
    linear-gradient(145deg, rgba(0, 217, 255, 0.12), rgba(20, 241, 217, 0.04)),
    rgba(8, 17, 26, 0.78);
}

.action-tile span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(0, 217, 255, 0.1);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(0, 217, 255, 0.16);
}

.action-tile strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.action-tile--primary {
  min-height: 104px;
  border-color: rgba(0, 217, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(0, 217, 255, 0.26), rgba(20, 241, 217, 0.08)),
    rgba(255, 255, 255, 0.055);
}

.action-tile--primary span {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  box-shadow: 0 12px 28px rgba(0, 217, 255, 0.24);
}

.action-tile--primary strong {
  font-size: 1.25rem;
}

.action-tile--primary em {
  grid-column: 2;
}

.hero-admin-actions {
  align-content: start;
  border-top: 1px solid rgba(120, 216, 234, 0.12);
  padding-top: 12px;
}

.vehicle-detail-page .section-nav {
  justify-content: center;
  margin-bottom: 20px;
}

.vehicle-detail-page .section-nav a {
  flex: 0 0 auto;
  min-width: 128px;
  text-align: center;
}

.vehicle-detail-page .metric-strip {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.vehicle-detail-page .metric-strip article,
.vehicle-detail-page .cost-grid article {
  min-height: 98px;
}

.vehicle-detail-page .detail-grid {
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
}

.vehicle-detail-page .block-panel,
.vehicle-detail-page .detail-grid {
  margin-bottom: 20px;
}

.vehicle-detail-page #auswertung .cost-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.vehicle-detail-page .data-list div {
  grid-template-columns: 132px minmax(0, 1fr);
}

.vehicle-detail-page .table-shell {
  overflow-x: visible;
}

.vehicle-detail-page .data-table {
  min-width: 0;
}

.vehicle-detail-page .data-table th,
.vehicle-detail-page .data-table td {
  padding: 14px 16px;
}

.vehicle-detail-page .data-table--service th:nth-child(3),
.vehicle-detail-page .data-table--service td:nth-child(3),
.vehicle-detail-page .data-table--documents th:nth-child(2),
.vehicle-detail-page .data-table--documents td:nth-child(2) {
  width: 26%;
}

@media (max-width: 1280px) {
  .vehicle-detail-page .vehicle-detail-hero {
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
  }

  .vehicle-detail-page .hero-action-panel {
    grid-column: 1 / -1;
    grid-template-columns: minmax(260px, 0.7fr) minmax(360px, 1fr);
  }

  .vehicle-detail-page .hero-admin-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 940px) {
  .vehicle-detail-page .app-main {
    width: min(100vw - 24px, 1180px);
    margin: 0 auto;
  }

  .vehicle-detail-page .vehicle-detail-hero,
  .vehicle-detail-page .detail-grid,
  .vehicle-detail-page .metric-strip {
    grid-template-columns: 1fr;
  }

  .vehicle-detail-page .hero-action-panel {
    display: none;
  }

  .vehicle-detail-page .vehicle-detail-hero__content h1 {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .vehicle-detail-page .section-nav {
    justify-content: flex-start;
  }

  .vehicle-detail-page .table-shell {
    overflow: visible;
  }
}

@media (max-width: 560px) {
  .vehicle-hero-summary,
  .vehicle-hero-meta {
    display: grid;
    grid-template-columns: 1fr;
  }
}
