/* Generator specimen embed — generated from tools/specimen.html by
   scratchpad/transform-css.mjs. Edit the tool page, re-run the
   transform; hand-edits here get overwritten. Scoped under #spx;
   .nx-picker stays global (the picker appends to document.body). */
#spx {
    --bg: #070707;
    --panel: #141414;
    --line: #1e1e1e;
    --line-2: #262626;
    --line-3: #333333;
    --line-4: #4a4a4a;
    --text: #e8e8e8;
    --label: #b4b4b4;
    --dim: #8a8a8a;
    --faint: #565656;
    --green: #00ff41;
    --ctl-h: 22px;
    /* One uniform control column, like the editor inspector. */
    --ctl-w: 180px;
}
[hidden] { display: none !important;
}
/* ---- top bar ---- */
/* ---- title + generator index ---- */
#spx .icw { display: flex; flex: 0 0 auto;
}
/* The index IS the switcher: every generator listed, click to swap
     the whole specimen below. Active row lights up, number goes green. */
#spx .gen-index {
    display: flex; flex-direction: column; gap: 2px;
    margin-top: 10px; flex: 0 0 auto;
}
#spx .gi-row {
    display: flex; align-items: center; justify-content: flex-end;
    gap: 10px;
    background: transparent; border: 0; padding: 6px 0;
    cursor: pointer; font-family: inherit;
}
#spx .gi-num {
    font-size: 10px; letter-spacing: 0.12em;
    color: var(--faint);
    font-feature-settings: "tnum" 1;
}
#spx .gi-ic { display: flex; opacity: 0.5;
}
#spx .gi-ic svg { width: 12px; height: 12px; display: block;
}
#spx .gi-name {
    font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
    color: var(--dim);
}
#spx .gi-row:hover .gi-name { color: var(--text);
}
#spx .gi-row:hover .gi-ic { opacity: 1;
}
#spx .gi-row.is-active .gi-name { color: var(--text);
}
#spx .gi-row.is-active .gi-num { color: var(--text);
}
#spx .gi-row.is-active .gi-ic { opacity: 1;
}
/* ---- editor window: image left, inspector right ---- */
/* ONE fixed size for every generator — the window never resizes on
     switch. The stage cover-crops its media to fit; inspectors taller
     than the window scroll inside it. */
#spx .spx-window {
    display: grid;
    grid-template-columns: 1fr 360px;
    height: 1084px;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
#spx .stage {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
    touch-action: none;
    cursor: ew-resize;
    user-select: none;
}
#spx .stage img, #spx .stage canvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
}
#spx .layer-src { z-index: 2;
}
#spx .layer-out { z-index: 1;
}
#spx .divider {
    position: absolute; top: 0; bottom: 0; z-index: 3;
    width: 2px; background: #f2f2f2;
    transform: translateX(-1px);
    pointer-events: none;
}
#spx .grip {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 30px; height: 30px;
    background: #f2f2f2; color: #000;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
}
#spx .viewbtn {
    position: absolute; right: 12px; bottom: 12px; z-index: 5;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid var(--line-3);
    color: var(--label);
    cursor: pointer;
    padding: 0;
}
#spx .viewbtn:hover { color: var(--text); border-color: var(--line-4); background: rgba(0, 0, 0, 0.85);
}
/* ---- inspector shell ---- */
#spx .inspector {
    background: var(--panel);
    padding: 0 0 16px;
    font-size: 13px;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--line-3) var(--panel);
}
#spx .inspector::-webkit-scrollbar { width: 8px;
}
#spx .inspector::-webkit-scrollbar-track { background: var(--panel);
}
#spx .inspector::-webkit-scrollbar-thumb {
    background: var(--line-3);
    border: 2px solid var(--panel);
}
#spx .inspector::-webkit-scrollbar-thumb:hover { background: var(--line-4);
}
#spx .ins-title {
    display: flex; align-items: center; gap: 9px;
    padding: 16px 18px 12px;
    font-size: 16px; font-weight: 600;
}
#spx .ins-title .icw svg { width: 16px; height: 16px; display: block;
}
#spx .scale-block {
    padding: 2px 18px 18px;
    border-bottom: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 7px;
}
#spx .scale-block .toprow {
    display: flex; align-items: center; justify-content: space-between;
}
#spx .scale-block .k {
    font-size: 10px; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--faint);
}
#spx .scale-block .v { font-size: 11px; color: var(--faint); font-weight: 500;
}
#spx .scale-block .v.is-live { color: #4ade80;
}
#spx .grp {
    padding: 14px 18px 8px;
    border-top: 1px solid var(--line);
}
#spx .grp:first-of-type { border-top: none;
}
#spx .grp-h {
    display: flex; align-items: center; justify-content: space-between;
    color: var(--dim); font-size: 13px; font-weight: 500;
    padding-bottom: 8px;
}
#spx .grp-h::after {
    content: "";
    width: 7px; height: 7px;
    border-right: 1.5px solid var(--faint);
    border-bottom: 1.5px solid var(--faint);
    transform: rotate(45deg) translateY(-2px);
}
#spx .prow {
    display: flex; align-items: center; gap: 10px;
    min-height: 30px;
}
#spx .prow .lbl { flex: 1; color: var(--label); font-weight: 400;
}
#spx .prow .ctl {
    flex: 0 0 var(--ctl-w);
    max-width: var(--ctl-w);
    min-width: 0;
    display: flex; align-items: center; gap: 4px;
}
/* =========================================================
     Inspector controls — replicas of the editor's nx-* controls
     ========================================================= */
