.tfd-vehicle-widget {
    --tfd-page: #111111;
    --tfd-panel: #121212;
    --tfd-panel-soft: #181818;
    --tfd-tile: #151515;
    --tfd-tile-hover: #1d1d1d;
    --tfd-border: #252525;
    --tfd-border-soft: #242424;
    --tfd-text: #f4f4f4;
    --tfd-muted: #9d9d9d;
    --tfd-muted-2: #6f6f6f;
    --tfd-red: #bd1e23;
    --tfd-red-dark: #bd1e23;
    --tfd-green: #22c55e;
    --tfd-blue: #4f8fff;
    --tfd-primary: var(--tfd-red);
    background: transparent;
    color: var(--tfd-text);
    min-height: 720px;
    padding: 34px 0 72px;
    font-family: var(--bs-font-body, "Mulish", sans-serif);
    box-sizing: border-box;
    animation: tfdWidgetFade .45s ease both;
}

@keyframes tfdWidgetFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tfd-tile,
.tfd-row-card,
.tfd-stage-card,
.tfd-option-card,
.tfd-ecu-card,
.tfd-hint-card,
.tfd-fuel-group,
.tfd-engine-summary,
.tfd-tabs,
.tfd-tab-panel {
    opacity: 0;
    transform: translateY(14px);
}

.tfd-enter {
    animation: tfdEnter .42s cubic-bezier(.22, 1, .36, 1) both;
    animation-delay: var(--tfd-enter-delay, 0ms);
}

