/* Vehicles (client/panels-vehicle.js) — the garage: gunmetal cards, hazard-stripe trim, rarity-coloured chips. */
.vh-root { --vh-line: #3a434b; --vh-hz: #e3a82c; --vh-hz2: var(--c-amber-hi); }
.vh-parts { font-weight: 800; }

/* garage bays */
.vh-bays { display: flex; gap: 6px; margin: 0 0 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 1px 3px; }
.vh-bays::-webkit-scrollbar { display: none; }
.vh-bay { position: relative; flex: 1 0 78px; min-width: 0; display: grid; justify-items: center; gap: 0; padding: 5px 2px 5px; border-radius: 12px; color: var(--text);
  background: linear-gradient(#2a3137, #1b2024); border: 1px solid var(--vh-line); box-shadow: 0 3px 0 #0c0f11, inset 0 1px 0 rgba(255,255,255,.06); }
.vh-bay b { font: 800 12px/1.2 system-ui; } .vh-bay small { font: 700 11px/1.2 system-ui; color: var(--muted); }
.vh-thumbbox { display: block; width: 70px; height: 40px; margin-bottom: 1px; }
.vh-bay .vh-thumb { display: block; filter: drop-shadow(0 2px 2px rgba(0,0,0,.6)); }
.vh-bay.on { background: linear-gradient(#4a3a14, #2a2110); border-color: var(--vh-hz); box-shadow: 0 3px 0 #5a3f0c, 0 0 12px rgba(227,168,44,.35), inset 0 1px 0 rgba(255,230,160,.25); }
.vh-bay.on b { color: var(--vh-hz2); } .vh-bay.on small { color: #e8d9b8; }
.vh-bay.locked { opacity: .62; background: repeating-linear-gradient(-45deg, #20262a 0 8px, #1a1f22 8px 16px); border-style: dashed; }
.vh-bay .lock { height: 40px; display: grid; place-items: center; font-size: 20px; filter: grayscale(.4); }
.vh-bay .st { position: absolute; top: 2px; right: 4px; font-size: 13px; font-style: normal; filter: drop-shadow(0 1px 1px #000); }

/* the rig on its stage */
.vh-stage { margin: 0 0 10px; border-radius: 14px; overflow: hidden; background: linear-gradient(#2a3137, #1b2024); border: 1px solid #6b4a17;
  box-shadow: 0 5px 14px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,220,150,.1); }
.vh-stage.t3 { border-color: var(--vh-hz); box-shadow: 0 5px 14px rgba(0,0,0,.5), 0 0 16px rgba(227,168,44,.3); }
.vh-shead { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 10px 6px 12px; }
.vh-name { display: grid; gap: 0; min-width: 0; }
.vh-name b { font: 900 19px/1.15 system-ui; color: #fff; letter-spacing: .01em; text-shadow: 0 2px 0 #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vh-name small { font: 700 12px/1.2 system-ui; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vh-name small.st { color: var(--vh-hz2); }
.vh-lv { flex: none; display: flex; align-items: baseline; gap: 2px; padding: 4px 10px; border-radius: 999px; background: #12161a; border: 1px solid rgba(227,168,44,.55); }
.vh-lv small { margin-right: 5px; font: 800 10px/1 system-ui; letter-spacing: .08em; text-transform: uppercase; color: var(--vh-hz2); }
.vh-lv b { font: 900 17px/1 system-ui; color: #fff; } .vh-lv span { font: 700 12px/1 system-ui; color: var(--muted); }
.vh-view { position: relative; height: 170px; background: #1b2226; border-top: 1px solid #0c0f11; border-bottom: 1px solid #0c0f11; }
.vh-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vh-sfoot { display: flex; align-items: center; gap: 6px; padding: 6px 8px 7px 10px; }
.vh-rolechip { --rc: var(--c-blue); display: inline-flex; align-items: center; gap: 3px; padding: 2px 9px; border-radius: 999px; font: 800 12px/1.5 system-ui; color: #fff; white-space: nowrap;
  background: color-mix(in srgb, var(--rc) 55%, #111); border: 1px solid color-mix(in srgb, var(--rc) 80%, #fff); }
.vh-cp { padding: 2px 9px; border-radius: 999px; background: #12161a; border: 1px solid #3a434b; font: 800 12.5px/1.5 system-ui; color: var(--vh-hz2); white-space: nowrap; }
.vh-swap { margin-left: auto; min-height: 36px; padding: 4px 12px; border-radius: 999px; font: 800 13px/1.2 system-ui; color: #fff; white-space: nowrap;
  background: linear-gradient(#59636d, #2f363c); border: 1px solid #8b949c; box-shadow: 0 2px 0 #0c0f11; }

.vh-tabs { margin-bottom: 10px; } .vh-tabs button { flex: 1 1 0; min-height: 42px; font-weight: 700; }
.vh-dot { display: inline-block; width: 9px; height: 9px; margin-left: 6px; border-radius: 50%; background: var(--bad); border: 1.5px solid #fff; vertical-align: middle; }
.vh-body { display: grid; gap: 10px; }

/* cards */
.vh-card { border-radius: 14px; overflow: hidden; padding: 0 12px 12px; display: grid; gap: 9px; background: linear-gradient(#262c32, #1a1f24); border: 1px solid var(--vh-line); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.vh-card > h4 { margin: 0 -12px; padding: 7px 12px; display: flex; justify-content: space-between; gap: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--vh-hz2);
  background: linear-gradient(rgba(20,22,26,.86), rgba(20,22,26,.93)), repeating-linear-gradient(-45deg, #e0a52a 0 12px, #2a2a2a 12px 24px); border-bottom: 1px solid #5a4212; }
.vh-card > h4 span { color: #d8dde2; letter-spacing: 0; text-transform: none; font-weight: 700; }
.vh-buffs { width: 100%; border-collapse: collapse; font-size: 14px; }
.vh-buffs th { font-weight: 700; text-align: left; color: var(--muted); padding: 5px 4px; white-space: nowrap; }
.vh-buffs thead th { font-size: 12px; text-align: right; color: #d8dde2; } .vh-buffs thead th:first-child { width: 36%; }
.vh-buffs td { text-align: right; padding: 5px 4px; font: 800 15px/1.2 system-ui; color: #fff; font-variant-numeric: tabular-nums; }
.vh-buffs td.sk { color: var(--vh-hz2); text-shadow: 0 0 8px rgba(255,215,106,.35); }
.vh-buffs tbody tr { border-top: 1px solid rgba(255,255,255,.06); }
.vh-rolenote { --rc: var(--c-blue); display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: center; padding: 7px 9px; border-radius: 10px; font-size: 13px; line-height: 1.3;
  background: color-mix(in srgb, var(--rc) 16%, #15191c); border: 1px solid color-mix(in srgb, var(--rc) 55%, #15191c); }
.vh-rolenote .ic { font-size: 19px; text-align: center; } .vh-rolenote b { color: var(--vh-hz2); }
.vh-convoy { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vh-convoy > div { display: grid; gap: 1px; padding: 7px 9px; border-radius: 10px; background: #14181b; border: 1px solid #2f373d; }
.vh-convoy span { font-size: 12px; color: var(--muted); } .vh-convoy b { font: 800 16px/1.2 system-ui; color: #fff; }

.vh-skill { grid-template-columns: 54px 1fr; padding-top: 12px; align-items: start; }
.vh-skill > .ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 27px; background: radial-gradient(circle at 40% 30%, #59636d, #20262a); box-shadow: 0 0 0 2px var(--vh-hz), 0 3px 8px rgba(0,0,0,.5); }
.vh-skill.off > .ic { filter: grayscale(.8) brightness(.75); box-shadow: 0 0 0 2px #59636d; }
.vh-skill .tx { display: grid; gap: 5px; min-width: 0; }
.vh-skill .nm { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .vh-skill .nm b { font: 900 16px/1.2 system-ui; color: var(--vh-hz2); }
.vh-skill p { margin: 0; font-size: 13px; line-height: 1.35; color: #d8dde2; } .vh-skill small { color: var(--muted); font-size: 12px; }
.vh-pips { display: inline-flex; gap: 3px; flex: none; }
.vh-pips i { width: 9px; height: 9px; border-radius: 2px; transform: rotate(45deg); background: #12161a; box-shadow: inset 0 0 0 1px #59636d; }
.vh-pips i.on { background: var(--vh-hz2); box-shadow: 0 0 6px rgba(255,215,106,.7); }

.vh-uphead { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; }
.vh-medal { min-width: 36px; height: 36px; padding: 0 5px; border-radius: 50%; display: inline-grid; place-items: center; font: 900 15px/1 system-ui; color: #fff; text-shadow: 0 1px 0 #000;
  background: radial-gradient(circle at 35% 30%, #ff8a4a, #c2351c 70%); border: 2px solid #ffd27a; box-shadow: 0 0 0 2px #6b2a10, 0 2px 4px rgba(0,0,0,.5); }
.vh-medal.next { background: radial-gradient(circle at 35% 30%, var(--c-good-hi), #2f8a3b 70%); box-shadow: 0 0 0 2px #1d4a20, 0 0 12px rgba(94,196,107,.45); }
.vh-track { position: relative; height: 22px; border-radius: 11px; overflow: hidden; display: grid; place-items: center; background: repeating-linear-gradient(90deg, #14181b 0 10px, #1d2226 10px 20px); box-shadow: inset 0 0 0 1px #3a434b; color: var(--vh-hz2); font-size: 14px; }
.vh-track.run { background: #0e1114; }
.vh-track .vh-fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(var(--c-good-hi), #4fa52b); transition: width .5s linear; }
.vh-track b { position: relative; font: 900 13px/1 ui-monospace, Menlo, monospace; color: #fff; text-shadow: 0 1px 0 #000, 0 0 3px #000; }
.vh-gains { display: flex; flex-wrap: wrap; gap: 5px; }
.vh-gain { padding: 2px 8px; border-radius: 999px; background: #1f3a1c; color: var(--c-good-hi); font: 800 12px/1.5 system-ui; white-space: nowrap; }
.vh-gain.hot { background: #4a3a14; color: var(--vh-hz2); }
.vh-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.vh-tag { padding: 3px 9px; border-radius: 999px; background: #0e1114; border: 1px solid #3a434b; font: 700 13px/1.4 system-ui; white-space: nowrap; }
.vh-tag.no { color: #ff8a7a; border-color: #8a3a30; } .vh-tag.got { color: var(--c-good-hi); border-color: #2f6a2a; background: #14241a; }
.vh-why { font-size: 12.5px; line-height: 1.35; color: #f0c9a0; padding: 6px 9px; border-radius: 9px; background: #2a1d10; border: 1px dashed #8a5e1c; }
.vh-maxed { padding: 9px; border-radius: 10px; text-align: center; font: 900 15px/1.2 system-ui; color: #2a1a04; background: linear-gradient(var(--c-amber-hi), #e3a03a); }
.vh-up.max { padding-bottom: 12px; }

/* buttons (same shapes as the building popups) */
.vh-btns { display: grid; grid-template-columns: 1fr; gap: 10px; } .vh-btns.two { grid-template-columns: 1fr 1fr; }
.vh-btn { min-height: 50px; display: grid; place-content: center; justify-items: center; gap: 1px; padding: 6px 8px; border-radius: 12px; border: 0; font: 800 15px/1.15 system-ui;
  box-shadow: 0 4px 0 var(--sh, var(--c-ink)), inset 0 1px 0 rgba(255,255,255,.3); transition: transform .06s; }
.vh-btn:not(:disabled):active { transform: translateY(2px); box-shadow: 0 2px 0 var(--sh, var(--c-ink)), inset 0 1px 0 rgba(255,255,255,.3); }
.vh-btn small { font: 700 12px/1.1 system-ui; opacity: .92; }
.vh-btn.gold { background: linear-gradient(var(--c-amber-hi), #e3a03a); color: #2a1a04; --sh: #8a5e1c; }
.vh-btn.steel { background: linear-gradient(#59636d, #2f363c); color: #fff; --sh: #0c0f11; }
.vh-btn.ruby { background: linear-gradient(#ff7a8a, #c2304a); color: #fff; --sh: #6b1426; text-shadow: 0 1px 0 rgba(0,0,0,.4); }
.vh-btn.ruby.armed { background: linear-gradient(#ffb0ba, #e0405a); box-shadow: 0 4px 0 #6b1426, 0 0 0 3px rgba(255,180,190,.6); }
.vh-btn:disabled { filter: grayscale(.7); opacity: .55; }

/* chip board */
.vh-board { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 68px; padding: 12px 10px; border-radius: 14px; border: 1px solid #2f4a3a;
  background: linear-gradient(rgba(10,26,20,.88), rgba(10,26,20,.94)), repeating-linear-gradient(0deg, #2f6a4a 0 1px, transparent 1px 14px), repeating-linear-gradient(90deg, #2f6a4a 0 1px, transparent 1px 14px), #0c1a14; }
.vh-board::before, .vh-board::after { content: ''; position: absolute; left: 22%; right: 22%; height: 2px; background: linear-gradient(90deg, transparent, #4a8a66 20%, #4a8a66 80%, transparent); opacity: .7; }
.vh-board::before { top: 27%; } .vh-board::after { bottom: 27%; }
.vh-board.reso::before, .vh-board.reso::after { background: linear-gradient(90deg, transparent, #f08a2c 20%, var(--c-amber-hi) 50%, #f08a2c 80%, transparent); opacity: 1; box-shadow: 0 0 8px #f08a2c; }
.vh-chip { --cc: #59636d; position: relative; z-index: 1; min-height: 92px; display: grid; justify-items: center; align-content: center; gap: 2px; padding: 7px 4px; border-radius: 10px; color: #fff;
  background: linear-gradient(color-mix(in srgb, var(--cc) 34%, #14181b), color-mix(in srgb, var(--cc) 12%, #101316)); border: 2px solid var(--cc);
  box-shadow: -5px 0 0 -2px #0c0f11, 5px 0 0 -2px #0c0f11, 0 3px 0 #0c0f11, inset 0 1px 0 rgba(255,255,255,.14); }
.vh-chip::before, .vh-chip::after { content: ''; position: absolute; top: 12px; bottom: 12px; width: 5px; background: repeating-linear-gradient(0deg, #9aa3a8 0 4px, transparent 4px 9px); }
.vh-chip::before { left: -7px; } .vh-chip::after { right: -7px; }
.vh-chip .ic { font-size: 22px; line-height: 1.1; filter: drop-shadow(0 2px 1px rgba(0,0,0,.5)); }
.vh-chip b { font: 900 13.5px/1.15 system-ui; } .vh-chip small { font: 700 11px/1.2 system-ui; color: #d8dde2; text-align: center; }
.vh-chip.empty { border-style: dashed; background: #12161a; } .vh-chip.empty .ic { filter: grayscale(1) brightness(.6); } .vh-chip.empty b { color: var(--muted); }
.vh-chip.on { box-shadow: -5px 0 0 -2px #0c0f11, 5px 0 0 -2px #0c0f11, 0 0 0 2px #fff, 0 0 14px var(--cc); }
.vh-chip .up { position: absolute; top: 4px; right: 5px; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; font: 900 9px/1 system-ui; font-style: normal; color: #0c2a10; background: var(--c-good-hi); box-shadow: 0 0 0 1.5px #0c0f11, 0 0 6px rgba(143,227,90,.6); }
.vh-plus { font: 800 11px/1.3 system-ui; color: var(--vh-hz2); }
.vh-stars { display: inline-flex; letter-spacing: -1.5px; font-size: 10.5px; line-height: 1.2; }
.vh-stars i { font-style: normal; color: #2a3036; } .vh-stars i.cap { color: #59636d; } .vh-stars i.on { color: var(--vh-hz2); text-shadow: 0 0 4px rgba(255,215,106,.6); }
.vh-core { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%); }
.vh-core .ring { width: 66px; height: 66px; border-radius: 50%; display: grid; place-content: center; justify-items: center; background: radial-gradient(circle at 50% 35%, #2a3a32, #0c1410); border: 2px solid #4a8a66; box-shadow: 0 0 0 3px #0c1410, 0 3px 8px rgba(0,0,0,.6); }
.vh-core b { font: 900 17px/1 system-ui; color: #cfe8d8; } .vh-core small { margin-top: 2px; font: 800 8px/1.2 system-ui; color: #8fb8a0; text-transform: uppercase; }
.vh-board.reso .ring { border-color: var(--c-amber-hi); background: radial-gradient(circle at 50% 35%, #7a4a14, #2a1a08); box-shadow: 0 0 0 3px #2a1a08, 0 0 18px #f08a2c; }
.vh-board.reso .vh-core b { color: var(--c-amber-hi); } .vh-board.reso .vh-core small { color: #ffc27a; }
.vh-reso { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: #1c2126; border: 1px solid var(--vh-line); }
.vh-reso .ic { font-size: 20px; text-align: center; filter: grayscale(1) brightness(.7); } .vh-reso b { display: block; font: 800 14px/1.2 system-ui; } .vh-reso small { display: block; font-size: 12px; line-height: 1.3; color: var(--muted); }
.vh-reso.on { background: linear-gradient(135deg, #4a2f10, #2a1a08); border-color: #f08a2c; box-shadow: 0 0 12px rgba(240,138,44,.35); } .vh-reso.on .ic { filter: none; } .vh-reso.on b { color: var(--c-amber-hi); } .vh-reso.on small { color: #f0c9a0; }

/* chip workshop and exchange */
.vh-wshead { display: grid; grid-template-columns: 50px 1fr; gap: 10px; align-items: center; }
.vh-chipic { width: 50px; height: 50px; border-radius: 10px; display: grid; place-items: center; font-size: 25px; background: linear-gradient(color-mix(in srgb, var(--cc) 40%, #14181b), color-mix(in srgb, var(--cc) 14%, #101316)); border: 2px solid var(--cc); }
.vh-chipic.empty { border-style: dashed; filter: grayscale(.7); }
.vh-wshead .nm { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; } .vh-wshead .nm b { font: 900 16px/1.2 system-ui; }
.vh-wshead small { display: block; font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.vh-rar { padding: 1px 8px; border-radius: 999px; font: 800 11px/1.5 system-ui; color: #0c0f11; background: var(--cc); text-transform: uppercase; letter-spacing: .04em; }
.vh-step { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.vh-step .side { display: grid; gap: 1px; padding: 7px 9px; border-radius: 10px; background: #14181b; border: 1px solid #2f373d; min-width: 0; }
.vh-step .side.nx { border-color: #2f6a2a; background: #14241a; }
.vh-step small { font-size: 11px; color: var(--muted); } .vh-step b { font: 800 13.5px/1.2 system-ui; } .vh-step .side span { font: 900 16px/1.2 system-ui; color: #fff; } .vh-step .nx span { color: var(--c-good-hi); }
.vh-step .arr, .vh-exrow .arr { color: var(--vh-hz2); font-size: 16px; }
.vh-ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.vh-ladder span { --cc: #59636d; display: grid; justify-items: center; padding: 4px 2px; border-radius: 8px; background: #14181b; border: 1px solid #2f373d; border-bottom: 3px solid color-mix(in srgb, var(--cc) 45%, #14181b); opacity: .6; }
.vh-ladder b { font: 800 10.5px/1.2 system-ui; color: var(--cc); } .vh-ladder small { font-size: 10px; color: var(--muted); }
.vh-ladder span.on { opacity: 1; border-bottom-color: var(--cc); background: color-mix(in srgb, var(--cc) 14%, #14181b); }
.vh-ladder span.nx { opacity: 1; border-color: var(--cc); box-shadow: 0 0 8px color-mix(in srgb, var(--cc) 60%, transparent); }
.vh-exrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* rig picker popup */
.vh-models { display: grid; gap: 10px; }
.vh-mcard { display: grid; grid-template-columns: 118px 1fr; gap: 8px 10px; padding: 10px; border-radius: 14px; background: linear-gradient(#262c32, #1a1f24); border: 1px solid #3a434b; }
.vh-mcard.on { border-color: #e3a82c; box-shadow: 0 0 12px rgba(227,168,44,.3); }
.vh-mcard.locked .pic { filter: grayscale(.85) brightness(.7); }
.vh-mcard .pic { height: 72px; display: grid; place-items: end center; border-radius: 10px; background: radial-gradient(90% 70% at 50% 100%, #3a4046 0%, #1b2024 70%); border: 1px solid #2f373d; overflow: hidden; }
.vh-mcard .tx { display: grid; gap: 3px; align-content: start; min-width: 0; }
.vh-mcard .nm { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .vh-mcard .nm b { font: 900 16px/1.2 system-ui; }
.vh-mcard small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.vh-mcard > p, .vh-mcard > .sk, .vh-mcard > .vh-btn, .vh-mcard > .vh-need { grid-column: 1 / -1; }
.vh-mcard > p { margin: 0; font-size: 13px; line-height: 1.35; color: #d8dde2; }
.vh-mcard .sk { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: start; padding: 7px 8px; border-radius: 10px; background: #14181b; border: 1px solid #2f373d; }
.vh-mcard .sk .ic { font-size: 22px; text-align: center; } .vh-mcard .sk b { display: block; font: 800 14px/1.2 system-ui; color: var(--c-amber-hi); } .vh-mcard .sk small { display: block; margin: 2px 0 5px; }
.vh-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; margin-top: 2px; }
.vh-mbar { display: grid; justify-items: center; gap: 2px; font-size: 11px; }
.vh-mbar div { width: 100%; height: 5px; border-radius: 3px; background: #0e1114; overflow: hidden; } .vh-mbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--c-amber-lo), var(--c-amber-hi)); }
.vh-need { padding: 9px; border-radius: 10px; text-align: center; font: 700 13px/1.3 system-ui; color: #f0c9a0; background: #2a1d10; border: 1px dashed #8a5e1c; }
.vh-mcard .vh-btn { min-height: 44px; }