#spx .nx-slider {
    appearance: none;
    -webkit-appearance: none;
    flex: 1;
    min-width: 0;
    height: 16px;
    background: transparent;
    cursor: pointer;
}
#spx .nx-slider::-webkit-slider-runnable-track {
    height: 2px;
    background: linear-gradient(
      to right,
      var(--text) 0%,
      var(--text) var(--fill, 50%),
      var(--line-2) var(--fill, 50%),
      var(--line-2) 100%
    );
}
#spx .nx-slider::-moz-range-track { height: 2px; background: var(--line-2);
}
#spx .nx-slider::-moz-range-progress { height: 2px; background: var(--text);
}
#spx .nx-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 10px; height: 10px;
    background: var(--text);
    margin-top: -4px;
    border: 0;
    box-shadow: 0 0 0 1px var(--bg);
    opacity: 0;
    transition: opacity 100ms linear, background 100ms linear;
}
#spx .nx-slider::-moz-range-thumb {
    width: 10px; height: 10px;
    background: var(--text);
    border: 0; border-radius: 0;
    opacity: 0;
    transition: opacity 100ms linear, background 100ms linear;
}
#spx .nx-slider:hover::-webkit-slider-thumb, #spx .nx-slider:active::-webkit-slider-thumb, #spx .nx-slider:focus-visible::-webkit-slider-thumb { background: #fff; opacity: 1;
}
#spx .nx-slider:hover::-moz-range-thumb, #spx .nx-slider:active::-moz-range-thumb, #spx .nx-slider:focus-visible::-moz-range-thumb { background: #fff; opacity: 1;
}
#spx .nx-numfield {
    display: flex; align-items: center;
    background: transparent;
    border: 1px solid transparent;
    height: var(--ctl-h);
    padding: 0 4px;
    min-width: 40px;
    cursor: text;
    transition: border-color 80ms ease, background 80ms ease;
}
#spx .nx-numfield:hover {
    background: rgba(255, 255, 255, 0.025);
    border-color: var(--line-2);
}
#spx .nx-numfield:focus-within {
    background: rgba(255, 255, 255, 0.035);
    border-color: var(--line-3);
}
#spx .nx-numfield input {
    width: 100%;
    min-width: 0;
    background: transparent;
    border: 0; outline: 0;
    text-align: right;
    font-family: "Inter", sans-serif;
    font-feature-settings: "tnum" 1;
    font-size: 11px;
    color: var(--text);
    cursor: text;
}
#spx .nx-numfield .unit {
    font-size: 10px; color: var(--faint); margin-left: 2px;
}
#spx .nx-numfield.compact { width: 48px; min-width: 42px; max-width: 52px; flex: 0 0 auto;
}
#spx .nx-numfield.pos { width: 56px; min-width: 50px; max-width: 56px; flex: 0 0 auto;
}
#spx .nx-toggle {
    position: relative;
    width: 24px; height: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line-2);
    cursor: pointer;
    transition: background 100ms ease;
    flex-shrink: 0;
    display: inline-block;
    padding: 0;
}
#spx .nx-toggle::after {
    content: "";
    position: absolute;
    width: 8px; height: 8px;
    background: #9a9a9a;
    top: 50%; left: 2px;
    transform: translateY(-50%);
    transition: left 120ms ease, background 120ms ease;
}
#spx .nx-toggle.is-on { background: #f2f2f2; border-color: #f2f2f2;
}
#spx .nx-toggle.is-on::after { left: 13px; background: #0a0a0a;
}
#spx .nx-selectwrap { flex: 1; position: relative; min-width: 0;
}
#spx .nx-select {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--ctl-h);
    padding: 0 6px 0 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line-2);
    font-size: 11px;
    cursor: pointer;
    color: var(--text);
    white-space: nowrap; overflow: hidden;
}
#spx .nx-select:hover {
    border-color: var(--line-3);
    background: rgba(255, 255, 255, 0.08);
}
#spx .nx-select .caret { color: var(--dim); margin-left: 6px; flex: 0 0 auto;
}
#spx .nx-options {
    position: absolute;
    top: calc(100% + 2px); left: 0; right: 0;
    background: #161616;
    border: 1px solid var(--line-3);
    padding: 2px;
    z-index: 30;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    max-height: 260px;
    overflow-y: auto;
}
#spx .nx-options div {
    padding: 5px 8px;
    font-size: 11px;
    letter-spacing: 0.04em;
    cursor: pointer;
    white-space: nowrap;
}
#spx .nx-options div:hover { background: #1d1d1d;
}
#spx .nx-options div.is-cur { background: #222;
}
#spx .nx-colorfield {
    flex: 1; min-width: 0;
    display: flex; align-items: center; gap: 6px;
    height: var(--ctl-h);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line-2);
    padding: 0 6px 0 3px;
    font-size: 11px;
}
#spx .nx-colorfield:hover {
    border-color: var(--line-3);
    background: rgba(255, 255, 255, 0.08);
}
#spx .nx-colorfield .swatch {
    width: 16px; height: 16px;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}
