/* Built from src/app.css: edit that file, then run the build. */
/* ==========================================================================
   MotorClash: design tokens (light / dark) + components.
   Logical properties throughout, so Arabic (RTL) mirrors automatically.
   ========================================================================== */
:root:root:root {
	color-scheme: light;
	--tbd-font: "Readex Pro", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
	--tbd-display: "Saira", "Readex Pro", system-ui, sans-serif;
	--tbd-ink: #111317;
	--tbd-lime: #d1ff42;
	--tbd-orange: #ff693d;
	--tbd-clash: #ff693d;
	--tbd-clash-soft: rgba(255, 105, 61, 0.12);
	--tbd-bg: #f7f8f2;
	--tbd-surface: #ffffff;
	--tbd-surface-2: #eff0e9;
	--tbd-border: #e3e4dc;
	--tbd-border-strong: #cdcfc5;
	--tbd-text: #111317;
	--tbd-text-2: #42464e;
	--tbd-text-3: #656a73;
	--tbd-grid: #e6e7df;
	--tbd-accent: #d1ff42;
	--tbd-accent-text: #c23d12;
	--tbd-accent-edge: #111317;
	--tbd-on-accent: #111317;
	--tbd-accent-soft: rgba(209, 255, 66, 0.32);
	--tbd-good: #0f7b55;
	--tbd-good-soft: rgba(15, 123, 85, 0.1);
	--tbd-bad: #b8352a;
	--tbd-bad-soft: rgba(184, 53, 42, 0.08);
	--tbd-warn: #9a5f00;
	--tbd-info: #245fae;
	--tbd-context: #c4c7cc;
	--tbd-shadow: 0 1px 2px rgba(20, 22, 26, 0.04), 0 4px 16px rgba(20, 22, 26, 0.05);
	--tbd-shadow-lg: 0 10px 40px rgba(20, 22, 26, 0.16);
	--tbd-chart-grid: #ececec;
	--tbd-chart-axis: #5f6368;
	--tbd-chart-axisline: #dadce0;
	--tbd-chart-track: #f1f3f4;
	--tbd-chart-hover: rgba(26, 115, 232, 0.06);
	--tbd-dash: #1a73e8;
	--tbd-dash-text: #1967d2;
	--tbd-dash-soft: rgba(26, 115, 232, 0.05);
	--tbd-tt-bg: #ffffff;
	--tbd-tt-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 2px 6px 2px rgba(60, 64, 67, 0.15);
	--tbd-radius: 14px;
	--tbd-radius-sm: 9px;
}
:root:root:root[data-theme="dark"] {
	--tbd-clash: #ff693d;
	--tbd-clash-soft: rgba(255, 105, 61, 0.14);
	color-scheme: dark;
	--tbd-bg: #111317;
	--tbd-surface: #191c21;
	--tbd-surface-2: #21252b;
	--tbd-border: #2a2f36;
	--tbd-border-strong: #3a4048;
	--tbd-text: #f1f0ec;
	--tbd-text-2: #b9bec5;
	--tbd-text-3: #8e949c;
	--tbd-grid: #272b31;
	--tbd-accent: #d1ff42;
	--tbd-accent-text: #ff8257;
	--tbd-accent-edge: #d1ff42;
	--tbd-on-accent: #111317;
	--tbd-accent-soft: rgba(209, 255, 66, 0.12);
	--tbd-good: #45c08f;
	--tbd-good-soft: rgba(69, 192, 143, 0.12);
	--tbd-bad: #ef7d70;
	--tbd-bad-soft: rgba(239, 125, 112, 0.1);
	--tbd-warn: #f0b75a;
	--tbd-info: #74abef;
	--tbd-context: #4a5058;
	--tbd-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.25);
	--tbd-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
	--tbd-chart-grid: #2d3137;
	--tbd-chart-axis: #9aa0a6;
	--tbd-chart-axisline: #3c4043;
	--tbd-chart-track: #262a30;
	--tbd-chart-hover: rgba(138, 180, 248, 0.08);
	--tbd-dash: #8ab4f8;
	--tbd-dash-text: #8ab4f8;
	--tbd-dash-soft: rgba(138, 180, 248, 0.07);
	--tbd-tt-bg: #2a2e34;
	--tbd-tt-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.4);
}
/* No-JS fallback follows the OS setting. */
@media (prefers-color-scheme: dark) {
	:root:root:root:not([data-theme]) {
		color-scheme: dark;
		--tbd-clash: #ff693d; --tbd-clash-soft: rgba(255, 105, 61, 0.14); --tbd-accent: #d1ff42; --tbd-accent-soft: rgba(209, 255, 66, 0.12); --tbd-accent-edge: #d1ff42; --tbd-on-accent: #111317;
		--tbd-bg: #111317; --tbd-surface: #191c21; --tbd-surface-2: #21252b; --tbd-border: #2a2f36; --tbd-border-strong: #3a4048;
		--tbd-text: #f1f0ec; --tbd-text-2: #b9bec5; --tbd-text-3: #8e949c; --tbd-grid: #272b31; --tbd-accent-text: #ff8257;
		--tbd-good: #45c08f; --tbd-bad: #ef7d70; --tbd-warn: #f0b75a; --tbd-info: #74abef; --tbd-context: #4a5058;
		--tbd-chart-grid: #2d3137; --tbd-chart-axis: #9aa0a6; --tbd-chart-axisline: #3c4043; --tbd-chart-track: #262a30; --tbd-chart-hover: rgba(138, 180, 248, 0.08);
		--tbd-dash: #8ab4f8; --tbd-dash-text: #8ab4f8; --tbd-dash-soft: rgba(138, 180, 248, 0.07); --tbd-tt-bg: #2a2e34; --tbd-tt-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.4);
	}
}

/* Pages we render ourselves get the themed background. */
:root:root body.tbd-site { background: var(--tbd-bg); color: var(--tbd-text); }

/* ---------- base ---------- */
/* Theme-proof reset: themes style bare buttons (borders, colours, 1rem text, hover fills).
   Zero-specificity :where() keeps this below every component rule that follows. */
:root:root .tbd :where(button, [type="button"], [type="submit"], [type="reset"]), :root:root :where(button, [type="button"], [type="submit"])[class*="tbd-"] {
	background: transparent; border: 0; border-radius: 0; box-shadow: none; color: inherit;
	font: inherit; font-size: inherit; font-weight: inherit; letter-spacing: inherit; line-height: inherit;
	text-transform: none; text-decoration: none; text-align: inherit; white-space: normal;
	padding: 0; margin: 0; min-height: 0; width: auto; outline-offset: 2px;
	transition: background-color .15s, border-color .15s, color .15s;
}
:root:root .tbd :where(button, [type="button"], [type="submit"]):where(:hover, :focus) { background-color: transparent; color: inherit; }
:root:root .tbd { font-family: var(--tbd-font); color: var(--tbd-text); line-height: 1.6; font-size: 15.5px; font-feature-settings: "tnum" 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
:root:root .tbd *, :root:root .tbd *::before, :root:root .tbd *::after { box-sizing: border-box; }
:root:root .tbd h1, :root:root .tbd h2, :root:root .tbd h3, :root:root .tbd h4 { color: var(--tbd-text); font-family: var(--tbd-display); line-height: 1.25; letter-spacing: -0.01em; text-transform: none; margin: 0 0 .5em; }
:root:root .tbd h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 700; }
:root:root .tbd h2 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 650; }
:root:root .tbd h3 { font-size: 17px; font-weight: 600; }
:root:root .tbd h4 { font-size: 14px; font-weight: 600; }
:root:root .tbd p { margin: 0 0 1em; }
:root:root .tbd a { color: inherit; text-decoration: none; }
:root:root .tbd a:hover { color: var(--tbd-accent-text); }
:root:root .tbd p a, :root:root .tbd li a, :root:root .tbd td a { text-decoration: underline; text-decoration-color: var(--tbd-border-strong); text-underline-offset: 3px; }
:root:root .tbd ul, :root:root .tbd ol { margin: 0; padding: 0; list-style: none; }
:root:root .tbd img { max-width: 100%; height: auto; display: block; }
:root:root .tbd button { font-family: inherit; text-transform: none; letter-spacing: normal; box-shadow: none; min-height: 0; text-shadow: none; }
:root:root .tbd :focus-visible { outline: 2px solid var(--tbd-accent-edge); outline-offset: 2px; }
:root:root .tbd button:focus:not(:focus-visible), :root:root .tbd a:focus:not(:focus-visible) { outline: none; }
:root:root .tbd-deck-tabs button, :root:root .tbd-seg button, :root:root .tbd-toggle, :root:root .tbd-chip-btn { box-shadow: none; }
:root:root .tbd .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
:root:root .tbd-muted { color: var(--tbd-text-3); }
:root:root .tbd-small { font-size: 12.5px; }
:root:root .tbd-good { color: var(--tbd-good); }
:root:root .tbd-bad { color: var(--tbd-bad); }
:root:root .tbd-warn { color: var(--tbd-warn); }
:root:root .tbd-center { text-align: center; }
:root:root .tbd-block { display: flex; width: 100%; justify-content: center; }
:root:root .tbd-spin { animation: tbd-spin .9s linear infinite; }
@keyframes tbd-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { :root:root .tbd-spin { animation-duration: 3s; } }

:root:root .tbd-wrap { max-width: 1200px; margin: 0 auto; padding: 24px 16px 64px; }
:root:root .tbd-section { margin-top: 40px; scroll-margin-top: 90px; }
:root:root .tbd-section-head { margin-bottom: 18px; }
:root:root .tbd-grid { display: grid; gap: 16px; }
:root:root .tbd-grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
:root:root .tbd-grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
:root:root .tbd-grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
:root:root .tbd-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { :root:root .tbd-two-col { grid-template-columns: 1fr; } }

/* ---------- controls ---------- */
:root:root .tbd-input {
	background: var(--tbd-surface); color: var(--tbd-text); border: 1px solid var(--tbd-border-strong);
	border-radius: var(--tbd-radius-sm); padding: 9px 12px; font: inherit; font-size: 14px; line-height: 1.3;
	width: 100%; max-width: 100%; box-shadow: none; height: auto; margin: 0;
}
:root:root .tbd-input::placeholder { color: var(--tbd-text-3); opacity: 1; }
:root:root .tbd-input:focus { border-color: var(--tbd-accent-edge); outline: none; box-shadow: 0 0 0 3px var(--tbd-accent-soft); }
:root:root select.tbd-input { width: auto; padding-inline-end: 28px; }
:root:root .tbd label > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--tbd-text-2); margin-bottom: 4px; }
:root:root .tbd .tbd-check { display: flex; gap: 8px; align-items: flex-start; }
:root:root .tbd .tbd-check > span { display: inline; font-weight: 500; margin: 0; font-size: 13.5px; }
:root:root .tbd input[type="checkbox"] { accent-color: var(--tbd-accent); width: 16px; height: 16px; margin: 3px 0 0; }

:root:root .tbd-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer;
	background: var(--tbd-surface); color: var(--tbd-text); border: 1px solid var(--tbd-border-strong);
	border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 650; line-height: 1.2; white-space: nowrap;
	transition: background .15s, border-color .15s, transform .05s; text-decoration: none !important;
}
:root:root .tbd-btn:hover { border-color: var(--tbd-text-3); color: var(--tbd-text); }
:root:root .tbd-btn:active { transform: translateY(1px); }
:root:root .tbd-btn:disabled, :root:root .tbd-btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
:root:root .tbd-btn-primary { background: var(--tbd-accent); border-color: var(--tbd-accent); color: var(--tbd-on-accent); }
:root:root .tbd-btn-primary:hover { background: #eeb055; border-color: #eeb055; color: var(--tbd-on-accent); }
:root:root .tbd-btn-ghost { background: transparent; border-color: var(--tbd-border); }
:root:root .tbd-btn-sm { padding: 6px 12px; font-size: 13px; }
:root:root .tbd-icon-btn { background: transparent; border: 0; color: var(--tbd-text-3); cursor: pointer; padding: 3px; display: inline-flex; border-radius: 6px; }
:root:root .tbd-icon-btn:hover { color: var(--tbd-text); background: var(--tbd-surface-2); }
:root:root .tbd-link-btn { background: none; border: 0; padding: 0; color: var(--tbd-accent-text); cursor: pointer; font-size: 13px; font-weight: 600; display: inline-flex; gap: 5px; align-items: center; }
:root:root .tbd-cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }

:root:root .tbd-toggle, :root:root .tbd-chip-btn {
	display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; font-weight: 550;
	background: var(--tbd-surface); color: var(--tbd-text-2); border: 1px solid var(--tbd-border); border-radius: 999px; padding: 6px 12px; line-height: 1.2;
}
:root:root .tbd-toggle:hover, :root:root .tbd-chip-btn:hover { border-color: var(--tbd-border-strong); color: var(--tbd-text); }
:root:root .tbd-toggle.is-on { background: var(--tbd-accent-soft); border-color: var(--tbd-accent-edge); color: var(--tbd-text); }
:root:root .tbd-toggle:disabled { opacity: .45; cursor: default; }
:root:root .tbd-toggle-n { font-size: 11px; color: var(--tbd-text-3); font-weight: 600; }
:root:root .tbd-chip-btn:disabled { opacity: .5; cursor: default; }
:root:root .tbd-chip-wrap, :root:root .tbd-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
:root:root .tbd-chip-row { margin-top: 8px; }

:root:root .tbd-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--tbd-surface-2); border-radius: 999px; padding: 4px; margin-bottom: 12px; }
:root:root .tbd-seg button { background: transparent; border: 0; color: var(--tbd-text-2); padding: 6px 12px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
:root:root .tbd-seg button.is-on { background: var(--tbd-surface); color: var(--tbd-text); box-shadow: var(--tbd-shadow); }
:root:root .tbd-seg-sm { margin: 0; padding: 3px; }
:root:root .tbd-seg-sm button { padding: 4px 10px; font-size: 12px; }

:root:root .tbd-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: var(--tbd-surface-2); color: var(--tbd-text-2); border: 1px solid var(--tbd-border); }
:root:root .tbd-badge-accent { background: var(--tbd-accent-soft); color: var(--tbd-accent-text); border-color: transparent; }
:root:root .tbd-badge-good { background: var(--tbd-good-soft); color: var(--tbd-good); border-color: transparent; }
:root:root .tbd-badge-warn { background: var(--tbd-bad-soft); color: var(--tbd-bad); border-color: transparent; }
:root:root .tbd-mini-badge { font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; background: var(--tbd-accent-soft); color: var(--tbd-accent-text); }
:root:root .tbd-dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; vertical-align: middle; }
:root:root .tbd-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--tbd-surface-2); color: var(--tbd-text-2); }
:root:root .tbd-chip-accent { background: var(--tbd-accent-soft); color: var(--tbd-accent-text); }
:root:root .tbd-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }

:root:root .tbd-alert, :root:root .tbd-notice { border: 1px solid var(--tbd-border); background: var(--tbd-surface); border-radius: var(--tbd-radius-sm); padding: 10px 14px; margin-bottom: 12px; font-size: 14px; }
:root:root .tbd-alert-error, :root:root .tbd-notice-error { border-color: var(--tbd-bad); background: var(--tbd-bad-soft); }
:root:root .tbd-alert-ok, :root:root .tbd-notice-ok { border-color: var(--tbd-good); background: var(--tbd-good-soft); }
:root:root .tbd-notice-ask { border-color: var(--tbd-accent-edge); background: var(--tbd-accent-soft); }
:root:root .tbd-notice { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
:root:root .tbd-notice-body { flex: 1; display: flex; gap: 8px; align-items: flex-start; min-width: 0; }
:root:root .tbd-notice-body svg { flex-shrink: 0; margin-top: 3px; }
:root:root .tbd-notices { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
:root:root .tbd-empty { padding: 40px 20px; text-align: center; color: var(--tbd-text-2); background: var(--tbd-surface); border: 1px dashed var(--tbd-border-strong); border-radius: var(--tbd-radius); }

/* ---------- cards ---------- */
:root:root .tbd-card { background: var(--tbd-surface); border: 1px solid var(--tbd-border); border-radius: var(--tbd-radius); box-shadow: var(--tbd-shadow); overflow: hidden; display: flex; flex-direction: column; }
:root:root .tbd-card-pad { padding: 20px; display: block; }
:root:root .tbd-card-media { display: block; aspect-ratio: 16 / 10; background: var(--tbd-surface-2); color: var(--tbd-text-3); overflow: hidden; }
:root:root .tbd-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
:root:root .tbd-card:hover .tbd-card-media img { transform: scale(1.03); }
:root:root .tbd-card-media .tbd-placeholder, :root:root .tbd-ph { width: 100%; height: 100%; display: block; padding: 10% 14%; }
:root:root .tbd-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
:root:root .tbd-card-title { font-size: 17px !important; margin: 2px 0 4px !important; }
:root:root .tbd-card-price { font-weight: 700; font-size: 15px; }
:root:root .tbd-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; }
:root:root .tbd-eyebrow { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--tbd-text-3); }
:root:root .tbd-car-card.is-selected { border-color: var(--tbd-accent-edge); box-shadow: 0 0 0 2px var(--tbd-accent-soft), var(--tbd-shadow); }

/* ---------- compare app ---------- */
:root:root .tbd-app { position: relative; }
:root:root .tbd-skeleton { min-height: 280px; border-radius: var(--tbd-radius); background: linear-gradient(90deg, var(--tbd-surface) 0%, var(--tbd-surface-2) 50%, var(--tbd-surface) 100%); background-size: 200% 100%; animation: tbd-shimmer 1.4s infinite; }
@keyframes tbd-shimmer { to { background-position: -200% 0; } }
:root:root .tbd-compare-head h2 { margin: 0; }
:root:root .tbd-compare-title { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
:root:root .tbd-search { display: flex; gap: 8px; flex-wrap: wrap; }
:root:root .tbd-search-field { position: relative; flex: 1 1 280px; min-width: 0; }
:root:root .tbd-search-field > svg { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--tbd-text-3); }
:root:root .tbd-search-field .tbd-input { padding: 13px 14px; padding-inline-start: 42px; font-size: 15px; border-radius: 999px; }
:root:root .tbd-search .tbd-btn { padding: 12px 22px; }
:root:root .tbd-search.is-compact { flex-wrap: nowrap; }
:root:root .tbd-search.is-compact .tbd-search-field { flex: 1 1 160px; }
:root:root .tbd-search.is-compact .tbd-input { padding: 7px 12px; font-size: 13px; }
:root:root .tbd-search.is-compact .tbd-btn { padding: 7px 12px; font-size: 13px; }

:root:root .tbd-car-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0; }
:root:root .tbd-car-chip { display: inline-flex; align-items: center; gap: 7px; background: var(--tbd-surface); border: 1px solid var(--tbd-border); border-radius: 999px; padding: 5px 6px 5px 12px; padding-inline: 12px 6px; font-size: 13.5px; font-weight: 600; box-shadow: var(--tbd-shadow); }
:root:root .tbd-car-chip a { text-decoration: none !important; }
:root:root .tbd-car-chips .tbd-search { flex: 0 1 300px; }

