/* ==========================================================================
   630 Protection Studio — dark showroom theme (scoped to .studio + tray)
   ========================================================================== */
.studio {
  --bg: #080a0d; --bg-2: #11151a; --bg-3: #171c22; --txt: #f5f7f8; --mut: #9aa4ae; --blue: #008cff; --blue-2: #31b7ff; --ln: rgba(255, 255, 255, 0.08);
  background: var(--bg); color: var(--txt); font-family: var(--font-body);
}
.studio h1, .studio h2, .studio h3, .studio h4 { color: var(--txt); font-family: var(--font-head); }
.studio h3 { font-size: 1.25rem; font-weight: 600; margin: 0 0 0.5em; }
.studio h4 { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mut); margin: 1.25rem 0 0.5rem; }
.studio p { color: var(--mut); }
.studio .muted { color: var(--mut); }
.studio a { color: inherit; }
.studio .eyebrow { color: var(--mut); }
.studio .eyebrow::before { color: var(--blue); }
.studio .section { padding-block: clamp(40px, 6vw, 72px); }
.studio .lbl { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mut); margin: 1rem 0 0.4rem; }
.studio small { color: var(--mut); }
.studio .disclaimer { font-size: 0.8125rem; color: var(--mut); border-left: 2px solid var(--blue); padding-left: 12px; }
.studio .hp { position: absolute; left: -9999px; }

/* Buttons */
.sbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px; border-radius: 12px; font-family: var(--font-head); font-weight: 600; font-size: 0.9375rem; text-decoration: none; cursor: pointer; border: 1px solid var(--ln); background: var(--bg-3); color: var(--txt); transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s; }
.sbtn:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.2); }
.sbtn-primary { background: linear-gradient(135deg, var(--blue), #0068d6); border-color: transparent; color: #fff; box-shadow: 0 10px 24px -12px rgba(0, 140, 255, 0.8); }
.sbtn-primary:hover { background: linear-gradient(135deg, var(--blue-2), var(--blue)); }
.sbtn-ghost { background: transparent; }
.sbtn-block { width: 100%; }
.btn-stack { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1rem; }

/* Studio hero */
.st-hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 clamp(24px, 4vw, 48px); background: radial-gradient(ellipse at 20% 0%, rgba(0, 140, 255, 0.18), transparent 50%), radial-gradient(ellipse at 90% 100%, rgba(49, 183, 255, 0.08), transparent 45%), var(--bg); border-bottom: 1px solid var(--ln); }
.st-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 0.3em; }
.st-hero .lead { color: var(--mut); }
.st-hero .btn-row { margin-top: 1.5rem; }
.st-hero-sub { font-family: var(--font-head); font-weight: 600; color: var(--blue-2); margin: 0 0 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.8125rem; }
.st-nav { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; border-bottom: 1px solid var(--ln); background: var(--bg-2); position: sticky; top: var(--header-h); z-index: 50; }
.st-nav::-webkit-scrollbar { display: none; }
.st-nav a { flex: none; padding: 8px 14px; border-radius: 999px; font-family: var(--font-head); font-size: 0.8125rem; font-weight: 600; text-decoration: none; color: var(--mut); border: 1px solid transparent; white-space: nowrap; min-height: 40px; display: inline-flex; align-items: center; }
.st-nav a:hover { color: var(--txt); }
.st-nav a[aria-current="page"] { color: var(--txt); background: var(--bg-3); border-color: var(--ln); }