#spx .nx-colorfield input {
    flex: 1; min-width: 0;
    background: transparent;
    border: 0; outline: 0;
    font-family: "Inter", sans-serif;
    font-feature-settings: "tnum" 1;
    font-size: 11px;
    color: var(--text);
    text-transform: uppercase;
}
#spx .nx-textfield {
    flex: 1; min-width: 0;
    display: flex; align-items: center;
    height: var(--ctl-h);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line-2);
    padding: 0 6px;
}
#spx .nx-textfield:hover { border-color: var(--line-3); background: rgba(255, 255, 255, 0.08);
}
#spx .nx-textfield:focus-within { border-color: var(--line-3); background: rgba(255, 255, 255, 0.06);
}
#spx .nx-textfield input {
    flex: 1; min-width: 0;
    background: transparent;
    border: 0; outline: 0;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    color: var(--text);
}
/* ---- gradient field (editor GradientField replica) ---- */
#spx .nx-gradient { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0;
}
#spx .nx-gradchips { position: relative; height: 14px; user-select: none; margin-bottom: -2px;
}
#spx .nx-gradchip {
    position: absolute; top: 0;
    width: 12px; height: 12px;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55);
    padding: 0;
    cursor: ew-resize;
    z-index: 1;
}
#spx .nx-gradchip.is-active {
    border-color: var(--line-4);
    box-shadow: 0 0 0 1px var(--bg), 0 0 0 2px var(--line-4);
    z-index: 2;
}
#spx .nx-gradstrip {
    position: relative;
    height: 24px;
    cursor: copy;
    background-color: #1d1d1d;
}
#spx .nx-gradrow { display: flex; align-items: center; gap: 4px; position: relative;
}
#spx .nx-gradhexbtn {
    flex: 1; min-width: 0;
    display: flex; align-items: center; gap: 6px;
    height: var(--ctl-h);
    padding: 0 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line-2);
    cursor: pointer;
    color: var(--text);
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
#spx .nx-gradhexbtn:hover {
    border-color: var(--line-3);
    background: rgba(255, 255, 255, 0.08);
}
#spx .nx-gradhexbtn .sw {
    width: 14px; height: 14px; flex: 0 0 auto;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45);
}
#spx .nx-gradremove {
    width: 22px; height: var(--ctl-h);
    flex: 0 0 auto;
    background: transparent;
    border: 1px solid transparent;
    color: var(--label);
    font-size: 12px; line-height: 1;
    cursor: pointer;
}
#spx .nx-gradremove:hover { border-color: var(--line-2); color: var(--text);
}
#spx .nx-gradremove:disabled { opacity: 0.35; cursor: not-allowed;
}
/* ---- color picker popover (editor ColorPicker replica) ---- */
.nx-picker {
    position: fixed;
    z-index: 9999;
    width: 220px;
    padding: 10px;
    background: #161616;
    border: 1px solid var(--line-3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    display: flex; flex-direction: column; gap: 8px;
    user-select: none;
}
.nx-picker .sv {
    position: relative;
    width: 100%; height: 160px;
    border: 1px solid var(--line-2);
    cursor: crosshair;
    touch-action: none;
}
.nx-picker .sv .cur {
    position: absolute;
    width: 12px; height: 12px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55);
    pointer-events: none;
}
.nx-picker .hue {
    position: relative;
    width: 100%; height: 12px;
    border: 1px solid var(--line-2);
    background: linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);
    cursor: ew-resize;
    touch-action: none;
}
.nx-picker .hue .cur {
    position: absolute;
    top: -2px;
    width: 6px; height: 16px;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.7);
    pointer-events: none;
}
.nx-picker .hexrow { display: flex; align-items: center; gap: 6px;
}
.nx-picker .hexfield {
    flex: 1; min-width: 0;
    display: flex; align-items: center;
    height: var(--ctl-h);
    padding: 0 6px;
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, 0.03);
}
.nx-picker .hexfield .hash { color: var(--faint); font-size: 10px; margin-right: 4px;
}
.nx-picker .hexfield input {
    flex: 1; min-width: 0;
    background: transparent;
    border: 0; outline: 0;
    font-family: "Inter", sans-serif;
    font-feature-settings: "tnum" 1;
    font-size: 11px;
    color: var(--text);
    text-transform: uppercase;
}
.nx-picker .eyebtn {
    width: var(--ctl-h); height: var(--ctl-h);
    flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line-2);
    color: var(--label);
    cursor: pointer;
}
.nx-picker .eyebtn:hover { border-color: var(--line-3); color: var(--text);
}
.nx-picker .recent { display: flex; gap: 4px; justify-content: space-between;
}
.nx-picker .recent span, .nx-picker .recent button {
    width: 18px; height: 18px;
    flex: 0 0 auto;
    border: 1px solid var(--line-2);
    background: #1d1d1d;
    padding: 0;
}
.nx-picker .recent button { border-color: var(--line-3); cursor: pointer;
}
/* ---- footer ---- */
@media (max-width: 900px) {
  #spx .gen-index { flex-direction: row; flex-wrap: wrap; gap: 4px 18px; margin-top: 0;
  }
  #spx .gi-row { justify-content: flex-start;
  }
  #spx .spx-window { grid-template-columns: 1fr; height: auto;
  }
  #spx .stage { aspect-ratio: 3 / 4; height: auto;
  }
  #spx .inspector { height: auto; overflow-y: visible;
  }
}

