/* Layout: workshop counter. Build-plate preview on the left, the order ticket on the right; admin is a job board. */
:root {
  --bg: #e9ece4; --surface: #f7f8f3; --ink: #1b2119; --muted: #5a6454; --line: #cbd2c2;
  --accent: #d9530c; --accent-ink: #ffffff; --accent-soft: #f6dcc9; --olive: #4a5c37;
  --plate: #1f231e; --plate-line: #2c312a; --plate-ink: #c9cfc0;
  --ok: #2d7a33; --warn: #a86400; --bad: #b3261e;
  --f-display: 'Big Shoulders Display', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --f-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --r: 10px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #121510; --surface: #1a1e17; --ink: #e3e8da; --muted: #98a18d; --line: #2c3327;
  --accent: #ff7733; --accent-ink: #1c0d03; --accent-soft: #3a2416; --olive: #a3b886;
  --plate: #191c18; --plate-line: #262b24; --plate-ink: #b8bfae;
  --ok: #7cc480; --warn: #f0b34a; --bad: #f2867c; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #121510; --surface: #1a1e17; --ink: #e3e8da; --muted: #98a18d; --line: #2c3327;
  --accent: #ff7733; --accent-ink: #1c0d03; --accent-soft: #3a2416; --olive: #a3b886;
  --plate: #191c18; --plate-line: #262b24; --plate-ink: #b8bfae;
  --ok: #7cc480; --warn: #f0b34a; --bad: #f2867c; color-scheme: dark }
* { box-sizing: border-box }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--f-body); }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--f-display); text-transform: uppercase; margin: 0; text-wrap: balance; line-height: 1.05 }
h1 { font-size: 30px; font-weight: 800; letter-spacing: .01em }
h2 { font-size: 19px; font-weight: 700; letter-spacing: .05em }
h3 { font-size: 17px; font-weight: 700; letter-spacing: .04em }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums }
.muted { color: var(--muted) }
.small { font-size: 13px }
button, input, textarea, select { font: inherit; color: inherit }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }

/* header */
.bar { border-bottom: 1px solid var(--line); background: var(--surface) }
.bar .wrap { display: flex; align-items: center; gap: 16px; padding-block: 12px; flex-wrap: wrap }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; min-width: 0 }
.brand svg { flex: none }
.brand p { margin: 2px 0 0; font-size: 13px; color: var(--muted) }
.now { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 6px 12px 6px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg) }
.now img { width: 44px; height: 28px; object-fit: cover; border-radius: 6px; background: var(--plate) }
.now .meter { width: 70px; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden }
.now .meter i { display: block; height: 100%; background: var(--accent) }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; animation: pulse 1.6s ease-in-out infinite }
@keyframes pulse { 50% { opacity: .35 } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 9px 14px; cursor: pointer; font-weight: 500; text-decoration: none; color: var(--ink); line-height: 1.2 }
.btn:hover { border-color: var(--muted) }
.btn:disabled { opacity: .5; cursor: not-allowed }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600 }
.btn.primary:hover { filter: brightness(1.06) }
.btn.big { padding: 13px 18px; font-size: 16px; width: 100% }
.btn.sm { padding: 6px 10px; font-size: 13px }
.btn.danger { color: var(--bad) }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px }

/* shop layout */
.shop { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; padding-block: 24px 48px; align-items: start }
@media (max-width: 860px) { .shop { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 16px } }
.stage { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 16px) }
@media (max-width: 860px) { .stage { position: relative; top: 0 } }
.plate { position: relative; border-radius: 14px; overflow: hidden; background-color: var(--plate);
  background-image: linear-gradient(var(--plate-line) 1px, transparent 1px), linear-gradient(90deg, var(--plate-line) 1px, transparent 1px);
  background-size: 28px 28px; background-position: center; aspect-ratio: 4 / 3; max-width: 100%; color: var(--plate-ink) }
@media (max-width: 860px) { .plate { aspect-ratio: 16 / 11 } }
.plate canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none }
.plate canvas:active { cursor: grabbing }
.plate .tag { position: absolute; font: 12px/1.4 var(--f-mono); letter-spacing: .02em; pointer-events: none }
.plate .tl { top: 12px; left: 14px } .plate .br { right: 14px; bottom: 12px; text-align: right } .plate .bl { left: 14px; bottom: 12px }
.plate .fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center }
.stage-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; font-size: 13px; color: var(--muted) }
.stage-meta b { color: var(--ink); font-weight: 600 }

