/* =====================================================================
   BOARD LAB: STYLES
   Quiet dark surfaces, one accent (the site lime) for actions and
   selected states, sentence-case labels, line icons.
===================================================================== */
:root {
  --bg: #0c0c0b;
  --surface: #141413;
  --surface-2: #1b1b19;
  --surface-3: #252522;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3f2ed;
  --muted: #a3a29b;
  --faint: #73726c;
  --lime: #d7f238;
  --lime-soft: rgba(215, 242, 56, 0.12);
  --warn: #f2c94c;
  --danger: #ff8f80;
  --font: 'Space Grotesk', 'Noto Sans Thai', 'Helvetica Neue', Arial, sans-serif;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
[hidden] { display: none !important; }
.ic { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.dl-skip { position: absolute; left: -9999px; top: 0; z-index: 99; background: var(--lime); color: #000; padding: 10px 16px; font-weight: 600; }
.dl-skip:focus { left: 8px; top: 8px; }
.dl-wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.dl-top { position: sticky; top: 0; z-index: 30; background: rgba(12,12,11,0.86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.dl-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.dl-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.dl-logo-mark { width: 34px; height: 34px; flex-shrink: 0; }
.dl-logo-mark svg { width: 100%; height: 100%; display: block; }
.dl-logo-text { font-weight: 700; font-size: 14px; letter-spacing: -0.01em; line-height: 1.05; text-transform: uppercase; }
.dl-top-right { display: flex; align-items: center; gap: 10px; }
.dl-lang { min-height: 36px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; text-decoration: none; color: var(--muted); }
.dl-lang:hover { color: var(--text); border-color: var(--text); }

/* ---------- buttons ---------- */
.dl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.dl-btn:hover { border-color: rgba(255,255,255,0.32); }
.dl-btn:active { transform: translateY(1px); }
.dl-btn-lime { background: var(--lime); color: #0c0c0b; border-color: var(--lime); }
.dl-btn-lime:hover { background: #e3ff55; border-color: #e3ff55; }
.dl-btn-ghost { background: transparent; }
.dl-btn-sm { min-height: 38px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.dl-btn:disabled { opacity: 0.35; cursor: default; }
.dl-ur {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 10px;
  border: 0; border-radius: 9px; background: transparent; color: #cfcec8; font-size: 14px; font-weight: 500;
}
.dl-ur:hover:not(:disabled) { background: var(--surface-3); color: #fff; }
.dl-ur:disabled { opacity: 0.32; cursor: default; }
.dl-ur-box { height: 42px; border: 1px solid var(--line-2); background: var(--surface-2); }
.dl-ur-box.dl-danger { color: var(--danger); }
.dl-icon { width: 36px; height: 36px; border-radius: 9px; border: 0; background: transparent; display: grid; place-items: center; color: #cfcec8; }
.dl-icon:hover:not(:disabled) { background: var(--surface-3); color: #fff; }
.dl-icon[aria-pressed="true"] { background: var(--lime); color: #000; }
.dl-icon:disabled { opacity: 0.3; cursor: default; }

/* ---------- hero ---------- */
.dl-hero { padding: clamp(32px, 4.5vw, 60px) 0 clamp(24px, 3vw, 36px); }
.dl-hero-inner { display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: 32px; align-items: end; }
.dl-eyebrow, .dl-hero h1 .dl-eyebrow { display: block; margin: 0 0 14px; color: var(--muted); font-size: 13px; font-weight: 500; text-transform: none; letter-spacing: 0; line-height: 1.4; }
.dl-hero h1 { margin: 0; font-weight: 700; text-transform: uppercase; letter-spacing: -0.055em; line-height: 0.84; font-size: clamp(64px, 9.5vw, 132px); }
.dl-hero h1 .dl-lime { color: var(--lime); }
.dl-lede { margin: 0; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.5; }

/* ---------- tabs (segmented) ---------- */
.dl-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 18px; }
.dl-tabs button {
  display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--muted);
  padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.dl-tabs button:hover { color: var(--text); }
.dl-tabs button[aria-selected="true"] { background: var(--text); color: #0c0c0b; }

/* ---------- studio ---------- */
.dl-studio { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr); gap: 20px; align-items: start; padding-bottom: clamp(56px, 8vw, 96px); }
.dl-stage-col { min-width: 0; }
.dl-stage {
  position: relative; height: clamp(520px, 76vh, 700px); border-radius: var(--r-lg); border: 1px solid var(--line);
  background: radial-gradient(ellipse 70% 60% at 50% 42%, #22221f 0%, #151513 55%, #0f0f0e 100%);
  overflow: hidden;
}
.dl-stage-title, .dl-stage-meta, .dl-stage-hint { position: absolute; z-index: 2; font-size: 12px; font-weight: 500; color: var(--faint); pointer-events: none; }
.dl-stage-title { left: 18px; top: 20px; color: var(--muted); font-weight: 600; }
.dl-stage-meta { left: 18px; bottom: 16px; color: var(--muted); }
.dl-stage-hint { right: 18px; bottom: 16px; }

.dl-stage-tools {
  position: absolute; top: 12px; right: 12px; z-index: 3; display: flex; align-items: center; gap: 2px;
  background: rgba(20,20,19,0.82); border: 1px solid var(--line); border-radius: 12px; padding: 4px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.dl-zoom-val { min-width: 30px; text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.dl-stage-sep { width: 1px; height: 20px; background: var(--line-2); margin: 0 4px; }

.dl-scroll { position: absolute; inset: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #333 transparent; perspective: 1600px; }
.dl-scroll.is-panning { cursor: grab; }
.dl-scroll.is-panning:active { cursor: grabbing; }
.dl-board-wrap { position: relative; margin: 0 auto; filter: drop-shadow(0 28px 26px rgba(0,0,0,0.55)) drop-shadow(0 4px 6px rgba(0,0,0,0.35)); }
.dl-board { position: absolute; transform-style: preserve-3d; transition: transform 0.8s var(--ease); touch-action: none; cursor: crosshair; z-index: 1; -webkit-user-select: none; user-select: none; }
.dl-board.is-flipped { transform: rotateY(180deg); }
.dl-board.no-draw { cursor: default; touch-action: auto; }
.dl-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.dl-back { transform: rotateY(180deg); }
.dl-face canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#overCanvas { pointer-events: none; }
.dl-parts { position: absolute; pointer-events: none; z-index: 2; opacity: 0; transition: opacity 0.4s var(--ease); }
.dl-parts.is-on { opacity: 1; }

.dl-hotspots { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.dl-leaders { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.dl-leaders polyline { fill: none; stroke: rgba(255,255,255,0.28); stroke-width: 1; }
.dl-leaders circle { fill: rgba(255,255,255,0.75); }
.dl-leaders .is-active { stroke: var(--lime); stroke-width: 1.5; }
.dl-leaders circle.is-active { fill: var(--lime); stroke: none; }
.dl-hot {
  position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; padding: 0;
  border: 0; background: var(--text); color: #0c0c0b; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; pointer-events: auto; box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transition: transform .15s var(--ease), background .15s var(--ease);
}
.dl-hot:hover { transform: scale(1.1); }
.dl-hot.is-active { background: var(--lime); transform: scale(1.12); }

.dl-actions { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 10px; margin-top: 12px; }
/* Desktop: the board stays beside the controls while you scroll them,
   sized to fill the screen under the sticky header. */
@media (min-width: 901px) {
  .dl-studio { align-items: stretch; }
  .dl-stage-col { position: sticky; top: calc(var(--dl-top-h, 69px) + 16px); align-self: start; }
  .dl-stage { height: clamp(500px, calc(100vh - var(--dl-top-h, 69px) - 112px), 900px); }
  @supports (height: 100svh) {
    .dl-stage { height: clamp(500px, calc(100svh - var(--dl-top-h, 69px) - 112px), 900px); }
  }
}

/* ---------- panel ---------- */
.dl-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; min-width: 0; }
.dl-panel-head { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.dl-panel-head h2 { margin: 0; font-size: 24px; line-height: 1.15; letter-spacing: -0.03em; font-weight: 700; }
.dl-panel-head p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.dl-sec { padding: 20px 0; border-bottom: 1px solid var(--line); }
.dl-sec:last-child { border-bottom: 0; padding-bottom: 0; }
.dl-sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.dl-sec-head h3, .dl-sec-head h4, .dl-sec-head label { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -0.005em; }
.dl-sec-val { font-size: 13px; color: var(--muted); text-align: right; }
.dl-note { margin: 10px 0 0; color: var(--muted); font-size: 13.5px; }
.dl-mt { margin-top: 18px; }
.dl-fine { margin: 20px 0 0; color: var(--faint); font-size: 12.5px; }

.dl-decks { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.dl-deck { aspect-ratio: 0.7; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); display: grid; place-items: center; padding: 0; transition: border-color .15s var(--ease), background .15s var(--ease); }
.dl-deck:hover { border-color: var(--line-2); background: var(--surface-3); }
.dl-deck[aria-checked="true"] { border-color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime); background: var(--surface-3); }

.dl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dl-chip { min-height: 38px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface-2); font-weight: 600; font-size: 13.5px; }
.dl-chip:hover { border-color: rgba(255,255,255,0.3); }
.dl-chip[aria-checked="true"] { background: var(--lime); color: #0c0c0b; border-color: var(--lime); }

.dl-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.dl-tools button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 13.5px; }
.dl-tools button:hover { color: var(--text); }
.dl-tools button[aria-checked="true"] { background: var(--text); color: #0c0c0b; }
.dl-stamps { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-top: 10px; }
.dl-stamp { aspect-ratio: 1; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); display: grid; place-items: center; padding: 0; }
.dl-stamp[aria-checked="true"] { border-color: var(--lime); background: var(--surface-3); }

.dl-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.dl-color { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18); padding: 0; position: relative; transition: transform .12s var(--ease); }
.dl-color:hover { transform: scale(1.08); }
.dl-color[aria-checked="true"] { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--lime); }
.dl-color-custom { background: conic-gradient(#ff4d4d, #ffd84d, #6bff6b, #4dd2ff, #6b6bff, #ff4dd8, #ff4d4d); overflow: hidden; }
.dl-color-custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0; }

.dl-size input[type="range"] { width: 100%; accent-color: var(--lime); height: 28px; }
.dl-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 14px; font-weight: 500; cursor: pointer; }
.dl-switch small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.dl-switch input { appearance: none; -webkit-appearance: none; width: 40px; height: 24px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-2); position: relative; cursor: pointer; flex-shrink: 0; transition: background .2s var(--ease); }
.dl-switch input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .2s var(--ease), background .2s var(--ease); }
.dl-switch input:checked { background: var(--lime); border-color: var(--lime); }
.dl-switch input:checked::after { transform: translateX(16px); background: #0c0c0b; }

.dl-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dl-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dl-tip { margin: 16px 0 0; padding: 2px 0 2px 14px; border-left: 2px solid var(--lime); color: var(--muted); font-size: 13.5px; }

/* ---------- explore ---------- */
.dl-part-groups { padding: 18px 0 16px; display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: start; }
.dl-part-group { display: contents; }
.dl-part-group h4 { margin: 0; padding-top: 7px; font-size: 12px; font-weight: 500; color: var(--faint); white-space: nowrap; }
.dl-part-chips { gap: 6px; }
.dl-part-chips .dl-chip { min-height: 32px; padding: 0 10px; font-size: 13px; display: inline-flex; align-items: center; gap: 7px; }
.dl-chip-n { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: rgba(255,255,255,0.1); color: var(--muted); font-size: 10.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dl-chip[aria-checked="true"] .dl-chip-n { background: rgba(12,12,11,0.14); color: #0c0c0b; }
.dl-part-card { padding: 20px 22px 22px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.dl-part-card h3 { margin: 2px 0 4px; font-size: 22px; letter-spacing: -0.02em; }
.dl-part-card > p { margin: 6px 0 0; color: #dcdbd5; font-size: 15px; line-height: 1.55; }
.dl-group-tag { color: var(--muted); font-size: 12.5px; }
.dl-facts { margin: 16px 0 0; border-top: 1px solid var(--line); }
.dl-facts > div { display: grid; grid-template-columns: 128px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.dl-facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.dl-facts dt { font-size: 12.5px; font-weight: 600; color: var(--text); line-height: 1.45; }
.dl-facts dd { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.dl-part-card svg { display: block; width: 100%; height: auto; margin-top: 16px; }
.dl-more { margin-top: 14px; }
.dl-more summary { cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--text); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.dl-more summary::-webkit-details-marker { display: none; }
.dl-more summary::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease); }
.dl-more[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.dl-more p { color: var(--muted); font-size: 14px; margin: 8px 0 0; }

/* ---------- fit ---------- */
.dl-fit-status { margin-top: 14px; padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); font-size: 14px; color: var(--muted); }
.dl-fit-status b { display: block; color: var(--text); font-size: 14px; margin-bottom: 4px; }
.dl-fit-status.is-match b::before, .dl-fit-status.is-narrow b::before, .dl-fit-status.is-wide b::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.dl-fit-status.is-match b::before { background: var(--lime); }
.dl-fit-status.is-narrow b::before, .dl-fit-status.is-wide b::before { background: var(--warn); }
.dl-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 0; }
.dl-compare figure { margin: 0; padding: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); }
.dl-compare figcaption { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 28px; }
.dl-compare select { background: var(--surface-3); border: 1px solid var(--line-2); border-radius: 7px; padding: 3px 6px; font-size: 12.5px; }
.dl-compare svg { display: block; width: 100%; height: auto; }
.dl-brands { display: grid; gap: 8px; margin-top: 12px; }
.dl-brand { display: grid; grid-template-columns: 100px 1fr; gap: 10px; align-items: start; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); }
.dl-brand > b { font-size: 14px; padding-top: 4px; font-weight: 600; }
.dl-brand-sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.dl-size-pill { font-size: 13px; font-weight: 600; padding: 5px 9px; border-radius: 8px; border: 1px solid var(--line-2); }
.dl-size-pill small { display: block; font-size: 11px; font-weight: 500; opacity: 0.8; }
.dl-size-pill.is-rec { background: var(--lime); color: #0c0c0b; border-color: var(--lime); }
.dl-size-pill.is-also { color: var(--text); }
.dl-size-pill.is-check { color: var(--warn); border-color: rgba(242,201,76,0.4); }
.dl-source { margin: 12px 0 0; font-size: 12px; color: var(--faint); }
.dl-source b { color: var(--warn); font-weight: 600; }

/* ---------- make it real ---------- */
.dl-real { padding-bottom: clamp(56px, 8vw, 96px); }
.dl-real-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
  padding: clamp(28px, 5vw, 56px); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface);
}
.dl-real-inner.no-products { grid-template-columns: 1fr; }
.dl-real h2 { margin: 0; font-size: clamp(34px, 5vw, 60px); line-height: 0.95; letter-spacing: -0.045em; font-weight: 700; text-transform: uppercase; }
.dl-real h2 span { color: var(--lime); }
.dl-real-sub { color: var(--muted); max-width: 460px; margin: 16px 0 24px; font-size: 16px; }
.dl-kicker { margin: 0 0 12px; color: var(--muted); font-size: 13px; font-weight: 500; }
.dl-products { display: grid; gap: 10px; }
.dl-product { display: block; padding: 16px 18px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface-2); text-decoration: none; }
.dl-product:hover { border-color: var(--lime); }
.dl-product b { display: block; }
.dl-product span { color: var(--muted); font-size: 13px; }
.dl-shop-row { display: flex; flex-wrap: wrap; gap: 8px; }
.dl-shop-link { display: inline-flex; align-items: center; text-decoration: none; }
.dl-disclose { font-size: 12px; color: var(--faint); margin: 12px 0 0; }

.dl-foot { border-top: 1px solid var(--line); }
.dl-foot-inner { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 24px 0 32px; font-size: 13px; color: var(--faint); }
.dl-foot a { text-decoration: none; }
.dl-foot a:hover { color: var(--text); }

/* ---------- dialog ---------- */
.dl-dialog { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); color: var(--text); padding: 0; width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); }
.dl-dialog::backdrop { background: rgba(0,0,0,0.72); backdrop-filter: blur(4px); }
.dl-dialog-inner { padding: 24px; display: grid; gap: 16px; }
.dl-dialog h2 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
.dl-field { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; }
.dl-field small { color: var(--muted); font-weight: 400; }
.dl-field input { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 12px 14px; font-size: 16px; font-weight: 400; }
.dl-formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.dl-formats button { min-height: 56px; border-radius: 9px; border: 0; background: transparent; font-weight: 600; font-size: 13.5px; display: grid; place-items: center; gap: 2px; padding: 8px; color: var(--muted); }
.dl-formats button small { font-weight: 400; font-size: 11.5px; }
.dl-formats button[aria-checked="true"] { background: var(--text); color: #0c0c0b; }
.dl-preview { border-radius: var(--r-sm); border: 1px solid var(--line); display: grid; place-items: center; height: 240px; overflow: hidden;
  background-color: #0e0e0d; background-image: linear-gradient(45deg, #171716 25%, transparent 25%, transparent 75%, #171716 75%), linear-gradient(45deg, #171716 25%, transparent 25%, transparent 75%, #171716 75%);
  background-size: 16px 16px; background-position: 0 0, 8px 8px; }
.dl-preview img { max-width: 100%; max-height: 100%; display: block; }

.dl-toast {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50;
  background: var(--text); color: #0c0c0b; padding: 12px 14px 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 500;
  box-shadow: 0 12px 32px rgba(0,0,0,0.45); display: flex; gap: 14px; align-items: center; max-width: calc(100vw - 24px);
}
.dl-toast button { background: #0c0c0b; color: var(--text); border: 0; border-radius: 8px; padding: 7px 12px; font-weight: 600; font-size: 13px; white-space: nowrap; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .dl-decks { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 900px) {
  .dl-hero-inner { grid-template-columns: 1fr; gap: 16px; }
  .dl-tabs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .dl-tabs button { justify-content: center; padding: 10px 6px; }
  .dl-studio { grid-template-columns: 1fr; gap: 12px; }
  .dl-stage-col { order: -1; }
  .dl-panel, .dl-sub:not([hidden]) { display: contents; }
  .dl-panel-head, .dl-sec, .dl-fine, .dl-part-groups, .dl-part-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px;
  }
  .dl-sec:last-child { padding-bottom: 18px; }
  .dl-fine { border: 0; background: none; padding: 4px 4px 0; }
  .dl-part-card { background: var(--surface-2); margin: 0; }
  .dl-part-groups { padding: 16px; }
  #panel-create .dl-panel-head { display: none; }
  .dl-o-1 { order: 1; } .dl-o-2 { order: 2; } .dl-o-3 { order: 3; } .dl-o-4 { order: 4; } .dl-o-5 { order: 5; }
  .dl-stage { height: max(420px, min(64svh, 600px)); }
  .dl-decks { grid-template-columns: repeat(8, 1fr); gap: 6px; }
  .dl-real-inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .dl-facts > div { grid-template-columns: 1fr; gap: 3px; }
  .dl-logo-text { font-size: 12.5px; }
  .dl-top-right .dl-btn { padding: 0 12px; }
  .dl-hero h1 { font-size: clamp(56px, 19vw, 84px); }
  .dl-tabs button .ic { display: none; }
  .dl-decks { grid-template-columns: repeat(5, 1fr); }
  .dl-stamps { grid-template-columns: repeat(4, 1fr); }
  .dl-actions { grid-template-columns: 1fr 1fr; }
  .dl-actions .dl-save { grid-column: 1 / -1; }
  .dl-color { width: 34px; height: 34px; }
  .dl-stage-hint, .dl-stage-title { display: none; }
  .dl-hero { padding: 28px 0 22px; }
  .dl-eyebrow { margin-bottom: 10px; }
  .dl-stage-tools .dl-ur { padding: 0 8px; }
  .dl-stage-tools .dl-icon { width: 32px; }
  .dl-brand { grid-template-columns: 1fr; }
  .dl-compare { grid-template-columns: 1fr; }
}
/* Guide: crawlable answers + truck size chart */
.dl-nw { white-space: nowrap; }
.dl-chart-more { margin: 16px 0 0; font-size: 15px; }
.dl-guide { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(40px, 6vw, 72px); border-top: 1px solid rgba(255,255,255,.07); }
.dl-guide-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.dl-guide h2 { margin: 0; font-size: clamp(34px, 5vw, 60px); line-height: 0.95; letter-spacing: -0.045em; font-weight: 700; text-transform: uppercase; }
.dl-guide-head p { color: var(--muted); margin: 16px 0 0; font-size: 16px; }
.dl-qas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 44px); }
.dl-qa { padding: 22px 0 26px; border-top: 1px solid rgba(255,255,255,.09); }
.dl-qa h3 { margin: 0 0 10px; font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.dl-qa p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.dl-qa-link { color: var(--lime); text-decoration: none; white-space: nowrap; font-weight: 500; }
.dl-qa-link::after { content: " \2192"; }
.dl-qa-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.dl-chart { margin-top: clamp(32px, 5vw, 56px); scroll-margin-top: 90px; }
.dl-chart h3 { margin: 0 0 16px; font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -0.02em; font-weight: 700; }
.dl-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: var(--surface); }
.dl-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.dl-table caption { caption-side: bottom; text-align: left; padding: 14px 18px; color: var(--faint); font-size: 13px; border-top: 1px solid rgba(255,255,255,.07); }
.dl-table th, .dl-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.06); font-variant-numeric: tabular-nums; }
.dl-table thead th { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; background: var(--surface-2); }
.dl-table tbody th { color: var(--text); font-weight: 600; }
.dl-table td { color: var(--muted); }
.dl-table tbody tr:last-child th, .dl-table tbody tr:last-child td { border-bottom: 0; }
.dl-table tbody tr:hover td, .dl-table tbody tr:hover th { background: rgba(255,255,255,.025); }
@media (max-width: 1100px) { .dl-qas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .dl-qas { grid-template-columns: 1fr; }
  .dl-qa { padding: 18px 0 20px; }
  .dl-table th, .dl-table td { padding: 11px 14px; font-size: 14px; }
  .dl-table tbody th, .dl-table thead th:first-child { position: sticky; left: 0; background: var(--surface-2); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   LIGHT THEME (cream). Overrides the dark tokens above. Lime stays a
   fill colour (buttons, chips, dots); text that used to be lime is
   now black with a lime highlighter so it stays readable on cream.
===================================================================== */
:root {
  --bg: #f7f6ee;
  --surface: #ffffff;
  --surface-2: #f1efe5;
  --surface-3: #e7e5d8;
  --line: rgba(17, 17, 17, 0.12);
  --line-2: rgba(17, 17, 17, 0.22);
  --text: #111111;
  --muted: #55554f;
  --faint: #76756e;
  --lime-soft: rgba(215, 242, 56, 0.35);
  --warn: #8a5a00;
  --danger: #c0392b;
  --ink: #111111;
}
:focus-visible { outline-color: #111; }
.dl-top { background: rgba(247, 246, 238, 0.9); border-bottom: 1px solid var(--line-2); }
.dl-lang:hover { color: var(--ink); border-color: var(--ink); }

/* lime text becomes a highlighter mark */
.dl-hero h1 .dl-lime, .dl-real h2 span {
  color: var(--ink); background: linear-gradient(transparent 58%, var(--lime) 58%, var(--lime) 92%, transparent 92%);
  padding: 0 0.04em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.dl-qa-link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.dl-qa-link:hover { text-decoration-color: var(--ink); }

/* buttons */
.dl-btn { border-color: var(--line-2); background: var(--surface); }
.dl-btn:hover { border-color: var(--ink); }
.dl-btn-lime { background: var(--lime); color: var(--ink); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.dl-btn-lime:hover { background: #e3ff55; border-color: var(--ink); }
.dl-ur, .dl-icon { color: #33332f; }
.dl-ur:hover:not(:disabled), .dl-icon:hover:not(:disabled) { background: var(--surface-3); color: var(--ink); }
.dl-icon[aria-pressed="true"] { background: var(--lime); color: var(--ink); }

/* selected states: black with white text instead of near-white on dark */
.dl-tabs { background: var(--surface); border-color: var(--line-2); }
.dl-tabs button[aria-selected="true"],
.dl-tools button[aria-checked="true"],
.dl-formats button[aria-checked="true"] { background: var(--ink); color: #fff; }
.dl-chip { background: var(--surface); }
.dl-chip:hover { border-color: var(--ink); }
.dl-chip[aria-checked="true"], .dl-size-pill.is-rec { color: var(--ink); border-color: var(--ink); }
.dl-chip-n { background: rgba(17,17,17,0.08); }
.dl-deck[aria-checked="true"], .dl-stamp[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.dl-color { border-color: rgba(17,17,17,0.25); }
.dl-color[aria-checked="true"] { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink); }
.dl-switch input:checked { border-color: var(--ink); }
.dl-tip { border-left-color: var(--ink); }
.dl-product:hover { border-color: var(--ink); }

/* the stage: a soft cream studio backdrop */
.dl-stage { background: radial-gradient(ellipse 70% 60% at 50% 42%, #ffffff 0%, #f3f1e6 60%, #e9e7da 100%); border: 1px solid var(--line-2); }
.dl-stage-tools { background: rgba(255,255,255,0.88); border-color: var(--line-2); }
.dl-scroll { scrollbar-color: #c9c7bb transparent; }
.dl-board-wrap { filter: drop-shadow(0 22px 20px rgba(0,0,0,0.22)) drop-shadow(0 3px 5px rgba(0,0,0,0.18)); }
.dl-leaders polyline { stroke: rgba(17,17,17,0.35); }
.dl-leaders circle { fill: rgba(17,17,17,0.7); }
.dl-leaders .is-active { stroke: var(--ink); }
.dl-leaders circle.is-active { fill: var(--ink); }
.dl-hot { background: #fff; color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.dl-hot.is-active { background: var(--lime); }

/* dialog, preview, toast */
.dl-dialog::backdrop { background: rgba(17,17,17,0.45); }
.dl-preview { background-color: #f1efe5; background-image: linear-gradient(45deg, #e7e5d8 25%, transparent 25%, transparent 75%, #e7e5d8 75%), linear-gradient(45deg, #e7e5d8 25%, transparent 25%, transparent 75%, #e7e5d8 75%); }
.dl-toast { background: var(--ink); color: #fff; box-shadow: 0 12px 32px rgba(0,0,0,0.25); }
.dl-toast button { background: var(--lime); color: var(--ink); }

/* guide section + table */
.dl-guide { border-top-color: var(--line); }
.dl-qa { border-top-color: var(--line); }
.dl-table-wrap { border-color: var(--line-2); }
.dl-table caption { border-top-color: var(--line); }
.dl-table th, .dl-table td { border-bottom-color: var(--line); }
.dl-table tbody tr:hover td, .dl-table tbody tr:hover th { background: rgba(17,17,17,0.03); }
.dl-part-card > p { color: #2b2b28; }
.dl-fit-status.is-match b::before { box-shadow: 0 0 0 1.5px var(--ink); }
