.tuning-box, .tuning-box * { box-sizing: border-box; }
.tuning-widget-embed { margin: 0; font: 15px/1.45 "Segoe UI", Arial, sans-serif; }
.tuning-box [hidden] { display: none !important; }
.tuning-box {
    --line: color-mix(in srgb, var(--ink) 30%, var(--surface));
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    min-height: 100vh;
    padding: clamp(12px, 4vw, 24px);
    border: 1px solid var(--line);
    border-top: 4px solid var(--accent);
    background: var(--surface);
    color: var(--ink);
    overflow-wrap: anywhere;
}
.tuning-autosize { min-height: 0; }
.tuning-business { margin: 0; font-weight: 650; }
.tuning-box h1 { margin: .2rem 0 1rem; font-size: clamp(20px, 5vw, 29px); line-height: 1.14; letter-spacing: -.025em; }
.tuning-body, .tuning-vehicle { min-width: 0; }
.tuning-vehicle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; }
.tuning-vehicle label:last-child { grid-column: 1 / -1; }
.tuning-box label { display: grid; gap: 4px; font-size: 13px; font-weight: 650; }
.tuning-box select, .tuning-box button {
    width: 100%; min-width: 0; min-height: 39px; padding: 5px 8px;
    color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; font: inherit;
}
.tuning-box select:disabled { opacity: .66; }
.tuning-box :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tuning-results { min-width: 0; margin-top: 1rem; }
.tuning-results button { width: auto; cursor: pointer; }
.tuning-message { margin: 0 0 .65rem; }
.tuning-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tuning-engine { margin: 0 0 .5rem; font-size: 16px; }
.tuning-stage { margin-bottom: .65rem; }
.tuning-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; font-variant-numeric: tabular-nums; }
.tuning-table th, .tuning-table td { padding: 6px 3px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tuning-table thead th { font-size: 12px; }
.tuning-table tbody th { border-left: 2px solid var(--accent); padding-left: 7px; }
.tuning-table td small { display: block; font-size: 11px; }
.tuning-note { margin: .6rem 0 0; font-size: 12px; }
.tuning-rating { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; border-top: 1px solid var(--line); margin-top: 1.1rem; padding-top: .6rem; font-size: 13px; }
.tuning-stars { display: inline-flex; gap: 1px; white-space: nowrap; font-size: 17px; line-height: 1; color: var(--line); }
.tuning-stars span { position: relative; }
.tuning-stars b { position: absolute; inset: 0 auto auto 0; color: var(--accent); overflow: hidden; font-weight: normal; }
.tuning-box.compact { padding: clamp(10px, 3vw, 15px); }
.tuning-box.compact h1 { font-size: clamp(18px, 5vw, 23px); }
.tuning-box.compact .tuning-vehicle { gap: 7px 8px; }
.tuning-box.stacked .tuning-vehicle { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.tuning-box.stacked header h1 { font-size: clamp(18px, 6vw, 25px); }
@media (max-width: 279px) {
    .tuning-vehicle { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 690px) {
    .tuning-box.wide .tuning-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 22px; align-items: start; }
    .tuning-box.wide .tuning-results { margin-top: 0; border-left: 1px solid var(--line); padding-left: 20px; }
}
/* Shared pieces used by every layout */
.tuning-types, .tuning-view { display: none; }
.tuning-result-head { min-width: 0; }
.tuning-engine:focus { outline: none; }
.tuning-quote-slot { margin-top: .9rem; }
.tuning-box a.tuning-quote { display: inline-flex; align-items: center; justify-content: center; min-height: 39px; padding: 6px 16px; border-radius: 4px; background: var(--accent); color: var(--surface); font-weight: 650; text-decoration: none; }
.tuning-box a.tuning-quote:hover { filter: brightness(1.08); }
.tuning-box .tuning-primary:not(a) { background: var(--accent); color: var(--surface); border-color: var(--accent); font-weight: 650; cursor: pointer; }
.tuning-box .tuning-primary:disabled { opacity: .5; cursor: default; }
.tuning-box .tuning-secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); font-weight: 650; cursor: pointer; }
.tuning-showing-results .tuning-search { display: none; }
.tuning-showing-results .tuning-results { margin-top: 0; }