/* ---- embed overrides (landing context) ----
   Founder sketch 2026-08-13: BIG generator labels down the LEFT (icon
   left of the name, the selected one grows), the window on the RIGHT.
   On mobile the labels become a horizontal switch bar above the
   window. */
/* Text color + tnum came from the tool page's body rule, dropped in
   the transform; the embed re-declares them on its root. */
#spx {
  color: var(--text);
  font-feature-settings: "tnum" 1;
  font-size: 16px;
  display: grid;
  grid-template-columns: minmax(250px, 330px) 1fr;
  gap: 40px;
  align-items: start;
}
/* The tool page's wrap capped content at 1176px, which is what made
   the stage a 3:4 portrait (815x1084). The landing wrap is 1840 —
   uncapped, the stage stretches square (founder-caught). Pin the
   width and push the window to the wrap's RIGHT edge so it lines up
   with the pricing box below (founder sketch); the rail keeps the
   left edge. */
#spx .spx-window { width: 100%; max-width: 1176px; justify-self: end; }
/* Rail: one shared left edge (fixed icon slot so every name starts at
   the same x), a moving indicator line on the far left (positioned by
   the loader script, .spx-indic), selected row grows. */
#spx .gen-index { position: relative; gap: 18px; margin-top: 6px; padding-left: 30px; }
#spx .gi-row {
  justify-content: flex-start;
  gap: 16px;
  padding: 4px 0;
  font-size: 34px;
  transition: font-size 150ms ease;
}
#spx .gi-row.is-active { font-size: 58px; }
/* Founder: no 01/02 numbers on the labels. */
#spx .gi-num { display: none; }
#spx .gi-ic { flex: 0 0 38px; justify-content: flex-start; }
#spx .gi-ic svg { width: 0.62em; height: 0.62em; }
#spx .gi-name { font-size: inherit; font-weight: 700; letter-spacing: -0.02em; }
/* No CSS transition here: the loader tracks the animating rows with
   rAF, so the line rides the label growth 1:1. A transition on top of
   that double-eases and lands on stale mid-animation geometry. */
#spx .spx-indic {
  position: absolute;
  left: 0;
  width: 3px;
  background: var(--text);
}
/* JS-target ids from the tool page's hero/footer, kept but invisible. */
#spx .spx-meta { display: none; }
@media (max-width: 900px) {
  #spx { display: block; }
  /* Top bar: one row, side-scrolls when labels overflow. */
  #spx .gen-index {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 0 24px;
    margin: 0 0 14px;
    padding-bottom: 6px;
  }
  #spx .gen-index::-webkit-scrollbar { display: none; }
  #spx .gen-index { padding-left: 0; }
  #spx .gi-row { white-space: nowrap; flex: 0 0 auto; font-size: 17px; gap: 8px; }
  #spx .gi-row.is-active { font-size: 22px; }
  #spx .gi-ic { flex-basis: auto; }
  #spx .spx-indic { display: none; }
  #spx .spx-window { height: auto; }
}
