/* VT Wiki (includes/wiki.php). Colours and fonts come from the theme. */
/* The wiki uses the full page width, not the narrow reading column of ordinary pages. */
.entry-content:has(> .wk) { max-width: none; }
.wk { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.wk h2 { font-size: clamp(26px, 4vw, 38px); font-style: italic; margin: 0 0 8px; }
.wk h3 { margin: 18px 0 8px; }
.wk p { margin: 0 0 12px; }
.wk-muted { color: var(--muted); font-size: 14px; }
.wk-muted a { color: var(--red); }
.wk-lead { font-size: clamp(18px, 2.4vw, 22px); max-width: 60ch; }
.wk-strap { color: var(--muted); }
.wk-sec { border-top: 1px solid var(--line); padding-top: 26px; }
.wk-sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

.wk-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.wk-nav a { flex: 0 0 auto; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; }
.wk-nav a[aria-current] { background: var(--raise-red); border-color: var(--red); color: #fff; }

/* Hub */
.wk-engines { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.wk-engine { position: relative; overflow: hidden; display: grid; gap: 6px; padding: 24px; min-height: 230px; align-content: end; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 5px 0 var(--lip), 0 14px 28px rgba(0,0,0,.4); transition: border-color .2s, transform .2s; }
.wk-engine::before { content: ""; position: absolute; inset: -40% -40% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--red) 40%, transparent), transparent 70%); transition: transform .4s; }
.wk-engine:hover { border-color: var(--red); transform: translateY(-4px); }
.wk-engine:hover::before { transform: scale(1.5); }
.wk-engine-name { position: relative; font-family: var(--display); font-size: 54px; font-weight: 800; font-style: italic; line-height: 1; }
.wk-engine-strap { position: relative; font-weight: 600; }
.wk-go { position: relative; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--red); margin-top: 6px; }

/* Engine intro */
.wk-about { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; }
.wk-facts { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 6px 16px; align-self: start; }
.wk-facts div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.wk-facts div:last-child { border-bottom: 0; }
.wk-facts dt { color: var(--muted); }
.wk-facts dd { margin: 0; font-weight: 600; text-align: right; }
@media (max-width: 760px) { .wk-about { grid-template-columns: minmax(0, 1fr); } }

/* Power dial */
.wk-tabs { display: flex; gap: 8px; margin: 12px 0; }
.wk-tabs button { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--raise); color: var(--fg); font: inherit; font-weight: 600; cursor: pointer; }
.wk-tabs button[aria-selected="true"] { background: var(--raise-red); border-color: var(--red); color: #fff; }
.wk-dial { position: relative; max-width: 420px; margin: 8px auto 20px; }
.wk-dial svg { display: block; width: 100%; }
.wk-arc, .wk-arc-on { fill: none; stroke-width: 12; stroke-linecap: round; }
.wk-arc { stroke: var(--line); }
.wk-arc-on { stroke: var(--red); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--red) 70%, transparent)); transition: stroke-dashoffset .45s cubic-bezier(.2,.8,.3,1.1); }
.wk-tick { fill: var(--fg); }
.wk-needle { stroke: var(--fg); stroke-width: 3; stroke-linecap: round; transform-origin: 110px 110px; transition: transform .45s cubic-bezier(.2,.8,.3,1.25); }
.wk-hub { fill: var(--red); }
.wk-read { text-align: center; margin-top: -4px; display: grid; }
.wk-read-num { font-family: var(--display); font-size: 52px; font-weight: 800; line-height: 1; color: var(--fg); }
.wk-read small { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.wk-read-gain { color: var(--red); font-weight: 600; font-size: 14px; min-height: 22px; margin-top: 4px; }
.wk-slide { display: block; margin-top: 12px; }
.wk-slide input { width: 100%; accent-color: var(--red); height: 32px; cursor: grab; }
.wk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.wk-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wk-step { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; transition: border-color .2s, opacity .2s, background .2s; }
.wk-step p { margin: 8px 0 0; }
.wk-step.on { border-color: var(--red); background: linear-gradient(135deg, color-mix(in srgb, var(--red) 18%, var(--panel)), var(--panel) 65%); box-shadow: 0 0 18px rgba(227,20,31,.2); }
.wk-step-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.wk-bhp { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--red); white-space: nowrap; }
.wk-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; }
.wk-chips li { font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.wk-chips .tune { border-color: var(--red); }
.wk-chips .fuel { color: var(--muted); }

/* Race bars */
.wk-bars { display: grid; gap: 10px; margin-top: 12px; }
.wk-bar { display: grid; grid-template-columns: minmax(110px, 200px) minmax(0, 1fr) 84px; gap: 12px; align-items: center; font-size: 14px; }
.wk-track { display: block; height: 16px; border-radius: 999px; background: #0a0809; border: 1px solid var(--line); overflow: hidden; }
.wk-fill { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--red-deep), var(--red) 70%, #ff6a71); }
.wk-bar.done .wk-fill { box-shadow: 0 0 12px var(--red); }
.wk-bar-time { font-family: var(--mono); text-align: right; white-space: nowrap; font-weight: 700; color: var(--red); transition: opacity .2s; }
@media (max-width: 560px) { .wk-bar { grid-template-columns: minmax(0, 1fr) 84px; } .wk-bar-label { grid-column: 1 / -1; } .wk-track { grid-column: 1; } }

/* Tables and cards */
.wk-table { overflow-x: auto; }
.wk-table table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 14px; }
.wk-table th, .wk-table td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); }
.wk-table thead th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.wk-group th { color: var(--red); padding-top: 18px; }
.wk-cars { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.wk-car { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.wk-car.wide { grid-column: 1 / -1; }
.wk-car h3 { margin: 8px 0; }
.wk-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--red); font-weight: 700; }
.wk-timeline { list-style: none; margin: 14px 0 0; padding: 0 0 0 18px; border-left: 2px solid var(--red); display: grid; gap: 14px; }
.wk-timeline li { position: relative; }
.wk-timeline li::before { content: ""; position: absolute; left: -24px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); }
.wk-times { display: block; font-family: var(--mono); font-size: 13px; color: var(--red); margin-top: 2px; }