.panel { display: flex; flex-direction: column; gap: 14px; min-width: 0 }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px }
.card > h2 { margin-bottom: 12px }
.card .sub { margin: -6px 0 12px; font-size: 13px; color: var(--muted) }
.field { display: flex; flex-direction: column; gap: 6px }
.field + .field, .field + .opt, .opt + .opt, .opt + .field { margin-top: 14px }
.lbl { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted) }
.input { width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 10px 12px }
textarea.input { resize: vertical; min-height: 72px }
.chips { display: flex; flex-wrap: wrap; gap: 6px }
.chip { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 14px }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink) }
.icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px }
.ico { aspect-ratio: 1; border: 1px solid var(--line); background: var(--bg); border-radius: 8px; display: grid; place-items: center; cursor: pointer; padding: 0; color: var(--ink) }
.ico svg { width: 26px; height: 26px }
.ico .none { font-size: 11px; color: var(--muted) }
.ico[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent) }
.opt { display: flex; flex-direction: column; gap: 8px }
.swatches { display: flex; flex-wrap: wrap; gap: 10px }
.sw { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 58px; background: none; border: 0; padding: 0; cursor: pointer; font-size: 11px; color: var(--muted); text-align: center; line-height: 1.2 }
.sw i { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: block }
.sw[aria-pressed="true"] i { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent) }
.sw[aria-pressed="true"] { color: var(--ink); font-weight: 600 }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap }
.status-line { font-size: 14px; min-height: 1.5em }
.status-line.err { color: var(--bad) }
.price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px dashed var(--line) }
.price .amt { font: 800 34px/1 var(--f-display) }
.price .what { font-size: 13px; color: var(--muted); text-align: right }
.closed { padding: 12px; border-radius: 8px; background: var(--accent-soft); font-size: 14px; margin-bottom: 12px }

/* builder */
:root { --tile-frame: #b9c0ae; --tile-hi: #ffffff }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --tile-frame: #3d4537; --tile-hi: #1a1e17 } }
:root[data-theme="dark"] { --tile-frame: #3d4537; --tile-hi: #1a1e17 }
#builder { display: flex; flex-direction: column; gap: 18px; margin-top: 14px }
.bsec { display: flex; flex-direction: column; gap: 10px }
.bsec + .bsec { padding-top: 16px; border-top: 1px solid var(--line) }
.bsec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 32px }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 6px }
.tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px 5px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); cursor: pointer; color: var(--ink); font-size: 12px; font-weight: 500; min-width: 0 }
.tile svg { width: 100%; height: 34px; display: block }
.sub-opts .seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 1px; background: var(--line) }
.sub-opts .seg button + button { border-left: 0 }
.tile .glyph { height: 30px; display: grid; place-items: center; font: 800 18px var(--f-display); letter-spacing: .04em; color: var(--muted) }
.tile .glyph.ic svg { width: 26px; height: 26px; color: var(--ink) }
.tile[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); color: var(--accent) }
.tile[aria-pressed="true"] svg { color: var(--accent) }
.sub-opts { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: var(--bg); border-radius: 8px }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex-wrap: wrap }
.seg button { border: 0; background: var(--surface); padding: 6px 11px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted) }
.seg button + button { border-left: 1px solid var(--line) }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--surface) }
.sw { width: 52px }
.sw i { width: 30px; height: 30px }
.tagline { display: flex; align-items: center; gap: 10px; margin-top: 12px }
.tagline .lbl { white-space: nowrap }
.tagline .input { flex: 1; min-width: 0 }

.note { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); border: 1px solid var(--accent) }
.note > div { flex: 1; min-width: 0 }
.note .bell { color: var(--accent); flex: none; display: grid }
#notes { display: flex; flex-direction: column }
.storepick { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; width: 100% }
.storepick .input { width: auto; flex: 1; min-width: 130px; padding: 7px 8px }

