/* POD Hut studio.
   Light press-room chrome. The garment is the product; the UI is furniture.
   Process colour is sampled from the live podhut.com logo:
   C #00ADEE · M #EB008B · Y #FFF100 · K #1A1A1A. Magenta is the only UI accent. */

:root {
  --bg: #ecebe7;
  --surface: #ffffff;
  --surface-2: #f6f5f2;
  --surface-3: #eceae4;
  --border: #e2e0d8;
  --border-hi: #cfcbc0;
  --text: #161616;
  --muted: #5c5c64;
  --faint: #8a8a92;

  --magenta: #eb008b;
  --deep: #c4006f;
  --deep-2: #eb008b;
  --cyan: #00adee;
  --yellow: #fff100;

  --ok: #1a8f6a;
  --warn: #c47a12;
  --bad: #d1244a;

  --canvas: #e8e7e2;
  --canvas-2: #deddd7;
  --ink: #161616;

  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --display: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;

  --r: 10px;
  --r-lg: 14px;
  --nav-h: 56px;
  --shadow: 0 18px 40px -20px rgb(22 22 22 / 0.28);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--magenta); outline-offset: 2px;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--surface-2); }
::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ── demo chrome ─────────────────────────────────────────── */
.demobar {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; gap: 18px;
  padding: 0 18px; height: var(--nav-h);
  background: #fff; border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.demobar .mark {
  display: flex; align-items: center; gap: 10px;
  flex: 0 0 auto;
  max-height: var(--nav-h);
  overflow: hidden;
  font-weight: 600; font-size: 14px;
  letter-spacing: -0.02em; white-space: nowrap; color: var(--ink);
}
.demobar .mark img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 120px;
  max-height: 36px;
  object-fit: contain;
}
.demobar .mark span {
  color: var(--muted); font-weight: 500; font-size: 13px;
  padding-left: 10px; border-left: 1px solid var(--border);
}

