/* Tank catalog and vehicle pages. Self-contained: no shared app styles. */
:root {
  color-scheme: dark;
  --bg: #0f1115;
  --surface: #161a21;
  --surface-2: #1b2029;
  --surface-3: #232a35;
  --line: #262c37;
  --line-strong: #364052;
  --text: #e8eaf0;
  --muted: #9aa3b2;
  --dim: #737d8e;
  --accent: #6c8cff;
  --accent-strong: #93abff;
  --accent-soft: rgba(108, 140, 255, .16);
  --better: #7bd8a0;
  --worse: #f0959a;
  --radius: 12px;
  --radius-sm: 8px;
  --gutter: 16px;
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body.tk {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}
.tk h1, .tk h2, .tk h3, .tk p, .tk dl, .tk dd, .tk fieldset { margin: 0; }
.tk a { color: inherit; }
.tk button, .tk input, .tk select { font: inherit; color: inherit; }
.tk :focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.tk-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.tk-skip { position: absolute; inset-inline-start: 8px; top: -48px; z-index: 20; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--accent); color: #0f1115; font-weight: 600; }
.tk-skip:focus { top: 8px; }
.tk-wrap { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 24px; } }
@media (min-width: 1400px) { :root { --gutter: 40px; } }

/* Site chrome */
.tk-top { border-bottom: 1px solid var(--line); }
.tk-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.tk-brand { font-weight: 800; font-size: 17px; letter-spacing: .04em; text-decoration: none; }
.tk-brand span { color: var(--accent); }
.tk-nav { display: flex; gap: 4px; }
.tk-nav a { padding: 8px 12px; border-radius: var(--radius-sm); color: var(--muted); text-decoration: none; }
.tk-nav a:hover { color: var(--text); background: var(--surface); }
.tk-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.tk-main { flex: 1; padding-block: 24px 48px; }
.tk-foot { border-top: 1px solid var(--line); padding-block: 20px; color: var(--dim); font-size: 13px; }

/* Shared atoms */
.tk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface-2); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.tk-btn:hover { background: var(--surface-3); }
.tk-link { padding: 4px 0; border: 0; background: none; color: var(--accent-strong); cursor: pointer; text-decoration: none; font-size: 14px; }
.tk-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.tk-muted { color: var(--dim); }
.tk-empty { padding: 48px 16px; text-align: center; color: var(--muted); }
.tk-empty h1, .tk-empty h2 { color: var(--text); font-size: 20px; margin-bottom: 8px; }
.tk-empty .tk-btn { margin-top: 16px; }
.tk-error p { color: var(--worse); }
.tk-glyph { width: 12px; height: 12px; flex: none; }
.tk-class { display: inline-flex; align-items: center; gap: 6px; }
.tk-tier { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.tk-pill { padding: 2px 8px; border-radius: 999px; background: var(--surface-3); color: var(--text); font-size: 12px; font-weight: 600; }

/* Tank renders: the frame is fixed, the trimmed render is contained in it. */
.tank-image { display: flex; align-items: center; justify-content: center; min-width: 0; }
.tank-image img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.tank-card__stage, .tk-hero__stage { position: relative; }
.tank-image--big { position: absolute; inset: 14% 9%; }
.tank-image--small { width: 64px; height: 28px; flex: none; }
/* Small client icons are black silhouettes that the game tints; tint them light here. */
.tank-image--small img { filter: invert(1); opacity: .78; }
.tank-table__name:hover .tank-image--small img { opacity: 1; }
.image-fallback { display: block; width: 40%; aspect-ratio: 2 / 1; border-radius: 6px; background: repeating-linear-gradient(135deg, var(--surface-3) 0 6px, transparent 6px 12px); opacity: .6; }
.tank-image--small .image-fallback { width: 100%; height: 100%; }

/* Catalog header and controls */
.tk-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.tk-head h1 { font-size: 28px; line-height: 1.15; letter-spacing: -.01em; }
.tk-head__count { color: var(--muted); font-variant-numeric: tabular-nums; }
.tk-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tk-search { position: relative; flex: 1 1 100%; }
.tk-search svg { position: absolute; inset-inline-start: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
.tk-search input, .tk-sort select {
  width: 100%; min-height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); outline-offset: 0;
}
.tk-search input { padding: 0 12px 0 40px; }
.tk-search input::placeholder { color: var(--dim); }
.tk-search input:focus, .tk-sort select:focus { border-color: var(--accent); }
.tk-sort { flex: 1 1 0; min-width: 0; }
.tk-filters-toggle { flex: 0 0 auto; }
@media (max-width: 719px) { .tk-sort select { padding: 0 26px 0 10px; background-position: right 8px center; font-size: 14px; } .tk-filters-toggle { padding: 0 12px; } }
.tk-sort select {
  appearance: none; padding: 0 36px 0 12px; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%239aa3b2' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center / 12px;
}
.tk-sort select option { background: var(--surface); }
.tk-filters-toggle { min-height: 44px; }
.tk-badge { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #0f1115; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.tk-seg { display: inline-flex; padding: 3px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); }
.tk-seg button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px;
  border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer;
}
.tk-seg button svg { width: 16px; height: 16px; }
.tk-seg button span { display: none; }
.tk-seg button:hover { color: var(--text); }
.tk-seg button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }

.tk-filters { display: none; margin-top: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); gap: 16px; flex-direction: column; align-items: stretch; }
.tk-filters.is-open { display: flex; }
.tk-facet { min-width: 0; padding: 0; border: 0; }
.tk-facet legend { padding: 0; margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.tk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-chips--tiers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tk-chip { position: relative; display: flex; }
.tk-chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tk-chip span {
  display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text); font-size: 14px; white-space: nowrap; user-select: none;
  transition: background-color .12s, border-color .12s;
}
.tk-chip:hover span { border-color: var(--dim); }
.tk-chip input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: #fff; box-shadow: inset 0 0 0 1px var(--accent); }
.tk-chip input:focus-visible + span { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.tk-chips--tiers .tk-chip span { padding: 0 4px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tk-filters > .tk-link { align-self: flex-start; }

@media (min-width: 720px) {
  .tk-search { flex: 1 1 320px; max-width: 520px; }
  .tk-sort { flex: 0 1 260px; }
  .tk-filters-toggle { display: none; }
  .tk-filters, .tk-filters.is-open { display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-end; column-gap: 32px; row-gap: 16px; padding: 0; border: 0; background: none; margin-top: 16px; }
  .tk-chips--tiers { display: flex; }
  .tk-chips--tiers .tk-chip span { min-width: 42px; }
  .tk-chip span { min-height: 36px; }
  .tk-filters > .tk-link { align-self: center; margin-block-end: 2px; }
}
@media (min-width: 900px) { .tk-seg button span { display: inline; } .tk-toolbar .tk-seg { margin-inline-start: auto; } }

/* Grid */
.tk-results { margin-top: 24px; }
.tk-results[aria-busy="true"] { opacity: .6; transition: opacity .2s .15s; }
.tank-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 560px) { .tank-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 840px) { .tank-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1040px) { .tank-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .tank-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.tank-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  text-decoration: none; transition: border-color .15s, background-color .15s;
}
.tank-card:hover { border-color: var(--line-strong); background: var(--surface-2); }
.tank-card:focus-visible { outline-offset: 2px; border-color: var(--accent); }
.tank-card__stage {
  display: block; width: 100%; aspect-ratio: 16 / 10;
  background: radial-gradient(70% 55% at 50% 72%, #262d39 0%, transparent 72%);
}
.tank-card:hover .tank-image img { transform: scale(1.03); }
.tank-card .tank-image img { transition: transform .2s; }
.tank-card__body { display: flex; flex-direction: column; gap: 4px; padding: 0 12px 12px; }
.tank-card__name { display: -webkit-box; overflow: hidden; font-size: 15px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.tank-card__meta { margin-top: auto; }
.tank-card__body { flex: 1; }
.tank-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--muted); font-size: 13px; }

/* Table */
.tank-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tank-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tank-table th { position: sticky; top: 0; padding: 10px 12px; background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 600; text-align: start; white-space: nowrap; }
.tank-table td { padding: 6px 12px; border-top: 1px solid var(--line); white-space: nowrap; color: var(--muted); }
.tank-table td:first-child { width: 100%; color: var(--text); }
.tank-table tbody tr:hover { background: var(--surface-2); }
.tank-table__name { display: flex; align-items: center; gap: 12px; min-height: 40px; font-weight: 600; text-decoration: none; }
.tank-table__name:hover span { color: var(--accent-strong); }
.tank-table__tier { color: var(--text) !important; font-weight: 600; font-variant-numeric: tabular-nums; }
.tank-table__opt { display: none; }
@media (min-width: 840px) { .tank-table__opt { display: table-cell; } }
.tank-table__short { display: none; }
@media (max-width: 559px) {
  .tank-table th:nth-child(4), .tank-table td:nth-child(4) { display: none; }
  .tank-table td, .tank-table th { padding-inline: 8px; }
  .tank-table td:first-child { white-space: normal; }
  .tank-table__name { gap: 8px; }
  .tank-table .tank-image--small { width: 48px; height: 22px; }
  .tank-table__long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tank-table__short { display: inline; }
}

/* Vehicle page */
.tk-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; color: var(--dim); font-size: 14px; }
.tk-crumbs a { color: var(--muted); text-decoration: none; }
.tk-crumbs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.tk-crumbs [aria-current] { color: var(--text); }
.tk-hero { display: grid; gap: 16px 40px; align-items: center; }
.tk-hero__stage {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: radial-gradient(60% 50% at 50% 70%, #283040 0%, rgba(22, 26, 33, .6) 60%, transparent 80%), var(--surface);
}
.tk-hero__stage .tank-image--big { inset: 12% 8%; }
.tk-hero__info { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tk-hero__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--muted); font-size: 14px; }
.tk-hero h1 { display: flex; align-items: baseline; gap: 12px; font-size: clamp(28px, 6vw, 40px); line-height: 1.1; letter-spacing: -.015em; overflow-wrap: anywhere; }
.tk-hero__tier { color: var(--dim); font-weight: 600; font-size: .7em; font-variant-numeric: tabular-nums; }
.tk-hero__desc { max-width: 62ch; color: var(--muted); }
.tk-facts { display: flex; flex-wrap: wrap; gap: 1px; margin-top: 4px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.tk-facts div { flex: 1 1 140px; padding: 10px 14px; background: var(--surface); }
.tk-facts dt { color: var(--dim); font-size: 13px; }
.tk-facts dd { font-weight: 600; }
/* Source renders are at most 256×128, so the stage stays small enough to keep them crisp. */
.tk-hero__stage { max-width: 520px; }
@media (min-width: 900px) { .tk-hero { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); } }