/* ticket */
.ticket-id { font: 800 44px/1 var(--f-display); letter-spacing: .02em; color: var(--accent) }
.step { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line) }
.step .n { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--surface); display: grid; place-items: center; font: 700 14px var(--f-mono) }
.step h3 { margin-bottom: 6px }
.payrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap }
.payrow:last-child { border-bottom: 0 }
.codebox { width: 100%; font: 12px/1.4 var(--f-mono); word-break: break-all; border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 10px; min-height: 64px; resize: none }

/* admin */
.admin { padding-block: 20px 56px; display: flex; flex-direction: column; gap: 16px }
.admin-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px }
@media (max-width: 860px) { .admin-top { grid-template-columns: minmax(0, 1fr) } }
.printer { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center }
@media (max-width: 480px) { .printer { grid-template-columns: minmax(0, 1fr) } }
.printer img, .printer .idle { width: 100%; aspect-ratio: 16 / 10; border-radius: 8px; background: var(--plate); object-fit: cover; display: grid; place-items: center; color: var(--plate-ink); font: 12px var(--f-mono) }
.bigtime { font: 800 40px/1 var(--f-display); font-variant-numeric: tabular-nums }
.meter { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin: 10px 0 }
.meter i { display: block; height: 100%; background: var(--accent); transition: width .5s linear }
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: start }
@media (max-width: 1100px) { .board { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) } }
.paste-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 12px; padding: 12px; background: var(--bg); border-radius: 8px }
.paste-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; background: var(--plate) }
@media (max-width: 520px) { .paste-card { grid-template-columns: minmax(0, 1fr) } }
@media (max-width: 620px) { .board { grid-template-columns: minmax(0, 1fr) } }
.col { display: flex; flex-direction: column; gap: 10px; min-width: 0 }
.col-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px }
.count { font: 500 12px var(--f-mono); padding: 2px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line) }
.empty { font-size: 13px; color: var(--muted); padding: 14px; border: 1px dashed var(--line); border-radius: 8px; text-align: center }
.job { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column }
.job[data-s="unpaid"] { border-top: 3px solid var(--warn) }
.job[data-s="queued"] { border-top: 3px solid var(--accent) }
.job[data-s="printing"] { border-top: 3px solid var(--olive) }
.job[data-s="ready"] { border-top: 3px solid var(--ok) }
.job img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--plate); display: block }
.job .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0 }
.job .top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px }
.job .id { font: 600 15px var(--f-mono) }
.job .who { font-weight: 600; overflow-wrap: anywhere }
.job .desc { font-size: 13px; color: var(--muted); overflow-wrap: anywhere }
.job .acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px }
.pill { font: 600 11px var(--f-body); text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); white-space: nowrap }
details.card > summary { cursor: pointer; font: 700 19px var(--f-display); text-transform: uppercase; letter-spacing: .05em; list-style: none }
details.card > summary::-webkit-details-marker { display: none }
details.card > summary::after { content: ' +'; color: var(--muted) }
details.card[open] > summary::after { content: ' −' }
.settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px }
@media (max-width: 760px) { .settings-grid { grid-template-columns: minmax(0, 1fr) } }
.settings-grid .field + .field { margin-top: 0 }
.check { display: flex; gap: 8px; align-items: center }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: 8px; font-size: 14px; z-index: 20; max-width: calc(100% - 32px) }
.view-switch { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden }
.view-switch button { border: 0; background: var(--bg); padding: 7px 12px; cursor: pointer; font-size: 13px; font-weight: 600 }
.view-switch button[aria-pressed="true"] { background: var(--ink); color: var(--surface) }

/* website additions */
body { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px) }
[hidden] { display: none !important }
.foot { display: flex; justify-content: space-between; gap: 12px; padding-block: 8px 32px; font-size: 13px; color: var(--muted) }
.foot a { color: var(--muted) }
.ticket-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: center; margin-top: 12px }
.ticket-row img, .ticket-row .idle { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; background: var(--plate) }
.btn.cash { background: #00d64f; border-color: #00d64f; color: #fff; font-weight: 700; padding: 12px 18px }
.done-card .ticket-id { color: var(--ok) }
.signin { max-width: 460px; margin: 40px auto 0; text-align: center }
.adminbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px }
#board-wrap { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px }
.job .acts { flex-direction: column; align-items: stretch }
.job .acts .row { gap: 6px }
.cashcheck { padding: 8px 10px; border-radius: 6px; background: var(--bg) }
.job .linkish { align-self: flex-start; color: var(--muted) }

