/* ==========================================================================
   DESIGN CENTRE — page-specific styles
   --------------------------------------------------------------------------
   Loaded only on /wings/saw/design/. Kept out of site.css so the ~9 KB is not
   paid for on the other 31 pages, and so a restore of site.css can never drop
   it half-way through.
   ========================================================================== */

/* The UA rule for [hidden] is the weakest thing in the cascade, so any class
   here that sets `display` would out-rank it and keep hidden rows on screen. */
[hidden] { display: none !important; }

/* site.css puts overflow-x:hidden on body, which silently makes every
   descendant's position:sticky behave like static. `clip` does the same job
   without creating a scroll container. Scoped to this page so nothing else
   changes; browsers without `clip` just drop it and lose the sticky stage. */
body.has-designer { overflow-x: clip; }

/* ---------------------------------------------------------------- page head */
.dz {
  padding: calc(var(--nav-h) + clamp(2.5rem, 6vw, 4.5rem)) 0 clamp(1.5rem, 3vw, 2.5rem);
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(59, 209, 246, 0.13), transparent 60%),
    var(--ink);
  border-bottom: 1px solid var(--line);
}
.dz .lede { max-width: 62ch; }

/* -------------------------------------------------------------------- shell */
.dsn { display: block; padding: clamp(1.8rem, 4vw, 3rem) 0 clamp(3rem, 7vw, 5rem); }
.dsn__grid { display: grid; gap: clamp(1.5rem, 3vw, 2.6rem); align-items: start; }

@media (min-width: 1080px) {
  .dsn__grid { grid-template-columns: minmax(0, 1fr) minmax(390px, 34%); }
  .dsn__stage { position: sticky; top: calc(var(--nav-h) + 14px); }
}