/* Guided layouts: Sidebar card and Showcase */
.tuning-box.card .tuning-view, .tuning-box.showcase .tuning-view { display: block; margin-top: 12px; }
.tuning-box.card .tuning-view[hidden], .tuning-box.showcase .tuning-view[hidden] { display: none; }
.tuning-stages { display: flex; flex-wrap: wrap; gap: 6px; }
.tuning-box .tuning-stage-button { width: auto; min-height: 34px; padding: 4px 14px; border-radius: 4px; cursor: pointer; font-weight: 650; }
.tuning-box .tuning-stage-button[aria-pressed="true"] { background: var(--accent); color: var(--surface); border-color: var(--accent); }
.tuning-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.tuning-box .tuning-actions button { width: auto; }

/* Sidebar card */
.tuning-box.card { padding: clamp(12px, 4vw, 18px); }
.tuning-box.card h1 { font-size: clamp(18px, 6vw, 22px); }
.tuning-box.card .tuning-vehicle { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.tuning-box.card .tuning-engine { font-size: 18px; color: var(--accent); margin-bottom: .6rem; }
.tuning-box.card .tuning-stages { margin-bottom: .75rem; }
.tuning-rows { margin: 0; padding: 4px 14px; border: 1px solid var(--line); border-radius: 6px; background: color-mix(in srgb, var(--ink) 5%, var(--surface)); }
.tuning-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 2px 8px; padding: 12px 0; font-variant-numeric: tabular-nums; }
.tuning-row + .tuning-row { border-top: 1px solid var(--line); }
.tuning-row dt { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.tuning-row dd { margin: 0; }
.tuning-row-values { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 2px 7px; font-size: 15px; white-space: nowrap; }
.tuning-row-values .tuning-tuned { font-size: 18px; }
.tuning-arrow { opacity: .65; }
.tuning-gain { color: var(--accent); font-weight: 650; white-space: nowrap; }
.tuning-estimated { grid-column: 2 / -1; font-size: 11px; }
.tuning-box.card .tuning-actions { flex-direction: column; }
.tuning-box.card .tuning-actions > * { width: 100%; }
.tuning-box.card .tuning-actions .tuning-quote { order: -1; }

/* Showcase */
.tuning-box.showcase { padding: clamp(14px, 3vw, 28px); }
.tuning-box.showcase header { text-align: center; }
.tuning-box.showcase h1 { font-size: clamp(22px, 4vw, 32px); }
.tuning-box.showcase .tuning-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; padding: 10px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 8px; }
.tuning-box.showcase .tuning-types button { min-height: 46px; font-weight: 650; cursor: pointer; border-radius: 6px; background: color-mix(in srgb, var(--ink) 5%, var(--surface)); }
.tuning-box.showcase .tuning-types button[aria-pressed="true"] { background: var(--accent); color: var(--surface); border-color: var(--accent); }
.tuning-box.showcase .tuning-types + .tuning-vehicle label:first-child { display: none; }
.tuning-box.showcase .tuning-vehicle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tuning-box.showcase .tuning-vehicle label:last-child { grid-column: auto; }
.tuning-box.showcase .tuning-types + .tuning-vehicle label:last-child { grid-column: auto; }
.tuning-box.showcase .tuning-view { max-width: 320px; margin-inline: auto; }
.tuning-box.showcase .tuning-result-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; margin-bottom: 1rem; }
.tuning-box.showcase .tuning-engine { margin: 0; font-size: clamp(17px, 3vw, 21px); }
.tuning-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tuning-card { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: color-mix(in srgb, var(--ink) 5%, var(--surface)); font-variant-numeric: tabular-nums; }
.tuning-card span { font-size: 12px; }
.tuning-card strong { font-size: 19px; line-height: 1.2; }
.tuning-card-tuned strong, .tuning-card-gain strong { color: var(--accent); }
.tuning-bars { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; }
.tuning-bars h3 { margin: 0 0 8px; font-size: 14px; }
.tuning-bar-group + .tuning-bar-group { margin-top: 12px; }
.tuning-bar-label { display: block; font-size: 12px; font-weight: 650; margin-bottom: 4px; }
.tuning-bar { display: grid; grid-template-columns: 3.6em minmax(0, 1fr) 6.2em; align-items: center; gap: 8px; font-size: 12px; font-variant-numeric: tabular-nums; }
/* Translated bar names ("Reprogrammé", "Reprogramado") are longer than "Stock" and "Tuned". */
.tuning-box[data-lang]:not([data-lang="en"]) .tuning-bar { grid-template-columns: 7.5em minmax(0, 1fr) 6.2em; }
.tuning-bar + .tuning-bar { margin-top: 4px; }
.tuning-bar-track { height: 12px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 8%, var(--surface)); overflow: hidden; }
.tuning-bar-fill { display: block; height: 100%; border-radius: 6px; background: var(--line); }
.tuning-bar-tuned .tuning-bar-fill { background: var(--accent); }
.tuning-bar-value { text-align: right; }
.tuning-box.showcase .tuning-actions { justify-content: space-between; }
@media (min-width: 690px) {
    .tuning-box.showcase .tuning-vehicle { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .tuning-box.showcase .tuning-vehicle:not(.tuning-types + .tuning-vehicle) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .tuning-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
    .tuning-cards, .tuning-box.showcase .tuning-vehicle { grid-template-columns: minmax(0, 1fr); }
}

.rr-tuning-db { background: var(--rr-surface); }
.rr-tuning-db-heading h1 { font-size: clamp(1.9rem, 4vw, 2.65rem); margin: 0 0 8px; }
.rr-tuning-db-heading p { margin: 0 0 24px; color: var(--rr-muted); max-width: 62ch; }
.rr-tuning-db-lookup { --surface: #fff; --ink: #202832; --accent: #b40000; --line: #d7dde3; min-height: 0; border-radius: 6px; padding: clamp(14px, 3vw, 24px); }
.rr-tuning-db-lookup > h2, .rr-tuning-db-for-tuners h2 { font-size: 1.2rem; margin: 0 0 12px; }
.rr-tuning-db-lookup label { margin: 0; }
.rr-tuning-db-lookup .tuning-vehicle select { min-height: 44px; }
.rr-tuning-db-lookup .tuning-vehicle select:disabled { background: #f3f5f7; }
.rr-tuning-db-lookup .tuning-message, .rr-tuning-db-lookup .tuning-note { color: var(--rr-muted); }
.rr-tuning-db-for-tuners { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 24px; padding: 18px 20px; margin-top: 22px; border: 1px solid var(--rr-border); border-radius: 6px; background: #fff; }
.rr-tuning-db-for-tuners h2 { margin-bottom: 5px; }
.rr-tuning-db-for-tuners p { margin: 0; max-width: 62ch; color: var(--rr-muted); }
@media (max-width: 460px) {
    .rr-tuning-db-lookup .tuning-vehicle { grid-template-columns: minmax(0, 1fr); }
}
.rr-tuning-demos { margin-top: 32px; }
.rr-tuning-demos > h2 { font-size: 1.35rem; margin: 0 0 6px; }
.rr-tuning-demos > p { margin: 0 0 18px; color: var(--rr-muted); max-width: 70ch; }
.rr-tuning-demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 24px; align-items: start; }
.rr-tuning-demo { margin: 0; min-width: 0; }
.rr-tuning-demo-showcase, .rr-tuning-demo-wide { grid-column: 1 / -1; }
.rr-tuning-demo figcaption { margin-bottom: 8px; font-size: 14px; }
.rr-tuning-demo figcaption span { display: block; color: var(--rr-muted); }
.rr-tuning-demo iframe { display: block; width: 100%; border: 0; }

/* ============================================================
   Widget styles. Each embedded widget carries one style-* class and one font-* class.
   They change type, corners, borders and button shapes; layouts and colours stay as chosen.
   ============================================================ */
.tuning-box[class*=" style-"] { --muted: color-mix(in srgb, var(--ink) 66%, var(--surface)); --tint: color-mix(in srgb, var(--ink) 5%, var(--surface)); font-family: var(--font-body); }
.tuning-box[class*=" style-"] h1, .tuning-box[class*=" style-"] .tuning-business, .tuning-box[class*=" style-"] .tuning-engine,
.tuning-box[class*=" style-"] .tuning-bars h3 { font-family: var(--font-head, var(--font-body)); }
.tuning-box.style-default { --font-body: "Segoe UI", Arial, sans-serif; }

/* Stock Bootstrap */
.tuning-box.style-bootstrap { --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif; font-size: 16px; line-height: 1.5; border: 1px solid var(--line); border-radius: .375rem; }
.tuning-box.style-bootstrap h1 { font-weight: 500; letter-spacing: 0; line-height: 1.2; }
.tuning-box.style-bootstrap .tuning-business { font-weight: 400; font-size: .875rem; color: var(--muted); }
.tuning-box.style-bootstrap label { font-weight: 400; font-size: 1rem; gap: .5rem; }
.tuning-box.style-bootstrap select, .tuning-box.style-bootstrap button { min-height: 38px; padding: .375rem .75rem; border-radius: .375rem; font-size: 1rem; transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out; }
.tuning-box.style-bootstrap select:focus-visible, .tuning-box.style-bootstrap button:focus-visible, .tuning-box.style-bootstrap a:focus-visible { outline: 0; border-color: color-mix(in srgb, var(--accent) 55%, var(--surface)); box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--accent) 28%, transparent); }
.tuning-box.style-bootstrap .tuning-primary:not(a), .tuning-box.style-bootstrap a.tuning-quote, .tuning-box.style-bootstrap .tuning-secondary { border-radius: .375rem; font-weight: 400; }
.tuning-box.style-bootstrap .tuning-secondary { color: var(--accent); border-color: var(--accent); }
.tuning-box.style-bootstrap .tuning-stage-button, .tuning-box.style-bootstrap .tuning-types button { font-weight: 400; color: var(--accent); background: transparent; border-color: var(--accent); }
.tuning-box.style-bootstrap .tuning-engine { font-weight: 500; font-size: 1.25rem; }
.tuning-box.style-bootstrap .tuning-table th, .tuning-box.style-bootstrap .tuning-table td { padding: .5rem; }
.tuning-box.style-bootstrap .tuning-table thead th { font-size: 1rem; border-bottom: 2px solid currentColor; }
.tuning-box.style-bootstrap .tuning-table tbody th { border-left: 0; padding-left: .5rem; }
.tuning-box.style-bootstrap .tuning-table tbody tr:nth-child(odd) > * { background: var(--tint); }
.tuning-box.style-bootstrap .tuning-rows, .tuning-box.style-bootstrap .tuning-card, .tuning-box.style-bootstrap .tuning-bars { border-radius: .375rem; }
.tuning-box.style-bootstrap .tuning-bar-track { height: 1rem; border-radius: .375rem; }
.tuning-box.style-bootstrap .tuning-bar-fill { border-radius: 0; }

/* Modern */
.tuning-box.style-modern { --font-body: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif; --font-head: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
    border: 1px solid color-mix(in srgb, var(--ink) 12%, var(--surface)); border-radius: 20px;
    background: radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--accent) 14%, var(--surface)) 0%, var(--surface) 55%); }