/* design helper */
.helper { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 70%) }
.helper-note { margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 8px 8px 0; font-size: 14px }

.qr-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center }
.qr-card .qr { width: 112px; height: 112px; border-radius: 8px; display: block }
.qr-card h2 { margin: 0 }

/* custom piece */
.cu-ai { margin-top: 12px; display: flex; flex-direction: column; gap: 6px }
.cu-grid { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 14px }
@media (max-width: 420px) { .cu-grid { grid-template-columns: minmax(0, 1fr) } }
.cu-preview { background: var(--plate); border-radius: 10px; padding: 12px; aspect-ratio: 1; max-width: 100% }
.cu-preview svg { width: 100%; height: 100%; display: block; color: var(--accent) }
.cu-controls { display: flex; flex-direction: column; gap: 6px; min-width: 0 }
.cu-controls input[type=range] { width: 100%; accent-color: var(--accent) }
.tile .glyph.ic svg path, .ico svg path { fill: currentColor }

.ccflag { font-size: 13px; padding: 4px 8px; border-radius: 6px; background: var(--accent-soft); align-self: flex-start }

/* ---- simple 3-step shop ---- */
.job[data-s="color"] { border-top: 3px solid var(--warn) }
.bar .btn.sm { flex: none }
.lookup { margin-top: 14px; max-width: 460px; margin-left: auto }
.stepcard { padding: 20px }
.step-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px }
.step-h .n { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 800 18px/1 var(--f-display); flex: none }
.step-h h2 { margin: 0; font-size: 22px }
.big-in { font-size: 16px; min-height: 64px }
.upload-row { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line) }
.upload-row .linkish { font-size: 14px }
.upload-row .status-line { min-height: 0; margin: 6px 0 0 }
.more { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 12px }
.more > summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); list-style: none; display: inline-flex; align-items: center; gap: 6px }
.more > summary::-webkit-details-marker { display: none }
.more > summary::before { content: '+'; display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--line); border-radius: 50%; font-size: 14px; line-height: 1 }
.more[open] > summary::before { content: '−' }
.more #builder { margin-top: 8px }
.swatches .sw { width: 64px }
.other-sw { background: conic-gradient(#e53935, #fdd835, #43a047, #1e88e5, #8e24aa, #e53935) }
.cc-box { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 8px; background: var(--bg) }
.note .btn.cash { flex: none }
.foot { align-items: center; flex-wrap: wrap }
.foot-r { display: flex; gap: 14px }
.qr-mini { display: flex; align-items: center; gap: 10px }
.qr-mini .qr { width: 64px; height: 64px; border-radius: 6px; display: block }
@media (max-width: 860px) { .stepcard { padding: 16px } .step-h h2 { font-size: 20px } }
#o-err:empty { min-height: 0; margin: 0 }
#order-form .btn.big { margin-top: 16px }
@media (max-width: 520px) { .bar .wrap { flex-wrap: nowrap } .brand p { display: none } }

/* "Change the details": a big, easy-to-spot button */
.more { border-top: 0; padding-top: 0; margin-top: 16px }
.more > summary { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; width: 100%; padding: 12px 14px; border: 2px solid var(--accent); border-radius: 10px; background: var(--accent-soft); color: var(--ink); font-size: 16px }
.more > summary::before { content: ''; grid-row: span 2; width: 36px; height: 36px; border: 0; border-radius: 8px; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M4 7h10M18 7h2M4 17h4M12 17h8'/%3E%3Ccircle cx='16' cy='7' r='2'/%3E%3Ccircle cx='10' cy='17' r='2'/%3E%3C/svg%3E") center / 22px no-repeat }
.more[open] > summary::before { content: '' }
.more > summary::after { content: '▾'; grid-row: 1 / span 2; grid-column: 3; color: var(--accent); font-size: 18px; transition: transform .15s }
.more[open] > summary::after { transform: rotate(180deg) }
.more > summary:hover { filter: brightness(1.03) }
.more-t { font: 700 18px/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .04em }
.more-s { font-size: 13px; font-weight: 400; color: var(--muted); grid-column: 2 }

/* amount, sale, pictures on the frame */
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px }
.qty { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg) }
.qty .btn { border: 0; border-radius: 0; width: 46px; height: 44px; font-size: 22px; padding: 0; background: transparent }
.qty output { min-width: 44px; text-align: center; font-size: 20px; font-weight: 600 }
#qty-note { margin: -4px 0 12px }
.price s { font: 600 20px/1 var(--f-display); color: var(--muted); margin-right: 4px }
.sale-banner { background: var(--accent); color: var(--accent-ink); font-size: 15px }
.sale-banner .wrap { padding-block: 10px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline }
.sale-banner b { font: 800 18px/1.1 var(--f-display); letter-spacing: .05em }
.cu-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px }
.cu-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg) }
.cu-item svg { width: 44px; height: 44px; background: var(--plate); color: var(--accent); border-radius: 6px; padding: 5px }