/* Configuration */
.tk-config { position: relative; margin-top: 40px; }
.tk-config__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.tk-config__head h2, .tk-section-head h2 { font-size: 22px; letter-spacing: -.01em; }
.tk-config__state { display: flex; align-items: baseline; gap: 16px; color: var(--muted); font-size: 14px; }
.tk-config__body { display: grid; gap: 16px; align-items: start; }
@media (min-width: 1040px) { .tk-config__body { grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; } }
.tk-config__controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
@media (min-width: 1200px) {
  .tk-config__controls { grid-template-columns: max-content minmax(0, 1fr); column-gap: 40px; grid-template-areas: "turret turret" "gun gun" "equipment shell" "equipment provisions" "equipment ."; }
  .tk-group--turret { grid-area: turret; }
  .tk-group--gun { grid-area: gun; }
  .tk-group--shell { grid-area: shell; }
  .tk-group--equipment { grid-area: equipment; }
  .tk-group--provisions { grid-area: provisions; }
}
@media (max-width: 559px) { .tk-config__controls { padding: 16px; } }
.tk-group__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 10px; font-size: 15px; font-weight: 600; }
.tk-group__hint, .tk-group__count, .tk-group__value { color: var(--muted); font-size: 13px; font-weight: 400; font-variant-numeric: tabular-nums; }
.tk-group__count b { color: var(--text); font-weight: 600; }
.tk-group__value { color: var(--text); }

.tk-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.tk-option {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 52px; padding: 8px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-2);
  text-align: start; cursor: pointer; transition: border-color .12s, background-color .12s;
}
.tk-option:hover { border-color: var(--dim); }
.tk-option__name { font-weight: 600; line-height: 1.25; }
.tk-option__sub { color: var(--muted); font-size: 13px; }
.tk-option[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }

/* Icon buttons: shells, equipment, provisions */
.tk-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-icon {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 56px; height: 56px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface-2); cursor: pointer; transition: border-color .12s, background-color .12s, opacity .12s;
}
.tk-icon:hover { border-color: var(--dim); background: var(--surface-3); }
.tk-icon[aria-pressed="true"], .tk-icon[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.tk-icon[aria-pressed="true"]::after, .tk-icon[aria-checked="true"]::after {
  content: ""; position: absolute; top: -5px; inset-inline-end: -5px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%230f1115' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: 0 0 0 2px var(--surface);
}
.tk-icon[aria-disabled="true"] { opacity: .38; cursor: not-allowed; }
.tk-icon[aria-disabled="true"]:hover { border-color: var(--line-strong); background: var(--surface-2); }
.tk-icon--none { cursor: default; border-style: dashed; background: none; }
.tk-icon--none:hover { border-color: var(--line-strong); background: none; }
.item-icon-frame { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.item-icon { display: block; width: 100%; height: 100%; object-fit: contain; }
.item-icon-fallback { color: var(--muted); font-size: 13px; font-weight: 700; }

.tk-equipment { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, max-content)); gap: 8px 20px; }
.tk-equipment__col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tk-equipment__label { overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.tk-slot { display: flex; gap: 6px; padding: 5px; border-radius: 12px; background: var(--bg); }
@media (max-width: 479px) {
  .tk-equipment { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 8px; }
  .tk-slot { justify-content: center; gap: 4px; padding: 4px; }
  .tk-slot .tk-icon { width: 44px; height: 44px; padding: 3px; border-radius: 8px; }
  .tk-equipment__label { font-size: 12px; }
}

.tk-provisions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.tk-provisions__slots { display: flex; gap: 6px; padding: 5px; border-radius: 12px; background: var(--bg); }
.tk-pslot { width: 56px; height: 56px; padding: 4px; border: 1px dashed var(--line-strong); border-radius: 10px; background: none; }
.tk-pslot.is-filled { border: 1px solid var(--accent); background: var(--accent-soft); cursor: pointer; }
.tk-pslot.is-filled:hover { background: rgba(108, 140, 255, .26); }

/* Tooltip */
.tk-tip {
  position: fixed; z-index: 30; display: flex; flex-direction: column; gap: 4px; max-width: min(320px, calc(100vw - 16px));
  padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #0b0d11;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); font-size: 13px; line-height: 1.4; pointer-events: none; white-space: pre-line;
}
.tk-tip strong { font-size: 14px; }
.tk-tip span { color: var(--muted); }
.tk-tip em { color: var(--worse); font-style: normal; }

/* Live readout */
.tk-readout { display: flex; flex-direction: column; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
@media (min-width: 1040px) { .tk-readout { position: sticky; top: 16px; } }
.tk-readout[aria-busy="true"] .tk-stats b { opacity: .55; transition: opacity .2s .1s; }
.tk-readout__shell { color: var(--muted); font-size: 13px; }
.tk-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.tk-stats + .tk-stats, .tk-armor { padding-top: 16px; border-top: 1px solid var(--line); }
.tk-stats--primary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tk-stat { min-width: 0; }
.tk-stat dt { color: var(--muted); font-size: 13px; }
.tk-stat dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-variant-numeric: tabular-nums; }
.tk-stat b { font-size: 18px; font-weight: 600; }
.tk-stats--primary b { font-size: 24px; letter-spacing: -.01em; }
.tk-stat__unit { color: var(--dim); font-size: 13px; }
.tk-stat__note { flex-basis: 100%; color: var(--dim); font-size: 12px; }
.tk-delta { font-size: 13px; font-weight: 600; }
.tk-delta.is-better { color: var(--better); }
.tk-delta.is-worse { color: var(--worse); }
.tk-armor__title { display: block; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.tk-armor__plates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tk-armor__plates span { display: flex; flex-direction: column; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface-2); }
.tk-armor__plates small { color: var(--dim); font-size: 12px; }
.tk-armor__plates b { font-size: 17px; font-variant-numeric: tabular-nums; }
.tk-readout__status { color: var(--muted); font-size: 13px; }
.tk-readout__status.is-error { color: var(--worse); }

/* Compact sticky summary for narrow screens, where the readout is far away. */
.tk-summary {
  position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 calc(-1 * var(--gutter)) 12px; padding: 8px var(--gutter);
  border-bottom: 1px solid var(--line); background: rgba(15, 17, 21, .94); backdrop-filter: blur(8px);
}
.tk-summary span { display: flex; flex-direction: column; min-width: 0; }
.tk-summary small { overflow: hidden; color: var(--dim); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.tk-summary b { font-size: 16px; font-variant-numeric: tabular-nums; }
@media (min-width: 1040px) { .tk-summary { display: none; } }

/* Similar vehicles */
.tk-similar { margin-top: 48px; }
.tk-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }

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