/* Service */
.wk-acc { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: var(--panel); }
.wk-acc summary { cursor: pointer; padding: 12px 14px; font-weight: 600; }
.wk-acc > ul, .wk-acc > p { margin: 0; padding: 0 14px 14px 32px; }
.wk-acc > p { padding-left: 14px; }
.wk-acc li { margin-bottom: 8px; }
.wk-partsearch { width: 100%; margin-bottom: 10px; }
.wk-parts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 0 20px; }
.wk-parts li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.wk-parts li[hidden] { display: none; }
.wk-parts code { font-family: var(--mono); color: var(--red); text-align: right; }
.wk-models { display: flex; flex-wrap: wrap; gap: 8px; }
.wk-models a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; text-decoration: none; }
.wk-models a:hover { border-color: var(--red); }

/* Slide in on scroll (only added by the script, and never with reduced motion). */
.wk-reveal { transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.3,1); }
.wk-hide { opacity: 0; transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) { .wk * { transition: none !important; animation: none !important; } }

/* Dyno results */
.wk-runs { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 12px; }
.wk-dynorun { display: grid; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.wk-run-hp { font-family: var(--display); font-weight: 800; font-size: 30px; color: var(--red); line-height: 1.1; }
.wk-run-bar { display: block; height: 6px; border-radius: 999px; background: #0a0809; overflow: hidden; }
.wk-run-bar span { display: block; height: 100%; width: var(--w); border-radius: 999px; background: linear-gradient(90deg, var(--red-deep), var(--red)); transition: width 1s cubic-bezier(.2,.8,.3,1) .2s; }
.wk-dynorun.wk-hide .wk-run-bar span { width: 0; }

/* The proof: dyno graphs, Draggy screenshots and press */
.wk-filter { display: flex; gap: 8px; margin: 12px 0; }
.wk-filter[hidden] { display: none; }
.wk-filter button { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--raise); color: var(--fg); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.wk-filter button[aria-pressed="true"] { background: var(--raise-red); border-color: var(--red); color: #fff; }
.wk-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 44%), 1fr)); gap: 12px; }
.wk-shot { display: grid; align-content: start; gap: 6px; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 13px; transition: border-color .2s, transform .2s, opacity .6s; }
.wk-shot[hidden] { display: none; }
.wk-shot:hover { border-color: var(--red); transform: translateY(-3px); }
.wk-shot img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: top; background: #fff; }
.wk-shot span { padding: 2px 10px 10px; }
.wk-box { max-width: min(760px, 94vw); max-height: 94vh; padding: 14px; color: var(--fg); background: var(--panel); border: 1px solid var(--red); border-radius: 16px; }
.wk-box::backdrop { background: rgba(0,0,0,.8); }
.wk-box img { display: block; width: 100%; max-height: 72vh; object-fit: contain; background: #fff; border-radius: 8px; }
.wk-box p { margin: 10px 0; font-weight: 600; }
.wk-box-nav { display: flex; justify-content: space-between; gap: 10px; }
.wk-box-x { position: absolute; top: 8px; right: 8px; z-index: 1; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--raise); color: var(--fg); font-size: 20px; line-height: 1; cursor: pointer; }

