/* PATCH4: garage v2 (sections) + responsive menu for landscape phones. Loaded after ui.css. Keeps the hologram style (brackets, teal/magenta). */
.gx{position:absolute;inset:0;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);grid-template-rows:minmax(0,1fr);gap:8px;padding:8px;box-sizing:border-box}
.gx-view{position:relative;min-width:0;min-height:0;overflow:hidden;border:1px solid rgba(47,243,224,.25);background:rgba(2,8,22,.35)}
.gx-view .dlr-cv{position:absolute;inset:0;width:100%;height:100%}
.gx-head{position:absolute;left:10px;top:8px;pointer-events:none;max-width:80%}
.gx-head .br-model{font-size:20px}.gx-head .br-badge{width:40px;height:40px}
.gx-stats{position:absolute;left:8px;bottom:8px;width:min(330px,calc(100% - 16px));padding:8px 10px;display:flex;flex-direction:column;gap:5px;z-index:2;pointer-events:none}
.gx-stats .sb-row{grid-template-columns:76px 1fr auto}.gx-stats .sb-lab{font-size:8px}.gx-stats .sb-val{font-size:10px;min-width:64px}
.gx-side{position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;padding:0;overflow:hidden}
.gx-nav{display:flex;align-items:center;gap:8px;padding:6px 8px;border-bottom:1px solid var(--teal2);position:relative;z-index:3}
.gx-title{font:800 13px var(--f-head);letter-spacing:.16em;color:var(--teal);text-shadow:0 0 8px rgba(47,243,224,.5);flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gx-back{min-height:40px;min-width:84px;padding:4px 12px;font-size:12px}
.gx-tabs{display:flex;gap:4px;padding:0 8px;overflow-x:auto;position:relative;z-index:3;scrollbar-width:none}.gx-tabs:empty{display:none}
.gx-tab{flex:0 0 auto;min-height:38px;padding:4px 10px;font:700 10px var(--f-head);letter-spacing:.12em;color:#bde;background:none;border:1px solid transparent;border-bottom:2px solid transparent;cursor:pointer}
.gx-tab.on{color:#fff;border-bottom-color:var(--gold);text-shadow:0 0 8px var(--teal)}
.gx-scroll{flex:1;min-height:0;overflow-y:auto;padding:8px;position:relative;z-index:3;-webkit-overflow-scrolling:touch;touch-action:pan-y;overscroll-behavior:contain}
.gx-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:6px}
.gx-grid.cats{grid-template-columns:repeat(3,minmax(0,1fr))}
.gx-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:76px;padding:6px 4px;text-align:center;color:#fff;--ga:#2ff3e0}
.gx-tile.sel{--ga:#ffcf3a}
.gx-tile b{font:700 10px var(--f-head);letter-spacing:.08em;line-height:1.15;max-width:100%;white-space:normal}
.gx-tile small{font:400 10px var(--f-mono);color:#9fd;letter-spacing:.04em}
.gx-tile.cat{min-height:86px}.gx-tile.cat b{font-size:10px}
.gx-th{width:100%;height:42px;display:block;pointer-events:none}.gx-tile.cat .gx-th{height:46px}
.gx-badge{position:absolute;right:4px;top:3px;min-width:18px;height:18px;line-height:18px;border-radius:9px;background:var(--mag,#ff3df0);color:#fff;font:800 10px var(--f-head);font-style:normal;padding:0 4px}
.gx-h{margin:10px 0 6px;font:800 10px var(--f-head);letter-spacing:.2em;color:var(--gold)}.gx-h:first-child{margin-top:0}
.gx-sw{gap:8px}.gx-sw .grg-swatch{width:40px;height:40px}
.gx-fin{display:block;width:100%;height:34px;border:1px solid rgba(255,255,255,.3)}
.gx-fin.gloss{background:linear-gradient(135deg,#ff2fb0 0 55%,#ffd7f0 62%,#ff2fb0 70%)}.gx-fin.matte{background:#8a2a6a}
.gx-fin.pearl{background:linear-gradient(135deg,#ff9ad7,#a8e8ff,#ffe3a8,#ff9ad7)}.gx-fin.chrome{background:linear-gradient(180deg,#fff,#8c98aa 45%,#222 50%,#c9d4e6)}
.gx-rim{display:block;width:44px;height:44px;border-radius:50%;margin:0 auto;background:repeating-conic-gradient(var(--rc) 0 11deg,#0a0e1a 11deg 36deg);border:3px solid var(--rc);box-shadow:inset 0 0 0 5px #080c18,0 0 8px rgba(255,255,255,.15)}
.gx-up .hb{min-height:40px}
.gx-up .seg{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}.gx-up .hb{font-size:10px;padding:2px 2px;letter-spacing:.02em}
.gx-bar{display:flex;align-items:center;gap:8px;padding:6px 8px;border-top:1px solid var(--teal2);position:relative;z-index:3}
.gx-cost{flex:1;display:flex;flex-direction:column;line-height:1.15;min-width:0}.gx-cost small{font:700 8px var(--f-head);letter-spacing:.2em;color:#9fd}.gx-cost b{font:800 14px var(--f-head);color:var(--gold);white-space:nowrap}
.gx-bar .hb{min-height:42px;min-width:84px;padding:4px 12px;font-size:12px}.gx-apply{min-width:110px!important}
.gx-apply:disabled{opacity:.45}

/* ---- portrait: car on top, panel below */
@media (orientation:portrait){
  .gx{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,38%) minmax(0,1fr)}
  .gx-stats{display:none}.gx-head .br-model{font-size:17px}
  .gx-grid.cats{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (orientation:portrait) and (max-width:420px){.gx-grid{grid-template-columns:repeat(auto-fill,minmax(88px,1fr))}.gx-tile{min-height:70px}}

/* ---- LANDSCAPE PHONES (and any short wide window): menu frame fills the screen inside the safe areas, one-row header, slim footer */
@media (orientation:landscape) and (max-height:520px){
  #holo.holo-root{padding:var(--st,0px) var(--sr,0px) var(--sbm,0px) var(--sl,0px);box-sizing:border-box}
  .holo-frame{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important}
  .holo-frame>header{flex-wrap:nowrap!important;gap:6px;padding:3px 8px!important;min-height:44px}
  .holo-frame>header .hp-brand{display:none}
  .holo-frame nav{flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden;order:0!important;flex:1 1 auto!important;min-width:0}
  .holo-frame nav .tab{flex:0 0 auto;min-height:40px;padding:6px 10px;font-size:11px;white-space:nowrap}
  .holo-frame>header .hp-bal{flex:0 0 auto;font-size:11px;margin-left:0!important;white-space:nowrap}.hp-bal small{display:none}
  .holo-frame>header .hb.x{flex:0 0 auto;width:44px;min-height:40px;padding:0}
  .holo-frame>footer{padding:3px 8px!important;gap:6px;min-height:46px}
  .holo-frame>footer .hb{min-height:38px;padding:4px 12px;font-size:11px;min-width:0}
  .holo-frame>footer .hp-user{margin-right:auto;font-size:10px}
  #holoBody{padding:8px 10px!important}
  #holoBody.full{padding:0!important}
  .gx{grid-template-columns:minmax(0,1fr) minmax(330px,52%);gap:6px;padding:6px}
  .gx-head .br-model{font-size:17px}.gx-head .br-badge{width:30px;height:30px}.gx-head .br-make{font-size:10px}
  .gx-stats{padding:4px 8px;gap:2px 12px;width:calc(100% - 12px);display:grid!important;grid-template-columns:1fr 1fr}.gx-stats .sb-row{grid-template-columns:62px 1fr auto}.gx-stats .sb-lab{font-size:7px}.gx-stats .sb-val{font-size:9px;min-width:0}.gx-stats .sb-delta{display:none}
  .gx-grid.cats{grid-template-columns:repeat(4,minmax(0,1fr))}
  .gx-tile{min-height:68px}.gx-tile.cat{min-height:74px}.gx-th{height:34px}.gx-tile.cat .gx-th{height:36px}
  .tiles{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}
  .dlr-act .hb{min-height:42px}.dlr-arrow{width:50px;height:64px}
  .set{grid-template-columns:1fr 1fr!important}
  .holo-root input[type=range]{min-height:28px}
}
/* very short (<=360px tall, small phones): trim further */
@media (orientation:landscape) and (max-height:380px){
  .holo-frame>header{min-height:40px}.holo-frame nav .tab{min-height:36px;padding:4px 8px}
  .holo-frame>footer{min-height:42px}.holo-frame>footer .hb{min-height:34px}
  .gx-nav{padding:3px 6px}.gx-back{min-height:34px}.gx-bar{padding:4px 6px}.gx-bar .hb{min-height:38px}
}

/* ---- GARAGE > COLORS (free picker, js/ui/garage_colors.js): normal-flow layout inside the scrolling panel, so nothing can overlap */
.gx-cwheel{display:block;width:42px;height:42px;margin:0 auto;border-radius:50%;background:conic-gradient(#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00);box-shadow:inset 0 0 0 7px rgba(8,12,24,.55),0 0 8px rgba(255,255,255,.2);border:2px solid rgba(255,255,255,.55)}
.gx-tile.cat .gx-cwheel{width:44px;height:44px}
.gx-tocolors{width:100%;min-height:44px}
.cp-free{margin:0 0 8px;font:800 10px var(--f-head);letter-spacing:.16em;color:#7dffb0;text-shadow:0 0 8px rgba(80,255,150,.4)}
.cp{container-type:inline-size;display:flex;flex-direction:column;gap:8px;min-width:0}
.cp-targets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.cp-t{min-height:42px;padding:4px 2px;font:800 10px var(--f-head);letter-spacing:.08em;color:#bde;background:rgba(10,20,40,.55);border:1px solid rgba(47,243,224,.28);border-bottom:3px solid transparent;cursor:pointer;position:relative;line-height:1.15}
.cp-t.on{color:#fff;border-bottom-color:var(--gold);text-shadow:0 0 8px var(--teal);background:rgba(47,243,224,.12)}
.cp-t.mod::after{content:'';position:absolute;right:5px;top:5px;width:7px;height:7px;border-radius:50%;background:var(--mag,#ff3df0);box-shadow:0 0 6px var(--mag,#ff3df0)}
.cp-body{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;min-width:0}
.cp-left,.cp-right{display:flex;flex-direction:column;gap:8px;min-width:0}
.cp-sv{position:relative;width:100%;height:clamp(112px,23vh,190px);border:1px solid rgba(255,255,255,.35);touch-action:none;cursor:crosshair;user-select:none;-webkit-user-select:none;
  background:linear-gradient(to top,#000,rgba(0,0,0,0)),linear-gradient(to right,#fff,hsl(var(--h,0),100%,50%))}
.cp-thumb{position:absolute;width:20px;height:20px;margin:-10px 0 0 -10px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1.5px #000,0 0 8px rgba(0,0,0,.7);pointer-events:none}
.cp-hue{position:relative;width:100%;height:34px;border:1px solid rgba(255,255,255,.35);touch-action:none;cursor:ew-resize;user-select:none;-webkit-user-select:none;background:linear-gradient(to right,#f00,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00)}
.cp-hthumb{position:absolute;top:-3px;bottom:-3px;width:10px;margin-left:-5px;border:3px solid #fff;box-shadow:0 0 0 1.5px #000;pointer-events:none;box-sizing:border-box}
.cp-row{display:flex;align-items:center;gap:8px;min-width:0}
.cp-chip{flex:0 0 40px;height:40px;border:2px solid rgba(255,255,255,.6);box-shadow:inset 0 0 0 2px rgba(0,0,0,.4)}
.cp-hex{flex:1 1 90px;min-width:0;height:40px;box-sizing:border-box;padding:0 8px;font:700 16px var(--f-mono,monospace);letter-spacing:.08em;text-transform:lowercase;color:#fff;background:rgba(4,10,24,.8);border:1px solid var(--teal2,rgba(47,243,224,.5));border-radius:0}
.cp-hex:focus{outline:2px solid var(--gold);outline-offset:1px}
.cp-stock{flex:0 0 auto;min-height:40px;min-width:0;padding:4px 10px;font-size:11px}.cp-stock:disabled{opacity:.4}
.cp-sw{display:flex;flex-wrap:wrap;gap:8px}.cp-sw .grg-swatch{width:36px;height:36px}
.cp-dark{display:flex;flex-direction:column;gap:6px}
.cp-dl{display:flex;justify-content:space-between;font:800 9px var(--f-head);letter-spacing:.2em;color:var(--gold)}.cp-dl b{font:700 12px var(--f-mono,monospace);color:#fff;letter-spacing:.04em}
.cp-range{width:100%;height:34px;margin:0;accent-color:var(--gold);touch-action:pan-y}
.cp-wash{min-height:36px;min-width:0;padding:4px 10px;font-size:10px;align-self:flex-start}
.cp-note{margin:0;font:400 10px/1.35 var(--f-mono,monospace);color:#8fb8c8}
@container (min-width:400px){.cp-body{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)}}
@media (orientation:landscape) and (max-height:520px){.cp-body{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px}.cp-chip{flex-basis:32px;height:34px}.cp-hex{height:34px;font-size:12px;flex-basis:64px;padding:0 3px;letter-spacing:0}.cp-stock{min-height:34px;padding:4px 6px;font-size:10px}.cp-row{gap:5px}.cp-sv{height:clamp(120px,40vh,180px)}.cp-hue{height:30px}.cp-sw .grg-swatch{width:32px;height:32px}.cp-sw{gap:6px}.cp-note{display:none}.cp-t{min-height:38px}}

/* ---- PERFORMANCE paths + TUNER (five paths, six tiers STOCK..SUPER, real parts, trim sliders) */
.gx-path{margin-bottom:10px}
.gx-path-h{display:flex;align-items:center;gap:8px;justify-content:space-between;margin-bottom:4px}
.gx-path-h>span{font:800 10px var(--f-head);letter-spacing:.16em;color:#bdf7f0}
.gx-path-h>b{font:800 10px var(--f-head);letter-spacing:.1em;color:var(--gold)}
.gx-tier{font:700 9px var(--f-mono,monospace);color:#8fb8c8;letter-spacing:.06em}
.gx-lv{display:grid!important;grid-template-columns:repeat(6,1fr);gap:3px}
.gx-lv .hb{min-height:34px;padding:2px 0;font-size:9px;letter-spacing:.02em}
.gx-parts{margin:4px 0 0;font:400 10px/1.4 var(--f-mono,monospace);color:#9fd}
.gx-tune{display:flex;flex-direction:column;gap:4px;margin-bottom:12px}
.gx-tune .gx-range{width:100%;height:34px;margin:0;accent-color:var(--gold);touch-action:pan-y}
.gx-tune .gx-range:disabled{opacity:.4}
.gx-val{font:700 11px var(--f-mono,monospace);color:#fff;letter-spacing:.04em}
.gx-scale{display:flex;justify-content:space-between;font:800 8px var(--f-head);letter-spacing:.18em;color:#7fa6b6}
.gx-top{margin:0 0 8px;font:800 11px var(--f-mono,monospace);letter-spacing:.06em;color:var(--gold);text-shadow:0 0 8px rgba(255,207,58,.35)}
@media (orientation:landscape) and (max-height:520px){.gx-tune{margin-bottom:8px}.gx-tune .gx-range{height:26px}.gx-lv .hb{min-height:29px;font-size:8px}}