/* Showroom */
.showroom { position: relative; border-radius: 16px; overflow: hidden; background: radial-gradient(ellipse at 50% 70%, #1b2129, #080a0d 70%); border: 1px solid var(--ln); aspect-ratio: 16 / 10; min-height: 260px; }
.showroom canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; }
.showroom canvas:active { cursor: grabbing; }
.showroom-wrap { position: relative; }
.sr-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.sr-views { display: flex; gap: 6px; flex-wrap: wrap; }
.sr-btn { min-height: 40px; padding: 6px 14px; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--ln); color: var(--txt); font-family: var(--font-head); font-size: 0.8125rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.sr-btn:hover { border-color: var(--blue); }
.sr-btn svg { width: 18px; height: 18px; }
.sr-colors { display: flex; gap: 8px; }
.sr-swatch { width: 28px; height: 28px; border-radius: 50%; background: var(--c); border: 2px solid rgba(255, 255, 255, 0.25); cursor: pointer; padding: 0; min-width: 28px; }
.sr-swatch.is-on { border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(0, 140, 255, 0.35); }
.sr-hint { font-size: 0.8125rem; color: var(--mut); margin: 8px 0 0; }
.sr-label { position: absolute; left: 14px; top: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(8, 10, 13, 0.75); border: 1px solid var(--ln); font-family: var(--font-head); font-size: 0.8125rem; font-weight: 600; pointer-events: none; backdrop-filter: blur(6px); }

/* Vehicle selector */
.vs { background: var(--bg-2); border: 1px solid var(--ln); border-radius: 14px; padding: 16px; }
.vs-row { display: grid; grid-template-columns: 110px 1fr 1.4fr; gap: 10px; }
.vs label { display: grid; gap: 6px; font-family: var(--font-head); font-size: 0.75rem; font-weight: 600; color: var(--mut); letter-spacing: 0.06em; text-transform: uppercase; }
.studio select, .studio input:not([type=checkbox]):not([type=radio]):not([type=file]), .studio textarea { width: 100%; min-height: 48px; padding: 10px 14px; background: var(--bg-3); color: var(--txt); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 10px; font: inherit; font-size: 1rem; }
.studio select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%239aa4ae' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.studio select:focus, .studio input:focus, .studio textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 140, 255, 0.25); }
.vs-class { display: inline-block; margin-top: 10px; font-size: 0.8125rem; color: var(--blue-2); font-family: var(--font-head); font-weight: 600; }
.vs-class:empty { display: none; }
.vs-extra { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 12px; }
.vs-note { font-size: 0.8125rem; margin: 10px 0 0; }
@media (max-width: 560px) { .vs-row { grid-template-columns: 1fr; } }

/* Tool cards (hub) */
.tool-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.tool { display: flex; flex-direction: column; gap: 8px; background: linear-gradient(160deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--ln); border-radius: 16px; padding: 22px; transition: transform 0.25s, border-color 0.25s; position: relative; overflow: hidden; }
.tool::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 100% 0%, rgba(0, 140, 255, 0.18), transparent 45%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.tool:hover { transform: translateY(-4px); border-color: rgba(0, 140, 255, 0.5); }
.tool:hover::after { opacity: 1; }
.tool-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(0, 140, 255, 0.12); border: 1px solid rgba(0, 140, 255, 0.3); color: var(--blue-2); display: grid; place-items: center; }
.tool-icon svg { width: 24px; height: 24px; }
.tool h3 { margin: 6px 0 0; }
.tool p { margin: 0; font-size: 0.9375rem; flex: 1; }
.tool-meta { font-size: 0.75rem; color: var(--mut); letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--font-head); font-weight: 600; }
.tool .sbtn { align-self: flex-start; margin-top: 8px; }
.tool-feat { grid-column: 1 / -1; background: linear-gradient(135deg, rgba(0, 140, 255, 0.25), var(--bg-2) 60%); }
@media (min-width: 900px) { .tool-feat { grid-column: span 2; } }

/* Layouts */
.st-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr); gap: 20px; align-items: start; }
.st-side { background: var(--bg-2); border: 1px solid var(--ln); border-radius: 16px; padding: 18px; position: sticky; top: calc(var(--header-h) + 62px); }
@media (max-width: 900px) { .st-split { grid-template-columns: 1fr; } .st-side { position: static; } }
.hub-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr); gap: 20px; align-items: center; }
@media (max-width: 900px) { .hub-grid { grid-template-columns: 1fr; } }

