/* One reversible surface system. No videos, external textures or background render loop. */
.theme-tools{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:8px 3%;background:#edf6fc;border-bottom:1px solid #b7d8e8}
.theme-tools>span{font:10px/1.4 monospace;letter-spacing:2px;color:#42647c}
:root .theme-tools button{font:12px/1.3 Arial,sans-serif;padding:10px 16px;min-height:44px;cursor:pointer}
:root:not([data-theme="light"]){color-scheme:dark;--ink:#edf7ff;--muted:#bed0e1;--line:#6cbddd40;--blue:#6ed8ff;background:#162c40;color:#edf7ff}
:root:not([data-theme="light"]) body{
  color:#edf7ff;min-height:100vh;
  background:
    radial-gradient(ellipse at 8% 5%,#397b9670,transparent 42%),
    radial-gradient(ellipse at 95% 30%,#52618b55,transparent 45%),
    radial-gradient(circle at 20px 38px,#b9e8ff55 0 1px,transparent 1.5px) 0 0/173px 191px,
    radial-gradient(circle at 97px 81px,#b9e8ff33 0 1px,transparent 1.5px) 0 0/257px 233px,
    #162c40;
}
:root:not([data-theme="light"]) :is(header,.preview,.theme-tools,.command-dock,.stage-controls,footer){
  background:#233f53eb;color:#d4e8f8;border-color:#6cc9ef40;
}
:root:not([data-theme="light"]) :is(section,.feature,.service-item,.vehicle,.systems,.details,.viewport,.equipment-picker,.parts-choice,.request-notice){
  background:linear-gradient(135deg,#39576bb8,#22394edb);
  color:#edf7ff;border-color:#6cc9ef45;box-shadow:inset 0 1px #b8eaff25,0 14px 32px #00000018;
}
:root:not([data-theme="light"]) :is(.features,.services,.parts-policy,.lab,.request-shell){background:transparent;box-shadow:none}
:root:not([data-theme="light"]) .hero{background:#29455bb3;box-shadow:none}
:root:not([data-theme="light"]) .hero:before{background:none}
:root:not([data-theme="light"]) .hero-visual{background:radial-gradient(ellipse at center,#38506544,transparent 70%)}
/* Feather the full stepped crop, including the grille-side notch, not just its left edge.
   The source truck pixels and layout stay untouched; the mask fades only the perimeter. */
:root:not([data-theme="light"]) .hero-art{mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201000%201000%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3Cfilter%20id%3D%22soft%22%20x%3D%22-10%25%22%20y%3D%22-10%25%22%20width%3D%22120%25%22%20height%3D%22120%25%22%3E%3CfeGaussianBlur%20stdDeviation%3D%227%22%2F%3E%3C%2Ffilter%3E%3C%2Fdefs%3E%3Cpath%20fill%3D%22white%22%20filter%3D%22url(%23soft)%22%20d%3D%22M355%2015H985V555H285V285H355Z%22%2F%3E%3C%2Fsvg%3E");mask-size:100% 100%;mask-repeat:no-repeat}
:root:not([data-theme="light"]) :is(p,.eyebrow,.brand small,.section-label>span,.selection span,.service-item small,.details dt,.details dd,.vehicle dt,.vehicle dd,.command-dock-label,.theme-tools>span,footer,#code-help){
  color:#d2e3ef;
}
:root:not([data-theme="light"]) :is(h1,h2,h3,label,.selection>strong){color:#f0f8ff}
:root:not([data-theme="light"]) :where(a:not([class])){color:#8addff}
:root:not([data-theme="light"]) :is(.text-link,.selection a,.service-item a,.details dd a,.fallback,.email,.form-fallback a,footer a,main>header a,#customer-refresh.status-refresh){color:#78d9ff}
:root:not([data-theme="light"]) .brand img{background:transparent;border-radius:0;padding:0;filter:brightness(0) invert(1)}
:root:not([data-theme="light"]) :is(.badge,.parts-choice,.hood-readout,.request-notice){background:#2b4c61e8;color:#d5f1ff;border-color:#5ad5ff88}
:root:not([data-theme="light"]) :is(.secondary,button[aria-pressed="false"],.stage-controls button:not([aria-pressed="true"]),.viewport-bar button,.close,.command-bar a:not([aria-current="location"])){
  background:linear-gradient(120deg,#34566c,#283f54);color:#d9efff;border-color:#71b5d37d;box-shadow:inset 0 0 0 1px #70cfff15;
}
:root:not([data-theme="light"]) :is(.secondary,button[aria-pressed="false"],.stage-controls button,.viewport-bar button,.close,.command-bar a):hover{border-color:#70deff}
:root:not([data-theme="light"]) :is(input,select,textarea,.dashboard-input,#password-form input,#password-form input[readonly]){
  background:#172e43;color:#edf7ff;border-color:#77afcb;
}
:root:not([data-theme="light"]) :is(input,textarea)::placeholder{color:#aac1d4;opacity:1}
:root:not([data-theme="light"]) #detail{background:linear-gradient(135deg,#304e63f5,#20374df7);color:#edf7ff;border-color:#53c9ee;box-shadow:0 30px 100px #0009}
:root:not([data-theme="light"]) #detail::backdrop{background:#030b18b0}
:root:not([data-theme="light"]) .deck-caption{color:#c2f0ff;background:#233d53d9;padding:5px 8px}
:root:not([data-theme="light"]) .viewer{background:radial-gradient(ellipse at center,#3b5d72,#20364d)}
:root:not([data-theme="light"]) #cost-result{color:#88e5ff}
:root:not([data-theme="light"]) #password-match-error{color:#ffadb5}
:root:not([data-theme="light"]) #password-status[data-success="true"]{background:#123b31;color:#adf6d6;border-color:#63bb98}
:root:not([data-theme="light"]) :focus-visible{outline-color:#a0ecff!important}
/* Photo-inspired Frozen Deep Green approximation; not a factory paint conversion. Signature cyan actions remain unchanged. */
:root[data-theme="army"]{background:#111f1a;--line:#b7c8b14d}
:root[data-theme="army"] body{
  background:radial-gradient(ellipse at 8% 5%,#637b7026,transparent 45%),radial-gradient(ellipse at 95% 35%,#56696420,transparent 50%),#111f1a;
}
:root[data-theme="army"] :is(header,.preview,.theme-tools,.command-dock,.stage-controls,footer){background:#213a30f2;border-color:#a2b7ad55}
:root[data-theme="army"] :is(section,.feature,.service-item,.vehicle,.systems,.details,.viewport,.equipment-picker,.parts-choice,.request-notice){background:linear-gradient(145deg,#99aaa226 0%,transparent 38%),linear-gradient(135deg,#213a30e0,#13271feb);border-color:#a4b9ae5c;box-shadow:inset 0 1px #d4e1dc25,0 14px 32px #00000018}
:root[data-theme="army"] :is(.features,.services,.parts-policy,.lab,.request-shell){background:transparent;box-shadow:none}
:root[data-theme="army"] .hero{background:#344137bd;box-shadow:none}
:root[data-theme="army"] :is(p,.eyebrow,.brand small,.section-label>span,.selection span,.service-item small,.details dt,.details dd,.vehicle dt,.vehicle dd,.command-dock-label,.theme-tools>span,footer,#code-help){color:#e0e5d9}
:root[data-theme="army"] :is(.badge,.parts-choice,.hood-readout,.request-notice){background:#213a30e8;border-color:#9bb8aa88}
:root[data-theme="army"] :is(.secondary,button[aria-pressed="false"],.stage-controls button:not([aria-pressed="true"]),.viewport-bar button,.close,.command-bar a:not([aria-current="location"])){background:linear-gradient(145deg,#435b50 0%,#213a30 35%,#13271f 100%);color:#f0f3e9;border-color:#9eb6aa7d;box-shadow:inset 0 0 0 1px #c9dcd315}
:root[data-theme="army"] :is(input,select,textarea,.dashboard-input,#password-form input,#password-form input[readonly]){background:#152820;border-color:#a9bfb4}
:root[data-theme="army"] #detail{background:linear-gradient(135deg,#213a30f7,#172c23f7);border-color:#a2baad}
:root[data-theme="army"] .viewer{background:radial-gradient(ellipse at center,#213a30,#172c23)}
:root[data-theme="army"] .deck-caption{background:#172c23dc;color:#edf4e5}
/* Full-bleed garage: no stepped crop or solid theme-colored pad beside the truck. */
:root[data-theme] .hero{height:56.25vw;min-height:560px;max-height:1050px;background:#b8cddd url("assets/showroom-panorama-v2.png") center/cover no-repeat;box-shadow:none}
:root[data-theme] .hero .hero-art{width:100%;height:100%;inset:0;object-fit:cover;object-position:center;clip-path:none;mask-image:none;z-index:-2}
:root[data-theme] .hero:before{display:block;background:linear-gradient(90deg,#102334e8 0%,#102334ad 24%,#10233400 48%);z-index:-1}
:root[data-theme] .hero-copy{z-index:2;top:12%;width:30%;left:3%}
:root[data-theme] .hero-copy :is(h1,p,.eyebrow){color:#f5fbff;text-shadow:0 2px 12px #07182980}
:root[data-theme] .hero .stage-controls{z-index:3;background:#18344888;border-color:#a2dcff70}
@media(max-width:1000px){
 :root[data-theme] .hero{height:auto;min-height:0;max-height:none;background-position:left top}
 :root[data-theme] .hero:before{background:linear-gradient(#102334e8,#10233499 45%,transparent 70%)}
 :root[data-theme] .hero-copy{position:relative;top:auto;left:auto;width:auto;padding:28px 6% 20px}
 :root[data-theme] .hero-visual{aspect-ratio:16/9;background:none}
 :root[data-theme] .hero .hero-art{z-index:0}
 :root[data-theme] .hero .stage-controls{position:relative}
}
:root[data-theme="army"] .hero:before{background:linear-gradient(90deg,#10271de8 0%,#213a30ad 24%,#213a3024 48%,transparent 65%)}
:root[data-theme="army"] .hero .stage-controls{background:#213a30bb;border-color:#9cbaac70}
@media(max-width:1000px){:root[data-theme="army"] .hero:before{background:linear-gradient(#10271de8,#213a3099 45%,transparent 70%)}}
/* Blur only a few small surfaces on larger screens; opaque fallbacks remain legible. */
@supports(backdrop-filter:blur(6px)){
  @media(min-width:901px){:root:not([data-theme="light"]) :is(.command-dock,.hood-readout){backdrop-filter:blur(6px)}}
}
@media(max-width:560px){.theme-tools{padding:6px 5%;gap:5px;flex-wrap:wrap}.theme-tools>span{margin-right:auto}:root .theme-tools button{padding:10px 12px}}
@media(prefers-reduced-transparency:reduce){:root:not([data-theme="light"]) :is(section,.feature,.service-item,.vehicle,.systems,.details,.command-dock,.hood-readout){background:#283f54;backdrop-filter:none}}
@media(prefers-reduced-transparency:reduce){:root[data-theme="army"] :is(section,.feature,.service-item,.vehicle,.systems,.details,.command-dock,.hood-readout){background:#213a30}}
@media(forced-colors:active){:root:not([data-theme="light"]) body{background:Canvas;color:CanvasText}.theme-tools{border:1px solid ButtonText}}
@media print{.theme-tools,.deck-field{display:none!important}:root:not([data-theme="light"]) body,:root:not([data-theme="light"]) body *{background:white!important;color:black!important;box-shadow:none!important;text-shadow:none!important}}

/* Supplied TPG silhouette, illuminated metal finish. No solid logo tile. */
main>header:has(.portal-brand){padding:clamp(18px,3vw,28px);border-left:1px solid transparent;border-right:1px solid transparent}
/* Portal panels share soft corners and a quiet seam instead of a heavy double edge. */
main:has(>header .portal-brand){--portal-surface:#ffffffdb;--portal-edge:#a9d4f1}
:root:not([data-theme="light"]) main:has(>header .portal-brand){--portal-surface:#233f53;--portal-edge:#6cc9ef40}
:root[data-theme="army"] main:has(>header .portal-brand){--portal-surface:#213a30;--portal-edge:#a2b7ad55}
:root[data-theme] main>header:has(.portal-brand){border:1px solid var(--portal-edge);border-bottom:0;border-radius:22px 22px 0 0;background:var(--portal-surface);padding-bottom:28px}
:root[data-theme] main>header:has(.portal-brand)+section{position:relative;margin-top:0;border:1px solid var(--portal-edge);border-top:0;border-radius:0 0 22px 22px;background:linear-gradient(180deg,var(--portal-surface),transparent 160px),var(--portal-surface);box-shadow:0 16px 32px #00000012}
main>header:has(.portal-brand)+section::before{content:"";position:absolute;top:0;left:clamp(18px,3vw,28px);right:clamp(18px,3vw,28px);height:1px;background:linear-gradient(90deg,transparent,var(--portal-edge) 20%,var(--portal-edge) 80%,transparent);pointer-events:none}
main:has(>header .portal-brand)>section:not(:first-of-type){border-radius:18px}
header .portal-brand{display:inline-flex;align-items:center;gap:14px;margin:0 0 20px;text-decoration:none;color:inherit;max-width:100%}
@media(max-width:560px){main>header:has(.portal-brand){padding:18px}}
header .portal-wordmark{font-size:20px;font-weight:800;letter-spacing:2px;line-height:1.3}
header .portal-wordmark small{display:block;font-size:11px;font-weight:400;letter-spacing:4px;margin-top:3px}
header .portal-brand:focus-visible{outline:2px solid currentColor;outline-offset:6px}
header .brand>.brand-emblem{display:block;position:relative;flex:0 0 70px;width:70px;height:64px;line-height:0;isolation:isolate;filter:drop-shadow(0 2px 1px #0008);transition:filter .25s ease}
header .brand .brand-emblem>img{width:100%;height:100%;object-fit:contain;background:transparent;padding:0;border-radius:0}
@supports (mask-image:url("/assets/tpg-emblem-mask.webp")){
 header .brand .brand-emblem>img{opacity:0}
 .brand-emblem::before,.brand-emblem::after{content:'';position:absolute;inset:0;pointer-events:none;mask:url('/assets/tpg-emblem-mask.webp') center/contain no-repeat;-webkit-mask:url('/assets/tpg-emblem-mask.webp') center/contain no-repeat}
 .brand-emblem::before{background:linear-gradient(145deg,#f8ffff 0%,#b8ccd0 26%,#edf7f7 42%,#78969c 49%,#cbdce0 56%,#f8ffff 73%,#91afb5 100%)}
 .brand-emblem::after{background:linear-gradient(110deg,transparent 40%,#ddfbffb3 49%,transparent 58%);background-size:300% 100%;background-position:100% 0;animation:emblem-light 14s ease-in-out infinite;opacity:.7}
 :root[data-theme="light"] .brand-emblem::before{background:linear-gradient(145deg,#193e48,#466974 30%,#183740 49%,#698891 53%,#24424b 76%,#102e38)}
}
@keyframes emblem-light{0%,78%{background-position:100% 0}92%,100%{background-position:0% 0}}
@media(hover:hover) and (pointer:fine){header .brand:hover .brand-emblem{filter:drop-shadow(0 2px 1px #0008) drop-shadow(0 0 5px #60d5eb80)}}
header .brand:focus-visible .brand-emblem,header .brand:active .brand-emblem{filter:drop-shadow(0 0 5px #60d5eb99)}
@media(max-width:560px){header .brand>.brand-emblem{flex-basis:54px;width:54px;height:50px}}
@media(prefers-reduced-motion:reduce){.brand-emblem::after{animation:none!important;opacity:0}header .brand>.brand-emblem{transition:none}}
body.paused .brand-emblem::after,body.motion-off .brand-emblem::after{animation:none!important;opacity:0}
@media(forced-colors:active){header .brand .brand-emblem>img{opacity:1;filter:none}.brand-emblem::before,.brand-emblem::after{display:none}}
