/* Configurator: an app screen. Steps left, the inside of the case in the middle, options below it, the total right. */
.cfg-page { overflow: hidden; }
main.cfg > section { padding: 0; } /* not the home page's section rhythm */
.cfg {
  height: 100svh; padding: 6.5rem var(--margin) 1.25rem;
  display: grid; gap: 1.25rem;
  grid-template-columns: max-content minmax(0, 1fr) 22rem;
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "steps stage picker" "steps stage summary";
  column-gap: 1.75rem;
}

/* steps */
.steps { grid-area: steps; overflow-y: auto; overflow-x: hidden; min-width: 11rem; padding-right: 0.4rem; } /* the column fits its longest name */
.steps ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.15rem; }
.steps button {
  width: 100%; text-align: left; padding: 0.45rem 0; border: 0; background: none; cursor: pointer; white-space: nowrap; /* the current-step dot stays beside the name */
  font: 700 1.375rem/1.15 var(--font); letter-spacing: -0.03em; color: var(--muted);
  transition: color 200ms var(--ease), transform 200ms var(--ease);
}
.steps button:hover:not(:disabled) { color: var(--ink); transform: translateX(0.15em); }
.steps [aria-current="step"] { color: var(--ink); }
.steps [aria-current="step"]::after { content: ""; display: inline-block; width: 0.4em; height: 0.4em; margin-left: 0.35em; border-radius: 50%; background: var(--accent); vertical-align: 0.15em; }
.steps button.done { color: var(--ink); }
.steps button.warn { color: var(--coral); }
.steps button:disabled { cursor: default; opacity: 0.45; }
.steps-note { margin-top: 0.5rem; font-size: var(--step-small); color: var(--muted); max-width: 12ch; }

/* stage: a dark field, the case drawn flat, the real part photos placed into it */
.stage {
  grid-area: stage; position: relative; overflow: hidden; border-radius: var(--r-lg);
  /* a hologram bay: the night room with a faint grid */
  background: linear-gradient(rgba(169, 155, 255, 0.06) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, rgba(169, 155, 255, 0.06) 1px, transparent 1px) 0 0 / 40px 40px, var(--room);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 0 80px rgba(123, 97, 255, 0.12); display: grid; place-items: center;
}
.camera { position: absolute; inset: 0; transform-origin: 0 0; transition: transform 1300ms cubic-bezier(.7, 0, .2, 1); }
.case { position: absolute; }
.case svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.part {
  position: absolute; display: block; object-fit: fill;
  
  transition: translate 500ms var(--ease), opacity 250ms var(--ease);
}
.part.ghost { opacity: 0.45; pointer-events: none; }
.part.ghost.bad { opacity: 0.6; outline: 3px solid var(--coral); outline-offset: -3px; }
.part.bad { opacity: 0.6; outline: 2px solid var(--coral); outline-offset: -2px; } /* doesn't fit: see-through, ringed */
.slot { /* where the part goes: a dashed sand outline with its name, breathing */
  position: absolute; border-radius: 6%; border: 2px dashed var(--accent); background: rgba(249, 215, 132, 0.1);
  display: grid; place-items: center; container-type: size;
  animation: slot-breathe 1.8s ease-in-out infinite;
}
.slot::after { content: attr(data-label); color: var(--accent); font-weight: 700; font-size: clamp(4px, 9cqmin, 40px); text-align: center; padding: 0 8%; letter-spacing: -0.02em; }
@keyframes slot-breathe { 50% { opacity: 0.55; } }
.glass {
  position: absolute; inset: 0; border-radius: var(--r-md); overflow: hidden;
  background: rgba(217, 230, 240, 0.13); box-shadow: inset 0 0 0 3px rgba(255, 248, 241, 0.22);
  transform-origin: 0 50%;
  transition: transform 1000ms cubic-bezier(.7, 0, .2, 1), opacity 1000ms var(--ease);
}
.glass::after { /* a flat reflection band across the pane */
  content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.07);
  clip-path: polygon(18% 0, 46% 0, 22% 100%, -6% 100%);
}
.glass.off { transform: perspective(900px) rotateY(-80deg) translateX(-20%); opacity: 0; }
.seat-dot, .seat-ring { position: absolute; border-radius: 50%; pointer-events: none; }
.seat-dot { background: var(--accent); }
.seat-ring { box-shadow: 0 0 0 3px var(--accent); border-radius: 12%; }
.options.enter li { animation: option-in 420ms var(--ease) both; animation-delay: calc(var(--i) * 55ms + 120ms); }
@keyframes option-in { from { opacity: 0; transform: translateY(10px); } }
.stage-hint.bad { background: var(--coral); color: var(--on-dark); }
.stage-hint.quiet { opacity: 0; }
.stage-hint {
  position: absolute; left: 50%; bottom: 1rem; translate: -50% 0; margin: 0; width: max-content; max-width: calc(100% - 2rem); z-index: 2; text-align: center;
  padding: 0.5rem 0.9rem; border-radius: var(--r-md); background: var(--card); box-shadow: var(--card-shadow); color: var(--ink); font-size: var(--step-small); transition: opacity 400ms var(--ease);
}

/* options */
.picker { grid-area: picker; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 0.35rem; }
.picker h2 { font-size: clamp(1.5rem, 2vw, 2.25rem); }
.picker-sub { margin: 0.3rem 0 0.7rem; color: var(--muted); }
.options { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.4rem; }
.option {
  width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center;
  padding: 0.75rem 1rem; border: 0; border-radius: var(--r-md); cursor: pointer; text-align: left;
  background: var(--surface); color: var(--ink); font: inherit;
  transition: background-color 200ms var(--ease), transform 160ms var(--ease);
}
.option:hover:not([aria-disabled="true"]):not([aria-pressed="true"]) { background: var(--surface-2); } /* a chosen option keeps its gold under the pointer */
.option:active:not([aria-disabled="true"]) { transform: scale(0.99); }
.option[aria-pressed="true"] { background: var(--gold); color: var(--brown); } /* KYRA's selection: gold */
.option[aria-disabled="true"] { cursor: not-allowed; opacity: 0.6; }
.option img, .option .swatch { width: 2.75rem; height: 2.75rem; object-fit: cover; border-radius: var(--r-sm); display: block; }
.option-name { font-weight: 500; }
.option-spec { display: block; font-size: var(--step-small); opacity: 0.8; }
.option-why { display: block; font-size: var(--step-small); color: var(--coral); }
.option[aria-pressed="true"] .option-why { color: var(--brown); font-weight: 700; }
.option-price { font-weight: 700; font-variant-numeric: tabular-nums; }