.qtyflag { font-size: 14px; padding: 4px 8px; border-radius: 6px; background: var(--ink); color: var(--surface); align-self: flex-start }
.money { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px }
@media (max-width: 760px) { .money { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
.mtile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0 }
.mtile b { font: 800 30px/1.1 var(--f-display); color: var(--ink) }
.mtile:first-child b { color: var(--ok) }

/* ================= New look: forest + blaze orange + build plate =================
   Pine hero with topo lines (the outdoors); the preview sits on a speckled PEI print bed
   that rises out of it (the printing). Blaze orange is only for actions. */
:root {
  --pine: #1d3a2a; --pine-2: #264c37; --pine-ink: #e8f0e6; --pine-muted: #a9c1ad;
  --blaze: #ff6a13; --gold: #b8963e;
  --bg: #e6ebe3; --surface: #fbfcf9; --line: #cdd6c8; --muted: #56634f;
  --accent: #ff6a13; --accent-ink: #1a0b02; --accent-soft: #ffe2cf;
  --plate: #1b1d1e;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --pine: #13261b; --pine-2: #1b3426; --bg: #101411; --surface: #171c18; --line: #2a332c; --muted: #9aa894;
  --accent: #ff7a2b; --accent-ink: #1a0b02; --accent-soft: #3a2214; --plate: #151718 } }
:root[data-theme="dark"] {
  --pine: #13261b; --pine-2: #1b3426; --bg: #101411; --surface: #171c18; --line: #2a332c; --muted: #9aa894;
  --accent: #ff7a2b; --accent-ink: #1a0b02; --accent-soft: #3a2214; --plate: #151718 }

/* hero */
.hero { background: var(--pine) url("../topo.svg") center / cover no-repeat; color: var(--pine-ink); padding-bottom: 116px }
.hero .bar { background: transparent; border-bottom: 1px solid rgba(255, 255, 255, .1) }
.hero .brand { color: var(--pine-ink); text-decoration: none }
.wordmark { font: 800 28px/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em }
.btn.ghost { background: transparent; color: var(--pine-ink); border-color: rgba(255, 255, 255, .35) }
.btn.ghost:hover { border-color: var(--pine-ink); background: rgba(255, 255, 255, .06) }
.hero-copy { padding-top: 30px }
.hero-h { font: 800 clamp(42px, 6.4vw, 80px)/.92 var(--f-display); text-transform: uppercase; letter-spacing: -.005em; max-width: 15ch; margin: 0 }
.hero-sub { max-width: 46ch; margin: 14px 0 0; font-size: 17px; line-height: 1.5; color: var(--pine-muted) }
.hero-sub b { color: var(--pine-ink); font-weight: 600 }
.hero #notes { color: var(--ink); max-width: 760px }
.hero .lookup { color: var(--ink) }
.hero #lookup-box { padding-bottom: 6px }
.sale-banner { background: var(--blaze); color: #1a0b02 }

/* the plate and steps rise out of the hero */
main.shop { margin-top: -88px; position: relative; padding-top: 0 }
.plate { border-radius: 16px; box-shadow: 0 18px 40px -18px rgba(5, 20, 10, .55);
  background-color: var(--plate);
  background-image:
    radial-gradient(circle at 30% 40%, rgba(184, 150, 62, .55) 0 .7px, transparent 1.2px),
    radial-gradient(circle at 70% 75%, rgba(184, 150, 62, .35) 0 .6px, transparent 1.1px),
    radial-gradient(circle at 15% 85%, rgba(220, 200, 150, .22) 0 .5px, transparent 1px),
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, .06), transparent 60%);
  background-size: 9px 9px, 13px 13px, 7px 7px, 100% 100%; outline: 1px solid rgba(255, 255, 255, .06); outline-offset: -1px }
.plate .tag { color: rgba(232, 240, 230, .6) }
/* a "printing" line sweeps up the preview whenever the design changes */
.plate .scan { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--blaze) 20%, #ffd2b0 50%, var(--blaze) 80%, transparent);
  box-shadow: 0 0 18px 4px rgba(255, 106, 19, .45) }
.plate.printing .scan { animation: print-sweep .9s cubic-bezier(.3, .1, .3, 1) }
@keyframes print-sweep { 0% { bottom: 0; opacity: 0 } 10% { opacity: 1 } 85% { opacity: 1 } 100% { bottom: 100%; opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .plate.printing .scan { animation: none } }
.tagline { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 12px }
.tagline .input { font: 700 18px/1.2 var(--f-display); letter-spacing: .06em; text-transform: uppercase }

/* steps: the step number is an orange tab on the card's edge */
.stepcard { position: relative; border-radius: 14px; padding: 22px 20px 20px; border-color: var(--line) }
.step-h { gap: 12px; margin-bottom: 16px }
.step-h .n { width: 34px; height: 34px; border-radius: 8px; background: var(--pine); color: var(--pine-ink); font-size: 20px }
.step-h h2 { font-size: 26px; letter-spacing: .02em }
.btn { border-radius: 10px }
.btn.primary { background: var(--blaze); border-color: var(--blaze); color: #1a0b02; font-weight: 700 }
.btn.primary:hover { filter: brightness(1.05) }
.btn.primary:active, .btn:active { transform: translateY(1px) }
.btn.big { font-size: 18px; padding: 15px 18px; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: .06em }
.big-in { background: var(--bg); border-radius: 10px; font-size: 16px }
.swatches .sw i { width: 34px; height: 34px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18) }
.swatches .sw[aria-pressed="true"] i { outline: 3px solid var(--blaze); outline-offset: 2px }
.price .amt { font-size: 44px }
#order-card { border-top: 4px solid var(--blaze) }
.more > summary { background: color-mix(in srgb, var(--pine) 8%, var(--surface)); border-color: var(--pine) }
.more > summary::before { background-color: var(--pine) }
.more > summary::after { color: var(--pine) }
.upload-row .linkish { color: var(--pine); font-weight: 600 }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .upload-row .linkish { color: var(--pine-muted) } :root:not([data-theme="light"]) .more > summary::after { color: var(--pine-muted) } }

/* order sent: the ticket stamps in */
.done-card .ticket-id { animation: stamp .45s cubic-bezier(.2, 1.4, .4, 1) both }
@keyframes stamp { from { transform: scale(1.6) rotate(-6deg); opacity: 0 } to { transform: none; opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .done-card .ticket-id { animation: none } }

@media (max-width: 860px) {
  .hero { padding-bottom: 72px }
  .hero-copy { padding-top: 22px }
  .hero-sub { font-size: 15px }
  main.shop { margin-top: -52px }
  .wordmark { font-size: 24px }
}
/* pine used on light surfaces (numbers, details button); brighter in dark mode so it stays visible */
:root { --pine-ui: #1d3a2a }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --pine-ui: #3f7a57 } }
:root[data-theme="dark"] { --pine-ui: #3f7a57 }
.step-h .n { background: var(--pine-ui); color: #eef5ec }
.more > summary { border-color: var(--pine-ui); background: color-mix(in srgb, var(--pine-ui) 10%, var(--surface)) }
.more > summary::before { background-color: var(--pine-ui) }
.more > summary::after { color: var(--pine-ui) }

/* pay choice */
.paypick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.paybtn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; font: inherit }
.paybtn b { font-size: 15px }
.paybtn span { font-size: 12.5px; color: var(--muted) }
.paybtn[aria-checked="true"] { border-color: var(--blaze); background: color-mix(in srgb, var(--blaze) 9%, var(--surface)) }
.payflag { font-size: 13px; padding: 4px 8px; border-radius: 6px; background: var(--pine-ui); color: #eef5ec; align-self: flex-start }