/* Builder */
#bnav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; margin-bottom: 18px; border-bottom: 1px solid var(--ln); }
#bnav::-webkit-scrollbar { display: none; }
#bnav button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px; border-radius: 10px; background: none; border: 1px solid transparent; color: var(--mut); font-family: var(--font-head); font-weight: 600; font-size: 0.8125rem; cursor: pointer; }
#bnav button i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: var(--bg-3); border: 1px solid var(--ln); font-size: 0.75rem; }
#bnav button.is-on { color: var(--txt); background: var(--bg-3); border-color: var(--ln); }
#bnav button.is-on i { background: var(--blue); border-color: var(--blue); color: #fff; }
#bnav button.is-done i { background: rgba(0, 140, 255, 0.2); color: var(--blue-2); }
.bstep { animation: fadeUp 0.35s ease both; }
.bstep h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.25em; }
.bstep > p { margin-bottom: 1.25rem; }
.bstep-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--ln); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pick-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pick { width: 100%; min-height: 96px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--ln); color: var(--txt); font-family: var(--font-head); font-weight: 600; font-size: 0.875rem; text-align: left; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.pick:hover { border-color: rgba(255, 255, 255, 0.25); }
.pick.is-on { border-color: var(--blue); background: rgba(0, 140, 255, 0.12); }
.pick-icon { width: 30px; height: 30px; color: var(--blue-2); }
.pick-icon svg { width: 100%; height: 100%; }
.opt { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; padding: 16px; background: var(--bg-2); border: 1px solid var(--ln); border-radius: 12px; margin-bottom: 10px; cursor: pointer; transition: border-color 0.2s; }
.opt:hover { border-color: rgba(255, 255, 255, 0.2); }
.opt:has(input:checked) { border-color: var(--blue); background: rgba(0, 140, 255, 0.08); }
.opt input { width: 20px; height: 20px; margin: 4px 0 0; accent-color: var(--blue); }
.opt b { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--font-head); }
.opt p { margin: 4px 0 0; font-size: 0.9375rem; }
.opt-meta { font-size: 0.8125rem !important; color: var(--blue-2) !important; }
.tag { display: inline-block; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--txt); color: var(--bg); font-family: var(--font-head); font-weight: 700; }
.tag-blue { background: var(--blue); color: #fff; }
.mini { margin: 8px 0 0; padding: 0 0 0 18px; font-size: 0.875rem; color: var(--mut); display: grid; gap: 3px; }
.ticks { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.ticks li { position: relative; padding-left: 24px; font-size: 0.9375rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--blue-2); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 6px 14px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--ln); color: var(--txt); font-family: var(--font-head); font-size: 0.8125rem; font-weight: 600; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.chip:hover { border-color: rgba(255, 255, 255, 0.25); }
.chip.is-on, .chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip-pop { border-color: rgba(0, 140, 255, 0.5); }
.area-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-top: 12px; }
.area { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--ln); cursor: pointer; font-size: 0.9375rem; }
.area.is-on { border-color: var(--blue); }
.area input { accent-color: var(--blue); width: 18px; height: 18px; }
.area small { margin-left: auto; color: var(--blue-2); }
.pcts { display: flex; flex-wrap: wrap; gap: 8px; }
.pct { min-width: 72px; min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--ln); color: var(--txt); font-family: var(--font-head); font-weight: 700; cursor: pointer; }
.pct i { width: 34px; height: 22px; border-radius: 4px; background: linear-gradient(180deg, #bcd4ee, #7fa3c9); position: relative; overflow: hidden; }
.pct i::after { content: ""; position: absolute; inset: 0; background: #000; opacity: calc(1 - var(--vlt)); }
.pct.is-on { border-color: var(--blue); background: rgba(0, 140, 255, 0.12); }
.chk { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 10px 4px 4px; cursor: pointer; font-size: 0.9375rem; }
.chk input { width: 20px; height: 20px; accent-color: var(--blue); }
.ps-vehicle { font-family: var(--font-head); font-weight: 600; color: var(--txt); }
.ps-cards { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.ps-cards li { background: var(--bg-3); border: 1px solid var(--ln); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
.ps-cards small { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; }
.ps-cards b { font-family: var(--font-head); color: var(--txt); font-size: 0.9375rem; }
.ps-est { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; background: rgba(0, 140, 255, 0.1); border: 1px solid rgba(0, 140, 255, 0.3); border-radius: 12px; padding: 12px 14px; margin: 0 0 1rem; }
.ps-est b { font-family: var(--font-head); font-size: 1.125rem; color: var(--txt); }
.qform { display: grid; gap: 12px; }
.qform label { display: grid; gap: 6px; font-family: var(--font-head); font-size: 0.75rem; font-weight: 600; color: var(--mut); text-transform: uppercase; letter-spacing: 0.06em; }
.qrow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .qrow { grid-template-columns: 1fr; } }
.qnote { font-size: 0.8125rem; margin: 0; }
.studio input[type=file] { color: var(--mut); font-size: 0.875rem; }
.studio [aria-invalid="true"] { border-color: #ff5a5a !important; }

/* PPF builder */
.preset { display: grid; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--ln); color: var(--txt); cursor: pointer; width: 100%; }
.preset b { font-family: var(--font-head); font-size: 0.9375rem; }
.preset span { font-size: 0.8125rem; color: var(--mut); }
.preset.is-on { border-color: var(--blue); background: rgba(0, 140, 255, 0.12); }
.preset-pop { border-color: rgba(0, 140, 255, 0.45); }
.preset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 10px 0 16px; }
.area-row { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: 8px 12px; background: none; border: 0; border-bottom: 1px solid var(--ln); color: var(--txt); font: inherit; font-size: 0.9375rem; text-align: left; cursor: pointer; }
.area-row i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--ln); color: transparent; display: grid; place-items: center; }
.area-row i svg { width: 14px; height: 14px; }
.area-row.is-on i { background: var(--blue); border-color: var(--blue); color: #fff; }
.area-row:hover { background: rgba(255, 255, 255, 0.03); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Ceramic quiz */
.quiz { background: var(--bg-2); border: 1px solid var(--ln); border-radius: 16px; padding: clamp(20px, 3vw, 32px); max-width: 820px; }
.qstep { font-family: var(--font-head); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-2); margin: 0 0 0.5rem; }
.quiz h3 { font-size: clamp(1.25rem, 2.6vw, 1.75rem); }
.answers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 1rem; }
.ans { min-height: 56px; padding: 12px 16px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--ln); color: var(--txt); font-family: var(--font-head); font-weight: 600; font-size: 0.9375rem; text-align: left; cursor: pointer; transition: border-color 0.2s, transform 0.2s; }
.ans:hover { border-color: var(--blue); transform: translateY(-1px); }
.ans.is-on { border-color: var(--blue); background: rgba(0, 140, 255, 0.12); }
.qnav { display: flex; justify-content: space-between; gap: 10px; margin-top: 1.25rem; }
.rec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 1rem 0; }
.rec { background: var(--bg-3); border: 1px solid var(--blue); border-radius: 14px; padding: 16px; display: grid; gap: 4px; align-content: start; }
.rec-alt { border-color: var(--ln); }
.rec b { font-family: var(--font-head); font-size: 1.125rem; }

