/* OFF HOURS — studio interface. Warm paper, ink, one hot accent. */
:root {
  --paper: #FFFFFF;
  --paper-2: #F2F2F2;
  --card: #FFFFFF;
  --ink: #000000;
  --ink-2: #333333;
  --ink-3: #6B6B6B;
  --line: #E0E0E0;
  --line-2: #BDBDBD;
  --hot: #D9452B;
  --hot-ink: #FFFFFF;
  --moss: #2F5A43;
  --ok: #24724A;
  --ok-bg: #DDEFE3;
  --bad: #A6321F;
  --bad-bg: #F8E1DB;
  --warn-bg: #FBEFCF;
  --radius: 14px;
  --f-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; min-width: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--f-ui); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--hot); }
img, svg { max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 400; }
:focus-visible { outline: 2.5px solid var(--hot); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mono { font-family: var(--f-mono); font-size: .86em; letter-spacing: .02em; }
.muted { color: var(--ink-3); }
.display { font-family: var(--f-display); letter-spacing: -.01em; line-height: 1; }
.display em { font-style: normal; color: var(--hot); }
.eyebrow { font: 700 11px/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

/* ------------------------------------------------------------------ buttons & forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--paper); font: 600 14px/1 var(--f-ui); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:hover { color: var(--paper); transform: translateY(-1px); box-shadow: 0 6px 14px -8px rgba(23,20,15,.6); }
.btn:active { transform: translateY(0); }
.btn--hot { background: var(--hot); border-color: var(--hot); color: var(--hot-ink); }
.btn--hot:hover { color: var(--hot-ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { color: var(--ink); background: var(--paper-2); }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn--lg { min-height: 56px; padding: 0 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.logout-btn { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 0; border-radius: 999px; background: rgba(118,118,128,.12); color: inherit; font: 600 12.5px/1 var(--f-ui); cursor: pointer; transition: background .18s ease, transform .15s ease; }
.logout-btn:hover { background: rgba(118,118,128,.2); }
.logout-btn:active { transform: scale(.96); }
.logout-btn svg { width: 17px; height: 17px; }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label, .label { font-weight: 600; font-size: 13px; }
.field .hint { font-size: 12.5px; color: var(--ink-3); }
.field .err, .err { font-size: 13px; color: var(--bad); font-weight: 600; }
input:not([type]), input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line-2);
  background: #fff; color: var(--ink); font: 15px/1.3 var(--f-ui);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(217,69,43,.18); }
input[aria-invalid="true"] { border-color: var(--bad); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--ink); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row > .grow { flex: 1 1 200px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }

.flash { padding: 12px 16px; border-radius: 12px; margin: 0 0 16px; font-weight: 500; }
.flash--success { background: var(--ok-bg); color: var(--ok); }
.flash--error { background: var(--bad-bg); color: var(--bad); }
.flash--info { background: var(--warn-bg); color: #7A5A12; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font: 700 10.5px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; background: var(--paper-2); color: var(--ink-2); }
.badge--hot { background: var(--hot); color: #fff; }
.badge--ok { background: var(--ok-bg); color: var(--ok); }
.badge--demo { background: #FBEFCF; color: #7A5A12; }

/* ------------------------------------------------------------------ app shell */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px clamp(16px, 4vw, 40px); }
.wordmark { display: inline-flex; align-items: center; text-decoration: none; }
.wordmark .logo { display: block; height: 26px; width: auto; }
.logo--sm { height: 16px; width: auto; display: inline-block; vertical-align: -3px; }
.logo--xs { height: 12px; width: auto; display: inline-block; vertical-align: -1px; }
.side .logo, .auth__art .logo { filter: invert(1); }
.backnav { position: fixed; left: 16px; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 13px/1 var(--f-ui); text-decoration: none; box-shadow: 0 10px 24px -12px rgba(23,20,15,.6); transition: transform .2s ease, box-shadow .2s ease; }
.backnav:hover { color: var(--paper); transform: translateX(-3px); box-shadow: 0 14px 28px -12px rgba(23,20,15,.7); }
.wordmark i { font-style: normal; color: var(--hot); }
.wordmark:hover { color: var(--ink); }
.top nav { display: flex; gap: 14px; align-items: center; font-size: 14px; }

.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--ink); color: var(--paper); padding: 22px 18px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.side .wordmark { color: var(--paper); }
.side .wordmark:hover { color: var(--paper); }
.side__shop { padding: 14px; border-radius: 12px; background: rgba(243,238,228,.08); }
.side__shop b { display: block; font: 400 22px/1.05 var(--f-display); margin-top: 4px; overflow-wrap: anywhere; }
.side__shop .eyebrow { color: rgba(243,238,228,.6); }
.side nav { display: grid; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: rgba(243,238,228,.78); font-weight: 500; }
.side nav a:hover { background: rgba(243,238,228,.08); color: var(--paper); }
.side nav a[aria-current="page"] { background: var(--paper); color: var(--ink); }
.side nav svg { width: 18px; height: 18px; flex-shrink: 0; }
.side__foot { margin-top: auto; display: grid; gap: 8px; font-size: 13px; color: rgba(243,238,228,.6); }
.side__foot form button { color: rgba(243,238,228,.8); }
.main { padding: clamp(18px, 3.5vw, 40px); min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1 { font: 400 clamp(34px, 4.6vw, 52px)/1 var(--f-display); letter-spacing: -.015em; }
.page-head h1 em { font-style: normal; color: var(--hot); }
.page-head p { margin: 8px 0 0; color: var(--ink-3); max-width: 60ch; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 2.4vw, 24px); }
.panel + .panel { margin-top: 18px; }
.panel h2 { font: 400 26px/1.1 var(--f-display); margin-bottom: 14px; }
.panel h3 { font: 700 13px/1.3 var(--f-ui); letter-spacing: .02em; margin: 18px 0 10px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 18px; align-items: start; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat b { display: block; font: 400 44px/1 var(--f-display); letter-spacing: -.02em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--ink-3); }
.stat:first-child { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.stat:first-child .eyebrow, .stat:first-child span { color: rgba(243,238,228,.65); }
.bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; align-items: end; height: 120px; margin-top: 8px; }
.bars div { background: var(--ink); border-radius: 5px 5px 2px 2px; min-height: 3px; position: relative; }
.bars div:hover { background: var(--hot); }
.bars-x { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; margin-top: 6px; font: 10px/1 var(--f-mono); color: var(--ink-3); text-align: center; }