/* summary */
.summary { grid-area: summary; display: flex; flex-direction: column; min-height: 0; }
.total { margin: 0; display: grid; }
.total-label { color: var(--muted); }
.total strong { font-size: clamp(2.5rem, 3.6vw, 3.75rem); letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.summary { padding-top: 1.25rem; }
.lines { min-height: 0; flex: none; scrollbar-width: thin; margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; align-content: start; }
.lines li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: 0.6rem; align-items: baseline; font-size: var(--step-small); }
.lines .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lines .what { color: var(--muted); }
.check { --c: #0969da; margin: 1rem 0 .85rem; padding: .55rem .8rem .6rem; border-left: 3px solid var(--c); border-radius: .5rem; background: color-mix(in srgb, var(--c) 9%, transparent); font-size: var(--step-small); line-height: 1.4; color: var(--ink); }
.check-tip { --c: #1a7f37; }
.check-error { --c: #cf222e; }
.check-h { display: flex; align-items: center; gap: .4em; margin-bottom: .15em; font-weight: 600; color: var(--c); }
.check-h svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.summary-actions { margin-top: auto; display: flex; gap: 0.6rem; }
.summary-actions .button { flex: 1; border: 0; font: 500 var(--step-body) var(--font); cursor: pointer; white-space: nowrap; padding-inline: 1.2em; }
.summary-actions [data-go="next"] { flex: 2; }
.button-ghost { background: var(--surface); color: var(--ink); }
.cfg-credits summary { cursor: pointer; width: max-content; }
.cfg-credits p { margin: 0.4rem 0 0; }
.cfg-credits { margin: 0.9rem 0 0; font-size: var(--step-small); line-height: 1.4; color: var(--muted); }
.cfg-credits a { color: var(--muted); }
.button:disabled { opacity: 0.4; cursor: not-allowed; }

/* tablets and phones: steps as a sideways line, stage on top, options and total below */
@media (max-width: 1000px) {
  .cfg-page { overflow: auto; }
  .cfg {
    height: auto; min-height: 100svh; padding-top: 4.75rem;
    grid-template-columns: 1fr; grid-template-rows: auto 52svh auto auto; column-gap: 0;
    grid-template-areas: "steps" "stage" "picker" "summary";
  }
  .steps { overflow-x: auto; scrollbar-width: none; }
  .picker { overflow: visible; padding-right: 0; } /* the page scrolls here, so the panel doesn't need to */
  .steps ol { display: flex; gap: 1.25rem; }
  .steps li { flex: none; }
  .steps button { font-size: 1.125rem; }
  .steps-note { display: none; }
  .options { max-height: none; }
  .cfg { padding-bottom: 6rem; }
  .steps { position: relative; }
  /* back and next stay in reach of the thumb */
  .summary-actions {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; margin: 0;
    padding: 0.75rem var(--margin) calc(0.75rem + env(safe-area-inset-bottom)); background: var(--bg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .camera, .glass, .part { transition: none; }
  .slot { animation: none; }
}

/* steps 4–6 */
.part.faded { opacity: 0.3; } /* the cooler steps aside (x-ray) while memory goes in beneath it */
.white-case .slot { border-color: var(--gold-ink); background: rgba(169, 98, 0, 0.08); } /* gold that reads on the white case */
.white-case .slot::after { color: var(--gold-ink); }
.white-case .screw-empty { box-shadow: inset 0 0 0 1.5px var(--gold-ink); }
.slot.slot-thin { border-width: 1.5px; border-radius: 2px; }
.option-note { display: block; font-size: var(--step-small); color: var(--muted); }
.option[aria-pressed="true"] .option-note { color: rgba(61, 47, 47, 0.75); }
img.part-memory { object-fit: fill; } /* a stick seen edge-on: its photo squeezed to a strip */
.paste { position: absolute; border-radius: 50%; background: #7d7672; box-shadow: inset -2px -2px 0 rgba(0,0,0,.25), inset 2px 2px 0 rgba(255,255,255,.25); pointer-events: none; } /* grey paste, darker than the lid */
.slot-tag {
  position: absolute; display: grid; place-items: center; container-type: size; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; line-height: 1;
}
.slot-tag span { font-size: 72cqh; } /* sized from the chip it sits in */
.screw { position: absolute; border-radius: 50%; background: #cfc8c2; box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.35); pointer-events: none; }
.screw::after { content: ""; position: absolute; left: 20%; right: 20%; top: 45%; height: 10%; background: rgba(0,0,0,.45); } /* the slot in its head */
.screw-empty { background: transparent; box-shadow: inset 0 0 0 1.5px var(--accent); }
.screw-empty::after { display: none; }
/* RGB sticks light up, cycling slowly through KYRA's colours */
.rgb { position: absolute; pointer-events: none; opacity: 0.6; animation: rgb-cycle 6s linear infinite;
   }
@keyframes rgb-cycle { 0%, 100% { background: #ff9f66; } 25% { background: #ff4d6d; } 50% { background: #7b61ff; } 75% { background: #3ddcff; } }
@media (prefers-reduced-motion: reduce) { .rgb { animation: none; background: #ff9f66; } }
.fan-spin { position: absolute; background-size: 100% 100%; pointer-events: none;
   transition: translate 500ms var(--ease), opacity 250ms; }
.fan-spin.faded { opacity: 0.3; }
.lines li.new { animation: line-in 500ms var(--ease) both; }
.lines li.swap { animation: line-swap 700ms var(--ease); }
@keyframes line-in { from { opacity: 0; transform: translateX(16px); } }
@keyframes line-swap { 0% { background: var(--accent); } 100% { background: transparent; } }

/* steps 7–10 and the reveal */
.led { position: absolute; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px 3px rgba(249, 215, 132, 0.8); animation: led-on 600ms var(--ease) both; }
@keyframes led-on { from { opacity: 0; transform: scale(0.3); } }
.stage::after { content: ""; position: absolute; inset: 0; background: #0b0808; opacity: 0; pointer-events: none; transition: opacity 450ms var(--ease); z-index: 3; }
.stage.dark::after { opacity: 0.88; }
.revealed .stage-hint { background: var(--accent); color: var(--accent-ink); }
.fact { padding: 0.4rem 0.75rem; border-radius: var(--r-sm); background: var(--surface); font-size: var(--step-small); }
.shroud { position: absolute; background: rgba(20, 14, 14, 0.55); border-radius: 0 0 6px 6px; pointer-events: none; transition: opacity 400ms var(--ease);
   }
.shroud.xray { opacity: 0.25; }

.copy-link { display: none; margin-top: 0.75rem; padding: 0; border: 0; background: none; font: 500 var(--step-small) var(--font); color: var(--ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; align-self: center; }
.revealed .copy-link { display: block; }
.steps .step-reveal { margin-top: 0.6rem; color: var(--accent); }
@media (max-width: 1000px) { .steps .step-reveal { margin-top: 0; } } /* in the sideways list it lines up with the others */
.steps .step-reveal[aria-current="step"] { color: var(--ink); }

/* parts are x-ray line drawings (configure-parts.js) */
.part > svg { display: block; width: 100%; height: 100%; overflow: visible; }
.part { filter: drop-shadow(0 0 1.5px rgba(249, 215, 132, 0.35)); }
.part.ghost { filter: none; }
.thumb { width: 2.75rem; height: 2.75rem; padding: 0.2rem; border-radius: var(--r-sm); background: rgba(10, 9, 28, 0.75); box-shadow: inset 0 0 0 1px var(--line); display: block; }
.thumb svg { display: block; width: 100%; height: 100%; }
.option[aria-pressed="true"] .thumb { background: rgba(23, 38, 77, 0.92); }
.part.faded { opacity: 0.16; filter: none; }
.lines li.fee { color: var(--muted); }

.terms-note { margin: 0.6rem 0 0; font-size: 0.72rem; line-height: 1.45; text-align: center; color: var(--muted); }
.terms-note a { color: var(--gold-ink); }
/* founding-build note inside the fit-check box: the $292 waiver on its own line, in the brand orange so it reads on the light note box and the dark case-only summary alike */
.check .founding-note { display: block; margin: 0 0 .15em; font-weight: 600; color: #d9772b; }

/* board step: processor family and colour as two toggles, then the board they make */
.choice { display: grid; gap: 0.35rem; margin-bottom: 0.35rem; }
.choice-label { font-size: var(--step-small); color: var(--muted); letter-spacing: 0.02em; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.seg-btn { display: block; padding: 0.75rem 1rem; }
.choice-board { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 0.75rem 1rem; border-radius: var(--r-md); background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); margin-top: 0.2rem; }
.seg-3 { grid-template-columns: repeat(3, 1fr); }

/* short desktop screens: give the options more room; the parts list in the summary scrolls */
@media (min-width: 1001px) and (max-height: 860px) { .lines { margin-top: 0.6rem; gap: 0.3rem; } .summary { padding-top: 0.6rem; } .picker-sub { margin-bottom: 0.4rem; } }
.seg-4 { grid-template-columns: repeat(4, 1fr); }



/* the 3D card viewer: over the stage, the card alone, drag to turn */
.viewer3d { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #1b1d27, #050507 75%); perspective: 1800px; cursor: grab; touch-action: none; border-radius: inherit; }
.viewer3d:active { cursor: grabbing; }
.viewer3d.still, .viewer3d.still:active { cursor: default; }
.viewer3d-spin { transform-style: preserve-3d; transition: transform 500ms var(--ease); }
.gpu3d { position: relative; transform-style: preserve-3d; }
.gface { position: absolute; backface-visibility: hidden; }
.gface svg { display: block; width: 100%; height: 100%; }
.b3d .gface { left: 0; top: 0; transform-origin: 0 0; }
.g3d { position: absolute; left: 0; top: 0; transform-style: preserve-3d; transform-origin: 0 0; }
.b3d .shell { border: 1.5px solid rgba(23, 38, 77, 0.45); backface-visibility: visible; pointer-events: none; }
.b3d .glass { background: rgba(160, 200, 255, 0.1); border: 1px solid rgba(23, 38, 77, 0.25); backface-visibility: visible; pointer-events: none; }
.gfan { backface-visibility: visible; }
.viewer3d-name { position: absolute; top: 1rem; left: 1.25rem; margin: 0; font-weight: 700; }
.viewer3d-hint { position: absolute; bottom: 1rem; left: 0; right: 0; margin: 0; text-align: center; color: var(--muted); font-size: var(--step-small); }
.viewer3d-close { position: absolute; top: 0.8rem; right: 1rem; padding: 0.45rem 0.9rem; border: 0; border-radius: 999px; background: var(--gold); color: var(--brown); font: 700 var(--step-small) var(--font); cursor: pointer; }

/* the finished build: the itemized total fills the right side, every line shown in full */
@media (min-width: 1001px) { body.revealed .cfg { grid-template-rows: auto minmax(0, 1fr); } }
.revealed .picker { overflow: visible; }
.revealed .lines { max-height: none; flex: 1 1 auto; gap: 0.6rem; }
.revealed .lines .name { white-space: normal; overflow: visible; }
.revealed .fact { display: none; } /* the itemized list says it all here */
.revealed .lines { gap: 0.5rem; }

/* projected benchmarks, on the finished build */
.bench { margin-top: 1rem; padding: 0.85rem 1rem; border-radius: var(--r-md); background: var(--card); box-shadow: var(--card-shadow); display: grid; gap: 0.55rem; }
.bench-h { margin: 0; font-weight: 700; }
.bench-h span { display: block; font-weight: 400; font-size: var(--step-small); color: var(--muted); }
.bench-row { display: grid; grid-template-columns: 3.2rem 1fr 4.6rem; gap: 0.6rem; align-items: center; font-size: var(--step-small); }
.bench-bar { height: 0.5rem; border-radius: 999px; background: var(--line); overflow: hidden; }
.bench-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #6fb6ff, var(--gold)); transition: width 1200ms cubic-bezier(.2, .8, .2, 1); }
.bench.filled .bench-bar i { width: var(--w); }
.bench-bar i { transition-delay: calc(var(--d, 0) * 90ms); }
@media (prefers-reduced-motion: reduce) { .bench-bar i { transition: none; } }
.bench-total { grid-template-columns: 1fr 4.6rem; }
.bench-total .bench-bar { height: 0.85rem; }
.bench-total .bench-fps { font-size: 1.15rem; }
.bench-fps { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.bench-note { margin: 0; font-size: 0.72rem; color: var(--faint); }
.revealed .lines { flex: 0 1 auto; }
.revealed .picker-sub { display: none; } /* room for the full parts list and the benchmarks */
.revealed .lines { gap: 0.35rem; }
/* the finished build: ordering is the main thing, so its button is big; Back shrinks beside it */
.revealed .summary-actions [data-go="next"] { flex: 4; min-height: 3.75rem; font-size: 1.3rem; font-weight: 700; box-shadow: 0 10px 30px rgba(255, 180, 40, 0.35); }
.revealed .summary-actions [data-go="back"] { flex: 1; padding-inline: 0.6em; }
.bench-sub { margin-top: 0.2rem; }
@media (min-width: 1001px) { body.revealed .cfg { grid-template-columns: max-content minmax(0, 1fr) 27rem; } } /* a wider right side so part names fit on one line */
.summary .bench-h span { display: inline; margin-left: 0.35em; } /* subtitles share the heading's line */
.summary .bench { gap: 0.4rem; }
.bench[hidden] { display: none; } /* its grid layout would otherwise show an empty card */

/* ---------- the whole page on a dotted ground; the steps and the order panel float on it as pill-rounded cards ---------- */
body.cfg-page { background: radial-gradient(circle, rgba(37, 37, 31, .16) 1.1px, transparent 1.4px) 0 0 / 18px 18px, var(--bg); }
body.cfg-page::before { display: none; }
.stage { background: none !important; box-shadow: none !important; overflow: hidden; } /* clipped, so a zoomed-in case never covers the side panels */
.steps, .picker, .summary { position: relative; z-index: 2; }
@media (min-width: 1001px) {
  .cfg { row-gap: 0; column-gap: 2rem; padding-left: 1.25rem; padding-right: 1.25rem; }
  .steps { align-self: center; max-height: 100%; padding: 1.4rem 1.6rem; border-radius: 2rem; background: var(--card); box-shadow: 0 18px 44px rgba(37, 37, 31, .12), inset 0 0 0 1px var(--line); }
  main.cfg > .picker, main.cfg > .summary { background: var(--card); box-shadow: 0 18px 44px rgba(37, 37, 31, .12), inset 0 0 0 1px var(--line); }
  main.cfg > .picker { border-radius: 2rem 2rem 0 0; padding: 1.6rem 1.6rem .6rem; }
  main.cfg > .summary { border-radius: 0 0 2rem 2rem; padding: .6rem 1.6rem 1.6rem; box-shadow: 0 30px 40px -10px rgba(37, 37, 31, .14), inset 0 -1px 0 var(--line), inset 1px 0 0 var(--line), inset -1px 0 0 var(--line); } /* no shadow cast up over the picker */
}
@media (max-width: 1000px) {
  .steps { padding: .55rem 1.1rem; border-radius: 999px; background: var(--card); box-shadow: 0 10px 28px rgba(37, 37, 31, .1), inset 0 0 0 1px var(--line); }
}
.seg-btn { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; text-align: left; } /* side-by-side choices line up from the top */
.seg-btn .option-spec { flex: 1; display: flex; flex-direction: column; }
.seg-btn .seg-price { margin-top: auto; padding-top: .35em; } /* prices sit on the same line however the text above wraps */

/* ---------- the case step in 3D, and dimension bands like a spec sheet ---------- */
.case3d { position: absolute; inset: 0; display: grid; place-items: center; perspective: 2400px; }
.case3d-turn { transform-style: preserve-3d; }
.dim { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2em;
  background: rgb(0 0 0 / .55); box-shadow: inset 0 0 0 1px var(--hairline-strong); border-radius: 0; color: var(--text); font-weight: 700; letter-spacing: .02em; pointer-events: none; }
.dim b { line-height: 1; white-space: nowrap; }
.dim i { position: relative; align-self: stretch; height: 2px; margin: 0 .5em; background: #fff; }
.dim i::before, .dim i::after { content: ""; position: absolute; top: 50%; width: .5em; height: .5em; border: solid #fff; border-width: 0 0 2px 2px; }
.dim i::before { left: 0; transform: translateY(-50%) rotate(45deg); }
.dim i::after { right: 0; transform: translateY(-50%) rotate(-135deg); }
.dim.v { flex-direction: row; }
.dim.v b { writing-mode: vertical-rl; transform: rotate(180deg); }
.dim.v i { width: 2px; height: auto; margin: .5em 0; }
.dim.v i::before { left: 50%; top: 0; transform: translateX(-50%) rotate(135deg); }
.dim.v i::after { left: 50%; right: auto; top: auto; bottom: 0; transform: translateX(-50%) rotate(-45deg); }
.dim2d { position: absolute; z-index: 30; font-size: calc(var(--mm, 1px) * 11); }
.dim3d { backface-visibility: visible; }
.dim2d.deep .dim i { display: none; }

/* the 3D case turns: leaving the case step it turns face-on and fades into the side view */
.case3d-turn { transition: transform 700ms cubic-bezier(.65, 0, .25, 1); }
.case3d-turn.dragging { transition: none; }
.case3d .dim3d { transition: opacity 300ms; }
.turning .dim3d, .case3d.fading .dim3d { opacity: 0; }
.case3d.fading { pointer-events: none; animation: case3d-out 320ms ease forwards; }
@keyframes case3d-out { to { opacity: 0; } }
.seg-btn[data-cpu-tier], .seg-btn:is([data-fans], [data-board], [data-cpu], [data-cpu-tier], [data-cooler], [data-gpu]) { border: 0; border-radius: var(--r-md); background: var(--surface-1, rgba(37,37,31,.05)); color: var(--ink); font: inherit; cursor: pointer; }
.seg-btn[data-cpu-tier][aria-pressed="true"], .seg-btn:is([data-fans], [data-board], [data-cpu], [data-cpu-tier], [data-cooler], [data-gpu])[aria-pressed="true"] { background: var(--gold); color: var(--brown); }
.seg-btn[data-cpu-tier]:hover:not([aria-pressed="true"]), .seg-btn:is([data-fans], [data-board], [data-cpu], [data-cpu-tier], [data-cooler], [data-gpu]):hover:not([aria-pressed="true"]) { background: var(--surface-2); }
.seg-2x2 { grid-template-columns: 1fr 1fr; }
.seg-5 { grid-template-columns: repeat(5, 1fr); } /* the fan count: 2, 3, 4, 5, 8 */
.seg-5 .seg-btn { align-items: center; padding: 0.6rem 0; } /* the fan count: five short buttons */
.seg-2x2 .seg-btn { min-height: 5.2rem; }
main.cfg > .picker { overflow-x: hidden; }

/* the 3D stage: the camera glides, the model turns with it */
.camera { transition: transform 1100ms cubic-bezier(.65, 0, .25, 1); }
.case3d-turn { transition: transform 1100ms cubic-bezier(.65, 0, .25, 1); }
.case3d.open .glass { display: none; }
.ov3d { pointer-events: none; }
.slot3d { border: 2px dashed rgba(91, 99, 64, .9); border-radius: 6px; background: rgba(91, 99, 64, .12); display: grid; place-items: center; color: #5b6340; font: 700 12px/1 var(--font); }
.ghost3d { opacity: .78; }
.ghost3d.bad { opacity: .5; }
.camera, .case3d-turn { will-change: transform; } /* their own layers: the camera glide doesn't repaint the model */

/* short or ultra-wide screens: the options always keep at least 16rem (or 40%) of the right column; the parts list scrolls inside the
   summary instead of pushing them out, and the total and buttons stay in view */
@media (min-width: 1001px) {
  .cfg { grid-template-rows: minmax(min(16rem, 40%), 1fr) minmax(0, auto); }
}
/* the finished build: nothing shrinks under anything else; if the itemized list and benchmarks don't fit, the summary scrolls and the
   order button stays pinned at its bottom */
.revealed .lines, .revealed .bench { flex: none; }
.revealed .summary { overflow-y: auto; scrollbar-width: thin; }
.revealed .summary-actions { position: sticky; bottom: 0; z-index: 1; padding-top: 0.6rem; background: linear-gradient(transparent, var(--card) 0.6rem); }
/* short screens (ultra-wide, laptops): the itemized list waits for the finished build, where it's shown in full; until then the total is
   enough, and the options get the room instead of scrolling */
@media (min-width: 1001px) and (max-height: 950px) {
  /* the all-clear banner and the ordering terms wait for the finished build too (a problem still shows); the total sets a little smaller */
  .cfg { row-gap: 0.75rem; }
  .choice { margin-bottom: 0.15rem; }
  main.cfg > .picker { padding-top: 1rem; }
  main.cfg > .summary { padding-bottom: 1rem; }
}

/* case-only (CASE_ONLY in configure.js): the empty case live in 3D, its size and any note under it */
.view3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* the loading screen (configure.js loader()): the orb and a thin olive bar on the page's own ground; the 3D view stays hidden
   until it's ready, then fades in as the loader fades out */
.view3d { transition: opacity 0.45s ease; }
.stage.is-loading .view3d, .stage.is-loading .dims3d { opacity: 0; }
/* the case's size bands on the 3D view (configure.js placeDims), each mapped onto the case's edge in perspective */
.dims3d { position: absolute; inset: 0; z-index: 2; pointer-events: none; transition: opacity 0.45s ease; }
.stage:is(.is-assembling, .is-trailer) .dims3d { opacity: 0; transition-duration: 0.2s; } /* the parts are flying: the bands come back once it's together */
/* the floating panels glide in when the page opens, one after another */
@media (prefers-reduced-motion: no-preference) {
  .case-only :is(.cfg-title, .steps, .summary, .cfg-models, .cfg-feature, .check, .cfg-strip) { animation: panel-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .case-only :is(.cfg-title, .steps, .summary) { --from: -2.5rem 0; }
  .case-only :is(.cfg-models, .cfg-feature, .check) { --from: 2.5rem 0; animation-delay: 0.08s; }
  .case-only .cfg-strip { --from: 0 2rem; animation-delay: 0.16s; }
}
@keyframes panel-in { from { opacity: 0; translate: var(--from, 0 1.5rem); } }
.dim3d-band { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.case-only .view3d-note:empty { display: none; }
.loading3d { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; transition: opacity 0.45s ease; }
.loading3d.done { opacity: 0; pointer-events: none; }
.loading3d .stage-skeleton { width: min(62%, 420px); height: min(58%, 460px); border-radius: 14px; } /* a case-sized shimmer where the build will appear */
.view3d-note { display: none; }
.case-only .view3d-note { display: block; position: absolute; left: 50%; bottom: 1rem; translate: -50% 0; margin: 0; width: max-content; max-width: calc(100% - 2rem); z-index: 2; text-align: center;
  padding: 0.5rem 0.9rem; border-radius: var(--r-md); background: var(--card); box-shadow: var(--card-shadow); color: var(--ink); font-size: var(--step-small); }
.case-only .stage-hint, .case-only .camera { display: none; }
/* the "Show airflow" switch under the fan choices (the flow is drawn in the 3D view itself) */
.airflow-toggle { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--step-small); color: var(--ink); cursor: pointer; }
.airflow-toggle input { width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--ink); }

/* the steps pill holds the build so far: a rounded button per choice (what's chosen and its price), the total under them */
.steps .total { margin: 0; }
.steps button.done { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label label" "name price"; column-gap: .9rem; row-gap: .1rem; align-items: baseline;
  padding: .65rem .95rem; border-radius: 1.15rem; background: var(--surface); white-space: normal; font: 600 1rem/1.25 var(--font); letter-spacing: -0.01em; color: var(--ink);
  transition: background-color 200ms var(--ease), transform 160ms var(--ease); }
.steps button.done:hover:not(:disabled) { background: var(--surface-2); transform: none; }
.steps button.done:active { transform: scale(0.99); }
.steps button.done.warn { box-shadow: inset 0 0 0 2px var(--coral); }
.step-label { grid-area: label; font-size: var(--step-small); font-weight: 500; color: var(--muted); }
.step-name { grid-area: name; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step-price { grid-area: price; font-weight: 700; font-variant-numeric: tabular-nums; }
.steps button.done[aria-current="step"]::after { display: none; } /* the dot goes beside the step's name instead */
.steps button.done[aria-current="step"] .step-label::after { content: ""; display: inline-block; width: 0.45em; height: 0.45em; margin-left: 0.35em; border-radius: 50%; background: var(--accent); vertical-align: 0.1em; }
@media (min-width: 1001px) {
  body:not(.revealed) .cfg { grid-template-columns: max-content minmax(0, 1fr) 24rem; }
  .steps { display: flex; flex-direction: column; gap: 1rem; width: 17rem; min-width: 0; }
  .steps ol { gap: .45rem; }
  .steps .total { padding-top: .9rem; border-top: 1px solid var(--line); }
  .steps .total strong { font-size: clamp(2.2rem, 2.9vw, 3.25rem); }
}
/* phones and tablets: the same buttons and the total in a compact bar just above the button, so the price is always in view */
@media (max-width: 1000px) {
  .cfg { padding-bottom: 11.5rem; }
  .steps { position: fixed; left: var(--margin); right: var(--margin); bottom: calc(4.6rem + env(safe-area-inset-bottom)); z-index: 20; overflow: hidden;
    display: flex; align-items: center; gap: .5rem; padding: .4rem .8rem .4rem .4rem; border-radius: 1.6rem; }
  .steps ol { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; gap: .35rem; }
  .steps button.done { grid-template-areas: "label price" "name name"; column-gap: .45rem; padding: .35rem .6rem; border-radius: 1rem; font-size: .85rem; max-width: 9.5rem; }
  .steps button.done .step-label, .steps button.done .step-price { font-size: .75rem; }
  .steps button.done .step-price { font-weight: 600; color: var(--muted); }
  .steps .total { flex: none; display: grid; text-align: right; }
  .steps .total-label { font-size: var(--step-small); }
  .steps .total strong { font-size: 1.4rem; }
}

/* the right side: one rounded card (the options, then ordering) that wraps its content; the fit-check note is its own card */
.cfg { grid-template-areas: "steps stage picker" "steps stage summary" "steps stage note"; }
.check { grid-area: note; position: relative; z-index: 2; align-self: start; }
@media (min-width: 1001px) {
  .cfg { grid-template-rows: minmax(min(16rem, 40%), 1fr) minmax(0, auto) auto; }
  .cfg .check { margin: 1rem 0 0; padding: .8rem 1.1rem .85rem; border-left: 0; border-radius: 1.4rem; background: var(--card);
    box-shadow: 0 18px 44px rgba(37, 37, 31, .12), inset 0 0 0 1px var(--line); }
}
@media (max-width: 1000px) {
  .cfg { grid-template-rows: auto 52svh auto auto auto; grid-template-areas: "steps" "stage" "picker" "summary" "note"; }
}

/* case-only on a desktop: the 3D scene (the case on its desk) fills the whole window behind the floating panels, with no
   box round it; the panels, the header and the note float above it */
@media (min-width: 1001px) {
  .case-only .stage { position: fixed; inset: 0; z-index: 0; width: 100vw; height: 100svh; align-self: stretch; justify-self: stretch; margin: 0; border-radius: 0; background: none; box-shadow: none; }
}

/* case-only on phones and tablets: the 3D scene fills the whole screen behind everything; the options scroll up over it on
   frosted cards, starting below the case (the view lifts the case into the top half, configure.js viewShift) */
@media (max-width: 1000px) {
  .case-only .stage { position: fixed; inset: 0; z-index: 0; width: 100vw; height: 100svh; margin: 0; border-radius: 0; background: none; box-shadow: none; }
}


/* ---------- case-only, laid out like a product configurator: the case's name top left, the build steps as pill tabs on
   the left with the total under them, the model and its features on the right, highlight cards and colors along the
   bottom, hotspots on the case itself. Frosted cards float over the 3D scene and leave the middle clear for the case ---------- */
.cfg-left, .cfg-right { display: contents; } /* their own boxes only in case-only; elsewhere their panels stay grid items */
body:not(.case-only) :is(.cfg-title, .cfg-models, .cfg-feature, .cfg-strip) { display: none; }
.case-only .picker { display: none; } /* the case's choices live in the cards below */
.case-only {
  --espresso: var(--black); --bone: var(--white); /* chosen: the light ink, black text */
  --frost-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
.case-only :is(.cfg-title, .steps .tab, .summary, .cfg-models, .cfg-options, .cfg-air .air-btn, .feat-text, .cfg .check, .hl-card, .strip-head h2, .strip-head .info-btn, .strip-note, .pill-toggle, .colors, .arrow-btn) {
  background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 2px rgba(37, 37, 31, .04), var(--frost-shadow); /* soft: a top highlight and a wide shadow, no outline */
}
.case-only .cfg .option[aria-pressed="true"]:not(.swatch) { background: var(--espresso); color: var(--bone); } /* chosen: espresso */
.case-only .cfg .option[aria-pressed="true"] .option-spec { opacity: .75; }

/* the title: name, model and color, the spec behind the info button */
.cfg-title { position: relative; display: grid; grid-template-columns: auto auto; justify-content: start; align-items: center; gap: .25rem .75rem; padding: .9rem 1.1rem 1rem 1.35rem; border-radius: 1.6rem; }
.cfg-name { margin: 0; font: 700 clamp(1.9rem, 1.2rem + 1.4vw, 2.7rem)/1.05 var(--font); letter-spacing: -.045em; color: var(--espresso); }
.cfg-sub { grid-column: 1 / -1; margin: 0; font-size: var(--step-small); color: var(--muted); }
.cfg-spec { position: absolute; left: 0; top: calc(100% + .5rem); z-index: 3; width: max(100%, 19rem); margin: 0; padding: .8rem 1rem; border-radius: 1.2rem;
  font-size: var(--step-small); line-height: 1.45; color: var(--espresso); background: #fff; box-shadow: inset 0 0 0 1px rgba(37, 37, 31, .1), var(--frost-shadow); }
.cfg-spec[hidden], .strip-note[hidden] { display: none; }
.info-btn, .arrow-btn { flex: none; width: 2.25rem; height: 2.25rem; padding: 0; border: 0; display: grid; place-items: center; cursor: pointer; color: var(--espresso); background: rgba(37, 37, 31, .06); }
.info-btn svg, .arrow-btn svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.case-only .cfg .info-btn[aria-expanded="true"] { background: var(--espresso); color: var(--bone); }
.arrow-btn { width: 2.6rem; height: 2.6rem; }
.arrow-btn:disabled { opacity: .45; cursor: default; }

/* the steps as pill tabs, the chosen one espresso; parts still to come greyed with "Soon" */
.case-only .steps { padding: 0; width: auto; min-width: 0; max-height: none; overflow: visible; border-radius: 0; background: none; box-shadow: none; }
.case-only .steps ol { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; }
.case-only .steps .tab { width: auto; display: inline-flex; align-items: center; gap: .55rem; padding: .62rem 1.35rem; border: 0; white-space: nowrap;
  font: 600 .95rem/1.1 var(--font); letter-spacing: -.01em; color: var(--espresso); }
.case-only .steps .tab:hover:not(:disabled, [aria-current]) { transform: none; color: var(--espresso); }
.case-only .steps .tab[aria-current] { background: var(--espresso); color: var(--bone); }
.case-only .steps .tab[aria-current]::after { display: none; }
.case-only .steps .tab:disabled { color: var(--muted); opacity: .75; }
@media (min-width: 1001px) and (max-height: 1000px) { .case-only .steps ol { gap: .3rem; } .case-only .steps .tab { padding-block: .5rem; } } /* ten tabs (Storage among them) in the room nine took, on laptop heights */
.tab-soon { font-size: .66rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--olive); }

/* the total, a compact card under the tabs */
.case-only .summary { padding: .95rem 1.15rem 1.05rem; border-radius: 1.6rem; display: grid; gap: .7rem; }
.case-only .total { display: grid; gap: .1rem; }
.case-only .total-label { font-size: var(--step-small); color: var(--muted); }
.case-only .total strong { font-size: clamp(1.8rem, 1.3rem + .9vw, 2.35rem); letter-spacing: -.045em; line-height: 1.05; color: var(--espresso); }
.total-sub { font-size: .75rem; color: var(--muted); }
.save-build { justify-self: start; font: 600 .78rem/1 var(--font); letter-spacing: .06em; color: inherit; text-decoration: underline; text-underline-offset: 3px; } /* to the account page, which keeps it (signing in first if need be) */
.case-only .summary-actions { margin: 0; }
.case-only .summary-actions [data-go="next"]:disabled { opacity: 1; padding: .7rem 1rem; font-size: .875rem; background: rgba(37, 37, 31, .07); color: var(--muted); box-shadow: none; }

/* the right column: the three models (name over price), the dark feature card with its text card tucked under, the note */
.cfg-models { padding: .45rem; border-radius: 1.5rem; }
.cfg-models-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.case-only .cfg-models-row .seg-btn { min-height: 3.9rem; padding: .6rem .8rem; border-radius: 1.1rem; font-size: .9rem; }
.cfg-models-row .option-name { font-weight: 600; line-height: 1.15; }
/* the Motherboard tab's brand box (owner, 2026-11-14): a brand-tinted OUTER box whose header is the AMD / Intel toggle, with a distinct inset INNER box holding the platform sockets. Red for AMD, blue for Intel */
.brand-box { grid-column: 1 / -1; display: grid; gap: .55rem; padding: .55rem; border-radius: 1.3rem; }
.brand-amd { --brand: #c8102e; }
.brand-intel { --brand: #0068b3; }
.case-only .brand-box { background: color-mix(in srgb, var(--brand) 8%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 34%, transparent); }
/* the inner box: an inset sub-panel, a stronger brand tint sunk into the outer box, so the sockets read as nested under the maker header */
.case-only .brand-box .brand-plat { padding: .45rem; border-radius: .95rem; background: color-mix(in srgb, var(--brand) 14%, transparent); box-shadow: inset 0 1px 3px rgb(0 0 0 / .22), inset 0 0 0 1px color-mix(in srgb, var(--brand) 26%, transparent); }
.brand-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.brand-tab { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; min-height: 3.5rem; padding: .6rem .85rem; border: 0; border-radius: .9rem; background: rgba(255, 255, 255, .55); color: var(--espresso); font: inherit; text-align: left; cursor: pointer; }
.brand-tab:hover:not([aria-pressed="true"]) { background: rgba(255, 255, 255, .85); }
.brand-tab[aria-pressed="true"] { background: var(--brand); color: #fff; }
.brand-name { font-weight: 600; line-height: 1.15; }
.brand-from { font-size: .8rem; opacity: .85; }
.brand-plat .seg-btn small { font-weight: 500; opacity: .6; }
.case-only .brand-box .brand-plat .seg-btn[aria-pressed="true"] { background: var(--brand); color: #fff; }
.case-only .brand-box .brand-plat .seg-btn[aria-pressed="true"] small { opacity: .8; }
.cfg-feature { display: grid; isolation: isolate; }
.feat-dark { display: flex; align-items: center; gap: .75rem; padding: .95rem 1.1rem; border-radius: 1.5rem; background: var(--espresso); color: var(--bone); box-shadow: var(--frost-shadow); }
.feat-icon { flex: none; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 50%; background: rgba(243, 240, 232, .12); }
.feat-icon svg, .hl-icon svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.feat-title { margin: 0; font: 600 1.05rem/1.2 var(--font); letter-spacing: -.01em; }
.feat-text { position: relative; z-index: -1; margin: -1.4rem 0 0; padding: 1.95rem 1.2rem 1.05rem; border-radius: 0 0 1.5rem 1.5rem; font-size: var(--step-small); line-height: 1.5; color: var(--espresso); }
.case-only .cfg .check { margin: 0; width: auto; padding: .8rem 1.1rem .85rem; border: 0; border-radius: 1.4rem; }

/* the bottom: Feature Highlights, Show airflow and the colors on one line, the cards under it */
.cfg-strip { display: grid; gap: .65rem; min-width: 0; }
.strip-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.strip-head h2 { margin: 0; padding: .6rem 1.1rem; border-radius: 999px; font: 700 1.1rem/1 var(--font); letter-spacing: -.02em; color: var(--espresso); }
.strip-note { margin: 0; padding: .55rem .95rem; border-radius: 999px; font-size: .8rem; color: var(--espresso); }
.pill-toggle { margin-left: auto; display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.1rem; font: 600 .875rem/1 var(--font); color: var(--espresso); cursor: pointer; }
.pill-toggle input { width: 1rem; height: 1rem; margin: 0; accent-color: var(--olive); }
.case-only .pill-toggle:has(:checked) { background: var(--espresso); color: var(--bone); }
.pill-toggle:has(:focus-visible) { outline: 2px solid var(--olive); outline-offset: 2px; }
.colors { display: flex; align-items: center; gap: .7rem; padding: .3rem .35rem .3rem 1.1rem; border-radius: 999px; }
.colors-label { font: 600 .875rem/1 var(--font); color: var(--espresso); }
.swatches { display: flex; gap: .55rem; }
.case-only .swatches .swatch { width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(37, 37, 31, .25); }
.case-only .swatches .swatch-black { background: #1b1b1d; }
.case-only .swatches .swatch-white { background: #eeeeef; }
.case-only .swatches .swatch[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgba(37, 37, 31, .25), 0 0 0 3px #fff, 0 0 0 5px var(--olive); }
.strip-body { display: flex; gap: .75rem; min-width: 0; }
.strip-arrows { display: flex; flex-direction: column; justify-content: center; gap: .5rem; }
.hl-cards { flex: 1; min-width: 0; margin: 0; padding: 0; list-style: none; display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hl-cards::-webkit-scrollbar { display: none; }
.case-only .hl-card { flex: 1 0 11.5rem; scroll-snap-align: start; display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: space-between; gap: .65rem; padding: .8rem 1rem .95rem; border-radius: 1.5rem; }
.hl-icon { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; color: var(--espresso); box-shadow: inset 0 0 0 1px rgba(37, 37, 31, .18); }
.hl-label { align-self: center; justify-self: end; text-align: right; font-size: .8rem; line-height: 1.25; color: var(--muted); }
.hl-value { grid-column: 1 / -1; display: flex; align-items: baseline; gap: .3rem; white-space: nowrap; font: 600 clamp(1.3rem, 1rem + .7vw, 1.7rem)/1 var(--font); letter-spacing: -.035em; color: var(--espresso); font-variant-numeric: tabular-nums; }
.hl-value small { font-size: .55em; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.hl-size .hl-value { font-size: clamp(1.1rem, .85rem + .55vw, 1.4rem); }
.hl-text .hl-value { font-size: .95rem; line-height: 1.3; letter-spacing: -.01em; white-space: normal; }
.case-only .hl-card.hl-dark { flex-basis: 16.5rem; background: var(--espresso); color: var(--bone); box-shadow: var(--frost-shadow); }
.hl-dark .hl-label { color: rgba(243, 240, 232, .72); }
.hl-dark .hl-icon { color: var(--bone); box-shadow: inset 0 0 0 1px rgba(243, 240, 232, .28); }
.hl-dark .hl-value { align-items: center; color: var(--bone); }
.hl-fans { display: flex; gap: .3rem; margin-left: auto; }
.case-only .hl-fans .seg-btn:not(.swatch) { border: 0; min-width: 2.1rem; padding: .4rem .55rem; align-items: center; justify-content: center; border-radius: 999px; font: 600 .85rem/1 var(--font); letter-spacing: 0; background: rgba(243, 240, 232, .12); color: var(--bone); }
.case-only .hl-fans .seg-btn:not(.swatch):hover:not([aria-pressed="true"]) { background: rgba(243, 240, 232, .22); }
.case-only .hl-fans .seg-btn:not(.swatch)[aria-pressed="true"] { background: var(--bone); color: var(--espresso); }
.case-only .hl-fans .seg-btn:not(.swatch):focus-visible { outline-color: var(--bone); }

/* hotspots on the case (configure.js placeHotspots): a dot on the feature, its name in a frosted pill; hidden while the view loads or a case scans in */
.hotspots { position: absolute; inset: 0; z-index: 2; pointer-events: none; transition: opacity .45s ease; }
.stage:is(.is-loading, .is-assembling, .is-trailer) .hotspots { opacity: 0; } /* (and while a part's trailer plays) */
.stage:is(.view-board, .view-cpu) :is(.hotspots, .dims3d:not(.board-dims, .part-dims)) { opacity: 0; } /* close on the board: the case's labels and size bands step aside */
.stage:not(.view-board) .dims3d.board-dims { opacity: 0; } /* the board's own bands show only close on the board */
.stage:is(.view-board, .view-cpu) .hotspot { pointer-events: none; }
.stage:is(.is-loading, .is-assembling, .is-trailer) .hotspot { pointer-events: none; }
.hotspot { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; align-items: center; gap: .4rem; padding: 0; border: 0; background: none; cursor: pointer;
  transform: translate(-1rem, -50%); font: 600 .78rem/1 var(--font); color: var(--text); transition: scale 140ms var(--ease); }
.hotspot.left { flex-direction: row-reverse; transform: translate(calc(-100% + 1rem), -50%); }
.hotspot:active { scale: .97; }
.hotspot:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: 999px; }
.hotspot i { flex: none; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: rgba(37, 37, 31, .38); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hotspot i::after { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--bone); transition: background-color 200ms; }
.hotspot span { padding: .48rem .85rem; border-radius: 999px; white-space: nowrap; background: rgb(0 0 0 / .62); box-shadow: inset 0 0 0 1px var(--hairline-strong);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background-color 200ms, color 200ms; }
.hotspot:hover span { background: #000; }
.hotspot[aria-pressed="true"] span { background: var(--espresso); color: var(--bone); }
.hotspot[aria-pressed="true"] i::after { background: #b9c79a; }

/* the studio: a seamless near-white ground behind the case (the 3D canvas is transparent, only the case and its contact shadow),
   a touch darker toward the edges and the floor */
body.case-only.cfg-page { background: radial-gradient(ellipse 60% 55% at 50% 45%, #ffffff 0%, #f7f7f5 45%, #ecebe8 100%) fixed, #ecebe8; }
.case-only .stage::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(transparent 62%, rgba(37, 37, 31, .045) 100%); } /* the floor, a faint fall-off toward the viewer */

/* the header's links as pills */
.cfg-page .nav nav a:not(.button) { padding: .45rem 1rem; border-radius: 999px; color: var(--espresso); box-shadow: inset 0 0 0 1px rgba(37, 37, 31, .12); transition: background-color 160ms; }
.cfg-page .nav nav a:not(.button):hover { background: rgba(37, 37, 31, .06); }

/* desktop: title top left, tabs and total centred down the left, the right column centred down the right, the strip along the foot */
@media (min-width: 1001px) {
  .case-only.cfg-page { overflow: hidden; }
  body.case-only main.cfg { height: 100svh; min-height: 0; padding: 4.6rem 1.5rem 1.25rem; gap: 1rem 2rem;
    grid-template-columns: 15rem minmax(0, 1fr) clamp(17rem, 22vw, 21rem); grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: "title . right" "left . right" "strip strip strip"; align-content: stretch; }
  /* the wrappers let clicks through to the hotspots on the case; their cards take them */
  .case-only :is(.cfg-left, .cfg-right, .cfg-strip, .strip-head, .strip-body) { position: relative; z-index: 1; pointer-events: none; }
  .case-only :is(.cfg-title, .steps ol, .summary, .cfg-right > *, .strip-head > *, .strip-body > *) { position: relative; z-index: 1; pointer-events: auto; }
  .case-only .cfg-title { grid-area: title; align-self: start; justify-self: start; }
  .case-only .cfg-left { grid-area: left; align-self: center; display: flex; flex-direction: column; align-items: stretch; gap: .9rem; }
  .case-only .steps ol { width: max-content; }
  .case-only .cfg-right { grid-area: right; align-self: center; display: flex; flex-direction: column; gap: .75rem; }
  .case-only .cfg-strip { grid-area: strip; }
}
/* short windows (laptops, ultrawides): tighter cards so the case keeps its room */
@media (min-width: 1001px) and (max-height: 860px) {
  body.case-only main.cfg { padding-top: 4.2rem; padding-bottom: .9rem; row-gap: .7rem; }
  .case-only .steps .tab { padding-block: .45rem; }
  .case-only .steps ol { gap: .35rem; }
  .case-only .cfg-left { gap: .7rem; }
  .case-only .summary { padding-block: .75rem .85rem; gap: .55rem; }
  .case-only .hl-card { gap: .45rem; padding-block: .6rem .75rem; }
  .hl-icon { width: 1.9rem; height: 1.9rem; }
  .case-only .cfg-models-row .seg-btn { min-height: 3.4rem; }
}

/* the grey line over the case's name */

/* phone-only pieces stay out of the desktop layout */
.ph-stat, .ph-status, .ph-steps, .ph-toast, .cfg-info, .ph-callout, .ph-badge { display: none; }

/* phones: one app screen, minimal and soft. The case's name top left with a round info button, its price as the big stat, the
   case large on the white studio with a feature callout and a fan badge, and a slim bottom bar (the running total and Order).
   Parts are picked from the sideways tab row under the title; each tab opens its sheet */
@media (max-width: 1000px) {
  .case-only.cfg-page { overflow: hidden; }
  body.case-only main.cfg { display: block; height: 100svh; min-height: 0; padding: 0; }
  .case-only :is(.cfg-title, .steps, .summary, .cfg-models, .cfg-feature, .check, .cfg-strip) { animation: none; } /* no transforms over the fixed sheets */
  .case-only :is(.summary, .cfg-sub, .hotspots, .cfg-strip, .cfg-feature) { display: none !important; }
  body.case-only main.cfg > .steps { display: none; } /* phones: the sideways tab row is replaced by the progress stepper below; the desktop keeps its left-column tab list */
  .case-only :is(.ph-stat, .ph-status, .ph-steps, .ph-toast, .ph-callout, .ph-badge) { display: revert; }
  /* phones: the progress header -- Back / Next around the current part name, "Step X of 10" and a 10-cell bar (done / now / to come) */
  .case-only .ph-steps { position: fixed; z-index: 6; left: var(--margin); right: var(--margin); top: 10rem; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .5rem; padding: .4rem; border-radius: 1.4rem;
    background: rgb(0 0 0 / .82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--hairline), 0 10px 26px rgba(0, 0, 0, .35); }
  .ph-step-nav { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border: 0; border-radius: 1rem; cursor: pointer; color: var(--espresso); background: rgb(255 255 255 / .08); transition: scale 140ms var(--ease); }
  .ph-step-nav svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .ph-step-nav:active:not(:disabled) { scale: .94; }
  .ph-step-nav:disabled { opacity: .3; cursor: default; }
  .ph-step-nav:focus-visible, .ph-step-mid:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; border-radius: 1rem; }
  .ph-step-mid { display: grid; gap: .22rem; min-width: 0; padding: .15rem 0; border: 0; background: none; cursor: pointer; text-align: center; font: inherit; }
  .ph-step-name { font-weight: 600; font-size: .98rem; line-height: 1.1; color: var(--espresso); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ph-step-count { font-size: .72rem; color: var(--muted); }
  .ph-step-bar { display: flex; gap: .2rem; margin-top: .12rem; }
  .ph-step-bar i { flex: 1; height: 3px; border-radius: 2px; background: rgb(255 255 255 / .16); }
  .ph-step-bar i.done { background: var(--olive); }
  .ph-step-bar i.now { background: var(--espresso); }
  .case-only :is(.cfg-left, .cfg-right) { display: none; } /* the sheets, shown when opened */
  /* the header */
  body.case-only main.cfg .cfg-title { position: fixed; z-index: 5; left: var(--margin); right: var(--margin); top: 5.4rem; right: auto; display: grid; grid-template-columns: auto auto; align-items: center; gap: .15rem 1rem; padding: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .case-only .cfg-name { grid-column: 1; font-size: 1.6rem; font-weight: 600; letter-spacing: -.03em; }
  body.case-only main.cfg .cfg-title .info-btn { grid-column: 2; grid-row: 2; width: 2.3rem; height: 2.3rem; background: rgb(0 0 0 / .8); box-shadow: inset 0 0 0 1px var(--hairline), 0 10px 26px rgba(0, 0, 0, .4); }
  body.case-only main.cfg .cfg-title .info-btn[aria-expanded="true"] { background: var(--espresso); }
  .case-only .cfg-spec { width: calc(100vw - 2 * var(--margin)); }
  /* the big stat */
  .case-only .ph-stat { position: fixed; z-index: 5; right: var(--margin); top: 5.4rem; text-align: right; } /* beside the title, so the case below keeps the full width */
  .ph-stat svg { display: none; width: 1.5rem; height: 1.5rem; fill: none; stroke: var(--espresso); stroke-width: 1.3; stroke-linejoin: round; }
  .ph-price { margin: .1rem 0 0; padding-top: .35rem; border-top: 1px solid rgb(255 255 255 / .12); font: 400 1.9rem/1 var(--font); letter-spacing: -.04em; color: var(--espresso); }
  .ph-price span { color: rgb(255 255 255 / .38); }
  .ph-label { margin: .35rem 0 0; font-size: .8rem; color: var(--muted); }
  /* on the case: the chosen feature in a frosted pill (a tap shows the next) and the fan count as a ring badge */
  .case-only .ph-callout { position: absolute; left: 0; top: 0; z-index: 3; transform: translate(-50%, -50%); display: flex; align-items: center; gap: .55rem; padding: .35rem 1rem .35rem .35rem; border: 0; border-radius: 999px; cursor: pointer; text-align: left;
    background: rgb(0 0 0 / .74); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--hairline), 0 12px 28px rgba(0, 0, 0, .4); font-family: var(--font); transition: scale 140ms var(--ease); }
  .ph-callout:active { scale: .97; }
  .ph-callout:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
  .ph-callout-i { width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 50%; background: var(--espresso); color: var(--bone); }
  .ph-callout-i svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
  .ph-callout b, .ph-callout em { line-height: 1.25; }
  .ph-callout b { display: block; font-size: .82rem; font-weight: 600; color: var(--espresso); white-space: nowrap; }
  .ph-callout em { display: block; font-size: .74rem; font-style: normal; font-weight: 600; color: var(--olive); white-space: nowrap; }
  .case-only .ph-badge { position: absolute; left: 0; top: 0; z-index: 3; transform: translate(-50%, -50%); width: 3.3rem; height: 3.3rem; display: grid; place-content: center; text-align: center; line-height: 1; border-radius: 50%;
    background: radial-gradient(closest-side, rgb(0 0 0 / .94) 84%, transparent 86%), conic-gradient(var(--olive) calc(var(--p, 0) * 1turn), rgb(255 255 255 / .1) 0); box-shadow: 0 10px 24px rgba(0, 0, 0, .4); }
  .ph-badge b { font-size: .95rem; font-weight: 600; color: var(--espresso); }
  .ph-badge small { font-size: .6rem; color: var(--muted); }
  .stage:is(.is-loading, .is-assembling, .is-trailer) :is(.ph-callout, .ph-badge) { opacity: 0; pointer-events: none; }
  /* the slim bottom bar: running total on the left, Order (opens the Summary sheet) on the right -- no part icons; parts are the tab row above (owner, 2026-11-14) */
  .case-only .ph-status { position: fixed; z-index: 25; left: var(--margin); right: var(--margin); bottom: calc(.6rem + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .5rem .5rem .5rem 1.15rem; border-radius: 1.7rem;
    background: rgb(0 0 0 / .82); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); box-shadow: inset 0 0 0 1px var(--hairline), 0 18px 40px rgba(0, 0, 0, .4); }
  .case-only .ph-status .total { display: flex; flex-direction: column; gap: .05rem; margin: 0; }
  .ph-total-label { font-size: .72rem; color: var(--muted); }
  .case-only .ph-status .total strong { font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
  .case-only .ph-order { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .7rem 1.4rem; border: 0; border-radius: 1.3rem; cursor: pointer; font: 600 .95rem/1 var(--font); color: var(--bone); background: var(--espresso); box-shadow: 0 8px 20px rgba(0, 0, 0, .4); transition: scale 140ms var(--ease); }
  .ph-order:active { scale: .97; }
  .ph-order:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
  .ph-order svg { width: .95rem; height: .6rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .ph-toast { position: fixed; z-index: 40; left: 50%; bottom: calc(6.6rem + env(safe-area-inset-bottom)); translate: -50% 1rem; width: max-content; max-width: calc(100% - 2 * var(--margin)); margin: 0; padding: .7rem 1.1rem; border-radius: 1.2rem;
    font-size: .8rem; line-height: 1.4; text-align: center; background: var(--espresso); color: var(--bone); opacity: 0; pointer-events: none; transition: opacity .25s, translate .25s var(--ease); }
  .ph-toast.on { opacity: 1; translate: -50% 0; }
  /* the sheets: one at a time, over the build card, above the app bar */
  body.case-only[data-sheet] :is(.cfg-left, .cfg-right) { position: fixed; z-index: 30; left: var(--margin); right: var(--margin); bottom: calc(4.6rem + env(safe-area-inset-bottom)); margin: 0; padding: 1rem; border-radius: 2rem;
    background: rgb(0 0 0 / .9); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 0 0 1px var(--hairline), 0 24px 60px rgba(0, 0, 0, .4); }
  body.case-only:is([data-sheet="case"], [data-sheet="fans"], [data-sheet="colors"], [data-sheet="part"]) .cfg-right, body.case-only[data-sheet="summary"] .cfg-left { display: flex; flex-direction: column; gap: .75rem; max-height: calc(100svh - 14rem); overflow-y: auto; }
  .case-only :is(.cfg-left, .cfg-right) > * { display: none; }
  body.case-only[data-sheet="case"] .cfg-models { display: block; padding: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  body.case-only[data-sheet="summary"] .cfg-info { display: block; }
  /* a part's sheet: its choices and options, kept under the tab row */
  body.case-only[data-sheet="part"] .cfg-right { max-height: min(60svh, calc(100svh - 20rem - env(safe-area-inset-bottom))); } /* a panel, not a takeover: ~60% of the screen, so the case above stays in view */
  body.case-only[data-sheet="part"] .cfg-models { display: block; padding: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  body.case-only[data-sheet="part"] .cfg-options { display: grid; }
  /* and over the spec, what's left to choose (or that it fits) and the build's total with the ZIP and Order this build: the summary
     moves into this column on phones (configure.js placeSummary), the note at its top */
  body.case-only[data-sheet="summary"] .cfg-left > .summary { display: grid !important; }
  body.case-only[data-sheet="summary"] .cfg-left > * { flex-shrink: 0; } /* the sheet scrolls; nothing in it is squeezed */
  body.case-only main.cfg .cfg-left .summary { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; gap: .6rem; } /* one column: the note, the total and its breakdown, the ZIP, Order, the terms */
  body.case-only main.cfg .cfg-left .summary > * { grid-area: auto; } /* (the note's grid-area from the older layout made columns of its own) */
  body.case-only main.cfg .check { padding: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  body.case-only:is([data-sheet="fans"], [data-sheet="colors"]) :is(.cfg-options, .cfg-air) { display: grid; }
  .info-tab { margin: 0 0 .9rem; padding-bottom: .5rem; width: max-content; font: 600 .95rem/1 var(--font); color: var(--espresso); border-bottom: 2px solid var(--espresso); }
  .info-list { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.1rem; margin: 0; }
  .info-list div:nth-child(even) { text-align: right; }
  .info-list dt { font-size: .72rem; color: var(--muted); }
  .info-list dd { margin: .2rem 0 0; font-size: .85rem; font-weight: 500; color: var(--espresso); }
}

/* ---------- the configurator's one bar: the mark left, the pages as pills in the middle (Configure filled), round buttons right ---------- */
html .cfg-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding-block: .55rem; } /* the stone label (styles.css .nav), laid out in three: mark, pages, buttons */
.cfg-bar nav { flex: none; justify-content: center; gap: .4rem; }
.cfg-page .cfg-bar nav a:not(.button) { padding: .6rem 1.25rem; font-size: .875rem; font-weight: 600; box-shadow: none; background: rgba(255, 255, 255, .28); } /* a lighter stone, not white bubbles */
.cfg-page .cfg-bar nav a:not(.button):hover { background: rgba(255, 255, 255, .45); }
body.case-only .cfg-bar .info-btn { background: rgba(255, 255, 255, .28); box-shadow: none; }
.cfg-page .cfg-bar nav a[aria-current="page"] { background: #25251f; color: #f3f0e8; }
.bar-icons { position: relative; justify-self: end; display: flex; gap: .4rem; }
.bar-icons .info-btn { width: 2.6rem; height: 2.6rem; }
.cfg-menu { position: absolute; right: 0; top: calc(100% + .6rem); z-index: 50; min-width: 11rem; margin: 0; padding: .5rem; list-style: none; border-radius: 1.4rem;
  background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 1px 0 #fff, 0 20px 50px rgba(37, 37, 31, .14); }
.cfg-menu[hidden] { display: none; }
.cfg-menu a { display: block; padding: .6rem .9rem; border-radius: 999px; font-size: .9rem; font-weight: 500; color: #25251f; text-decoration: none; }
.cfg-menu a:hover { background: rgba(37, 37, 31, .06); }
/* the case's title sits in the page under the bar, unboxed and big; its spec opens from the bar's info button */
@media (min-width: 1001px) {
  body.case-only main.cfg .cfg-title { padding: .4rem 0 0 .25rem; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .case-only .cfg-title .info-btn { display: none; }
  .case-only .cfg-name { font-size: clamp(2.2rem, 1.4rem + 1.8vw, 3.3rem); }
  body.case-only main.cfg { padding-top: 5.4rem; }
}
@media (min-width: 1001px) and (max-height: 860px) { body.case-only main.cfg { padding-top: 4.9rem; } }
/* phones: the bar is the mark and the menu */
@media (max-width: 1000px) {
  html .cfg-bar { grid-template-columns: 1fr auto; }
  .cfg-bar nav, .cfg-bar .bar-info { display: none; }
}

/* ---------- the strip: the options card, then what the case takes; the total, dark, in the right column under bigger model buttons ---------- */
.cfg-options { display: grid; gap: .6rem; padding: .9rem 1.1rem; border-radius: 1.5rem; }
.opt-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.opt-label { font-size: .8rem; color: var(--muted); }
.case-only .hl-fans .seg-btn:not(.swatch) { background: rgba(37, 37, 31, .06); color: var(--espresso); }
.case-only .hl-fans .seg-btn:not(.swatch):hover:not([aria-pressed="true"]) { background: rgba(37, 37, 31, .12); }
.case-only .hl-fans .seg-btn:not(.swatch)[aria-pressed="true"] { background: var(--espresso); color: var(--bone); }
.case-only .hl-fans .seg-btn:not(.swatch):focus-visible { outline-color: var(--olive); }
.cfg-options .swatches { gap: .6rem; padding-right: .3rem; }
.case-only .cfg-options .swatches .swatch { width: 1.75rem; height: 1.75rem; }
body.case-only main.cfg .cfg-options .pill-toggle { justify-self: start; margin: 0; padding: .45rem .85rem; font-size: .8rem; background: rgba(37, 37, 31, .05); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.case-only main.cfg .cfg-options .pill-toggle:has(:checked) { background: var(--espresso); color: var(--bone); }
.hl-note { grid-column: 1 / -1; margin-top: -.3rem; font-size: .75rem; line-height: 1.3; min-height: 2.6em; color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } /* up to two lines, the same room on every card */
.hl-text .hl-value { font-size: .9rem; }
/* the model buttons: one per row, the name big and the price at the right, so "Airflow MAX" never wraps */
.case-only .cfg-models-row { grid-template-columns: 1fr; }
body.case-only main.cfg .cfg-models-row .seg-btn { min-height: 3.4rem; flex-direction: row; align-items: center; justify-content: space-between; padding: .7rem 1.15rem; border-radius: 1.1rem; }
.cfg-models-row .option-name { font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; }
.cfg-models-row .option-spec { flex: none; font-size: .95rem; font-weight: 600; }
.cfg-models-row .seg-btn .seg-price { margin: 0; padding: 0; }
/* the total, dark */
body.case-only main.cfg .summary { background: var(--espresso); color: var(--bone); box-shadow: var(--frost-shadow); -webkit-backdrop-filter: none; backdrop-filter: none; }
body.case-only main.cfg .summary .total-label, body.case-only main.cfg .summary .total-sub { color: rgba(243, 240, 232, .7); }
body.case-only main.cfg .summary .total strong { color: var(--bone); font-size: clamp(2rem, 1.4rem + 1vw, 2.6rem); }
body.case-only main.cfg .summary-actions [data-go="next"]:disabled { background: rgba(243, 240, 232, .12); color: rgba(243, 240, 232, .8); }
/* the note (.check) says what's left to choose, that it fits, or why it can't be ordered (configure.js renderCaseSummary) */
/* the total in the strip's first slot: dark, compact, beside the spec cards */
body.case-only main.cfg .strip-body .summary { flex: 0 0 17rem; align-content: center; gap: .4rem; padding: .75rem 1.1rem .85rem; border-radius: 1.5rem; }
body.case-only main.cfg .strip-body .summary .total strong { font-size: clamp(1.6rem, 1.2rem + .8vw, 2.1rem); }
body.case-only main.cfg .strip-body .summary-actions [data-go="next"]:disabled { padding: .45rem .9rem; font-size: .78rem; }
/* the left column: wide enough that the feature card stays short */
@media (min-width: 1001px) { body.case-only main.cfg { grid-template-columns: clamp(15rem, 17vw, 19rem) minmax(0, 1fr) clamp(17rem, 22vw, 21rem); } }
@media (min-width: 1001px) and (max-height: 860px) {
  .feat-dark { padding-block: .7rem; }
  .feat-icon { width: 2rem; height: 2rem; }
  .feat-text { padding-bottom: .8rem; font-size: .8rem; }
}
body.case-only .cfg-bar .info-btn[aria-expanded="true"] { background: #25251f; color: #f3f0e8; }
/* the total card: the sum on the left, ordering's state beside it, so it's no taller than the spec cards */
body.case-only main.cfg .strip-body .summary { flex-basis: 23rem; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 1rem; }
body.case-only main.cfg .strip-body .summary-actions [data-go="next"]:disabled { white-space: normal; line-height: 1.25; } /* fills its cell now (Order is the wide primary); no 7.5rem cap */
/* the left column: tabs flush left, the feature card its full width */
@media (min-width: 1001px) { .case-only .cfg-left { align-items: flex-start; } .case-only .cfg-left .cfg-feature { align-self: stretch; } }
@media (min-width: 1001px) { html .cfg-bar { padding-inline: 1.5rem; } } /* on the configurator's own margins */
/* the total card under the case, no taller than the spec cards: the amount beside Order this build, then one line: what's left to
   choose, why it can't be ordered, or (once every part is chosen) what delivery costs beside the ZIP; the terms and Save build under
   it (only the right column sizes to its content: the ZIP and Order).
   "Ready" needs no line here: Order is on. (The part by part breakdown and the build time show in the phones' Summary sheet) */
body.case-only main.cfg .strip-body .total-sub, body.case-only main.cfg .strip-body .check-tip { display: none; }
body.case-only main.cfg .strip-body .summary { flex-basis: 25rem; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "total actions" "check check" "note zip" "terms save"; align-content: center; gap: .35rem .8rem; }
body.case-only main.cfg .summary .check { margin: 0; padding: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; font-size: .74rem; line-height: 1.35; color: inherit; }
body.case-only main.cfg .strip-body .summary .check { grid-area: check; }
body.case-only main.cfg .strip-body .summary .total { grid-area: total; margin: 0; }
body.case-only main.cfg .strip-body .summary .total-label { font-size: .7rem; }
body.case-only main.cfg .strip-body .summary-actions { grid-area: actions; align-self: center; }
body.case-only main.cfg .summary-actions [data-go="next"]:not(:disabled) { background: var(--bone); color: var(--espresso); } /* (dark on the light card) */
body.case-only main.cfg .summary-actions [data-go="next"]:disabled { background: rgb(0 0 0 / .07); color: rgb(0 0 0 / .38); } /* there, not ready yet */
body.case-only main.cfg .strip-body .summary-actions [data-go="next"] { padding: .6rem .95rem; font-size: .78rem; }
body.case-only main.cfg .strip-body .zip-field { grid-area: zip; margin: 0; font-size: .72rem; gap: .4rem; }
body.case-only main.cfg .strip-body .zip-input { width: 4.6rem; }
body.case-only main.cfg .strip-body .delivery-note { grid-area: note; margin: 0; font-size: .66rem; line-height: 1.3; align-self: center; }
body.case-only main.cfg .strip-body .terms-note { grid-area: terms; margin: 0; font-size: .6rem; text-align: left; }
body.case-only main.cfg .strip-body .save-build { grid-area: save; justify-self: end; align-self: center; font-size: .66rem; }

/* "Show airflow": a full-width button at the foot of the options card. On hover faint cool wisps drift through it; on, the air
   flows through continuously over a cool-to-warm ground (the intake and the exhaust). CSS only; still for reduced motion */
html .cfg-air .air-btn { position: relative; isolation: isolate; overflow: hidden; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: .15rem; padding: .85rem 1rem; border: 0; border-radius: 1rem; cursor: pointer; font: 600 .9rem/1 var(--font); color: var(--espresso);
  background: rgba(37, 37, 31, .06); transition: background-color .3s, color .3s, scale 140ms var(--ease); }
.air-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: repeating-linear-gradient(100deg, transparent 0 22px, rgba(120, 175, 225, .38) 30px, transparent 40px 70px),
    repeating-linear-gradient(95deg, transparent 0 40px, rgba(160, 205, 245, .25) 46px, transparent 54px 110px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  animation: air-drift 1.8s linear infinite paused; }
.air-btn:hover::before { opacity: 1; animation-play-state: running; }
.air-btn:active { scale: .97; }
.air-btn:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
.air-state { padding: .3rem .6rem; border-radius: 999px; font-size: .75rem; background: rgba(37, 37, 31, .08); }
html .cfg-air .air-btn[aria-pressed="true"] { color: var(--bone); background: linear-gradient(90deg, #3d5f7e, #25251f 50%, #7a4a30); }
.air-btn[aria-pressed="true"]::before { opacity: 1; animation-play-state: running; animation-duration: 1.2s; }
.air-btn[aria-pressed="true"] .air-state { background: rgba(243, 240, 232, .18); }
@keyframes air-drift { to { background-position: 140px 0, 220px 0; } }
@media (prefers-reduced-motion: reduce) { .air-btn::before { animation: none; } }

/* the case arrows either side of the case (configure.js placeHotspots places them): the soft round frosted icon buttons */
html .stage .case-nav.arrow-btn { position: absolute; left: 0; top: 0; z-index: 3; width: 3rem; height: 3rem; pointer-events: auto;
  background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 2px rgba(37, 37, 31, .04), 0 16px 40px rgba(37, 37, 31, .1); }
.case-nav svg { width: 1.1rem; height: 1.1rem; }
.stage:is(.is-loading) .case-nav { opacity: 0; pointer-events: none; }
@media (max-width: 1000px) { html .stage .case-nav.arrow-btn { width: 2.5rem; height: 2.5rem; } }
/* the step tabs run the full width of the left column, the same as the feature card under them (SOON at their right end) */
@media (min-width: 1001px) {
  .case-only .cfg-left .steps { align-self: stretch; }
  .case-only .steps ol { align-items: stretch; align-self: stretch; width: 100%; }
  .case-only .steps .tab { width: 100%; justify-content: space-between; }
}
/* the spec cards always fit the row (no hidden side-scroll cutting the last one off): they share its width equally */
@media (min-width: 1001px) {
  .case-only .hl-cards { overflow: visible; }
  .case-only .hl-card { flex: 1 1 0; min-width: 0; }
}
/* narrow desktops: the cards are slimmer, so their text steps down to stay inside them */
@media (min-width: 1001px) and (max-width: 1360px) {
  .case-only .hl-card { padding-inline: .75rem; gap: .4rem; }
  .case-only .hl-card :is(.hl-label, small, p) { font-size: .72rem; }
  .case-only .hl-card .hl-icon { width: 1.9rem; height: 1.9rem; }
}
/* the step tabs grow a little under the pointer (the coming-soon ones too, so the list feels alive) */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .case-only .steps .tab { transition: transform 180ms var(--ease), background-color 200ms var(--ease), box-shadow 200ms var(--ease); }
  html .case-only .steps .tab:hover { transform: scale(1.035); }
}
/* short windows (ultrawide): nine tabs and the feature card fit between the title and the spec row */
@media (min-width: 1001px) and (max-height: 860px) {
  html .case-only .steps .tab { padding-block: .3rem; font-size: .9rem; }
  html .case-only .steps ol { gap: .3rem; }
  html .case-only .cfg-left { gap: .55rem; }
}
@media (min-width: 1001px) and (max-height: 780px) { html .case-only .cfg-left .feat-text { display: none; } } /* very short: the feature's title only */

/* "Show airflow" is its own card under the options: a large frosted button, its line under the label */
.cfg-air { display: grid; }
html .cfg-air .air-btn { margin: 0; padding: 1.05rem 1.2rem; border-radius: 1.5rem; }
.air-text { display: grid; gap: .3rem; text-align: left; }
.air-text small { font: 500 .74rem/1.3 var(--font); opacity: .62; }
html .case-only .cfg-options .opt-label { font-size: .95rem; font-weight: 500; color: var(--espresso); } /* "Fans" and "Color" read clearly */

/* the Processor tab's chips: one row each, the model and its price */
.cpu-list { display: grid; gap: .3rem; }
.case-only .cpu-list .seg-btn { border: 0; display: flex; flex-direction: row; justify-content: space-between; text-align: left; align-items: center; padding: .55rem .85rem; border-radius: 999px; font: 500 .9rem/1.2 var(--font); background: rgba(37, 37, 31, .06); color: var(--espresso); }
.case-only .cpu-list .seg-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.case-only .cpu-list .seg-btn:hover:not([aria-pressed="true"], [aria-disabled="true"]) { background: rgba(37, 37, 31, .12); }
.case-only .cpu-list .seg-btn[aria-pressed="true"], .case-only .cpu-list .seg-btn.cpu-cur { background: var(--espresso); color: var(--bone); }
/* processor labels (owner, 2026-11-14): plain-English reason on top, the exact model as a quiet subtitle; core count in the tier header */
.cpu-choice { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.cpu-why { line-height: 1.2; }
.cpu-model { font-weight: 500; font-size: .78em; opacity: .55; letter-spacing: .01em; }
.tier-cores { font-weight: 400; opacity: .6; white-space: nowrap; }

/* until the 3D view has loaded only the loading screen shows; then the panels fade in */
.case-only .swatches .swatch[aria-disabled="true"] { opacity: .3; cursor: not-allowed; }

/* ---------- the stage: a blank dark background (or the desk scene, render3d/desk.js). The site palette as tokens (the shared
   theme's tokens, the home page's colors): black frosted cards over the scene with white hairlines, the light ink on the chosen
   button and the total, orange sparingly; text straight on the scene is the light ink ---------- */
body.case-only.cfg-page { background: #05060a; } /* the blank background */
.case-only .stage::before { display: none; } /* the studio floor's fall-off */
.case-only :is(.cfg-title, .steps .tab, .summary, .cfg-models, .cfg-options, .cfg-air .air-btn, .feat-text, .cfg .check, .hl-card, .strip-head h2, .strip-head .info-btn, .strip-note, .pill-toggle, .colors, .arrow-btn) {
  background: color-mix(in srgb, var(--white) 90%, transparent); box-shadow: inset 0 0 0 1px var(--hairline), 0 16px 40px rgba(0, 0, 0, .35); }
html .stage .case-nav.arrow-btn { background: color-mix(in srgb, var(--white) 90%, transparent); box-shadow: inset 0 0 0 1px var(--hairline), 0 16px 40px rgba(0, 0, 0, .35); }
.case-only .steps .tab[aria-current], .case-only .cfg .option[aria-pressed="true"]:not(.swatch), .case-only .pill-toggle:has(:checked), html .cfg-air .air-btn[aria-pressed="true"] { box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.case-only .steps .tab[aria-current] { background: var(--black); color: var(--white); }
.case-only .feat-dark, body.case-only main.cfg .summary { background: var(--olive); color: var(--white); }
.case-only .feat-icon { background: color-mix(in srgb, var(--white) 16%, transparent); }
body.case-only main.cfg .summary :is(.total-label, .total-sub) { color: color-mix(in srgb, var(--white) 75%, transparent); }
body.case-only main.cfg .summary .total strong { color: var(--white); }
.case-only .cfg-name { color: var(--text); }
.case-only .cfg-sub { color: var(--text-muted); }
.hotspot[aria-pressed="true"] i::after { background: var(--orange); }
@media (max-width: 1000px) {
  .case-only .ph-price { color: var(--text); border-top-color: var(--hairline); }
  .case-only .ph-price span { color: var(--text-faint); }
  .case-only .ph-label { color: var(--text-muted); }
}

/* delivery ZIP at the order step: free hand delivery in NYC, shipping at cost elsewhere */
.zip-field { display: flex; align-items: center; gap: .6rem; margin: .5rem 0 .3rem; font-size: var(--step-small); font-weight: 600; }
.zip-field[hidden], .delivery-note[hidden] { display: none; }
.zip-input { width: 8ch; padding: .45rem .6rem; border: 1px solid rgba(37, 37, 31, .25); border-radius: .5rem; font: inherit; font-weight: 500; background: #fff; color: inherit; }
.zip-input:focus-visible { outline: 2px solid var(--olive, #566044); outline-offset: 1px; }
.zip-input[aria-invalid="true"] { border-color: #cf222e; }
.delivery-note { margin: 0 0 .7rem; font-size: var(--step-small); line-height: 1.45; }
.nyc-choice { display: grid; gap: .35rem; margin: 0 0 .6rem; padding: 0; border: 0; font-size: var(--step-small); }
.nyc-choice[hidden] { display: none; }
.nyc-choice legend { margin-bottom: .3rem; padding: 0; font-weight: 600; }
.nyc-choice label { display: flex; align-items: center; gap: .5rem; padding: .45rem .6rem; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(37, 37, 31, .2); }
.nyc-choice label:has(:checked) { box-shadow: inset 0 0 0 2px currentColor; }
.nyc-choice b { margin-left: auto; font-weight: 600; }

/* the Memory and Power Supply tabs with more than four sizes or wattages (DDR5: 16 to 128 GB): two a row, the price under the size, so the card below stays in view */
body.case-only main.cfg .cfg-models-row:has(> :is([data-mem], [data-psu]):nth-child(5)) { grid-template-columns: 1fr 1fr; }
body.case-only main.cfg .cfg-models-row:has(> :is([data-mem], [data-psu]):nth-child(5)) .seg-btn { flex-direction: column; align-items: flex-start; justify-content: center; gap: .15rem; min-height: 3.4rem; padding: .55rem 1rem; }
body.case-only main.cfg .cfg-models-row:has(> :is([data-mem], [data-psu]):nth-child(5)) .option-spec { white-space: nowrap; font-size: .85rem; }
body.case-only main.cfg .cfg-models-row:has(> :is([data-mem], [data-psu]):nth-child(5)) .option-name { font-size: 1.05rem; }
/* a plain line of text in the options card (the Extras fans, the operating system note) */
html .case-only .cfg-options .opt-value { font-size: .85rem; line-height: 1.35; color: var(--muted); }

/* phones: every control a 44px tap target, and fields iOS won't zoom into (owner, 2026-11-14: "flawlessly use the page") */
@media (max-width: 1000px) {
  body.case-only main.cfg .cfg-title .info-btn { display: none; } /* the header's ⓘ opens the same case details */
  body.case-only main.cfg > .steps .tab { min-height: 44px; }
  html .stage .case-nav.arrow-btn { width: 2.75rem; height: 2.75rem; }
  body.case-only[data-sheet] .seg-btn { min-height: 44px; }
  body.case-only main.cfg .cfg-options .swatches .swatch { width: 2.75rem; height: 2.75rem; }
  .zip-input { width: 7.5rem; min-height: 44px; font-size: 16px; } /* 16px: smaller fields make iOS zoom the page on focus */
  .nyc-choice label { min-height: 44px; }
  .nyc-choice input { width: 1.15rem; height: 1.15rem; margin: 0; flex: none; }
  .save-build { padding: .9rem 0; }
  /* no frosted blur over the live 3D on phones: the GPU re-blurs every layer each frame, which stutters mid-range phones; the
     cards are near-opaque already, and the build card a little more so to make up for it */
  html body.case-only :is(.steps .tab, .ph-status, .ph-callout, .arrow-btn, .cfg-left, .cfg-right, .cfg-models, .cfg-options) { -webkit-backdrop-filter: none; backdrop-filter: none; }
  html body.case-only .ph-status { background: rgb(0 0 0 / .82); }
  body.case-only main.cfg .cfg-title:has(.cfg-spec:not([hidden])) { z-index: 7; } /* the case details open over the tab row, not under it */
}
/* the case details on the dark theme: light text on a dark card (the old white card held light ink, so it read blank) */
.case-only .cfg-spec { color: var(--text); background: rgb(12 12 11 / .94); box-shadow: inset 0 0 0 1px var(--hairline-strong), var(--frost-shadow); }
/* phones held sideways: too short for the stacked portrait layout (a part's sheet had about 55px), so a sheet is a column on the
   right from the header down to the slim bar; the total and Order stay on that bar, parts on the tab row above */
@media (max-width: 1000px) and (orientation: landscape) and (max-height: 540px) {
  html body.case-only[data-sheet] :is(.cfg-left, .cfg-right) { left: auto; width: min(25rem, 52vw); top: 4.6rem; bottom: calc(4.8rem + env(safe-area-inset-bottom)); max-height: none; overflow-y: auto; }
  html body.case-only .ph-toast { bottom: calc(4.8rem + env(safe-area-inset-bottom)); }
}
/* ultrawide/TV: the bottom bar (the total + spec cards) would otherwise spread edge to edge, going sparse and too tall; cap it and
   centre it so the cards keep a designed width under the case. Below ~1950px the bar is narrower than this, so desktop is untouched. */
@media (min-width: 1001px) { body.case-only main.cfg .cfg-strip { width: 100%; max-width: 1900px; margin-inline: auto; } }

/* ---------- the Order button: the home page's reactive .btn treatment, moved to the summary card's bottom-left ---------- */
/* re-lay the compact bottom-bar summary so the primary action sits bottom-left: the total spans the top, then the delivery note + ZIP,
   the NYC delivery options when a NYC ZIP is entered, then the Order button bottom-left with Save beside it, the terms fine print under.
   Long text (note, terms, the NYC options) stays full width or in the flexible left column so it wraps; the fixed right column holds only
   the short Save link and ZIP input, so it never blows out and collapses the left column to zero. */
body.case-only main.cfg .strip-body .summary { grid-template-areas: "total total" "check check" "note zip" "nyc nyc" "actions save" "terms terms"; row-gap: .25rem; } /* check row kept: without it .check (grid-area: check) auto-placed and collapsed the actions cell, overlapping Order with Save build */
body.case-only main.cfg .strip-body .summary .nyc-choice { grid-area: nyc; }
/* the bottom row: Order this build fills most of it, Save this build is the secondary action beside it */
body.case-only main.cfg .strip-body .summary { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
body.case-only main.cfg .strip-body .summary-actions { align-self: stretch; }
body.case-only main.cfg .strip-body .summary-actions .btn-cta { width: 100%; display: flex; min-height: 3.1rem; font-size: .92rem; }
body.case-only main.cfg .strip-body .save-build { align-self: stretch; justify-self: stretch; display: grid; place-items: center; min-height: 3.1rem; padding-inline: .5rem; text-align: center; text-decoration: none; border-radius: 1rem; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); font-size: .72rem; line-height: 1.2; white-space: normal; letter-spacing: .03em; }
body.case-only main.cfg .strip-body .save-build:hover { box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .45); }
/* the button: corner brackets that spring in, a nudging arrow, a press — matching home's .btn, kept light so it reads on the olive
   card (home.css isn't loaded here, so its .btn rules are rebuilt). Applies in the phone Summary sheet too (single column, button near the foot). */
body.case-only main.cfg .summary-actions .btn-cta { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em; overflow: visible; }
body.case-only main.cfg .summary-actions .btn-cta:not(:disabled):is(:hover, :focus-visible) { background: var(--bone); } /* the corners + arrow are the hover cue, not a colour flip to gold */
body.case-only main.cfg .summary-actions .btn-cta > i { position: absolute; width: .55rem; height: .55rem; border: 0 solid var(--orange); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), translate .25s var(--ease); }
body.case-only main.cfg .summary-actions .btn-cta > i:nth-child(1) { inset: -5px auto auto -5px; border-width: 2px 0 0 2px; translate: -3px -3px; }
body.case-only main.cfg .summary-actions .btn-cta > i:nth-child(2) { inset: -5px -5px auto auto; border-width: 2px 2px 0 0; translate: 3px -3px; }
body.case-only main.cfg .summary-actions .btn-cta > i:nth-child(3) { inset: auto auto -5px -5px; border-width: 0 0 2px 2px; translate: -3px 3px; }
body.case-only main.cfg .summary-actions .btn-cta > i:nth-child(4) { inset: auto -5px -5px auto; border-width: 0 2px 2px 0; translate: 3px 3px; }
body.case-only main.cfg .summary-actions .btn-cta:not(:disabled):is(:hover, :focus-visible) > i { opacity: 1; translate: none; }
body.case-only main.cfg .summary-actions .btn-cta .go-arrow { width: .62rem; height: .4rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; transition: translate .25s var(--ease); }
body.case-only main.cfg .summary-actions .btn-cta:not(:disabled):is(:hover, :focus-visible) .go-arrow { translate: .25rem 0; }
body.case-only main.cfg .summary-actions .btn-cta:disabled .go-arrow { opacity: .45; }
@media (prefers-reduced-motion: reduce) { body.case-only main.cfg .summary-actions .btn-cta > i, body.case-only main.cfg .summary-actions .btn-cta .go-arrow { transition: none; } }
.case-only .cpu-list .cpu-pick { justify-content: center; text-decoration: none; font-weight: 700; background: var(--gold); color: var(--brown); } /* the Processor tab's Choose a CPU button (opens cpus.html) */
/* a tab with nothing under its choices (Processor, a catalog or boxed cooler): no empty card */
html body main.cfg .cfg-options:empty { display: none; }
/* Choose a CPU / Choose a cooler heads the choices' card */
.cfg-models-row > .cpu-list:first-child { margin-bottom: .2rem; }
.case-only .cpu-list .cpu-cur { text-decoration: none; } /* the chosen processor's box: a link back to the catalog, drawn as the selected choice */
/* the stat cards under the stage: as tall as their content (icon and label, the value, one line of note), sitting at the strip's foot
   beside the summary card rather than stretched to its height (owner, 2026-11-15) */
.case-only .hl-cards { align-self: flex-end; align-items: flex-end; }
.case-only .hl-card { align-content: start; gap: .3rem .6rem; padding: .6rem .85rem .7rem; border-radius: 1.1rem; }
.case-only .hl-card .hl-icon { width: 1.7rem; height: 1.7rem; }
.case-only .hl-note { margin-top: 0; min-height: 0; -webkit-line-clamp: 1; }
/* Have it built: the order flow, a quiet text link beside Save this build */
.have-built { padding: 0; border: 0; background: none; font: 600 .66rem/1 var(--font); letter-spacing: .06em; color: inherit; opacity: .7; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; justify-self: end; }
.have-built:disabled { opacity: .35; cursor: not-allowed; text-decoration: none; }
body.case-only main.cfg .strip-body .summary { grid-template-areas: "total total" "check check" "note zip" "nyc nyc" "actions save" "built built" "terms terms"; }
body.case-only main.cfg .strip-body .have-built { grid-area: built; }
/* Render: the path traced still of the build, its progress, then Save image */
.render-dlg { width: min(64rem, calc(100vw - 2rem)); padding: 0; border: 0; border-radius: 1rem; background: #0d0d0f; color: #f3f0e8; overflow: hidden; }
.render-dlg::backdrop { background: rgb(0 0 0 / .7); }
.render-cv { display: block; width: 100%; aspect-ratio: 16 / 10; }
.render-bar { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; font: 500 .85rem/1.2 var(--font); }
.render-status { min-width: 9rem; }
.render-progress { flex: 1; min-width: 0; height: .4rem; accent-color: #f3f0e8; }
.render-save, .render-close { padding: .5rem .9rem; border: 0; border-radius: 999px; font: 600 .8rem/1 var(--font); cursor: pointer; text-decoration: none; }
.render-save { background: #f3f0e8; color: #111114; }
.render-close { background: rgb(255 255 255 / .1); color: inherit; }
@media (max-width: 600px) { .render-bar { flex-wrap: wrap; } .render-progress { flex-basis: 100%; order: 3; } }
/* Background: Blank / Desk, a small switch at the top of the stage */
.bg-switch { position: absolute; z-index: 4; top: 4.4rem; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: .2rem; padding: .2rem; border-radius: 999px; background: rgb(0 0 0 / .55); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); font: 600 .7rem/1 var(--font); color: rgb(243 240 232 / .7); }
.bg-switch span { padding: 0 .45rem 0 .6rem; }
.bg-switch button { padding: .4rem .7rem; border: 0; border-radius: 999px; background: none; font: inherit; color: inherit; cursor: pointer; }
.bg-switch button[aria-pressed="true"] { background: #f3f0e8; color: #111114; }
.stage.is-loading .bg-switch { opacity: 0; pointer-events: none; }
@media (max-width: 1000px) { .bg-switch { top: auto; bottom: 5.2rem; } }
.bg-switch .ar-btn { margin-left: .3rem; background: #f3f0e8; color: #111114; font-weight: 600; } /* View on your desk (AR) */
/* the summary: fit / power / frame-rate chips (each opens its breakdown), the parts list, Share; panels float above the card on the desktop */
.status-chips { display: flex; flex-wrap: wrap; gap: .3rem; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: .35em; max-width: 100%; padding: .32rem .6rem; border: 0; border-radius: 999px; font: 600 .7rem/1.1 var(--font); color: inherit; background: color-mix(in srgb, currentColor 10%, transparent); cursor: pointer; }
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip svg { width: 1.05em; height: 1.05em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chip.ok svg { color: #1a7f37; }
.chip.bad { color: #cf222e; background: color-mix(in srgb, #cf222e 12%, transparent); }
.chip[aria-expanded="true"] { box-shadow: inset 0 0 0 1.5px currentColor; }
.chip-pop, .strip-body .parts-list > ol, .share-menu { color: var(--text); background: rgb(12 12 11 / .96); box-shadow: inset 0 0 0 1px var(--hairline-strong), var(--frost-shadow); }
.chip-pop { position: absolute; left: 0; right: 0; bottom: calc(100% + .5rem); z-index: 6; max-height: min(60vh, 30rem); overflow-y: auto; padding: .75rem .9rem .8rem; border-radius: 1.1rem; }
.chip-pop[hidden], .share-menu[hidden], .undo-toast[hidden] { display: none; }
.pop-h { display: flex; justify-content: space-between; align-items: center; margin: 0 0 .45rem; font: 700 .85rem/1.2 var(--font); }
.pop-x { margin: -.3rem -.4rem -.3rem 0; padding: .2rem .45rem; border: 0; background: none; color: inherit; font: 400 1.2rem/1 var(--font); cursor: pointer; }
.chip-pop dl { display: grid; gap: .35rem; margin: 0; font-size: .74rem; line-height: 1.3; }
.chip-pop dl > div { display: flex; justify-content: space-between; gap: .9rem; padding-bottom: .35rem; border-bottom: 1px solid var(--hairline); }
.chip-pop dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.chip-pop dt { color: var(--text-muted); }
.chip-pop dd { display: grid; margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.chip-pop dd span { font-weight: 500; color: var(--text-muted); }
.chip-pop .bad :is(dd, dd b) { color: #ff7b72; }
.chip-pop .sum { font-weight: 700; }
.chip-pop .sum dt { color: var(--text); }
.pop-note { margin: .55rem 0 0; font-size: .66rem; line-height: 1.35; color: var(--text-muted); }
.parts-list > summary { display: flex; align-items: center; gap: .5rem; padding: .35rem 0 .1rem; list-style: none; cursor: pointer; font: 600 .72rem/1 var(--font); }
.parts-list > summary::-webkit-details-marker { display: none; }
.parts-list > summary span:nth-child(2) { margin-left: auto; opacity: .7; font-variant-numeric: tabular-nums; }
.parts-list > summary::after { content: ''; width: .4rem; height: .4rem; margin: 0 .15rem .15rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; rotate: 45deg; transition: rotate .2s; }
.parts-list[open] > summary::after { rotate: -135deg; margin-bottom: -.15rem; }
.parts-list ol { margin: 0; padding: 0; list-style: none; }
.strip-body .parts-list > ol { position: absolute; left: 0; right: 0; bottom: calc(100% + .5rem); z-index: 6; max-height: min(62vh, 32rem); overflow-y: auto; padding: .45rem; border-radius: 1.1rem; }
.pl-row { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr) auto; align-items: baseline; gap: .6rem; width: 100%; padding: .45rem .55rem; border: 0; border-radius: .65rem; background: none; color: inherit; font: 500 .74rem/1.25 var(--font); text-align: left; cursor: pointer; }
.pl-row:hover:not(:disabled), .pl-row[aria-current] { background: color-mix(in srgb, currentColor 10%, transparent); }
.pl-row:disabled { cursor: default; opacity: .45; }
.pl-label { opacity: .65; }
.pl-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-empty .pl-name { opacity: .55; }
.pl-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.share { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-self: start; }
.share-btn { padding: 0; border: 0; background: none; font: 600 .66rem/1 var(--font); letter-spacing: .06em; color: inherit; opacity: .7; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.share-btn:hover, .share-btn[aria-expanded="true"] { opacity: 1; }
.share-menu { position: absolute; left: 0; bottom: calc(100% + .45rem); z-index: 6; display: grid; min-width: 12.5rem; padding: .35rem; border-radius: .9rem; }
.share-menu button { padding: .55rem .7rem; border: 0; border-radius: .6rem; background: none; color: inherit; font: 500 .78rem/1.2 var(--font); text-align: left; white-space: nowrap; cursor: pointer; }
.share-menu button:is(:hover, :focus-visible) { background: rgb(255 255 255 / .08); }
body.case-only main.cfg .strip-body .summary { grid-template-areas: "total parts" "chips chips" "check check" "note zip" "nyc nyc" "actions save" "built built" "terms terms"; }
body.case-only main.cfg .strip-body .status-chips { grid-area: chips; }
body.case-only main.cfg .strip-body .parts-list { grid-area: parts; align-self: end; justify-self: end; } /* beside the total: the list opens above the card */
body.case-only main.cfg .strip-body .parts-list > summary { padding: .3rem 0; }
body.case-only main.cfg .strip-body .share { grid-area: built; align-self: center; justify-self: start; } /* Share and Have it built share the last row, either end */
body.case-only main.cfg .strip-body .chip { padding-block: .22rem; }
body.case-only main.cfg .strip-body .total strong { line-height: 1; }
/* a tab with one stat (the operating system): a card of its own width, not the whole row */
.case-only .hl-cards > .hl-card:only-child { flex: 0 1 22rem; }
/* Undo, for a few seconds after a part changes */
.undo-toast { position: fixed; z-index: 45; left: 50%; top: 7rem; display: flex; align-items: center; gap: .9rem; max-width: calc(100% - 2rem); margin: 0; padding: .45rem .45rem .45rem 1rem; border-radius: 999px; color: var(--text); background: rgb(12 12 11 / .94);
  box-shadow: inset 0 0 0 1px var(--hairline-strong), var(--frost-shadow); font: 500 .8rem/1.2 var(--font); opacity: 0; translate: -50% -.5rem; transition: opacity .25s, translate .25s; }
.undo-toast.on { opacity: 1; translate: -50% 0; }
.undo-toast button { flex: none; padding: .5rem .95rem; border: 0; border-radius: 999px; background: #f3f0e8; color: #111114; font: 700 .75rem/1 var(--font); cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .undo-toast { transition: none; } }
@media (max-width: 1000px) {
  .chip-pop, .share-menu { position: static; margin-top: .25rem; }
  .chip { min-height: 36px; padding-inline: .75rem; }
  .pl-row { min-height: 44px; align-items: center; grid-template-columns: 5.4rem minmax(0, 1fr) auto; }
  .pl-name { white-space: normal; overflow-wrap: anywhere; } /* the whole name, on two lines if it needs them */
  .share-btn { padding: .9rem 0; }
  .undo-toast { top: auto; bottom: calc(10rem + env(safe-area-inset-bottom)); } /* over the case, above the background switch and the total bar */
  .undo-toast button { min-height: 40px; }
}
/* the catalogs (parts.js, cpus.js, coolers.js) in a drawer over the live 3D view; full screen on phones */
.cat-dlg { position: fixed; inset: 0 0 0 auto; width: min(76rem, calc(100vw - 3rem)); height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden;
  color: var(--text); background: var(--bg, #171717); box-shadow: -24px 0 60px rgb(0 0 0 / .5); }
.cat-dlg[open] { display: flex; flex-direction: column; animation: cat-in .28s cubic-bezier(.2, .8, .2, 1); }
.cat-dlg::backdrop { background: rgb(0 0 0 / .45); }
@keyframes cat-in { from { translate: 2rem 0; opacity: 0; } }
.cat-dlg .cpus { flex: 1; min-height: 0; width: 100%; box-sizing: border-box; max-width: none; margin: 0; padding: 3.4rem 1.25rem 3rem; overflow-y: auto; overscroll-behavior: contain; }
.cat-dlg .cpus-side { top: 0; max-height: calc(100dvh - 4.5rem); }
.cat-x { position: absolute; z-index: 3; top: .7rem; right: .9rem; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: rgb(255 255 255 / .08); color: inherit; font: 400 1.5rem/1 var(--font); cursor: pointer; }
.cat-x:is(:hover, :focus-visible) { background: rgb(255 255 255 / .16); }
@media (max-width: 1000px) { .cat-dlg { width: 100vw; box-shadow: none; } .cat-dlg .cpus { padding: 3.6rem var(--margin, 1rem) 2rem; } .cat-x { width: 2.75rem; height: 2.75rem; } }
@media (prefers-reduced-motion: reduce) { .cat-dlg[open] { animation: none; } }