@keyframes tfdEnter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.tfd-vehicle-widget *, .tfd-vehicle-widget *::before, .tfd-vehicle-widget *::after { box-sizing: border-box; }
.tfd-app { width: 100%; max-width: none; margin: 0; }
.frame-type-tfdvehicleapi_vehicledatabase .frame-header { padding-top: 56px; }
.tfd-header { margin-bottom: 26px; }
.tfd-header h2 { margin: 0 0 8px; color: var(--tfd-text); font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
.tfd-header p { margin: 0; color: var(--tfd-muted); font-size: 21px; line-height: 1.35; }

.tfd-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.tfd-crumb { appearance: none; border: 1px solid transparent; background: #202020; color: #d4d4db; padding: 11px 16px; border-radius: 3px; font-size: 16px; line-height: 1; cursor: pointer; transition: background .16s ease, border-color .16s ease, color .16s ease; }
.tfd-crumb:hover { background: #292929; color: #fff; }
.tfd-crumb.is-active { background: var(--tfd-red); border-color: var(--tfd-red); color: #fff; font-weight: 700; }
.tfd-sep { color: #555; font-size: 22px; margin: 0 2px; }

.tfd-search-wrap { position: relative; width: min(420px, 100%); margin: -4px 0 16px; }
.tfd-search { width: 100%; height: 46px; background: #181818; border: 1px solid #cf2027; color: var(--tfd-text); border-radius: 3px; padding: 0 14px 0 40px; outline: none; font-size: 15px; box-shadow: 0 0 0 1px rgba(249,115,22,.07); }
.tfd-search::placeholder { color: #9d9d9d; }
.tfd-search-icon { position: absolute; left: 14px; top: 9px; color: #9da0ad; font-size: 22px; line-height: 1; z-index: 1; }

.tfd-select-selector { margin: 0 0 30px; }
.tfd-select-grid { display: grid; grid-template-columns: repeat(5, minmax(160px, 1fr)); gap: 18px; align-items: end; }
.tfd-select-field { display: grid; gap: 10px; }
.tfd-select-field > span { color: #f0f0f3; font-size: 14px; line-height: 1.2; }
.tfd-select-wrap { position: relative; width: 100%; }
.tfd-select-wrap .variable-showcase { width: 100%; }
.tfd-select-wrap .variable-showcase {
    --ss-main-height: 44px;
    --ss-search-height: 42px;
    --ss-option-height: auto;
}
.tfd-select-wrap .ss-main { min-height: 44px; padding: 4px 8px; }
.tfd-select-wrap .ss-main .ss-values { display: flex; align-items: center; }
.tfd-select-wrap .ss-main .ss-values .ss-single { display: inline-flex; align-items: center; }
.tfd-select-wrap .ss-main .ss-values .ss-single .tfd-select-brand-option { display: inline-flex; align-items: center; }
.tfd-select-wrap .ss-main .ss-values .ss-single,
.tfd-select-wrap .ss-main .ss-values .ss-placeholder,
.tfd-select-wrap .ss-content .ss-option,
.tfd-select-wrap .ss-search input { font-size: 16px; }
.tfd-select-wrap .ss-main.ss-disabled {
    background: #262626;
    border-color: #3a3a3a;
    box-shadow: none;
    cursor: not-allowed;
}
.tfd-select-wrap .ss-main.ss-disabled .ss-values .ss-single,
.tfd-select-wrap .ss-main.ss-disabled .ss-values .ss-placeholder,
.tfd-select-wrap .ss-main.ss-disabled .ss-arrow path {
    color: #8a8a8a;
    stroke: #8a8a8a;
}
.tfd-select-wrap .ss-main .ss-values .ss-single,
.tfd-select-wrap .ss-main .ss-values .ss-placeholder { font-size: 16px; }
.tfd-select-wrap .ss-content { border-color: var(--tfd-border); background: #121212; }
.tfd-select-wrap .ss-search input { background: #101010; color: #fff; }
.tfd-select-wrap .ss-option { color: #f0f0f3; }
.tfd-select-wrap .ss-option.ss-highlighted,
.tfd-select-wrap .ss-option:hover { background: #1b1b1b; }
.tfd-select-wrap .ss-option.ss-selected { color: #fff; }
.tfd-select-brand-option { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.tfd-select-brand-logo { width: 28px; height: 28px; object-fit: contain; display: block; flex: 0 0 auto; }
.tfd-select-type-icon { width: 24px; height: 24px; object-fit: contain; display: block; flex: 0 0 auto; filter: brightness(0) invert(1); margin-top: -1px; }
.tfd-select-brand-fallback { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; background: #2a2a2a; color: #f0f0f3; font-family: var(--bs-font-heading, "Chakra Petch", sans-serif); font-size: 12px; font-weight: 700; letter-spacing: .08em; flex: 0 0 auto; }

.tfd-status { min-height: 0; }
.tfd-loading, .tfd-error, .tfd-empty { border: 1px solid var(--tfd-border); background: var(--tfd-panel); padding: 18px; color: var(--tfd-muted); border-radius: 4px; }
.tfd-error { color: #ffb4b7; border-color: rgba(241,37,45,.45); }
.tfd-success { border: 1px solid rgba(34,197,94,.35); background: rgba(34,197,94,.08); padding: 18px; color: #d7ffe6; border-radius: 4px; }
.tfd-content.is-loading { opacity: .55; }

.tfd-grid { display: grid; gap: 14px; }
.tfd-type-grid { grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 14px; }
.tfd-brand-grid { grid-template-columns: repeat(6, minmax(150px, 1fr)); gap: 10px; }
.tfd-tile { appearance: none; border: 1px solid var(--tfd-border); background: var(--tfd-tile); color: var(--tfd-text); border-radius: 4px; cursor: pointer; text-align: center; min-height: 126px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 17px; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.tfd-tile:hover { background: var(--tfd-tile-hover); border-color: #404040; transform: translateY(-1px); }
.tfd-tile-large { min-height: 176px; gap: 20px; }
.tfd-icon-box, .tfd-logo-box { width: 70px; height: 70px; background: #202020; display: flex; align-items: center; justify-content: center; border-radius: 3px; overflow: hidden; }
.tfd-logo-box { width: 60px; height: 60px; }
.tfd-card-image { max-width: 50px; max-height: 50px; object-fit: contain; display: block; }
.tfd-brand-fallback { font-family: var(--bs-font-heading, "Chakra Petch", sans-serif); font-size: 18px; font-weight: 700; letter-spacing: .08em; color: #f2f2f4; }
.tfd-brand-logo-img { opacity: 0; transition: opacity .18s ease; }
.tfd-logo-box.is-loaded .tfd-brand-fallback { display: none; }
.tfd-logo-box.is-loaded .tfd-brand-logo-img { opacity: 1; }
.tfd-logo-box.is-broken .tfd-brand-logo-img { display: none; }
.tfd-icon-box .tfd-card-image { max-width: 56px; max-height: 56px; }
.tfd-icon-box .tfd-card-image {
    filter: brightness(0) invert(1);
}
.tfd-tile-title { display: block; color: #dedee4; font-size: 18px; font-weight: 600; }
.tfd-logo-tile .tfd-tile-title { font-size: 14px; }
.tfd-fallback-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; min-width: 20px; height: 20px; color: #f1f1f4; font-size: 18px; font-weight: 800; line-height: 1; }
.tfd-icon-box .tfd-fallback-icon, .tfd-logo-box .tfd-fallback-icon { width: 34px; height: 34px; font-size: 32px; color: #f1f1f4; }

.tfd-list-grid { display: grid; gap: 12px; }
.tfd-list-grid.tfd-six { grid-template-columns: repeat(4, minmax(220px, 1fr)); }
.tfd-list-grid.tfd-three { grid-template-columns: repeat(3, minmax(240px, 1fr)); }
.tfd-list-grid.tfd-four { grid-template-columns: repeat(4, minmax(230px, 1fr)); }
.tfd-row-card { appearance: none; background: var(--tfd-tile); border: 1px solid var(--tfd-border); color: var(--tfd-text); min-height: 65px; border-radius: 4px; padding: 0 22px; display: flex; align-items: center; gap: 14px; cursor: pointer; text-align: left; font-size: 18px; font-weight: 600; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.tfd-model-card { min-height: 86px; font-size: 18px; }
.tfd-row-card:hover { background: var(--tfd-tile-hover); border-color: #404040; transform: translateY(-1px); }

.tfd-fuel-group { margin-bottom: 24px; }
.tfd-fuel-group h3, .tfd-section-title { color: var(--tfd-muted); text-transform: uppercase; font-size: 15px; letter-spacing: .11em; font-weight: 800; margin: 0 0 11px; display: flex; align-items: center; gap: 8px; }
.tfd-fuel-group h3 span, .tfd-section-title span { color: var(--tfd-muted-2); }

.tfd-engine-summary { background: var(--tfd-panel); border: 1px solid var(--tfd-border); border-radius: 4px; padding: 20px; margin-bottom: 30px; display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center; }
.tfd-engine-left { display: flex; align-items: center; gap: 18px; min-width: 0; }
.tfd-brand-logo { width: 76px; height: 76px; background: transparent; border-radius: 4px; display: flex; align-items: center; justify-content: center; overflow: hidden; flex: 0 0 auto; }
.tfd-brand-logo .tfd-card-image { max-width: 64px; max-height: 64px; }
.tfd-engine-meta { color: var(--tfd-muted); font-size: 16px; margin-bottom: 5px; }
.tfd-engine-summary h3 { color: #f0f0f3; font-size: 30px; line-height: 1.1; margin: 0; letter-spacing: -.02em; }
.tfd-specs { display: grid; grid-template-columns: repeat(3, 185px); gap: 14px; }
.tfd-spec-card { border: 1px solid var(--tfd-border); background: #0f0f0f; border-radius: 4px; min-height: 83px; padding: 14px 16px; display: grid; grid-template-columns: 22px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: start; justify-items: start; text-align: left; }
.tfd-spec-card .tfd-fallback-icon { grid-row: 1 / span 2; margin-top: 0; }
.tfd-spec-icon-img { grid-row: 1 / span 2; width: 22px; height: 22px; object-fit: contain; display: block; filter: brightness(0) invert(1); }
.tfd-section-icon-img { width: 20px; height: 20px; object-fit: contain; display: block; filter: brightness(0) invert(1); }
.tfd-engine-item-icon { width: 20px; height: 20px; object-fit: contain; display: block; filter: brightness(0) invert(1); flex: 0 0 auto; }
.tfd-model-item-icon { width: 22px; height: 22px; object-fit: contain; display: block; filter: brightness(0) invert(1); flex: 0 0 auto; }
.tfd-spec-card span:not(.tfd-fallback-icon) { color: var(--tfd-muted); font-size: 12px; letter-spacing: .28em; font-weight: 800; }
.tfd-spec-card > strong { display: block; grid-column: 2; justify-self: start !important; align-self: start; width: 100%; margin: 9px 0 0; text-align: left !important; color: #eeeef2; font-size: 22px; line-height: 1.2; }

.tfd-stage-grid { display: grid; grid-template-columns: repeat(3, minmax(280px, 1fr)); gap: 14px; margin: 0 0 34px; }
.tfd-stage-card { position: relative; background: var(--tfd-panel); border: 1px solid var(--tfd-border); border-radius: 4px; padding: 20px; min-height: 213px; }
.tfd-stage-card { cursor: pointer; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.tfd-stage-card.is-selected { border-color: var(--tfd-red); background: #171717; box-shadow: 0 0 0 1px rgba(189, 30, 35, .2); }
.tfd-stage-card.is-selected::after { content: "✓"; position: absolute; top: 12px; right: 14px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: var(--tfd-red); color: #fff; font-size: 15px; font-weight: 900; }
.tfd-stage-head { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; margin-bottom: 20px; }
.tfd-stage-head h4 { margin: 0; font-size: 22px; color: #f0f0f3; }
.tfd-stage-head > strong { color: #fff; font-size: 22px; font-family: var(--bs-font-heading, "Chakra Petch", sans-serif); font-weight: 800; letter-spacing: .02em; }
.tfd-stage-icon { width: 50px; min-width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; color: var(--tfd-red); }
.tfd-stage-icon-img { max-width: 56px; max-height: 56px; object-fit: contain; display: block; }
.tfd-stage-icon-leaf { filter: brightness(0) saturate(100%) invert(59%) sepia(66%) saturate(647%) hue-rotate(96deg) brightness(93%) contrast(89%); }
.tfd-stage-icon-svg { width: 42px; height: 42px; display: block; }
.tfd-stage-s { color: #ed050b; font-size: 48px; line-height: .74; font-weight: 900; font-style: italic; display: flex; flex-direction: column; align-items: center; letter-spacing: -.08em; }
.tfd-stage-s small { font-size: 8px; line-height: 1; margin-top: -2px; letter-spacing: 0; }
.tfd-stage-card.is-eco .tfd-stage-icon .tfd-fallback-icon, .tfd-stage-card.is-eco .tfd-stage-icon-svg { color: var(--tfd-green); }
.tfd-metric { margin-top: 17px; }
.tfd-metric-top, .tfd-metric-values { display: flex; justify-content: space-between; gap: 14px; }
.tfd-metric-top span { font-size: 16px; color: #f0f0f3; }
.tfd-metric-top strong { color: var(--tfd-red); font-size: 16px; }
.tfd-stage-card.is-eco .tfd-metric-top strong { color: var(--tfd-green); }
.tfd-bar { height: 14px; margin: 8px 0 6px; background: #15161a; border-radius: 2px; overflow: hidden; }
.tfd-bar span { display: block; height: 100%; border-radius: 2px; width: 0 !important; transition: width .75s cubic-bezier(.22, 1, .36, 1); }
.tfd-bar span.is-animated { width: var(--tfd-bar-target) !important; }
.tfd-bar .is-red { background: var(--tfd-red); }
.tfd-bar .is-blue { background: var(--tfd-blue); }
.tfd-bar .is-green { background: var(--tfd-green); }
.tfd-metric-values { color: var(--tfd-muted); font-size: 14px; }
.tfd-stage-actions { margin: -6px 0 28px; display: flex; justify-content: flex-start; }
.tfd-inquiry-button { appearance: none; border: 1px solid var(--tfd-red); background: var(--tfd-red); color: #fff; padding: 12px 22px; font-size: 15px; font-weight: 800; font-family: var(--bs-font-heading, "Chakra Petch", sans-serif); text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }

.tfd-tabs { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--tfd-border-soft); margin-bottom: 18px; }
.tfd-tab { appearance: none; background: transparent; color: var(--tfd-muted); border: 0; border-bottom: 2px solid transparent; padding: 0 18px 14px; cursor: pointer; font-size: 14px; font-weight: 800; letter-spacing: .08em; display: flex; align-items: center; gap: 8px; }
.tfd-tab:hover, .tfd-tab.is-active { color: #f0f0f3; }
.tfd-tab.is-active { border-color: var(--tfd-red); }
.tfd-tab .tfd-fallback-icon { color: inherit; }
.tfd-tab-panel { background: var(--tfd-panel); border: 1px solid var(--tfd-border); border-radius: 4px; padding: 18px; }
.tfd-option-grid { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 14px; }
.tfd-option-card { position: relative; min-height: 162px; background: #121212; border: 1px solid var(--tfd-border); border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; text-align: center; }
.tfd-option-card { cursor: pointer; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.tfd-option-card.is-selected { border-color: var(--tfd-red); background: #171717; box-shadow: 0 0 0 1px rgba(189, 30, 35, .2); }
.tfd-option-card.is-selected::after { content: "✓"; position: absolute; top: 12px; right: 14px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: var(--tfd-red); color: #fff; font-size: 15px; font-weight: 900; z-index: 3; }
.tfd-option-card h4 { color: #ededf1; margin: 13px 0 14px; font-size: 14px; text-transform: uppercase; }
.tfd-option-card button { appearance: none; border: 1px solid #252525; color: var(--tfd-muted); background: #101010; border-radius: 18px; padding: 5px 12px; font-size: 12px; cursor: pointer; }
.tfd-option-card button:disabled { opacity: .5; cursor: default; }
.tfd-option-detail { display: inline-flex; justify-content: center; }
.tfd-modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: start center; overflow-y: auto; padding: clamp(88px, 10vh, 120px) 24px 24px; }
.tfd-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(2px); }
.tfd-modal-dialog { position: relative; width: min(720px, 100%); max-height: calc(100vh - clamp(112px, 12vh, 144px)); overflow: auto; background: #111111; border: 1px solid #2a2a2a; box-shadow: 0 24px 60px rgba(0,0,0,.45); padding: 24px; }
.tfd-modal-close { position: absolute; top: 10px; right: 12px; appearance: none; border: 0; background: transparent; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.tfd-modal-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding-right: 28px; }
.tfd-modal-icon { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.tfd-modal-icon .tfd-option-img,
.tfd-modal-icon .tfd-card-image { max-width: 52px; max-height: 52px; }
.tfd-modal-icon .tfd-fallback-icon { width: 42px; height: 42px; font-size: 36px; }
.tfd-modal-head h3 { margin: 0; color: #fff; font-family: var(--bs-font-heading, "Chakra Petch", sans-serif); font-size: 28px; line-height: 1.1; }
.tfd-modal-body { color: #e8e8ec; font-size: 15px; line-height: 1.6; }
.tfd-modal-body p,
.tfd-modal-body ul,
.tfd-modal-body ol,
.tfd-modal-body h2,
.tfd-modal-body h3,
.tfd-modal-body h4 {
    margin: 0 0 10px;
}
.tfd-modal-body p:last-child,
.tfd-modal-body ul:last-child,
.tfd-modal-body ol:last-child,
.tfd-modal-body h2:last-child,
.tfd-modal-body h3:last-child,
.tfd-modal-body h4:last-child {
    margin-bottom: 0;
}
.tfd-modal-body ul,
.tfd-modal-body ol {
    padding-left: 18px;
}
.tfd-modal-body h2,
.tfd-modal-body h3,
.tfd-modal-body h4 {
    font-family: var(--bs-font-heading, "Chakra Petch", sans-serif);
    font-size: 18px;
    color: #fff;
}
body.tfd-modal-open { overflow: hidden; }
.tfd-offcanvas { position: fixed; inset: 0; z-index: 1250; }
.tfd-offcanvas-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.62); opacity: 0; transition: opacity .22s ease; }
.tfd-offcanvas-panel { position: absolute; top: 0; right: 0; width: min(520px, 100vw); height: 100vh; background: #121212; border-left: 1px solid var(--tfd-border); box-shadow: -20px 0 50px rgba(0,0,0,.35); padding: 28px 24px 24px; overflow-y: auto; transform: translateX(100%); transition: transform .28s cubic-bezier(.22, 1, .36, 1); }
.tfd-offcanvas.is-open .tfd-offcanvas-backdrop { opacity: 1; }
.tfd-offcanvas.is-open .tfd-offcanvas-panel { transform: translateX(0); }
.tfd-offcanvas-close { position: absolute; top: 10px; right: 14px; appearance: none; border: 0; background: transparent; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.tfd-offcanvas-head { margin-bottom: 22px; padding-right: 28px; }
.tfd-offcanvas-head h3 { margin: 0 0 8px; color: #fff; font-family: var(--bs-font-heading, "Chakra Petch", sans-serif); font-size: 28px; line-height: 1.1; }
.tfd-offcanvas-head p { margin: 0; color: var(--tfd-muted); font-size: 15px; line-height: 1.5; }
.tfd-inquiry-form { display: grid; gap: 16px; }
.tfd-inquiry-summary { display: grid; gap: 10px; margin-bottom: 6px; }
.tfd-inquiry-box { border: 1px solid var(--tfd-border); background: #0f0f0f; padding: 14px 16px; }
.tfd-inquiry-box span { display: block; margin-bottom: 6px; color: var(--tfd-muted); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; }
.tfd-inquiry-box strong { display: block; color: #f0f0f3; font-size: 16px; line-height: 1.45; font-family: var(--bs-font-heading, "Chakra Petch", sans-serif); }
.tfd-inquiry-form label { display: grid; gap: 7px; }
.tfd-inquiry-form label > span { color: #f0f0f3; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tfd-inquiry-form label > span strong { color: var(--tfd-red); font-weight: 900; }
.tfd-inquiry-form input,
.tfd-inquiry-form textarea { width: 100%; border: 1px solid var(--tfd-border); background: #0f0f0f; color: #f0f0f3; padding: 12px 14px; font-size: 15px; font-family: var(--bs-font-body, "Mulish", sans-serif); outline: none; }
.tfd-inquiry-form textarea { resize: vertical; min-height: 130px; }
.tfd-inquiry-form input:focus,
.tfd-inquiry-form textarea:focus { border-color: var(--tfd-red); box-shadow: 0 0 0 1px rgba(189, 30, 35, .2); }
.tfd-inquiry-actions { display: flex; justify-content: flex-start; padding-top: 4px; }
.tfd-inquiry-submit { appearance: none; border: 1px solid var(--tfd-red); background: var(--tfd-red); color: #fff; padding: 12px 20px; font-size: 15px; font-weight: 800; font-family: var(--bs-font-heading, "Chakra Petch", sans-serif); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
body.tfd-offcanvas-open { overflow: hidden; }
.tfd-badge { position: absolute; top: 0; right: 0; background: var(--tfd-red); color: #fff; padding: 4px 8px; font-size: 10px; font-weight: 800; border-radius: 0 4px 0 3px; }
.tfd-ribbon {
    --f: .5em;
    position: absolute;
    top: 0;
    right: 0;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.8;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding-inline: 1lh;
    padding-bottom: var(--f);
    border-image: conic-gradient(#0008 0 0) 51% / var(--f);
    clip-path: polygon(
        100% calc(100% - var(--f)),
        100% 100%,
        calc(100% - var(--f)) calc(100% - var(--f)),
        var(--f) calc(100% - var(--f)),
        0 100%,
        0 calc(100% - var(--f)),
        999px calc(100% - var(--f) - 999px),
        calc(100% - 999px) calc(100% - var(--f) - 999px)
    );
    transform: translate(calc((1 - cos(45deg)) * 100%), -100%) rotate(45deg);
    transform-origin: 0% 100%;
    background-color: #bd1e23;
    z-index: 2;
}
.tfd-free-disclaimer { margin-top: 12px; font-size: 11px; color: var(--tfd-muted, #888); }
.tfd-option-icon { width: 58px; height: 58px; background: transparent; border-radius: 0; display: flex; align-items: center; justify-content: center; }
.tfd-option-img { max-width: 38px; max-height: 38px; object-fit: contain; }
.tfd-option-icon .tfd-card-image,
.tfd-option-img {
    filter: brightness(0) invert(1);
}

.tfd-ecu-grid { display: grid; grid-template-columns: repeat(2, minmax(320px, 1fr)); gap: 16px; }
.tfd-ecu-card { background: #121212; border: 1px solid var(--tfd-border); border-radius: 4px; padding: 22px; }
.tfd-ecu-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.tfd-ecu-head h4 { margin: 0; color: #ededf1; font-size: 22px; }
.tfd-ecu-logo { width: 48px; height: 48px; object-fit: contain; background: #202020; border-radius: 3px; padding: 6px; }
.tfd-ecu-rows { display: grid; gap: 1px; }
.tfd-ecu-rows div { display: grid; grid-template-columns: 1fr auto; gap: 18px; background: #101010; padding: 15px 14px; color: #e6e6eb; font-size: 16px; }
.tfd-ecu-rows strong { font-weight: 600; color: #ececf1; }

.tfd-hints { display: grid; gap: 18px; }
.tfd-hint-card { background: #121212; border: 1px solid var(--tfd-border); border-radius: 4px; padding: 20px; }
.tfd-hint-card h4 { margin: 0 0 14px; display: flex; gap: 9px; align-items: center; color: #f0f0f3; font-size: 18px; }
.tfd-hint-card h4 .tfd-fallback-icon { color: var(--tfd-red); }
.tfd-hint-card p { color: var(--tfd-muted); margin: 0 0 16px; font-size: 16px; }
.tfd-hint-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, max-content)); gap: 14px; border-top: 1px solid #d7d7dc; padding-top: 18px; }
.tfd-hint-images img { max-width: 760px; width: 100%; height: auto; display: block; border: 1px solid var(--tfd-border); }

@media (max-width: 1400px) {
  .tfd-vehicle-widget { padding: 32px 0 64px; }
  .tfd-brand-grid { grid-template-columns: repeat(5, minmax(140px, 1fr)); }
  .tfd-list-grid.tfd-three { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
  .tfd-list-grid.tfd-six { grid-template-columns: repeat(4, minmax(220px, 1fr)); }
  .tfd-option-grid { grid-template-columns: repeat(4, minmax(150px, 1fr)); }
}
@media (max-width: 1100px) {
  .tfd-vehicle-widget { padding: 28px 0 56px; }
  .frame-type-tfdvehicleapi_vehicledatabase .frame-header { padding-top: 68px; }
  .tfd-crumbs { gap: 8px; margin-bottom: 20px; }
  .tfd-crumb { padding: 10px 14px; font-size: 15px; }
  .tfd-select-grid { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
  .tfd-type-grid, .tfd-brand-grid { grid-template-columns: repeat(3, minmax(140px, 1fr)); }
  .tfd-list-grid.tfd-six, .tfd-list-grid.tfd-four, .tfd-list-grid.tfd-three { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .tfd-engine-summary { grid-template-columns: 1fr; }
  .tfd-specs { grid-template-columns: repeat(3, 1fr); }
  .tfd-stage-grid { grid-template-columns: 1fr; }
  .tfd-option-grid { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
  .tfd-ecu-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .frame-type-tfdvehicleapi_vehicledatabase .frame-header { padding-top: 60px; }
  .tfd-vehicle-widget { padding: 24px 0 48px; min-height: 0; }
  .tfd-search-wrap { width: 100%; margin-bottom: 14px; }
  .tfd-select-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 14px; }
  .tfd-type-grid, .tfd-brand-grid { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
  .tfd-list-grid.tfd-six, .tfd-list-grid.tfd-four, .tfd-list-grid.tfd-three { grid-template-columns: 1fr; }
  .tfd-row-card { min-height: 60px; padding: 0 16px; font-size: 16px; }
  .tfd-model-card { min-height: 72px; font-size: 17px; }
  .tfd-engine-summary { padding: 18px; gap: 18px; }
  .tfd-engine-left { align-items: flex-start; }
  .tfd-engine-summary h3 { font-size: 24px; }
  .tfd-engine-meta { font-size: 14px; }
  .tfd-specs { grid-template-columns: 1fr; }
  .tfd-spec-card { min-height: 74px; }
  .tfd-stage-card { padding: 18px; min-height: 0; }
  .tfd-stage-head { grid-template-columns: 48px 1fr; gap: 12px; }
  .tfd-stage-head > strong { grid-column: 2; }
  .tfd-stage-head h4 { font-size: 20px; }
  .tfd-metric-top span,
  .tfd-metric-top strong { font-size: 15px; }
  .tfd-tabs { overflow-x: auto; overflow-y: hidden; padding-bottom: 2px; }
  .tfd-tab { white-space: nowrap; padding: 0 16px 14px; }
  .tfd-tab-panel { padding: 14px; }
  .tfd-option-grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .tfd-option-card { min-height: 156px; padding: 14px; }
  .tfd-ecu-card { padding: 18px; }
  .tfd-ecu-rows div { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 640px) {
  .tfd-vehicle-widget { padding: 24px 0 48px; }
  .frame-type-tfdvehicleapi_vehicledatabase .frame-header { padding-top: 52px; }
  .tfd-header h2 { font-size: 28px; }
  .tfd-header p { font-size: 16px; }
  .tfd-select-grid { grid-template-columns: 1fr; gap: 12px; }
  .tfd-select-field > span { font-size: 13px; }
  .tfd-select-wrap .variable-showcase {
      --ss-main-height: 42px;
      --ss-search-height: 40px;
  }
  .tfd-select-wrap .ss-main { min-height: 42px; }
  .tfd-crumbs { gap: 6px; margin-bottom: 16px; }
  .tfd-crumb { font-size: 13px; padding: 9px 12px; }
  .tfd-sep { display: none; }
  .tfd-type-grid, .tfd-brand-grid, .tfd-list-grid.tfd-six, .tfd-list-grid.tfd-four, .tfd-list-grid.tfd-three, .tfd-option-grid { grid-template-columns: 1fr; }
  .tfd-specs { grid-template-columns: 1fr; }
  .tfd-tile { min-height: 112px; gap: 14px; }
  .tfd-tile-large { min-height: 146px; }
  .tfd-icon-box, .tfd-logo-box { width: 58px; height: 58px; }
  .tfd-tile-title { font-size: 16px; }
  .tfd-row-card { min-height: 56px; font-size: 15px; }
  .tfd-model-card { min-height: 64px; font-size: 16px; }
  .tfd-engine-left { align-items: flex-start; gap: 14px; }
  .tfd-brand-logo { width: 64px; height: 64px; }
  .tfd-engine-summary h3 { font-size: 20px; }
  .tfd-stage-head { grid-template-columns: 42px 1fr; }
  .tfd-stage-icon { width: 42px; min-width: 42px; height: 42px; }
  .tfd-stage-icon-img, .tfd-stage-icon-svg { max-width: 36px; max-height: 36px; width: 36px; height: 36px; }
  .tfd-metric-top, .tfd-metric-values { gap: 10px; }
  .tfd-metric-values { font-size: 13px; }
  .tfd-stage-chart-wrap { min-height: 220px; }
  .tfd-stage-chart { height: 220px !important; }
  .tfd-diagram-legend { gap: 8px; font-size: 11px; }
  .tfd-option-card h4 { font-size: 15px; }
  .tfd-modal { padding: 72px 12px 12px; }
  .tfd-modal-dialog { max-height: calc(100vh - 84px); padding: 18px; }
  .tfd-modal-head { gap: 12px; margin-bottom: 14px; }
  .tfd-modal-icon { width: 52px; height: 52px; }
  .tfd-modal-head h3 { font-size: 22px; }
  .tfd-modal-body { font-size: 14px; }
  .tfd-offcanvas-panel { width: 100vw; padding: calc(env(safe-area-inset-top, 0px) + 18px) 16px calc(env(safe-area-inset-bottom, 0px) + 18px); }
  .tfd-offcanvas-close { top: calc(env(safe-area-inset-top, 0px) + 8px); right: 12px; }
  .tfd-offcanvas-head h3 { font-size: 24px; }
  .tfd-inquiry-actions { width: 100%; }
  .tfd-inquiry-submit { width: 100%; justify-content: center; text-align: center; }
  .tfd-ecu-head { gap: 10px; margin-bottom: 14px; }
  .tfd-ecu-head h4 { font-size: 18px; }
  .tfd-ecu-logo { width: 40px; height: 40px; }
  .tfd-ecu-rows div { padding: 12px; font-size: 14px; }
  .tfd-hint-images { grid-template-columns: 1fr; }
}

/* Stage Leistungsdiagramm */
.tfd-stage-diagram { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--tfd-border-soft); }
.tfd-diagram-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.tfd-diagram-head span { color: var(--tfd-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .18em; font-weight: 800; }
.tfd-diagram-head strong { color: #f0f0f3; font-size: 12px; }
.tfd-stage-chart-wrap { position: relative; min-height: 250px; }
.tfd-stage-chart { width: 100% !important; height: 250px !important; display: block; }
.tfd-stage-diagram svg { width: 100%; height: auto; display: block; background: #101010; border: 1px solid #242424; border-radius: 4px; }
.tfd-axis { stroke: #3a3a3a; stroke-width: 1; }
.tfd-grid-line { stroke: #262626; stroke-width: 1; stroke-dasharray: 4 6; }
.tfd-curve { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tfd-curve.is-original { stroke: #6d6d6d; stroke-width: 2; stroke-dasharray: 6 7; opacity: .65; }
.tfd-curve.is-red { stroke: var(--tfd-red); }
.tfd-curve.is-blue { stroke: var(--tfd-blue); }
.tfd-curve.is-green { stroke: var(--tfd-green); }
.tfd-chart-label { fill: var(--tfd-muted); font-size: 10px; letter-spacing: .12em; }
.tfd-diagram-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 9px; color: var(--tfd-muted); font-size: 12px; }
.tfd-diagram-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tfd-diagram-legend i { width: 18px; height: 3px; border-radius: 999px; display: inline-block; background: #6d6d6d; }
.tfd-diagram-legend i.is-original { background: #6d6d6d; }
.tfd-diagram-legend i.is-red { background: var(--tfd-red); }
.tfd-diagram-legend i.is-blue { background: var(--tfd-blue); }
.tfd-diagram-legend i.is-green { background: var(--tfd-green); }


/* Tuningfiles-Download.com Dark Theme Overrides */
.tfd-app { width: 100%; max-width: none; margin: 0; }
.tfd-header h2,
.tfd-engine-summary h3,
.tfd-stage-head h4,
.tfd-section-title,
.tfd-fuel-group h3,
.tfd-tab,
.tfd-option-card h4,
.tfd-ecu-head h4,
.tfd-hint-card h4 {
    font-family: var(--bs-font-heading, "Chakra Petch", sans-serif);
    text-transform: none;
}
.tfd-header h2 { font-size: 38px; font-weight: 800; letter-spacing: -.02em; }
.tfd-header p { font-size: 18px; color: #8f8f8f; }
.tfd-crumb { background: #252525; color: #d8d8d8; border-radius: 0; padding: 12px 18px; font-weight: 600; text-transform: uppercase; }
.tfd-crumb.is-active { background: var(--tfd-red); border-color: var(--tfd-red); color: #fff; }
.tfd-tile-title,
.tfd-row-card,
.tfd-engine-summary h3,
.tfd-stage-head h4,
.tfd-tab,
.tfd-option-card h4,
.tfd-ecu-head h4,
.tfd-hint-card h4,
.tfd-spec-card strong {
    font-family: var(--bs-font-heading, "Chakra Petch", sans-serif);
}
.tfd-search { border-color: var(--tfd-red); box-shadow: 0 0 0 1px rgba(207,32,39,.15); border-radius: 0; }
.tfd-tile,
.tfd-row-card,
.tfd-engine-summary,
.tfd-stage-card,
.tfd-tab-panel,
.tfd-option-card,
.tfd-ecu-card,
.tfd-hint-card,
.tfd-loading,
.tfd-error,
.tfd-empty { border-radius: 0; }
.tfd-tile:hover,
.tfd-row-card:hover { border-color: var(--tfd-red); background: #1b1b1b; }
.tfd-tile-title,
.tfd-row-card { font-weight: 700; }
.tfd-icon-box,
.tfd-logo-box,
.tfd-ecu-logo { border-radius: 0; background: #242424; }
.tfd-ecu-logo { border-radius: 0; background: #242424; }
.tfd-brand-logo { border-radius: 0; background: transparent; }
.tfd-fuel-group h3,
.tfd-section-title { font-size: 16px; letter-spacing: .16em; color: #8a8a8a; }
.tfd-stage-card { background: #131313; }
.tfd-stage-card:hover,
.tfd-stage-card:focus-visible { border-color: var(--tfd-red); background: #1a1a1a; box-shadow: 0 0 0 1px rgba(189, 30, 35, .14); }
.tfd-stage-card.is-selected:hover,
.tfd-stage-card.is-selected:focus-visible { border-color: var(--tfd-red); background: #171717; box-shadow: 0 0 0 1px rgba(189, 30, 35, .24); }
.tfd-stage-s { color: var(--tfd-red); }
.tfd-stage-head > strong { color: #fff; }
.tfd-metric-top strong { color: var(--tfd-red); }
.tfd-bar { border-radius: 0; background: #191919; height: 13px; }
.tfd-bar span { border-radius: 0; }
.tfd-tabs { gap: 0; }
.tfd-tab { padding: 0 22px 16px; text-transform: uppercase; letter-spacing: .09em; }
.tfd-tab.is-active { border-bottom-color: var(--tfd-red); }
.tfd-option-card { background: #151515; min-height: 170px; }
.tfd-option-card:hover,
.tfd-option-card:focus-visible { border-color: var(--tfd-red); background: #1a1a1a; box-shadow: 0 0 0 1px rgba(189, 30, 35, .14); }
.tfd-option-card.is-selected:hover,
.tfd-option-card.is-selected:focus-visible { border-color: var(--tfd-red); background: #171717; box-shadow: 0 0 0 1px rgba(189, 30, 35, .24); }
.tfd-option-card h4 { font-size: 16px; font-weight: 800; }
.tfd-option-icon { background: transparent; }
.tfd-badge { border-radius: 0; background: var(--tfd-red); }
.tfd-stage-diagram svg { border-radius: 0; background: #111; }
.tfd-chart-label { fill: #8a8a8a; }
.tfd-hint-images { border-top-color: #777; }
@media (max-width: 640px) {
  .tfd-vehicle-widget { padding: 24px 0 48px; }
  .frame-type-tfdvehicleapi_vehicledatabase .frame-header { padding-top: 52px; }
  .tfd-header h2 { font-size: 32px; }
}