:root:root .tbd-filter-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 12px 14px; background: var(--tbd-surface); border: 1px solid var(--tbd-border); border-radius: var(--tbd-radius); margin-bottom: 14px; }
:root:root .tbd-field-inline { display: inline-flex; gap: 8px; align-items: center; color: var(--tbd-text-3); }
:root:root .tbd-field-inline > span { display: inline !important; margin: 0 !important; }
:root:root .tbd-rank-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* ---- Chart deck: analytics-dashboard card (scorecards on top, one chart below) ---- */
:root:root .tbd-deck { background: var(--tbd-surface); border: 1px solid var(--tbd-border); border-radius: 10px; overflow: hidden; }
:root:root .tbd-scorecards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(158px, 1fr); overflow-x: auto; scrollbar-width: thin; border-bottom: 1px solid var(--tbd-border); }
:root:root .tbd .tbd-scorecard { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-width: 0; margin: 0; padding: 16px 18px 14px; text-align: start; background: transparent; border: 0; border-inline-end: 1px solid var(--tbd-border); border-radius: 0; color: var(--tbd-text); font: inherit; cursor: pointer; box-shadow: none; transition: background-color .15s; }
:root:root .tbd .tbd-scorecard:last-child { border-inline-end: 0; }
:root:root .tbd-scorecard::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: transparent; }
:root:root .tbd .tbd-scorecard:hover { background: var(--tbd-surface-2); color: var(--tbd-text); }
:root:root .tbd .tbd-scorecard.is-on { background: var(--tbd-dash-soft); }
:root:root .tbd-scorecard.is-on::before { background: var(--tbd-dash); }
:root:root .tbd-sc-label { display: flex; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 500; color: var(--tbd-text-2); white-space: nowrap; overflow: hidden; }
:root:root .tbd-sc-label span { overflow: hidden; text-overflow: ellipsis; }
:root:root .tbd-sc-label svg { flex-shrink: 0; opacity: .8; }
:root:root .tbd-scorecard.is-on .tbd-sc-label { color: var(--tbd-dash-text); }
:root:root .tbd-sc-value { display: flex; align-items: center; gap: 2px; min-height: 32px; font-size: 27px; line-height: 1.15; font-weight: 500; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
:root:root .tbd-sc-value bdi { overflow: hidden; text-overflow: ellipsis; }
:root:root .tbd-sc-value.is-text { font-size: 18px; font-weight: 600; letter-spacing: 0; }
:root:root .tbd-sc-value svg { flex-shrink: 0; }
:root:root .tbd-sc-value.is-good svg, :root:root .tbd-sc-sub.is-good { color: var(--tbd-good); }
:root:root .tbd-sc-value.is-bad svg, :root:root .tbd-sc-sub.is-bad { color: var(--tbd-bad); }
:root:root .tbd-sc-sub { font-size: 12px; color: var(--tbd-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root:root .tbd-deck-panel { padding: 20px 24px 18px; min-height: 280px; }
:root:root .tbd-deck-compact .tbd-deck-panel { min-height: 220px; }
:root:root .tbd-panel-head { margin: 0 0 16px; }
:root:root .tbd-panel-head h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--tbd-text); }
:root:root .tbd-panel-head p { margin: 3px 0 0; font-size: 12.5px; color: var(--tbd-text-3); }
:root:root .tbd-panel-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 16px; margin-bottom: 16px; }
:root:root .tbd-panel-top .tbd-panel-head { margin: 0; }
:root:root .tbd-chart-sub { color: var(--tbd-text-3); font-size: 12.5px; margin: 0 0 10px; }
:root:root .tbd-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 10px; padding: 0; list-style: none; font-size: 12px; color: var(--tbd-text-2); }
:root:root .tbd-legend li { display: inline-flex; gap: 6px; align-items: center; }
:root:root .tbd-chart-note { font-size: 12px; color: var(--tbd-text-3); margin: 10px 0 0; }
:root:root .tbd-chart-empty { padding: 48px 10px; text-align: center; color: var(--tbd-text-3); font-size: 14px; }
:root:root .tbd-tooltip { min-width: 170px; max-width: 280px; background: var(--tbd-tt-bg); border: 0; border-radius: 8px; padding: 10px 12px; font-size: 12.5px; color: var(--tbd-text); box-shadow: var(--tbd-tt-shadow); line-height: 1.5; }
:root:root .tbd-tt-head { font-size: 12px; color: var(--tbd-text-3); margin-bottom: 6px; }
:root:root .tbd-tt-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 1px 0; }
:root:root .tbd-tt-key { width: 10px; height: 10px; border-radius: 2px; }
:root:root .tbd-tt-name { color: var(--tbd-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root:root .tbd-tt-val { font-weight: 600; font-variant-numeric: tabular-nums; unicode-bidi: plaintext; }
:root:root .tbd-chart .recharts-wrapper, :root:root .tbd-chart svg { max-width: 100%; }
:root:root .tbd-chart .recharts-surface { overflow: visible; }

/* price ladder: report-table style */
:root:root .tbd-ladder { display: flex; flex-direction: column; }
:root:root .tbd-ladder-row { display: grid; grid-template-columns: 24px minmax(140px, 1.3fr) minmax(60px, 2fr) 168px 136px; gap: 14px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--tbd-chart-grid); }
:root:root .tbd-ladder-head { padding-block: 6px 8px; border-bottom-color: var(--tbd-border); font-size: 12px; font-weight: 500; color: var(--tbd-text-3); }
:root:root .tbd-ladder-row:not(.tbd-ladder-head):hover { background: var(--tbd-chart-hover); }
:root:root .tbd-num { text-align: end; }
:root:root .tbd-ladder-rank { font-size: 12.5px; color: var(--tbd-text-3); font-variant-numeric: tabular-nums; }
:root:root .tbd-ladder-name { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; min-width: 0; }
:root:root .tbd-ladder-name a { text-decoration: none !important; color: inherit; }
:root:root .tbd-ladder-name a:hover { color: var(--tbd-dash-text); }
:root:root .tbd-ladder-row.is-context .tbd-ladder-name { color: var(--tbd-text-3); font-weight: 500; }
:root:root .tbd-ladder-bar { height: 8px; background: var(--tbd-chart-track); border-radius: 4px; overflow: hidden; }
:root:root .tbd-ladder-bar span { display: block; height: 100%; border-radius: 4px; }
:root:root .tbd-ladder-price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
:root:root .tbd-ladder-row.is-context .tbd-ladder-price { color: var(--tbd-text-3); font-weight: 500; }
:root:root .tbd-ladder-gap { font-size: 12px; color: var(--tbd-text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
:root:root .tbd-ladder-gap svg { vertical-align: -2px; }
:root:root .tbd-deck .tbd-link-btn { color: var(--tbd-dash-text); font-weight: 500; }
@media (max-width: 640px) {
	:root:root .tbd-deck-panel { padding: 16px 14px 14px; }
	:root:root .tbd-scorecards { grid-auto-columns: minmax(148px, 46%); }
	:root:root .tbd .tbd-scorecard { padding: 12px 14px 10px; }
	:root:root .tbd-sc-value { font-size: 23px; min-height: 28px; }
	:root:root .tbd-sc-value.is-text { font-size: 16px; }
	:root:root .tbd-ladder-head { display: none; }
	:root:root .tbd-ladder-row { grid-template-columns: 20px minmax(0, 1fr) auto; gap: 6px 10px; }
	:root:root .tbd-ladder-rank { grid-row: 1 / 3; align-self: start; padding-top: 2px; }
	:root:root .tbd-ladder-bar { grid-column: 2; grid-row: 2; }
	:root:root .tbd-ladder-gap { grid-column: 3; grid-row: 2; }
}

/* SWOT */
:root:root .tbd-swot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
:root:root .tbd-swot-cell { border-radius: var(--tbd-radius-sm); padding: 14px 16px; border: 1px solid var(--tbd-border); background: var(--tbd-surface); }
:root:root .tbd-swot-cell h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
:root:root .tbd-swot-count { margin-inline-start: auto; font-size: 12px; font-weight: 600; color: var(--tbd-text-3); background: var(--tbd-surface-2); border-radius: 999px; padding: 1px 8px; }
:root:root .tbd-swot-cell h4::before { content: ""; width: 10px; height: 10px; border-radius: 3px; }
:root:root .tbd-swot-strengths h4::before { background: var(--tbd-good); }
:root:root .tbd-swot-weaknesses h4::before { background: var(--tbd-bad); }
:root:root .tbd-swot-opportunities h4::before { background: var(--tbd-info); }
:root:root .tbd-swot-threats h4::before { background: var(--tbd-warn); }
:root:root .tbd-swot-cell li { position: relative; padding-inline-start: 14px; margin-bottom: 5px; font-size: 13.5px; color: var(--tbd-text-2); }
:root:root .tbd-swot-cell li::before { content: "•"; position: absolute; inset-inline-start: 0; color: var(--tbd-text-3); }
@media (max-width: 600px) { :root:root .tbd-swot { grid-template-columns: 1fr; } }

/* suggestions */
:root:root .tbd-suggest { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin: -4px 0 16px; }
:root:root .tbd-suggest-label { display: inline-flex; gap: 6px; align-items: center; flex-shrink: 0; font-size: 12.5px; font-weight: 600; color: var(--tbd-text-3); }
:root:root .tbd-suggest-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding: 2px 2px 6px; min-width: 0; flex: 1 1 400px; scroll-snap-type: x proximity; }
:root:root .tbd-suggest-card { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; max-width: 280px; background: var(--tbd-surface); border: 1px solid var(--tbd-border); border-radius: 12px; padding: 6px; padding-inline-end: 6px; scroll-snap-align: start; transition: border-color .15s; }
:root:root .tbd-suggest-card:hover { border-color: var(--tbd-border-strong); }
:root:root .tbd-suggest-thumb { flex-shrink: 0; width: 46px; height: 34px; border-radius: 7px; overflow: hidden; background: var(--tbd-surface-2); display: flex; align-items: center; justify-content: center; color: var(--tbd-text-3); }
:root:root .tbd-suggest-thumb img { width: 100%; height: 100%; object-fit: cover; }
:root:root .tbd-suggest-text { display: flex; flex-direction: column; min-width: 0; }
:root:root .tbd-suggest-name { font-size: 13.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root:root .tbd-suggest-name a { text-decoration: none !important; color: inherit; }
:root:root .tbd-suggest-why { font-size: 11.5px; color: var(--tbd-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
:root:root .tbd-suggest-add { flex-shrink: 0; display: inline-flex !important; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50% !important; background: var(--tbd-accent-soft) !important; color: var(--tbd-accent-text) !important; cursor: pointer; }
:root:root .tbd-suggest-add:hover:not(:disabled) { background: var(--tbd-accent) !important; color: var(--tbd-on-accent) !important; }
:root:root .tbd-suggest-add:disabled { opacity: .45; cursor: not-allowed; }

/* instant search dropdown */
:root:root .tbd-ac { position: absolute; z-index: 60; inset-inline: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--tbd-tt-bg); border: 1px solid var(--tbd-border); border-radius: 12px; box-shadow: var(--tbd-shadow-lg); max-height: min(420px, 60vh); overflow-y: auto; min-width: 280px; }
:root:root .tbd-ac-item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
:root:root .tbd-ac-item.is-active { background: var(--tbd-surface-2); }
:root:root .tbd-ac-item.is-added { cursor: default; opacity: .6; }
:root:root .tbd-ac-thumb { flex-shrink: 0; width: 44px; height: 32px; border-radius: 6px; overflow: hidden; background: var(--tbd-surface-2); display: flex; align-items: center; justify-content: center; color: var(--tbd-text-3); }
:root:root .tbd-ac-thumb img { width: 100%; height: 100%; object-fit: cover; }
:root:root .tbd-ac-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
:root:root .tbd-ac-name { font-size: 14px; font-weight: 500; color: var(--tbd-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root:root .tbd-ac-name mark { background: none; color: inherit; font-weight: 700; padding: 0; }
:root:root .tbd-ac-meta { font-size: 12px; color: var(--tbd-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root:root .tbd-ac-side { flex-shrink: 0; display: inline-flex; gap: 4px; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--tbd-text-2); font-variant-numeric: tabular-nums; }
:root:root .tbd-ac-ai .tbd-ac-thumb { background: var(--tbd-accent-soft); color: var(--tbd-accent-text); }
:root:root .tbd-ac-ai { border-top: 1px solid var(--tbd-border); margin-top: 4px; padding-top: 9px; border-radius: 0 0 8px 8px; }
:root:root .tbd-ac-empty { display: flex; gap: 6px; align-items: center; padding: 10px; font-size: 13px; color: var(--tbd-text-3); }
:root:root .tbd-search.is-compact .tbd-ac { min-width: 320px; }

/* tables */
:root:root .tbd-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--tbd-border); border-radius: var(--tbd-radius); background: var(--tbd-surface); }
:root:root .tbd-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 0; background: var(--tbd-surface); border: 0; }
:root:root .tbd-table th, :root:root .tbd-table td { border: 0; border-bottom: 1px solid var(--tbd-border); padding: 10px 14px; text-align: start; vertical-align: top; background: transparent; color: var(--tbd-text); }
:root:root .tbd-table thead th { font-size: 13px; font-weight: 700; background: var(--tbd-surface-2); }
:root:root .tbd-table tbody tr:nth-child(odd) > td, :root:root .tbd-table tbody tr:nth-child(even) > td { background: transparent; }
:root:root .tbd-table tbody th { font-weight: 550; color: var(--tbd-text-2); white-space: nowrap; }
:root:root .tbd-spec-table .tbd-sticky { position: sticky; inset-inline-start: 0; background: var(--tbd-surface); z-index: 1; min-width: 140px; }
:root:root .tbd-spec-table thead .tbd-sticky { background: var(--tbd-surface-2); }
:root:root .tbd-spec-table tr.is-hl .tbd-sticky { color: var(--tbd-accent-text); font-weight: 700; }
:root:root .tbd-group-row th { background: var(--tbd-surface) !important; font-size: 11px !important; text-transform: uppercase; letter-spacing: .07em; color: var(--tbd-text-3) !important; padding-top: 18px !important; }
:root:root .tbd-th-sub { display: block; font-size: 11px; font-weight: 500; margin-top: 2px; }
:root:root .tbd-td-sub { font-size: 11.5px; color: var(--tbd-text-3); margin-top: 3px; }
:root:root .tbd-spec { margin-top: 22px; }
:root:root .tbd-src-list li { margin-bottom: 6px; font-size: 12.5px; }
:root:root .tbd-src-list a { display: inline-flex; gap: 4px; align-items: baseline; }
:root:root .tbd-src-tag { font-size: 10.5px; font-weight: 600; color: var(--tbd-text-3); }
:root:root .tbd-src-tag.is-good { color: var(--tbd-good); }
:root:root .tbd-src-tag.is-info { color: var(--tbd-info); }
:root:root .tbd-src-tag.is-warn { color: var(--tbd-bad); }
:root:root .tbd-offer-links { display: flex; flex-direction: column; gap: 5px; }
:root:root .tbd-offer-link { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; color: var(--tbd-accent-text) !important; border: 1px solid var(--tbd-accent-edge); border-radius: 6px; padding: 3px 8px; width: fit-content; text-decoration: none !important; }
:root:root .tbd-howto { margin-top: 18px; }

/* modal & drawer */
:root:root .tbd-modal-backdrop { position: fixed; inset: 0; background: rgba(10, 11, 13, 0.55); z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; }
:root:root .tbd-modal { position: relative; background: var(--tbd-surface); color: var(--tbd-text); border-radius: var(--tbd-radius); padding: 26px 24px 22px; max-width: 460px; width: 100%; box-shadow: var(--tbd-shadow-lg); }
:root:root .tbd-modal-x { position: absolute; top: 10px; inset-inline-end: 10px; }
:root:root .tbd-drawer { position: fixed; inset: 0; z-index: 99999; background: rgba(10, 11, 13, 0.55); }
:root:root .tbd-drawer-inner { position: absolute; inset-block: 0; inset-inline-start: 0; width: min(92vw, 380px); background: var(--tbd-bg); overflow-y: auto; padding: 20px 16px; }

/* finder */
:root:root .tbd-finder-head { margin-bottom: 18px; }
:root:root .tbd-finder-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 900px) { :root:root .tbd-finder-layout { grid-template-columns: minmax(0, 1fr); } }
:root:root .tbd-finder-filters { background: var(--tbd-surface); border: 1px solid var(--tbd-border); border-radius: var(--tbd-radius); padding: 16px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
:root:root .tbd-drawer .tbd-finder-filters { position: static; border: 0; padding: 30px 0 16px; background: transparent; }
:root:root .tbd-ff-head { display: flex; justify-content: space-between; align-items: center; }
:root:root .tbd-ff-head strong { display: inline-flex; gap: 6px; align-items: center; }
:root:root .tbd-finder fieldset:not(.tbd-fs) { border: 0; padding: 0; margin: 0; min-width: 0; }
:root:root .tbd-finder fieldset:not(.tbd-fs) legend { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--tbd-text-3); margin-bottom: 8px; padding: 0; }
:root:root .tbd-range-inputs { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
:root:root .tbd-ff-nums { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
:root:root .tbd-ff-nums label > span { font-size: 11px; }
:root:root .tbd-finder-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
:root:root .tbd-tray { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 9999; max-width: 900px; margin: 0 auto; background: var(--tbd-surface); border: 1px solid var(--tbd-border-strong); border-radius: 999px; box-shadow: var(--tbd-shadow-lg); padding: 8px 8px 8px 16px; padding-inline: 16px 8px; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
:root:root .tbd-tray-cars { display: flex; gap: 6px; overflow-x: auto; min-width: 0; }
:root:root .tbd-tray .tbd-car-chip { box-shadow: none; flex-shrink: 0; }

/* ---------- car page ---------- */
:root:root .tbd-breadcrumb { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--tbd-text-3); margin-bottom: 18px; }
:root:root .tbd-breadcrumb a { text-decoration: none !important; }
:root:root .tbd-car-hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { :root:root .tbd-car-hero { grid-template-columns: 1fr; } }
:root:root .tbd-gallery-main { aspect-ratio: 16 / 10; border-radius: var(--tbd-radius); overflow: hidden; background: var(--tbd-surface-2); color: var(--tbd-text-3); }
:root:root .tbd-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
:root:root .tbd-gallery-main .tbd-placeholder { width: 100%; height: 100%; padding: 12% 16%; }
:root:root .tbd-gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
:root:root .tbd-gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; width: 86px; flex-shrink: 0; background: none; cursor: pointer; }
:root:root .tbd-gallery-thumbs button.is-active { border-color: var(--tbd-accent-edge); }
:root:root .tbd-gallery-thumbs img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
:root:root .tbd-car-head h1 { margin: 4px 0 6px; }
:root:root .tbd-trust { font-size: 13px; font-weight: 600; color: var(--tbd-warn); margin-bottom: 12px; }
:root:root .tbd-trust.is-verified { color: var(--tbd-good); }
:root:root .tbd-lead { font-size: 16px; color: var(--tbd-text-2); }
:root:root .tbd-price-box { background: var(--tbd-surface); border: 1px solid var(--tbd-border); border-radius: var(--tbd-radius); padding: 16px 18px; position: relative; margin: 16px 0; box-shadow: var(--tbd-shadow); }
:root:root .tbd-price-big { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
:root:root .tbd-country-pick { position: absolute; top: 14px; inset-inline-end: 14px; }
:root:root .tbd-key-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
:root:root .tbd-key-chips li { background: var(--tbd-surface); border: 1px solid var(--tbd-border); border-radius: var(--tbd-radius-sm); padding: 8px 12px; display: flex; flex-direction: column; font-size: 12px; }
:root:root .tbd-key-chips strong { font-size: 15px; }
:root:root .tbd-tabs-nav { position: sticky; top: 0; z-index: 5; display: flex; gap: 4px; overflow-x: auto; margin-top: 30px; padding: 8px 0; background: var(--tbd-bg); border-bottom: 1px solid var(--tbd-border); }
:root:root .tbd-tabs-nav a { flex-shrink: 0; padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 650; color: var(--tbd-text-2); text-decoration: none !important; }
:root:root .tbd-tabs-nav a:hover { background: var(--tbd-surface); color: var(--tbd-text); }
:root:root .tbd-count-pill { font-size: 11px; background: var(--tbd-accent); color: var(--tbd-on-accent); border-radius: 999px; padding: 1px 7px; margin-inline-start: 4px; }
:root:root .tbd-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
:root:root .tbd-pros li, :root:root .tbd-cons li { position: relative; padding-inline-start: 24px; margin-bottom: 8px; color: var(--tbd-text-2); }
:root:root .tbd-pros li::before { content: "+"; position: absolute; inset-inline-start: 0; width: 17px; height: 17px; border-radius: 50%; background: var(--tbd-good-soft); color: var(--tbd-good); font-weight: 700; font-size: 13px; line-height: 17px; text-align: center; }
:root:root .tbd-cons li::before { content: "–"; position: absolute; inset-inline-start: 0; width: 17px; height: 17px; border-radius: 50%; background: var(--tbd-bad-soft); color: var(--tbd-bad); font-weight: 700; font-size: 13px; line-height: 16px; text-align: center; }
@media (max-width: 520px) { :root:root .tbd-proscons { grid-template-columns: 1fr; } }
:root:root .tbd-market-table { margin-top: 16px; border: 1px solid var(--tbd-border); border-radius: var(--tbd-radius); overflow: hidden; }
:root:root .tbd-spec-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; }
:root:root .tbd-spec-group { background: var(--tbd-surface); border: 1px solid var(--tbd-border); border-radius: var(--tbd-radius); padding: 16px 18px; }
:root:root .tbd-spec-group h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--tbd-text-3); }
:root:root .tbd-spec-group dl { margin: 0; }
:root:root .tbd-spec-group dl > div { display: grid; grid-template-columns: 40% 1fr; gap: 10px; padding: 7px 0; border-top: 1px solid var(--tbd-border); font-size: 13.5px; }
:root:root .tbd-spec-group dt { color: var(--tbd-text-3); }
:root:root .tbd-spec-group dd { margin: 0; font-weight: 550; }
:root:root .tbd-docs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); margin-bottom: 26px; }
:root:root .tbd-docs a { display: flex; gap: 12px; align-items: center; background: var(--tbd-surface); border: 1px solid var(--tbd-border); border-radius: var(--tbd-radius-sm); padding: 12px 14px; text-decoration: none !important; }
:root:root .tbd-docs a > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
:root:root .tbd-doc-icon { width: 44px; height: 52px; border-radius: 6px; background: var(--tbd-accent-soft); color: var(--tbd-accent-text); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
:root:root .tbd-doc-dl { color: var(--tbd-accent-text); font-weight: 650; font-size: 13px; }
:root:root .tbd-video { aspect-ratio: 16 / 9; border-radius: var(--tbd-radius); overflow: hidden; background: #000; }
:root:root .tbd-video iframe, :root:root .tbd-video video { width: 100%; height: 100%; border: 0; display: block; }
:root:root .tbd-similar { display: flex; flex-direction: column; gap: 8px; }
:root:root .tbd-reasons { font-size: 12.5px; margin: 0; }
:root:root .tbd-vs-list { display: flex; flex-wrap: wrap; gap: 8px; }
:root:root .tbd-vs-list li a { display: inline-block; padding: 7px 14px; background: var(--tbd-surface); border: 1px solid var(--tbd-border); border-radius: 999px; font-size: 13.5px; font-weight: 600; text-decoration: none !important; }
:root:root .tbd-account .tbd-vs-list, :root:root .tbd-card .tbd-vs-list { flex-direction: column; }
:root:root .tbd-lead-box { background: var(--tbd-surface); border: 1px solid var(--tbd-border); border-radius: var(--tbd-radius); padding: 24px; }
:root:root .tbd-lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
:root:root .tbd-span-2 { grid-column: 1 / -1; }
@media (max-width: 600px) { :root:root .tbd-lead-form { grid-template-columns: 1fr; } }
:root:root .tbd-form-msg { margin-inline-start: 10px; font-size: 14px; font-weight: 600; }
:root:root .tbd-sources li { margin-bottom: 6px; font-size: 13.5px; }
:root:root .tbd-verdict { background: var(--tbd-surface); border: 1px solid var(--tbd-border); border-inline-start: 4px solid var(--tbd-accent-edge); border-radius: var(--tbd-radius); padding: 20px 24px; }
:root:root .tbd-vs-head h1 { text-align: center; }
:root:root .tbd-vs-cards { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; }
:root:root .tbd-vs-cards .tbd-car-card { width: min(100%, 300px); }
:root:root .tbd-vs-badge { font-weight: 700; font-size: 18px; color: var(--tbd-accent-text); }

/* ---------- offers hub ---------- */
:root:root .tbd-filter-bar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; background: var(--tbd-surface); border: 1px solid var(--tbd-border); border-radius: var(--tbd-radius); padding: 14px 16px; margin-bottom: 14px; }
:root:root .tbd-filter-bar label > span { font-size: 11.5px; }
:root:root .tbd-filter-bar .tbd-check { align-self: center; }
:root:root .tbd-count { margin-bottom: 12px; }
:root:root .tbd-offer-card.is-featured { border-color: var(--tbd-accent-edge); box-shadow: 0 0 0 1px var(--tbd-accent-edge), var(--tbd-shadow); }
:root:root .tbd-offer-top { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
:root:root .tbd-badge-type { background: var(--tbd-surface-2); }
:root:root .tbd-offer-value { font-size: 18px; font-weight: 700; color: var(--tbd-accent-text); margin-bottom: 4px; }
:root:root .tbd-offer-details { font-size: 13.5px; color: var(--tbd-text-2); margin-bottom: 8px !important; }
:root:root .tbd-offer-meta { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--tbd-text-2); }
:root:root .tbd-more { margin-top: 16px; text-align: center; }

/* ---------- home blocks ---------- */
:root:root .tbd-hero-search { display: flex; gap: 8px; max-width: 720px; background: var(--tbd-surface); border-radius: 999px; padding: 6px; box-shadow: var(--tbd-shadow-lg); }
:root:root .tbd-hero-search .tbd-input { border: 0; border-radius: 999px; font-size: 16px; padding: 12px 18px; background: transparent; }
:root:root .tbd-hero-search .tbd-input:focus { box-shadow: none; }
:root:root .tbd-brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; }
:root:root .tbd-brand-tile { display: flex; flex-direction: column; gap: 2px; padding: 16px; background: var(--tbd-surface); border: 1px solid var(--tbd-border); border-radius: var(--tbd-radius); text-decoration: none !important; transition: border-color .15s, transform .15s; }
:root:root .tbd-brand-tile:hover { border-color: var(--tbd-accent-edge); transform: translateY(-2px); }
:root:root .tbd-brand-name { font-weight: 600; font-size: 16px; }

