/* Static copy of packages/ui/src/customizer.css for the static customizer pages
   (/top-bar, /generator). Keep in sync: tests/unit/ee-customizer-style.test.ts checks it. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("/customizer/fonts/archivo-latin-wdth-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/customizer/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* EE customizer: the one look every customizer shares (G-code generator, generator beta,
   top bar customizer). Base = the generator beta restyle Wouter approved on 27 Nov 2026
   (cool black, one grey, square, no cards / number circles / pills, orange only for what you
   click or what is active). Round 2 (27 Nov, "it should not look like ai slop") takes the form
   rules from his Eyeball Engineering design system instead of generic dark-UI habits:
   - titles, labels, nav and buttons: Archivo expanded, uppercase, tracked (not heavy black type)
   - specs and numbers: small tracked mono readouts; sections carry a mono index (01, 02 ...)
   - the active choice is marked by an orange key line, never a filled pill
   - ONE framed element per view (the stage), framed with corner ticks
   - the sketch layer: a drafted dimension line with the real value, one orange line

   Use: put class "ee-customizer" on the customizer's root. The tokens below are then in scope;
   the cz-* classes are for pages that are not React (static pages copy this file). */

.ee-customizer {
  --cz-bg: #0B0F15;
  --cz-stage: #0E131B;
  --cz-ink: #E8EDF2;
  --cz-muted: #8C949E;
  --cz-line: #222833;
  --cz-grey: #4D4C48;
  --cz-tick: #6B717A;
  --cz-accent: #F2601E;
  --cz-accent-hot: #FF7535;
  --cz-accent-ink: #0B0F15;
  --cz-bad: #F2601E;
  --cz-font: "Archivo", "Archivo Fallback", "Helvetica Neue", system-ui, sans-serif;
  --cz-mono: "IBM Plex Mono", "IBM Plex Mono Fallback", ui-monospace, Menlo, monospace;
  --cz-side: 360px;

  background: var(--cz-bg);
  color: var(--cz-ink);
  font-family: var(--cz-font);
  font-size: 14px;
  line-height: 1.45;
  color-scheme: dark;
}
.ee-customizer *, .ee-customizer *::before, .ee-customizer *::after { box-sizing: border-box; }
.ee-customizer :focus-visible { outline: 2px solid var(--cz-accent); outline-offset: 2px; }

/* layout: settings column left, live stage right; stage on top on a phone */
.cz-wrap { display: grid; grid-template-columns: var(--cz-side) minmax(0, 1fr); min-height: 100vh; }
.cz-side { padding: 30px 32px 24px; border-right: 1px solid var(--cz-line); display: flex; flex-direction: column; min-width: 0; }
.cz-stage { position: relative; background: var(--cz-stage); min-height: 420px; overflow: hidden; }
@media (max-width: 760px) {
  .cz-wrap { grid-template-columns: minmax(0, 1fr); }
  .cz-side { border-right: 0; padding: 22px 16px; }
  .cz-stage { order: -1; min-height: 360px; }
}

/* heading: the product name in the title style, the printer beside it as a readout */
.cz-title { margin: 0; font: 600 26px/1 var(--cz-font); font-stretch: 125%; letter-spacing: 0.04em; text-transform: uppercase; }
.cz-for { display: block; margin-top: 10px; font: 500 11px var(--cz-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--cz-muted); }
.cz-tag { display: inline-block; vertical-align: top; margin: 2px 0 0 8px; padding: 2px 6px; border: 1px solid var(--cz-accent); color: var(--cz-accent); font: 500 10px var(--cz-mono); letter-spacing: 0.16em; }
.cz-lede { margin: 10px 0 0; color: var(--cz-muted); font-size: 13px; }
.cz-head { padding-bottom: 26px; }

/* a section: hairline on top, mono index + tracked label */
.cz-section { border-top: 1px solid var(--cz-line); padding: 16px 0 18px; }
.cz-label { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font: 600 11px var(--cz-font); font-stretch: 125%; text-transform: uppercase; letter-spacing: 0.16em; color: var(--cz-muted); }
.cz-ix { font: 500 11px var(--cz-mono); letter-spacing: 0.06em; color: var(--cz-accent); }
.cz-note { margin: 8px 0 0; color: var(--cz-muted); font-size: 12.5px; }
.cz-note:empty { display: none; }

/* a row: label left, choices right (spec sheet), used where choices are short */
.cz-row { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 11px 0; border-top: 1px solid var(--cz-line); }
.cz-row > .cz-label { margin: 0; }
.cz-row + .cz-row { margin-top: 0; }