table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; font: 700 10.5px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 0 10px 10px; border-bottom: 1.5px solid var(--ink); }
table.list td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tr:hover td { background: rgba(255,255,255,.55); }
table.list .num { text-align: right; font-variant-numeric: tabular-nums; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.empty { text-align: center; padding: 42px 16px; color: var(--ink-3); }
.empty .display { font-size: 30px; color: var(--ink); margin-bottom: 8px; }
.delta-pos { color: var(--ok); font-weight: 700; }
.delta-neg { color: var(--bad); font-weight: 700; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

.copy { display: flex; gap: 8px; align-items: stretch; }
.copy input { font-family: var(--f-mono); font-size: 13px; }

/* ------------------------------------------------------------------ public pages */
.public { min-height: 100vh; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 28px; }
.plan { display: flex; flex-direction: column; gap: 10px; }
.plan h2 { font: 400 30px/1.05 var(--f-display); }
.plan__price { font-size: 15px; margin: 6px 0 2px; }
.plan__price b { font: 400 44px/1 var(--f-display); }
.plan__list { list-style: none; padding: 0; margin: 8px 0 18px; display: grid; gap: 8px; font-size: 14.5px; }
.plan__list li::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.plan--featured { border-color: var(--hot); box-shadow: 0 0 0 1.5px var(--hot) inset; }
.plan .btn { margin-top: auto; }
.section { max-width: 1240px; margin: 0 auto; padding: 60px clamp(16px, 4vw, 40px); }
.section h2 { font: 400 clamp(34px, 5vw, 56px)/1 var(--f-display); letter-spacing: -.02em; margin-bottom: 26px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); }
.steps li { list-style: none; padding: 22px 22px 22px 0; border-bottom: 1px solid var(--line); }
.steps b { display: block; font: 400 26px/1.1 var(--f-display); margin: 8px 0; }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.demo-grid a { text-decoration: none; display: grid; gap: 10px; }
.demo-grid a:hover .ohc { transform: translateY(-4px) rotate(-.6deg); }
.demo-grid .ohc { transition: transform .35s cubic-bezier(.2,.9,.3,1.3); }
.footer { padding: 40px clamp(16px, 4vw, 40px); border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* customer: signup + card, always mobile-first */
.cust { min-height: 100vh; background: var(--shop-bg, var(--paper)); color: var(--shop-text, var(--ink)); }
.cust__wrap { max-width: 460px; margin: 0 auto; padding: 18px 16px 48px; }
.cust__bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 10px; }
.cust__bar .wordmark { font-size: 18px; }
.cust__sheet { background: var(--card); color: var(--ink); border-radius: 22px; padding: 22px 20px; margin-top: 18px; box-shadow: 0 18px 40px -24px rgba(0,0,0,.45); }
.cust__sheet h1 { font: 400 34px/1.02 var(--f-display); letter-spacing: -.01em; margin-bottom: 6px; }
.cust__sheet h2 { font: 400 24px/1.1 var(--f-display); margin-bottom: 10px; }
.cust__sheet p { margin: 0 0 14px; color: var(--ink-2); }
.wallet-btns { display: grid; gap: 10px; }
.wallet-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: 14px; background: #000; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.wallet-btn:hover { color: #fff; opacity: .9; }
.wallet-btn svg { width: 22px; height: 22px; }
.wallet-off { border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 14px 16px; font-size: 14px; color: var(--ink-2); background: var(--paper); }
.wallet-off b { display: block; color: var(--ink); margin-bottom: 2px; }
.live { display: inline-flex; align-items: center; gap: 6px; font: 700 10.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2fb36b; box-shadow: 0 0 0 0 rgba(47,179,107,.6); animation: livedot 2s infinite; }
@keyframes livedot { 70% { box-shadow: 0 0 0 7px rgba(47,179,107,0); } 100% { box-shadow: 0 0 0 0 rgba(47,179,107,0); } }
.toast { visibility: hidden; position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 140%); background: var(--ink); color: var(--paper); padding: 14px 20px; border-radius: 999px; font-weight: 600; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); transition: transform .4s cubic-bezier(.2,.9,.3,1.3); z-index: 50; max-width: calc(100vw - 32px); text-align: center; }
.toast.is-on { visibility: visible; transform: translate(-50%, 0); }