/* ---------- account & pricing ---------- */
:root:root .tbd-account-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 16px; }
:root:root .tbd-account-head h2 { margin: 0; }
:root:root .tbd-account-head .tbd-btn { margin-inline-start: auto; }
:root:root .tbd-stat-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
:root:root .tbd-stat { background: var(--tbd-surface); border: 1px solid var(--tbd-border); border-radius: var(--tbd-radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
:root:root .tbd-stat strong { font-size: 24px; font-weight: 700; }
:root:root .tbd-account section, :root:root .tbd-account .tbd-grid { margin-top: 16px; }
:root:root .tbd-auth form { display: flex; flex-direction: column; gap: 12px; }
:root:root .tbd-price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; align-items: stretch; margin: 20px 0; }
:root:root .tbd-plan { position: relative; display: flex !important; flex-direction: column; gap: 6px; }
:root:root .tbd-plan .tbd-badge { align-self: flex-start; }
:root:root .tbd-plan.is-best { border-color: var(--tbd-accent-edge); }
:root:root .tbd-plan.is-pro { background: linear-gradient(160deg, var(--tbd-accent-soft), var(--tbd-surface) 60%); border-color: var(--tbd-accent-edge); }
:root:root .tbd-plan-price { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
:root:root .tbd-plan-price .tbd-muted { font-size: 14px; font-weight: 500; }
:root:root .tbd-plan .tbd-btn, :root:root .tbd-plan .tbd-cta-row { margin-top: auto; }
:root:root .tbd-ticks { margin: 8px 0 14px !important; }
:root:root .tbd-ticks li { position: relative; padding-inline-start: 22px; font-size: 13.5px; margin-bottom: 6px; color: var(--tbd-text-2); }
:root:root .tbd-ticks li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--tbd-good); font-weight: 700; }

/* ---------- theme toggle (header shortcode) ---------- */
:root:root .tbd-theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--tbd-border-strong); background: var(--tbd-surface); color: var(--tbd-text); cursor: pointer; padding: 0; }
:root:root .tbd-theme-toggle svg { width: 18px; height: 18px; }
:root:root .tbd-theme-toggle .tbd-i-moon { display: none; }
:root:root:root[data-theme="dark"] .tbd-theme-toggle .tbd-i-sun { display: none; }
:root:root:root[data-theme="dark"] .tbd-theme-toggle .tbd-i-moon { display: block; }
:root:root .tbd-lang-switch { font-weight: 700; text-decoration: none; }

/* Mixed Arabic / Latin / numbers: each value picks its own direction ("1,650 km", "≈ SAR 249,800"). */
:root:root .tbd td, :root:root .tbd dd, :root:root .tbd-key-chips strong, :root:root .tbd-price-big, :root:root .tbd-ladder-price, :root:root .tbd-card-price, :root:root .tbd-offer-value, :root:root .tbd-chip, :root:root .tbd-plan-price, :root:root .tbd-stat strong, :root:root .tbd-ladder-gap, :root:root .tbd-tooltip div { unicode-bidi: plaintext; }

/* ---------- home ---------- */
:root:root .tbd-home-hero { padding: 40px 0 24px; background: radial-gradient(900px 420px at 85% -10%, var(--tbd-accent-soft), transparent 60%); }
:root:root .tbd-home-hero h1 { font-size: clamp(32px, 5.4vw, 58px); max-width: 15ch; margin: 14px 0 12px; letter-spacing: -0.03em; }
:root:root .tbd-home-hero .tbd-lead { max-width: 60ch; }
:root:root .tbd-home-stats { display: flex; gap: 28px; margin: 22px 0 6px !important; flex-wrap: wrap; }
:root:root .tbd-home-stats li { display: flex; flex-direction: column; }
:root:root .tbd-home-stats strong { font-size: 28px; font-weight: 700; line-height: 1.1; }
:root:root .tbd-home-stats span { color: var(--tbd-text-3); font-size: 13px; }
:root:root .tbd-section-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
:root:root .tbd-home .tbd-section > .tbd .tbd-grid { margin-top: 4px; }

/* ---------- finder: documents on car cards ---------- */
:root:root .tbd-card-docs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
:root:root .tbd-doc-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--tbd-border); background: var(--tbd-surface-2); color: var(--tbd-text-2); font-size: 12px; font-weight: 500; text-decoration: none !important; line-height: 1.3; transition: border-color .15s, color .15s; }
:root:root .tbd-doc-chip:hover { border-color: var(--tbd-dash); color: var(--tbd-dash-text); }
:root:root .tbd-doc-chip svg { flex-shrink: 0; }
:root:root .tbd-doc-more { background: transparent; }

/* ---------- finder: latest offers strip ---------- */
:root:root .tbd-ostrip { margin: 0 0 18px; padding: 14px 14px 10px; background: var(--tbd-surface); border: 1px solid var(--tbd-border); border-radius: var(--tbd-radius); }
:root:root .tbd-ostrip-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
:root:root .tbd-ostrip-head h3 { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 15px; }
:root:root .tbd-ostrip-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 6px; scroll-snap-type: x proximity; }
:root:root .tbd-otile { flex: 0 0 248px; display: flex; flex-direction: column; border: 1px solid var(--tbd-border); border-radius: 12px; overflow: hidden; background: var(--tbd-surface); scroll-snap-align: start; }
:root:root .tbd-otile.is-featured { border-color: var(--tbd-accent-edge); }
:root:root .tbd-otile-media { display: flex; align-items: center; justify-content: center; height: 112px; background: var(--tbd-surface-2); color: var(--tbd-text-3); overflow: hidden; }
:root:root .tbd-otile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
:root:root a.tbd-otile-media:hover img { transform: scale(1.03); }
:root:root .tbd-otile-body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; flex: 1; }
:root:root .tbd-otile-body .tbd-eyebrow { margin: 0; }
:root:root .tbd-otile-title { margin: 0 !important; font-size: 14px !important; line-height: 1.35 !important; font-weight: 600 !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
:root:root .tbd-otile-title a { text-decoration: none !important; color: inherit; }
:root:root .tbd-otile-value { font-size: 13px; font-weight: 600; color: var(--tbd-accent-text); }
:root:root .tbd-otile-ends { font-size: 12px; color: var(--tbd-text-3); }
:root:root .tbd-otile-ends.is-soon { color: var(--tbd-bad); font-weight: 600; }
:root:root .tbd-otile-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
:root:root .tbd-mini-btn { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 7px; border: 1px solid var(--tbd-border-strong); font-size: 12px; font-weight: 500; color: var(--tbd-text); text-decoration: none !important; line-height: 1.3; }
:root:root .tbd-mini-btn:hover { border-color: var(--tbd-dash); color: var(--tbd-dash-text); }
:root:root .tbd-btn-file { font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { :root:root .tbd-otile { flex-basis: 220px; } }

/* car page: documents right under the photos */
:root:root .tbd-hero-docs { margin-top: 14px; }
:root:root .tbd .tbd-hero-docs-title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--tbd-text-3); margin: 0 0 8px; }
:root:root .tbd-hero-docs .tbd-docs { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 8px; margin: 0; }
:root:root .tbd-hero-docs .tbd-docs a { padding: 8px 10px; gap: 10px; transition: border-color .15s; }
:root:root .tbd-hero-docs .tbd-docs a:hover { border-color: var(--tbd-accent-edge); }
:root:root .tbd-hero-docs .tbd-docs strong { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root:root .tbd-hero-docs .tbd-docs .tbd-muted { font-size: 12px; }
:root:root .tbd-hero-docs .tbd-doc-icon { width: 36px; height: 42px; font-size: 10px; }
:root:root .tbd-doc-icon.has-thumb { padding: 0; overflow: hidden; background: var(--tbd-surface-2); }
:root:root .tbd-doc-icon.has-thumb img { width: 100%; height: 100%; object-fit: cover; }
:root:root .tbd-hero-docs .tbd-doc-dl { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--tbd-accent-soft); flex-shrink: 0; }

/* offer types on tiles + dealer details */
:root:root .tbd-otile-types { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0; }
:root:root .tbd-otile-types span { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--tbd-accent-soft); color: var(--tbd-accent-text); }
:root:root .tbd-otile-dealer { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--tbd-border); }
:root:root .tbd-otile-dname { flex: 1; min-width: 0; font-size: 12px; color: var(--tbd-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root:root .tbd-otile-dealer a { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--tbd-border-strong); color: var(--tbd-text-2); flex-shrink: 0; }
:root:root .tbd-otile-dealer a:hover { border-color: var(--tbd-dash); color: var(--tbd-dash-text); }
:root:root .tbd-offer-meta .tbd-dealer { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
:root:root .tbd-dealer-logo { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; background: #fff; border: 1px solid var(--tbd-border); flex-shrink: 0; }
:root:root .tbd-dealer-text { display: flex; flex-direction: column; min-width: 0; }
:root:root .tbd-dealer-text strong { font-size: 13.5px; font-weight: 600; color: var(--tbd-text); }
:root:root .tbd-dealer-text .tbd-muted { font-size: 12px; }
:root:root .tbd-dealer-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
:root:root .tbd-dealer-branches { font-size: 12.5px; margin-top: 4px; }
:root:root .tbd-dealer-branches summary { cursor: pointer; color: var(--tbd-text-2); font-weight: 500; }
:root:root .tbd-dealer-branches ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
:root:root .tbd-dealer-branches li { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--tbd-text-2); }
:root:root .tbd-dealer-branches a { color: var(--tbd-dash-text); text-decoration: none; }

/* dealer submission form */
:root:root .tbd-submit { max-width: 860px; }
:root:root .tbd-sub-form h3 { margin: 6px 0 0 !important; font-size: 15px !important; }
:root:root .tbd-sub-form label > span { display: block; font-size: 13px; font-weight: 500; color: var(--tbd-text-2); margin-bottom: 4px; }
:root:root .tbd-sub-form label.tbd-check > span { display: inline; margin: 0; font-size: 14px; color: var(--tbd-text); }
:root:root .tbd-sub-form small { display: block; margin-top: 4px; font-size: 12px; }
:root:root .tbd-sub-types { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
:root:root .tbd-sub-types legend { font-size: 13px; font-weight: 500; color: var(--tbd-text-2); margin-bottom: 6px; padding: 0; }
:root:root .tbd-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* rivals */
:root:root .tbd-rv-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 16px; padding: 14px 16px; background: var(--tbd-surface); border: 1px solid var(--tbd-accent-edge); border-radius: var(--tbd-radius); box-shadow: 0 0 0 3px var(--tbd-accent-soft); }
:root:root .tbd-rv-cta-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--tbd-accent-soft); color: var(--tbd-accent-text); flex-shrink: 0; }
:root:root .tbd-rv-cta-text { display: flex; flex-direction: column; flex: 1 1 260px; min-width: 0; }
:root:root .tbd-rv-cta-text strong { font-size: 15px; font-weight: 600; }
:root:root .tbd-rv-cta-text span { font-size: 13px; color: var(--tbd-text-3); }
:root:root .tbd-rv-badge { background: var(--tbd-dash-soft) !important; color: var(--tbd-dash-text) !important; }
:root:root .tbd-rv-why { margin: -6px 0 16px; padding: 10px 14px; background: var(--tbd-surface); border: 1px solid var(--tbd-border); border-radius: var(--tbd-radius-sm); font-size: 13px; }
:root:root .tbd-rv-why summary { cursor: pointer; font-weight: 600; color: var(--tbd-text-2); }
:root:root .tbd-rv-why ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
:root:root .tbd-rv-why li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; line-height: 1.45; }
:root:root .tbd-rv-why li .tbd-dot { align-self: center; }
:root:root .tbd-ac-rivals .tbd-ac-thumb { background: var(--tbd-dash-soft); color: var(--tbd-dash-text); }
:root:root .tbd-ac-rivals { border-bottom: 1px solid var(--tbd-border); margin-bottom: 4px; border-radius: 8px 8px 0 0; }
:root:root .tbd-notice-info { border-color: var(--tbd-border-strong); }