/* Tint simulator */
.t-views { display: flex; gap: 6px; margin-bottom: 10px; }
.t-views button { flex: 1; }
.t-views .is-on { border-color: var(--blue); background: rgba(0, 140, 255, 0.12); }
.inside { position: relative; aspect-ratio: 16 / 10; min-height: 260px; border-radius: 16px; overflow: hidden; border: 1px solid var(--ln); background: #1a1d22; }
.inside-scene-legacy { position: absolute; inset: 0; background: linear-gradient(180deg, #8fc1ec 0%, #cfe4f7 42%, #6f7d6c 42.5%, #4a5648 60%, #3b3f44 60.5%, #2b2f34 100%); }
.inside-scene::before { content: ""; position: absolute; left: 10%; right: 10%; top: 44%; height: 9%; background: linear-gradient(90deg, #d9d2c3, #b5ad9c); clip-path: polygon(0 100%, 8% 0, 92% 0, 100% 100%); }
.inside-scene::after { content: ""; position: absolute; left: 48%; width: 4%; top: 62%; bottom: 0; background: repeating-linear-gradient(180deg, #e8e2c8 0 12%, transparent 12% 24%); }
.inside-glass { position: absolute; inset: 0; }
.inside-glass::before, .inside-glass::after { content: ""; position: absolute; top: 0; bottom: 0; background: #06080a; }
.inside-glass::before { left: 0; width: 50%; opacity: var(--dark, 0.65); }
.inside-glass::after { right: 0; width: 50%; opacity: var(--dark2, 0.65); }
.inside-frame { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 14px #0b0d10, inset 0 -70px 0 #0b0d10; border-radius: 16px; }
.inside-frame::after { content: ""; position: absolute; left: 50%; top: 14px; bottom: 70px; width: 2px; background: rgba(255, 255, 255, 0.15); }
.inside-label { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 0.9375rem; }
.meters { display: flex; gap: 20px; flex-wrap: wrap; margin: 12px 0; }
.meter { display: grid; gap: 4px; font-size: 0.8125rem; color: var(--mut); }
.meter i { display: flex; gap: 4px; }
.meter b { width: 12px; height: 12px; border-radius: 50%; background: var(--bg-3); border: 1px solid var(--ln); }
.meter b.on { background: var(--blue); border-color: var(--blue); }
.cmp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; font-size: 0.8125rem; color: var(--mut); }
.cmp { min-height: 36px; padding: 4px 10px; border-radius: 8px; background: var(--bg-3); border: 1px solid var(--ln); color: var(--txt); font-family: var(--font-head); font-size: 0.8125rem; cursor: pointer; }
.cmp.is-on { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Compare */
.cmp-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.9375rem; }
.cmp-table th, .cmp-table td { padding: 10px 8px; border-bottom: 1px solid var(--ln); text-align: left; vertical-align: middle; }
.cmp-table thead th { font-family: var(--font-head); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mut); }
.cmp-table tbody tr.is-on { background: rgba(0, 140, 255, 0.1); }
.cmp-table tbody th { font-weight: 600; color: var(--txt); }
.cmp-table td span { display: inline-flex; align-items: center; gap: 3px; }
.cmp-table td b { width: 10px; height: 10px; border-radius: 50%; background: var(--bg-3); border: 1px solid var(--ln); }
.cmp-table td b.on { background: var(--blue); border-color: var(--blue); }
.cmp-table td small { margin-left: 6px; font-size: 0.75rem; }
@media (max-width: 640px) { .cmp-table td small { display: none; } .cmp-table th, .cmp-table td { padding: 8px 4px; } }
.cmp-result { background: var(--bg-2); border: 1px solid var(--ln); border-radius: 16px; padding: 20px; }
.cmp-result h3 { font-size: 1.5rem; color: var(--blue-2); }
.layers { display: grid; gap: 4px; margin: 1rem 0; }
.layers span { padding: 10px 14px; border-radius: 8px; background: var(--bg-3); border: 1px dashed var(--ln); color: var(--mut); font-family: var(--font-head); font-size: 0.8125rem; font-weight: 600; text-align: center; opacity: 0.4; }
.layers span.on { opacity: 1; border-style: solid; border-color: var(--blue); color: var(--txt); }
.layers .paint { opacity: 1; background: #2b3139; border-style: solid; color: var(--txt); }

/* Protection map */
.spots { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.spot { display: grid; gap: 2px; text-align: left; padding: 12px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--ln); color: var(--txt); cursor: pointer; min-height: 64px; }
.spot b { font-family: var(--font-head); font-size: 0.9375rem; }
.spot span { font-size: 0.75rem; color: var(--mut); }
.spot:hover { border-color: var(--blue); }
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, 0.6); display: grid; place-items: end center; padding: 0; }
.sheet { position: relative; width: min(100%, 560px); background: var(--bg-2); border: 1px solid var(--ln); border-radius: 20px 20px 0 0; padding: 24px 22px calc(24px + env(safe-area-inset-bottom)); color: var(--txt); animation: sheetUp 0.3s ease both; }
.sheet small { display: block; margin-top: 10px; font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; }
.sheet .sbtn { margin-top: 16px; width: 100%; }
.sheet-x { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-3); border: 1px solid var(--ln); color: var(--txt); cursor: pointer; display: grid; place-items: center; }
.sheet-x svg { width: 18px; height: 18px; }
@keyframes sheetUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 700px) { .modal { place-items: center; padding: 20px; } .sheet { border-radius: 20px; } }

/* Maintenance */
.mt-form { display: grid; gap: 12px; background: var(--bg-2); border: 1px solid var(--ln); border-radius: 16px; padding: 20px; }
.mt-form fieldset { border: 1px solid var(--ln); border-radius: 12px; padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.mt-form legend { font-family: var(--font-head); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mut); padding: 0 6px; }
.mt-form > label { display: grid; gap: 6px; font-family: var(--font-head); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mut); }
.timeline { list-style: none; margin: 1rem 0; padding: 0 0 0 26px; border-left: 2px solid var(--ln); display: grid; gap: 18px; }
.timeline li { position: relative; display: grid; gap: 2px; }
.timeline li::before { content: ""; position: absolute; left: -33px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg-3); border: 2px solid var(--mut); }
.timeline .tl-completed::before { background: var(--mut); }
.timeline .tl-due-soon::before { background: var(--blue-2); border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(49, 183, 255, 0.25); }
.timeline .tl-upcoming::before { border-color: var(--blue); }
.tl-status { font-family: var(--font-head); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mut); }
.tl-due-soon .tl-status { color: var(--blue-2); }
.timeline b { font-family: var(--font-head); font-size: 1rem; }
.timeline time { font-size: 0.875rem; color: var(--blue-2); }
.timeline p { margin: 2px 0 0; font-size: 0.875rem; }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-left: 0; padding: 26px 0 0; border-top: 2px solid var(--ln); gap: 16px; }
  .timeline li::before { left: 0; top: -33px; }
}