.tuning-box.style-modern h1 { font-weight: 800; letter-spacing: -.035em; }
.tuning-box.style-modern .tuning-business { display: inline-block; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tuning-box.style-modern label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tuning-box.style-modern select { min-height: 46px; padding-inline: 12px; border-radius: 12px; background: var(--tint); border-color: color-mix(in srgb, var(--ink) 12%, var(--surface)); color: var(--ink); }
.tuning-box.style-modern button, .tuning-box.style-modern a.tuning-quote { min-height: 44px; border-radius: 999px; }
.tuning-box.style-modern .tuning-primary:not(a), .tuning-box.style-modern a.tuning-quote { font-weight: 700; box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.tuning-box.style-modern .tuning-types { border: 0; padding: 0; }
.tuning-box.style-modern .tuning-types button { border-radius: 14px; min-height: 52px; }
.tuning-box.style-modern .tuning-stage-button { border-radius: 999px; padding-inline: 18px; }
.tuning-box.style-modern .tuning-engine { font-weight: 750; letter-spacing: -.015em; }
.tuning-box.style-modern .tuning-rows, .tuning-box.style-modern .tuning-bars { border-radius: 16px; border-color: color-mix(in srgb, var(--ink) 10%, var(--surface)); }
.tuning-box.style-modern .tuning-card { border-radius: 16px; border-color: transparent; padding: 14px 16px; }
.tuning-box.style-modern .tuning-card span { text-transform: uppercase; letter-spacing: .06em; font-size: 11px; color: var(--muted); }
.tuning-box.style-modern .tuning-card strong { font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.tuning-box.style-modern .tuning-bar-track, .tuning-box.style-modern .tuning-bar-fill { border-radius: 999px; }
.tuning-box.style-modern .tuning-table { border-collapse: separate; border-spacing: 0 6px; }
.tuning-box.style-modern .tuning-table th, .tuning-box.style-modern .tuning-table td { border: 0; padding: 10px 12px; }
.tuning-box.style-modern .tuning-table thead th { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; padding-block: 2px; }
.tuning-box.style-modern .tuning-table tbody > tr > * { background: var(--tint); }
.tuning-box.style-modern .tuning-table tbody > tr > :first-child { border-radius: 12px 0 0 12px; border-left: 0; }
.tuning-box.style-modern .tuning-table tbody > tr > :last-child { border-radius: 0 12px 12px 0; color: var(--accent); font-weight: 700; }
.tuning-box.style-modern .tuning-rating { border-top-color: color-mix(in srgb, var(--ink) 10%, var(--surface)); }

/* Classic */
.tuning-box.style-classic { --font-body: Georgia, Cambria, "Times New Roman", Times, serif; --font-head: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    border: 1px solid var(--ink); border-radius: 0; box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 5px var(--line); }
.tuning-box.style-classic header { text-align: center; border-bottom: 2px solid var(--accent); padding-bottom: .5rem; margin-bottom: 1rem; }
.tuning-box.style-classic h1 { font-weight: 400; letter-spacing: .01em; margin-bottom: .2rem; }
.tuning-box.style-classic .tuning-business, .tuning-box.style-classic label, .tuning-box.style-classic .tuning-table thead th,
.tuning-box.style-classic .tuning-row dt, .tuning-box.style-classic .tuning-card span { font-variant: small-caps; text-transform: lowercase; letter-spacing: .06em; font-weight: 400; }
.tuning-box.style-classic label { font-size: 15px; }
.tuning-box.style-classic select, .tuning-box.style-classic button, .tuning-box.style-classic a.tuning-quote, .tuning-box.style-classic .tuning-rows,
.tuning-box.style-classic .tuning-card, .tuning-box.style-classic .tuning-bars, .tuning-box.style-classic .tuning-bar-track, .tuning-box.style-classic .tuning-bar-fill,
.tuning-box.style-classic .tuning-types { border-radius: 0; }
.tuning-box.style-classic .tuning-primary:not(a), .tuning-box.style-classic a.tuning-quote, .tuning-box.style-classic .tuning-secondary,
.tuning-box.style-classic .tuning-stage-button { font-variant: small-caps; letter-spacing: .06em; font-weight: 400; }
.tuning-box.style-classic .tuning-engine { font-style: italic; font-weight: 400; font-size: 19px; }
.tuning-box.style-classic .tuning-table { border: 1px solid var(--line); }
.tuning-box.style-classic .tuning-table th, .tuning-box.style-classic .tuning-table td { border: 1px solid var(--line); padding: 6px 8px; }
.tuning-box.style-classic .tuning-table thead th { background: var(--tint); font-size: 14px; }
.tuning-box.style-classic .tuning-rating { justify-content: center; border-top: 1px solid var(--ink); font-style: italic; }

/* Motorsport */
.tuning-box.style-motorsport { --font-body: "Segoe UI", Roboto, Arial, sans-serif; --font-head: "Bahnschrift Condensed", Bahnschrift, "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Impact, sans-serif;
    border: 0; border-left: 6px solid var(--accent); border-radius: 0;
    background-image: repeating-linear-gradient(-45deg, transparent 0 14px, color-mix(in srgb, var(--ink) 3%, transparent) 14px 28px); }
.tuning-box.style-motorsport h1, .tuning-box.style-motorsport .tuning-engine, .tuning-box.style-motorsport label, .tuning-box.style-motorsport .tuning-row dt,
.tuning-box.style-motorsport .tuning-card span, .tuning-box.style-motorsport .tuning-table thead th, .tuning-box.style-motorsport .tuning-bars h3 { font-family: var(--font-head); font-style: italic; text-transform: uppercase; }
.tuning-box.style-motorsport h1 { font-weight: 800; letter-spacing: .01em; font-size: clamp(24px, 6vw, 34px); line-height: 1; }
.tuning-box.style-motorsport .tuning-business { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; }
.tuning-box.style-motorsport label { font-size: 14px; letter-spacing: .05em; font-weight: 700; }
.tuning-box.style-motorsport select { border-radius: 0; border-bottom: 2px solid var(--line); background: var(--tint); }
.tuning-box.style-motorsport select:focus-visible { border-bottom-color: var(--accent); }
.tuning-box.style-motorsport button, .tuning-box.style-motorsport a.tuning-quote { border-radius: 0; font-family: var(--font-head); font-style: italic; text-transform: uppercase; letter-spacing: .06em; font-weight: 800;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); padding-inline: 22px; }
.tuning-box.style-motorsport button:focus-visible, .tuning-box.style-motorsport a:focus-visible { clip-path: none; }
.tuning-box.style-motorsport .tuning-engine { font-weight: 700; font-size: 21px; }
.tuning-box.style-motorsport .tuning-rows, .tuning-box.style-motorsport .tuning-card, .tuning-box.style-motorsport .tuning-bars,
.tuning-box.style-motorsport .tuning-bar-track, .tuning-box.style-motorsport .tuning-bar-fill, .tuning-box.style-motorsport .tuning-types { border-radius: 0; }
.tuning-box.style-motorsport .tuning-card { border-width: 0 0 0 3px; border-color: var(--accent); }
.tuning-box.style-motorsport .tuning-card strong, .tuning-box.style-motorsport .tuning-row-values .tuning-tuned { font-family: var(--font-head); font-style: italic; font-size: 26px; font-weight: 800; }
.tuning-box.style-motorsport .tuning-row-values .tuning-tuned { font-size: 22px; }
.tuning-box.style-motorsport .tuning-table tbody th { border-left-width: 4px; }
.tuning-box.style-motorsport .tuning-rating { text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }

/* Dropdowns sit inside their labels; keep their text plain whatever the label styling. */
.tuning-box.style-modern label select, .tuning-box.style-classic label select, .tuning-box.style-motorsport label select {
    font-family: var(--font-body); font-size: 15px; font-weight: 400; font-style: normal; font-variant: normal; text-transform: none; letter-spacing: normal; color: var(--ink); }

/* Fine-tune controls. Doubled classes outrank the style rules above. */
/* Corners */
.tuning-box.corners-square.corners-square, .tuning-box.corners-square.corners-square :is(select, button, a.tuning-quote, .tuning-rows, .tuning-card, .tuning-bars, .tuning-types, .tuning-bar-track, .tuning-bar-fill) { border-radius: 0; }
.tuning-box.corners-soft.corners-soft { border-radius: 6px; }
.tuning-box.corners-soft.corners-soft :is(select, button, a.tuning-quote, .tuning-rows, .tuning-card, .tuning-bars, .tuning-types, .tuning-bar-track, .tuning-bar-fill) { border-radius: 4px; }
.tuning-box.corners-rounded.corners-rounded { border-radius: 16px; }
.tuning-box.corners-rounded.corners-rounded :is(select, button, a.tuning-quote, .tuning-rows, .tuning-card, .tuning-bars, .tuning-types) { border-radius: 10px; }
.tuning-box.corners-rounded.corners-rounded :is(.tuning-bar-track, .tuning-bar-fill) { border-radius: 6px; }
.tuning-box.corners-round.corners-round { border-radius: 24px; }
.tuning-box.corners-round.corners-round :is(select, .tuning-rows, .tuning-card, .tuning-bars, .tuning-types) { border-radius: 16px; }
.tuning-box.corners-round.corners-round :is(button, a.tuning-quote, .tuning-bar-track, .tuning-bar-fill) { border-radius: 999px; }
/* Text size scales the whole widget, so spacing stays in proportion. */
.tuning-box.text-small.text-small { zoom: .92; }
.tuning-box.text-large.text-large { zoom: 1.1; }
/* Buttons */
.tuning-box.buttons-solid.buttons-solid .tuning-secondary { background: var(--tint, color-mix(in srgb, var(--ink) 6%, var(--surface))); border-color: transparent; color: var(--ink); }
.tuning-box.buttons-solid.buttons-solid :is(.tuning-stage-button, .tuning-types button)[aria-pressed="true"] { background: var(--accent); color: var(--surface); border-color: var(--accent); }
.tuning-box.buttons-outline.buttons-outline :is(.tuning-primary:not(a), a.tuning-quote, .tuning-stage-button[aria-pressed="true"], .tuning-types button[aria-pressed="true"]) {
    background: transparent; color: var(--accent); border: 2px solid var(--accent); box-shadow: none; }
.tuning-box.buttons-outline.buttons-outline :is(.tuning-primary:not(a), a.tuning-quote):hover { background: color-mix(in srgb, var(--accent) 12%, transparent); filter: none; }
/* Dropdown size */
.tuning-box.dropdowns-compact.dropdowns-compact select { min-height: 32px; height: 32px; padding: 3px 6px; font-size: 13px; }
.tuning-box.dropdowns-normal.dropdowns-normal select { min-height: 39px; height: 39px; padding: 5px 8px; font-size: 15px; }
.tuning-box.dropdowns-large.dropdowns-large select { min-height: 50px; height: 50px; padding: 8px 12px; font-size: 17px; }
/* Headings */
.tuning-box.headings-capitals.headings-capitals :is(h1, .tuning-engine, .tuning-business) { text-transform: uppercase; letter-spacing: .02em; }
.tuning-box.headings-normal.headings-normal :is(h1, .tuning-engine, .tuning-business) { text-transform: none; font-variant: normal; }

/* Font choices override the style's own fonts. */
.tuning-box.font-system.font-system { --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --font-head: var(--font-body); }
.tuning-box.font-helvetica.font-helvetica { --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif; --font-head: var(--font-body); }
.tuning-box.font-serif.font-serif { --font-body: Georgia, Cambria, "Times New Roman", Times, serif; --font-head: var(--font-body); }
.tuning-box.font-condensed.font-condensed { --font-body: "Bahnschrift Condensed", Bahnschrift, "Roboto Condensed", "Arial Narrow", sans-serif; --font-head: var(--font-body); }
.tuning-box.font-rounded.font-rounded { --font-body: ui-rounded, "SF Pro Rounded", Nunito, "Varela Round", "Arial Rounded MT Bold", "Segoe UI", sans-serif; --font-head: var(--font-body); }