/* choices: plain words; the chosen one in full ink with an orange key line under it */
.cz-seg { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.cz-seg button {
  appearance: none; border: 0; background: none; padding: 3px 0 5px; cursor: pointer;
  color: var(--cz-muted); font: 500 14px var(--cz-font); border-bottom: 2px solid transparent;
}
.cz-seg button:hover { color: var(--cz-ink); }
.cz-seg button[aria-pressed="true"] { color: var(--cz-ink); border-bottom-color: var(--cz-accent); }
.cz-seg button:disabled { opacity: 0.35; cursor: default; }

/* inputs: underline only */
.ee-customizer .cz-input, .ee-customizer .cz-select {
  width: 100%; border: 0; border-bottom: 1px solid var(--cz-tick); border-radius: 0; background: transparent;
  color: var(--cz-ink); font: 500 15px var(--cz-font); padding: 6px 0; outline: none;
}
.ee-customizer .cz-input { font: 500 14px var(--cz-mono); text-align: right; font-variant-numeric: tabular-nums; }
.ee-customizer .cz-input:focus, .ee-customizer .cz-select:focus { border-bottom-color: var(--cz-accent); }

/* buttons: outline; the one main action is orange, full width, title style */
.cz-btn { appearance: none; border: 1px solid var(--cz-tick); border-radius: 0; background: transparent; color: var(--cz-ink); font: 600 11px var(--cz-font); font-stretch: 125%; letter-spacing: 0.14em; text-transform: uppercase; padding: 9px 12px; cursor: pointer; }
.cz-btn:hover { border-color: var(--cz-ink); }
.cz-primary {
  display: block; width: 100%; padding: 16px; border: 0; border-radius: 0; background: var(--cz-accent); color: var(--cz-accent-ink);
  font: 600 13px var(--cz-font); font-stretch: 125%; text-transform: uppercase; letter-spacing: 0.16em; text-align: center; text-decoration: none; cursor: pointer;
}
.cz-primary:hover { background: var(--cz-accent-hot); }
.cz-link { margin-top: 6px; border: 0; background: none; padding: 6px 0; color: var(--cz-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; font-size: 13px; }
.cz-link:hover { color: var(--cz-ink); }

/* lists (print list, checks): a part per row, quantity as a readout */
.cz-list { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.cz-list li { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--cz-line); }
.cz-list li:last-child { border-bottom: 0; }
.cz-list li b { margin-left: auto; font: 500 11px var(--cz-mono); letter-spacing: 0.08em; color: var(--cz-muted); white-space: nowrap; }

/* the stage: the one framed thing on the page, corner ticks like a viewfinder */
.cz-frame::after {
  content: ""; position: absolute; inset: 18px; pointer-events: none; z-index: 1;
  --t: var(--cz-tick);
  background:
    linear-gradient(var(--t), var(--t)) left top / 12px 1px no-repeat,
    linear-gradient(var(--t), var(--t)) left top / 1px 12px no-repeat,
    linear-gradient(var(--t), var(--t)) right top / 12px 1px no-repeat,
    linear-gradient(var(--t), var(--t)) right top / 1px 12px no-repeat,
    linear-gradient(var(--t), var(--t)) left bottom / 12px 1px no-repeat,
    linear-gradient(var(--t), var(--t)) left bottom / 1px 12px no-repeat,
    linear-gradient(var(--t), var(--t)) right bottom / 12px 1px no-repeat,
    linear-gradient(var(--t), var(--t)) right bottom / 1px 12px no-repeat;
}
.cz-readout { position: absolute; left: 36px; top: 34px; z-index: 2; font: 500 11px var(--cz-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--cz-ink); }
.cz-readout small { display: block; margin-top: 6px; font: inherit; color: var(--cz-muted); }
.cz-views { position: absolute; right: 30px; top: 26px; z-index: 2; display: flex; flex-wrap: wrap; justify-content: flex-end; }
.cz-views button { appearance: none; border: 0; border-bottom: 2px solid transparent; background: none; padding: 6px 0 4px; margin-left: 18px; color: var(--cz-muted); font: 600 10.5px var(--cz-font); font-stretch: 125%; text-transform: uppercase; letter-spacing: 0.16em; cursor: pointer; }
.cz-views button:hover { color: var(--cz-ink); }
.cz-views button[aria-pressed="true"] { color: var(--cz-ink); border-bottom-color: var(--cz-accent); }
@media (max-width: 760px) { .cz-views { top: auto; bottom: 26px; left: 30px; right: 30px; justify-content: space-between; } .cz-views button { margin-left: 0; } }

/* the sketch layer: a drafted dimension (grey extension lines overshooting, one orange line,
   the real value as a readout). Drawn by the page in an absolutely placed svg.cz-sketch. */
.cz-sketch { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.cz-sketch .x { stroke: var(--cz-tick); stroke-width: 1; fill: none; }
.cz-sketch .d { stroke: var(--cz-accent); stroke-width: 1.25; fill: none; }
.cz-sketch text { font: 500 11px var(--cz-mono); letter-spacing: 0.12em; fill: var(--cz-ink); paint-order: stroke; stroke: var(--cz-stage); stroke-width: 4px; }

/* React customizers inside the site shells use the site tokens; inside .ee-customizer those
   tokens take the customizer's values, so shared components (buttons, notes, tips) follow. */
.ee-customizer {
  --bg: var(--cz-bg);
  --bg-sunken: var(--cz-bg);
  --surface: var(--cz-bg);
  --surface-2: var(--cz-bg);
  --line: var(--cz-line);
  --line-strong: var(--cz-tick);
  --ink: var(--cz-ink);
  --ink-dim: var(--cz-muted);
  --ink-faint: var(--cz-muted);
  --accent: var(--cz-accent);
  --accent-dim: var(--cz-accent-hot);
  --accent-ink: var(--cz-accent-ink);
  --danger: var(--cz-bad);
  --warn: var(--cz-muted);
  --border: 1px solid var(--cz-line);
  --border-strong: 1px solid var(--cz-tick);
  --border-dashed: 1px solid var(--cz-line);
  --radius-1: 0;
  --radius-2: 0;
  --radius-3: 0;
  --radius-pill: 0;
  --focus-ring: 0 0 0 2px var(--cz-accent);
}