/* -------------------------------------------------------------------- stage */
.stage {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(0.7rem, 1.6vw, 1rem);
  box-shadow: var(--shadow);
}
.stage__bar {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  align-items: center; justify-content: space-between;
  margin-bottom: 0.8rem;
}
.vtabs { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.vtab {
  appearance: none; cursor: pointer;
  font: 600 0.7rem/1 var(--body); letter-spacing: 0.04em;
  padding: 0.6rem 0.9rem; min-height: 34px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.vtab:hover { color: var(--white); border-color: var(--line-strong); }
.vtab.is-on {
  color: var(--on-brand);
  background: var(--brand);
  border-color: var(--brand);
}
.stage__acts { display: flex; flex-wrap: wrap; gap: 0.15rem; }
.stage__act {
  appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font: 600 0.68rem/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); background: none; border: 0;
  padding: 0.55rem 0.6rem; min-height: 34px;
  border-radius: 8px;
}
.stage__act:hover { color: var(--cyan); background: var(--chip-bg); }
.stage__act svg { width: 13px; height: 13px; flex: none; }

/* The drawing's plate follows the theme (Fluid, 2026-10-26): dark in dark
   mode, white in light mode, like the 3D preview and the colorway pictures.
   Saved / emailed pictures keep their white background (designer.js). */
.stage__plate {
  --ar: 3.24;
  position: relative;
  aspect-ratio: var(--ar);
  border-radius: calc(var(--radius) - 2px);
  background: radial-gradient(120% 90% at 50% 30%, #2a3a52, #121a26);
  box-shadow: inset 0 0 0 1px rgba(160, 190, 225, 0.12);
  overflow: hidden;
  display: grid; place-items: center;
  transition: aspect-ratio 0.35s var(--ease);
}
.stage__plate svg { width: 100%; height: 100%; display: block; }
.stage__load {
  font: 500 0.82rem/1.5 var(--body);
  color: #a9b6c8;
  padding: 1rem; text-align: center;
}
:root[data-theme="light"] .stage__plate {
  background: linear-gradient(180deg, #ffffff 0%, #eef2f6 100%);
  box-shadow: inset 0 0 0 1px rgba(30, 63, 96, 0.14);
}
:root[data-theme="light"] .stage__load { color: #5a6b7d; }
.stage__load.is-error { color: #a8323a; }
.stage__note {
  margin: 0.75rem 0 0.15rem;
  font-size: 0.74rem; line-height: 1.55; color: var(--dim);
}

/* --------------------------------------------------------------- lightbox */
/* A <dialog> in the top layer. Do NOT give .lightbox a `display` outside the
   [open] state — a class that sets display out-ranks the UA's
   dialog:not([open]) rule and the panel would sit in the page permanently. */
.lightbox {
  border: 0; padding: 0;
  width: min(96vw, 1600px); max-width: none;
  max-height: 92vh;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgba(3, 6, 12, 0.82); backdrop-filter: blur(3px); }

.lightbox__bar {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  align-items: center; justify-content: space-between;
  padding: 0.75rem clamp(0.75rem, 2vw, 1.1rem);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
/* The drawing is moved in here, so it must not inherit the plan-view sizing. */
.lightbox__body {
  flex: 1; min-height: 0;
  padding: clamp(0.6rem, 2vw, 1.1rem);
  display: grid; place-items: center;
}
.lightbox__body .stage__plate {
  width: 100%; height: 100%;
  aspect-ratio: auto;
  max-height: none;
}
.lightbox__body .stage__load { display: none; }
.lightbox__note {
  margin: 0; padding: 0 clamp(0.75rem, 2vw, 1.1rem) 0.85rem;
  font-size: 0.74rem; color: var(--dim);
}
.lightbox__note kbd {
  font: inherit; font-weight: 600;
  padding: 0.05em 0.4em; border-radius: 5px;
  border: 1px solid var(--line-strong); color: var(--text);
}
.lightbox__close span[aria-hidden] { font-size: 1.25em; line-height: 0.6; }
.lightbox__close:hover { color: var(--danger); background: var(--danger-bg); }

@media (max-width: 700px) {
  /* Full-bleed: on a phone the surrounding page is not useful context. */
  .lightbox {
    width: 100vw; max-width: 100vw;
    height: 100dvh; max-height: 100dvh;
    border-radius: 0;
  }
  .lightbox__bar { padding: 0.6rem 0.7rem; }
}

/* Turned on its side so the wing runs down the long axis of the screen.
   JS supplies the dimensions because they are the post-rotation ones — width
   becomes vertical extent — which CSS alone cannot work out. */
.lightbox__body.is-rot { position: relative; overflow: hidden; }
.lightbox__body.is-rot .stage__plate {
  position: absolute; top: 50%; left: 50%;
  width: var(--lb-w); height: var(--lb-h);
  aspect-ratio: auto;
  transform: translate(-50%, -50%) rotate(90deg);
}

/* ------------------------------------------------------------------- blocks */
.blk { border: 0; margin: 0 0 clamp(1.3rem, 2.6vw, 1.9rem); padding: 0; }
.blk__t {
  display: block; padding: 0; margin: 0;
  font: 700 0.72rem/1 var(--display);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cyan);
}
.blk__note { margin: 0; font-size: 0.8rem; line-height: 1.6; color: var(--muted); }

/* One rhythm for everything stacked inside a block.
   Without this the spacing is inconsistent by construction: fields inside a
   .field-row are separated by the grid `gap`, but two .field-rows — or a
   .field-row followed by a lone .field — are plain siblings with no margin at
   all, so identical-looking rows sat at three different distances apart. */
/* Scoped to .dsn so this out-ranks the `margin` shorthands that individual
   components set on themselves — otherwise whichever rule happens to come
   later in the file wins and the rhythm quietly breaks in one block. */
.dsn .blk > * + * { margin-top: var(--stack); }
.dsn { --stack: 1.1rem; }
.cgroups { display: grid; gap: var(--stack); }

/* The panel column is ~460px, which lands right on the auto-fit threshold for
   the site-wide 220px minimum and flips between one and two columns for a few
   pixels of window width. A slightly smaller floor keeps it settled. */
.dsn .field-row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: var(--stack); }
/* Long-label selects (the hybrid line sets) get the whole row — a native
   select clips its value hard, and ellipsis is a fallback, not a fix. */
.dsn .field--wide { grid-column: 1 / -1; }
.dsn .field select { text-overflow: ellipsis; }

/* ----------------------------------------------------------------- patterns */
.ptabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.ptab {
  appearance: none; cursor: pointer; text-align: left;
  display: grid; gap: 0.25rem;
  padding: 0.85rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), transform 0.18s var(--ease);
}
.ptab:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.ptab.is-on { border-color: var(--brand); background: var(--chip-bg); }
/* "is-on" is the pattern you picked; "is-applied" is the option your colours
   have put in the total. They are different facts, so they must not look
   identical — the outline says active, the fill stays reserved for selection.
   Only matters on the Custom box, and only when a colour has moved. */
.ptab.is-applied:not(.is-on) {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}
.ptab__name { font: 700 0.86rem/1.2 var(--body); color: var(--white); }
.ptab__price { font-size: 0.76rem; color: var(--muted); }
.ptab.is-on .ptab__price { color: var(--cyan); }
.ptab.is-applied .ptab__price { color: var(--cyan); }

@media (max-width: 620px) {
  /* Full-width cards stack very tall on a phone; two up reads better and the
     names are short ("Royal Blue", "Red", "Custom"). */
  .ptabs { grid-template-columns: repeat(2, 1fr); }
  .ptab { padding: 0.7rem 0.65rem; }
  .ptab__name { font-size: 0.8rem; }
}

/* ------------------------------------------------------------ colour groups */
.cgroup { display: grid; gap: 0.5rem; }
.cgroup__head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; }
.cgroup__label { font: 700 0.82rem/1.2 var(--body); color: var(--text); }
.cgroup__value { font-size: 0.78rem; color: var(--muted); }
/* A grid, not a wrapping flex row. Wings offer either 4 or 11 fabrics, and
   with flex the last row hangs ragged and the two-line names ("Electric
   Blue") knock the row heights out of line. Equal cells keep every swatch
   aligned whatever the count. */
.cgroup__swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 0.4rem 0.35rem;
  align-items: start;
}

.sw { position: relative; cursor: pointer; display: grid; justify-items: center; }
.sw input {
  position: absolute; inset: 0; opacity: 0; margin: 0;
  width: 100%; height: 100%; cursor: pointer;
}
.sw__chip {
  display: block; width: 100%; max-width: 52px; aspect-ratio: 1; border-radius: 11px;
  background: var(--sw);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.sw--light .sw__chip { box-shadow: inset 0 0 0 1px rgba(30, 63, 96, 0.28), 0 2px 8px rgba(0, 0, 0, 0.28); }
.sw__name {
  display: block; margin-top: 0.3rem;
  font-size: 0.7rem; line-height: 1.25; letter-spacing: 0.01em; color: var(--muted);
  text-align: center;
}
.sw input:hover + .sw__chip { transform: translateY(-2px); }
.sw input:checked + .sw__chip {
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand), 0 4px 12px rgba(0, 0, 0, 0.4);
}
.sw input:checked ~ .sw__name { color: var(--text); }
.sw input:focus-visible + .sw__chip {
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--cyan-hot);
}
/* A tick, drawn in whichever of black/white survives on the chip. */
.sw input:checked + .sw__chip::after {
  content: ''; position: absolute; left: 50%; top: 45%;
  margin: -7px 0 0 -8px;
  width: 13px; height: 8px;
  border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg);
}
.sw--light input:checked + .sw__chip::after { border-color: #16233a; }

/* ------------------------------------------------- per-cell colouring (Custom) */
.cells { display: grid; gap: 0.9rem; }
.cells[hidden] { display: none; }
.cells__how { margin: 0; font-size: 0.8rem; line-height: 1.45; color: var(--muted); }
.cells__how b { color: var(--text); }
.cells__row { display: grid; gap: 0.4rem; }
.cells__head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; }
.cells__label { font: 700 0.82rem/1.2 var(--body); color: var(--text); }
.cells__all {
  font: 600 0.74rem/1 var(--body); color: var(--brand); background: none; border: 0;
  padding: 0.35rem 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.cells__all:focus-visible { outline: 2px solid var(--cyan-hot); outline-offset: 2px; }
.cells__strip { display: grid; grid-template-columns: repeat(9, 1fr); gap: 0.25rem; }
.cell {
  display: grid; justify-items: center; gap: 0.2rem; padding: 0; margin: 0;
  background: none; border: 0; cursor: pointer; color: var(--muted);
  min-height: 44px;
}
.cell__chip {
  display: block; width: 100%; height: 28px; border-radius: 6px; background: var(--sw, #F6F4F5);
  box-shadow: inset 0 0 0 1px rgba(127, 127, 127, 0.45);
  transition: transform 0.14s var(--ease);
}
.cell__n { font: 600 0.68rem/1 var(--body); }
.cell:hover .cell__chip { transform: translateY(-2px); }
.cell:focus-visible .cell__chip { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--cyan-hot); }
.cell.is-hit .cell__chip { animation: cellhit 0.35s var(--ease); }
@keyframes cellhit { 50% { transform: scale(0.88); } }
@media (prefers-reduced-motion: reduce) { .cell.is-hit .cell__chip { animation: none; } }
.stage__plate.is-paintable path[id^="fw-le"],
.stage__plate.is-paintable path[id^="fw-top"],
.stage__plate.is-paintable path[id^="fw-bot"] { cursor: pointer; }
.stage__plate.is-paintable .fw-seams,
.fw-cell-labels { display: none; pointer-events: none; }
.stage__plate.is-paintable .fw-cell-labels { display: inline; }
.fw-cell-labels text {
  font: 800 22px/1 var(--body, sans-serif); fill: #fff;
  stroke: #16233a; stroke-width: 4px; paint-order: stroke; stroke-linejoin: round;
}
.stage__plate.is-paintable .fw-profiles,
.stage__plate.is-paintable .fw-profiles-edge,
.stage__plate.is-paintable .fw-inlet,
.stage__plate.is-paintable .fw-outline { pointer-events: none; }
.stage__plate.is-paintable path[id^="fw-le"]:hover,
.stage__plate.is-paintable path[id^="fw-top"]:hover,
.stage__plate.is-paintable path[id^="fw-bot"]:hover { filter: brightness(1.12) saturate(1.05); }

/* -------------------------------------------------------------------- sizes */
.sizes { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.size { position: relative; }
.size input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.size span {
  display: grid; place-items: center;
  min-width: 56px; min-height: 44px; padding: 0 0.7rem;
  font: 700 0.84rem/1 var(--body);
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.size input:hover + span { color: var(--white); border-color: var(--line-strong); }
.size input:checked + span { color: var(--on-brand); background: var(--brand); border-color: var(--brand); }
.size input:focus-visible + span { outline: 2px solid var(--cyan-hot); outline-offset: 2px; }

/* No own margin: inside a .field the grid gap spaces it, and as a direct child
   of a .blk the block rhythm does. Giving it both stacked two spacings. */
.field__help { margin: 0; font-size: 0.79rem; line-height: 1.55; color: var(--muted); }

/* -------------------------------------------------------------------- tally */
.tally {
  /* A raised card on a page that is already dark: --surface, never --ink,
     or it reads as a hole rather than a panel. */
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(1.1rem, 2.4vw, 1.5rem);
  margin: 0 0 clamp(1.3rem, 2.6vw, 1.9rem);
}
.tally__t {
  margin: 0 0 0.85rem;
  font: 700 0.74rem/1 var(--display);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan);
}
.tally__list { margin: 0; display: grid; gap: 0.42rem; }
.tally__row { display: flex; gap: 1rem; justify-content: space-between; align-items: baseline; }
.tally__row dt { margin: 0; font-size: 0.79rem; color: var(--muted); }
.tally__row dd { margin: 0; font-size: 0.79rem; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.tally__total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 0.9rem; padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
.tally__total span { font: 600 0.8rem/1 var(--body); color: var(--text); }
.tally__total strong {
  font: 700 1.7rem/1 var(--display);
  color: var(--white); font-variant-numeric: tabular-nums;
}
.tally__fine { margin: 0.7rem 0 0; font-size: 0.72rem; line-height: 1.55; color: var(--dim); }

/* --------------------------------------------------------------- send block */
.dsn__send { display: grid; gap: 0.9rem; }
.dsn__preview {
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 0.8rem; line-height: 1.6;
  color: var(--text);
  background: var(--warn-bg);
  border: 1px solid color-mix(in srgb, var(--warn) 42%, transparent);
  border-radius: var(--radius);
}
.dsn__preview strong { color: var(--warn); }
@keyframes dsnFlash {
  0%, 100% { border-color: color-mix(in srgb, var(--warn) 42%, transparent); }
  35% { border-color: var(--warn); box-shadow: 0 0 0 4px var(--warn-bg); }
}
.dsn__preview.is-flash { animation: dsnFlash 0.9s var(--ease) 2; }

@media (prefers-reduced-motion: reduce) {
  .stage__plate, .ptab, .vtab, .sw__chip, .size span { transition: none; }
  .dsn__preview.is-flash { animation: none; }
}

/* --------------------------------------------------------------- custom note */
/* The total must never move without saying why, so this appears the instant a
   colour leaves the standard colourway — and disappears again if it is put
   back. Styled as information, not an error: choosing custom is a normal thing
   to do, it just costs. */
.dsn__custom {
  margin: 0 0 clamp(1.3rem, 2.6vw, 1.9rem);
  padding: 0.9rem 1.05rem;
  font-size: 0.82rem; line-height: 1.6;
  color: var(--text);
  background: var(--chip-bg);
  border: 1px solid var(--chip-line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
}
.dsn__custom strong { display: block; color: var(--cyan); margin-bottom: 0.15rem; }
.dsn__custom b { color: var(--white); font-weight: 700; }

/* --------------------------------------------------------- design index --- */
.dgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(1rem, 2.4vw, 1.6rem);
}
.dcard {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.dcard:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--cyan) 48%, transparent); box-shadow: var(--glow); }
/* One stretched hit area: the whole card is the link, so nothing inside needs
   to be focusable and the tap target is the card. */
.dcard__hit { position: absolute; inset: 0; z-index: 3; }
.dcard__hit:focus-visible { outline: 2px solid var(--cyan-hot); outline-offset: -3px; border-radius: inherit; }
/* Same centred treatment as the wing cards: the mark floats on a plate with
   breathing room, never cropped. Absolute + inset gives a definite box in
   both axes (height:100% does not resolve inside an aspect-ratio container). */
.dcard__plate {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
/* This sheet loads after site.css, so an unqualified background here would
   out-order the shared .plate-light treatment the light marks rely on. */
.dcard__plate:not(.plate-light) {
  background: radial-gradient(90% 90% at 50% 40%, var(--plate-a), var(--plate-b));
}
.dcard__plate img {
  --pad: clamp(1rem, 8%, 2.2rem);
  position: absolute;
  inset: var(--pad);
  width: auto;
  height: auto;
  max-width: calc(100% - 2 * var(--pad));
  max-height: calc(100% - 2 * var(--pad));
  margin: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 26px rgba(var(--shadow-rgb), 0.55));
  transition: transform 0.55s var(--ease);
}
.dcard:hover .dcard__plate img { transform: scale(1.05); }
/* Photos (the SAW) go full bleed like the wing cards' is-photo treatment —
   boxing a photograph on a plate reads as a mistake. */
.dcard__plate.is-photo img {
  --pad: 0px;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  filter: none;
}
.dcard__body { padding: clamp(1rem, 2vw, 1.25rem); display: grid; gap: 0.7rem; align-content: start; }
.dcard__name { margin: 0; font: 700 1.3rem/1.1 var(--display); letter-spacing: 0.02em; color: var(--white); text-transform: uppercase; }
/* Labelled facts, not a dot-separated murmur. */
.dcard__facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 0.2rem 1.2rem;
}
.dcard__facts div { display: grid; gap: 0.18rem; }
.dcard__facts dt {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  /* One line each or the three columns' values fall out of register. */
  white-space: nowrap;
}
.dcard__facts dd { margin: 0; font: 600 0.95rem/1.2 var(--display); color: var(--ice); }
.dcard__go {
  margin-top: 0.4rem;
  display: inline-flex; align-items: center; gap: 0.45rem;
  font: 700 0.7rem/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cyan);
}
.dcard__go svg { width: 13px; height: 13px; transition: transform 0.22s var(--ease); }
.dcard:hover .dcard__go svg { transform: translateX(4px); }
.dnote { margin: clamp(1.6rem, 3vw, 2.4rem) 0 0; font-size: 0.85rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .dcard, .dcard__go svg, .dcard__plate img { transition: none; }
  .dcard:hover { transform: none; }
  .dcard:hover .dcard__plate img { transform: none; }
}