/* header & footer pieces (Elementor Shortcode widgets) */
:root:root .tbd-menu ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
:root:root .tbd-menu.is-column ul { flex-direction: column; gap: 2px; }
:root:root .tbd.tbd-menu li a { display: block; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--tbd-text-2); text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s; }
:root:root .tbd.tbd-menu.is-column li a { padding: 4px 0; border-radius: 0; font-weight: 500; }
:root:root .tbd.tbd-menu li a:hover, :root:root .tbd.tbd-menu .is-current > a { background: var(--tbd-surface); color: var(--tbd-text); }
:root:root .tbd.tbd-menu.is-column li a:hover, :root:root .tbd.tbd-menu.is-column .is-current > a { background: none; color: var(--tbd-text); }
:root:root .tbd-header-tools { display: inline-flex; align-items: center; gap: 14px; }
:root:root .tbd-account-link, :root:root .tbd-header-tools .tbd-lang-switch { font-weight: 600; font-size: 14px; color: var(--tbd-text-2); text-decoration: none; }
:root:root .tbd-account-link:hover, :root:root .tbd-header-tools .tbd-lang-switch:hover { color: var(--tbd-text); }
/* MotorClash wordmark: the clash mark + MOTOR CLASH */
:root:root .tbd-wordmark { display: inline-flex; align-items: center; gap: 9px; font: italic 800 21px/1 var(--tbd-display); letter-spacing: 0.01em; text-transform: uppercase; text-decoration: none; color: var(--tbd-text); direction: ltr; }
:root:root .tbd-wordmark-mark { display: inline-flex; width: 34px; height: 34px; flex-shrink: 0; }
:root:root .tbd-wordmark-mark svg { width: 100%; height: 100%; display: block; }
:root:root .tbd-wm-b { color: var(--tbd-clash); margin-inline-start: 1px; }
:root:root .tbd-logo { color: var(--tbd-text); line-height: 0; }
:root:root .tbd-logo .tbd-logo-svg { height: 30px; width: auto; display: block; }
:root:root .tbd-logo .mc-c { fill: currentColor; }
:root:root:root[data-theme="dark"] .tbd-logo .mc-c, :root:root .tbd-site-footer .tbd-logo .mc-c, :root:root .tbd-on-dark .tbd-logo .mc-c { fill: var(--tbd-lime); }
:root:root .tbd-site-footer .tbd-logo, :root:root .tbd-on-dark .tbd-logo { color: #f7f8f2; }
@media (prefers-color-scheme: dark) { :root:root:root:not([data-theme]) .tbd-logo .mc-c { fill: var(--tbd-lime); } }
/* Elementor header/footer templates follow light/dark mode too */
:root:root:root[data-theme="dark"] .elementor-location-header, :root:root:root[data-theme="dark"] .elementor-location-footer { color: var(--tbd-text); }

/* rivals picker */
:root:root .tbd-rv-pick { margin: 0 0 18px; padding: 16px; background: var(--tbd-surface); border: 1px solid var(--tbd-accent-edge); border-radius: var(--tbd-radius); box-shadow: 0 0 0 3px var(--tbd-accent-soft); }
:root:root .tbd-rv-pick-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
:root:root .tbd-rv-pick-head h3 { margin: 0; font-size: 16px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
:root:root .tbd-rv-pick-head p { margin: 2px 0 0; font-size: 13px; }
:root:root .tbd-rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
:root:root .tbd .tbd-rv-opt { position: relative; display: flex; gap: 10px; align-items: flex-start; text-align: start; padding: 12px; background: var(--tbd-bg); border: 1px solid var(--tbd-border); border-radius: var(--tbd-radius-sm); cursor: pointer; color: var(--tbd-text); font: inherit; transition: border-color .15s, box-shadow .15s; }
:root:root .tbd .tbd-rv-opt:hover:not(:disabled) { border-color: var(--tbd-border-strong); }
:root:root .tbd .tbd-rv-opt.is-on { border-color: var(--tbd-accent-edge); box-shadow: 0 0 0 1px var(--tbd-accent-edge); }
:root:root .tbd .tbd-rv-opt:disabled { opacity: .5; cursor: not-allowed; }
:root:root .tbd .tbd-rv-opt:focus-visible { outline: 2px solid var(--tbd-accent-edge); outline-offset: 2px; }
:root:root .tbd-rv-check { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; border-radius: 6px; border: 1.5px solid var(--tbd-border-strong); display: inline-flex; align-items: center; justify-content: center; }
:root:root .tbd-rv-opt.is-on .tbd-rv-check { background: var(--tbd-accent); border-color: var(--tbd-accent-edge); color: var(--tbd-on-accent, #1a1206); }
:root:root .tbd-rv-thumb { flex-shrink: 0; width: 52px; height: 38px; border-radius: 8px; background: var(--tbd-dash-soft); color: var(--tbd-dash-text); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
:root:root .tbd-rv-thumb img { width: 100%; height: 100%; object-fit: cover; }
:root:root .tbd-rv-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
:root:root .tbd-rv-name { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
:root:root .tbd-rv-tag { align-self: flex-start; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--tbd-good-soft); color: var(--tbd-good); }
:root:root .tbd-rv-tag.is-new { background: var(--tbd-dash-soft); color: var(--tbd-dash-text); }
:root:root .tbd-rv-facts { font-size: 12.5px; color: var(--tbd-text-2); }
:root:root .tbd-rv-note { font-size: 12.5px; color: var(--tbd-text-3); line-height: 1.4; }
:root:root .tbd-rv-pick-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
:root:root .tbd-rv-pick-actions { display: inline-flex; gap: 8px; margin-inline-start: auto; }
:root:root .tbd-rv-change { margin-top: 10px; }
@media (max-width: 560px) { :root:root .tbd-rv-grid { grid-template-columns: 1fr; } :root:root .tbd-rv-pick-actions { width: 100%; } :root:root .tbd-rv-pick-actions .tbd-btn { flex: 1; justify-content: center; } }
:root:root .tbd-rv-facts { display: flex; flex-wrap: wrap; column-gap: 5px; }
:root:root .tbd-rv-facts bdi { white-space: nowrap; }
:root:root .tbd-rv-facts bdi:not(:last-child)::after { content: " ·"; }
:root:root .tbd-admin-note { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--tbd-surface-2); font-size: 12px; color: var(--tbd-text-2); }

/* ---- spec table: main car framed, column lines, frozen header + columns, best in row ---- */
:root:root .tbd-spec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
:root:root .tbd-best-key { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--tbd-text-3); }
:root:root .tbd-spec-scroll { max-height: min(78vh, 920px); overflow: auto; overscroll-behavior: contain; }
:root:root .tbd-spec-table { --lab: 168px; --col: 210px; border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; }
:root:root .tbd-spec-table th, :root:root .tbd-spec-table td { border-inline-end: 1px solid var(--tbd-border); }
:root:root .tbd-spec-table tr > :last-child { border-inline-end: 0; }
:root:root .tbd-spec-table thead th { position: sticky; top: 0; z-index: 3; vertical-align: bottom; border-bottom: 1px solid var(--tbd-border-strong); width: var(--col); min-width: var(--col); max-width: 320px; }
:root:root .tbd-spec-table .tbd-sticky { position: sticky; inset-inline-start: 0; z-index: 2; width: var(--lab); min-width: var(--lab); max-width: var(--lab); white-space: normal; border-inline-end: 1px solid var(--tbd-border-strong); }
:root:root .tbd-spec-table thead .tbd-sticky { z-index: 5; }
:root:root .tbd-spec-table .is-main { position: sticky; inset-inline-start: var(--lab); z-index: 2; background: color-mix(in srgb, var(--tbd-accent) 8%, var(--tbd-surface)) !important; border-inline-start: 2px solid var(--tbd-accent-edge); border-inline-end: 2px solid var(--tbd-accent-edge); }
:root:root .tbd-spec-table thead .is-main { z-index: 4; background: color-mix(in srgb, var(--tbd-accent) 16%, var(--tbd-surface-2)) !important; border-top: 2px solid var(--tbd-accent-edge); }
:root:root .tbd-spec-table tbody tr:last-child .is-main { border-bottom: 2px solid var(--tbd-accent-edge); }
:root:root .tbd-spec-table td.is-main { font-weight: 550; }
:root:root .tbd-spec-scroll.is-scrolled-y thead th { box-shadow: 0 6px 10px -6px rgba(20, 22, 26, .28); }
:root:root .tbd-spec-table .tbd-group-row td { background: var(--tbd-surface); padding-top: 18px; }
:root:root .tbd-spec-table tr.is-hl .tbd-sticky { color: var(--tbd-accent-text); font-weight: 700; }
:root:root .tbd-spec-car { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; font-weight: 700; }
:root:root .tbd-spec-name { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; line-height: 1.3; }
:root:root .tbd-spec-thumb { display: flex; align-items: center; justify-content: center; width: 100%; height: 64px; border-radius: 9px; overflow: hidden; background: var(--tbd-surface); color: var(--tbd-text-3); }
:root:root .tbd-spec-thumb img { width: 100%; height: 100%; object-fit: cover; }
:root:root .tbd-main-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; background: var(--tbd-accent); color: var(--tbd-on-accent, #1a1206); font-size: 11.5px; font-weight: 700; }
:root:root .tbd .tbd-make-main { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--tbd-border-strong); background: var(--tbd-surface); color: var(--tbd-text-3); font: 600 11.5px/1.5 var(--tbd-font); cursor: pointer; }
:root:root .tbd .tbd-make-main:hover { color: var(--tbd-text); border-color: var(--tbd-accent-edge); }
:root:root .tbd-make-main-sp { height: 21px; }
:root:root .tbd-tally { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--tbd-good); white-space: nowrap; }
:root:root .tbd-tally.is-lead { padding: 2px 9px; border-radius: 999px; background: var(--tbd-good-soft); }
:root:root .tbd-spec-table td.is-best { background: color-mix(in srgb, var(--tbd-good) 11%, var(--tbd-surface)) !important; }
:root:root .tbd-spec-table td.is-best.is-main { background: color-mix(in srgb, var(--tbd-good) 13%, color-mix(in srgb, var(--tbd-accent) 6%, var(--tbd-surface))) !important; }
:root:root .tbd-spec-table td.is-best .tbd-cell-v { color: var(--tbd-good); font-weight: 650; }
:root:root .tbd-best-tag { display: inline-flex; align-items: center; gap: 3px; margin-inline-start: 6px; padding: 1px 7px 1px 5px; border-radius: 999px; background: var(--tbd-good); color: #fff; font-size: 10.5px; font-weight: 650; vertical-align: 1px; white-space: nowrap; }
:root:root:root[data-theme="dark"] .tbd-best-tag { color: #0d1a14; }
@media (max-width: 640px) {
  :root:root .tbd-spec-table { --lab: 104px; --col: 138px; }
  :root:root .tbd-spec-table th, :root:root .tbd-spec-table td { padding: 9px 10px; font-size: 12.5px; }
  :root:root .tbd-spec-thumb { display: none; }
  :root:root .tbd-spec-scroll { max-height: 72vh; }
}
:root:root .tbd-table.tbd-spec-table tbody tr:nth-child(n) > td, :root:root .tbd-table.tbd-spec-table tbody tr:nth-child(n) > th { background: var(--tbd-surface); }
:root:root .tbd-table.tbd-spec-table thead tr > th { background: var(--tbd-surface-2); }
:root:root .tbd-cell-v { unicode-bidi: isolate; }

/* ---- MotorClash home hero: the dark "arena" band, the same in light and dark mode ---- */
:root:root .tbd-home-hero { position: relative; overflow: hidden; padding: 56px 0 40px; background: var(--tbd-ink); color: #e8e9ec; isolation: isolate; }
:root:root .tbd-hero-stripes { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(115deg, transparent 0 58%, rgba(255, 194, 26, .16) 58% 61%, transparent 61% 64%, rgba(255, 70, 85, .14) 64% 66%, transparent 66%),
  radial-gradient(700px 360px at 85% 0%, rgba(255, 194, 26, .12), transparent 70%),
  radial-gradient(600px 300px at 10% 110%, rgba(255, 70, 85, .10), transparent 70%); }
:is(:root:root[dir="rtl"], :root:root [dir="rtl"]) .tbd-hero-stripes { transform: scaleX(-1); }
:root:root .tbd-home-hero h1 { color: #fff !important; font: italic 800 clamp(36px, 6vw, 68px)/1.02 var(--tbd-display) !important; text-transform: uppercase; letter-spacing: -0.01em !important; max-width: 14ch; margin: 16px 0 14px !important; }
:is(:root:root[dir="rtl"], :root:root [dir="rtl"]) .tbd-home-hero h1 { font-style: normal !important; text-transform: none; line-height: 1.25 !important; }
:root:root .tbd-home-hero .tbd-lead { color: #c3c7cd; max-width: 60ch; }
:root:root .tbd-hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: #e8e9ec; padding: 5px 14px 5px 5px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
:is(:root:root[dir="rtl"], :root:root [dir="rtl"]) .tbd-hero-kicker { padding: 5px 5px 5px 14px; }
:root:root .tbd-hero-vs { font: italic 800 12px/1 var(--tbd-display); color: #111214; background: var(--tbd-accent); border-radius: 999px; padding: 5px 9px; letter-spacing: .04em; }
:root:root .tbd-hero-yalla { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; color: #c3c7cd; font-size: 14.5px; }
:root:root .tbd .tbd-btn-clash { background: var(--tbd-clash); border-color: var(--tbd-clash); color: #fff; font-weight: 700; }
:root:root .tbd .tbd-btn-clash:hover { filter: brightness(1.08); color: #fff; }
:root:root .tbd-home-hero .tbd-home-stats strong { color: #fff; font-family: var(--tbd-display); font-style: italic; }
:root:root .tbd-home-hero .tbd-home-stats span { color: #9aa0a8; }

/* ---- ads ---- */
:root:root .tbd-ad-slot:empty { display: none; }
:root:root .tbd-home > .tbd-ad-slot { max-width: 1200px; margin: 22px auto 0; padding: 0 16px; }
:root:root .tbd-ad { position: relative; margin: 0; border-radius: var(--tbd-radius); overflow: hidden; background: var(--tbd-surface); border: 1px solid var(--tbd-border); }
:root:root .tbd-ad a, :root:root .tbd-ad picture { display: block; }
:root:root .tbd-ad img { display: block; width: 100%; height: auto; }
:root:root .tbd-ad-banner img { max-height: 220px; object-fit: cover; }
:root:root .tbd-ad-card { height: 100%; display: flex; align-items: center; }
:root:root .tbd-ad-card img { aspect-ratio: 3 / 2; object-fit: cover; }
:root:root .tbd-ad-tag { position: absolute; top: 8px; inset-inline-end: 8px; font-size: 10.5px; font-weight: 600; letter-spacing: .03em; padding: 2px 8px; border-radius: 999px; background: rgba(13, 15, 18, .62); color: #fff; backdrop-filter: blur(4px); pointer-events: none; }
:root:root .tbd-ad-rotator { position: relative; }
:root:root .tbd-ad-rotator .is-hidden { display: none; }
:root:root .tbd-ad-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
:root:root .tbd .tbd-ad-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 1px rgba(0, 0, 0, .2); cursor: pointer; }
:root:root .tbd .tbd-ad-dots button[aria-current] { background: #fff; width: 18px; border-radius: 4px; }
:root:root .tbd-grid:has(> .tbd-ad-slot.is-filled) > .tbd-ad-yield { display: none; }
:root:root .tbd-ad-google { min-height: 90px; padding: 6px; }
:root:root .tbd-compare-ad { margin: 22px 0 0; }
@media (max-width: 640px) { :root:root .tbd-ad-banner img { max-height: none; } }
/* popup */
:root:root .tbd-ad-pop { position: fixed; z-index: 99990; width: min(340px, calc(100vw - 32px)); bottom: 16px; inset-inline-end: 16px; box-shadow: var(--tbd-shadow-lg); border-radius: var(--tbd-radius); transform: translateY(24px); opacity: 0; transition: transform .25s ease, opacity .25s ease; }
:root:root .tbd-ad-pop.is-in { transform: none; opacity: 1; }
:root:root .tbd-ad-pop.is-modal { width: min(520px, calc(100vw - 48px)); bottom: auto; top: 50%; inset-inline-end: auto; left: 50%; transform: translate(-50%, -46%); }
:root:root .tbd-ad-pop.is-modal.is-in { transform: translate(-50%, -50%); }
:root:root .tbd-ad-pop-back { position: fixed; inset: 0; z-index: 99989; background: rgba(8, 9, 11, .55); opacity: 0; transition: opacity .25s; }
:root:root .tbd-ad-pop-back.is-in { opacity: 1; }
:root:root .tbd-ad-popcard img { aspect-ratio: auto; }
:root:root .tbd .tbd-ad-pop-close { position: absolute; z-index: 2; top: -12px; inset-inline-start: -12px; width: 30px; height: 30px; border-radius: 50%; background: var(--tbd-ink); color: #fff; font-size: 18px; line-height: 30px; text-align: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); cursor: pointer; }
@media (max-width: 767px) { :root:root .tbd-ad-pop.is-slide { inset-inline: 12px; width: auto; bottom: 12px; } }
@media (prefers-reduced-motion: reduce) { :root:root .tbd-ad-pop, :root:root .tbd-ad-pop-back { transition: none; } }

/* ---- Yalla Clash (advisor) ---- */
:root:root .tbd-advisor-root { max-width: 860px; margin-inline: auto; }
:root:root .tbd-yc { display: flex; flex-direction: column; gap: 16px; }
:root:root .tbd-yc-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--tbd-radius); background: var(--tbd-ink); color: #e8e9ec; position: relative; overflow: hidden; }
:root:root .tbd-yc-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 0 70%, rgba(255, 194, 26, .18) 70% 72%, transparent 72% 75%, rgba(255, 70, 85, .16) 75% 77%, transparent 77%); pointer-events: none; }
:root:root .tbd-yc-head h2 { margin: 0 !important; color: #fff !important; font: italic 800 26px/1.1 var(--tbd-display) !important; text-transform: uppercase; }
:is(:root:root[dir="rtl"], :root:root [dir="rtl"]) .tbd-yc-head h2 { font-style: normal !important; text-transform: none; }
:root:root .tbd-yc-head p { margin: 2px 0 0; color: #b9bec5; font-size: 14px; }
:root:root .tbd-yc-badge { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--tbd-clash); color: #fff; }
:root:root .tbd-yc-left { margin-inline-start: auto; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); white-space: nowrap; position: relative; z-index: 1; }
:root:root .tbd-yc-gate, :root:root .tbd-yc-start, :root:root .tbd-yc-brief, :root:root .tbd-yc-picks { background: var(--tbd-surface); border: 1px solid var(--tbd-border); border-radius: var(--tbd-radius); padding: 18px 20px; }
:root:root .tbd-yc-gate h3 { margin-top: 0; }
:root:root .tbd-yc-start { display: flex; flex-direction: column; gap: 10px; }
:root:root .tbd-yc-start label { font-weight: 650; }
:root:root .tbd .tbd-yc-start textarea { width: 100%; padding: 12px 14px; border-radius: var(--tbd-radius-sm); border: 1px solid var(--tbd-border-strong); background: var(--tbd-bg); color: var(--tbd-text); font: inherit; resize: vertical; }
:root:root .tbd .tbd-yc-start textarea:focus, :root:root .tbd .tbd-yc-type input:focus { outline: 2px solid var(--tbd-accent-edge); outline-offset: 1px; }
:root:root .tbd-yc-examples { display: flex; flex-wrap: wrap; gap: 6px; }
:root:root .tbd-yc-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
:root:root .tbd-yc-error { display: flex; align-items: center; gap: 6px; color: var(--tbd-bad); font-size: 13.5px; margin: 0; }
:root:root .tbd-yc-progress { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: var(--tbd-text-2); }
:root:root .tbd-yc-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--tbd-surface-2); overflow: hidden; }
:root:root .tbd-yc-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--tbd-accent), var(--tbd-clash)); border-radius: 3px; transition: width .3s; }
:is(:root:root[dir="rtl"], :root:root [dir="rtl"]) .tbd-yc-bar i { background: linear-gradient(270deg, var(--tbd-accent), var(--tbd-clash)); }
:root:root .tbd-yc-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
:root:root .tbd-yc-msg { display: flex; gap: 8px; align-items: flex-end; }
:root:root .tbd-yc-msg.is-user { justify-content: flex-end; }
:root:root .tbd-yc-avatar { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--tbd-ink); color: var(--tbd-accent); }
:root:root .tbd-yc-bubble { max-width: min(560px, 85%); padding: 10px 14px; border-radius: 16px; background: var(--tbd-surface); border: 1px solid var(--tbd-border); font-size: 14.5px; line-height: 1.5; }
:root:root .tbd-yc-bubble p { margin: 0; }
:root:root .tbd-yc-bubble p + p { margin-top: 6px; }
:root:root .tbd-yc-msg.is-ai .tbd-yc-bubble { border-end-start-radius: 4px; }
:root:root .tbd-yc-msg.is-user .tbd-yc-bubble { background: var(--tbd-accent); border-color: var(--tbd-accent); color: var(--tbd-on-accent); border-end-end-radius: 4px; font-weight: 500; }
:root:root .tbd-yc-q { font-weight: 650; }
:root:root .tbd-yc-bubble.is-typing { display: inline-flex; align-items: center; gap: 8px; color: var(--tbd-text-3); }
:root:root .tbd-yc-answer { display: flex; flex-direction: column; gap: 10px; padding-inline-start: 36px; }
:root:root .tbd-yc-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px; }
:root:root .tbd .tbd-yc-opt { display: flex; align-items: flex-start; gap: 8px; text-align: start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--tbd-border-strong); background: var(--tbd-surface); color: var(--tbd-text); cursor: pointer; transition: border-color .15s, background-color .15s; }
:root:root .tbd .tbd-yc-opt:hover { border-color: var(--tbd-accent-edge); }
:root:root .tbd .tbd-yc-opt.is-on { border-color: var(--tbd-accent-edge); background: var(--tbd-accent-soft); }
:root:root .tbd-yc-opt-text { display: flex; flex-direction: column; gap: 2px; }
:root:root .tbd-yc-opt-text strong { font-weight: 600; font-size: 14px; }
:root:root .tbd-yc-opt-text small { font-size: 12.5px; color: var(--tbd-text-3); line-height: 1.4; }
:root:root .tbd-yc-tick { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; border-radius: 5px; border: 1.5px solid var(--tbd-border-strong); display: inline-flex; align-items: center; justify-content: center; }
:root:root .tbd-yc-opt.is-on .tbd-yc-tick { background: var(--tbd-accent); border-color: var(--tbd-accent-edge); color: var(--tbd-on-accent); }
:root:root .tbd-yc-answer > .tbd-btn { align-self: flex-start; }
:root:root .tbd-yc-type { display: flex; gap: 8px; }
:root:root .tbd .tbd-yc-type input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--tbd-border-strong); background: var(--tbd-surface); color: var(--tbd-text); font: inherit; }
:root:root .tbd .tbd-yc-type .tbd-btn { border-radius: 999px; padding-inline: 14px; }
:root:root .tbd-yc-skip { align-self: flex-start; }
:root:root .tbd-yc-brief h3, :root:root .tbd-yc-picks h3 { margin-top: 0; }
:root:root .tbd-yc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
:root:root .tbd-yc-tags .is-must { background: var(--tbd-good-soft); color: var(--tbd-good); border-color: transparent; }
:root:root .tbd-yc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { :root:root .tbd-yc-cards { grid-template-columns: 1fr; } :root:root .tbd-yc-answer { padding-inline-start: 0; } }
:root:root .tbd-yc-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: var(--tbd-radius-sm); border: 1px solid var(--tbd-border); background: var(--tbd-bg); }
:root:root .tbd-yc-card h4 { margin: 2px 0 0 !important; font: 700 16px/1.25 var(--tbd-display) !important; }
:root:root .tbd-yc-rank { align-self: flex-start; font: italic 800 11px/1 var(--tbd-display); text-transform: uppercase; letter-spacing: .05em; color: #111214; background: var(--tbd-accent); padding: 4px 8px; border-radius: 4px; }
:root:root .tbd-yc-thumb { height: 110px; border-radius: 8px; background: var(--tbd-surface-2); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--tbd-text-3); }
:root:root .tbd-yc-thumb img { width: 100%; height: 100%; object-fit: cover; }
:root:root .tbd-yc-price { margin: 0; font-weight: 600; color: var(--tbd-text-2); font-size: 13.5px; }
:root:root .tbd-yc-state { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
:root:root .tbd-yc-state.is-ready { background: var(--tbd-good-soft); color: var(--tbd-good); }
:root:root .tbd-yc-state.is-working { background: var(--tbd-dash-soft); color: var(--tbd-dash-text); }
:root:root .tbd-yc-state.is-failed { background: var(--tbd-bad-soft); color: var(--tbd-bad); }
:root:root .tbd-yc-why, :root:root .tbd-yc-watch { display: flex; gap: 6px; margin: 0; font-size: 13px; line-height: 1.45; color: var(--tbd-text-2); }
:root:root .tbd-yc-why svg { color: var(--tbd-good); flex-shrink: 0; margin-top: 3px; }
:root:root .tbd-yc-watch svg { color: var(--tbd-warn); flex-shrink: 0; margin-top: 3px; }
:root:root .tbd-yc-clash { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 16px 0 6px; }
:root:root .tbd .tbd-btn-lg { padding: 13px 26px; font-size: 16px; }
:root:root .tbd .tbd-btn.is-disabled { opacity: .5; pointer-events: none; }

/* ---- pricing: comparisons + chats ---- */
:root:root .tbd-plan-qty { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
:root:root .tbd-plan-qty li { font-size: 14px; color: var(--tbd-text-2); }
:root:root .tbd-plan-qty strong { font: italic 800 20px/1 var(--tbd-display); color: var(--tbd-text); margin-inline-end: 4px; }
:root:root .tbd-plan-qty .is-chat strong { color: var(--tbd-clash); }
:root:root .tbd-ticks li.is-no { color: var(--tbd-text-3); text-decoration: line-through; }
:root:root .tbd-plan-price { font-family: var(--tbd-display); font-style: italic; font-weight: 800; }
:root:root .tbd-ticks li.is-no::before { content: "✕"; color: var(--tbd-text-3); }

/* ---- Weakest ---- */
:root:root .tbd-spec-table td.is-weak { background: color-mix(in srgb, var(--tbd-bad) 8%, var(--tbd-surface)) !important; }
:root:root .tbd-spec-table td.is-weak.is-main { background: color-mix(in srgb, var(--tbd-bad) 9%, color-mix(in srgb, var(--tbd-accent) 6%, var(--tbd-surface))) !important; }
:root:root .tbd-spec-table td.is-weak .tbd-cell-v { color: var(--tbd-bad); }
:root:root .tbd-weak-tag { display: inline-flex; align-items: center; gap: 3px; margin-inline-start: 6px; padding: 1px 7px 1px 5px; border-radius: 999px; background: transparent; color: var(--tbd-bad); border: 1px solid color-mix(in srgb, var(--tbd-bad) 55%, transparent); font-size: 10.5px; font-weight: 650; vertical-align: 1px; white-space: nowrap; }
:root:root .tbd-tallies { display: flex; flex-wrap: wrap; gap: 4px 10px; }
:root:root .tbd-tally.is-weak { color: var(--tbd-bad); }

/* ---- The clash board ---- */
:root:root .tbd-clash { margin: 0 0 18px; padding: 16px 18px; border-radius: var(--tbd-radius); background: var(--tbd-ink); color: #e8e9ec; position: relative; overflow: hidden; }
:root:root .tbd-clash::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 0 78%, rgba(255, 194, 26, .14) 78% 80%, transparent 80% 83%, rgba(255, 70, 85, .12) 83% 85%, transparent 85%); pointer-events: none; }
:is(:root:root[dir="rtl"], :root:root [dir="rtl"]) .tbd-clash::before { transform: scaleX(-1); }
:root:root .tbd-clash > * { position: relative; }
:root:root .tbd-clash-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
:root:root .tbd-clash h3 { margin: 0 !important; color: #fff !important; font: italic 800 20px/1 var(--tbd-display) !important; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; }
:is(:root:root[dir="rtl"], :root:root [dir="rtl"]) .tbd-clash h3 { font-style: normal !important; }
:root:root .tbd-clash-vs { font: italic 800 12px/1 var(--tbd-display); color: #111214; background: var(--tbd-accent); border-radius: 999px; padding: 5px 9px; }
:root:root .tbd-clash .tbd-btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; }
:root:root .tbd-clash .tbd-btn:hover { background: rgba(255, 255, 255, .14); }
:root:root .tbd-clash-winner { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; font-size: 16px; }
:root:root .tbd-clash-winner svg { color: var(--tbd-accent); flex-shrink: 0; }
:root:root .tbd-clash-winner strong { color: #fff; font-weight: 700; }
:root:root .tbd-clash-winner .tbd-muted { color: #a9aeb5; }
:root:root .tbd-clash-fighters { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
:root:root .tbd-clash-fighters li { display: grid; grid-template-columns: minmax(110px, 200px) 1fr 34px; align-items: center; gap: 10px; font-size: 13.5px; }
:root:root .tbd-clash-name { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #e8e9ec; }
:root:root .tbd-clash-fighters li.is-champ .tbd-clash-name { color: #fff; font-weight: 700; }
:root:root .tbd-clash-energy { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .1); overflow: hidden; }
:root:root .tbd-clash-energy i { display: block; height: 100%; border-radius: 5px; transition: width .6s ease; }
:root:root .tbd-clash-num { font: italic 800 15px/1 var(--tbd-display); color: #fff; text-align: end; }
:root:root .tbd-clash-rounds { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
:root:root .tbd-clash-rounds li { display: flex; flex-direction: column; gap: 3px; padding: 9px 11px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
:root:root .tbd-clash-rn { font: italic 800 11px/1 var(--tbd-display); text-transform: uppercase; letter-spacing: .05em; color: var(--tbd-accent); }
:root:root .tbd-clash-rk { font-size: 12.5px; color: #a9aeb5; }
:root:root .tbd-clash-rw { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 650; color: #fff; min-width: 0; }
:root:root .tbd-clash-rounds li.is-draw .tbd-clash-rw, :root:root .tbd-clash-rounds li.is-none .tbd-clash-rw { color: #a9aeb5; font-weight: 500; }
@media (max-width: 560px) { :root:root .tbd-clash-fighters li { grid-template-columns: 1fr 34px; } :root:root .tbd-clash-energy { grid-column: 1 / -1; order: 3; } }

/* ---- VS splash ---- */
:root:root .tbd-vs-splash { position: fixed; inset: 0; z-index: 99995; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 4vw; padding: 6vw; background: rgba(9, 10, 12, .92); color: #fff; cursor: pointer; animation: tbdVsFade 1.8s ease forwards; }
:root:root .tbd-vs-side { display: flex; flex-direction: column; gap: 10px; font: italic 800 clamp(22px, 4.4vw, 54px)/1.05 var(--tbd-display); text-transform: uppercase; }
:root:root .tbd-vs-side.is-a { align-items: flex-end; text-align: end; animation: tbdVsInA .45s cubic-bezier(.2, .9, .3, 1.2) both; }
:root:root .tbd-vs-side.is-b { align-items: flex-start; animation: tbdVsInB .45s cubic-bezier(.2, .9, .3, 1.2) both; }
:root:root .tbd-vs-side.is-b strong { font-size: .62em; display: inline-flex; align-items: center; gap: 10px; }
:root:root .tbd-vs-side.is-b strong:first-child { font-size: 1em; }
:root:root .tbd-vs-bar { display: inline-block; width: 46px; height: 8px; border-radius: 4px; }
:root:root .tbd-vs-mark { font: italic 900 clamp(60px, 12vw, 160px)/1 var(--tbd-display); color: var(--tbd-accent); text-shadow: 6px 6px 0 var(--tbd-clash); animation: tbdVsStamp .5s .25s cubic-bezier(.2, 1.6, .4, 1) both; }
:root:root .tbd-vs-skip { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font: 500 13px/1 var(--tbd-font); color: #8f959d; }
:is(:root:root[dir="rtl"], :root:root [dir="rtl"]) .tbd-vs-side.is-a { animation-name: tbdVsInB; } :is(:root:root[dir="rtl"], :root:root [dir="rtl"]) .tbd-vs-side.is-b { animation-name: tbdVsInA; }
@keyframes tbdVsInA { from { transform: translateX(-60vw); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tbdVsInB { from { transform: translateX(60vw); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tbdVsStamp { from { transform: scale(3) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tbdVsFade { 0%, 82% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 640px) { :root:root .tbd-vs-splash { grid-template-columns: 1fr; text-align: center; } :root:root .tbd-vs-side.is-a, :root:root .tbd-vs-side.is-b { align-items: center; text-align: center; } }

/* the wordmark on dark bands (footer, hero) */
:root:root .tbd-site-footer .tbd-wordmark, :root:root .tbd-site-footer .tbd-wm-a, :root:root .tbd-on-dark .tbd-wordmark { color: #fff; }
:root:root .tbd-site-footer .tbd-wordmark-mark svg rect { stroke: rgba(255, 255, 255, .18); stroke-width: 1.5; }
/* the home page runs edge to edge; its sections keep their own width */
:root:root .page-content > .tbd-home, :root:root .tbd-home { max-width: none !important; width: 100%; }

/* ---- Key differences (compact) ---- */
:root:root .tbd-kd { margin: 10px 0 14px; padding: 12px 14px; background: var(--tbd-surface); border: 1px solid var(--tbd-border); border-radius: var(--tbd-radius); }
:root:root .tbd-kd-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
:root:root .tbd-kd-top h4 { margin: 0 !important; font: 700 15px/1.2 var(--tbd-display) !important; }
:root:root .tbd-kd-head, :root:root .tbd-kd-line { display: grid; grid-template-columns: minmax(120px, 170px) 1fr 1fr; gap: 10px; align-items: center; }
:root:root .tbd-kd-head { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--tbd-text-3); padding-bottom: 4px; }
:root:root .tbd-kd-head .is-w { color: var(--tbd-good); display: inline-flex; gap: 4px; align-items: center; }
:root:root .tbd-kd-head .is-l { color: var(--tbd-bad); display: inline-flex; gap: 4px; align-items: center; }
:root:root .tbd-kd-line { padding: 6px 0; border-top: 1px solid var(--tbd-border); font-size: 13px; }
:root:root .tbd-kd-line.is-main { background: color-mix(in srgb, var(--tbd-accent) 9%, var(--tbd-surface)); margin: 0 -14px; padding: 6px 14px; box-shadow: inset 3px 0 0 var(--tbd-accent-edge); }
:is(:root:root[dir="rtl"], :root:root [dir="rtl"]) .tbd-kd-line.is-main { box-shadow: inset -3px 0 0 var(--tbd-accent-edge); }
:root:root .tbd-kd-name { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; min-width: 0; }
:root:root .tbd-kd-chips { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
:root:root .tbd .tbd-kd-chip { font: 600 11.5px/1.5 var(--tbd-font); padding: 1px 8px; border-radius: 999px; cursor: pointer; white-space: nowrap; unicode-bidi: plaintext; }
:root:root .tbd .tbd-kd-chip.is-w { background: var(--tbd-good-soft); color: var(--tbd-good); }
:root:root .tbd .tbd-kd-chip.is-l { background: var(--tbd-bad-soft); color: var(--tbd-bad); }
:root:root .tbd .tbd-kd-chip:hover { filter: brightness(.95); text-decoration: underline; }
:root:root .tbd .tbd-kd-more { font: 700 11.5px/1.5 var(--tbd-font); color: var(--tbd-accent-text); cursor: pointer; padding: 1px 4px; }
:root:root .tbd-kd-none { color: var(--tbd-text-3); }
:root:root .tbd-kd-gaps { margin: 8px 0 0; padding-top: 7px; border-top: 1px dashed var(--tbd-border); font-size: 12.5px; color: var(--tbd-text-2); line-height: 1.6; }
:root:root .tbd .tbd-kd-gap { font: inherit; color: inherit; cursor: pointer; padding: 0; text-align: start; unicode-bidi: plaintext; }
:root:root .tbd .tbd-kd-gap:hover { text-decoration: underline; }
@media (max-width: 640px) { :root:root .tbd-kd-head { display: none; } :root:root .tbd-kd-line { grid-template-columns: 1fr; gap: 4px; } }
/* ---- sections open / close ---- */
:root:root .tbd-spec-tools { display: flex; justify-content: flex-end; gap: 6px; margin: 0 0 8px; }
:root:root .tbd .tbd-group-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; color: inherit; cursor: pointer; padding: 2px 0; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--tbd-text-2); }
:root:root .tbd-group-n { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--tbd-text-3); }
:root:root .tbd-spec-table .tbd-group-row th, :root:root .tbd-spec-table .tbd-group-row td { padding-top: 10px !important; padding-bottom: 10px !important; }
:root:root .tbd-spec-table .tbd-group-row.is-closed th, :root:root .tbd-spec-table .tbd-group-row.is-closed td { background: var(--tbd-surface-2) !important; }
:root:root .tbd-spec-table .tbd-group-row.is-closed td.is-main { background: color-mix(in srgb, var(--tbd-accent) 12%, var(--tbd-surface-2)) !important; }
:root:root .tbd-group-tally { display: inline-flex; gap: 6px; font-size: 12px; font-weight: 700; }
:root:root .tbd-group-tally .is-w { color: var(--tbd-good); display: inline-flex; align-items: center; gap: 3px; }
:root:root .tbd-group-tally .is-l { color: var(--tbd-bad); display: inline-flex; align-items: center; gap: 3px; }
:is(:root:root[dir="rtl"], :root:root [dir="rtl"]) .tbd-flip-rtl { transform: scaleX(-1); }
:root:root .tbd-spec-table tr.is-flash > * { animation: tbdFlash 1.6s ease; }
@keyframes tbdFlash { 0%, 30% { box-shadow: inset 0 0 0 2px var(--tbd-accent-edge); } 100% { box-shadow: none; } }
/* ---- VS sound switch ---- */
:root:root .tbd .tbd-vs-sound { position: absolute; bottom: 22px; inset-inline-end: 22px; display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px/1 var(--tbd-font); color: #fff; padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); cursor: pointer; }

/* ---- Top-up ---- */
:root:root .tbd-topup { display: grid; gap: 12px; margin: 4px 0 18px; border-style: dashed; }
:root:root .tbd-topup-head h3 { margin: 0 0 2px; font: italic 800 20px/1.2 var(--tbd-display); }
:root:root .tbd-topup-head p { margin: 0; }
:root:root .tbd-topup-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
:root:root .tbd-topup-item { display: flex; align-items: center; gap: 12px; }
:root:root .tbd-topup-label { display: grid; gap: 1px; }
:root:root .tbd-stepper { display: inline-flex; align-items: center; border: 1px solid var(--tbd-border); border-radius: 999px; overflow: hidden; background: var(--tbd-surface); }
:root:root .tbd-step { appearance: none; border: 0; background: transparent; color: var(--tbd-text); width: 36px; height: 36px; font-size: 18px; font-weight: 700; cursor: pointer; }
:root:root .tbd-step:hover:not(:disabled) { background: var(--tbd-surface-2); }
:root:root .tbd-step:disabled { opacity: .35; cursor: default; }
:root:root .tbd-stepper output { min-width: 28px; text-align: center; font: italic 800 18px/1 var(--tbd-display); }
:root:root .tbd-topup-total { display: grid; margin-inline-start: auto; text-align: end; }
:root:root .tbd-topup-total strong { font: italic 800 22px/1.1 var(--tbd-display); }
@media (max-width: 640px) {
  :root:root .tbd-topup-item { width: 100%; justify-content: space-between; }
  :root:root .tbd-topup-total { margin-inline-start: 0; text-align: start; }
  :root:root .tbd-topup-row > .tbd-btn { margin-inline-start: auto; }
}
/* Plan badges sit on the card's top edge so every plan's name and price line up. */
:root:root .tbd-price-cards .tbd-plan { padding-top: 26px; }
:root:root .tbd-price-cards .tbd-plan > .tbd-badge:first-child { position: absolute; top: -11px; inset-inline-start: 18px; margin: 0; }

/* Home hero search with instant suggestions */
:root:root .tbd-hero-search.is-live { display: block; }
:root:root .tbd-hero-search.is-live .tbd-search { flex-wrap: nowrap; }
:root:root .tbd-hero-search.is-live .tbd-search-field .tbd-input { padding-inline-start: 44px; }
:root:root .tbd-hero-search.is-live .tbd-ac { text-align: start; color: var(--tbd-text); }
:root:root .tbd-hero-search .tbd-search .tbd-btn { flex-shrink: 0; }
:root:root .tbd-ac-make .tbd-ac-meta { white-space: normal; }
/* Yalla Clash shortcut on the compare page */
:root:root .tbd-yalla-cta { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin: 12px 0 4px; padding: 10px 14px; border: 1px dashed var(--tbd-border); border-radius: var(--tbd-radius); background: var(--tbd-surface); font-size: 14px; color: var(--tbd-text-2); }
:root:root .tbd-yalla-cta .tbd-btn { padding: 7px 14px; font-size: 13.5px; }

/* Market tabs (offers) */
:root:root .tbd-markets { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 14px; }
:root:root .tbd-market { appearance: none; display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--tbd-border-strong, var(--tbd-border)); background: var(--tbd-surface); color: var(--tbd-text-2); font: 600 13.5px/1.2 var(--tbd-font); text-decoration: none !important; cursor: pointer; white-space: nowrap; }
:root:root .tbd-market:hover { border-color: var(--tbd-accent-edge); color: var(--tbd-text); }
:root:root .tbd-market small { font-size: 11px; font-weight: 600; background: var(--tbd-surface-2); color: var(--tbd-text-3); border-radius: 999px; padding: 1px 7px; }
:root:root .tbd-market.is-on { background: var(--tbd-ink, #0d0f12); border-color: var(--tbd-ink, #0d0f12); color: #fff; }
:root:root .tbd-market.is-on small { background: var(--tbd-accent); color: #111; }
:root:root .tbd-flag { font-size: 15px; line-height: 1; }
@media (max-width: 640px) {
  :root:root .tbd-markets { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  :root:root .tbd-markets::-webkit-scrollbar { display: none; }
}
:root:root:root[data-theme="dark"] .tbd-market.is-on { background: var(--tbd-accent); border-color: var(--tbd-accent-edge); color: #111; }
:root:root:root[data-theme="dark"] .tbd-market.is-on small { background: rgba(0, 0, 0, .18); color: #111; }
@media (prefers-color-scheme: dark) {
  :root:root:root:not([data-theme]) .tbd-market.is-on { background: var(--tbd-accent); border-color: var(--tbd-accent-edge); color: #111; }
  :root:root:root:not([data-theme]) .tbd-market.is-on small { background: rgba(0, 0, 0, .18); color: #111; }
}

/* Mobile safety: nothing inside the apps may widen the page. */
:root:root .tbd-app, :root:root .tbd-compare, :root:root .tbd-kd, :root:root .tbd-clash { max-width: 100%; min-width: 0; }
:root:root .tbd .tbd-kd-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
:root:root .tbd-kd-gaps { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  :root:root .tbd-kd { padding: 12px; }
  :root:root .tbd-kd-line.is-main { margin: 0 -12px; padding: 8px 12px; }
  :root:root .tbd-kd-top { flex-direction: column; align-items: flex-start; gap: 2px; }
  :root:root .tbd-clash { padding: 14px; }
  :root:root .tbd-clash-top { flex-wrap: wrap; gap: 10px; }
  :root:root .tbd-clash-rounds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root:root .tbd-clash-fighters li { gap: 6px 10px; }
}
@media (max-width: 640px) {
  :root:root .tbd-spec-table { --lab: 92px; --col: 128px; }
  :root:root .tbd-spec-table th, :root:root .tbd-spec-table td { padding: 8px 8px; font-size: 12px; }
  :root:root .tbd .tbd-group-btn { letter-spacing: .02em; font-size: 11px; text-align: start; align-items: flex-start; }
  :root:root .tbd-group-n { display: none; }
  :root:root .tbd-spec-car .tbd-tally, :root:root .tbd-spec-car .tbd-make-main { font-size: 10.5px; }
  :root:root .tbd-main-tag { font-size: 10.5px; padding: 1px 8px; }
}

/* =================== 2.3: calm cards + phone layout =================== */
/* Cards: price first, one line of details */
:root:root .tbd-card-meta { font-size: 13px; color: var(--tbd-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
:root:root .tbd-card-tag { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--tbd-accent-text); }
:root:root .tbd-car-card .tbd-card-price { font: 800 18px/1.2 var(--tbd-display); color: var(--tbd-text); margin: 0 0 2px; }
:root:root .tbd-car-card .tbd-card-title { margin: 0 !important; font-size: 15px !important; }
:root:root .tbd-car-card .tbd-card-title .tbd-mini-badge { margin-inline-start: 6px; vertical-align: 2px; }

/* Offer cards */
:root:root .tbd-offer-media { position: relative; }
:root:root .tbd-media-badge, :root:root .tbd-media-foot, :root:root .tbd-media-star { position: absolute; z-index: 1; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 8px; line-height: 1.5; }
:root:root .tbd-media-badge { top: 8px; inset-inline-start: 8px; background: #fff; color: #111; }
:root:root .tbd-media-foot { bottom: 8px; inset-inline-start: 8px; background: rgba(0, 0, 0, .6); color: #fff; }
:root:root .tbd-media-foot.is-soon { background: var(--tbd-clash); }
:root:root .tbd-media-star { top: 8px; inset-inline-end: 8px; background: var(--tbd-accent); color: #111; }
:root:root .tbd-offer-card .tbd-offer-value { font: 800 18px/1.25 var(--tbd-display); color: var(--tbd-accent-text); margin: 0 0 2px; }
:root:root .tbd-offer-card .tbd-card-title { margin: 0 !important; font-size: 15px !important; }
:root:root .tbd-offer-line { margin: 2px 0 0 !important; font-size: 13px; color: var(--tbd-text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
:root:root .tbd-offer-where { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 12.5px; color: var(--tbd-text-3); }
:root:root .tbd-offer-where > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root:root .tbd-offer-acts { display: flex; gap: 8px; margin-top: 10px; position: relative; }
:root:root .tbd .tbd-act { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--tbd-border-strong); background: var(--tbd-surface); color: var(--tbd-text); font: 650 13.5px/1 var(--tbd-font); text-decoration: none !important; cursor: pointer; list-style: none; }
:root:root .tbd .tbd-act::-webkit-details-marker { display: none; }
:root:root .tbd .tbd-act-call { color: var(--tbd-accent-text); }
:root:root .tbd .tbd-act-wa { color: #1a9a4a; }
:root:root .tbd-act-more { flex: 0 0 auto; }
:root:root .tbd-act-more > summary { min-width: 46px; font-size: 18px; }
:root:root .tbd-act-more:only-child, :root:root .tbd-act-more:only-child > summary { flex: 1; width: 100%; font-size: 13.5px; }
:root:root .tbd-act-sheet { position: absolute; z-index: 20; inset-inline: 0; top: calc(100% + 6px); background: var(--tbd-surface); border: 1px solid var(--tbd-border); border-radius: 14px; box-shadow: var(--tbd-shadow-lg); padding: 12px 14px; font-size: 13px; }
:root:root .tbd-act-sheet p { margin: 6px 0 !important; color: var(--tbd-text-2); }
:root:root .tbd-sheet-btns { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }

/* Clash: one line of rounds on phones */
:root:root .tbd-clash-roundline { display: none; margin: 10px 0 0; font-size: 12px; color: #a9aeb5; line-height: 1.6; }
:root:root .tbd-clash-roundline strong { color: #fff; font-weight: 600; }

/* Specs on phones: stacked rows */
:root:root .tbd-stack { display: flex; flex-direction: column; gap: 8px; }
:root:root .tbd-stack-cars { position: sticky; top: 0; z-index: 5; display: grid; gap: 6px; padding: 8px 0; background: var(--tbd-bg); border-bottom: 1px solid var(--tbd-border); }
:root:root .tbd-stack-cars a { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--tbd-text) !important; text-decoration: none !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
:root:root .tbd-stack-cars a.is-main { color: var(--tbd-accent-text) !important; }
:root:root .tbd-stack-group { background: var(--tbd-surface); border: 1px solid var(--tbd-border); border-radius: 12px; overflow: hidden; }
:root:root .tbd .tbd-stack-gh { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px; background: none; border: 0; color: var(--tbd-text); font: 700 14px/1.2 var(--tbd-font); cursor: pointer; text-align: start; }
:root:root .tbd-stack-gl { flex: 1; }
:root:root .tbd-stack-group.is-open .tbd-stack-gh { border-bottom: 1px solid var(--tbd-border); }
:root:root .tbd-stack-row { padding: 10px 12px; border-bottom: 1px solid var(--tbd-surface-2); scroll-margin-top: 120px; }
:root:root .tbd-stack-row:last-child { border-bottom: 0; }
:root:root .tbd-stack-row.is-flash { animation: tbdFlash 1.6s ease; }
:root:root .tbd-stack-l { font-size: 11px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--tbd-text-3); margin-bottom: 6px; }
:root:root .tbd-stack-row.is-hl .tbd-stack-l { color: var(--tbd-accent-text); }
:root:root .tbd-stack-vals { display: grid; gap: 6px; }
:root:root .tbd-stack-vals.is-long { grid-template-columns: 1fr; }
:root:root .tbd-stack-v { position: relative; border-radius: 9px; padding: 7px 8px; background: var(--tbd-surface-2); font-size: 13px; font-weight: 600; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
:root:root .tbd-stack-v.is-main { background: color-mix(in srgb, var(--tbd-accent) 14%, var(--tbd-surface)); box-shadow: inset 0 0 0 1.5px var(--tbd-accent-edge); }
:root:root .tbd-stack-v.is-best { background: var(--tbd-good-soft); color: var(--tbd-good); }
:root:root .tbd-stack-v.is-best.is-main { box-shadow: inset 0 0 0 1.5px var(--tbd-good); }
:root:root .tbd-stack-v.is-weak { background: var(--tbd-bad-soft); color: var(--tbd-bad); }
:root:root .tbd-stack-ic { display: inline-block; margin-inline-start: 4px; vertical-align: -1px; }
:root:root .tbd-stack-who { display: flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--tbd-text-3); font-weight: 600; margin-bottom: 2px; }
:root:root .tbd-stack-sub { display: block; font-size: 10.5px; font-weight: 500; color: var(--tbd-text-3); margin-top: 3px; }
:root:root .tbd-mview { display: flex; width: 100%; margin: 4px 0 12px; }
:root:root .tbd-mview button { flex: 1; }

/* App tab bar (phones) */
:root:root .tbd-tabbar { display: none; }
@media (max-width: 760px) {
  :root:root body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  :root:root .tbd-tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 9990; left: 0; right: 0; bottom: 0; height: calc(62px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--tbd-surface); border-top: 1px solid var(--tbd-border); box-shadow: 0 -4px 18px rgba(0, 0, 0, .06); }
  :root:root .tbd .tbd-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font: 550 10.5px/1.1 var(--tbd-font); color: var(--tbd-text-3); text-decoration: none !important; min-width: 0; }
  :root:root .tbd .tbd-tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  :root:root .tbd .tbd-tab.is-on { color: var(--tbd-text); font-weight: 700; }
  :root:root .tbd-tab-vs-dot { width: 44px; height: 44px; margin-top: -20px; border-radius: 50%; background: var(--tbd-clash); color: #fff !important; display: flex !important; align-items: center; justify-content: center; font: italic 800 14px/1 var(--tbd-display); box-shadow: 0 6px 14px rgba(255, 105, 61, .35), 0 0 0 4px var(--tbd-surface); }
  :root:root .tbd-ad-pop.is-slide { bottom: calc(72px + env(safe-area-inset-bottom)) !important; }
}

@media (max-width: 640px) {
  /* Compare: short top */
  :root:root .tbd-compare-head .tbd-compare-title h2, :root:root .tbd-compare-head > .tbd-muted, :root:root .tbd-yalla-cta { display: none; }
  :root:root .tbd-compare-head { margin-bottom: 0; }
  :root:root .tbd-car-chips { gap: 6px; margin: 10px 0; }
  :root:root .tbd-car-chips .tbd-search { order: -1; flex: 1 1 100%; }
  :root:root .tbd-car-chip { font-size: 12.5px; padding: 3px 4px 3px 10px; padding-inline: 10px 4px; }
  :root:root .tbd-suggest { display: none; }
  :root:root .tbd-filter-row { background: none; border: 0; padding: 0; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 12px; padding-inline: 16px; }
  :root:root .tbd-filter-row::-webkit-scrollbar { display: none; }
  :root:root .tbd-filter-row .tbd-input { height: 34px; padding-block: 0; border-radius: 9px; font-size: 13px; }
  :root:root .tbd-filter-row .tbd-chip-btn { white-space: nowrap; flex-shrink: 0; }
  :root:root .tbd-filter-row .tbd-rank-chips { flex-wrap: nowrap; }
  :root:root .tbd-clash-rounds { display: none; }
  :root:root .tbd-clash-roundline { display: block; }
  :root:root .tbd-clash-winner { margin-top: 10px; font-size: 15px; }
  :root:root .tbd-spec-head h3 { font-size: 16px !important; }
  :root:root .tbd-best-key, :root:root .tbd-kd-top .tbd-muted, :root:root .tbd-kd-gaps { display: none !important; }
  :root:root .tbd-kd-line { display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 8px 0; }
  :root:root .tbd-kd-name { flex: 1 1 100%; font-size: 13px; }
  :root:root .tbd-kd-line .tbd-kd-chips { flex-wrap: nowrap; min-width: 0; max-width: calc(50% - 4px); }
  :root:root .tbd-kd-line .tbd-kd-chips:has(.tbd-kd-none) { display: none; }
  :root:root .tbd-kd-more { display: none !important; }
  :root:root .tbd-stack-sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  :root:root .tbd-spec-tools { justify-content: flex-end; }

  /* Offers: filters as a chip row */
  :root:root .tbd-offers-hub .tbd-markets { display: none; }
  :root:root .tbd-filter-bar { background: none; border: 0; padding: 0; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 10px; padding-inline: 16px; align-items: center; }
  :root:root .tbd-filter-bar::-webkit-scrollbar { display: none; }
  :root:root .tbd-filter-bar label { flex-shrink: 0; }
  :root:root .tbd-filter-bar label > span:first-child:not(:only-child) { display: none; }
  :root:root .tbd-filter-bar .tbd-input { height: 36px; padding-block: 0; border-radius: 10px; font-size: 13px; font-weight: 600; max-width: 190px; }
  :root:root .tbd-filter-bar .tbd-filter-market .tbd-input { background-color: var(--tbd-ink); color: #fff; border-color: var(--tbd-ink); }
  :root:root .tbd-filter-bar .tbd-check { height: 36px; padding: 0 12px; border: 1.5px solid var(--tbd-border-strong); border-radius: 10px; background: var(--tbd-surface); font-size: 13px; white-space: nowrap; }
  :root:root .tbd-offers-hub .tbd-section-head p { font-size: 13px; }
  :root:root .tbd-count { margin: 0 0 8px !important; font-size: 12.5px; }

  /* Lists of cards: one per row, tighter */
  :root:root .tbd-grid-3 { gap: 12px; }
  :root:root .tbd-card-body { padding: 10px 12px 12px; }
  :root:root .tbd-car-card .tbd-card-actions { margin-top: 8px; }
}

/* ==========================================================================
   2.4: one filter system (Offers + Find a car), list / grid views
   ========================================================================== */
:root:root .tbd-hub-head h2 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 4px; }
:root:root .tbd-hub-head h2 small { font: 500 14px/1 var(--tbd-font); color: var(--tbd-text-3); }
:root:root .tbd-hub-head p { margin: 0 0 14px; }

:root:root .tbd-fbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
:root:root .tbd-fbar-sp { flex: 1; }
:root:root .tbd .tbd-fbtn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--tbd-border-strong); background: var(--tbd-surface); color: var(--tbd-text); font: 600 13.5px/1 var(--tbd-font); white-space: nowrap; cursor: pointer; text-decoration: none !important; list-style: none; }
:root:root .tbd .tbd-fbtn::-webkit-details-marker { display: none; }
:root:root .tbd .tbd-fbtn:hover { border-color: var(--tbd-accent-edge); }
:root:root .tbd .tbd-fbtn.is-set { background: var(--tbd-accent); border-color: var(--tbd-accent); color: var(--tbd-on-accent); }
:root:root .tbd .tbd-fbtn-main { background: var(--tbd-ink); border-color: var(--tbd-ink); color: #fff; }
:root:root .tbd .tbd-fbtn-main b { display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--tbd-lime); color: var(--tbd-ink); font-size: 11.5px; }
:root:root:root[data-theme="dark"] .tbd .tbd-fbtn-main { background: var(--tbd-surface-2); border-color: var(--tbd-border-strong); }
:root:root .tbd-chev { flex-shrink: 0; opacity: .7; }
:root:root .tbd-sort-k { color: var(--tbd-text-3); font-weight: 500; }
:root:root .tbd-fsort { position: relative; }
:root:root .tbd .tbd-fsort select { width: auto; max-width: 170px; field-sizing: content; min-height: 0; box-shadow: none; appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: inherit; font: inherit; padding: 0; margin: 0; height: auto; cursor: pointer; outline: none; }
:root:root .tbd-fsort .tbd-chev { pointer-events: none; }

:root:root .tbd-pill { position: relative; }
:root:root .tbd-pop { position: absolute; z-index: 60; top: calc(100% + 6px); inset-inline-start: 0; min-width: 220px; max-height: min(420px, 70vh); overflow-y: auto; background: var(--tbd-surface); border: 1px solid var(--tbd-border); border-radius: 14px; box-shadow: var(--tbd-shadow-lg); padding: 6px; }
:root:root .tbd-pop > a { display: flex; justify-content: space-between; gap: 14px; padding: 8px 10px; border-radius: 9px; color: var(--tbd-text) !important; text-decoration: none !important; font-size: 14px; }
:root:root .tbd-pop > a small { color: var(--tbd-text-3); font-size: 12px; }
:root:root .tbd-pop > a:hover { background: var(--tbd-surface-2); }
:root:root .tbd-pop > a.is-on { background: var(--tbd-accent-soft); font-weight: 650; }
:root:root .tbd-pop-pad { padding: 14px; min-width: 300px; }
:root:root .tbd-pop-pad.is-wide { min-width: 380px; }
:root:root .tbd-pop-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--tbd-border); }

/* chosen filters */
:root:root .tbd-active-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 12px; }
:root:root .tbd .tbd-achip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 12px; border-radius: 999px; background: var(--tbd-accent-soft); border: 1px solid color-mix(in srgb, var(--tbd-lime) 70%, var(--tbd-border)); color: var(--tbd-text) !important; font: 600 12.5px/1 var(--tbd-font); text-decoration: none !important; cursor: pointer; }
:root:root .tbd .tbd-achip span { font-size: 15px; opacity: .65; }
:root:root .tbd .tbd-achip-clear { font: 600 12.5px/1 var(--tbd-font); color: var(--tbd-text-2) !important; text-decoration: underline !important; text-underline-offset: 2px; padding: 0 6px; cursor: pointer; }
:root:root .tbd-fcount { margin: 0 0 10px; }

/* chips inside sheets and pills */
:root:root .tbd-fchips { display: flex; flex-wrap: wrap; gap: 7px; }
:root:root .tbd-fchip { position: relative; display: inline-flex; }
:root:root .tbd-fchip input { position: absolute; opacity: 0; pointer-events: none; }
:root:root .tbd .tbd-fchip > span, :root:root .tbd .tbd-fchip-b { display: inline-flex; line-height: 1.2; align-items: center; gap: 6px; min-height: 36px; padding: 0 13px; border-radius: 999px; border: 1.5px solid var(--tbd-border-strong); background: var(--tbd-surface); color: var(--tbd-text); font: 600 13px/1.2 var(--tbd-font); cursor: pointer; }
:root:root .tbd-fchip small, :root:root .tbd .tbd-fchip-b small { font-size: 11px; font-weight: 600; color: var(--tbd-text-3); }
:root:root .tbd-fchip input:checked + span, :root:root .tbd .tbd-fchip-b.is-on { background: var(--tbd-ink); border-color: var(--tbd-ink); color: #fff; }
:root:root .tbd-fchip input:checked + span small, :root:root .tbd .tbd-fchip-b.is-on small { color: var(--tbd-lime); }
:root:root:root[data-theme="dark"] .tbd-fchip input:checked + span, :root:root:root[data-theme="dark"] .tbd .tbd-fchip-b.is-on { background: var(--tbd-lime); border-color: var(--tbd-lime); color: var(--tbd-ink); }
:root:root:root[data-theme="dark"] .tbd-fchip input:checked + span small, :root:root:root[data-theme="dark"] .tbd .tbd-fchip-b.is-on small { color: var(--tbd-ink); }
:root:root .tbd-fchip input:focus-visible + span { outline: 2px solid var(--tbd-accent-edge); outline-offset: 2px; }
:root:root .tbd .tbd-fchip-b:disabled { opacity: .4; cursor: default; }
:root:root .tbd .tbd-fchip-more { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1.5px dashed var(--tbd-border-strong); font: 600 13px/1 var(--tbd-font); color: var(--tbd-text-2); cursor: pointer; }
:root:root .tbd-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1.5px solid var(--tbd-border-strong); border-radius: 12px; overflow: hidden; }
:root:root .tbd .tbd-seg button { height: 38px; font: 650 13.5px/1 var(--tbd-font); color: var(--tbd-text); cursor: pointer; text-align: center; }
:root:root .tbd .tbd-seg button + button { border-inline-start: 1px solid var(--tbd-border); }
:root:root .tbd .tbd-seg button.is-on { background: var(--tbd-ink); color: #fff; }
:root:root:root[data-theme="dark"] .tbd .tbd-seg button.is-on { background: var(--tbd-lime); color: var(--tbd-ink); }
:root:root .tbd-fswitch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--tbd-border); font-weight: 600; font-size: 14px; cursor: pointer; }
:root:root .tbd-fswitch input { position: absolute; opacity: 0; pointer-events: none; }
:root:root .tbd-fswitch i { position: relative; flex-shrink: 0; width: 44px; height: 26px; border-radius: 999px; background: var(--tbd-border-strong); transition: background-color .15s; }
:root:root .tbd-fswitch i::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
:root:root .tbd-fswitch input:checked + i { background: var(--tbd-ink); }
:root:root:root[data-theme="dark"] .tbd-fswitch input:checked + i { background: var(--tbd-lime); }
:root:root .tbd-fswitch input:checked + i::after { transform: translateX(18px); }
:is(:root:root[dir="rtl"], :root:root [dir="rtl"]) .tbd-fswitch input:checked + i::after { transform: translateX(-18px); }
:root:root .tbd-fswitch input:focus-visible + i { outline: 2px solid var(--tbd-accent-edge); outline-offset: 2px; }

/* budget: two-handle slider */
:root:root .tbd-budget-val { font: 700 15px/1.2 var(--tbd-font); margin-bottom: 4px; }
:root:root .tbd-dual { position: relative; height: 34px; margin: 0 4px 10px; }
:root:root .tbd-dual::before, :root:root .tbd-dual::after { content: ""; position: absolute; top: 15px; height: 4px; border-radius: 4px; }
:root:root .tbd-dual::before { inset-inline: 0; background: var(--tbd-border); }
:root:root .tbd-dual::after { inset-inline-start: var(--a); inset-inline-end: calc(100% - var(--b)); background: var(--tbd-ink); }
:root:root:root[data-theme="dark"] .tbd-dual::after { background: var(--tbd-lime); }
:root:root .tbd .tbd-dual input[type="range"] { position: absolute; inset: 0; width: 100%; height: 34px; margin: 0; padding: 0; background: none; border: 0; pointer-events: none; -webkit-appearance: none; appearance: none; z-index: 1; }
:root:root .tbd-dual input[type="range"]::-webkit-slider-runnable-track { background: none; height: 34px; }
:root:root .tbd-dual input[type="range"]::-moz-range-track { background: none; }
:root:root .tbd-dual input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 24px; height: 24px; margin-top: 5px; border-radius: 50%; background: #fff; border: 2.5px solid var(--tbd-ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); cursor: grab; }
:root:root .tbd-dual input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2.5px solid var(--tbd-ink); cursor: grab; }
:root:root:root[data-theme="dark"] .tbd-dual input[type="range"]::-webkit-slider-thumb { border-color: var(--tbd-lime); background: var(--tbd-ink); }
:root:root .tbd-budget .tbd-fchips .tbd-fchip-b { min-height: 30px; font-size: 12px; padding: 0 10px; }

/* sheet: bottom sheet on phones, side panel on larger screens */
:root:root .tbd-noscroll, :root:root .tbd-noscroll body { overflow: hidden; }
:root:root .tbd-sheet { position: fixed; inset: 0; z-index: 10000; }
:root:root .tbd-sheet[hidden] { display: none; }
:root:root .tbd-sheet-scrim { position: absolute; inset: 0; background: rgba(10, 12, 15, .5); animation: tbdFade .2s; }
:root:root .tbd-sheet-panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--tbd-surface); color: var(--tbd-text); box-shadow: var(--tbd-shadow-lg); animation: tbdSlideIn .22s ease-out; margin: 0; }
:root:root .tbd-sheet-grip { display: none; }
:root:root .tbd-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 10px; }
:root:root .tbd-sheet-head strong { font: 800 19px/1.2 var(--tbd-display); }
:root:root .tbd .tbd-sheet-x { width: 36px; height: 36px; border-radius: 50%; background: var(--tbd-surface-2); font-size: 22px; line-height: 1; text-align: center; cursor: pointer; }
:root:root .tbd-sheet-body { flex: 1; overflow-y: auto; padding: 0 20px 8px; overscroll-behavior: contain; }
:root:root .tbd .tbd-fs { border: 0; border-radius: 0; margin: 0; padding: 12px 0 14px; border-bottom: 1px solid var(--tbd-border); min-width: 0; }
:root:root .tbd-fs:last-of-type { border-bottom: 0; }
:root:root .tbd .tbd-fs legend { text-transform: none; letter-spacing: 0; float: left; width: 100%; padding: 0; margin: 0 0 10px; font: 700 14px/1.3 var(--tbd-font); color: var(--tbd-text); }
:is(:root:root[dir="rtl"], :root:root [dir="rtl"]) .tbd-fs legend { float: right; }
:root:root .tbd-fs legend span { color: var(--tbd-text-3); font-weight: 500; margin-inline-start: 4px; }
:root:root .tbd-fs legend + * { clear: both; }
:root:root .tbd-sheet .tbd-ff-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
:root:root .tbd-sheet .tbd-ff-nums label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--tbd-text-2); }
:root:root .tbd-sheet-foot { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--tbd-border); background: var(--tbd-surface); }
:root:root .tbd-sheet-foot .tbd-btn { justify-content: center; height: 48px; border-radius: 14px; font-size: 15px; font-weight: 700; }
@keyframes tbdFade { from { opacity: 0; } }
@keyframes tbdSlideIn { from { transform: translateX(100%); } }
:is(:root:root[dir="rtl"], :root:root [dir="rtl"]) .tbd-sheet-panel { animation-name: tbdSlideInR; }
@keyframes tbdSlideInR { from { transform: translateX(-100%); } }
@keyframes tbdSlideUp { from { transform: translateY(100%); } }

/* list / grid switch */
:root:root .tbd-viewtog { display: inline-flex; border: 1.5px solid var(--tbd-border-strong); border-radius: 12px; overflow: hidden; background: var(--tbd-surface); flex-shrink: 0; }
:root:root .tbd .tbd-viewtog button { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 35px; color: var(--tbd-text-3); cursor: pointer; }
:root:root .tbd .tbd-viewtog button[aria-pressed="true"] { background: var(--tbd-ink); color: var(--tbd-lime); }
:root:root:root[data-theme="dark"] .tbd .tbd-viewtog button[aria-pressed="true"] { background: var(--tbd-lime); color: var(--tbd-ink); }
:root:root .tbd-viewtog:not(:has([aria-pressed])) button[data-view="grid"] { background: var(--tbd-ink); color: var(--tbd-lime); }


/* car cards: compare + offers on one line */
:root:root .tbd-car-card .tbd-card-actions { align-items: center; }
:root:root .tbd-car-card .tbd-card-tag { margin: 0; text-decoration: none !important; }
:root:root .tbd .tbd-btn-ink { background: var(--tbd-ink); border-color: var(--tbd-ink); color: var(--tbd-lime); }
:root:root:root[data-theme="dark"] .tbd .tbd-btn-ink { background: var(--tbd-lime); border-color: var(--tbd-lime); color: var(--tbd-ink); }
:root:root .tbd-finder .tbd-results { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

/* compare tray: dark bar with a lime button */
:root:root .tbd-tray { background: var(--tbd-ink); border-color: var(--tbd-ink); color: #fff; }
:root:root .tbd-tray .tbd-car-chip { background: rgba(255, 255, 255, .1); color: #fff; border-color: transparent; }
:root:root .tbd-tray .tbd-icon-btn { color: #fff; }
:root:root:root[data-theme="dark"] .tbd-tray { background: var(--tbd-surface-2); border-color: var(--tbd-border-strong); }

/* the old offers filter form is gone; keep the class harmless */
:root:root .tbd-filter-bar { display: none; }

@media (min-width: 901px) {
  :root:root .tbd-offers-hub .tbd-fbtn-main { display: none; }
}
@media (max-width: 900px) {
  :root:root .tbd-pill-wide, :root:root .tbd .tbd-fbtn.tbd-pill-wide { display: none; }
  :root:root .tbd-fbar { flex-wrap: nowrap; gap: 6px; }
  :root:root .tbd-fbar .tbd-sort-k { display: none; }
  :root:root .tbd-fbar > .tbd-pill { min-width: 0; }
  :root:root .tbd-fbar > .tbd-pill > summary { max-width: 100%; overflow: hidden; }
  :root:root .tbd-fbar > .tbd-pill .tbd-pop { inset-inline-start: auto; inset-inline-end: 0; }
  :root:root .tbd .tbd-fbtn { height: 36px; padding: 0 12px; font-size: 13px; }
  :root:root .tbd-fsort { min-width: 0; flex: 0 1 auto; overflow: hidden; }
  :root:root .tbd-fsort .tbd-sort-k { display: none; }
  :root:root .tbd .tbd-fsort select { max-width: 130px; text-overflow: ellipsis; }
  :root:root .tbd-pop { min-width: 200px; }
  :root:root .tbd-active-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  :root:root .tbd-active-chips::-webkit-scrollbar { display: none; }
  :root:root .tbd .tbd-achip { flex-shrink: 0; }
  :root:root .tbd-sheet-panel { inset-block: auto 0; inset-inline: 0; width: 100%; max-height: 88vh; border-radius: 22px 22px 0 0; animation: tbdSlideUp .24s ease-out; }
  :is(:root:root[dir="rtl"], :root:root [dir="rtl"]) .tbd-sheet-panel { animation-name: tbdSlideUp; }
  :root:root .tbd-sheet-grip { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--tbd-border-strong); margin: 8px auto 0; }
  :root:root .tbd-sheet-head { padding: 8px 18px 6px; }
  :root:root .tbd-sheet-body { padding: 0 18px 8px; }
  :root:root .tbd-sheet-foot { padding-inline: 18px; }
  /* list view on phones: compact rows, 4-5 per screen */
}
@media (max-width: 900px) {
  :root:root .tbd-finder-head .tbd-search { flex-wrap: nowrap; }
  :root:root .tbd-finder-head .tbd-search-field { flex: 1; min-width: 0; }
  :root:root .tbd-finder-head .tbd-search .tbd-btn { padding: 0 14px; flex-shrink: 0; }
  :root:root .tbd-finder-head .tbd-search .tbd-btn span { display: none; }
}
@media (max-width: 760px) {
  :root:root .tbd-tray { bottom: calc(70px + env(safe-area-inset-bottom)); border-radius: 16px; }
}


/* ==========================================================================
   2.5: uniform cards (grid + list), offer page, car page
   ========================================================================== */
/* --- every card has the same shape --- */
:root:root .tbd-ugrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
:root:root .tbd .tbd-ucard { position: relative; display: flex; flex-direction: column; height: 100%; transition: box-shadow .15s, transform .15s, border-color .15s; }
:root:root .tbd .tbd-ucard:hover { box-shadow: var(--tbd-shadow-lg); border-color: var(--tbd-border-strong); }
:root:root .tbd-ucard .tbd-card-media { position: relative; flex: 0 0 auto; aspect-ratio: 16 / 10; width: 100%; overflow: hidden; background: var(--tbd-surface-2); }
:root:root .tbd-ucard .tbd-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
:root:root .tbd-ph-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 100%; padding: 8px; color: var(--tbd-text-3); background: linear-gradient(135deg, var(--tbd-surface-2), color-mix(in srgb, var(--tbd-surface-2) 70%, var(--tbd-border))); text-align: center; }
:root:root .tbd-ph-card .tbd-placeholder { width: 46%; max-width: 150px; height: auto; padding: 0; }
:root:root .tbd-ph-card > span { font: 700 13px/1.2 var(--tbd-display); color: var(--tbd-text-3); max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root:root .tbd-ucard .tbd-card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 12px 14px 14px; }
:root:root .tbd-ucard .tbd-offer-value, :root:root .tbd-ucard .tbd-card-price { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root:root .tbd .tbd-ucard .tbd-card-title { margin: 1px 0 0 !important; font-size: 15px !important; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root:root .tbd-ucard .tbd-card-title a { color: inherit !important; text-decoration: none !important; }
:root:root .tbd-ucard:hover .tbd-card-title a { text-decoration: underline !important; text-underline-offset: 2px; }
:root:root .tbd-stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
:root:root .tbd-ucard .tbd-card-meta, :root:root .tbd-ucard .tbd-offer-where { display: block; margin-top: 3px; font-size: 12.5px; color: var(--tbd-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root:root .tbd-ucard .tbd-offer-acts, :root:root .tbd-ucard .tbd-card-actions { margin-top: auto; padding-top: 10px; display: flex; gap: 8px; align-items: center; }
:root:root .tbd-ucard .tbd-act, :root:root .tbd-ucard .tbd-card-actions > *, :root:root .tbd-ucard .tbd-mini-badge { position: relative; z-index: 2; }
:root:root .tbd .tbd-act-view { background: var(--tbd-ink); border-color: var(--tbd-ink); color: var(--tbd-lime) !important; }
:root:root:root[data-theme="dark"] .tbd .tbd-act-view { background: var(--tbd-lime); border-color: var(--tbd-lime); color: var(--tbd-ink) !important; }
:root:root .tbd-ucard .tbd-card-tag { margin: 0; font-size: 12.5px; }
:root:root .tbd-ucard.is-selected { box-shadow: 0 0 0 2px var(--tbd-accent-edge), var(--tbd-shadow); }
/* horizontal rows of cards (car page, offer page, finder strip) */
:root:root .tbd-hscroll { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
:root:root .tbd-ostrip .tbd-hscroll { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 250px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }

/* --- list view: fixed row height, fixed photo size --- */
:root:root:root[data-tbd-view="list"] .tbd-results { grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 10px; }
:root:root:root[data-tbd-view="list"] .tbd-results > .tbd-ucard { flex-direction: row; height: 150px; }
:root:root:root[data-tbd-view="list"] .tbd-results > .tbd-ucard .tbd-card-media { width: 230px; height: 100%; aspect-ratio: auto; flex: 0 0 230px; }
:root:root:root[data-tbd-view="list"] .tbd-results > .tbd-ucard .tbd-card-body { padding: 12px 14px; }
:root:root:root[data-tbd-view="list"] .tbd-results > .tbd-ucard .tbd-offer-acts, :root:root:root[data-tbd-view="list"] .tbd-results > .tbd-ucard .tbd-card-actions { padding-top: 6px; }
:root:root:root[data-tbd-view="list"] .tbd-results > .tbd-ucard .tbd-act { height: 34px; font-size: 13px; flex: 0 1 auto; padding: 0 14px; }
:root:root:root[data-tbd-view="list"] .tbd-results > .tbd-ad-cell { max-height: 150px; overflow: hidden; }

@media (max-width: 760px) {
  :root:root .tbd-ugrid { gap: 10px; }
  /* Find a car: two cars per row on phones */
  :root:root .tbd-finder .tbd-results, :root:root .tbd-car-page #similar .tbd-ugrid, :root:root .tbd-ugrid-cars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root:root .tbd-finder .tbd-results .tbd-card-body, :root:root .tbd-car-page #similar .tbd-card-body { padding: 9px 10px 10px; }
  :root:root .tbd-finder .tbd-results .tbd-card-price, :root:root .tbd-car-page #similar .tbd-card-price { font-size: 15px !important; }
  :root:root .tbd .tbd-finder .tbd-results .tbd-card-title { font-size: 13.5px !important; }
  :root:root .tbd-finder .tbd-results .tbd-card-meta { font-size: 11.5px; }
  :root:root .tbd-finder .tbd-results .tbd-card-actions { flex-wrap: wrap; gap: 6px; }
  :root:root .tbd-finder .tbd-results .tbd-card-actions .tbd-btn { padding: 0 10px; height: 32px; font-size: 12.5px; }
  :root:root .tbd-finder .tbd-results .tbd-ad-cell { grid-column: 1 / -1; }
  /* card rows scroll sideways on phones */
  :root:root .tbd-hscroll { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 0 16px 6px; scrollbar-width: none; }
  :root:root .tbd-hscroll::-webkit-scrollbar { display: none; }
  :root:root .tbd-hscroll > * { scroll-snap-align: start; }
  :root:root .tbd-ostrip .tbd-hscroll { grid-auto-columns: 78%; }
  /* list on phones: 116px rows, 124px photo */
  :root:root:root[data-tbd-view="list"] .tbd-results, :root:root:root[data-tbd-view="list"] .tbd-finder .tbd-results { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  :root:root:root[data-tbd-view="list"] .tbd-results > .tbd-ucard { height: 116px; }
  :root:root:root[data-tbd-view="list"] .tbd-results > .tbd-ucard .tbd-card-media { width: 124px; flex-basis: 124px; }
  :root:root:root[data-tbd-view="list"] .tbd-results > .tbd-ucard .tbd-card-body { padding: 8px 10px; }
  :root:root:root[data-tbd-view="list"] .tbd-results .tbd-offer-value, :root:root:root[data-tbd-view="list"] .tbd-results .tbd-card-price { font-size: 15px !important; }
  :root:root:root[data-tbd-view="list"] .tbd-results .tbd-card-title { font-size: 13.5px !important; }
  :root:root:root[data-tbd-view="list"] .tbd-results .tbd-offer-where, :root:root:root[data-tbd-view="list"] .tbd-results .tbd-card-meta { font-size: 11.5px; margin-top: 1px; }
  :root:root:root[data-tbd-view="list"] .tbd-results > .tbd-ucard .tbd-act { height: 30px; font-size: 12px; padding: 0 10px; }
  :root:root:root[data-tbd-view="list"] .tbd-results > .tbd-ucard .tbd-card-actions .tbd-btn { height: 30px; font-size: 12px; padding: 0 10px; }
  :root:root:root[data-tbd-view="list"] .tbd-results .tbd-media-badge { font-size: 9.5px; padding: 1px 5px; top: 5px; inset-inline-start: 5px; }
  :root:root:root[data-tbd-view="list"] .tbd-results .tbd-media-foot { font-size: 9.5px; padding: 1px 5px; bottom: 5px; inset-inline-start: 5px; }
  :root:root:root[data-tbd-view="list"] .tbd-results > .tbd-ad-cell { max-height: 116px; }
}

/* --- shared bits --- */
:root:root .tbd .tbd-pill-link { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--tbd-border-strong); background: var(--tbd-surface); color: var(--tbd-text) !important; font: 600 12.5px/1 var(--tbd-font); text-decoration: none !important; white-space: nowrap; }
:root:root .tbd .tbd-pill-link:hover { border-color: var(--tbd-accent-edge); }
:root:root .tbd .tbd-pill-link.is-dark { background: var(--tbd-ink); border-color: var(--tbd-ink); color: #fff !important; }
:root:root .tbd-sticky-cta { display: none; }
:root:root .tbd-section-row h2 { margin-bottom: 12px; }

/* --- offer page --- */
:root:root .tbd-op-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 26px; align-items: start; }
:root:root .tbd-op-hero { margin: 0; position: relative; aspect-ratio: 4 / 3; border-radius: var(--tbd-radius); overflow: hidden; background: var(--tbd-surface-2); }
:root:root .tbd-op-hero a { display: block; width: 100%; height: 100%; }
:root:root .tbd-op-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
:root:root .tbd-op-hero.is-flyer img { object-fit: contain; }
:root:root .tbd-op-hero figcaption { position: absolute; inset-inline-end: 10px; bottom: 10px; background: rgba(0, 0, 0, .6); color: #fff; border-radius: 999px; font-size: 12px; font-weight: 600; padding: 4px 10px; pointer-events: none; }
:root:root .tbd-op-sec h2 { font-size: 19px; margin: 22px 0 10px; }
:root:root .tbd-op-box { background: var(--tbd-surface); border: 1px solid var(--tbd-border); border-radius: var(--tbd-radius); padding: 16px 18px; }
:root:root .tbd-op-text { font-size: 15px; line-height: 1.65; color: var(--tbd-text-2); }
:root:root .tbd-op-text p { margin: 0 0 10px; }
:root:root .tbd-op-text strong { color: var(--tbd-text); }
:root:root .tbd-op-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
:root:root .tbd-op-side { position: sticky; top: calc(var(--tbd-stick, 76px) + 8px); }
:root:root .tbd-op-panel { background: var(--tbd-surface); border: 1px solid var(--tbd-border); border-radius: 18px; padding: 20px; box-shadow: var(--tbd-shadow); }
:root:root .tbd-op-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
:root:root .tbd-op-tag { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: var(--tbd-accent-soft); color: var(--tbd-text); }
:root:root .tbd-op-tag.is-time { background: var(--tbd-surface-2); color: var(--tbd-text-2); }
:root:root .tbd-op-tag.is-soon { background: var(--tbd-clash-soft); color: var(--tbd-accent-text); }
:root:root .tbd-op-tag.is-plain { background: none; border: 1px solid var(--tbd-border); color: var(--tbd-text-2); }
:root:root .tbd .tbd-op-value { font: 800 clamp(25px, 3vw, 32px)/1.12 var(--tbd-display); color: var(--tbd-accent-text); margin: 0 0 6px; }
:root:root .tbd-op-sub { margin: 0 0 14px; color: var(--tbd-text-2); font-size: 15px; }
:root:root .tbd-op-sub a { color: var(--tbd-text) !important; }
:root:root .tbd-op-acts { display: flex; gap: 8px; }
:root:root .tbd-op-acts .tbd-act { height: 46px; font-size: 15px; border-radius: 12px; }
:root:root .tbd-op-acts .tbd-act-call { background: var(--tbd-lime); border-color: var(--tbd-lime); color: var(--tbd-ink) !important; }
:root:root .tbd-op-dealer, :root:root .tbd-op-car { margin-top: 14px; padding: 14px; border: 1px solid var(--tbd-border); border-radius: 14px; background: var(--tbd-bg); }
:root:root .tbd-op-dealer-top, :root:root .tbd-op-car-top { display: flex; gap: 12px; align-items: center; }
:root:root .tbd-op-dealer-top strong { font-size: 15px; }
:root:root .tbd-op-logo { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; background: #fff; flex-shrink: 0; border: 1px solid var(--tbd-border); }
:root:root .tbd-op-logo.is-letter { display: inline-flex; align-items: center; justify-content: center; background: var(--tbd-ink); color: var(--tbd-lime); border: 0; font: 800 18px var(--tbd-display); }
:root:root .tbd-op-dealer .tbd-op-links, :root:root .tbd-op-car .tbd-op-links { margin-top: 10px; }
:root:root .tbd-op-dealer .tbd-dealer-branches { margin-top: 10px; font-size: 13px; }
:root:root .tbd-op-facts { margin: 14px 0 0; }
:root:root .tbd-op-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--tbd-border); font-size: 13.5px; }
:root:root .tbd-op-facts dt { color: var(--tbd-text-3); }
:root:root .tbd-op-facts dd { margin: 0; font-weight: 600; text-align: end; }
:root:root .tbd-op-car-img { width: 104px; height: 66px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--tbd-surface-2); color: var(--tbd-text-3); display: flex; align-items: center; justify-content: center; }
:root:root .tbd-op-car-img img { width: 100%; height: 100%; object-fit: cover; }
:root:root .tbd-op-car-img .tbd-placeholder { width: 80%; padding: 0; }
:root:root .tbd-op-car-price { font: 800 17px/1.2 var(--tbd-display); }
@media (max-width: 900px) {
  :root:root .tbd-op-grid { display: flex; flex-direction: column; gap: 14px; }
  :root:root .tbd-op-main { display: contents; }
  :root:root .tbd-op-hero { order: 1; margin-inline: -16px; border-radius: 0; aspect-ratio: 4 / 3; }
  :root:root .tbd-op-side { order: 2; position: static; }
  :root:root .tbd-op-sec { order: 3; }
  :root:root .tbd-op-sec h2 { margin-top: 4px; }
  :root:root .tbd-op-panel { padding: 0; border: 0; background: none; box-shadow: none; }
  :root:root .tbd-op-acts { display: none; }
}

/* --- car page --- */
:root:root .tbd-car-top { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 26px; align-items: start; }
:root:root .tbd-car-top .tbd-gallery-main { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; }
:root:root .tbd-gallery-main .tbd-ph-card .tbd-placeholder { width: 40%; }
:root:root .tbd-gallery-count { position: absolute; inset-inline-end: 12px; bottom: 12px; background: rgba(0, 0, 0, .6); color: #fff; border-radius: 999px; font-size: 12px; font-weight: 600; padding: 3px 10px; }
:root:root .tbd-car-top .tbd-gallery-thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 6); gap: 8px; scrollbar-width: none; }
:root:root .tbd-car-top .tbd-gallery-thumbs::-webkit-scrollbar { display: none; }
:root:root .tbd-car-top .tbd-gallery-thumbs button { width: auto; border-radius: 9px; }
:root:root .tbd-car-top .tbd-gallery-thumbs img { aspect-ratio: 16 / 10; display: block; }
:root:root .tbd-car-panel { position: sticky; top: calc(var(--tbd-stick, 76px) + 8px); background: var(--tbd-surface); border: 1px solid var(--tbd-border); border-radius: 18px; padding: 20px; box-shadow: var(--tbd-shadow); }
:root:root .tbd .tbd-car-panel h1 { font: 800 clamp(27px, 3vw, 36px)/1.08 var(--tbd-display); margin: 4px 0 8px; }
:root:root .tbd-car-panel .tbd-trust { display: inline-flex; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--tbd-warn) 10%, transparent); margin: 0; }
:root:root .tbd-car-panel .tbd-trust.is-verified { background: var(--tbd-good-soft); }
:root:root .tbd-car-panel .tbd-price-box { margin: 14px 0; padding: 14px 16px; box-shadow: none; background: var(--tbd-bg); }
:root:root .tbd-price-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; font-size: 13px; }
:root:root .tbd .tbd-price-top .tbd-country-pick { position: static; }
:root:root .tbd .tbd-country-pick select { appearance: none; -webkit-appearance: none; height: 32px; padding: 0 28px 0 10px; border-radius: 9px; border: 1.5px solid var(--tbd-border-strong); background: var(--tbd-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center; color: var(--tbd-text); font: 600 12.5px var(--tbd-font); max-width: 190px; cursor: pointer; }
:is(:root:root[dir="rtl"], :root:root [dir="rtl"]) .tbd .tbd-country-pick select { padding: 0 10px 0 28px; background-position: left 9px center; }
:root:root .tbd .tbd-car-panel .tbd-price-big { font: 800 30px/1.1 var(--tbd-display); }
:root:root .tbd .tbd-price-big.is-none { font: 600 15px/1.4 var(--tbd-font); color: var(--tbd-text-3); padding: 4px 0; }
:root:root .tbd-price-basis { font-size: 12px; margin-top: 3px; }
:root:root .tbd-price-basis:empty { display: none; }
:root:root .tbd-key-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
:root:root .tbd-key-tiles li { border: 1px solid var(--tbd-border); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; min-width: 0; }
:root:root .tbd-key-tiles span { font-size: 11px; color: var(--tbd-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root:root .tbd-key-tiles strong { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root:root .tbd-car-panel .tbd-cta-row { gap: 8px; }
:root:root .tbd-panel-docs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
:root:root .tbd-car-page .tbd-tabs-nav { top: var(--tbd-stick, 64px); margin-top: 26px; }
:root:root .tbd-car-page .tbd-section { scroll-margin-top: calc(var(--tbd-stick, 64px) + 60px); }
:root:root .tbd-count-pill { background: var(--tbd-lime); color: var(--tbd-ink); }
:root:root .tbd-readmore.is-clamped p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
:root:root .tbd-readmore p { margin: 0 0 6px; }
:root:root .tbd-car-page .tbd-proscons { margin-top: 16px; }
:root:root .tbd-car-page .tbd-proscons > div { background: var(--tbd-surface); border: 1px solid var(--tbd-border); border-radius: var(--tbd-radius); padding: 14px 16px; }
:root:root .tbd-car-page .tbd-proscons h3 { font-size: 14px; margin: 0 0 8px; }
:root:root .tbd-car-page .tbd-proscons ul { margin: 0; padding: 0; list-style: none; }
:root:root .tbd-spec-acc { display: grid; gap: 8px; }
:root:root .tbd-spec-fold { background: var(--tbd-surface); border: 1px solid var(--tbd-border); border-radius: 14px; overflow: hidden; }
:root:root .tbd-spec-fold summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; cursor: pointer; font-weight: 700; font-size: 15px; }
:root:root .tbd-spec-fold summary::-webkit-details-marker { display: none; }
:root:root .tbd-spec-fold summary small { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--tbd-text-3); }
:root:root .tbd-spec-fold summary small::after { content: ""; width: 8px; height: 8px; border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
:root:root .tbd-spec-fold[open] summary small::after { transform: rotate(-135deg) translateY(-2px); }
:root:root .tbd-spec-fold dl { margin: 0; padding: 0 16px 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); column-gap: 28px; }
:root:root .tbd-spec-fold dl > div { display: grid; grid-template-columns: 42% 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--tbd-border); font-size: 13.5px; }
:root:root .tbd-spec-fold dt { color: var(--tbd-text-3); }
:root:root .tbd-spec-fold dd { margin: 0; font-weight: 550; }
:root:root .tbd-market-list { margin-top: 14px; background: var(--tbd-surface); border: 1px solid var(--tbd-border); border-radius: var(--tbd-radius); overflow: hidden; }
:root:root .tbd-market-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 16px; border-top: 1px solid var(--tbd-border); font-size: 14px; align-items: center; }
:root:root .tbd-market-row:first-child { border-top: 0; }
:root:root .tbd-market-row.is-here { background: var(--tbd-accent-soft); }
:root:root .tbd-market-p { font-weight: 700; text-align: end; font-variant-numeric: tabular-nums; }
:root:root .tbd-market-p small { display: block; font-size: 11px; font-weight: 500; color: var(--tbd-text-3); }
:root:root .tbd-market-p.is-none { font-weight: 500; color: var(--tbd-text-3); font-size: 13px; }
:root:root .tbd-market-w { grid-column: 1 / -1; font-size: 12px; color: var(--tbd-text-3); }
@media (max-width: 900px) {
  :root:root .tbd-car-top { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  :root:root .tbd-car-top .tbd-gallery-main { margin-inline: -16px; border-radius: 0; }
  :root:root .tbd-car-top .tbd-gallery-thumbs { grid-auto-columns: 64px; margin-top: 8px; }
  :root:root .tbd-car-panel { position: static; padding: 0; border: 0; background: none; box-shadow: none; }
  :root:root .tbd-car-panel .tbd-price-box { background: var(--tbd-surface); }
  :root:root .tbd-key-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  :root:root .tbd-car-panel .tbd-cta-row { display: none; }
  :root:root .tbd-car-page .tbd-breadcrumb, :root:root .tbd-offer-page .tbd-breadcrumb { margin-bottom: 10px; font-size: 12px; }
}
@media (max-width: 760px) {
  :root:root .tbd-sticky-cta { display: flex; gap: 8px; position: fixed; z-index: 9980; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom)); padding: 8px 12px; background: var(--tbd-surface); border-top: 1px solid var(--tbd-border); box-shadow: 0 -6px 16px rgba(0, 0, 0, .06); }
  :root:root .tbd-sticky-cta > * { flex: 1; justify-content: center; height: 44px; border-radius: 12px; }
  :root:root .tbd-sticky-cta .tbd-act-call { background: var(--tbd-lime); border-color: var(--tbd-lime); color: var(--tbd-ink) !important; }
  :root:root .tbd-car-page, :root:root .tbd-offer-page { padding-bottom: 64px; }
  :root:root .tbd .tbd-car-panel h1 { font-size: 28px; }
}
/* sticky offsets under the site header (and the WordPress admin bar) */
:root:root body { --tbd-stick: 65px; }
:root:root body.admin-bar { --tbd-stick: 97px; }
@media (max-width: 860px) { :root:root body { --tbd-stick: 59px; } :root:root body.admin-bar { --tbd-stick: 105px; } }
@media (max-width: 600px) { :root:root body.admin-bar { --tbd-stick: 59px; } }
/* pricing: the "Most popular" badge sits on the card edge, so the card must not clip it */
:root:root .tbd-price-cards .tbd-plan { overflow: visible; }
/* saved comparison pages: the plain spec table is folded */
:root:root .tbd .tbd-seo-table > summary { cursor: pointer; font: 700 16px var(--tbd-font); padding: 12px 16px; background: var(--tbd-surface); border: 1px solid var(--tbd-border); border-radius: var(--tbd-radius); list-style: none; }
:root:root .tbd .tbd-seo-table > summary::-webkit-details-marker { display: none; }
:root:root .tbd .tbd-seo-table > summary::after { content: " ▾"; color: var(--tbd-text-3); }
:root:root .tbd .tbd-seo-table[open] > summary { margin-bottom: 10px; }

/* card with no price yet: quiet text, same line height so cards still line up */
:root:root .tbd .tbd-ucard .tbd-card-price.is-none { font: 600 14px/21.6px var(--tbd-font) !important; color: var(--tbd-text-3); }

/* ==========================================================================
   2.6: dealers — "Where to buy", several dealers per offer, "which showroom?" chooser
   ========================================================================== */
/* lime buttons always carry dark text (themes may colour links) */
:root:root .tbd a.tbd-btn-primary, :root:root .tbd .tbd-btn-primary, :root:root .tbd a.tbd-btn-primary:hover, :root:root .tbd a.tbd-btn-primary:visited { color: var(--tbd-on-accent) !important; }
:root:root .tbd-wb-cities { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
:root:root .tbd .tbd-wb-cities button { height: 32px; padding: 0 13px; border-radius: 999px; border: 1.5px solid var(--tbd-border-strong); background: var(--tbd-surface); font: 600 13px/1 var(--tbd-font); color: var(--tbd-text); cursor: pointer; }
:root:root .tbd .tbd-wb-cities button.is-on { background: var(--tbd-ink); border-color: var(--tbd-ink); color: #fff; }
:root:root:root[data-theme="dark"] .tbd .tbd-wb-cities button.is-on { background: var(--tbd-lime); border-color: var(--tbd-lime); color: var(--tbd-ink); }
:root:root .tbd-wb-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
:root:root .tbd-wb { background: var(--tbd-surface); border: 1px solid var(--tbd-border); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
:root:root .tbd-wb[hidden] { display: none; }
:root:root .tbd-wb-top { display: flex; gap: 12px; align-items: flex-start; }
:root:root .tbd-wb-logo { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; object-fit: contain; background: #fff; border: 1px solid var(--tbd-border); }
:root:root .tbd-wb-logo.is-letter { display: inline-flex; align-items: center; justify-content: center; background: var(--tbd-ink); color: var(--tbd-lime); border: 0; font: 800 17px var(--tbd-display); }
:root:root .tbd-wb-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
:root:root .tbd-wb-txt strong { font-size: 15px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
:root:root .tbd-wb-txt > span { font-size: 12.5px; color: var(--tbd-text-3); line-height: 1.45; }
:root:root .tbd-wb-city { font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--tbd-accent-soft); color: var(--tbd-text); }
:root:root .tbd-wb-acts { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin-top: auto; }
:root:root .tbd-wb-acts .tbd-act { height: 38px; font-size: 13px; padding: 0 8px; }
:root:root .tbd .tbd-act-map { color: var(--tbd-text); }
:root:root .tbd-op-where { margin-top: 16px; }
:root:root .tbd .tbd-op-where-h { font-size: 17px; margin: 0 0 10px; display: flex; align-items: baseline; gap: 8px; }
:root:root .tbd-op-where-h small { font: 500 13px var(--tbd-font); color: var(--tbd-text-3); }
:root:root .tbd-op-where .tbd-wb-list { grid-template-columns: 1fr; }
:root:root .tbd-op-where .tbd-wb { background: var(--tbd-bg); }
:root:root .tbd-op-car-price.is-none { font: 600 13px var(--tbd-font) !important; color: var(--tbd-text-3); }
/* chooser */
:root:root .tbd-pick .tbd-sheet-panel { max-height: 80vh; }
@media (min-width: 761px) { :root:root .tbd-pick .tbd-sheet-panel { inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: min(460px, 92vw); height: auto; max-height: 80vh; border-radius: 18px; animation: tbdFade .15s; } }
:root:root .tbd .tbd-pick-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--tbd-border); color: var(--tbd-text) !important; text-decoration: none !important; }
:root:root .tbd .tbd-pick-row:last-child { border-bottom: 0; }
:root:root .tbd-pick-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
:root:root .tbd-pick-txt strong { font-size: 14.5px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
:root:root .tbd-pick-txt > span { font-size: 12.5px; color: var(--tbd-text-3); }
:root:root .tbd-pick-go { flex-shrink: 0; height: 36px; padding: 0 14px; border-radius: 10px; background: var(--tbd-lime); color: var(--tbd-ink); font: 700 13px/36px var(--tbd-font); }