/* Dyno chart */
.wk-chart[hidden] { display: none; }
.wk-chart { margin: 12px 0 16px; }
.wk-chart-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.wk-chart-btns button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--raise); color: var(--fg); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.wk-chart-btns button i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.wk-chart-btns button[aria-pressed="false"] { opacity: .45; }
.wk-chart-btns button[aria-pressed="false"] i { background: none; box-shadow: inset 0 0 0 2px var(--c); }
.wk-chart-plot { position: relative; background: #0a0809; border: 1px solid var(--line); border-radius: 14px; padding: 8px; margin-bottom: 8px; }
.wk-chart-plot svg { display: block; width: 100%; height: auto; touch-action: pan-y; cursor: crosshair; }
.wk-g { stroke: rgba(255,255,255,.08); stroke-width: 1; }
.wk-t { fill: var(--muted); font-size: 12px; font-family: var(--mono); }
.wk-pw, .wk-tq { fill: none; stroke: var(--c); stroke-linejoin: round; stroke-linecap: round; }
.wk-pw { stroke-width: 3; filter: drop-shadow(0 0 3px var(--c)); }
.wk-tq { stroke-width: 1.5; opacity: .85; }
.wk-pw.draw, .wk-tq.draw { stroke-dasharray: 1; animation: wk-draw 1.6s ease-out both; }
@keyframes wk-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.wk-cross { stroke: #fff; stroke-width: 1; stroke-dasharray: 3 3; }
.wk-readout { position: absolute; top: 14px; right: 18px; display: grid; gap: 3px; padding: 8px 10px; font-size: 12px; background: rgba(12,10,11,.92); border: 1px solid var(--line); border-radius: 10px; pointer-events: none; }
.wk-readout.left { right: auto; left: 60px; }
.wk-readout[hidden] { display: none; }
.wk-readout div { display: grid; grid-template-columns: 10px 44px 52px 52px; gap: 6px; align-items: center; }
.wk-readout i { width: 9px; height: 9px; border-radius: 50%; }
.wk-readout b { text-align: right; font-family: var(--mono); font-weight: 600; }
@media (max-width: 640px) {
  .wk-readout, .wk-readout.left { position: static; margin-top: 8px; }
  .wk-readout div { grid-template-columns: 10px 1fr 60px 60px; }
}

/* Photos */
.wk-engine > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .3s, transform .5s; }
.wk-engine:hover > img { opacity: .75; transform: scale(1.05); }
.wk-engine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,10,11,.1) 20%, rgba(12,10,11,.92) 85%); }
.wk-engine > span { position: relative; z-index: 1; }
.wk-engine .wk-muted { color: var(--fg); opacity: .8; }
.wk-engine { min-height: 300px; }
.wk-banner { margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.wk-banner img { display: block; width: 100%; height: clamp(200px, 34vw, 400px); object-fit: cover; }
.wk-know, .wk-pics { display: grid; gap: 14px; margin-top: 14px; }
.wk-know { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.wk-pics { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.wk-know figure, .wk-pics figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.wk-know img, .wk-pics img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.wk-know figure:hover img, .wk-pics figure:hover img { transform: scale(1.04); }
.wk-know figcaption { display: grid; gap: 4px; padding: 14px 16px; font-size: 14px; color: var(--muted); }
.wk-know figcaption strong { color: var(--fg); font-size: 16px; }
.wk-pics figcaption { padding: 10px 12px; font-size: 13px; color: var(--muted); }
.wk-banner.small { max-width: 720px; }

/* Whole cars: tile and banner photos are never cropped by their boxes (owner, 2026-10-31). */
.wk-engine { min-height: 0; align-content: start; padding: 0 0 20px; }
.wk-engine::after { content: none; }
.wk-engine > img { position: static; display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; opacity: 1; }
.wk-engine:hover > img { opacity: 1; transform: none; }
.wk-engine > span { padding-inline: 20px; }
.wk-engine-name { font-size: 44px; margin-top: 10px; }
.wk-banner img { height: auto; aspect-ratio: auto; }
.wk-banner { max-width: 820px; }

/* Build planner (owner, 2026-11-02) */
.wk-plan-bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(64px, 1fr); gap: 8px; align-items: end; height: 220px; margin: 18px 0 20px; overflow-x: auto; padding-bottom: 4px; }
.wk-plan-bar { height: 100%; display: grid; grid-template-rows: 1fr auto auto; align-items: end; gap: 2px; padding: 0; border: 0; background: none; color: var(--fg); font: inherit; cursor: pointer; text-align: center; }
.wk-plan-col { position: relative; display: block; height: var(--h); border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, color-mix(in srgb, var(--red) 55%, var(--panel)), var(--panel)); border: 1px solid var(--line); transition: height .7s cubic-bezier(.2,.8,.3,1.1), box-shadow .2s, border-color .2s; }
.wk-plan.live:not(.grown) .wk-plan-col { height: 8%; }
.wk-plan-bar:nth-child(2) .wk-plan-col { transition-delay: .06s; } .wk-plan-bar:nth-child(3) .wk-plan-col { transition-delay: .12s; } .wk-plan-bar:nth-child(4) .wk-plan-col { transition-delay: .18s; } .wk-plan-bar:nth-child(5) .wk-plan-col { transition-delay: .24s; } .wk-plan-bar:nth-child(6) .wk-plan-col { transition-delay: .3s; } .wk-plan-bar:nth-child(7) .wk-plan-col { transition-delay: .36s; }
.wk-plan-n { position: absolute; left: 0; right: 0; top: 6px; font-size: 11px; color: rgba(255,255,255,.8); }
.wk-plan-bar strong { font-family: var(--display); font-size: 20px; font-style: italic; line-height: 1.1; }
.wk-plan-bar small { color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.wk-plan-bar:hover .wk-plan-col { border-color: var(--red); }
.wk-plan-bar[aria-selected="true"] .wk-plan-col { background: linear-gradient(180deg, var(--red), color-mix(in srgb, var(--red) 35%, var(--panel))); border-color: var(--red); box-shadow: 0 0 22px rgba(227,20,31,.45); }
.wk-plan-bar[aria-selected="true"] strong { color: var(--red); }
.wk-plan-level { display: grid; gap: 16px; }
.wk-plan:not(.live) .wk-plan-level { border-top: 1px solid var(--line); padding-top: 16px; }
.wk-plan-head { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.wk-plan-head > div:first-child { flex: 1 1 320px; }
.wk-plan-head h3 { margin: 0 0 6px; font-family: var(--display); font-size: 30px; font-style: italic; }
.wk-plan-gain { display: grid; text-align: right; align-content: start; }
.wk-plan-gain .wk-num { font-family: var(--display); font-size: 46px; font-weight: 800; color: var(--red); line-height: 1; }
.wk-plan-gain .wk-num::before { content: "+"; }
.wk-plan-gain small { text-transform: uppercase; letter-spacing: .1em; font-size: 11px; color: var(--muted); }
.wk-plan-race .wk-bar { margin-bottom: 6px; }
.wk-plan-race .wk-bar.hot .wk-fill { background: var(--red); }
.wk-plan-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.wk-plan-opt { display: grid; gap: 10px; align-content: start; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 22px rgba(0,0,0,.3); }
.wk-plan-opt.in { animation: wk-plan-in .45s both cubic-bezier(.2,.8,.3,1); }
@keyframes wk-plan-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.wk-plan-opt-head { display: grid; gap: 2px; }
.wk-plan-opt-head strong { font-size: 18px; }
.wk-plan-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--red); font-weight: 700; }
.wk-plan-parts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.wk-plan-parts li { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }
.wk-plan-parts li.off { opacity: .28; text-decoration: line-through; }
.wk-plan-parts li.on { border-color: var(--red); background: color-mix(in srgb, var(--red) 22%, transparent); color: #fff; font-weight: 600; }
.wk-plan-parts li.on.lit { animation: wk-lit .5s both; animation-delay: inherit; }
@keyframes wk-lit { 0% { transform: scale(.7); opacity: 0; box-shadow: 0 0 0 rgba(227,20,31,0); } 60% { transform: scale(1.08); opacity: 1; box-shadow: 0 0 14px rgba(227,20,31,.7); } 100% { transform: none; box-shadow: none; } }
.wk-plan-meta { margin: 0; display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.wk-plan-fuel, .wk-road, .wk-track-only { padding: 3px 10px; border-radius: 6px; background: var(--raise); }
.wk-road { color: #3fb950; } .wk-track-only { color: #ffb020; }
.wk-plan-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.wk-plan-notes li::before { display: inline-block; width: 1.3em; font-weight: 800; }
.wk-plan-notes .good::before { content: "+"; color: #3fb950; }
.wk-plan-notes .watch::before { content: "!"; color: #ffb020; }
.wk-plan-opt .btn { justify-self: start; }
@media (max-width: 600px) { .wk-plan-bars { height: 180px; grid-auto-columns: minmax(44px, 1fr); gap: 6px; } .wk-plan-bar strong { font-size: 16px; } .wk-plan-gain { text-align: left; } }
@media (prefers-reduced-motion: reduce) { .wk-plan-col { transition: none; } }
.wk-plan-why { margin: 0; font-size: 14px; line-height: 1.5; }
.wk-plan-why strong { color: var(--red); }
.wk-plan-explain { margin: 14px 0 0; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 12px; padding: 12px 16px; }
.wk-plan-explain summary { cursor: pointer; font-weight: 700; }
.wk-plan-explain p { margin: 10px 0 0; font-size: 15px; line-height: 1.55; }

/* The Velocity Tuning iDrive app (owner, 2026-11-02) */
.wk-app { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px 28px; align-items: start; }
.wk-app-text h2 { margin-top: 6px; }
.wk-app-strap { font-size: 18px; font-weight: 700; color: var(--red); }
.wk-app-feats, .wk-app-fine, .wk-app > p { grid-column: 1 / -1; }
.wk-idrive { margin: 0; }
.wk-idrive-screen { position: relative; min-height: 330px; padding: 14px; border-radius: 18px; background: radial-gradient(120% 140% at 0% 0%, #1d2330, #07090d 70%); border: 1px solid #2a3140; box-shadow: inset 0 0 0 6px #0b0d12, 0 18px 40px rgba(0,0,0,.55); display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; color: #e9eef6; overflow: hidden; }
.wk-idrive-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--display); font-style: italic; letter-spacing: .06em; }
.wk-idrive-live { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--red); color: #fff; animation: wk-pulse 1.6s infinite; }
@keyframes wk-pulse { 50% { opacity: .45; } }
.wk-idrive-maps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wk-idrive-map, .wk-idrive-btn { font: inherit; font-size: 13px; font-weight: 700; color: #cfd6e2; background: #141924; border: 1px solid #2a3140; border-radius: 10px; padding: 9px 6px; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.wk-idrive-map.on, .wk-idrive-btn.on { background: linear-gradient(180deg, var(--red), #8c0a12); border-color: var(--red); color: #fff; box-shadow: 0 0 16px rgba(227,20,31,.45); }
.wk-idrive-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wk-idrive-tiles div { display: grid; align-content: center; min-height: 78px; justify-items: center; background: #0f131b; border: 1px solid #222938; border-radius: 10px; padding: 6px; }
.wk-idrive-tiles small { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: #8d97a8; }
.wk-idrive-tiles b { font-family: var(--display); font-size: clamp(22px, 3.4vw, 34px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.wk-idrive-tiles i { font-style: normal; font-size: 11px; color: #8d97a8; }
.wk-idrive-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wk-idrive-banner { position: absolute; left: 14px; right: 14px; top: 44%; text-align: center; padding: 10px; border-radius: 10px; background: #e3141f; color: #fff; font-family: var(--display); font-size: 24px; font-style: italic; letter-spacing: .08em; box-shadow: 0 0 30px rgba(227,20,31,.7); }
.wk-idrive figcaption { margin-top: 8px; }
.wk-app-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.wk-app-feat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.wk-app-feat strong { display: block; margin-bottom: 4px; }
.wk-app-feat p { margin: 0; font-size: 14px; color: var(--muted); }
.wk-app-fine { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; display: grid; gap: 4px; }
@media (max-width: 860px) { .wk-app { grid-template-columns: minmax(0, 1fr); } .wk-idrive-screen { aspect-ratio: auto; } .wk-idrive-tiles { grid-template-columns: repeat(2, 1fr); } }

/* Just the sound: a midpipe without a tune */
.wk-sound { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.wk-video { position: relative; display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: #000; }
.wk-video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .4s, opacity .2s; }
.wk-video:hover img { transform: scale(1.04); opacity: 1; }
.wk-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: var(--red); box-shadow: 0 0 26px rgba(227,20,31,.6); }
.wk-play::after { content: ""; position: absolute; left: 29px; top: 22px; border-left: 22px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.wk-video-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; font-weight: 700; }
@media (max-width: 760px) { .wk-sound { grid-template-columns: minmax(0, 1fr); } }

/* The build planner's car diagram */
.wk-plan { container-type: inline-size; }
.wk-viz { margin: 18px 0 6px; padding: 16px; border-radius: 18px; background: radial-gradient(110% 120% at 20% 0%, color-mix(in srgb, var(--red) 10%, var(--panel)), var(--panel) 60%); border: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 8px 20px; align-items: center; --flow: 2s; }
.wk-viz-head { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.wk-viz-name { font-family: var(--display); font-size: 22px; font-style: italic; }
.wk-viz-power { font-family: var(--display); font-size: 26px; font-weight: 800; color: var(--red); }
.wk-viz-svg { width: 100%; height: auto; display: block; }
.wk-viz-svg text { font: 700 12px/1 system-ui, sans-serif; fill: #cfd6e2; text-anchor: middle; }
.wk-viz-svg .lbl { font-size: 11px; font-weight: 600; fill: var(--muted); opacity: .35; transition: opacity .3s; }
.vz rect, .vz circle:not(.cyl), .vz path, .vz-silencer rect, .vz-tank rect { fill: #151a23; stroke: #3a4252; stroke-width: 2; transition: stroke .3s, fill .3s, opacity .3s, filter .3s; }
.vz .cyl { fill: #0d1017; stroke: #2c3341; stroke-width: 2; }
.vz path { fill: none; }
.vz[data-part="gearbox"] path { fill: #151a23; }
.vz-pipe { fill: none !important; stroke-width: 12 !important; stroke-linecap: round; }
.vz-pipe.base, .vz-silencer .vz-pipe { stroke: #2c3341; }
.vz-line, .vz-wire { fill: none; stroke: #3a4252; stroke-width: 3; stroke-dasharray: 6 5; }
.vz-line.fuel { stroke: #ffb020; opacity: .6; }
.vz.on rect, .vz.on circle:not(.cyl), .vz.on path { stroke: var(--red); fill: color-mix(in srgb, var(--red) 22%, #151a23); filter: url(#wkGlow); }
.vz.on .vz-pipe { stroke: var(--red); }
.vz.on path { fill: none; }
.vz[data-part="gearbox"].on path { fill: color-mix(in srgb, var(--red) 22%, #151a23); }
.vz.on .lbl { opacity: 1; fill: #fff; }
.vz.on .cyl { stroke: var(--red); }
.vz.gone { opacity: 0; pointer-events: none; }
.vz.twins.stock circle { stroke: #6a7385; }
.vz.twins .tlabel { opacity: 1; }
.vz.single.on circle { animation: wk-spin 1s linear infinite; transform-origin: 242px 262px; stroke-dasharray: 18 8; }
@keyframes wk-spin { to { transform: rotate(360deg); } }
.vz-flow { fill: none; stroke: #ffd4b0; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 22; opacity: .85; animation: wk-flow var(--flow) linear infinite; }
@keyframes wk-flow { to { stroke-dashoffset: -240; } }
.vz-silencer .lbl { opacity: .5; }
.wk-viz-gauges { display: grid; gap: 10px; }
.wk-gauge span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.wk-gauge-bar { height: 14px; border-radius: 999px; background: #0e1118; border: 1px solid var(--line); overflow: hidden; margin-top: 4px; }
.wk-gauge-bar i { display: block; height: 100%; border-radius: 999px; transition: width .6s cubic-bezier(.2,.8,.3,1.1), background .3s; }
.wk-gauge-bar .need { background: linear-gradient(90deg, #ffb020, #ff6a2b); }
.wk-gauge-bar .give { background: linear-gradient(90deg, #2e9e57, #3fb950); }
.wk-gauge-bar .back { background: linear-gradient(90deg, #6a7385, #9aa3b2); }
.wk-viz.lean .wk-gauge-bar .need { background: var(--red); box-shadow: 0 0 14px rgba(227,20,31,.8); animation: wk-pulse .8s infinite; }
.wk-viz-fuel { margin: 0; font-size: 14px; line-height: 1.45; }
.wk-viz-fuel b { color: #3fb950; }
.wk-viz.lean .wk-viz-fuel b { color: var(--red); }
.wk-viz-try { justify-self: start; font-size: 13px; }
.wk-plan.live .wk-plan-opt { cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.wk-plan.live .wk-plan-opt:hover { transform: translateY(-2px); }
.wk-plan-opt.picked { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), 0 10px 26px rgba(227,20,31,.25); }
@container (max-width: 760px) { .wk-viz { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .vz-flow, .vz.single.on circle { animation: none; } }

/* Limits instead of the fuel gauge (owner, 2026-11-02) */
.vz-internals .bore { fill: #0d1017; stroke: #2c3341; stroke-width: 1.5; filter: none; }
.vz-internals .piston { fill: #6a7385; stroke: none; filter: none; }
.vz-internals .rod, .vz-internals .crank { fill: none; stroke: #6a7385; stroke-width: 3; stroke-linecap: round; filter: none; }
.vz.on .vz-internals .piston { fill: #ff8a8f; }
.vz.on .vz-internals .rod, .vz.on .vz-internals .crank { stroke: #ff8a8f; }
.vz.on .vz-internals .bore { stroke: var(--red); fill: #0d1017; }
.vz .clutch { fill: #0d1017 !important; stroke: #6a7385 !important; stroke-dasharray: 5 3; }
[data-limit].limit .vz-internals .piston, [data-limit].limit .vz-internals .rod, [data-limit].limit .vz-internals .crank { fill: #ffb020; stroke: #ffb020; animation: wk-pulse 1s infinite; }
[data-limit="engine"].limit > rect { stroke: #ffb020; }
[data-limit="clutch"].limit .clutch { stroke: #ffb020 !important; animation: wk-pulse 1s infinite; }
[data-limit="turbo"].limit circle, [data-limit="fuel"].limit rect { stroke: #ffb020 !important; animation: wk-pulse 1s infinite; }
[data-limit="fuel"].limit .vz-line { stroke: #ffb020; opacity: 1; }
[data-limit].over .vz-internals .piston, [data-limit].over .vz-internals .rod, [data-limit].over circle, [data-limit].over rect, [data-limit].over .vz-line { stroke: #ff2b36 !important; fill: #ff2b36; }
[data-limit].over.vz-tank rect { fill: color-mix(in srgb, #ff2b36 30%, #151a23); }
.wk-viz-limits { display: grid; gap: 10px; }
.wk-viz-sum { margin: 0 0 2px; font-size: 14px; line-height: 1.45; }
.wk-viz-sum b { color: #ffb020; } .wk-viz-sum .good { color: #3fb950; } .wk-viz-sum .bad { color: var(--red); }
.wk-limit-top { display: flex; align-items: baseline; gap: 8px; }
.wk-limit-top strong { font-size: 14px; }
.wk-limit-top small { color: var(--muted); font-size: 12px; }
.wk-limit-top em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); }
.wk-limit .wk-gauge-bar i { background: linear-gradient(90deg, #2e9e57, #3fb950); }
.wk-limit[data-state="near"] .wk-gauge-bar i { background: linear-gradient(90deg, #3fb950, #ffb020); }
.wk-limit[data-state="max"] .wk-gauge-bar i { background: linear-gradient(90deg, #ffb020, #ff6a2b); box-shadow: 0 0 10px rgba(255,176,32,.6); }
.wk-limit[data-state="max"] em { color: #ffb020; font-weight: 700; }
.wk-limit[data-state="over"] .wk-gauge-bar i { background: var(--red); box-shadow: 0 0 14px rgba(227,20,31,.8); animation: wk-pulse .8s infinite; }
.wk-limit[data-state="over"] em { color: var(--red); font-weight: 700; }
.wk-limit.bp .wk-gauge-bar i { background: linear-gradient(90deg, #6a7385, #9aa3b2); }

/* What a route needs (owner, 2026-11-02): green ethanol, blue methanol, metal built engine, red turbo */
.wk-need { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; flex: none; }
.wk-need svg { width: 18px; height: 18px; }
.wk-need .ic-t { font: 800 8px/1 system-ui, sans-serif; text-anchor: middle; fill: #fff; }
.wk-need.need-ethanol { background: rgba(63,185,80,.16); box-shadow: inset 0 0 0 1px rgba(63,185,80,.5); }
.wk-need.need-ethanol path { fill: #3fb950; }
.wk-need.need-meth { background: rgba(56,139,253,.16); box-shadow: inset 0 0 0 1px rgba(56,139,253,.55); }
.wk-need.need-meth path { fill: #388bfd; }
.wk-need.need-engine { background: linear-gradient(145deg, rgba(220,226,235,.22), rgba(120,128,140,.18)); box-shadow: inset 0 0 0 1px rgba(200,206,216,.5); }
.wk-need.need-engine rect { fill: #c9ced8; }
.wk-need.need-engine .ic-ring { stroke: #7d8594; stroke-width: 1.2; fill: none; }
.wk-need.need-engine .ic-rod { stroke: #c9ced8; stroke-width: 2.4; stroke-linecap: round; }
.wk-need.need-engine .ic-pin { fill: none; stroke: #c9ced8; stroke-width: 2; }
.wk-need.need-turbo { background: rgba(227,20,31,.16); box-shadow: inset 0 0 0 1px rgba(227,20,31,.55); }
.wk-need.need-turbo .ic-snail { fill: none; stroke: var(--red); stroke-width: 2.4; stroke-linecap: round; }
.wk-need.need-turbo circle { fill: var(--red); }
.wk-need.need-turbo .ic-blade { stroke: var(--red); stroke-width: 1.6; stroke-linecap: round; }
.wk-plan-opt.picked .wk-need.need-turbo svg, .wk-plan-bar[aria-selected="true"] .wk-need.need-turbo svg { animation: wk-spin 1.4s linear infinite; }
.wk-opt-needs { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.wk-plan-needs { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; padding: 0 3px; }
.wk-plan-needs .wk-need { width: 20px; height: 20px; border-radius: 6px; background-color: rgba(0,0,0,.45); }
.wk-plan-needs .wk-need svg { width: 14px; height: 14px; }
.wk-needs-key { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.wk-needs-key > span { display: inline-flex; align-items: center; gap: 6px; }

/* A plain "at x power, limited by, fix it with" panel in place of the meters (owner, 2026-11-02) */
.wk-lim-at { display: grid; }
.wk-lim-at small { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: var(--muted); }
.wk-lim-at b { font-family: var(--display); font-size: 38px; font-style: italic; line-height: 1; color: var(--red); }
.wk-lim-row { border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; }
.wk-lim-row p { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.4; }
.wk-lim-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.wk-lim-row.lim { background: rgba(255,176,32,.1); border: 1px solid rgba(255,176,32,.45); }
.wk-lim-row.lim .wk-lim-tag { color: #ffb020; }
.wk-lim-row.fix { background: rgba(63,185,80,.1); border: 1px solid rgba(63,185,80,.45); }
.wk-lim-row.fix .wk-lim-tag { color: #3fb950; }
.wk-viz.lean .wk-lim-row.lim { background: rgba(227,20,31,.14); border-color: var(--red); }
.wk-viz.lean .wk-lim-row.lim .wk-lim-tag { color: var(--red); }
.wk-lim-next { justify-self: start; }
.vz[data-part="dp"].limit .vz-pipe, .vz[data-part="mid"].limit .vz-pipe { stroke: #ffb020 !important; animation: wk-pulse 1s infinite; }
.wk-plan-limit { margin: 0; display: grid; gap: 6px; font-size: 14px; }
.wk-plan-limit span { border-radius: 8px; padding: 6px 10px; }
.wk-plan-limit b { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.wk-plan-limit .lim { background: rgba(255,176,32,.08); } .wk-plan-limit .lim b { color: #ffb020; }
.wk-plan-limit .fix { background: rgba(63,185,80,.08); } .wk-plan-limit .fix b { color: #3fb950; }
.wk-plan-limit .top { background: rgba(227,20,31,.1); } .wk-plan-limit .top b { color: var(--red); font-size: 12px; }
.wk-need.need-gearbox { background: rgba(255,176,32,.14); box-shadow: inset 0 0 0 1px rgba(255,176,32,.55); }
.wk-need.need-gearbox .ic-cog { fill: #ffb020; }
.wk-need.need-gearbox .ic-hole { fill: #1a1408; }
.wk-plan-opt.picked .wk-need.need-gearbox svg, .wk-plan-bar[aria-selected="true"] .wk-need.need-gearbox svg { animation: wk-spin 3s linear infinite; }

/* Fuel limits / Air limits (owner, 2026-11-02) */
.wk-limits-box h3 { margin: 0 0 10px; font-family: var(--display); font-style: italic; font-size: 22px; }
.wk-limits-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.wk-limits-tabs button { flex: 1 1 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--raise); color: var(--fg); font: inherit; font-weight: 800; letter-spacing: .04em; cursor: pointer; text-transform: uppercase; }
.wk-limits-tabs button.fuel[aria-selected="true"] { background: linear-gradient(180deg, #2e9e57, #1d6b3a); border-color: #3fb950; color: #fff; }
.wk-limits-tabs button.air[aria-selected="true"] { background: linear-gradient(180deg, #388bfd, #1f5fbf); border-color: #58a6ff; color: #fff; }
.wk-limits-panel h4 { margin: 0 0 8px; }
.wk-limits-box.live .wk-limits-panel h4 { display: none; }
.wk-limits-panel ol { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.wk-limits-panel li { font-size: 15px; line-height: 1.55; }
.wk-limits-panel.fuel li::marker { color: #3fb950; font-weight: 800; }
.wk-limits-panel.air li::marker { color: #58a6ff; font-weight: 800; }
.wk-limits-box:not(.live) .wk-limits-panel + .wk-limits-panel { margin-top: 16px; }

/* The two halves of an engine page (owner, 2026-11-02) */
.wk-halves { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; scroll-margin-top: 80px; }
.wk-halves a { display: grid; gap: 4px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; color: var(--fg); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 5px 0 var(--lip); transition: border-color .2s, transform .2s, background .2s; }
.wk-halves a b { font-family: var(--display); font-size: clamp(20px, 3vw, 28px); font-style: italic; }
.wk-halves a small { color: var(--muted); }
.wk-halves a:hover { border-color: var(--red); transform: translateY(-2px); }
.wk-halves.live a[aria-current="true"] { background: linear-gradient(135deg, color-mix(in srgb, var(--red) 30%, var(--panel)), var(--panel) 70%); border-color: var(--red); }
.wk-halves.live a[aria-current="true"] b { color: #fff; }
/* minmax(0, 1fr), like .wk: a plain grid column grows to its widest content, which made the page wider than an iPhone
   from the build planner down, so it shifted sideways mid-scroll (owner, 2026-11-02). */
.wk-half { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; scroll-margin-top: 80px; }
@media (max-width: 600px) { .wk-halves { grid-template-columns: 1fr; } }

/* Service & health */
.wk-miles label { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.wk-miles span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.wk-miles input { width: 100%; accent-color: var(--red); }
.wk-miles b { font-family: var(--display); font-size: 22px; font-style: italic; color: var(--red); white-space: nowrap; }
.wk-lanes { display: grid; gap: 14px; margin-top: 14px; }
.wk-lane { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.wk-lane.vt { border-color: color-mix(in srgb, var(--red) 55%, var(--line)); }
.wk-lane-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.wk-lane-head small { color: var(--muted); }
.wk-lane.vt .wk-lane-head strong { color: var(--red); }
.wk-track-m { position: relative; height: 18px; margin: 14px 4px; border-radius: 999px; background: #0e1118; border: 1px solid var(--line); }
.wk-mk { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; transition: transform .2s, opacity .2s; }
.wk-mk.r0 { background: #9aa3b2; } .wk-mk.r1 { background: #3fb950; } .wk-mk.r2 { background: #ffb020; } .wk-mk.r3 { background: #58a6ff; }
.wk-mk.done { opacity: .3; }
.wk-mk.due { transform: scale(1.6); box-shadow: 0 0 10px currentColor; }
.wk-now { position: absolute; top: -6px; bottom: -6px; width: 3px; margin-left: -1px; background: var(--red); border-radius: 2px; box-shadow: 0 0 10px rgba(227,20,31,.7); transition: left .15s; }
.wk-lane-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.wk-lane-list li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; padding-left: 18px; position: relative; }
.wk-lane-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; border-radius: 50%; }
.wk-lane-list li.r0::before { background: #9aa3b2; } .wk-lane-list li.r1::before { background: #3fb950; } .wk-lane-list li.r2::before { background: #ffb020; } .wk-lane-list li.r3::before { background: #58a6ff; }
.wk-lane-list b { white-space: nowrap; }
.wk-due { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); }
.wk-lane-list li.due { color: #fff; } .wk-lane-list li.due .wk-due { color: var(--red); font-weight: 800; }
.wk-hcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 18px; }
.wk-hcard { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 10px; align-content: start; }
.wk-hcard h3 { margin: 0; }
.wk-hcard dl { margin: 0; display: grid; gap: 8px; }
.wk-hcard dl div { border-radius: 10px; padding: 8px 10px; }
.wk-hcard dl .bmw { background: rgba(88,166,255,.08); }
.wk-hcard dl .vt { background: rgba(227,20,31,.1); }
.wk-hcard dt { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.wk-hcard .bmw dt { color: #58a6ff; } .wk-hcard .vt dt { color: var(--red); }
.wk-hcard dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; }
.wk-hcard p { margin: 0; font-size: 14px; }
.wk-care { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.wk-care > div { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 12px; padding: 12px 14px; }
.wk-care p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.wk-mk.r4 { background: #c678dd; } .wk-lane-list li.r4::before { background: #c678dd; }