/* ------------------------------------------------------------ 3D preview */
.dsn__stage.has-3d { display: grid; gap: 1rem; }
@media (min-width: 1080px) { .dsn__stage.has-3d { position: static; } }
.stage__title {
  margin: 0; display: inline-flex; align-items: center; gap: 0.5rem;
  font: 600 0.72rem/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.stage__check { gap: 0.35rem; }
.stage__check input { accent-color: var(--cyan); margin: 0; }
.stage__act[aria-pressed="false"] { opacity: 0.7; }
.m3d {
  position: relative;
  aspect-ratio: 16 / 10;
  max-width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  /* dark plate in dark mode (the site default), light plate in light mode;
     saved / emailed pictures keep a light background (designer-3d*.js) */
  background: radial-gradient(120% 90% at 50% 15%, #2a3a52, #121a26);
  touch-action: none;
  cursor: grab;
}
:root[data-theme="light"] .m3d { background: radial-gradient(120% 90% at 50% 15%, #ffffff, #dfe7f0); }
.m3d:active { cursor: grabbing; }
.m3d canvas { display: block; width: 100%; height: 100%; }
.m3d__load {
  position: absolute; inset: 0; margin: 0;
  display: grid; place-items: center;
  font-size: 0.85rem; color: #a9b6c8;
}
:root[data-theme="light"] .m3d__load { color: #4a5568; }

/* --------------------------------------------------------------- sending */
.req { color: var(--cyan); }
.dsn__fine { font-size: 0.82rem; color: var(--muted); margin: 0 0 0.8rem; }
.dsn__status {
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  border: 1px solid var(--line);
  background: var(--chip-bg);
}
.dsn__status.is-ok { border-color: rgba(52, 168, 83, 0.55); background: rgba(52, 168, 83, 0.1); }
.dsn__status.is-error { border-color: rgba(220, 53, 69, 0.55); background: rgba(220, 53, 69, 0.08); }
.dsn__status strong { display: block; margin-bottom: 0.2rem; }
.dsn__status .order-no { font-size: 1.15rem; letter-spacing: 0.02em; }
.field input.is-missing { border-color: rgba(220, 53, 69, 0.8); }

/* Dealer orders (2026-10-17): the banner in "Your details" when a dealer code
   is set for this tab (assets/js/dealer.js). */
.dealerbar {
  margin: 0 0 1rem; padding: 0.75rem 0.9rem; border-radius: 10px;
  border: 2px solid var(--cyan); background: color-mix(in srgb, var(--cyan) 10%, transparent);
  font-size: 0.95rem; line-height: 1.45;
}
.dealerbar a { font-weight: 600; }
.dealer .field input { font-family: ui-monospace, Menlo, monospace; letter-spacing: 0.06em; }