/* auth */
.auth-page { background: #F2F2F7; }
.auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(340px, .9fr) minmax(0, 1.1fr); }
.auth__art { position: sticky; top: 0; height: 100dvh; background: var(--ink); color: var(--paper); padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.auth__art::after { content: ""; position: absolute; width: min(46vw, 620px); aspect-ratio: 1; right: -35%; bottom: -26%; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.035), 0 0 0 140px rgba(255,255,255,.025); pointer-events: none; }
.auth__art .wordmark, .auth__art .wordmark:hover { color: var(--paper); }
.auth__art h2 { position: relative; z-index: 1; margin-top: 18px; font: 700 clamp(42px, 5vw, 76px)/.96 var(--f-display); letter-spacing: -.045em; }
.auth__art h2 em { color: var(--hot); }
.auth__art > p { position: relative; z-index: 1; margin: 0; color: rgba(255,255,255,.62); }
.auth__kicker { display: inline-flex; padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 12px; font-weight: 600; }
.auth__form { align-self: center; padding: clamp(36px, 7vw, 84px); display: flex; flex-direction: column; justify-content: center; max-width: 620px; width: 100%; }
.auth__form > .eyebrow { margin-bottom: 10px; letter-spacing: 0; text-transform: none; color: var(--hot); font-size: 13px; }
.auth__form h1 { font: 700 clamp(40px, 5vw, 58px)/1 var(--f-display); letter-spacing: -.045em; margin-bottom: 12px; }
.auth__intro { max-width: 44ch; margin: 0 0 28px; color: var(--ink-3); font-size: 16px; }
.auth__fields { padding: 22px; border-radius: 22px; background: #FFFFFF; box-shadow: 0 .5px 0 rgba(60,60,67,.16), 0 14px 36px rgba(0,0,0,.05); }
.auth__fields .field:last-of-type { margin-bottom: 20px; }
.auth__fields input { min-height: 50px; border: 0; background: #F2F2F7; }
.auth__fields input:focus { background: #FFFFFF; }
.password-field { position: relative; }
.password-field input { padding-right: 92px; }
.password-field button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 0 10px; border: 0; border-radius: 9px; background: rgba(118,118,128,.12); color: var(--ink); font: 600 12px/1 var(--f-ui); cursor: pointer; }
.auth__switch { margin: 22px 0 0; text-align: center; }
.auth__switch a { font-weight: 650; }
.auth__terms { margin: 14px auto 0; max-width: 52ch; color: var(--ink-3); text-align: center; font-size: 12px; }
.auth__mobile-logo { display: none; margin-bottom: 38px; }
.auth__mobile-logo .logo { height: 22px; width: auto; }
.demo-creds { margin-top: 24px; padding: 14px 16px; border-radius: 12px; background: var(--warn-bg); font-size: 13.5px; }

/* Minimal pilot access: one focused column, no marketing split-screen. */
.auth-page .auth { display: block; }
.auth-page .auth__art { display: none; }
.auth-page .auth__form { min-height: 100dvh; max-width: 470px; justify-content: center; padding: max(32px, env(safe-area-inset-top)) 18px calc(32px + env(safe-area-inset-bottom)); }
.auth-page .auth__mobile-logo { display: inline-flex; margin-bottom: 48px; }
.auth-page .auth__form h1 { font-size: clamp(38px, 10vw, 48px); }
.auth-page .auth__fields { padding: 20px; }

/* Centre the complete auth panel as one unit. A tall register form still grows and scrolls normally. */
.auth-page .auth { min-height: 100dvh; display: grid; place-items: center; padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom)); }
.auth-page .auth__form { min-height: 0; width: min(100%, 470px); margin: auto; padding: 0; justify-content: initial; }