/* Package tray */
.tray { position: fixed; right: 18px; bottom: 84px; z-index: 120; width: min(320px, calc(100vw - 36px)); background: #11151a; color: #f5f7f8; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7); font-family: var(--font-body); overflow: hidden; }
.tray-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: linear-gradient(135deg, #008cff, #0068d6); border: 0; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; min-height: 48px; }
.tray-count { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; background: rgba(0, 0, 0, 0.3); display: grid; place-items: center; font-size: 0.75rem; }
.tray-chev { width: 10px; height: 10px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); transition: transform 0.2s; }
.tray-head[aria-expanded="false"] .tray-chev { transform: rotate(-135deg); }
.tray-body { padding: 14px; display: grid; gap: 8px; }
.tray-vehicle { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 0.9375rem; }
.tray-list { list-style: none; margin: 0; padding: 0; font-size: 0.875rem; color: #9aa4ae; display: grid; gap: 4px; }
.tray-list b { color: #f5f7f8; }
.tray-empty { margin: 0; font-size: 0.875rem; color: #9aa4ae; }
.tray-est { margin: 4px 0 0; display: flex; justify-content: space-between; font-size: 0.8125rem; color: #9aa4ae; }
.tray-est b { color: #31b7ff; font-family: var(--font-head); }
.tray-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 4px; }
.tray .sbtn { min-height: 42px; font-size: 0.875rem; }
@media (max-width: 960px) { .tray { right: 10px; left: 10px; bottom: 80px; width: auto; } .tray[data-min="1"] { left: auto; width: 200px; } }
.studio-error { background: #3a1212; color: #ffd5d5; padding: 12px 16px; border-radius: 10px; margin: 12px 0; }

.studio [hidden] { display: none !important; }
.hub-grid > *, .st-split > *, .showroom-wrap, .showroom, #t-outside, #t-inside { min-width: 0; max-width: 100%; }
.showroom canvas { max-width: 100%; }

/* Inside view (photo-based) */
.inside-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.inside-a { filter: brightness(var(--b1, 0.6)) contrast(var(--c1, 0.95)) saturate(0.92); }
.inside-b { filter: brightness(var(--b2, 0.6)) contrast(var(--c2, 0.95)) saturate(0.92); clip-path: inset(0 0 0 50%); }
.inside-split { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(255, 255, 255, 0.35); display: none; }
.inside.is-compare .inside-split, .inside.is-compare .inside-tag { display: block; }
.inside-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.inside-tag { display: none; position: absolute; top: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(8, 10, 13, 0.8); border: 1px solid var(--ln); font-family: var(--font-head); font-size: 0.75rem; font-weight: 600; }
.inside-tag-a { left: 14px; } .inside-tag-b { right: 14px; }
.inside-label { bottom: 40px; background: rgba(8, 10, 13, 0.7); padding: 6px 12px; border-radius: 999px; white-space: nowrap; font-size: 0.8125rem; }
.legal { margin: 12px 0; padding: 12px; border: 1px solid var(--ln); border-radius: 12px; background: var(--bg-3); }
.legal h4 { margin: 0 0 6px; }
.legal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.8125rem; }
.legal-list li { display: grid; gap: 1px; padding-left: 18px; position: relative; }
.legal-list li::before { content: ""; position: absolute; left: 0; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--mut); }
.legal-list .legal-ok::before { background: #22c55e; } .legal-list .legal-bad::before { background: #ef4444; } .legal-list .legal-warn::before { background: #f59e0b; } .legal-list .legal-off { opacity: 0.6; }
.legal-list b { font-family: var(--font-head); font-size: 0.8125rem; }
.legal-list span { color: var(--mut); }
.studio .faq { background: var(--bg-2); border: 1px solid var(--ln); border-radius: 12px; box-shadow: none; }
.studio .faq summary { color: var(--txt); }
.studio .faq summary i { background: var(--bg-3); border: 1px solid var(--ln); }
.studio .faq summary i::before, .studio .faq summary i::after { background: var(--txt); }
.studio .faq[open] summary i { background: var(--blue); border-color: var(--blue); }
.studio .faq-body { color: var(--mut); }
.studio .faq-list { display: grid; gap: 10px; margin-top: 16px; }

.showroom.is-loading::after { content: "Loading vehicle…"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 10px 16px; border-radius: 999px; background: rgba(8, 10, 13, 0.8); border: 1px solid var(--ln); font-family: var(--font-head); font-size: 0.8125rem; font-weight: 600; color: var(--txt); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.5; } }
.model-credits { font-size: 0.75rem; color: var(--mut); padding: 16px 0 28px; }
.model-credits a { color: var(--mut); }

.t-label { margin: 10px 0 0; font-family: var(--font-head); font-weight: 600; font-size: 0.9375rem; color: var(--txt); }
.il-table td, .il-table th { font-size: 0.9375rem; }
.il-table thead th { font-size: 0.75rem; }
.il-table tbody th { color: var(--txt); }
.il-table td { color: var(--mut); }

.showroom.is-compare::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(255, 255, 255, 0.6); z-index: 2; pointer-events: none; }
.showroom .cmp-tag { position: absolute; top: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: rgba(8, 10, 13, 0.8); border: 1px solid var(--ln); font-family: var(--font-head); font-size: 0.75rem; font-weight: 600; display: none; pointer-events: none; }
.showroom.is-compare .cmp-tag { display: block; }
.showroom .cmp-tag-a { left: 12px; top: 48px; } .showroom .cmp-tag-b { right: 12px; top: 48px; }