.demobar nav { display: flex; gap: 4px; overflow-x: auto; flex: 1; }
.demobar nav a {
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  font-size: 13px; font-weight: 500; color: var(--muted);
}
.demobar nav a:hover { color: var(--text); background: var(--surface-2); }
.demobar nav a.on {
  color: var(--magenta); background: color-mix(in srgb, var(--magenta) 10%, #fff);
}
.demobar .tag {
  font-size: 11.5px; color: var(--faint);
  white-space: nowrap;
}

/* ── layout ──────────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: 216px 1fr; min-height: calc(100vh - var(--nav-h)); }
.shell.no-side { grid-template-columns: 1fr; }

.side {
  border-right: 1px solid var(--border); background: var(--surface);
  padding: 18px 12px; display: flex; flex-direction: column; gap: 22px;
}
.side h4 {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--faint); margin: 0 8px 8px;
}
.side a, .side button.navitem {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 7px 10px; border-radius: 8px; font-size: 13px;
  color: var(--muted); transition: 0.14s; text-align: left;
}
.side a:hover, .side button.navitem:hover { background: var(--surface-2); color: var(--text); }
.side a.on, .side button.navitem.on {
  background: var(--surface-3); color: var(--text);
  box-shadow: inset 2px 0 0 var(--magenta);
}
.side .count {
  margin-left: auto; font-family: var(--mono); font-size: 10.5px;
  color: var(--faint); background: var(--surface-2);
  padding: 1px 6px; border-radius: 20px;
}

.main { padding: 24px 28px 60px; min-width: 0; }
.main.flush { padding: 0; }

.page-head { margin-bottom: 22px; }
.page-head h1 {
  font-family: var(--display); font-size: 24px; font-weight: 700;
  letter-spacing: -0.02em;
}
.page-head p { color: var(--muted); font-size: 13.5px; margin-top: 3px; }

/* ── primitives ──────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 18px;
}
.card h3 {
  font-size: 12px; font-family: var(--mono); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 14px;
}
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.row { display: flex; align-items: center; gap: 10px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.mt { margin-top: 16px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }

.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 14px 15px;
  border-left: 3px solid var(--border-hi);
}
.stat .v { font-family: var(--display); font-size: 23px; font-weight: 700; letter-spacing: -0.02em; }
.stat .k {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--faint); margin-top: 3px;
}
.stat.cy { border-left-color: var(--cyan); }
.stat.mg { border-left-color: var(--magenta); }
.stat.yl { border-left-color: var(--yellow); }
.stat.ok { border-left-color: var(--ok); }
.stat.warn { border-left-color: var(--warn); }
.stat.bad { border-left-color: var(--bad); }
.stat.bad .v { color: var(--bad); }
.stat.warn .v { color: var(--warn); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 20px;
  border: 1px solid var(--border-hi); color: var(--muted); white-space: nowrap;
}
.badge.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.badge.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.badge.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); background: color-mix(in srgb, var(--bad) 10%, transparent); }
.badge.mg { color: var(--magenta); border-color: color-mix(in srgb, var(--magenta) 45%, transparent); background: color-mix(in srgb, var(--magenta) 12%, transparent); }
.badge.cy { color: var(--cyan); border-color: color-mix(in srgb, var(--cyan) 45%, transparent); background: color-mix(in srgb, var(--cyan) 12%, transparent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px; border-radius: 9px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--border-hi); background: #fff;
  color: var(--text);
}
.btn:hover { border-color: var(--magenta); color: var(--magenta); }
.btn.primary {
  background: var(--magenta);
  border-color: var(--magenta); color: #fff; font-weight: 600;
}
.btn.primary:hover { filter: brightness(1.12); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 5px 11px; font-size: 12px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--faint); text-align: left;
  padding: 9px 10px; border-bottom: 1px solid var(--border); font-weight: 500;
}
tbody td { padding: 10px; border-bottom: 1px solid var(--surface-2); vertical-align: middle; }
tbody tr:hover { background: var(--surface-2); }
.tablewrap { overflow-x: auto; }

.bar { height: 7px; border-radius: 20px; background: var(--surface-3); overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--magenta)); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 5px 11px; border-radius: 20px; font-size: 12px;
  border: 1px solid var(--border); color: var(--muted); transition: 0.14s;
}
.chip:hover { border-color: var(--border-hi); color: var(--text); }
.chip.on { background: color-mix(in srgb, var(--magenta) 8%, #fff); color: var(--magenta); border-color: var(--magenta); }

.note {
  border-left: 2px solid var(--magenta); padding: 9px 13px;
  background: color-mix(in srgb, var(--magenta) 7%, transparent);
  border-radius: 0 8px 8px 0; font-size: 12.5px; color: var(--muted);
}
.note.warn { border-left-color: var(--warn); background: color-mix(in srgb, var(--warn) 8%, transparent); }
.note.bad { border-left-color: var(--bad); background: color-mix(in srgb, var(--bad) 8%, transparent); }
.note b { color: var(--text); font-weight: 600; }

/* ── STUDIO ──────────────────────────────────────────────── */
.studio { display: grid; grid-template-columns: 1fr minmax(300px, 360px); height: calc(100vh - var(--nav-h)); }

.stage {
  background:
    radial-gradient(1200px 600px at 50% 42%, #f7f6f2 0%, var(--canvas) 72%);
  position: relative; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.stage-inner {
  position: relative; width: min(72%, 560px);
  transform-origin: center center;
  transition: transform 0.12s ease;
}
.garment-svg { width: 100%; height: auto; filter: drop-shadow(0 28px 36px rgb(22 22 22 / 0.18)); }

.printbox {
  fill: none; stroke: #1b1b1f; stroke-width: 1.1; stroke-dasharray: 6 5;
  opacity: 0.45; pointer-events: none;
}
.printbox.hot { stroke: var(--magenta); opacity: 0.9; stroke-dasharray: none; }
.printbox.lc { stroke-dasharray: 3 3; stroke-width: 1; }
.printbox.lc.hot { stroke-dasharray: none; }
/* Gil, 23 Sept: the boxes have to read on every garment colour. A soft white line under the dark dashes:
   light garments show the dashes, dark ones the white. The left-chest label gets the same halo. */
.printbox-halo { fill: none; stroke: #fff; stroke-width: 2.8; opacity: 0.5; pointer-events: none; }
.lc-label { fill: #111; opacity: 0.8; stroke: #fff; stroke-width: 1.6; stroke-opacity: 0.7; paint-order: stroke; pointer-events: none; }
.lc-label.on-dark { fill: #fff; stroke: #000; stroke-opacity: 0.35; }
.lc-fill { fill: var(--magenta); opacity: 0; pointer-events: none; transition: opacity 0.12s ease; }
/* While art is moving on the front the left-chest zone is lit; over it, it fills: let go and it is the left chest. */
.dragging .printbox.lc { stroke: var(--magenta); opacity: 1; stroke-dasharray: none; stroke-width: 1.6; }
.dragging .lc-fill { opacity: 0.1; }
.dragging.lc-over .lc-fill { opacity: 0.28; }
.dragging .lc-label { fill: var(--magenta); opacity: 1; }
.moving .truesize { display: none; }
/* Nothing selected on a view with art: the print boxes step back (Gil, 28 Sept). */
.boxes-off .printbox, .boxes-off .printbox-halo, .boxes-off .lc-label { display: none; }
.dims { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 10px; }
.dims label { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; margin: 0; }
.dims label span { display: flex; align-items: center; gap: 2px; font-weight: 400; }
.dims input { width: 82px; padding: 4px 6px; font: 13px ui-monospace, Menlo, monospace; }
.dims-dpi { font: 11px ui-monospace, Menlo, monospace; padding: 2px 7px; border-radius: 9px; background: #eee; }
.dims-dpi.ok { background: #e3f6ea; color: #17613a; } .dims-dpi.warn { background: #fff3d6; color: #7a5200; } .dims-dpi.bad { background: #fde3e3; color: #9b1c1c; }

.layer-node { cursor: grab; }
.layer-node.sel { cursor: move; }
.layer-frame { fill: none; stroke: var(--cyan); stroke-width: 1.4; stroke-dasharray: 4 4; }
.layer-handle { fill: #fff; stroke: var(--cyan); stroke-width: 1.6; }

/* True physical size, read off the canvas while the design is being moved. */
.truesize { pointer-events: none; }
.truesize rect { fill: #14141a; stroke: var(--cyan); stroke-width: 1; }
.truesize text { font: 600 11px/1 var(--mono, ui-monospace, monospace); fill: var(--cyan); letter-spacing: .02em; }
.truesize.warn rect { stroke: var(--warn); } .truesize.warn text { fill: var(--warn); }
.truesize.bad rect { stroke: var(--bad); }  .truesize.bad text  { fill: var(--bad); }

.tiny.bad { color: var(--bad); }

/* The canvas controls (Luis, 28 Sept: more design effort). One family: white floating cards, drawn icons, the name under
   each tool, magenta for where you are, red only for Clear. */
.stage-tools {
  position: absolute; top: 16px; left: 16px; display: flex; align-items: stretch; gap: 2px; z-index: 5;
  background: #fff; border-radius: 14px; padding: 5px; border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 24px -12px rgb(0 0 0 / .18);
}
.stage-tools button {
  display: grid; justify-items: center; align-content: center; gap: 3px; min-width: 54px; padding: 7px 8px 6px;
  border-radius: 10px; color: var(--ink); background: none; border: 0; cursor: pointer;
  font: 600 10.5px/1 system-ui, sans-serif; letter-spacing: .01em; transition: background .12s, color .12s;
}
.stage-tools button svg { color: var(--muted); transition: color .12s; }
.stage-tools button:hover:not(:disabled) { background: var(--surface-2); }
.stage-tools button:hover:not(:disabled) svg { color: var(--magenta); }
.stage-tools button:disabled { opacity: .38; cursor: default; }
.stage-tools .tsep { width: 1px; margin: 6px 3px; background: var(--border); }
.stage-tools button.danger:hover:not(:disabled), .stage-tools button.danger:hover:not(:disabled) svg { color: var(--bad); }
.stage-tools button.danger.confirm, .stage-tools button.danger.confirm:hover:not(:disabled) { background: var(--bad); color: #fff; min-width: 96px; }
.stage-tools button.danger.confirm svg, .stage-tools button.danger.confirm:hover:not(:disabled) svg { color: #fff; }

.stage-zoom {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%); z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: #fff; border-radius: 14px; padding: 5px; border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 24px -12px rgb(0 0 0 / .18);
}
.stage-zoom button {
  width: 36px; height: 34px; border-radius: 9px; border: 0; background: none; color: var(--ink);
  display: grid; place-items: center; cursor: pointer; transition: background .12s, color .12s;
}
.stage-zoom button:hover { background: var(--surface-2); color: var(--magenta); }
.stage-zoom #z-read { height: 26px; font: 600 10.5px/1 system-ui, sans-serif; color: var(--muted); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); border-radius: 0; width: 36px; }
.stage-zoom #z-read:hover { color: var(--magenta); background: none; }

.views {
  position: absolute; bottom: 18px; left: 18px; display: flex; gap: 10px; z-index: 5;
}
.view-thumb {
  width: 84px; padding: 5px 5px 0; background: #fff; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--border); text-align: center; overflow: visible; position: relative;
  box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 24px -14px rgb(0 0 0 / .2);
  transition: border-color .12s, box-shadow .12s, transform .12s;
}
.view-thumb:hover { border-color: #cfcdc4; transform: translateY(-1px); }
.view-thumb.on { border-color: var(--magenta); box-shadow: 0 0 0 2px var(--magenta), 0 10px 26px -14px rgb(235 0 139 / .45); }
.view-thumb .view-photo {
  display: block; height: 70px; border-radius: 10px; background: var(--surface-2); overflow: hidden;
}
.view-thumb .view-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 28%;
}
.view-thumb .view-photo.lc img { object-position: 38% 22%; transform: scale(1.35); }
.view-thumb .view-photo.bk img { object-position: center 30%; }
.view-thumb svg.garment-chip { display: block; margin: 0 auto; height: 70px; width: auto; padding: 9px 0; box-sizing: border-box; background: var(--surface-2); border-radius: 10px; width: 100%; }
.view-thumb > span {
  display: block; font: 600 11px/1 system-ui, sans-serif; color: var(--muted); padding: 8px 4px 9px;
}
.view-thumb.on > span { color: var(--magenta); }
.view-thumb .art-badge {
  position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; background: var(--magenta); border: 2px solid #fff;
  box-shadow: 0 2px 6px rgb(0 0 0 / .18);
}

.preflight {
  position: absolute; bottom: 18px; right: 18px; max-width: 280px; z-index: 6;
  background: #fff; border-radius: 12px; padding: 0;
  box-shadow: var(--shadow); color: var(--ink);
  border: 1px solid var(--border); overflow: hidden;
}
.preflight.bad { border-color: color-mix(in srgb, var(--bad) 45%, var(--border)); }
.preflight.ok { display: none; }
.preflight h5 {
  font-size: 12px; font-weight: 600; color: var(--ink);
  margin: 0; padding: 10px 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.preflight h5 small { font-weight: 500; color: var(--muted); font-size: 11px; }
.preflight .pf-body { padding: 0 12px 12px; display: none; }
.preflight.open .pf-body { display: block; }
.preflight p { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.preflight p + p { margin-top: 8px; }
.preflight p b { color: var(--ink); font-weight: 600; }

.panel {
  background: var(--surface);
  display: flex; flex-direction: column; overflow: hidden;
  border-left: 1px solid var(--border);
}
.panel-head {
  padding: 10px 18px 4px;
  display: flex; align-items: center; justify-content: space-between;
}
.panel-head h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.panel-body { flex: 1; overflow-y: auto; padding: 8px 18px 18px; }
.panel-foot {
  border-top: 1px solid var(--border); padding: 14px 18px;
  background: var(--surface-2);
}

.rail {
  display: flex; flex-wrap: nowrap; gap: 2px;
  padding: 10px 10px 0; overflow-x: auto;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.rail button {
  position: relative;
  flex: 1 0 auto;
  padding: 10px 8px 9px;
  color: var(--muted); font-size: 12px; font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.rail button em { display: none; }
.rail button:hover { color: var(--ink); }
.rail button.on {
  color: var(--magenta);
  border-bottom-color: var(--magenta);
  background: transparent;
  box-shadow: none;
}

.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--ink); margin-bottom: 7px;
}
.field input[type=text], .field input[type=number], .field select, .field textarea {
  width: 100%; padding: 9px 11px; border-radius: 8px;
  background: #fff; border: 1px solid var(--border); font-size: 13.5px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--magenta);
}
.field .hint { font-size: 11.5px; color: var(--faint); margin-top: 5px; line-height: 1.4; }

.swatches { display: flex; flex-wrap: wrap; gap: 7px; }
.swatch {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border);
  position: relative;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.18);
}
.swatch:hover { transform: scale(1.1); }
.swatch.on { border-color: var(--magenta); box-shadow: 0 0 0 3px color-mix(in srgb, var(--magenta) 22%, transparent); }

/* Gil, 23 Sept: "swatches and the name on hover", and make it obvious what is already added. The name shows at once
   (not the browser's slow tooltip); a colour already on the design carries a tick. */
.swatch[data-name]:hover::before {
  content: attr(data-name); position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%);
  white-space: nowrap; background: #111; color: #fff; font-size: 11px; font-weight: 600; line-height: 1;
  padding: 5px 8px; border-radius: 6px; z-index: 20; pointer-events: none;
}
.swatch.on:not(.dupe)::after {
  content: '✓'; position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 12px; font-weight: 800; text-shadow: 0 0 2px #000, 0 0 3px #000;
}
.swatch.dupe::after {
  content: '!'; position: absolute; top: -4px; right: -4px;
  width: 13px; height: 13px; border-radius: 50%; background: var(--warn);
  color: #000; font-size: 9px; font-weight: 700; display: grid; place-items: center;
}

.pricebox {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 13px; color: var(--ink);
}
.pricerow { display: flex; justify-content: space-between; font-size: 12.5px; padding: 3px 0; }
.pricerow .lbl { color: var(--muted); }
.pricerow.total {
  border-top: 1px solid var(--border); margin-top: 7px; padding-top: 9px;
  font-size: 16px; font-weight: 700; font-family: var(--display);
}
.pricerow.disc .val { color: var(--ok); }

.threecol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border-radius: var(--r); overflow: hidden; }
.threecol > div { background: #fff; padding: 13px 12px; text-align: center; }
.threecol .k {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 4px;
}
.threecol .v { font-family: var(--display); font-size: 19px; font-weight: 700; }
.threecol .profit .v { color: var(--ok); }
.threecol .profit.under .v { color: var(--bad); }
.threecol input {
  width: 100%; text-align: center; background: transparent; border: none;
  font-family: var(--display); font-size: 19px; font-weight: 700;
  border-bottom: 1px dashed var(--border-hi); padding-bottom: 2px;
}
.threecol input:focus { outline: none; border-bottom-color: var(--magenta); }

/* ── MERCHANT ────────────────────────────────────────────── */
.prodgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px; }
.prodcard {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden; transition: 0.15s;
}
.prodcard:hover { border-color: var(--border-hi); transform: translateY(-2px); }
.prodcard .thumb { height: 132px; display: grid; place-items: center; position: relative; }
.prodcard .thumb svg { height: 108px; width: auto; }
.prodcard .meta { padding: 11px 12px; }
.prodcard .meta h4 { font-size: 13px; font-weight: 600; line-height: 1.3; }
.prodcard .meta .sub { font-size: 11.5px; color: var(--faint); margin-top: 3px; }
.prodcard .acts { display: flex; gap: 5px; padding: 0 12px 12px; }
.prodcard .acts .btn { flex: 1; padding: 6px 4px; font-size: 11.5px; }
.prodcard .state {
  position: absolute; top: 9px; left: 9px;
}
.prodcard.ignored { opacity: 0.45; }

.wizard { display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: start; }
.wizsteps { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.wizstep {
  display: flex; align-items: center; gap: 7px; padding: 7px 13px;
  border-radius: 20px; border: 1px solid var(--border); font-size: 12px; color: var(--faint);
}
.wizstep b {
  width: 18px; height: 18px; border-radius: 50%; background: var(--surface-3);
  display: grid; place-items: center; font-size: 10px; font-family: var(--mono);
}
.wizstep.on { border-color: var(--magenta); color: var(--text); }
.wizstep.on b { background: var(--magenta); color: #fff; }
.wizstep.done { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.wizstep.done b { background: var(--ok); color: #04120d; }

/* ── FACTORY ─────────────────────────────────────────────── */
.stations { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.station {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 14px; min-height: 200px;
  display: flex; flex-direction: column; gap: 9px;
}
.station.hot { border-color: var(--magenta); }
.station-head { display: flex; align-items: center; justify-content: space-between; }
.station-head h4 { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.station-head em { font-style: normal; color: var(--magenta); }
.station-head .n {
  font-family: var(--display); font-size: 18px; font-weight: 700;
}
.jobs { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; max-height: 260px; }
.job {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 10px; font-size: 11.5px; transition: 0.13s;
  border-left: 2px solid var(--border-hi); cursor: pointer;
}
.job:hover { border-color: var(--border-hi); background: var(--surface-3); }
.job.rush { border-left-color: var(--bad); }
.job .t { display: flex; justify-content: space-between; gap: 6px; }
.job .sku { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.job .store { color: var(--faint); font-size: 10.5px; }

.ticket {
  background: #fff; color: #111; border-radius: 6px; padding: 20px;
  font-family: var(--mono); font-size: 11px; line-height: 1.45;
  max-width: 460px; box-shadow: var(--shadow);
}
.ticket .tk-head { display: flex; justify-content: space-between; border-bottom: 2px solid #111; padding-bottom: 8px; margin-bottom: 12px; }
.ticket .tk-head b { font-family: var(--display); font-size: 15px; letter-spacing: -0.01em; }
.ticket .tk-grid { display: grid; grid-template-columns: 92px 1fr; gap: 3px 12px; }
.ticket .tk-grid .k { color: #777; }
.ticket .tk-grid .v { font-weight: 600; }
.ticket .tk-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; align-items: start; }
.ticket .tk-box { border: 2px solid #111; padding: 10px; text-align: center; }
.ticket .tk-box .big { font-size: 34px; font-weight: 700; line-height: 1; font-family: var(--display); }
.ticket .tk-mock { border: 1px solid #ddd; padding: 6px; }
.ticket .tk-mock svg { width: 100%; height: auto; }
.ticket .barcode { display: flex; gap: 1px; height: 42px; align-items: stretch; margin: 10px 0 3px; }
.ticket .barcode i { display: block; background: #111; }
.ticket .bc-label { text-align: center; letter-spacing: 0.22em; font-size: 10px; }
.ticket .tk-foot { border-top: 1px solid #ccc; margin-top: 12px; padding-top: 8px; display: flex; justify-content: space-between; font-size: 10px; color: #666; }

.pretreat-pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px;
  border-radius: 20px; font-family: var(--mono); font-size: 10.5px; font-weight: 600;
}

/* ── landing ─────────────────────────────────────────────── */
.hero { padding: 72px 0 44px; text-align: center; max-width: 860px; margin: 0 auto; }
.hero h1 {
  font-family: var(--display); font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.02;
}
.hero h1 .cy { color: var(--cyan); }
.hero h1 .mg { color: var(--magenta); }
.hero h1 .yl { color: var(--yellow); }
.hero p { color: var(--muted); font-size: 16px; margin-top: 16px; line-height: 1.6; }
.hero .btns { display: flex; gap: 10px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

.surfaces { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.surfcard {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 20px; transition: 0.16s; display: block;
  position: relative; overflow: hidden;
}
.surfcard:hover { border-color: var(--magenta); transform: translateY(-3px); }
.surfcard::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--yellow));
  opacity: 0; transition: 0.16s;
}
.surfcard:hover::before { opacity: 1; }
.surfcard .n {
  font-family: var(--mono); font-size: 10px; color: var(--faint);
  letter-spacing: 0.16em; margin-bottom: 10px;
}
.surfcard h3 { font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: -0.015em; }
.surfcard p { color: var(--muted); font-size: 13px; margin-top: 7px; line-height: 1.5; }
.surfcard .repl {
  margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--border);
  font-size: 11.5px; color: var(--faint);
}
.surfcard .repl b { color: var(--muted); font-weight: 500; }

.stacklist { display: grid; gap: 1px; background: var(--border); border-radius: var(--r); overflow: hidden; }
.stackrow {
  background: var(--surface); padding: 11px 14px; display: grid;
  grid-template-columns: 22px 190px 1fr; gap: 12px; align-items: center; font-size: 13px;
}
.stackrow .i { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.stackrow .n { font-weight: 600; }
.stackrow .d { color: var(--muted); font-size: 12.5px; }

.split-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: center; }
.split-compare .arrow { font-size: 26px; color: var(--magenta); }

section.band { padding: 46px 0; border-top: 1px solid var(--border); }
section.band > h2 {
  font-family: var(--display); font-size: 26px; font-weight: 700;
  letter-spacing: -0.025em; margin-bottom: 6px;
}
section.band > .sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

.cite {
  font-family: var(--mono); font-size: 10px; color: var(--faint);
  letter-spacing: 0.05em; margin-top: 10px;
}
.cite::before { content: 'SOURCE  '; color: var(--border-hi); }

.quote {
  border-left: 3px solid var(--magenta); padding: 4px 0 4px 18px;
  font-family: var(--display); font-size: 19px; line-height: 1.4; letter-spacing: -0.015em;
}
.quote cite { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--faint); margin-top: 9px; font-style: normal; letter-spacing: 0.08em; }

@media (max-width: 1100px) {
  .studio { grid-template-columns: 1fr 300px 66px; }
  .stations { grid-template-columns: repeat(2, 1fr); }
  .wizard { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .studio { grid-template-columns: 1fr; height: auto; }
  .g3, .g2 { grid-template-columns: 1fr; }
  .split-compare { grid-template-columns: 1fr; }
}

/* The part of a design that falls outside the print box. Drawn faintly so the
   customer can still see and grab the whole object while dragging, but can tell at
   a glance that the ink there will not exist on the garment. */
.offcut { opacity: .17; }

/* Quantity per size. One cell per quotable size: the size, the number, and what one
   costs at that size, so the person typing can see the line forming. */
.qtygrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.qtycell {
  display: flex; flex-direction: column; gap: 2px; align-items: center;
  border: 1px solid var(--border); border-radius: 8px; padding: 6px 4px 5px;
  background: var(--surface-2); cursor: text;
}
.qtycell.has { border-color: var(--magenta); background: var(--surface-3); }
.qtycell .qs { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: .06em; }
.qtycell.has .qs { color: var(--text); }
.qtycell input {
  width: 100%; text-align: center; background: none; border: none; outline: none;
  font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--text);
  -moz-appearance: textfield;
}
.qtycell input::-webkit-outer-spin-button,
.qtycell input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qtycell input::placeholder { color: var(--faint); font-weight: 400; }
.qtycell .qe { font-family: var(--mono); font-size: 9.5px; color: var(--faint); }
.qtytotal {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--border);
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.qtytotal b { font-family: var(--display); font-size: 18px; color: var(--text); }

/* Code 128 on the slip. The SVG carries its own white ground because the quiet zone
   is part of the symbol, not padding: a scanner needs it to measure module width. */
/* Natural size, never stretched. Scaling the symbol to fit a container reintroduces
   the fractional-module rasterising problem the integer module size exists to avoid. */
.ticket .c128 { display: block; width: auto; max-width: 100%; margin: 8px auto 0; }
.ticket .bc-fail {
  border: 1px dashed #c00; color: #c00; padding: 6px 8px; margin: 8px 0 0;
  font-size: 10px; line-height: 1.35; text-align: center;
}
.ticket .bc-fail span { color: #833; font-size: 9px; }
.ticket .tk-codes { margin-top: 10px; border-top: 1px solid #e2e2e2; padding-top: 8px; }

/* ── production slip · A5 LANDSCAPE ───────────────────────────────────────────
   Their own export config (Print.gs): size A5, portrait:false, fitw:true, margins
   top 0.5in / bottom 0.1in / left 0.5in / right 0.5in. A5 landscape is 8.27 x 5.83in,
   leaving a 7.27 x 5.23in printable area. The slip was built as a 420px portrait card
   and could not be poured into that shape, so the layout is built to the sheet: a
   header rule, a three-column body, a full-width barcode strip, a footer. */
.slip {
  width: 7.27in; height: 5.23in;
  background: #fff; color: #111;
  font-family: var(--sans); font-size: 9.5px; line-height: 1.35;
  padding: 0; display: flex; flex-direction: column; gap: 7px;
  box-shadow: 0 20px 50px rgb(0 0 0 / .4);
}
.slip .mono { font-family: var(--mono); }

.slip .sl-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 2px solid #111; padding-bottom: 5px; flex: 0 0 auto;
}
.slip .sl-head b { font-family: var(--display); font-size: 14px; letter-spacing: -0.01em; }
.slip .sl-head span { font-size: 10px; color: #555; }

/* Mockup, facts, lines. The mockup is fixed so the two text columns keep their
   measure whatever the artwork is. */
.slip .sl-body { display: grid; grid-template-columns: 1.5in 2.15in 1fr; gap: 11px; flex: 1 1 auto; min-height: 0; }
.slip .sl-mock { border: 1px solid #ddd; padding: 4px; display: grid; place-items: center; overflow: hidden; }
.slip .sl-mock svg { width: 100%; height: auto; }

.slip .sl-facts { display: grid; grid-template-columns: 52px 1fr; gap: 2px 8px; align-content: start; }
.slip .sl-facts .k { color: #777; }
.slip .sl-facts .v { font-weight: 600; word-break: break-word; }
.slip .sl-facts .tags { font-size: 8.5px; color: #555; font-weight: 400; }


/* Barcode strip. Two of the three sit side by side; the ShipStation code is the
   longest symbol so it takes the full width underneath. */
.slip .sl-codes {
  display: grid; grid-template-columns: auto auto; gap: 4px 14px;
  border-top: 1px solid #ddd; padding-top: 5px; flex: 0 0 auto; justify-content: start;
}
.slip .sl-code { text-align: center; }
.slip .sl-code.wide { grid-column: 1 / -1; }
.slip .sl-code > span {
  display: block; font-family: var(--mono); font-size: 6.5px;
  letter-spacing: .16em; color: #888; margin-top: 1px;
}
.slip .c128 { display: block; width: auto; max-width: 100%; margin: 0 auto; }
.slip .bc-fail {
  border: 1px dashed #c00; color: #c00; padding: 5px 7px;
  font-size: 9px; line-height: 1.3; text-align: center;
}
.slip .bc-fail span { color: #833; font-size: 8px; }

.slip .sl-foot {
  border-top: 1px solid #ccc; padding-top: 4px; flex: 0 0 auto;
  display: flex; justify-content: space-between; font-size: 8px; color: #666;
}

/* Printed, the sheet IS the page: their margins, their orientation, no browser chrome. */
@media print {
  @page { size: A5 landscape; margin: 0.5in 0.5in 0.1in 0.5in; }
  body * { visibility: hidden; }
  .slip, .slip * { visibility: visible; }
  .slip { position: absolute; left: 0; top: 0; box-shadow: none; width: 7.27in; height: 5.23in; }
}
/* Each sheet is its own page when printed. */
@media print { .slip { page-break-after: always; break-after: page; } .slip:last-of-type { page-break-after: auto; break-after: auto; } }

/* Right-hand working column: what the operator sets and checks at arm's length. */
.slip .sl-work { display: flex; flex-direction: column; gap: 7px; min-height: 0; }

.slip .sl-pretreat {
  border: 2px solid #111; padding: 5px 8px; display: flex; align-items: baseline; gap: 8px;
}
.slip .sl-pretreat span { font-family: var(--mono); font-size: 7.5px; letter-spacing: .12em; opacity: .85; }
.slip .sl-pretreat b { font-family: var(--display); font-size: 21px; line-height: 1; margin-left: auto; }
.slip .sl-pretreat span:last-child { margin-left: 0; }

/* Counts by size. Bounded by the catalogue: the widest style carries 10 sizes. */
.slip .sl-sizes { border: 1px solid #111; }
.slip .sl-sizes-h, .slip .sl-sizes-q { display: flex; }
.slip .sl-sizes-h span, .slip .sl-sizes-q b {
  flex: 1 1 0; min-width: 0; text-align: center; border-right: 1px solid #ddd;
}
.slip .sl-sizes-h span:last-child, .slip .sl-sizes-q b:last-child { border-right: none; }
.slip .sl-sizes-h {
  background: #111; color: #fff; font-family: var(--mono); font-size: 8px; letter-spacing: .04em;
}
.slip .sl-sizes-h span { padding: 2px 1px; border-right-color: #444; }
.slip .sl-sizes-q b { font-family: var(--display); font-size: 17px; line-height: 1.15; padding: 3px 1px; }

.slip .sl-sides { display: flex; gap: 5px; flex-wrap: wrap; }
.slip .sl-sides span {
  border: 1px solid #bbb; color: #999; padding: 2px 7px; font-size: 8.5px;
  font-family: var(--mono); letter-spacing: .04em;
}
.slip .sl-sides span.on { border-color: #111; color: #111; font-weight: 700; }

.slip .sl-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: auto; }
.slip .sl-counts div { border: 2px solid #111; padding: 3px 4px; text-align: center; }
.slip .sl-counts span { display: block; font-size: 6.5px; letter-spacing: .12em; color: #777; }
.slip .sl-counts b { font-size: 15px; font-family: var(--display); line-height: 1.1; }

.slip .sl-facts .sku { font-size: 8px; word-break: break-all; }

/* ── approval queue ───────────────────────────────────────── */
.rail button { position: relative; }
.rail button .qn { position: absolute; top: 5px; right: 7px; background: var(--magenta); color: #fff; font-size: 9px; line-height: 1; border-radius: 10px; padding: 3px 5px; font-weight: 700; letter-spacing: 0; }
.qcard { background: var(--surface-2); padding: 11px 14px; display: grid; gap: 5px; cursor: pointer; border-radius: 8px; }
.qcard.open { background: #fff; border: 1px solid var(--border); cursor: default; }
.rail button .qn { top: 4px; right: 2px; }
.qcard .qhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; cursor: pointer; }
.qcard .qtitle { font-weight: 600; font-size: 13px; }
.qfields { display: grid; grid-template-columns: 112px 1fr; gap: 3px 10px; font-size: 11px; margin-top: 8px; }
.qfields .k { color: var(--faint); font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 2px; }
.qfields .v { word-break: break-word; }
.qfields .v.warn { color: var(--warn); }

/* ── guided flow (Gil, 19 Sept) ─────────────────────────── */
.rail[data-mode="guided"] { gap: 0; padding: 8px 6px 0; overflow-x: visible; }
.rail[data-mode="guided"] button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; flex: 1 1 0; min-width: 0; padding: 6px 2px 7px; font-size: 11px; white-space: nowrap; }
.rail[data-mode="guided"] button em { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; font-style: normal; font-size: 10px; font-weight: 700; background: var(--surface-3); color: var(--muted); }
.rail[data-mode="guided"] button.on em { background: var(--magenta); color: #fff; }
.rail[data-mode="guided"] button.done em { background: color-mix(in srgb, var(--magenta) 18%, #fff); color: var(--magenta); }
.rail[data-mode="guided"] button[disabled] { opacity: .45; cursor: default; }
.substeps { margin: 4px 0 14px; }
.swatch.cur { outline: 2px solid var(--ink); outline-offset: 2px; }
.chip .dotc, .dotc { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 1px solid rgba(0,0,0,.18); }
.chip .x { margin-left: 6px; padding: 0 2px; font-size: 13px; line-height: 1; color: inherit; background: none; border: 0; cursor: pointer; }
.oqgrid { border-collapse: collapse; font-size: 12px; width: 100%; }
.oqgrid th { font-weight: 600; padding: 4px 3px; text-align: center; white-space: nowrap; }
.oqgrid tbody th { text-align: left; }
.oqgrid td { padding: 2px; text-align: center; }
.oqgrid td.na { color: var(--faint); }
.oqgrid input { width: 100%; min-width: 34px; box-sizing: border-box; padding: 5px 2px; text-align: center; border: 1px solid var(--border); border-radius: 6px; font: inherit; }
.oqgrid input { color: var(--ink); background: #fff; font-size: 13px; font-weight: 600; padding: 6px 0; -moz-appearance: textfield; appearance: textfield; }
.oqgrid input::-webkit-inner-spin-button, .oqgrid input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.oqgrid input:not(:placeholder-shown) { border-color: var(--magenta); background: color-mix(in srgb, var(--magenta) 6%, #fff); }
.colorcard { border: 1px solid var(--border); border-radius: 10px; padding: 10px; margin-bottom: 10px; background: #fff; }
.colorcard.cur { border-color: var(--magenta); }
.cc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cc-show { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--ink); text-align: left; }
.btn.guide-on { border-color: var(--magenta); color: var(--magenta); background: color-mix(in srgb, var(--magenta) 7%, #fff); }

/* Price & details (Gil, 23 Sept): the panel comes out toward the centre, one card per garment. */
.studio { transition: grid-template-columns .18s ease; }
.studio.wide { grid-template-columns: minmax(260px, 1fr) minmax(560px, 60%); }
.lcards { display: grid; gap: 12px; margin-bottom: 14px; }
.lcard.lprice { grid-template-columns: 1fr; }
.lsection { font-size: 15px; margin: 18px 0 10px; }
.lcard { display: grid; grid-template-columns: 170px 1fr; gap: 16px; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px; background: #fff; }
.lthumb { background: var(--surface-2); border-radius: var(--r); align-self: start; overflow: hidden; }
.lthumb img { width: 100%; display: block; }
.lthumbs { display: grid; gap: 8px; align-self: start; }
.lthumbs figure { margin: 0; }
.lthumbs figcaption { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); padding: 4px 6px; background: #fff; }
.bycolour { margin: 0 0 10px; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; font-size: 12px; }
.bycolour .k { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-bottom: 4px; }
.bycolour-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 10px; padding: 2px 0; align-items: center; }
.bycolour-row span:first-child { display: flex; align-items: center; gap: 5px; }
.bycolour .bad { color: var(--bad, #b00020); font-weight: 600; }
.bycolour .hint { margin: 4px 0 0; }
.lname { font-size: 15px; margin-bottom: 10px; }
.lfields .field:last-child { margin-bottom: 0; }
.lfields .threecol { margin-bottom: 6px; }
.lfields > .hint { font-size: 12px; line-height: 1.45; color: var(--muted); margin: 0 0 12px; }
.ltitle { display: flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: var(--r); padding: 0 0 0 10px; background: #fff; }
.ltitle span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.ltitle input { border: 0; flex: 1; min-width: 60px; }
.ltitle .btn { flex: none; margin-right: 4px; }
@media (max-width: 1100px) { .studio.wide { grid-template-columns: minmax(200px, 1fr) minmax(460px, 64%) 0; } }
@media (max-width: 820px) { .studio.wide { grid-template-columns: 1fr; } .lcard { grid-template-columns: 1fr; } }

/* Price by size on each garment's card (24 Sept). */
.bysize { margin-top: 10px; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; background: var(--surface-2); }
.bysize summary { cursor: pointer; font-size: 12px; font-weight: 600; }
.bysize-grid { display: grid; grid-template-columns: auto 1fr 1fr 1fr; gap: 6px 10px; align-items: center; margin-top: 8px; font-size: 12px; }
.bysize-grid .k { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.bysize-grid input { width: 100%; min-width: 64px; font-size: 12px; padding: 4px 6px; }
.bysize-grid input.set { border-color: var(--magenta); }
.bysize-grid .bad { color: var(--bad, #b00020); font-weight: 600; }
.bysize .hint { font-size: 12px; line-height: 1.45; color: var(--muted); margin-top: 6px; }

/* Every mockup full size with the order (Gil, 23 Sept). */
#mkfull { position: fixed; inset: 0; z-index: 1000; background: #0f0f12; display: flex; flex-direction: column; color: #fff; }
.mkfull-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid rgb(255 255 255 / 0.12); }
.mkfull-body { flex: 1; display: grid; grid-template-columns: 1fr 300px; gap: 18px; padding: 18px; overflow: hidden; }
.mkfull-grid { overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; align-content: start; }
.mkfull-grid figure { margin: 0; background: #fff; border-radius: 10px; padding: 8px; color: #111; }
.mkfull-grid img { width: 100%; display: block; border-radius: 6px; }
.mkfull-grid figcaption { font-size: 12px; margin-top: 6px; }
.mkfull-side { overflow-y: auto; background: rgb(255 255 255 / 0.06); border-radius: 10px; padding: 14px; font-size: 13px; line-height: 1.5; }
.mkfull-side h4 { margin: 12px 0 4px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.mkfull-side ul { margin: 0; padding-left: 16px; }
.mkfull-side .chip { color: #111; }
@media (max-width: 820px) { .mkfull-body { grid-template-columns: 1fr; overflow-y: auto; } .mkfull-grid { overflow: visible; grid-template-columns: 1fr; } }

/* Purchase or Map, picked up front inside the app (Gil, 27 Sept). */
.flowpick { margin-bottom: 16px; }
.flowcards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.flowcard { text-align: left; border: 1.5px solid var(--border); border-radius: var(--r-lg); background: #fff; padding: 12px 14px; cursor: pointer; display: grid; gap: 4px; font: inherit; color: inherit; }
.flowcard b { font-size: 14px; }
.flowcard span { font-size: 12px; color: var(--muted); line-height: 1.4; }
.flowcard:hover { border-color: var(--ink, #111); }
.flowcard.on { border-color: var(--magenta); box-shadow: 0 0 0 3px color-mix(in srgb, var(--magenta) 16%, transparent); }
@media (max-width: 520px) { .flowcards { grid-template-columns: 1fr; } }
.shipgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; margin-top: 6px; }
.shipgrid label { display: grid; gap: 3px; font-size: 11px; color: var(--muted); }
.shipgrid label.wide { grid-column: 1 / -1; }
.shipgrid input, .shipgrid select { font-size: 13px; padding: 6px 8px; }
/* A note placed straight in the panel or in a card reads as a note, not body text. */
#panel-body > .hint, .pricebox .hint { font-size: 12px; line-height: 1.45; color: var(--muted); margin: 0 0 8px; }
.pricebox .hint { margin: 4px 0 0; }
/* The full view's garment switcher, on its dark bar. */
/* Luis, 28 Sept: the garment switcher is labelled and the garment on screen is plain to see. */
.mkfull-tabs { flex: 1; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 0 16px; }
.mkfull-tabs-k { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .75; margin-right: 4px; }
.mkg { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 8px; border: 1px solid rgb(255 255 255 / 0.35); background: transparent; color: #fff; font: 600 14px system-ui, sans-serif; cursor: pointer; }
.mkg:hover { border-color: #fff; }
.mkg.on { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.mkg-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.mkcolors { list-style: none; margin: 0; padding: 0 !important; display: grid; grid-template-columns: 1fr; gap: 4px; }
.mkcolors li { display: flex; align-items: center; gap: 7px; min-width: 0; }
.mkcolors .dotc { flex: none; border: 1px solid rgb(255 255 255 / 0.4); }
#sendcover { position: fixed; inset: 0; z-index: 1200; background: rgb(250 250 250 / 0.92); display: grid; place-items: center; }
.sendcover-card { display: grid; justify-items: center; gap: 8px; font-size: 15px; text-align: center; }
.sendcover-card span { font-size: 13px; color: var(--muted); }
.sendcover-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #ddd; border-top-color: var(--magenta); animation: sendspin .8s linear infinite; }
@keyframes sendspin { to { transform: rotate(360deg); } }
/* The up-front question (Gil, 27 Sept "a choice up front"): the studio opens to it and waits. */
#flowgate { position: fixed; inset: 0; z-index: 90; background: rgb(22 22 22 / 0.55); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; }
.flowgate-card { background: #fff; border-radius: 18px; padding: 28px; width: min(640px, 100%); box-shadow: 0 24px 60px rgb(0 0 0 / 0.25); }
.flowgate-logo { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--magenta); }
.flowgate-card h2 { font-size: 24px; letter-spacing: -0.02em; margin: 6px 0 18px; }
.flowgate-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.flowgate-opts button { text-align: left; border: 1.5px solid var(--border); border-radius: 14px; background: #fff; padding: 18px; cursor: pointer; display: grid; gap: 6px; font: inherit; color: inherit; }
.flowgate-opts button b { font-size: 17px; }
.flowgate-opts button span { font-size: 13px; color: var(--muted); line-height: 1.45; }
.flowgate-opts button:hover, .flowgate-opts button:focus-visible { border-color: var(--magenta); box-shadow: 0 0 0 3px color-mix(in srgb, var(--magenta) 16%, transparent); outline: none; }
.flowgate-note { font-size: 12px; color: var(--muted); margin: 14px 0 0; line-height: 1.45; }
@media (max-width: 560px) { .flowgate-opts { grid-template-columns: 1fr; } }
.flowline { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface-2); font-size: 13px; font-weight: 600; }

/* Gil, 28 Sept call: numbered sub-steps, section titles, info buttons. */
.substeps .subn { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 5px; border-radius: 50%; font-size: 10px; font-style: normal; font-weight: 700; background: #eee; color: #555; }
.substeps .chip.on .subn { background: var(--magenta); color: #fff; }
.subhelp { margin: 6px 0 10px; }
.sectlabel { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.info { position: relative; display: inline-grid; place-items: center; width: 16px; height: 16px; padding: 0; border-radius: 50%; border: 1px solid currentColor; background: none; color: var(--muted); font: italic 700 10px Georgia, serif; cursor: help; vertical-align: middle; text-transform: none; letter-spacing: 0; }
.info:hover, .info:focus-visible { color: var(--magenta); }
.info::after { content: attr(data-tip); position: absolute; z-index: 50; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); width: max-content; max-width: 240px; padding: 7px 9px; border-radius: 6px; background: #1b1b1f; color: #fff; font: 400 12px/1.4 system-ui, sans-serif; text-align: left; white-space: normal; opacity: 0; pointer-events: none; transition: opacity .12s; }
.info:hover::after, .info:focus::after { opacity: 1; }
.demobar .tag { margin-left: auto; }
/* The size pill of a selected design sat on top of the LEFT CHEST label (Gil, 28 Sept Loom). The label steps back while
   a design is selected and comes back during a drag, when it says where to drop for a left chest. */
.has-sel:not(.dragging) .lc-label { display: none; }
/* Luis, 28 Sept: each screen is a list of defined steps, top to bottom. */
.stepsec + .stepsec { margin-top: 6px; }
.stephead { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 4px; padding-top: 14px; border-top: 1px solid var(--border); }
.stepsec:first-child .stephead, #panel-body > .stephead:first-child { border-top: 0; padding-top: 0; margin-top: 4px; }
.stepn { flex: none; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--magenta); padding: 3px 8px; border-radius: 4px; }
.stept { font-size: 15px; font-weight: 700; color: var(--text); }
.stephint { margin: 0 0 10px; }
.stephead + .stephint + .lsection, .stephead + .lsection { display: none; }
.orText { margin-top: 10px; border: 1px dashed var(--border); border-radius: var(--r); padding: 8px 10px; }
.orText > summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.orText[open] > summary { margin-bottom: 8px; }
.stephint { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.necklayouts { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.necklayout { display: grid; justify-items: center; gap: 4px; padding: 8px 6px; border: 1px solid var(--border); border-radius: var(--r); background: #fff; cursor: pointer; font-size: 11.5px; line-height: 1.25; text-align: center; }
.necklayout:hover { border-color: #bbb; }
.necklayout.on { border-color: var(--magenta); box-shadow: 0 0 0 1px var(--magenta) inset; }
/* Luis, 28 Sept: the opening card welcomes them with the logo, so it reads as POD Hut's own. */
.flowgate-mark { display: block; height: 56px; width: auto; margin: 0 auto 10px; }
.flowgate-welcome { text-align: center; font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 14px; }
.flowgate-card h2 { text-align: center; font-size: 16px; font-weight: 600; color: var(--muted); margin-top: 0; }