/* ------------------------------------------------------------------ editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 24px; align-items: start; }
.editor__stage { position: sticky; top: 20px; display: grid; gap: 14px; justify-items: center; }
.phone { width: min(100%, 390px); border-radius: 52px; background: #121212; padding: 11px; box-shadow: 0 40px 70px -30px rgba(23,20,15,.6), inset 0 0 0 2px #3a3a3a; }
.phone__screen { border-radius: 42px; background: #F2F1EE; padding: 54px 14px 20px; min-height: 620px; position: relative; overflow: hidden; }
.phone__screen::before { content: ""; position: absolute; top: 12px; left: 50%; width: 110px; height: 32px; margin-left: -55px; border-radius: 20px; background: #121212; }
.phone__bar { display: flex; justify-content: space-between; padding: 0 6px 12px; }
.phone__bar span { width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.08); display: grid; place-items: center; color: #000000; }
.preview-tools { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--paper-2); gap: 2px; }
.seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 999px; font: 600 12.5px/1 var(--f-ui); cursor: pointer; color: var(--ink-2); min-height: 32px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.editor__controls .panel { padding: 18px; }
.theme-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.theme-pick button { text-align: left; border: 1.5px solid var(--line-2); background: #fff; border-radius: 12px; padding: 10px 12px; cursor: pointer; font: inherit; display: grid; gap: 4px; }
.theme-pick button b { font-size: 13.5px; }
.theme-pick button span { font-size: 12px; color: var(--ink-3); line-height: 1.35; }
.theme-pick button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--card); }
.theme-pick i { display: flex; gap: 3px; }
.theme-pick i em { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.swatch { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 6px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; }
.swatch input[type=color] { width: 34px; height: 34px; border: 0; padding: 0; border-radius: 8px; background: none; cursor: pointer; flex-shrink: 0; }
.swatch input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.swatch input[type=color]::-webkit-color-swatch { border: 1px solid rgba(0,0,0,.15); border-radius: 8px; }
.swatch label { font-size: 12px; font-weight: 600; display: grid; }
.swatch label small { font: 11px/1.2 var(--f-mono); color: var(--ink-3); font-weight: 400; }
.icon-pick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.icon-pick button { aspect-ratio: 1; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--ink); padding: 0; min-height: 44px; }
.icon-pick button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.icon-pick svg { width: 24px; height: 24px; }
.upload { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1.5px dashed var(--line-2); border-radius: 12px; background: #fff; }
.upload__thumb { width: 52px; height: 52px; border-radius: 10px; background: var(--paper-2) center / contain no-repeat; flex-shrink: 0; display: grid; place-items: center; color: var(--ink-3); font-size: 11px; }
.upload__meta { flex: 1; min-width: 0; font-size: 13px; }
.upload__meta b { display: block; }
.savebar { position: sticky; bottom: 0; margin-top: 16px; padding: 14px; border-radius: 16px; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: space-between; gap: 12px; z-index: 5; }
.savebar .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.savebar .status { font-size: 13px; color: rgba(243,238,228,.75); }
.warn-list { margin: 0; padding: 12px 14px 12px 30px; border-radius: 12px; background: var(--warn-bg); color: #6B4E0E; font-size: 13px; }
details.more summary { cursor: pointer; font-weight: 600; font-size: 13px; padding: 6px 0; }

/* ------------------------------------------------------------------ QR print */
.poster { width: 148mm; min-height: 210mm; margin: 24px auto; padding: 16mm 14mm; background: var(--bg, #fff); color: var(--text, #000000); border-radius: 6mm; display: grid; justify-items: center; align-content: start; gap: 8mm; text-align: center; box-shadow: 0 20px 50px -24px rgba(0,0,0,.35); }
.poster h1 { font-family: var(--f-display-shop, var(--f-display)); font-size: 15mm; line-height: .95; }
.poster .qrbox { width: 82mm; background: #fff; padding: 5mm; border-radius: 5mm; }
.poster p { font-size: 5mm; margin: 0; max-width: 110mm; }
@media print { body { background: #fff; } .no-print { display: none !important; } .poster { box-shadow: none; margin: 0 auto; } }

/* ------------------------------------------------------------------ staff checkout */
.counter { min-height: 100vh; background: #000000; color: #FFFFFF; display: flex; flex-direction: column; }
.counter__top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.counter__top b { font: 400 22px/1 var(--f-display); }
.counter__top a, .counter__top button { color: rgba(255,255,255,.75); font-size: 13px; }
.counter__body { flex: 1; width: 100%; max-width: 520px; margin: 0 auto; padding: 18px 16px 32px; display: flex; flex-direction: column; gap: 14px; }
.scanbox { position: relative; border-radius: 22px; overflow: hidden; background: #000; aspect-ratio: 1; display: grid; place-items: center; }
.scanbox video { width: 100%; height: 100%; object-fit: cover; }
.scanbox__frame { position: absolute; inset: 16%; border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,.45); border: 2px solid rgba(255,255,255,.9); pointer-events: none; }
.scanbox__frame::after { content: ""; position: absolute; left: 6%; right: 6%; height: 2px; background: var(--hot); top: 50%; box-shadow: 0 0 12px var(--hot); animation: scanline 2.2s ease-in-out infinite; }
@keyframes scanline { 0%,100% { top: 12%; } 50% { top: 88%; } }
.scanbox__idle { text-align: center; padding: 24px; color: rgba(255,255,255,.8); display: grid; gap: 14px; justify-items: center; }
.scanbox__idle svg { width: 56px; height: 56px; }
.counter .btn { background: #FFFFFF; color: #000000; border-color: #FFFFFF; }
.counter .btn--hot { background: var(--hot); border-color: var(--hot); color: #fff; }
.counter .btn--ghost { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,.35); }
.counter input { background: #1d1d1d; border-color: #3a3a3a; color: #FFFFFF; font-size: 17px; min-height: 52px; }
.counter input::placeholder { color: #8a857c; }
.counter .field > label { color: rgba(255,255,255,.85); }
.member { background: #1c1b19; border: 1px solid #2e2c28; border-radius: 20px; padding: 16px; display: grid; gap: 14px; }
.member__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.member__head b { font: 400 30px/1 var(--f-display); display: block; }
.member__head .mono { color: #b9b2a6; }
.member__prog { display: flex; gap: 6px; flex-wrap: wrap; }
.member__prog i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed #6b665d; }
.member__prog i.on { background: var(--hot); border: 0; }
.member__pts { font: 400 52px/1 var(--f-display); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #1c1b19; padding: 5px; border-radius: 16px; }
.tabs button { min-height: 52px; border: 0; border-radius: 12px; background: transparent; color: #cfc8bc; font: 700 15px/1 var(--f-ui); cursor: pointer; }
.tabs button[aria-pressed="true"] { background: #FFFFFF; color: #000000; }
.tabs button:disabled { opacity: .35; cursor: not-allowed; }
.stepper { display: grid; grid-template-columns: 64px 1fr 64px; gap: 10px; align-items: center; }
.stepper button { height: 64px; border-radius: 16px; border: 1.5px solid #3a3a3a; background: #1d1d1d; color: #FFFFFF; font-size: 30px; cursor: pointer; }
.stepper output { text-align: center; font: 400 64px/1 var(--f-display); }
.choices { display: grid; gap: 8px; }
.choice { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; text-align: left; padding: 14px 16px; border-radius: 16px; border: 1.5px solid #3a3a3a; background: #1d1d1d; color: #FFFFFF; cursor: pointer; font: inherit; min-height: 60px; }
.choice[aria-pressed="true"] { border-color: var(--hot); box-shadow: inset 0 0 0 1.5px var(--hot); }
.choice:disabled { opacity: .4; cursor: not-allowed; }
.choice b { font-size: 16px; }
.choice small { color: #b9b2a6; grid-column: 1; }
.choice .cost { grid-row: span 2; font: 700 14px/1 var(--f-mono); color: #FFFFFF; }
.confirm { background: #FFFFFF; color: #000000; border-radius: 20px; padding: 18px; display: grid; gap: 10px; }
.confirm h3 { font: 400 28px/1.05 var(--f-display); margin: 0; }
.confirm .big { font: 400 56px/1 var(--f-display); }
.confirm .kv dt { color: #6e665a; }
.result { border-radius: 22px; padding: 28px 20px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.result--ok { background: #1f6b45; color: #fff; }
.result--err { background: #8f2a19; color: #fff; }
.result .tick { width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.result .tick svg { width: 40px; height: 40px; }
.result h2 { font: 400 34px/1.05 var(--f-display); }
.result p { margin: 0; opacity: .92; }
.result .discount { font: 400 48px/1 var(--f-display); }
.counter .err-inline { background: #3a1610; color: #ffd6cc; border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; z-index: 45; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
  .side__shop { display: none; }
  .side nav { display: flex; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; scrollbar-width: none; gap: 4px; width: 100%; order: 3; padding: 0 0 2px; }
  .side nav::-webkit-scrollbar { display: none; }
  .side nav a { flex: 0 0 auto; min-height: 42px; white-space: nowrap; padding: 8px 12px; scroll-snap-align: start; }
  .side__foot { margin: 0 0 0 auto; flex-direction: row; display: flex; gap: 14px; }
  .cols, .editor { grid-template-columns: 1fr; }
  .editor__stage { position: static; }
  .auth { grid-template-columns: 1fr; }
  .auth__art { position: relative; height: auto; min-height: 230px; padding: 24px; }
  .auth__art h2 { font-size: clamp(36px, 7vw, 58px); }
  .auth__art h2 br { display: none; }
  .main { width: 100%; max-width: 920px; margin-inline: auto; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 70px; }
  .shell { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .side { padding: 10px 14px; flex-wrap: nowrap; }
  .side .wordmark .logo { height: 21px; }
  .side__foot { gap: 10px; align-items: center; white-space: nowrap; }
  .side__foot > span { display: none; }
  .side__foot .logout-btn { width: 40px; padding: 0; background: rgba(118,118,128,.14); }
  .side__foot .logout-btn span { display: none; }
  .side nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; width: 100%; order: initial; gap: 2px; padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); background: rgba(0,0,0,.94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 -8px 24px rgba(0,0,0,.15); }
  .side nav a { min-width: 72px; min-height: 56px; padding: 6px 8px; flex-direction: column; justify-content: center; gap: 4px; border-radius: 10px; font-size: 10.5px; line-height: 1.1; text-align: center; }
  .side nav svg { width: 21px; height: 21px; }
  .main { padding: 20px 14px; }
  .page-head { align-items: flex-start; margin-bottom: 20px; }
  .page-head h1 { font-size: clamp(32px, 10vw, 44px); overflow-wrap: anywhere; }
  .panel { border-radius: 12px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 14px; }
  .stat b { font-size: 36px; }
  .row > .btn { flex-grow: 1; }
  .savebar { margin-inline: -6px; bottom: calc(76px + env(safe-area-inset-bottom)); flex-wrap: wrap; }
  .shell + .backnav { display: none; }
  .auth__art { display: none; }
  .auth__form { min-height: 100dvh; justify-content: flex-start; padding: max(28px, env(safe-area-inset-top)) 18px calc(32px + env(safe-area-inset-bottom)); }
  .auth__mobile-logo { display: inline-flex; }
  .auth__form h1 { font-size: 38px; }
  .auth__intro { margin-bottom: 22px; font-size: 15px; }
  .auth__fields { margin-inline: -2px; padding: 18px 16px; border-radius: 20px; }
  input:not([type]), input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], select, textarea { font-size: 16px; }
  .counter__top { padding-inline: 14px; }
  .counter__body { padding-inline: 12px; }
}
@media (max-width: 560px) {
  table.list.stack thead { display: none; }
  table.list.stack tr { display: grid; grid-template-columns: 1fr auto; padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.list.stack td { border: 0; padding: 2px 4px; }
  .theme-pick { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .copy { flex-direction: column; }
  .copy .btn { width: 100%; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .stepper { grid-template-columns: 56px minmax(0, 1fr) 56px; }
}

/* ------------------------------------------------------------------ iOS-style owner dashboard */
body.dashboard { --dash-bg: #F2F2F7; --dash-sep: rgba(60, 60, 67, .16); --dash-blue: #007AFF; background: var(--dash-bg); }
.dashboard .shell { background: var(--dash-bg); }
.dashboard .side { background: rgba(248, 248, 250, .92); color: var(--ink); border-right: .5px solid var(--dash-sep); }
.dashboard .side .logo { filter: none; }
.dashboard .side .wordmark, .dashboard .side .wordmark:hover { color: var(--ink); }
.dashboard .side__shop { background: #FFFFFF; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.dashboard .side__shop .eyebrow { color: var(--ink-3); }
.dashboard .side nav { gap: 5px; }
.dashboard .side nav a { color: var(--ink-2); min-height: 44px; border-radius: 12px; transition: background .18s ease, color .18s ease, transform .18s ease; }
.dashboard .side nav a:hover { background: rgba(118, 118, 128, .10); color: var(--ink); transform: translateX(2px); }
.dashboard .side nav a[aria-current="page"] { background: #FFFFFF; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.09); }
.dashboard .side nav a[aria-current="page"] svg { color: var(--dash-blue); }
.dashboard .side__foot, .dashboard .side__foot form button { color: var(--ink-3); }
.dashboard .main { animation: dashEnter .45s cubic-bezier(.2,.8,.2,1) both; }
.dashboard .page-head { padding: 4px 2px; }
.dashboard .page-head .eyebrow { letter-spacing: 0; text-transform: none; font-size: 13px; }
.dashboard .page-head h1 { font-weight: 700; letter-spacing: -.04em; }
.dashboard .page-head h1 em { color: var(--ink); }
.dashboard .panel { border: 0; border-radius: 20px; background: #FFFFFF; box-shadow: 0 .5px 0 var(--dash-sep), 0 8px 30px rgba(0,0,0,.035); }
.dashboard .panel h2 { font-weight: 650; letter-spacing: -.025em; }
.dashboard .stats { gap: 12px; }
.dashboard .stat { border: 0; border-radius: 18px; background: #FFFFFF; box-shadow: 0 .5px 0 var(--dash-sep); transition: transform .2s ease, box-shadow .2s ease; }
.dashboard .stat:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.07); }
.dashboard .stat:first-child { background: var(--ink); color: #FFFFFF; }
.dashboard .stat b { font-weight: 650; letter-spacing: -.045em; }
.dashboard .bars { gap: 8px; }
.dashboard .bars div { border-radius: 999px 999px 4px 4px; background: linear-gradient(180deg, #333, #000); transform-origin: bottom; animation: dashBar .7s cubic-bezier(.2,.8,.2,1) both; }
.dashboard .bars div:nth-child(2n) { animation-delay: 40ms; }
.dashboard .bars div:nth-child(3n) { animation-delay: 80ms; }
.dashboard table.list th { border-bottom-color: var(--dash-sep); letter-spacing: 0; text-transform: none; font-size: 12px; }
.dashboard table.list td { border-bottom-color: var(--dash-sep); }
.dashboard table.list tbody tr:last-child td { border-bottom: 0; }
.dashboard table.list tr:hover td { background: #F7F7FA; }
.dashboard .btn { border: 0; min-height: 44px; box-shadow: none; }
.dashboard .btn--ghost { background: rgba(118,118,128,.12); color: var(--ink); }
.dashboard .btn--ghost:hover { background: rgba(118,118,128,.18); }
.dashboard .btn--hot { background: var(--ink); color: #FFFFFF; }
.dashboard .badge { letter-spacing: 0; text-transform: none; }
.dashboard-home .top { position: sticky; top: 0; z-index: 30; background: rgba(248,248,250,.82); border-bottom: .5px solid var(--dash-sep); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.dashboard-home .section { max-width: 1100px; }
@keyframes dashEnter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes dashBar { from { transform: scaleY(0); opacity: .35; } to { transform: scaleY(1); opacity: 1; } }

@media (max-width: 1100px) {
  .dashboard .side { border-right: 0; border-bottom: .5px solid var(--dash-sep); background: rgba(248,248,250,.88); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
  .dashboard .side nav a:hover { transform: none; }
}

@media (max-width: 720px) {
  .dashboard .side { background: rgba(255,255,255,.88); box-shadow: none; }
  .dashboard .side nav { background: rgba(248,248,250,.92); border-top: .5px solid var(--dash-sep); box-shadow: 0 -8px 28px rgba(0,0,0,.06); }
  .dashboard .side nav a { color: var(--ink-3); }
  .dashboard .side nav a:hover { background: transparent; }
  .dashboard .side nav a[aria-current="page"] { background: rgba(118,118,128,.12); box-shadow: none; color: var(--ink); }
  .dashboard .side nav a[aria-current="page"] svg { color: var(--dash-blue); }
  .dashboard .main { padding-top: 24px; }
  .dashboard .panel { border-radius: 18px; padding: 18px 16px; }
  .dashboard .page-head .row { width: 100%; }
  .dashboard .page-head .row .btn { flex: 1 1 140px; }
  .dashboard .stats { display: flex; overflow-x: auto; margin-inline: -14px; padding: 0 14px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .dashboard .stats::-webkit-scrollbar { display: none; }
  .dashboard .stat { flex: 0 0 min(72vw, 250px); min-height: 132px; scroll-snap-align: start; }
  .dashboard-home .top nav .muted { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard .main, .dashboard .bars div { animation: none !important; }
  .dashboard .side nav a, .dashboard .stat { transition: none !important; }
}

/* ------------------------------------------------------------------ your plan (programme page) */
.plan-cols { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.plan-col { display: grid; gap: 18px; min-width: 0; }
.plan-col .panel + .panel { margin-top: 0; }
.plan-save { justify-self: start; min-width: 180px; }
.programme-summary { min-width: 240px; max-width: 360px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 10px 30px -24px rgba(0,0,0,.45); }
.programme-summary span, .programme-summary small { display: block; }
.programme-summary span { color: var(--ink-3); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.programme-summary b { display: block; margin-top: 3px; font-size: 18px; }
.programme-summary small { margin-top: 3px; color: var(--ink-3); line-height: 1.35; }
@media (max-width: 680px) { .programme-summary { width: 100%; max-width: none; } .plan-save { width: 100%; } }
@media (max-width: 980px) { .plan-cols { grid-template-columns: 1fr; } }

.earn-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.earn { position: relative; display: grid; gap: 6px; padding: 16px; border-radius: 14px; border: 1.5px solid var(--line-2); cursor: pointer; background: var(--card); transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease; }
.earn:hover { border-color: var(--ink-3); }
.earn:active { transform: scale(.985); }
.earn input { position: absolute; opacity: 0; pointer-events: none; }
.earn b { font: 700 17px/1.2 var(--f-display); }
.earn__say { font-size: 13.5px; color: var(--ink-2); font-style: italic; }
.earn.is-on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.earn.is-locked { opacity: .5; cursor: not-allowed; }
.earn:focus-within { outline: 2.5px solid var(--hot); outline-offset: 2px; }

.presets { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper-2); }
.presets button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font: 600 13px/1 var(--f-ui); color: var(--ink-2); cursor: pointer; transition: background .2s ease, color .2s ease; }
.presets button.is-on { background: var(--ink); color: var(--paper); }

.sentence { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 16px 0 6px; font: 500 17px/1.3 var(--f-ui); }
.sentence input { width: auto; flex: 0 0 auto; min-height: 46px; padding: 0 12px; font-size: 17px; }
.sentence .s-num { width: 70px; text-align: center; }
.sentence .s-plural { width: 140px; }
.sentence .s-reward { width: 190px; }

.preview { margin: 18px 0 8px; padding: 16px 18px; border-radius: 14px; border: 1.5px dashed var(--line-2); background: var(--paper-2); }
.preview .eyebrow { margin: 0 0 6px; }
.preview__say { margin: 0; font: italic 500 22px/1.25 var(--f-display); letter-spacing: -.01em; }

details.more { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
details.more summary { cursor: pointer; font: 600 13px/1.2 var(--f-ui); color: var(--ink-2); list-style: none; }
details.more summary::before { content: "▸ "; }
details.more[open] summary::before { content: "▾ "; }
details.more > .grid2 { margin-top: 14px; }

.calc h2 { font: 400 clamp(26px, 3vw, 34px)/1.05 var(--f-display); letter-spacing: -.02em; }
.calc__out { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.calc__out .eyebrow { margin: 0; }
.calc__big { margin: 8px 0 0; font: 600 clamp(56px, 7vw, 76px)/.95 var(--f-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.calc__sub { margin: 6px 0 16px; color: var(--ink-2); }
.calc__bar { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; height: 10px; border-radius: 999px; overflow: visible; }
.calc__bar .seg { height: 100%; }
.calc__bar .seg--light { background: #111; border-radius: 999px 0 0 999px; }
.calc__bar .seg--std { background: #D4EDDD; }
.calc__bar .seg--gen { background: #F6D7D2; border-radius: 0 999px 999px 0; }
.calc__bar i { position: absolute; top: -5px; bottom: -5px; width: 3px; border-radius: 2px; background: var(--ink); transform: translateX(-50%); transition: left .35s ease; }
.calc__scale { display: flex; justify-content: space-between; margin-top: 8px; font: 600 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.calc__band { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 16px 0 14px; font-size: 14.5px; color: var(--ink-2); }
.calc__rows { margin: 0; display: grid; }
.calc__rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.calc__rows dt { color: var(--ink-2); }
.calc__rows dd { margin: 0; font-weight: 600; text-align: right; }
.calc__tip { margin: 14px 0 0; padding: 14px 16px; border-radius: 14px; background: #FBEFCF; color: #5B4300; font-size: 14px; line-height: 1.45; }
.calc[hidden] { display: none; }

/* ------------------------------------------------------------------ card wizard (design page) */
.wizard { position: relative; }
.wizard__steps { list-style: none; margin: 0 0 18px; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.wizard__steps li { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--paper-2); color: var(--ink-3); font: 600 13px/1 var(--f-ui); transition: background .25s ease, color .25s ease; }
.wizard__steps li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); color: #fff; font-size: 12px; transition: background .25s ease; }
.wizard__steps li.is-on { color: var(--ink); }
.wizard__steps li.is-on span { background: var(--ink); }

.wz-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 14px; }
.wz-cat { display: grid; justify-items: center; gap: 8px; padding: 16px 8px; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--card); cursor: pointer; font: inherit; color: var(--ink); transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease; }
.wz-cat:hover { transform: translateY(-2px); border-color: var(--ink-3); }
.wz-cat:active { transform: scale(.97); }
.wz-cat[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.wz-cat b { font: 600 14px/1.2 var(--f-ui); text-align: center; }
.wz-cat__icon svg { width: 30px; height: 30px; }

.wz-icons { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 18px; }
.wz-icon { width: 60px; height: 60px; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--card); display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: transform .15s ease, background .2s ease, border-color .2s ease; }
.wz-icon svg { width: 28px; height: 28px; }
.wz-icon:hover { border-color: var(--ink-3); }
.wz-icon:active { transform: scale(.94); }
.wz-icon[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.wz-palettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin: 14px 0 14px; }
.wz-pal { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 2fr 1fr; gap: 3px; height: 64px; padding: 4px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--card); cursor: pointer; transition: transform .15s ease, box-shadow .2s ease; }
.wz-pal i { border-radius: 8px; }
.wz-pal i:first-child { grid-row: 1 / 3; }
.wz-pal:hover { transform: translateY(-2px); }
.wz-pal:active { transform: scale(.96); }
.wz-pal[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }

.wz-own { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; }
.wz-own[hidden] { display: none; }
.wz-col { display: grid; justify-items: center; gap: 6px; font: 600 12px/1 var(--f-ui); color: var(--ink-2); }
.wz-col input { width: 52px; height: 40px; border: 0; padding: 0; background: none; cursor: pointer; }

.wz-logo { display: flex; gap: 8px; flex-wrap: wrap; }
.wz-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.wz-done { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: #E7F7EC; color: #14532D; font: 600 14px/1.4 var(--f-ui); }
.wz-done[hidden] { display: none; }

.advanced { margin-top: 18px; }
.advanced > summary { cursor: pointer; font: 600 14px/1.2 var(--f-ui); color: var(--ink-2); padding: 12px 4px; list-style: none; }
.advanced > summary::before { content: "▸ "; }
.advanced[open] > summary::before { content: "▾ "; }
.advanced > .panel { margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { .wz-cat, .wz-icon, .wz-pal, .wizard__steps li { transition: none !important; } }

/* ------------------------------------------------------------------ 3-step card designer */
.designer { padding: 6px 6px 18px; }
.step { border-bottom: 1px solid var(--line); }
.step__head { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px 10px; cursor: pointer; }
.step__head:focus-visible { outline: 2.5px solid var(--hot); outline-offset: 2px; border-radius: 10px; }
.step__num { width: 28px; height: 28px; border-radius: 50%; background: var(--paper-2); color: var(--ink-2); display: grid; place-items: center; font: 700 13px/1 var(--f-ui); flex-shrink: 0; transition: background .25s ease, color .25s ease; }
.step.is-open .step__num { background: var(--ink); color: var(--paper); }
.step__title { font: 600 17px/1.2 var(--f-display); letter-spacing: -.01em; }
.step__sum { margin-left: auto; font: 500 14px/1.2 var(--f-ui); color: var(--ink-3); text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step.is-open .step__sum { display: none; }
.step__body { padding: 0 10px 18px 50px; animation: dzIn .28s ease; }
.step__body[hidden] { display: none; }
@keyframes dzIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.dz-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dz-cat { display: grid; justify-items: center; gap: 8px; padding: 14px 6px; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--card); cursor: pointer; font: inherit; color: var(--ink); transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease; }
.dz-cat img { width: 36px; height: 36px; }
.dz-cat b { font: 600 13.5px/1.2 var(--f-ui); text-align: center; }
.dz-cat:hover { transform: translateY(-2px); border-color: var(--ink-3); }
.dz-cat:active { transform: scale(.96); }
.dz-cat[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }

.dz-emoji { display: flex; flex-wrap: wrap; gap: 12px; }
.dz-emo { width: 62px; height: 62px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--card); display: grid; place-items: center; cursor: pointer; padding: 0; transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease; }
.dz-emo img { width: 34px; height: 34px; }
.dz-emo:hover { border-color: var(--ink-3); }
.dz-emo:active { transform: scale(.92); }
.dz-emo[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }

.dz-stepper { display: inline-flex; align-items: center; gap: 14px; padding: 4px; border-radius: 999px; background: var(--paper-2); }
.dz-step { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); font: 500 22px/1 var(--f-ui); cursor: pointer; color: var(--ink); transition: transform .12s ease; }
.dz-step:active { transform: scale(.9); }
.dz-step:disabled { opacity: .35; cursor: default; }
.dz-stepper output { min-width: 34px; text-align: center; font: 600 22px/1 var(--f-display); font-variant-numeric: tabular-nums; }

.dz-palettes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dz-pal { display: grid; justify-items: center; gap: 6px; padding: 6px; border: 0; background: none; cursor: pointer; font: inherit; color: var(--ink-2); }
.dz-pal small { font: 600 12px/1.1 var(--f-ui); }
.dz-pal__card { width: 100%; height: 62px; border-radius: 14px; border: 1.5px solid var(--line-2); display: grid; place-items: end start; padding: 8px; box-sizing: border-box; transition: transform .15s ease, box-shadow .2s ease; }
.dz-pal__card i { width: 14px; height: 14px; border-radius: 50%; display: block; }
.dz-pal--own .dz-pal__card { background: repeating-linear-gradient(45deg, #FFF 0 8px, #F2F2F2 8px 16px); }
.dz-pal:hover .dz-pal__card { transform: translateY(-2px); }
.dz-pal:active .dz-pal__card { transform: scale(.95); }
.dz-pal[aria-pressed="true"] .dz-pal__card { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.dz-own { display: flex; gap: 18px; margin-top: 16px; }
.dz-own[hidden] { display: none; }
.dz-col { display: grid; justify-items: center; gap: 6px; font: 600 12px/1 var(--f-ui); color: var(--ink-2); }
.dz-col input { width: 56px; height: 42px; border: 0; padding: 0; background: none; cursor: pointer; }
.dz-logo { display: flex; gap: 8px; flex-wrap: wrap; }
.dz-nav { display: flex; margin-top: 18px; }
.dz-save { width: calc(100% - 10px); margin: 18px 10px 0; }
.dz-advanced { text-align: center; margin: 14px 0 0; font-size: 14px; }
.dz-advanced a { color: var(--ink-3); }

.dz-toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 70; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 14px/1.3 var(--f-ui); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45); animation: dzIn .25s ease; }
.dz-toast[hidden] { display: none; }

@media (max-width: 560px) {
  .step__body { padding-left: 10px; }
  .dz-cats { grid-template-columns: repeat(2, 1fr); }
  .dz-palettes { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .step__body, .dz-toast, .dz-emo, .dz-cat, .dz-pal__card { animation: none !important; transition: none !important; } }
.dz-cat__icon svg, .dz-emo svg { width: 30px; height: 30px; }
.dz-emo svg { width: 30px; height: 30px; }
