/* Brighton Print by Brighton Solution – single stylesheet.
   Sections: fonts · tokens · base · layout · header/nav · buttons · forms · cards · pills ·
   alerts · tables/lists · tabs · timeline · toasts · tabbar · misc · page parts (appended). */

/* ---------- fonts (self-hosted from @fontsource) ---------- */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/jakarta/plus-jakarta-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/jakarta/plus-jakarta-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/jakarta/plus-jakarta-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/jakarta/plus-jakarta-sans-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/jakarta/plus-jakarta-sans-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/mono/jetbrains-mono-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/mono/jetbrains-mono-latin-700-normal.woff2) format('woff2'); }

/* ---------- tokens ---------- */
:root {
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* CMYK accents */
  --cyan: #6366f1;
  --magenta: #f97316;
  --yellow: #fbbf24;
  --key: #1e1b4b;

  /* Neutrals: white surfaces on a faint cool-grey page, soft 1px borders. */
  --bg: #f7f7fb;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f6f9;
  --surface-3: #eaeef3;
  --border: #e4e8ee;
  --border-strong: #cfd6df;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #5f6b7d; /* 5:1 on white, 4.7:1 on --bg */

  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-ink: #ffffff;
  --primary-soft: #eef2ff;
  --primary-soft-ink: #3730a3;
  --primary-50: #f3f9fd;

  --success: #15803d;
  --success-soft: #e3f7ea;
  --warn: #b45309;
  --warn-soft: #fef5dc;
  --danger: #c0262d;
  --danger-soft: #fdecec;
  --info-soft: #eef2ff;
  --wa: #15803d; /* white text 5:1 */
  --wa-hover: #166534;

  --brand: var(--primary);
  --brand-ink: #ffffff;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-btn: 10px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow: 0 10px 30px -12px rgba(49, 46, 129, .18), 0 2px 6px rgba(15, 23, 42, .04);
  --shadow-lg: 0 24px 48px -16px rgba(15, 23, 42, .20), 0 8px 16px -8px rgba(15, 23, 42, .08);
  --ring-color: #4f46e5; /* opaque focus ring: 3:1+ against page and surface */
  --ring: 0 0 0 3px var(--ring-color);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 64px;
  --tabbar-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  color-scheme: only light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
main { flex: 1 0 auto; width: 100%; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(1.35rem, 1.15rem + 1vw, 1.85rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.12rem, 1rem + .5vw, 1.4rem); }
h3 { font-size: 1rem; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
small { font-size: .85em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
code, .mono { font-family: var(--mono); font-size: .92em; }
b, strong { font-weight: 700; }
::selection { background: rgba(0, 119, 182, .18); }

:focus-visible { outline: 2px solid var(--ring-color); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.skip-link:focus { top: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

.icon { flex: none; width: 20px; height: 20px; vertical-align: middle; }

/* ---------- layout ---------- */
/* Side padding is never less than the notch / rounded-corner inset (viewport-fit=cover, phones in landscape). */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.container-narrow { width: 100%; max-width: 680px; margin: 0 auto; padding: 0 16px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.container-mid { width: 100%; max-width: 920px; margin: 0 auto; padding: 0 16px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.main-shop, .main-admin { padding: 24px 0 40px; }
.main-auth, .main-bare { padding: 32px 0 48px; }
.main-customer { padding: 20px 0 32px; }
@media (max-width: 480px) {
  .container { padding: 0 16px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .main-shop, .main-admin { padding-top: 16px; }
}

.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
.stack-lg > * + * { margin-top: 28px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 380px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.split { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 22px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 6px 0 0; color: var(--muted); max-width: 62ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
.eyebrow .icon { width: 15px; height: 15px; }
.lead { font-size: 1.08rem; color: var(--text-2); }
.muted { color: var(--muted); }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
@media (max-width: 520px) { .hide-xs { display: none !important; } }
@media (max-width: 860px) { .hide-mobile { display: none !important; } }
@media (min-width: 861px) { .show-mobile { display: none !important; } }

/* ---------- brand + headers ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; min-width: 0; }
.brand:hover { color: var(--text); }
.brand-name { font-size: 1.15rem; letter-spacing: -.02em; font-weight: 600; white-space: nowrap; }
.brand-name b { font-weight: 800; }
.brand-shop { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-shop-name { font-weight: 750; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }
.brand-shop small { font-size: .72rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.logo-mark { flex: none; border-radius: 9px; box-shadow: 0 1px 0 rgba(255,255,255,.06) inset; }
.admin-tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--key); color: #fff; vertical-align: middle; }
.site-header, .app-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg-elev) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--border);
}
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .site-header, .app-header { background: var(--bg-elev); }
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.header-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { padding: 8px 12px; border-radius: 999px; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: .94rem; transition: background .15s var(--ease), color .15s var(--ease); }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); background: var(--surface-2); }
@media (max-width: 860px) { .site-nav { display: none; } }

.app-nav { display: flex; gap: 2px; }
.nav-item { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; transition: background .15s var(--ease), color .15s var(--ease); }
.nav-item:hover { color: var(--text); background: var(--surface-2); }
.nav-item.is-active { color: var(--primary-soft-ink); background: var(--primary-soft); }
.nav-item .icon { width: 18px; height: 18px; }
@media (max-width: 1120px) { .nav-item .icon { display: none; } }
@media (max-width: 860px) { .app-nav { display: none; } }

.inline-form { display: inline; margin: 0; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--text); --btn-bd: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border: 1px solid var(--btn-bd); border-radius: var(--radius-btn);
  background: var(--btn-bg); color: var(--btn-fg);
  font: inherit; font-weight: 650; font-size: .95rem; line-height: 1.1; letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer; user-select: none;
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease), transform .1s var(--ease);
}
.btn:hover { color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
/* Focus: opaque ring; the transparent outline is what forced-colors (Windows High Contrast) mode draws. */
.btn:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--ring); }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { --btn-bg: var(--primary); --btn-fg: var(--primary-ink); --btn-bd: transparent; box-shadow: 0 1px 2px rgba(0, 72, 112, .25), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-primary:hover { --btn-bg: var(--primary-hover); }
.btn-brand { --btn-bg: var(--brand); --btn-fg: var(--brand-ink); --btn-bd: transparent; box-shadow: 0 1px 2px rgba(15, 23, 42, .18); }
.btn-brand:hover { filter: brightness(1.06); }
.btn-secondary { --btn-bg: var(--surface); --btn-fg: var(--text); --btn-bd: var(--border-strong); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { --btn-bg: var(--surface-2); }
.btn-soft { --btn-bg: var(--primary-soft); --btn-fg: var(--primary-soft-ink); --btn-bd: transparent; }
.btn-soft:hover { --btn-bg: #d9edf8; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--text-2); --btn-bd: transparent; }
.btn-ghost:hover { --btn-bg: var(--surface-2); --btn-fg: var(--text); }
.btn-danger { --btn-bg: var(--danger-soft); --btn-fg: var(--danger); --btn-bd: transparent; }
.btn-danger:hover { --btn-bg: var(--danger); --btn-fg: #fff; }
.btn-success { --btn-bg: var(--success); --btn-fg: #fff; --btn-bd: transparent; }
.btn-wa { --btn-bg: var(--wa); --btn-fg: #fff; --btn-bd: transparent; box-shadow: 0 1px 2px rgba(21, 128, 61, .3), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-wa:hover { --btn-bg: var(--wa-hover); }
.btn-dark { --btn-bg: var(--text); --btn-fg: #fff; --btn-bd: transparent; }
.btn-dark:hover { --btn-bg: #1e293b; }
/* Filled buttons: a thin gap keeps the ring visible next to a button of the same colour. */
.btn-primary:focus-visible, .btn-brand:focus-visible, .btn-success:focus-visible, .btn-wa:focus-visible, .btn-dark:focus-visible { box-shadow: 0 0 0 2px var(--bg-elev), 0 0 0 5px var(--ring-color); }
.btn-sm { min-height: 38px; padding: 7px 13px; font-size: .88rem; border-radius: 10px; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 1.02rem; border-radius: 14px; }
.btn-xl { min-height: 60px; padding: 18px 28px; font-size: 1.08rem; border-radius: 16px; }
.btn-block { display: flex; width: 100%; }
.btn-icon { width: 44px; padding: 0; }
.btn-sm.btn-icon { width: 38px; }
/* Touch screens: every button is at least 44px tall. */
@media (pointer: coarse) {
  .btn-sm { min-height: 44px; }
  .btn-sm.btn-icon { width: 44px; }
}
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-row-stack { display: grid; gap: 10px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- forms ---------- */
form { margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field > label, .label { font-weight: 650; font-size: .9rem; color: var(--text); }
.optional { font-weight: 500; color: var(--muted); font-size: .85em; }
.hint { margin: 0; font-size: .84rem; color: var(--muted); }
.field-error { margin: 0; font-size: .86rem; color: var(--danger); font-weight: 600; }
.input, .select, .textarea,
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=search], input[type=url], select, textarea {
  width: 100%; min-height: 46px; padding: 11px 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--text);
  font: inherit; font-size: 16px; /* 16px stops iOS zoom */
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
  -webkit-appearance: none; appearance: none;
}
textarea, .textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
select, .select {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
input:hover, select:hover, textarea:hover { border-color: #aab4c2; }
input:focus, select:focus, textarea:focus { outline: 2px solid transparent; outline-offset: 2px; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 119, 182, .22); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
input[type=color] { width: 56px; height: 46px; padding: 4px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; accent-color: var(--primary); }
.input-group { display: flex; align-items: stretch; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.input-group:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 119, 182, .22); }
.input-group > input { border: 0; border-radius: 0; box-shadow: none !important; min-width: 0; }
.input-addon { display: flex; align-items: center; padding: 0 12px; background: var(--surface-2); color: var(--muted); font-size: .9rem; font-weight: 600; white-space: nowrap; border-right: 1px solid var(--border); }
.form-row { display: grid; gap: 0 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }

/* Segmented choice (radio pills): <div class="seg"><label><input type=radio><span>Colour</span></label>…</div> */
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; flex: 1 1 0; min-width: 110px; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid var(--border-strong); border-radius: var(--radius); background: var(--surface);
  font-weight: 650; color: var(--text-2); cursor: pointer; text-align: center;
  transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}
.seg input:checked + span { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, var(--surface)); color: var(--text); box-shadow: inset 0 0 0 1px var(--brand); }
.seg input:focus-visible + span { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--ring); }
/* Drop zone for file inputs */
.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  padding: 26px 16px; border: 2px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface-2);
  color: var(--text-2); transition: border-color .15s var(--ease), background .15s var(--ease);
}
.dropzone:hover, .dropzone.is-over { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--surface)); }
.dropzone input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone:focus-within { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--ring); border-color: var(--primary); }
.dropzone .icon { width: 30px; height: 30px; color: var(--brand); }
.dropzone strong { color: var(--text); }
.file-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.file-list li, .file-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.file-row .file-name, .file-list .file-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.file-meta { color: var(--muted); font-size: .84rem; white-space: nowrap; }
.file-ext { flex: none; display: inline-grid; place-items: center; min-width: 42px; height: 32px; padding: 0 6px; border-radius: 8px; background: var(--primary-soft); color: var(--primary-soft-ink); font-family: var(--mono); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.file-row.is-deleted { opacity: .6; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); min-width: 0; }
.card-pad { padding: 22px; }
@media (max-width: 480px) { .card-pad { padding: 18px 16px; } }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-head h2, .card-head h3 { margin: 0; font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }
.card-body { padding: 18px 20px; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.card + .card { margin-top: 16px; }
.section-title { font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }

.stat-card { position: relative; padding: 18px 18px 16px; overflow: hidden; }
.stat-card .stat-label { display: flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 650; color: var(--muted); }
.stat-card .stat-value { margin-top: 6px; font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: var(--text); font-variant-numeric: tabular-nums; }
.stat-card .stat-sub { margin-top: 2px; font-size: .82rem; color: var(--muted); }
.stat-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent, var(--cyan)); }
.stat-card a.stretched::after { content: ''; position: absolute; inset: 0; }
.stat-cyan { --accent: var(--cyan); } .stat-magenta { --accent: var(--magenta); } .stat-yellow { --accent: var(--yellow); } .stat-key { --accent: var(--key); }
.stat-green { --accent: #22c55e; } .stat-orange { --accent: #f97316; } .stat-red { --accent: #ef4444; } .stat-gray { --accent: #94a3b8; }
@media (max-width: 480px) { .stat-card { padding: 14px; } .stat-card .stat-value { font-size: 1.6rem; } }

/* key/value list */
.kv { display: grid; gap: 10px; margin: 0; }
.kv > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; }
.kv dt { color: var(--muted); font-size: .9rem; font-weight: 600; }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 480px) { .kv > div { grid-template-columns: 1fr; gap: 0; } }

/* ---------- pills & badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; line-height: 1.2; white-space: nowrap; background: var(--pill-bg, var(--surface-3)); color: var(--pill-fg, var(--text-2)); }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.pill-new { --pill-bg: #e0f2fe; --pill-fg: #075985; }
.pill-proof_sent { --pill-bg: #fce7f3; --pill-fg: #9d174d; }
.pill-approved { --pill-bg: #dcfce7; --pill-fg: #166534; }
.pill-changes_requested { --pill-bg: #ffedd5; --pill-fg: #9a3412; }
.pill-printing { --pill-bg: #fef9c3; --pill-fg: #854d0e; }
.pill-ready { --pill-bg: #ccfbf1; --pill-fg: #115e59; }
.pill-delivered { --pill-bg: #e2e8f0; --pill-fg: #334155; }
.pill-cancelled { --pill-bg: #fee2e2; --pill-fg: #991b1b; }
.pill-shop-pending { --pill-bg: #fef3c7; --pill-fg: #92400e; }
.pill-shop-active { --pill-bg: #dcfce7; --pill-fg: #166534; }
.pill-shop-paused { --pill-bg: #e2e8f0; --pill-fg: #334155; }
.pill-shop-expired { --pill-bg: #ffedd5; --pill-fg: #9a3412; }
.pill-shop-rejected { --pill-bg: #fee2e2; --pill-fg: #991b1b; }
.pill-sample { --pill-bg: var(--surface-3); --pill-fg: var(--muted); }
.pill-sample::before { display: none; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #d92d20; color: #fff; font-size: .72rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-size: .74rem; font-weight: 700; }
.order-no { font-family: var(--mono); font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }

/* ---------- alerts & banners ---------- */
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid transparent; font-size: .94rem; font-weight: 550; line-height: 1.45; }
.alert .icon { margin-top: 1px; }
.alert-info { background: var(--info-soft); color: var(--primary-soft-ink); border-color: color-mix(in srgb, var(--primary) 18%, transparent); }
.alert-success { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 20%, transparent); }
.alert-warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 22%, transparent); }
.alert-danger { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 22%, transparent); }
.alert a { color: inherit; font-weight: 700; }
.flash-stack { display: grid; gap: 8px; width: 100%; max-width: 1180px; margin: 0 auto 16px; padding: 0 20px; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.main-customer .flash-stack, .main-auth .flash-stack { max-width: 680px; padding: 0 16px; }
@media (max-width: 480px) { .flash-stack { padding: 0 16px; } }

.demo-banner {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 16px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); text-align: center; font-size: .88rem; font-weight: 550; line-height: 1.4;
  color: #1e293b; background: #fffbea;
  border-bottom: 1px solid #f1e3a6;
}
.demo-banner a { color: #0b4f7a; font-weight: 700; }
.demo-banner-tag { padding: 2px 8px; border-radius: 999px; background: #b45309; color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.renew-banner { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 16px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); background: var(--warn-soft); color: var(--warn); font-size: .92rem; font-weight: 550; border-bottom: 1px solid #f3dca4; text-align: left; }
.renew-banner a:not(.btn) { color: inherit; font-weight: 750; }

/* ---------- lists & tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .76rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s var(--ease); }
.table tbody tr:hover { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
/* On phones, tables marked .table-cards become stacked cards (use data-label on td). */
@media (max-width: 720px) {
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards tr { padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .table-cards td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; text-align: right; }
  .table-cards td::before { content: attr(data-label); color: var(--muted); font-size: .82rem; font-weight: 650; text-align: left; }
  .table-cards td.num { text-align: right; }
}

/* Order list rows (dashboard). */
.order-list { list-style: none; margin: 0; padding: 0; }
.order-row { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); transition: background .12s var(--ease); }
.order-row:last-child { border-bottom: 0; }
.order-row:hover { background: var(--surface-2); }
.order-row a.stretched { color: inherit; text-decoration: none; }
.order-row a.stretched::after { content: ''; position: absolute; inset: 0; }
.order-row .order-no { font-size: 1rem; }
.order-row .order-main { min-width: 0; }
.order-row .order-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-row .order-meta { color: var(--muted); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-row .order-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.order-row .order-time { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.order-row.is-fresh { animation: fresh 2.4s var(--ease); }
@keyframes fresh { 0% { background: var(--primary-soft); } 100% { background: transparent; } }
@media (max-width: 480px) { .order-row { padding: 12px 14px; gap: 2px 10px; } }

/* ---------- tabs (scroll inside, never the page) ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px 2px 10px; margin: 0 -2px; scroll-snap-type: x proximity; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); text-decoration: none; font-weight: 650; font-size: .9rem; scroll-snap-align: start; transition: all .15s var(--ease); }
.tabs a:hover { border-color: var(--border-strong); color: var(--text); }
.tabs a.is-active, .tabs a[aria-current] { background: var(--text); border-color: var(--text); color: #fff; }
.tabs a.is-active .count, .tabs a[aria-current] .count { background: rgba(255, 255, 255, .18); color: #fff; }

.search-form { display: flex; gap: 8px; align-items: center; }
.search-input { position: relative; flex: 1 1 auto; min-width: 0; }
.search-input .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-input input { padding-left: 42px; }

/* ---------- timeline / history ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: .78rem; font-weight: 650; color: var(--muted); }
.steps li::before { content: ''; position: absolute; top: 13px; left: -50%; right: 50%; height: 3px; background: var(--border); z-index: 0; }
.steps li:first-child::before { display: none; }
.steps .dot { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-strong); color: transparent; }
.steps .dot .icon { width: 15px; height: 15px; }
.steps li.is-done { color: var(--text-2); }
.steps li.is-done::before, .steps li.is-current::before { background: var(--brand); }
.steps li.is-done .dot { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.steps li.is-current { color: var(--text); }
.steps li.is-current .dot { border-color: var(--brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 20%, transparent); }
.steps li.is-current .dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.steps li.is-skipped { color: var(--muted); }
.steps li.is-skipped::before { background: var(--brand); opacity: .4; }
.steps li.is-skipped .dot { border-style: dashed; }
@media (max-width: 420px) { .steps li { font-size: .68rem; } .steps .dot { width: 24px; height: 24px; } .steps li::before { top: 11px; } }

.history { list-style: none; margin: 0; padding: 0; position: relative; }
.history li { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding-bottom: 16px; }
.history li::before { content: ''; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--border); }
.history li:last-child { padding-bottom: 0; }
.history li:last-child::before { display: none; }
.history .h-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.history .h-dot .icon { width: 13px; height: 13px; }
.history .h-actor-customer .h-dot { background: #fbe7f3; color: #b0006a; }
.history .h-actor-shop .h-dot { background: var(--primary-soft); color: var(--primary); }
.history .h-title { font-weight: 650; font-size: .93rem; }
.history .h-time { color: var(--muted); font-size: .8rem; }
.history .h-note { margin-top: 4px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text-2); font-size: .9rem; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- empty state ---------- */
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty h3 { color: var(--text); margin: 14px 0 6px; }
.empty p { max-width: 420px; margin: 0 auto 16px; }
.empty-art { display: inline-flex; gap: 6px; }
.empty-art span { width: 12px; height: 44px; border-radius: 6px; background: var(--cyan); opacity: .85; }
.empty-art span:nth-child(2) { background: var(--magenta); height: 34px; margin-top: 10px; }
.empty-art span:nth-child(3) { background: var(--yellow); height: 24px; margin-top: 20px; }

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 90; left: 50%; transform: translateX(-50%); top: 14px; display: grid; gap: 8px; width: min(420px, calc(100vw - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--text); color: #fff; box-shadow: var(--shadow-lg); font-weight: 600; font-size: .94rem; animation: toast-in .28s var(--ease); }
.toast a { color: #7dd3fc; font-weight: 700; margin-left: auto; white-space: nowrap; }
.toast .icon { color: var(--yellow); }
.toast.is-leaving { animation: toast-out .25s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); } }

/* ---------- mobile bottom tab bar (shop + admin areas, any number of tabs) ---------- */
.tabbar { display: none; }
@media (max-width: 860px) {
  .v-shop main, .v-admin main { padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 24px); }
  .tabbar {
    position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
    height: calc(var(--tabbar-h) + var(--safe-bottom)); padding-bottom: var(--safe-bottom);
    padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px);
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px -8px rgba(15, 23, 42, .08);
  }
  .tabbar .tab { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; color: var(--muted); text-decoration: none; font-size: .7rem; font-weight: 650; letter-spacing: -.005em; }
  .tabbar .tab > span:not(.badge) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
  .tabbar .tab .icon { width: 22px; height: 22px; }
  .tabbar .tab:hover { color: var(--text); }
  .tabbar .tab.is-active { color: var(--primary-soft-ink); font-weight: 750; }
  /* Active tab: a soft pill behind the icon. */
  .tabbar .tab.is-active::before { content: ''; position: absolute; z-index: -1; top: 8px; left: 50%; width: 52px; height: 30px; margin-left: -26px; border-radius: 999px; background: var(--primary-soft); }
  .tabbar .tab:focus-visible { outline-offset: -4px; }
  .tabbar .badge { position: absolute; top: 5px; left: calc(50% + 7px); box-shadow: 0 0 0 2px #fff; }
}
.nav-item .badge { margin-left: 2px; }

/* ---------- footer ---------- */
.site-footer { margin-top: auto; border-top: 1px solid var(--border); background: var(--bg-elev); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 22px; padding-bottom: calc(22px + var(--safe-bottom)); font-size: .9rem; color: var(--muted); }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-brand a, .footer-nav a { color: var(--text-2); text-decoration: none; font-weight: 600; }
.footer-brand a:hover, .footer-nav a:hover { color: var(--primary); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- auth / message / waiting pages ---------- */
.auth-wrap { display: grid; place-items: start center; padding: 8px 16px 24px; }
.auth-card { width: 100%; max-width: 460px; padding: 30px 28px; }
.auth-card-wide { max-width: 640px; }
.auth-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-card .lead { margin-bottom: 22px; font-size: 1rem; }
@media (max-width: 480px) { .auth-card { padding: 22px 18px; } }
.auth-foot { margin-top: 18px; text-align: center; color: var(--muted); font-size: .94rem; }

.message-page { padding: 24px 16px; }
.message-card { text-align: center; padding: 36px 26px; }
.message-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 14px; border-radius: 18px; background: var(--primary-soft); color: var(--primary); }
.message-icon .icon { width: 28px; height: 28px; }
.message-card .btn { margin-top: 8px; }

.waiting { display: grid; place-items: center; min-height: calc(100dvh - 80px); padding: 24px 16px; }
.waiting-card { width: 100%; max-width: 560px; padding: 34px 30px; text-align: center; }
.waiting-card h1 { margin-top: 14px; }
.waiting-mark { display: inline-block; margin-bottom: 14px; }
.waiting-card .kv { text-align: left; margin: 22px 0; padding: 16px; border-radius: var(--radius); background: var(--surface-2); }
.waiting-steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; text-align: left; }
.waiting-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--muted); font-weight: 600; }
.waiting-steps li.is-done { color: var(--success); }
.waiting-steps li.is-current { color: var(--text); border-color: color-mix(in srgb, var(--yellow) 60%, var(--border)); background: color-mix(in srgb, var(--yellow) 10%, var(--surface)); }
.waiting-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
@media (max-width: 480px) { .waiting-card { padding: 26px 18px; } }

/* ---------- customer-branded header ---------- */
.shop-brand-header { background: var(--surface); border-bottom: 1px solid var(--border); border-top: 4px solid var(--brand); }
.shop-brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--text); text-decoration: none; padding: 10px 0; }
.shop-brand:hover { color: var(--text); }
.shop-logo { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; background: #fff; border: 1px solid var(--border); }
.shop-initial { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: 1.25rem; }
.shop-brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.shop-brand-text b { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-brand-text small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.powered-by { padding: 18px 16px calc(22px + var(--safe-bottom)); text-align: center; }
.powered-by a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: .85rem; }
.powered-by a:hover { color: var(--text); }

/* ---------- misc ---------- */
.divider-label { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .82rem; font-weight: 650; margin: 18px 0; }
.divider-label::before, .divider-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.copy-field { display: flex; gap: 8px; align-items: stretch; }
.copy-field input { font-family: var(--mono); font-size: .92rem; }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.cmyk-bar { display: flex; height: 4px; }
.cmyk-bar span { flex: 1; }
.cmyk-bar span:nth-child(1) { background: var(--cyan); } .cmyk-bar span:nth-child(2) { background: var(--magenta); } .cmyk-bar span:nth-child(3) { background: var(--yellow); } .cmyk-bar span:nth-child(4) { background: var(--key); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.is-loading .btn-label { opacity: .6; }

@media print {
  .site-header, .app-header, .tabbar, .site-footer, .demo-banner, .renew-banner, .toasts, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border: 0; }
}

/* ===================== page parts (appended below) ===================== */


/* ---------- public ---------- */
/* ===================== public: landing (.lp-), demo (.dm-), register/login (.au-) ===================== */
/* Calm, white business look: one accent (primary blue), 1px borders, soft shadows, no motion. */

/* ---------- landing: shared ---------- */
.main-public > .flash-stack { margin-top: 16px; }
.lp { overflow-x: clip; }
.lp-section { padding: clamp(48px, 7vw, 88px) 0; }
.lp-alt { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.lp-alt + .lp-section { border-top: 0; }
.lp-head { max-width: 640px; margin-bottom: clamp(24px, 3.5vw, 36px); }
.lp-head h2, .lp-final h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); font-weight: 750; line-height: 1.2; letter-spacing: -.025em; }
.lp-head p { max-width: 56ch; margin: 0; font-size: 1.05rem; color: var(--text-2); }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 480px) { .lp-cta .btn { flex: 1 1 100%; } }

/* ---------- hero ---------- */
.lp-hero { padding: clamp(40px, 7vw, 88px) 0; border-bottom: 1px solid var(--border); background: var(--surface); }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; align-items: center; }
@media (min-width: 900px) { .lp-hero-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; } }
.lp-hero-copy { max-width: 700px; }
.lp-eyebrow { margin: 0 0 14px; font-size: .92rem; font-weight: 650; color: var(--primary); }
.lp-title { margin: 0 0 18px; font-size: clamp(2rem, 1.5rem + 2.2vw, 3.1rem); font-weight: 800; line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.lp-sub { max-width: 34em; margin: 0 0 28px; font-size: clamp(1.05rem, 1rem + .25vw, 1.17rem); line-height: 1.6; color: var(--text-2); }

/* Phone mockup: plain white frame, customer's order tracking page. */
.lp-visual { display: flex; justify-content: center; -webkit-user-select: none; user-select: none; pointer-events: none; }
.lp-phone { width: 100%; max-width: 290px; padding: 10px; border: 1px solid var(--border-strong); border-radius: 34px; background: var(--surface); box-shadow: var(--shadow); }
.lp-screen { overflow: hidden; border: 1px solid var(--border); border-radius: 25px; background: var(--bg); }
.lp-screen-top { display: flex; justify-content: center; padding: 10px 0 2px; background: var(--surface); }
.lp-screen-top i { width: 54px; height: 6px; border-radius: 6px; background: var(--surface-3); }
.lp-shop { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 16px 14px; border-bottom: 1px solid var(--border); background: var(--surface); }
.lp-shop-logo { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--primary); color: #fff; font-weight: 800; }
.lp-shop b { overflow: hidden; font-size: .98rem; white-space: nowrap; text-overflow: ellipsis; }
.lp-order { display: grid; gap: 14px; padding: 18px 16px 20px; }
.lp-order-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.lp-order-no { font-size: 1.12rem; }
.lp-proof { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 3 / 2; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--muted); font-size: .85rem; font-weight: 600; }
.lp-proof .icon { width: 30px; height: 30px; }
.lp-approve { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 999px; background: var(--primary); color: #fff; font-size: .95rem; font-weight: 700; }
.lp-approve .icon { width: 18px; height: 18px; }

/* ---------- what you get ---------- */
.lp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 600px) { .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .lp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.lp-card { min-width: 0; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.lp-card-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.lp-card h3 { margin: 0 0 6px; font-size: 1.05rem; line-height: 1.35; letter-spacing: -.01em; }
.lp-card p { margin: 0; font-size: .96rem; color: var(--text-2); }

/* ---------- how it works ---------- */
.lp-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 600px) { .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; } }
@media (min-width: 1000px) { .lp-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lp-step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; min-width: 0; }
.lp-step-no { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border-strong); border-radius: 50%; background: var(--surface); color: var(--primary); font-family: var(--mono); font-weight: 700; }
.lp-step h3 { margin: 8px 0 4px; font-size: 1.05rem; line-height: 1.35; letter-spacing: -.01em; }
.lp-step p { margin: 0; font-size: .96rem; color: var(--text-2); }

/* ---------- who it is for ---------- */
.lp-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lp-chips li { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 42px; padding: 8px 16px 8px 13px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font-size: .95rem; font-weight: 600; line-height: 1.3; }
.lp-chips .icon { width: 16px; height: 16px; color: var(--primary); }
.lp-chips span { min-width: 0; overflow-wrap: anywhere; }

/* ---------- FAQ ---------- */
.lp-faq-list { display: grid; gap: 10px; max-width: 840px; }
.lp-qa { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.lp-qa[open] { border-color: var(--border-strong); }
.lp-qa summary { position: relative; display: flex; align-items: center; min-height: 56px; padding: 14px 52px 14px 18px; border-radius: var(--radius); font-weight: 650; line-height: 1.4; }
.lp-qa summary:hover { color: var(--primary); }
.lp-qa summary:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--ring); }
.lp-qa summary::after { content: ''; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); }
.lp-qa[open] summary::after { margin-top: -2px; transform: rotate(-135deg); }
.lp-qa-body { padding: 0 18px 16px; color: var(--text-2); }
.lp-qa-body p { max-width: 64ch; margin: 0; overflow-wrap: anywhere; }
.lp-qa-body a, .lp-faq-more a { font-weight: 650; }
.lp-faq-more { margin: 20px 0 0; color: var(--muted); }

/* ---------- final call to action ---------- */
.lp-final-card { display: grid; justify-items: center; max-width: 760px; margin: 0 auto; padding: clamp(28px, 5vw, 48px) 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); text-align: center; }
.lp-final-card p { max-width: 46ch; margin: 0 0 22px; font-size: 1.05rem; color: var(--text-2); }
.lp-final-card .lp-cta { justify-content: center; }
@media (max-width: 480px) { .lp-final-card .lp-cta { width: 100%; } }

/* ---------- demo page ---------- */
.dm { max-width: 1000px; padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(40px, 6vw, 72px); }
.dm-head { max-width: 640px; margin-bottom: 28px; }
.dm-head h1 { margin-bottom: 8px; font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem); letter-spacing: -.03em; }
.dm-head .lead { margin: 0; }
.dm-choices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 720px) { .dm-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.dm-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: clamp(22px, 3.5vw, 32px); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.dm-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); }
.dm-icon .icon { width: 24px; height: 24px; }
.dm-card h2 { margin: 0 0 8px; font-size: clamp(1.25rem, 1.15rem + .4vw, 1.45rem); letter-spacing: -.02em; }
.dm-card > p { max-width: 42ch; margin: 0 0 24px; color: var(--text-2); }
.dm-action { width: 100%; margin-top: auto; }
.dm-action.btn, .dm-action .btn { white-space: normal; text-align: center; }
.dm-note { display: flex; align-items: flex-start; gap: 8px; font-size: .9rem; }
.dm-card > .dm-note { color: var(--muted); }
.dm-note .icon { width: 18px; height: 18px; margin-top: 2px; }
.dm-try { margin-top: 24px; padding: clamp(22px, 3.5vw, 32px); }
.dm-try h2 { margin: 0 0 18px; font-size: 1.25rem; }
.dm-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .dm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; } }
.dm-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; min-width: 0; color: var(--text-2); }
.dm-steps b { color: var(--text); }
.dm-step-no { display: grid; place-items: center; width: 32px; height: 32px; margin-top: -3px; border: 1px solid var(--border-strong); border-radius: 50%; background: var(--surface); color: var(--primary); font-family: var(--mono); font-size: .9rem; font-weight: 700; }
.dm-info { display: grid; gap: 6px; margin-top: 24px; color: var(--muted); font-size: .92rem; text-align: center; }
.dm-info p { margin: 0; }
.dm-info a { font-weight: 650; }

/* ---------- register / login ---------- */
.page-login .main-auth, .page-register .main-auth {
  background:
    radial-gradient(34rem 20rem at 100% 0%, color-mix(in srgb, var(--cyan) 10%, transparent), transparent 70%),
    radial-gradient(28rem 18rem at 0% 100%, color-mix(in srgb, var(--magenta) 6%, transparent), transparent 70%);
}
.au-card { position: relative; overflow: hidden; box-shadow: var(--shadow); }
.au-bar { position: absolute; top: 0; left: 0; right: 0; }
.au-card h1 { margin-top: 4px; letter-spacing: -.03em; }
.au-alert { margin-bottom: 18px; }
.au-group { min-width: 0; margin: 0 0 4px; padding: 0; border: 0; }
.au-group + .au-group { padding-top: 18px; border-top: 1px solid var(--border); }
.au-group legend { float: left; width: 100%; margin: 0 0 14px; padding: 0; color: var(--muted); font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.au-group legend + * { clear: both; }
.au-slug-group .input-addon { font-family: var(--mono); font-size: .84rem; }
.au-slug-group > input { flex: 1 1 auto; font-family: var(--mono); }
.has-error .au-slug-group { border-color: var(--danger); }
@media (max-width: 460px) {
  .au-slug-group { flex-wrap: wrap; }
  .au-slug-group .input-addon { flex: 1 1 100%; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--border); white-space: normal; overflow-wrap: anywhere; }
  .au-slug-group > input { flex-basis: 100%; }
}
.au-slug-status { display: flex; align-items: center; gap: 7px; margin: 0; font-size: .86rem; font-weight: 650; color: var(--muted); }
.au-slug-status:empty::before { display: none; }
.au-slug-status::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.au-slug-status.is-ok { color: var(--success); }
.au-slug-status.is-bad { color: var(--danger); }
.au-slug-status.is-busy::before { width: 10px; height: 10px; border: 2px solid currentColor; border-right-color: transparent; background: none; animation: spin .7s linear infinite; }
.au-approval { margin: 6px 0 18px; }
.au-help { display: flex; align-items: flex-start; gap: 8px; margin: 20px 0 0; font-size: .9rem; color: var(--muted); }
.au-help .icon { width: 18px; height: 18px; margin-top: 2px; }
.au-sep::before { content: '·'; margin: 0 8px; }

/* ---------- pricing (CSS-only Monthly / Yearly switch) ---------- */
.lp-sep { border-top: 1px solid var(--border); }
.lp-pricing { display: grid; justify-items: center; gap: 28px; }
.lp-cycle-input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.lp-cycle { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm); }
.lp-cycle label { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 112px; min-height: 44px; padding: 0 18px; border-radius: 999px; color: var(--text-2); font-weight: 650; cursor: pointer; -webkit-user-select: none; user-select: none; }
.lp-cycle label:hover { color: var(--text); }
.lp-cycle-save { padding: 3px 8px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-size: .76rem; font-weight: 750; line-height: 1.2; }
#lp-cycle-monthly:checked ~ .lp-cycle .lp-cycle-m,
#lp-cycle-yearly:checked ~ .lp-cycle .lp-cycle-y { background: var(--primary); color: var(--primary-ink); }
#lp-cycle-yearly:checked ~ .lp-cycle .lp-cycle-save { background: #fff; color: var(--success); }
#lp-cycle-monthly:focus-visible ~ .lp-cycle .lp-cycle-m,
#lp-cycle-yearly:focus-visible ~ .lp-cycle .lp-cycle-y { box-shadow: 0 0 0 2px var(--surface), 0 0 0 5px var(--ring-color); }
#lp-cycle-monthly:checked ~ .lp-plans .lp-only-yearly,
#lp-cycle-yearly:checked ~ .lp-plans .lp-only-monthly { display: none; }

.lp-plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; width: 100%; max-width: 440px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .lp-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: none; } }
.lp-plan { display: flex; flex-direction: column; min-width: 0; padding: 26px 24px 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.lp-plan.is-popular { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow); }
.lp-plan-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; margin-bottom: 14px; }
.lp-plan-top h3 { margin: 0; font-size: 1.15rem; letter-spacing: -.015em; }
.lp-plan-tag { padding: 4px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-soft-ink); font-size: .76rem; font-weight: 750; line-height: 1.2; }
.lp-price { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.lp-price p { margin: 0; }
.lp-price-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.lp-price-main b { font-size: clamp(2rem, 1.8rem + .8vw, 2.4rem); font-weight: 800; line-height: 1.1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.lp-price-main span { color: var(--muted); font-weight: 600; }
.lp-price-sub { min-height: 1.5em; margin-top: 6px !important; color: var(--muted); font-size: .9rem; }
.lp-save { color: var(--success); font-weight: 700; }
.lp-plan-list { display: grid; flex: 1 0 auto; align-content: start; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.lp-plan-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--text-2); font-size: .96rem; }
.lp-plan-list .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--primary); }
.lp-plan-storage { color: var(--text) !important; }
.lp-plan-cta { margin-top: auto; }
.lp-plans-empty { max-width: 56ch; margin: 0; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text-2); }

.lp-pricing-foot { display: grid; justify-items: center; gap: 14px; margin-top: 28px; }
.lp-try { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; width: 100%; max-width: 760px; padding: 16px 18px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); }
.lp-try-ic { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.lp-try p { flex: 1 1 260px; margin: 0; color: var(--text-2); }
.lp-try p b { color: var(--text); }
@media (max-width: 560px) { .lp-try .btn { flex: 1 1 100%; } }
.lp-pay-note { display: flex; align-items: flex-start; gap: 8px; max-width: 760px; margin: 0; color: var(--muted); font-size: .9rem; }
.lp-pay-note .icon { width: 18px; height: 18px; margin-top: 2px; }

/* ---------- demo page: your own demo shop ---------- */
.dm-own { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 20px; padding: clamp(22px, 3.5vw, 32px); border: 1px solid var(--primary); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--primary), var(--shadow); }
@media (min-width: 720px) { .dm-own { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; align-items: center; } }
.dm-own-tag, .au-demo-tag { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 5px 12px 5px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-soft-ink); font-size: .82rem; font-weight: 750; line-height: 1.2; }
.dm-own-tag .icon, .au-demo-tag .icon { width: 16px; height: 16px; }
.dm-own h2 { margin: 0 0 8px; font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); letter-spacing: -.02em; }
.dm-own-copy > p { max-width: 46ch; margin: 0 0 16px; color: var(--text-2); }
.dm-own-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 560px) and (max-width: 719px) { .dm-own-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dm-own-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--text-2); font-size: .95rem; }
.dm-own-list .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--primary); }
.dm-own-action { display: grid; gap: 12px; }
@media (min-width: 720px) { .dm-own-action { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); } }
.dm-own-action .btn { white-space: normal; text-align: center; }
.dm-own-action .dm-note { margin: 0; color: var(--text-2); }
.dm-own-fine { margin: 0; color: var(--muted); font-size: .86rem; text-align: center; }

/* ---------- register: demo tag + chosen plan ---------- */
.au-card-demo .au-demo-tag { margin-top: 6px; margin-bottom: 12px; }
.au-plan { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin: -6px 0 20px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.au-plan-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); }
.au-plan-ic .icon { width: 16px; height: 16px; }
.au-plan p { margin: 0; line-height: 1.4; }
.au-plan small { display: block; color: var(--muted); font-size: .84rem; }
.au-plan-change { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-weight: 650; font-size: .92rem; }
.au-foot-item { display: inline-block; }

/* ---------- shop area (prefix .sh- = app chrome, dashboard, order page; .set- = link, settings, poster) ---------- */

/* ---------- chrome: header ---------- */
.sh-header .header-row { gap: 12px; }
.sh-brand { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; color: var(--text); text-decoration: none; border-radius: 12px; }
.sh-brand:hover { color: var(--text); }
.sh-avatar { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--primary); color: #fff; font-weight: 800; font-size: 1.02rem; letter-spacing: -.02em; }
.sh-avatar.has-logo { background: #fff; border: 1px solid var(--border); overflow: hidden; }
.sh-avatar img { width: 100%; height: 100%; object-fit: contain; }
.sh-brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.sh-brand-text b { font-size: .98rem; font-weight: 750; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.sh-brand-text small { font-size: .72rem; font-weight: 600; color: var(--muted); }
.sh-nav { margin: 0 auto; }
.sh-bell { position: relative; }
.sh-bell .badge { position: absolute; top: 1px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; font-size: .68rem; box-shadow: 0 0 0 2px #fff; }
.sh-bell.is-active { --btn-bg: var(--primary-soft); --btn-fg: var(--primary-soft-ink); }
@media (max-width: 860px) {
  .sh-brand-text b { max-width: 52vw; }
}

/* ---------- chrome: plan / demo banner ---------- */
.renew-banner.sh-banner { display: block; padding: 0; text-align: left; font-weight: 500; }
.sh-banner-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.sh-banner-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: rgba(255, 255, 255, .75); }
.sh-banner-icon .icon { width: 17px; height: 17px; }
.sh-banner-text { margin: 0; font-size: .9rem; line-height: 1.4; }
.sh-banner-text b { font-weight: 700; }
.sh-banner-info { background: #eef6fc; color: #0b4f7a; border-bottom-color: #d3e8f5; }
.sh-banner-warn { background: #fff7e0; color: #7c4206; border-bottom-color: #f3dca4; }
.sh-banner-danger { background: #fdeeee; color: #8f1a20; border-bottom-color: #f6caca; }
@media (max-width: 600px) {
  .sh-banner-row { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 4px 12px; }
  .sh-banner-cta { grid-column: 2; justify-self: start; margin-top: 4px; }
}

/* ---------- dashboard: greeting + link chip ---------- */
.sh-hello { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 22px; }
.sh-hello-text { min-width: 0; }
.sh-date { margin: 0 0 4px; font-size: .84rem; font-weight: 600; color: var(--muted); }
.sh-hello h1 { margin: 0; font-size: clamp(1.45rem, 1.15rem + 1.1vw, 1.95rem); overflow-wrap: anywhere; }
.sh-hello-sub { display: flex; flex-wrap: wrap; gap: 0 8px; margin: 6px 0 0; color: var(--text-2); }
.sh-hello-sub b { color: var(--text); }
.sh-dot { color: var(--border-strong); }

.sh-linkchip { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; padding: 6px 6px 6px 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-xs); }
.sh-linkchip-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.sh-linkchip-icon .icon { width: 17px; height: 17px; }
.sh-linkchip-text { display: flex; flex-direction: column; justify-content: center; flex: 1 1 auto; min-width: 0; min-height: 40px; padding: 0 2px; border-radius: 8px; color: var(--text); line-height: 1.25; text-decoration: none; }
.sh-linkchip-text:hover { color: var(--primary); }
.sh-linkchip-text:hover .sh-linkchip-url { color: var(--primary); text-decoration: underline; }
.sh-linkchip-text small { font-size: .72rem; font-weight: 600; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-linkchip-url { font-family: var(--mono); font-size: .9rem; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-linkchip-actions { display: flex; gap: 2px; flex: none; margin-left: auto; padding-left: 4px; border-left: 1px solid var(--border); }
.sh-linkchip-actions .btn { --btn-fg: var(--text-2); }
@media (max-width: 720px) {
  .sh-hello { margin-bottom: 18px; }
  .sh-linkchip { width: 100%; }
}

/* ---------- dashboard: KPI tiles (each one opens its tab) ---------- */
.sh-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.sh-kpi {
  --kpi-bg: var(--surface-3); --kpi-fg: var(--text-2);
  position: relative; display: flex; flex-direction: column; min-width: 0; padding: 16px 16px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-xs);
  color: var(--text); text-decoration: none; transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.sh-kpi:hover { color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.sh-kpi:focus-visible { outline: 2px solid transparent; box-shadow: var(--ring); }
.sh-kpi.is-current { border-color: var(--kpi-fg); box-shadow: inset 0 0 0 1px var(--kpi-fg); }
.sh-kpi-top { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--text-2); font-size: .86rem; font-weight: 650; line-height: 1.2; }
.sh-kpi-icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--kpi-bg); color: var(--kpi-fg); }
.sh-kpi-icon .icon { width: 16px; height: 16px; }
.sh-kpi-value { margin-top: 12px; font-size: 2rem; font-weight: 800; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.sh-kpi-sub { margin-top: 6px; font-size: .8rem; color: var(--muted); }
.sh-kpi-sub b { color: var(--text-2); }
.sh-kpi-new { --kpi-bg: #e6f3fb; --kpi-fg: #0369a1; }
.sh-kpi-proof { --kpi-bg: #fbeaf3; --kpi-fg: #9d174d; }
.sh-kpi-printing { --kpi-bg: #fdf3d3; --kpi-fg: #8a4b06; }
.sh-kpi-ready { --kpi-bg: #daf4ee; --kpi-fg: #0f6b62; }
@media (max-width: 900px) {
  .sh-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
  .sh-kpi { padding: 14px 14px 12px; }
  .sh-kpi-value { margin-top: 10px; font-size: 1.7rem; }
}

/* ---------- dashboard: grid (orders + side column on wide screens) ---------- */
.sh-dash-grid { display: grid; gap: 16px; }
.sh-dash-side { display: grid; gap: 16px; align-content: start; min-width: 0; }
.sh-dash-grid .card + .card { margin-top: 0; }
@media (min-width: 1080px) {
  .sh-dash-grid.has-side { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .sh-dash-grid.has-side .sh-dash-side { grid-column: 2; grid-row: 1; }
  .sh-dash-grid.has-side .sh-orders { grid-column: 1; grid-row: 1; }
}
.sh-side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 10px; }
.sh-side-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .94rem; font-weight: 700; letter-spacing: -.01em; }
.sh-side-head h2 .icon { width: 17px; height: 17px; color: var(--muted); }
.sh-side-head a { font-size: .86rem; font-weight: 650; text-decoration: none; padding: 6px 4px; }
.sh-side-head a:hover { text-decoration: underline; }

/* Needs your attention */
.sh-attn-items { display: grid; gap: 8px; padding: 0 12px 12px; }
.sh-attn-item {
  --tone-bg: var(--surface-2); --tone-fg: var(--text-2);
  display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 12px; border-radius: 12px;
  background: var(--tone-bg); color: var(--text); text-decoration: none; transition: filter .15s var(--ease);
}
.sh-attn-item:hover { color: var(--text); filter: brightness(.975); }
.sh-attn-item > .icon { flex: none; width: 18px; height: 18px; color: var(--tone-fg); }
.sh-attn-n { flex: none; display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 6px; border-radius: 10px; background: #fff; color: var(--tone-fg); font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; box-shadow: var(--shadow-xs); }
.sh-attn-text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.sh-attn-text b { font-size: .93rem; }
.sh-attn-text span { font-size: .82rem; color: var(--text-2); }
.sh-attn-item.is-changes { --tone-bg: #fff2e7; --tone-fg: #9a3412; }
.sh-attn-item.is-new { --tone-bg: #eaf5fc; --tone-fg: #075985; }
.sh-calm { display: flex; align-items: center; gap: 12px; padding: 16px; }
.sh-calm-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--success-soft); color: var(--success); }
.sh-calm div { display: flex; flex-direction: column; line-height: 1.3; }
.sh-calm b { font-size: .94rem; }
.sh-calm span { font-size: .84rem; color: var(--muted); }

/* New for you (unread notifications) */
.sh-upd-list { list-style: none; margin: 0; padding: 0 8px 8px; }
.sh-upd { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 8px; border-radius: 10px; color: var(--text); text-decoration: none; }
.sh-upd:hover { color: var(--text); background: var(--surface-2); }
.sh-upd-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--primary-soft); color: var(--primary); }
.sh-upd-icon .icon { width: 16px; height: 16px; }
.sh-upd-payment, .sh-upd-success { background: var(--success-soft); color: var(--success); }
.sh-upd-warn { background: var(--warn-soft); color: var(--warn); }
.sh-upd-announcement { background: #f1ecfd; color: #5b21b6; }
.sh-upd-text { min-width: 0; }
.sh-upd-text b { display: block; font-size: .9rem; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.sh-upd-text span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; font-size: .82rem; color: var(--muted); }
.sh-upd time { padding-top: 2px; font-size: .74rem; color: var(--muted); white-space: nowrap; }

/* Get started checklist */
.sh-start-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 6px; }
.sh-start-head h2 { margin: 0; font-size: 1rem; }
.sh-start-head p { margin: 2px 0 0; font-size: .84rem; color: var(--muted); }
.sh-meter { flex: none; width: 76px; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.sh-meter span { display: block; width: 4%; height: 100%; border-radius: inherit; background: var(--success); }
.sh-meter-1 span { width: 33.4%; } .sh-meter-2 span { width: 66.7%; } .sh-meter-3 span { width: 100%; }
.sh-start-list { list-style: none; margin: 0; padding: 4px 16px 12px; }
.sh-start-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0 12px; align-items: start; padding: 12px 0; }
.sh-start-list li + li { border-top: 1px solid var(--border); }
.sh-start-check { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--border-strong); color: var(--text-2); font-size: .8rem; font-weight: 750; }
.sh-start-check .icon { width: 15px; height: 15px; }
.sh-start-list li.is-done .sh-start-check { border-color: var(--success); background: var(--success); color: #fff; }
.sh-start-text { min-width: 0; padding-top: 3px; }
.sh-start-text b { display: block; font-size: .93rem; line-height: 1.3; }
.sh-start-text span { display: block; margin-top: 2px; font-size: .83rem; color: var(--muted); line-height: 1.4; }
.sh-start-list li.is-done .sh-start-text b { color: var(--muted); font-weight: 600; }
.sh-start-list li > .btn { grid-column: 2; justify-self: start; margin-top: 10px; }

/* Counter QR */
.sh-qr-body { display: flex; align-items: center; gap: 14px; padding: 16px; }
.sh-qr-body img { flex: none; width: 96px; height: 96px; padding: 6px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.sh-qr-body h2 { margin: 0 0 2px; font-size: .96rem; }
.sh-qr-body p { margin: 0 0 10px; font-size: .83rem; color: var(--muted); line-height: 1.4; }

/* ---------- dashboard: orders card ---------- */
.sh-orders { overflow: hidden; }
.sh-orders-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 12px; }
.sh-orders-head h2 { margin: 0; font-size: 1.12rem; }
.sh-search { flex: 0 1 380px; min-width: 0; }
.sh-search .btn-icon { flex: none; }
.sh-tabs { margin: 0; padding: 0 16px 12px; border-bottom: 1px solid var(--border); scroll-padding-inline: 16px; }
.sh-tabs .count.is-zero { opacity: .55; }
.sh-results { margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); font-size: .88rem; }
@media (max-width: 720px) {
  .sh-search { flex: 1 1 100%; }
}

.sh-newbar { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 16px; border-bottom: 1px solid #cfe6f4; background: var(--primary-soft); color: var(--primary-soft-ink); font-weight: 700; text-decoration: none; }
.sh-newbar:hover { color: var(--primary-soft-ink); background: #dcedf8; }
.sh-newbar-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(0, 119, 182, .18); }
.sh-newbar-cta { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: .88rem; }
.sh-newbar-cta .icon { width: 16px; height: 16px; }

/* Order rows */
.sh-list { list-style: none; margin: 0; padding: 0; }
.sh-row + .sh-row { border-top: 1px solid var(--border); }
.sh-row-link {
  position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 18px; grid-template-areas: 'av main side chev';
  align-items: center; gap: 4px 14px; padding: 14px 16px; color: var(--text); text-decoration: none; transition: background .12s var(--ease);
}
.sh-row-link:hover { color: var(--text); background: var(--primary-50); }
.sh-row-link:focus-visible { outline-offset: -3px; border-radius: 4px; }
.sh-row-avatar { grid-area: av; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-3); color: var(--text-2); font-weight: 750; font-size: .98rem; }
.sh-row-main { grid-area: main; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sh-row-line { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.sh-row-name { min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-row-no { flex: none; color: var(--muted); font-family: var(--font); font-size: .84rem; font-weight: 600; }
.sh-row-sample { flex: none; align-self: center; padding: 1px 7px; border-radius: 999px; background: var(--surface-3); color: var(--muted); font-size: .7rem; font-weight: 700; }
.sh-row-meta { color: var(--muted); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-row-side { grid-area: side; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.sh-row-time { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.sh-row-chev { grid-area: chev; display: grid; color: #a3adbb; }
.sh-row-chev .icon { width: 18px; height: 18px; }
.sh-row.is-attn .sh-row-link::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary); }
.sh-row.is-changes_requested .sh-row-link::before { background: #ea580c; }
.sh-row.is-new .sh-row-avatar { background: #e0f2fe; color: #075985; }
.sh-row.is-changes_requested .sh-row-avatar { background: #ffedd5; color: #9a3412; }
@media (max-width: 600px) {
  .sh-row-link { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: 'av line time' 'av meta meta' 'av pill pill'; gap: 1px 12px; padding: 13px 14px; align-items: baseline; }
  .sh-row-main, .sh-row-side { display: contents; }
  .sh-row-avatar { width: 36px; height: 36px; align-self: start; font-size: .92rem; }
  .sh-row-line { grid-area: line; }
  .sh-row-meta { grid-area: meta; }
  .sh-row-side .pill { grid-area: pill; justify-self: start; margin-top: 7px; }
  .sh-row-time { grid-area: time; }
  .sh-row-chev { display: none; }
  .sh-row-sample { display: none; }
}

/* Empty states */
.sh-empty { max-width: 520px; margin: 0 auto; padding: 36px 20px 32px; text-align: center; }
.sh-empty-sm { padding: 32px 20px 28px; }
.sh-empty-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--primary-soft); color: var(--primary); }
.sh-empty-icon .icon { width: 24px; height: 24px; }
.sh-empty h3 { margin: 14px 0 6px; font-size: 1.1rem; }
.sh-empty p { margin: 0 auto 18px; color: var(--muted); }
.sh-empty-actions { justify-content: center; }
.sh-how { list-style: none; display: grid; gap: 8px; margin: 0 0 20px; padding: 0; text-align: left; }
.sh-how li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; color: var(--text-2); font-size: .92rem; }
.sh-how-n { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-soft-ink); font-size: .8rem; font-weight: 800; }

.sh-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: .86rem; }

/* ---------- order page ---------- */
.sh-back { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin: -6px 0 6px -8px; padding: 0 8px; border-radius: 10px; color: var(--text-2); font-size: .92rem; font-weight: 650; text-decoration: none; }
.sh-back:hover { color: var(--text); background: var(--surface-3); }
.sh-back .icon { width: 18px; height: 18px; }
.sh-ohead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; margin-bottom: 18px; }
.sh-ohead-main { min-width: 0; }
.sh-ohead-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sh-ohead-title h1 { margin: 0; font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.1rem); }
.sh-ohead-title h1 .order-no { font-family: var(--font); font-weight: 800; letter-spacing: -.03em; }
.sh-ohead-title .pill { font-size: .82rem; padding: 5px 11px; }
.sh-ohead-cust { display: flex; flex-wrap: wrap; gap: 0 8px; margin: 6px 0 0; color: var(--text-2); font-size: 1.02rem; overflow-wrap: anywhere; }
.sh-ohead-cust b { color: var(--text); }
.sh-ohead-time { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; color: var(--muted); font-size: .86rem; }
.sh-ohead-time .icon { width: 15px; height: 15px; }
.sh-ohead-quick { display: flex; gap: 8px; }
@media (max-width: 860px) {
  .sh-ohead-quick { width: 100%; }
  .sh-ohead-quick .btn { flex: 1 1 0; }
}

.sh-olayout { display: grid; gap: 16px; }
.sh-olayout > .card + .card, .sh-oside .card + .card { margin-top: 0; }
.sh-oside { display: grid; gap: 16px; align-content: start; min-width: 0; }
@media (min-width: 1000px) {
  .sh-olayout { grid-template-columns: minmax(0, 1fr) 350px; grid-template-rows: auto auto auto 1fr; align-items: start; }
  .sh-olayout > .sh-next { grid-column: 1; grid-row: 1; }
  .sh-olayout > .sh-job { grid-column: 1; grid-row: 2; }
  .sh-olayout > .sh-proof { grid-column: 1; grid-row: 3; }
  .sh-olayout > .sh-history { grid-column: 1; grid-row: 4; }
  .sh-oside { grid-column: 2; grid-row: 1 / span 4; }
}
.sh-card-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 0; }
.sh-card-head h2 { margin: 0; font-size: 1.02rem; }
.sh-card-body { padding: 14px 18px 18px; }
.sh-label { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.sh-label .count { text-transform: none; letter-spacing: 0; }

/* Next step card – tinted by status */
.sh-next {
  --tone-bg: var(--surface-2); --tone-bd: var(--border); --tone-fg: var(--text-2);
  overflow: hidden; border-color: var(--tone-bd);
}
.sh-next-head { display: flex; align-items: flex-start; gap: 14px; padding: 18px; background: var(--tone-bg); border-bottom: 1px solid var(--tone-bd); }
.sh-next-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--tone-fg); box-shadow: var(--shadow-xs); }
.sh-next-icon .icon { width: 22px; height: 22px; }
.sh-next-copy { min-width: 0; }
.sh-next-eyebrow { margin: 0 0 2px; color: var(--tone-fg); font-size: .72rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.sh-next-copy h2 { margin: 0 0 4px; font-size: clamp(1.12rem, 1.05rem + .3vw, 1.3rem); }
.sh-next-copy p { margin: 0; color: var(--text-2); font-size: .94rem; }
.sh-next-new { --tone-bg: #eef7fd; --tone-bd: #cfe6f4; --tone-fg: #075985; }
.sh-next-proof_sent { --tone-bg: #fdf1f7; --tone-bd: #f4d3e4; --tone-fg: #9d174d; }
.sh-next-approved { --tone-bg: #eefaf2; --tone-bd: #c9ebd5; --tone-fg: #166534; }
.sh-next-changes_requested { --tone-bg: #fff5ec; --tone-bd: #f9d9bb; --tone-fg: #9a3412; }
.sh-next-printing { --tone-bg: #fffaea; --tone-bd: #f3e2a6; --tone-fg: #854d0e; }
.sh-next-ready { --tone-bg: #edfaf6; --tone-bd: #c3e9de; --tone-fg: #115e59; }
.sh-next-delivered { --tone-bg: #f4f6f9; --tone-bd: #e4e8ee; --tone-fg: #334155; }
.sh-next-cancelled { --tone-bg: #fdf2f2; --tone-bd: #f3d0d0; --tone-fg: #991b1b; }
.sh-callout { margin: 16px 18px 0; padding: 12px 14px; border: 1px solid #fbd5b0; border-radius: 12px; background: #fff7ef; }
.sh-callout-label { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; color: #9a3412; font-size: .84rem; font-weight: 700; }
.sh-callout-label .icon { width: 16px; height: 16px; }
.sh-callout-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.sh-status-form { display: grid; gap: 14px; padding: 16px 18px 18px; }
.sh-next-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sh-next-actions .btn { flex: 1 1 220px; }
.sh-note summary { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; border-radius: 8px; color: var(--text-2); font-size: .9rem; font-weight: 650; }
.sh-note summary .icon { width: 16px; height: 16px; }
.sh-note[open] summary .icon { transform: rotate(45deg); }
.sh-note textarea { margin-top: 6px; min-height: 72px; }
.sh-note .hint { margin-top: 6px; }
.sh-next-more { display: grid; gap: 8px; padding-top: 14px; border-top: 1px dashed var(--border-strong); }
.sh-next-more-label { color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.sh-next-more-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-cancel { --btn-fg: var(--danger); }
.sh-cancel:hover { --btn-bg: var(--danger-soft); --btn-fg: var(--danger); }
@media (max-width: 600px) {
  .sh-next-head { padding: 16px; gap: 12px; }
  .sh-next-icon { width: 40px; height: 40px; }
  .sh-status-form { padding: 14px 16px 16px; }
  .sh-next-actions .btn { flex-basis: 100%; }
}

/* Job: specs, notes, files */
.sh-specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 18px 0; }
.sh-spec { min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.sh-spec dt { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.sh-spec dd { margin: 2px 0 0; font-size: 1rem; font-weight: 750; overflow-wrap: anywhere; }
@media (max-width: 600px) { .sh-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 12px 16px 0; } }
.sh-notes { padding: 12px 14px; border: 1px solid #f1e3ae; border-radius: 12px; background: #fffcf0; }
.sh-notes .sh-label { margin-bottom: 4px; color: #7c5a06; }
.sh-notes-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.sh-job > .sh-notes { margin: 12px 18px 0; }
.sh-card-body .sh-notes { margin-bottom: 14px; }
.sh-files { padding: 16px 18px 18px; }
.sh-file-list { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.sh-file { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 9px 9px 9px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.sh-file-info { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.sh-file-name { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-file-meta { color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.sh-file.is-deleted { background: var(--surface-2); opacity: .7; }
.sh-file-dl { flex: none; }
.sh-retention { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.sh-retention .icon { width: 15px; height: 15px; }
@media (max-width: 600px) {
  .sh-job > .sh-notes { margin: 12px 16px 0; }
  .sh-files { padding: 14px 16px 16px; }
  .sh-card-head { padding: 14px 16px 0; }
  .sh-card-body { padding: 12px 16px 16px; }
}

/* Proof */
.sh-proof-preview { position: relative; display: block; margin-bottom: 14px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.sh-proof-preview img { width: 100%; max-height: 440px; object-fit: contain; background: #fff; }
.sh-proof-zoom { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: rgba(15, 23, 42, .78); color: #fff; font-size: .8rem; font-weight: 650; }
.sh-proof-zoom .icon { width: 15px; height: 15px; }
.sh-proof-none { margin: 0; }
.sh-proof-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.sh-proof-form h3 { margin: 0 0 12px; font-size: .98rem; }
.sh-drop { padding: 22px 16px; }
.dropzone.has-file { border-style: solid; border-color: var(--primary); background: var(--primary-50); }
.sh-proof-closed { margin-top: 12px; }

/* Customer card */
.sh-cust-head { display: flex; align-items: center; gap: 12px; padding: 18px 18px 10px; }
.sh-cust-avatar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-soft-ink); font-weight: 800; font-size: 1.1rem; }
.sh-cust-id { min-width: 0; }
.sh-cust-id .sh-label { margin: 0; }
.sh-cust-id h2 { margin: 0; font-size: 1.12rem; overflow-wrap: anywhere; }
.sh-contact { list-style: none; margin: 0; padding: 0 10px 10px; }
.sh-contact a, .sh-contact-item { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 48px; padding: 8px; border-radius: 10px; color: var(--text); font-weight: 600; text-decoration: none; }
.sh-contact a:hover { color: var(--text); background: var(--surface-2); }
.sh-contact .icon { flex: none; width: 18px; height: 18px; color: var(--muted); }
.sh-contact a > span:nth-of-type(1), .sh-contact-item > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-contact-cta { flex: none; color: var(--primary); font-size: .84rem; font-weight: 700; }
.sh-cust-section { padding: 16px 18px; border-top: 1px solid var(--border); }
.sh-msg-buttons { display: grid; gap: 8px; margin-bottom: 8px; }
.sh-email { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 10px; }
.sh-email .hint { width: 100%; }
.sh-cust-section .copy-field + .hint { margin-top: 8px; }
.sh-track-open { margin: 6px 0 0 -10px; }

/* History */
.sh-history .history { margin-top: 2px; }
.sh-h-body { min-width: 0; }

/* ---------- link & QR page (.set-) ---------- */
/* One column on phones (link → QR → share → install → tips), two columns on desktop. */
.set-link-grid { display: flex; flex-direction: column; gap: 16px; }
.set-col { display: contents; }
.set-link-grid .card + .card { margin-top: 0; }
.set-hero { order: 1; } .set-qr { order: 2; } .set-share { order: 3; } .set-install { order: 4; } .set-tips { order: 5; }
@media (min-width: 900px) {
  .set-link-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
  .set-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
}

.set-hero { padding: 22px 22px 20px; }
.set-hero-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.set-hero-label { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--text-2); font-size: .9rem; font-weight: 650; letter-spacing: 0; }
.set-hero-label .icon { width: 18px; height: 18px; color: var(--primary); }
.set-link {
  margin: 14px 0 10px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--primary-50);
  font-family: var(--mono); font-size: clamp(1.02rem, .9rem + 1.1vw, 1.45rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.3; overflow-wrap: anywhere;
}
.set-link-host { color: var(--muted); font-weight: 500; }
.set-link-slug { color: var(--primary-soft-ink); }
.set-hero-note { margin: 0 0 18px; color: var(--text-2); font-size: .94rem; }
.set-hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.set-hero-actions .btn:first-child { grid-column: 1 / -1; }
@media (min-width: 600px) {
  .set-hero { padding: 26px 26px 24px; }
  .set-hero-actions { display: flex; flex-wrap: wrap; }
}
.set-closed { margin-top: 16px; }

.set-qr-body { padding: 20px; }
.set-qr-body h2 { margin: 0 0 2px; font-size: 1.02rem; }
.set-qr-body > p { margin: 0 0 16px; font-size: .88rem; }
.set-qr-figure { margin: 0 0 18px; text-align: center; }
.set-qr-tile { width: 100%; max-width: 240px; margin: 0 auto; padding: 14px; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.set-qr-tile img { width: 100%; height: auto; aspect-ratio: 1; image-rendering: pixelated; }
.set-qr-figure figcaption { display: flex; flex-direction: column; gap: 2px; min-width: 0; margin-top: 12px; }
.set-qr-figure figcaption b { font-size: 1rem; overflow-wrap: anywhere; }
.set-qr-figure figcaption .mono { color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }

.set-copy-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.set-copy-head label { font-size: .9rem; font-weight: 650; }
.set-copy-text { min-height: 0; resize: none; border-color: var(--border); background: var(--surface-2); color: var(--text-2); font-size: .93rem; cursor: text; }
.set-copy .hint { margin-top: 6px; }

.set-tip-list { list-style: none; display: grid; gap: 0; margin: 0; padding: 6px 18px 12px; }
.set-tip-list li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.set-tip-list li:last-child { border-bottom: 0; }
.set-tip-list li > span:last-child { display: flex; flex-direction: column; min-width: 0; font-size: .92rem; line-height: 1.4; }
.set-tip-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.set-tip-icon .icon { width: 18px; height: 18px; }
.set-tip-wa { background: var(--success-soft); color: var(--wa); }
.set-tip-ig { background: #fbe7f3; color: #b0006a; }
.set-tip-ct { background: #fdf3d3; color: #8a4b06; }
@media (min-width: 700px) {
  .set-tip-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .set-tip-list li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}

.set-install { padding: 20px; }
.set-install-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.set-install-head h2 { margin: 2px 0 4px; font-size: 1rem; }
.set-install-head p { margin: 0; font-size: .88rem; }
.set-install-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.set-install-hint { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; padding: 11px 14px; border-radius: var(--radius); background: var(--surface-2); color: var(--text-2); font-size: .88rem; }
.set-install-hint > b { color: var(--text); font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; }
.set-install-hint .icon { width: 16px; height: 16px; vertical-align: -3px; }
.set-install .btn[data-install] { margin-bottom: 4px; }
.is-standalone .set-install { display: none; }

/* ---------- settings page ---------- */
.set-demo-note { margin-bottom: 18px; }
.set-split { display: grid; gap: 20px; align-items: start; }
.set-side { display: grid; gap: 20px; min-width: 0; }
.set-split .card + .card { margin-top: 0; }
@media (min-width: 1000px) { .set-split { grid-template-columns: minmax(0, 1fr) 360px; } }
.set-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.set-card-head h2 { margin: 0; font-size: 1.05rem; }
.set-card-head p { margin: 3px 0 0; color: var(--muted); font-size: .86rem; }
.set-card-head .pill { flex: none; margin-top: 2px; }
.set-form { padding: 6px 20px 0; }
.set-form > .alert { margin-top: 12px; }
.set-section { min-width: 0; margin: 0; padding: 20px 0 6px; border: 0; border-bottom: 1px solid var(--border); }
.set-section:last-of-type { border-bottom: 0; }
.set-section-title { float: left; width: 100%; margin: 0 0 4px; padding: 0; color: var(--text); font-size: .8rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.set-section-title + * { clear: both; }
.set-section-text { margin: 0 0 14px; color: var(--muted); font-size: .86rem; }
.set-section-title + .set-brand-grid { padding-top: 10px; }
@media (max-width: 600px) {
  .set-card-head { padding: 16px 16px 0; }
  .set-form { padding: 4px 16px 0; }
}

/* Branding: fields + live preview side by side on wide screens */
.set-brand-grid { display: grid; gap: 4px 24px; }
.set-brand-fields { min-width: 0; }
@media (min-width: 1180px) {
  .set-brand-grid { grid-template-columns: minmax(0, 1fr) 260px; align-items: start; }
  .set-brand-grid .set-preview-wrap { position: sticky; top: calc(var(--header-h) + 16px); }
}
.set-preview-wrap { margin: 0 0 18px; }
.set-preview-wrap figcaption { margin-top: 8px; text-align: center; }
.set-preview { overflow: hidden; border: 1px solid var(--border); border-top: 4px solid var(--brand); border-radius: 14px; background: var(--bg); box-shadow: var(--shadow-sm); user-select: none; }
.set-preview-head { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--surface); }
.set-preview-logo { flex: none; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 10px; background: #fff; object-fit: contain; }
.set-preview-initial { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-size: 1.1rem; font-weight: 800; }
.set-preview-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.set-preview-text b, .set-preview-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-preview-text b { font-size: .92rem; }
.set-preview-text small { color: var(--muted); font-size: .76rem; }
.set-preview-body { display: grid; gap: 10px; padding: 14px 12px; }
.set-preview-line { display: block; width: 62%; height: 9px; border-radius: 6px; background: var(--surface-3); }
.set-preview-line.is-short { width: 40%; margin-bottom: 4px; }
.set-preview-drop { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 2px dashed var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--text-2); font-size: .84rem; font-weight: 650; }
.set-preview-drop .icon { color: var(--brand); }
.set-preview-btn { display: block; padding: 10px; border-radius: 12px; background: var(--brand); color: var(--brand-ink); font-size: .9rem; font-weight: 750; text-align: center; }

/* Logo picker */
.set-logo-row { display: flex; align-items: flex-start; gap: 16px; min-width: 0; }
.set-logo-thumb { flex: none; display: grid; place-items: center; width: 72px; height: 72px; padding: 4px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-2); overflow: hidden; }
.set-logo-thumb img { width: 100%; height: 100%; border-radius: 12px; background: #fff; object-fit: contain; }
.set-logo-empty { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 12px; color: var(--muted); }
.set-logo-empty .icon { width: 26px; height: 26px; }
.set-logo-actions { position: relative; display: grid; flex: 1 1 auto; gap: 6px; min-width: 0; }
.set-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0, 0, 0, 0); }
.set-file-input:focus-visible + .set-file-btn { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--ring); }
.set-file-btn { cursor: pointer; }
.set-file-name { margin: 0; color: var(--success); font-size: .86rem; font-weight: 650; overflow-wrap: anywhere; }

/* Brand colour */
.set-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.set-swatch { flex: none; width: 40px; height: 40px; padding: 0; border: 3px solid var(--surface); border-radius: 50%; box-shadow: 0 0 0 1px var(--border-strong); cursor: pointer; transition: box-shadow .12s var(--ease); }
.set-swatch:hover { box-shadow: 0 0 0 1px var(--text-2); }
.set-swatch:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--ring); }
.set-swatch[aria-pressed=true] { box-shadow: 0 0 0 2px var(--text); }
.set-sw-0 { background: #4f46e5; } .set-sw-1 { background: #6366f1; } .set-sw-2 { background: #f97316; } .set-sw-3 { background: #e11d48; }
.set-sw-4 { background: #f97316; } .set-sw-5 { background: #16a34a; } .set-sw-6 { background: #7c3aed; } .set-sw-7 { background: #0b1220; }
.set-color-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.set-color-row input[type=color] { flex: none; }
.set-hex { max-width: 150px; font-family: var(--mono); letter-spacing: .02em; }

.set-days { max-width: 200px; }
.set-days input { text-align: left; }
.set-addon-end { border-right: 0; border-left: 1px solid var(--border); }
.has-error .input-group { border-color: var(--danger); }
.set-sizes { line-height: 1.6; }
.set-over { color: var(--danger); font-weight: 750; }

/* Save bar sticks to the bottom of the screen while the long form scrolls. */
.set-save {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin: 0 -20px; padding: 14px 20px;
  border-top: 1px solid var(--border); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
@media (max-width: 860px) { .set-save { bottom: calc(var(--tabbar-h) + var(--safe-bottom)); } }
@media (max-width: 600px) { .set-save { margin: 0 -16px; padding: 12px 16px; } }
@media (max-width: 520px) { .set-save .btn { flex: 1 1 100%; } .set-save .hint { width: 100%; text-align: center; } }

/* Account + password cards */
.set-account-body { padding: 16px 20px 20px; }
.set-kv { display: grid; gap: 0; margin: 0 0 16px; }
.set-kv > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.set-kv > div:first-child { padding-top: 0; }
.set-kv dt { color: var(--muted); font-size: .86rem; font-weight: 600; }
.set-kv dd { margin: 0; font-size: .92rem; font-weight: 600; overflow-wrap: anywhere; }
.set-kv dd .muted { font-weight: 500; }
.set-kv-note { display: block; margin-top: 3px; color: var(--muted); font-size: .78rem; font-weight: 500; }
@media (max-width: 400px) { .set-kv > div { grid-template-columns: 1fr; gap: 2px; } }
.set-due { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-size: .74rem; font-weight: 750; white-space: nowrap; }
.set-due.is-soon { background: var(--warn-soft); color: var(--warn); }
.set-due.is-over { background: var(--danger-soft); color: var(--danger); }
.set-logout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 14px 10px 20px; border-top: 1px solid var(--border); border-radius: 0 0 var(--radius-lg) var(--radius-lg); background: var(--surface-2); font-size: .84rem; }
.set-logout > span { min-width: 0; overflow-wrap: anywhere; }
.set-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.set-fieldset[disabled] { opacity: .6; }
.set-password .set-account-body { padding-top: 14px; }

/* ---------- counter poster ---------- */
.set-poster-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; max-width: 640px; margin: 0 auto 8px; padding: 0 16px; }
.set-paper { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); }
.set-paper-btn { min-height: 38px; min-width: 52px; padding: 6px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font: inherit; font-size: .88rem; font-weight: 750; cursor: pointer; }
.set-paper-btn[aria-pressed=true] { background: var(--text); color: var(--bg); }
.set-paper-btn:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--ring); }
.set-poster-help { margin: 0 auto 18px; padding: 0 16px; max-width: 640px; text-align: center; color: var(--muted); font-size: .86rem; }
.set-poster-stage { display: flex; justify-content: center; padding: 0 16px; }

/* All poster sizes use --u (1u = 1 mm on A4) so screen preview, A4 and A5 keep the same proportions. */
.set-poster {
  --u: calc(min(100vw - 32px, 560px) / 210);
  position: relative; overflow: hidden; flex: none;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  width: calc(var(--u) * 210); height: calc(var(--u) * 297);
  padding: calc(var(--u) * 18) calc(var(--u) * 16) calc(var(--u) * 12);
  border-radius: calc(var(--u) * 3);
  background: #fff; color: #0b1220; box-shadow: var(--shadow-lg);
  font-family: var(--font);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.set-poster-bar { position: absolute; left: 0; right: 0; top: 0; display: flex; height: calc(var(--u) * 4); }
.set-poster-bar span { flex: 1; }
.set-poster-bar span:nth-child(1) { background: #6366f1; } .set-poster-bar span:nth-child(2) { background: #f97316; }
.set-poster-bar span:nth-child(3) { background: #fbbf24; } .set-poster-bar span:nth-child(4) { background: #0b1220; }
.set-poster-shop { display: flex; align-items: center; justify-content: center; gap: calc(var(--u) * 4); max-width: 100%; min-width: 0; }
.set-poster-logo, .set-poster-initial { flex: none; width: calc(var(--u) * 20); height: calc(var(--u) * 20); border-radius: calc(var(--u) * 5); }
.set-poster-logo { object-fit: contain; }
.set-poster-initial { display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-size: calc(var(--u) * 11); font-weight: 800; }
.set-poster-shop-text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; text-align: left; }
.set-poster-shop-text b { font-size: calc(var(--u) * 8.5); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; overflow-wrap: anywhere; }
.set-poster-shop-text span { margin-top: calc(var(--u) * 1); font-size: calc(var(--u) * 4); color: #475569; overflow-wrap: anywhere; }
.set-poster-title { margin: calc(var(--u) * 14) 0 calc(var(--u) * 3); max-width: calc(var(--u) * 172); color: #0b1220; font-size: calc(var(--u) * 14); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; text-wrap: balance; }
.set-poster-sub { margin: 0 0 calc(var(--u) * 9); color: #475569; font-size: calc(var(--u) * 5); }
.set-poster-qr { width: calc(var(--u) * 126); padding: calc(var(--u) * 5); border: calc(var(--u) * 1.6) solid var(--brand); border-radius: calc(var(--u) * 7); background: #fff; }
.set-poster-qr img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.set-poster-link { max-width: 100%; margin: calc(var(--u) * 6) 0 0; font-family: var(--mono); font-size: calc(var(--u) * 5.2); font-weight: 700; color: #0b1220; overflow-wrap: anywhere; }
.set-poster-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(var(--u) * 4); width: 100%; margin: auto 0 0; padding: 0; }
.set-poster-steps li { display: flex; flex-direction: column; align-items: center; gap: calc(var(--u) * 2.5); color: #1e293b; font-size: calc(var(--u) * 4.2); font-weight: 700; line-height: 1.25; }
.set-step-no { display: grid; place-items: center; width: calc(var(--u) * 10); height: calc(var(--u) * 10); border-radius: 50%; font-size: calc(var(--u) * 5); font-weight: 800; color: #fff; }
.set-poster-steps li:nth-child(1) .set-step-no { background: #6366f1; }
.set-poster-steps li:nth-child(2) .set-step-no { background: #f97316; }
.set-poster-steps li:nth-child(3) .set-step-no { background: #fbbf24; color: #0b1220; }
.set-poster-foot { display: flex; align-items: center; justify-content: center; gap: calc(var(--u) * 2); margin-top: calc(var(--u) * 9); color: #64748b; font-size: calc(var(--u) * 3.6); }
.set-poster-foot svg { width: calc(var(--u) * 5); height: calc(var(--u) * 5); border-radius: calc(var(--u) * 1.4); }
.set-poster-foot b { color: #0b1220; }

@page set-poster-a4 { size: A4 portrait; margin: 0; }
@page set-poster-a5 { size: A5 portrait; margin: 0; }
@media print {
  html, body.set-poster-page { background: #fff !important; }
  body.set-poster-page { display: block; min-height: 0; }
  .set-poster-page .main { padding: 0 !important; }
  .set-poster-page .flash-stack, .set-poster-page .skip-link { display: none !important; }
  .set-poster-stage { display: block; padding: 0; }
  /* Fallback (no named pages): small enough for the default margins on A4 and Letter. */
  .set-poster { --u: .86mm; margin: 0 auto; box-shadow: none; border-radius: 0; break-inside: avoid; }
  @supports (page: set-poster-a4) {
    .set-poster { --u: 1mm; height: calc(var(--u) * 296.5); page: set-poster-a4; }
    .set-poster.is-a5 { --u: calc(148mm / 210); page: set-poster-a5; }
  }
}


/* ---------- customer ---------- */
/* Customer pages: shop-branded header, order form, closed page, tracking page (.cust-).
   White only. Brand colour comes from /brand/<slug>.css (--brand / --brand-ink). */

.v-customer {
  --cust-tint: color-mix(in srgb, var(--brand) 7%, #ffffff);
  --cust-tint-2: color-mix(in srgb, var(--brand) 14%, #ffffff);
  /* Brand colour as text on white: darkened so light brands (yellow, lime) stay readable. */
  --cust-brand-text: var(--brand-text, color-mix(in srgb, var(--brand) 55%, #0b1220));
  --cust-brand-line: color-mix(in srgb, var(--brand) 38%, #e2e8f0);
  --cust-brand-glow: color-mix(in srgb, var(--brand) 55%, transparent);
  --cust-ok-line: #a7e3bd;
  --cust-ok-ring: rgba(21, 128, 61, .10);
}

/* ---------- layout ---------- */
.cust-wrap {
  width: 100%; max-width: 1040px; margin: 0 auto;
  padding: 0 16px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right));
}
.cust-narrow { max-width: 640px; }
.v-customer .main-customer { padding: 16px 0 24px; }
.v-customer .main-customer .flash-stack { max-width: 1040px; }
.cust-page { display: grid; gap: 16px; }
.cust-page > * { min-width: 0; }
@media (min-width: 640px) {
  .cust-wrap { padding: 0 24px; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
  .v-customer .main-customer { padding: 28px 0 36px; }
  .v-customer .main-customer .flash-stack { padding: 0 24px; }
  .cust-narrow { max-width: 688px; }
}

.cust-card {
  min-width: 0; padding: 20px 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) { .cust-card { padding: 24px; } }

/* ---------- header / footer ---------- */
.cust-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.cust-header::before { content: ''; display: block; height: 3px; background: var(--brand); }
.cust-header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.cust-brand { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 0; color: var(--text); text-decoration: none; border-radius: 12px; }
.cust-brand:hover { color: var(--text); }
.cust-mark { flex: none; width: 44px; height: 44px; border-radius: 12px; }
.cust-mark-logo { object-fit: contain; background: #ffffff; border: 1px solid var(--border); }
.cust-mark-initial { display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-size: 1.2rem; font-weight: 800; }
.cust-brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.cust-brand-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.02rem; font-weight: 750; letter-spacing: -.01em; }
.cust-brand-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; color: var(--muted); }
.cust-call { flex: none; width: 44px; padding: 0; }
.cust-call-text { display: none; }
@media (min-width: 520px) {
  .cust-call { width: auto; padding: 10px 18px; }
  .cust-call-text { display: inline; }
}

.cust-footer { margin-top: auto; padding: 12px 16px calc(20px + var(--safe-bottom)); text-align: center; }
.cust-footer a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); font-size: .84rem; text-decoration: none; }
.cust-footer a:hover { color: var(--text); }

/* ---------- shared bits ---------- */
.cust-owner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 14px;
  border: 1px solid #bae6fd; border-radius: var(--radius); background: var(--info-soft);
  color: var(--primary-soft-ink); font-size: .9rem; font-weight: 600;
}
.cust-owner .icon { width: 18px; height: 18px; }
.cust-owner span { flex: 1 1 200px; min-width: 0; }
.cust-owner a { color: inherit; font-weight: 750; }

.cust-kicker { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .02em; color: var(--cust-brand-text); min-width: 0; }
.cust-kicker .icon { width: 16px; height: 16px; }
.cust-kicker span { overflow-wrap: anywhere; }
.cust-lead { margin: 0; color: var(--text-2); font-size: 1rem; line-height: 1.55; }
.cust-muted { margin: 0 0 14px; color: var(--muted); font-size: .94rem; }

.cust-h2 { display: flex; align-items: center; gap: 10px; margin: 0; min-width: 0; font-size: 1.08rem; letter-spacing: -.01em; }
.cust-h2 > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
.cust-h2-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); }
.cust-h2-ic .icon { width: 18px; height: 18px; }
.cust-h2 .count { margin-left: 2px; }
.cust-card > .cust-h2 { margin-bottom: 14px; }
.cust-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 16px; }
.cust-head-meta { font-size: .84rem; color: var(--muted); white-space: nowrap; }

.cust-contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cust-contact-actions .btn { flex: 1 1 170px; }
.cust-address { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; color: var(--text-2); font-size: .92rem; white-space: pre-line; overflow-wrap: anywhere; }
.cust-address .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--muted); }

.cust-note { padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); border-left: 3px solid var(--brand); }
.cust-note-you { border-left-color: var(--border-strong); }
.cust-note-label { display: block; margin-bottom: 4px; font-size: .72rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cust-note p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* file rows (order form list + tracking page) */
.cust-file-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.cust-file {
  display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 58px; padding: 8px 6px 8px 10px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.cust-file-ext {
  flex: none; display: grid; place-items: center; width: 44px; height: 40px; padding: 0 4px; border-radius: 9px;
  background: var(--cust-tint-2); color: var(--cust-brand-text);
  font-family: var(--mono); font-size: .68rem; font-weight: 700; text-transform: uppercase; overflow: hidden;
}
.cust-file-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.cust-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .94rem; font-weight: 650; }
.cust-file-meta { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cust-file-btn { flex: none; color: var(--muted); }
.cust-file-btn:hover { --btn-fg: var(--text); }
.cust-file-remove:hover { --btn-fg: var(--danger); --btn-bg: var(--danger-soft); }
.cust-file.is-deleted { opacity: .6; }
.cust-file-new { animation: cust-in .2s var(--ease); }
@keyframes cust-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- order form: hero ---------- */
.cust-hero { padding: 4px 2px 0; }
.cust-hero h1 { margin: 10px 0 8px; font-size: clamp(1.55rem, 1.15rem + 1.8vw, 2.25rem); letter-spacing: -.03em; overflow-wrap: anywhere; }
.cust-hero-shop { color: var(--cust-brand-text); }
.cust-hero .cust-lead { max-width: 58ch; }
.cust-perks { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.cust-perks li {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 9px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); font-size: .8rem; font-weight: 650; color: var(--text-2);
}
.cust-perks .icon { width: 14px; height: 14px; color: var(--success); }
@media (max-width: 400px) { .cust-perks li:nth-child(2) { display: none; } }

/* server-side error summary */
.cust-errors { padding: 14px 16px; border: 1px solid #fecaca; border-radius: var(--radius-lg); background: var(--danger-soft); color: var(--danger); }
.cust-errors-title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-weight: 750; }
.cust-errors ul { margin: 0; padding-left: 28px; display: grid; gap: 2px; }
.cust-errors a { color: inherit; font-weight: 600; font-size: .92rem; }

/* ---------- order form: layout ---------- */
.cust-form { display: grid; gap: 16px; }
.cust-main { display: grid; gap: 16px; min-width: 0; }
.cust-side { display: contents; }
.cust-form.is-uploading .cust-main { opacity: .55; pointer-events: none; transition: opacity .2s var(--ease); }
@media (min-width: 900px) {
  .cust-form { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
  .cust-side {
    display: grid; gap: 16px; position: sticky; top: 20px; padding: 22px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow);
  }
}

/* step indicator */
.cust-stepper {
  list-style: none; margin: 0; padding: 14px 6px 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.cust-step { position: relative; min-width: 0; }
.cust-step::before { content: ''; position: absolute; top: 13px; left: calc(-50% + 20px); right: calc(50% + 20px); height: 2px; border-radius: 2px; background: var(--border); }
.cust-step:first-child::before { display: none; }
.cust-step.is-done::before, .cust-step.is-current::before { background: var(--brand); }
.cust-step a {
  display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px;
  color: var(--muted); font-size: .76rem; font-weight: 650; line-height: 1.2; text-align: center; text-decoration: none; border-radius: 10px;
}
.cust-step a:hover { color: var(--text); }
.cust-step-dot {
  position: relative; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--border-strong); background: var(--surface); color: var(--muted); font-size: .8rem; font-weight: 800;
  transition: background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.cust-step-dot .icon { display: none; width: 15px; height: 15px; stroke-width: 3; }
.cust-step-label { overflow-wrap: anywhere; }
.cust-step.is-current a { color: var(--text); font-weight: 750; }
.cust-step.is-current .cust-step-dot { border-color: var(--brand); color: var(--cust-brand-text); box-shadow: 0 0 0 4px var(--cust-tint-2); }
.cust-step.is-done a { color: var(--text-2); }
.cust-step.is-done .cust-step-dot { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); }
.cust-step.is-done .cust-step-dot b { display: none; }
.cust-step.is-done .cust-step-dot .icon { display: block; }
@media (min-width: 640px) { .cust-stepper { padding: 16px 12px 14px; } .cust-step a { font-size: .82rem; } }

/* sections */
.cust-sec {
  min-width: 0; padding: 18px 16px 20px; scroll-margin-top: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) { .cust-sec { padding: 24px 24px 26px; } }
.cust-sec-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.cust-sec-num {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  background: var(--cust-tint-2); color: var(--cust-brand-text); font-size: .92rem; font-weight: 800;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.cust-sec-num .icon { display: none; width: 18px; height: 18px; stroke-width: 2.6; }
.cust-sec.is-done .cust-sec-num { background: var(--success-soft); color: var(--success); }
.cust-sec.is-done .cust-sec-num b { display: none; }
.cust-sec.is-done .cust-sec-num .icon { display: block; }
.cust-sec-titles { min-width: 0; }
.cust-sec-titles h2 { margin: 4px 0 3px; font-size: 1.14rem; letter-spacing: -.015em; }
.cust-sec-titles p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.45; overflow-wrap: anywhere; }
.cust-sec-body > :last-child { margin-bottom: 0; }
.cust-sec input[type=text], .cust-sec input[type=tel], .cust-sec input[type=email], .cust-sec input[type=number], .cust-sec select { min-height: 52px; }

/* mobile number with country code */
.cust-tel {
  display: flex; align-items: stretch; min-width: 0; border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--surface); transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.cust-tel:hover { border-color: var(--muted); }
.cust-tel:focus-within { border-color: var(--cyan); box-shadow: var(--ring); }
.cust-tel-cc {
  flex: none; display: flex; align-items: center; padding: 0 12px 0 14px; border-right: 1px solid var(--border);
  border-radius: var(--radius) 0 0 var(--radius); background: var(--surface-2); color: var(--text-2); font-weight: 650;
}
.cust-sec .cust-tel input { flex: 1 1 auto; min-width: 0; min-height: 50px; border: 0; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: none !important; }
.has-error .cust-tel { border-color: var(--danger); }

/* optional email */
.cust-more > summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 2px; border-radius: 8px;
  color: var(--cust-brand-text); font-size: .92rem; font-weight: 650; cursor: pointer; list-style: none;
}
.cust-more > summary::-webkit-details-marker { display: none; }
.cust-more > summary .icon { width: 18px; height: 18px; }
.cust-more > summary .optional { color: var(--muted); }
.cust-more[open] > summary { margin-bottom: 4px; }
.cust-more .field { margin-bottom: 0; }

/* drop zone */
.dropzone.cust-drop {
  min-height: 196px; padding: 26px 18px; gap: 4px; border: 2px dashed var(--cust-brand-line); border-radius: var(--radius-lg);
  background: var(--cust-tint); cursor: pointer;
}
.dropzone.cust-drop:hover, .dropzone.cust-drop.is-over { border-color: var(--brand); background: var(--cust-tint-2); }
.cust-drop-ic {
  display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 10px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); box-shadow: 0 10px 22px -10px var(--cust-brand-glow);
}
.dropzone.cust-drop .cust-drop-ic .icon { width: 26px; height: 26px; color: inherit; }
.cust-drop-title { font-size: 1.08rem; color: var(--text); }
.cust-drop-sub { font-size: .9rem; color: var(--text-2); }
.cust-dz-drag { display: none; }
@media (hover: hover) and (pointer: fine) { .cust-dz-drag { display: inline; } .cust-dz-tap { display: none; } }
.dropzone.cust-drop.has-files { min-height: 0; flex-direction: row; gap: 12px; padding: 14px 16px; border-width: 1.5px; }
.dropzone.cust-drop.has-files .cust-drop-ic { width: 38px; height: 38px; margin: 0; box-shadow: none; }
.dropzone.cust-drop.has-files .cust-drop-ic .icon { width: 19px; height: 19px; }
.cust-drop.has-files .cust-drop-title { font-size: .98rem; }
.cust-drop.has-files .cust-drop-sub { display: none; }
.cust-dz-picked {
  display: none; align-items: center; gap: 6px; margin-top: 8px; padding: 5px 12px; border-radius: 999px;
  background: var(--success-soft); color: var(--success); font-size: .86rem; font-weight: 700;
}
.dropzone.cust-drop .cust-dz-picked .icon { width: 16px; height: 16px; color: inherit; }
.cust-drop input:valid ~ .cust-dz-picked { display: inline-flex; } /* no-JS: confirm a selection */
.cust-form.is-enhanced .cust-dz-picked { display: none !important; }
.cust-files.has-error .dropzone.cust-drop { border-color: var(--danger); background: var(--danger-soft); }
.cust-files .cust-file-list { margin-top: 12px; }
.cust-files-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: .86rem; font-weight: 650; color: var(--text-2); font-variant-numeric: tabular-nums; }
.cust-files-bar .link-btn { min-height: 40px; font-size: .86rem; color: var(--muted); }
.cust-files-bar .link-btn:hover { color: var(--danger); }
.cust-form.is-uploading .cust-file-remove, .cust-form.is-uploading [data-files-clear] { visibility: hidden; }
.cust-files-error { margin-top: 10px; }
.cust-files-hint { margin-top: 10px; }
.cust-types summary { display: inline-flex; align-items: center; min-height: 36px; font-size: .84rem; font-weight: 650; color: var(--cust-brand-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cust-types p { margin: 2px 0 0; font-family: var(--mono); font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }

/* print options */
.cust-opt { min-width: 0; margin: 0 0 22px; padding: 0; border: 0; }
.cust-opt .field { margin-bottom: 0; }
.cust-opt-label { display: block; margin: 0 0 8px; padding: 0; font-size: .92rem; font-weight: 650; color: var(--text); }
.cust-opt .field-error { margin-top: 8px; }
.cust-opt-pair { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .cust-opt-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cust-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.cust-size { position: relative; min-width: 0; }
.cust-size input { position: absolute; left: 50%; bottom: 0; width: 1px; height: 1px; margin: 0; opacity: 0; }
.cust-size span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--border-strong); border-radius: 999px;
  background: var(--surface); color: var(--text-2); font-size: .92rem; font-weight: 650; cursor: pointer; overflow-wrap: anywhere;
  transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}
.cust-size span:hover { border-color: var(--muted); color: var(--text); }
.cust-size input:checked + span { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); }
.cust-size input:focus-visible + span { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--ring); }
.cust-opt.has-error .cust-size span { border-color: var(--danger); }

.cust-qty { display: flex; align-items: stretch; gap: 8px; max-width: 240px; }
.cust-qty input { min-width: 0; }
.cust-qty.is-enhanced input { text-align: center; font-size: 1.1rem; font-weight: 750; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.cust-qty.is-enhanced input::-webkit-outer-spin-button, .cust-qty.is-enhanced input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cust-qty-btn {
  flex: none; display: grid; place-items: center; width: 52px; min-height: 52px; padding: 0;
  border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); color: var(--text); cursor: pointer;
  transition: background .15s var(--ease), border-color .15s var(--ease);
}
.cust-qty-btn:hover { background: var(--surface-2); border-color: var(--muted); }
.cust-qty-btn:active { transform: scale(.96); }
.cust-qty-btn:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--ring); }

.cust-togs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cust-tog { position: relative; min-width: 0; }
.cust-tog input { position: absolute; left: 50%; bottom: 0; width: 1px; height: 1px; margin: 0; opacity: 0; }
.cust-tog-box {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; height: 100%; min-height: 108px;
  padding: 14px 14px 12px; border: 1.5px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); cursor: pointer;
  transition: border-color .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease);
}
.cust-tog-box:hover { border-color: var(--muted); }
.cust-tog-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.cust-tog-text b { font-size: .96rem; color: var(--text); overflow-wrap: anywhere; }
.cust-tog-text small { margin-top: 2px; font-size: .78rem; color: var(--muted); }
.cust-tog-tick {
  position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--border-strong); background: var(--surface); color: transparent;
}
.cust-tog-tick .icon { width: 13px; height: 13px; stroke-width: 3.2; }
.cust-tog input:checked + .cust-tog-box { border-color: var(--brand); background: var(--cust-tint); box-shadow: inset 0 0 0 1px var(--brand); }
.cust-tog input:checked + .cust-tog-box .cust-tog-tick { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); }
.cust-tog input:checked + .cust-tog-box .cust-glyph { color: var(--cust-brand-text); }
.cust-tog input:focus-visible + .cust-tog-box { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--ring); }
.cust-opt.has-error .cust-tog-box { border-color: var(--danger); }

.cust-swatch { display: flex; align-items: center; height: 30px; padding-left: 2px; }
.cust-swatch i { width: 20px; height: 20px; margin-right: -7px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface); }
.cust-swatch-color i:nth-child(1) { background: var(--cyan); }
.cust-swatch-color i:nth-child(2) { background: var(--magenta); }
.cust-swatch-color i:nth-child(3) { background: var(--yellow); }
.cust-swatch-bw i:nth-child(1) { background: #0b1220; }
.cust-swatch-bw i:nth-child(2) { background: #ffffff; box-shadow: 0 0 0 2px var(--surface), inset 0 0 0 1.5px #94a3b8; }
.cust-glyph { display: block; color: var(--muted); transition: color .15s var(--ease); }
.cust-glyph .pg-front { fill: var(--surface); }
.cust-glyph .pg-back { fill: var(--surface-3); }

/* ---------- order form: summary + send ---------- */
.cust-sum { display: none; }
.cust-sum-title { margin: 0 0 6px; font-size: 1.05rem; }
.cust-sum-list { margin: 0; display: grid; }
.cust-sum-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: .92rem; }
.cust-sum-list dt { flex: none; color: var(--muted); }
.cust-sum-list dd { margin: 0; min-width: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.cust-sum-list dd.is-missing { color: var(--muted); font-weight: 600; }

/* Phones: one compact floating row – summary on the left, Send on the right. */
.cust-submit {
  position: sticky; bottom: calc(10px + var(--safe-bottom)); z-index: 20;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 12px; padding: 10px 10px 10px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm);
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.cust-submit > [data-form-error], .cust-submit > .cust-progress { grid-column: 1 / -1; }
.cust-submit.is-stuck { border-color: var(--border-strong); box-shadow: 0 -1px 0 rgba(15, 23, 42, .02), var(--shadow-lg); }
.cust-sum-line {
  margin: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  font-size: .84rem; font-weight: 650; line-height: 1.35; color: var(--text); overflow-wrap: anywhere;
}
.cust-sum-line.is-missing { color: var(--muted); font-weight: 600; }
.cust-send { min-height: 54px; font-size: 1.04rem; }
.cust-sum-line[hidden] + .cust-send { grid-column: 1 / -1; }
.cust-form.is-uploading .cust-submit { padding: 14px 16px; }
.cust-send .icon { width: 20px; height: 20px; }
.cust-form.is-uploading .cust-send, .cust-form.is-uploading .cust-sum-line { display: none; }
@media (max-width: 899px) and (pointer: coarse) {
  /* The on-screen keyboard leaves little room: no floating bar while typing. */
  .cust-form.is-typing .cust-submit { position: relative; bottom: auto; }
}
@media (min-width: 900px) {
  .cust-sum { display: block; }
  .cust-submit { position: static; grid-template-columns: minmax(0, 1fr); padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .cust-form.is-uploading .cust-submit { padding: 0; }
  .cust-submit.is-stuck { box-shadow: none; }
  .cust-sum-line { display: none; }
}

.cust-trust { display: flex; align-items: flex-start; justify-content: center; gap: 8px; margin: 0; padding: 0 6px; font-size: .84rem; line-height: 1.45; color: var(--muted); }
.cust-trust .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--success); }
.cust-trust-demo .icon { color: var(--warn); }
.cust-trust b { color: var(--text-2); }
@media (min-width: 900px) { .cust-trust { justify-content: flex-start; padding: 14px 0 0; border-top: 1px solid var(--border); } }

/* upload progress */
.cust-progress { padding: 4px 4px 2px; }
.cust-progress-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cust-progress-head .spinner { flex: none; color: var(--cust-brand-text); }
.cust-progress-head strong { flex: 1 1 auto; min-width: 0; font-size: .96rem; }
.cust-progress-pct { flex: none; font-family: var(--mono); font-size: 1.1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.cust-progress-bar {
  display: block; width: 100%; height: 10px; margin: 12px 0 8px; border: 0; border-radius: 999px; overflow: hidden;
  background: var(--surface-3); color: var(--brand); -webkit-appearance: none; appearance: none;
}
.cust-progress-bar::-webkit-progress-bar { background: var(--surface-3); border-radius: 999px; }
.cust-progress-bar::-webkit-progress-value { background-color: var(--brand); border-radius: 999px; transition: width .25s linear; }
.cust-progress-bar::-moz-progress-bar { background-color: var(--brand); border-radius: 999px; }
.cust-progress.is-processing .cust-progress-bar::-webkit-progress-value {
  background-image: linear-gradient(45deg, rgba(255, 255, 255, .3) 25%, transparent 25% 50%, rgba(255, 255, 255, .3) 50% 75%, transparent 75%);
  background-size: 24px 24px; animation: cust-stripes .8s linear infinite;
}
.cust-progress.is-processing .cust-progress-bar::-moz-progress-bar {
  background-image: linear-gradient(45deg, rgba(255, 255, 255, .3) 25%, transparent 25% 50%, rgba(255, 255, 255, .3) 50% 75%, transparent 75%);
  background-size: 24px 24px; animation: cust-stripes .8s linear infinite;
}
@keyframes cust-stripes { to { background-position: 24px 0; } }
.cust-progress-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: .84rem; font-weight: 650; color: var(--text-2); font-variant-numeric: tabular-nums; }
.cust-progress-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 8px; }
.cust-progress-foot .hint { flex: 1 1 auto; min-width: 0; font-size: .8rem; }
.cust-progress-foot .btn { flex: none; }

/* ---------- closed shop ---------- */
.cust-closed { padding: 36px 20px; text-align: center; }
.cust-closed-ic { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 16px; border-radius: 50%; background: var(--warn-soft); color: var(--warn); }
.cust-closed-ic .icon { width: 30px; height: 30px; }
.cust-closed h1 { margin: 0 0 10px; font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.8rem); overflow-wrap: anywhere; }
.cust-closed .cust-lead { max-width: 46ch; margin: 0 auto 22px; }
.cust-closed .cust-contact-actions { justify-content: center; }
.cust-closed .cust-address { justify-content: center; text-align: left; }
.cust-closed-note { display: inline-flex; align-items: center; gap: 8px; margin: 22px 0 0; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); font-size: .86rem; color: var(--text-2); text-align: left; }
.cust-closed-note .icon { width: 16px; height: 16px; color: var(--muted); }
@media (min-width: 640px) { .cust-closed { padding: 48px 40px; } }

/* ---------- tracking ---------- */
.cust-cols { display: grid; gap: 16px; }
.cust-col-main, .cust-col-side { display: grid; gap: 16px; min-width: 0; align-content: start; }
@media (min-width: 900px) {
  .cust-cols { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
  .cust-col-side { position: sticky; top: 20px; }
}

/* order placed */
.cust-placed {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px;
  background: var(--surface); border: 1px solid var(--cust-ok-line); border-radius: var(--radius-xl);
  box-shadow: 0 0 0 4px var(--cust-ok-ring), var(--shadow); animation: cust-rise .4s var(--ease);
}
.cust-placed-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--success); color: #ffffff; }
.cust-placed-ic .icon { width: 26px; height: 26px; stroke-width: 2.6; }
.cust-placed-body { min-width: 0; }
.cust-placed h2 { margin: 2px 0 6px; font-size: 1.35rem; }
.cust-placed-text { margin: 0 0 6px; color: var(--text); overflow-wrap: anywhere; }
.cust-placed-text .order-no { font-size: 1.1em; }
.cust-placed-save { margin: 0 0 16px; color: var(--muted); font-size: .92rem; }
.cust-placed-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cust-placed-actions .btn { flex: 1 1 170px; }
@media (max-width: 440px) {
  .cust-placed { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px 16px; }
  .cust-placed-ic { width: 44px; height: 44px; }
}
@keyframes cust-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* status */
.cust-status { position: relative; overflow: hidden; }
.cust-status::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--brand); }
.cust-status-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.cust-status-top .pill { padding: 6px 12px; font-size: .84rem; }
.cust-order-no {
  margin: 10px 0 16px; font-family: var(--mono); font-size: clamp(2.3rem, 1.7rem + 3vw, 3.3rem); font-weight: 700;
  line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--text);
}
.cust-status-msg { display: flex; align-items: flex-start; gap: 14px; padding: 14px; border-radius: var(--radius); background: var(--surface-2); }
.cust-st-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--st-bg, var(--surface-3)); color: var(--st-fg, var(--text-2)); }
.cust-st-ic .icon { width: 22px; height: 22px; }
.cust-status-copy { min-width: 0; }
.cust-st-head { margin: 1px 0 3px; font-size: 1.12rem; font-weight: 750; letter-spacing: -.01em; color: var(--text); }
.cust-st-text { margin: 0; font-size: .94rem; color: var(--text-2); }
.cust-st-jump { margin-top: 12px; }
.cust-st-new { --st-bg: #e0f2fe; --st-fg: #075985; }
.cust-st-proof_sent { --st-bg: #fce7f3; --st-fg: #9d174d; }
.cust-st-approved { --st-bg: #dcfce7; --st-fg: #166534; }
.cust-st-changes_requested { --st-bg: #ffedd5; --st-fg: #9a3412; }
.cust-st-printing { --st-bg: #fef9c3; --st-fg: #854d0e; }
.cust-st-ready { --st-bg: #ccfbf1; --st-fg: #115e59; }
.cust-st-delivered { --st-bg: #e2e8f0; --st-fg: #334155; }
.cust-st-cancelled { --st-bg: #fee2e2; --st-fg: #991b1b; }
.cust-status-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--border); font-size: .84rem; color: var(--muted); }
.cust-status-meta span { display: inline-flex; align-items: center; gap: 6px; }
.cust-status-meta .icon { width: 15px; height: 15px; }

/* progress timeline: vertical on phones, horizontal from 640px */
.cust-tl { list-style: none; margin: 18px 0 0; padding: 0 0 0 4px; display: grid; }
.cust-tl-step { position: relative; display: flex; align-items: center; gap: 12px; min-height: 40px; color: var(--muted); font-size: .94rem; font-weight: 600; }
.cust-tl-step::before { content: ''; position: absolute; left: 11px; top: -8px; height: 16px; width: 2px; border-radius: 2px; background: var(--border); }
.cust-tl-step:first-child::before { display: none; }
.cust-tl-dot {
  position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--border-strong); background: var(--surface); color: var(--brand-ink);
}
.cust-tl-dot .icon { width: 13px; height: 13px; stroke-width: 3.2; }
.cust-tl-label { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.cust-tl-label small { font-size: .74rem; font-weight: 650; color: var(--muted); }
.cust-tl-step.is-done { color: var(--text-2); }
.cust-tl-step.is-done .cust-tl-dot { border-color: var(--brand); background: var(--brand); }
.cust-tl-step.is-done::before, .cust-tl-step.is-current::before { background: var(--brand); }
.cust-tl-step.is-current { color: var(--text); font-weight: 750; }
.cust-tl-step.is-current .cust-tl-dot { border-color: var(--brand); box-shadow: 0 0 0 4px var(--cust-tint-2); }
.cust-tl-step.is-current .cust-tl-dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.cust-tl-label .cust-tl-now { padding: 2px 8px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-size: .7rem; font-weight: 750; letter-spacing: .02em; }
.cust-tl-step.is-skipped .cust-tl-dot { border-style: dashed; }
.cust-tl-step.is-skipped::before { background: var(--cust-brand-line); }
@media (min-width: 640px) {
  .cust-tl { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; padding: 0; }
  .cust-tl-step { flex-direction: column; gap: 8px; min-height: 0; text-align: center; font-size: .82rem; }
  .cust-tl-step::before { top: 11px; left: calc(-50% + 16px); right: calc(50% + 16px); width: auto; height: 2px; }
  .cust-tl-label { flex-direction: column; justify-content: center; gap: 4px; }
}

/* proof */
.cust-proof.is-waiting { border-color: var(--brand); box-shadow: 0 0 0 4px var(--cust-tint-2), var(--shadow); }
.cust-proof.is-waiting .cust-h2-ic { background: var(--brand); color: var(--brand-ink); }
.cust-proof-body { display: grid; gap: 14px; min-width: 0; }
.cust-proof-body .cust-file-list { margin: 0; }
.cust-proof-img {
  position: relative; display: block; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius);
  background: repeating-conic-gradient(#eef2f7 0 25%, #ffffff 0 50%) 0 0 / 20px 20px;
}
.cust-proof-img img { width: 100%; max-height: 72vh; margin: 0 auto; object-fit: contain; }
.cust-proof-img:focus-visible { outline: 2px solid transparent; box-shadow: var(--ring); }
.cust-proof-zoom {
  position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px;
  border-radius: 999px; background: rgba(11, 18, 32, .78); color: #ffffff; font-size: .78rem; font-weight: 650;
}
.cust-proof-zoom .icon { width: 14px; height: 14px; }
.cust-proof-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.cust-proof-tools .btn { flex: 1 1 120px; }
.cust-decide { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.cust-decide-q { margin: 0; font-size: 1.08rem; font-weight: 750; }
.cust-checks { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 6px; }
.cust-checks li { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--text-2); }
.cust-checks .icon { width: 16px; height: 16px; color: var(--success); }
.cust-approve .btn { min-height: 58px; font-size: 1.08rem; }
.cust-changes > summary { list-style: none; }
.cust-changes > summary::-webkit-details-marker { display: none; }
.cust-changes[open] > summary { --btn-bg: var(--surface-2); }
.cust-changes-form { margin-top: 10px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.cust-changes-form .field { margin-bottom: 12px; }
.cust-changes-form textarea { background: var(--surface); }
.cust-decide-foot { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; font-size: .84rem; color: var(--muted); }
.cust-decide-foot .icon { width: 15px; height: 15px; }
.cust-older > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: .9rem; font-weight: 650; color: var(--text-2); cursor: pointer; }
.cust-older > summary .icon { width: 16px; height: 16px; color: var(--muted); }
.cust-older .cust-file-list { margin-top: 6px; }

/* details, files */
.cust-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.cust-specs > div { min-width: 0; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); }
.cust-specs dt { font-size: .7rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cust-specs dd { margin: 3px 0 0; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
@media (min-width: 640px) { .cust-specs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cust-specs + .cust-note { margin-top: 12px; }
.cust-by { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: .88rem; color: var(--muted); overflow-wrap: anywhere; }
.cust-by .icon { width: 16px; height: 16px; }
.cust-privacy { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; font-size: .84rem; color: var(--muted); }
.cust-privacy .icon { width: 15px; height: 15px; margin-top: 2px; color: var(--success); }

/* contact + keep link */
.cust-contact.is-ready { border-color: var(--cust-ok-line); box-shadow: 0 0 0 4px var(--cust-ok-ring), var(--shadow); }
.cust-contact.is-ready .cust-h2-ic { background: var(--success-soft); color: var(--success); }
.cust-col-side .cust-contact-actions .btn { flex-basis: 100%; }
.cust-copy { display: flex; gap: 8px; align-items: stretch; }
.cust-copy input { min-width: 0; background: var(--surface-2); font-family: var(--mono); font-size: .84rem; }
.cust-copy .btn { flex: none; }
.cust-keep-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cust-again {
  display: flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border);
  color: var(--cust-brand-text); font-weight: 700; text-decoration: none;
}
.cust-again:hover { color: var(--text); }
.cust-again .icon:last-child { margin-left: auto; }

/* ---------- engines without color-mix() (iOS < 16.2, Chrome < 111): plain stand-ins ---------- */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .v-customer {
    --cust-tint: var(--surface-2);
    --cust-tint-2: var(--surface-3);
    --cust-brand-text: var(--text);
    --cust-brand-line: var(--border-strong);
    --cust-brand-glow: rgba(15, 23, 42, .25);
  }
}

/* ---------- billing: shop "Plan & billing", checkout hand-off, receipt · admin payments, plans, manual payment ---------- */

.bl-head { margin-bottom: 18px; }

/* tones (status card, stat cards) */
.bl-tone-ok, .bl-stat-ok { --bl-soft: var(--success-soft); --bl-ink: var(--success); }
.bl-tone-warn, .bl-stat-warn { --bl-soft: var(--warn-soft); --bl-ink: var(--warn); }
.bl-tone-danger, .bl-stat-danger { --bl-soft: var(--danger-soft); --bl-ink: var(--danger); }
.bl-tone-info, .bl-stat-primary { --bl-soft: var(--primary-soft); --bl-ink: var(--primary-soft-ink); }
.bl-stat-ink { --bl-soft: var(--surface-3); --bl-ink: var(--text); }

/* ---------- status card ---------- */
.bl-status { padding: 22px; }
.bl-status.bl-tone-danger { border-color: color-mix(in srgb, var(--danger) 28%, var(--border)); background: color-mix(in srgb, var(--danger-soft) 35%, var(--surface)); }
.bl-status.bl-tone-warn { border-color: color-mix(in srgb, var(--warn) 28%, var(--border)); }
.bl-status-main { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'ic copy'; gap: 16px; align-items: start; }
.bl-status-main.has-days { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: 'ic copy days'; }
.bl-status-ic { grid-area: ic; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--bl-soft); color: var(--bl-ink); }
.bl-status-ic .icon { width: 24px; height: 24px; }
.bl-status-copy { grid-area: copy; min-width: 0; }
.bl-kicker { margin: 0 0 4px; font-size: .76rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--bl-ink); }
.bl-status-title { margin: 0; font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); }
.bl-status-text { margin: 6px 0 0; color: var(--text-2); }
.bl-status-actions { margin-top: 16px; }
.bl-status .hint { margin-top: 10px; }
.bl-golive-link { margin: 10px 0 0; }
.bl-golive-link span { display: inline-block; max-width: 100%; padding: 7px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font-size: .9rem; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.bl-days { grid-area: days; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 96px; padding: 12px 14px; border-radius: 14px; background: var(--bl-soft); text-align: center; }
.bl-days b { font-size: 2.1rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--bl-ink); font-variant-numeric: tabular-nums; }
.bl-days small { margin-top: 6px; font-size: .76rem; font-weight: 700; color: var(--text-2); white-space: nowrap; }

/* time left in the current period (native <progress>, so no inline width) */
.bl-meter { display: block; width: 100%; height: 6px; margin: 20px 0 0; border: 0; border-radius: 999px; background: var(--surface-3); overflow: hidden; -webkit-appearance: none; appearance: none; color: var(--bl-ink); }
.bl-meter::-webkit-progress-bar { background: var(--surface-3); border-radius: 999px; }
.bl-meter::-webkit-progress-value { background: var(--bl-ink); border-radius: 999px; }
.bl-meter::-moz-progress-bar { background: var(--bl-ink); border-radius: 999px; }

.bl-steps { list-style: none; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bl-steps li { display: flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 600; color: var(--text-2); }
.bl-steps span { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-soft-ink); font-size: .82rem; font-weight: 800; }

@media (max-width: 560px) {
  .bl-status { padding: 18px 16px; }
  /* Phones: icon (and days left) on top, the text gets the full card width. */
  .bl-status-main, .bl-status-main.has-days { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'ic days' 'copy copy'; gap: 12px 14px; }
  .bl-status-ic { width: 42px; height: 42px; border-radius: 12px; }
  .bl-days { justify-self: end; flex-direction: row; align-items: baseline; gap: 6px; min-width: 0; padding: 8px 14px; }
  .bl-days b { font-size: 1.5rem; }
  .bl-days small { margin: 0; }
  .bl-status-actions .btn { flex: 1 1 100%; min-width: 0; white-space: normal; }
  .bl-steps { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

/* ---------- sections ---------- */
.bl-section { margin-top: 36px; }
.bl-section-head { margin-bottom: 16px; }
.bl-section-head h2 { margin: 0; font-size: 1.3rem; }
.bl-section-head p { margin: 4px 0 0; max-width: 62ch; color: var(--muted); font-size: .95rem; }

.bl-setup { display: flex; gap: 12px; margin-bottom: 18px; padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--warn) 25%, var(--border)); border-radius: var(--radius-lg); background: var(--warn-soft); }
.bl-setup-ic { flex: none; color: var(--warn); }
.bl-setup b { color: var(--text); }
.bl-setup p { margin: 4px 0 12px; color: var(--text-2); font-size: .93rem; }

/* ---------- plan picker ---------- */
/* The cycle radios come before the toggle and the cards, so ~ switches prices without JS. */
.bl-picker { position: relative; }
.bl-cycle-input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.bl-toggle { display: inline-flex; gap: 4px; margin-bottom: 18px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm); }
.bl-toggle label { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 20px; border-radius: 999px; font-weight: 700; font-size: .95rem; color: var(--text-2); cursor: pointer; transition: background .15s var(--ease), color .15s var(--ease); }
.bl-toggle label:hover { color: var(--text); }
.bl-toggle-save { padding: 2px 8px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-size: .74rem; font-weight: 800; white-space: nowrap; }
#bl-cycle-monthly:checked ~ .bl-toggle .bl-toggle-m,
#bl-cycle-yearly:checked ~ .bl-toggle .bl-toggle-y { background: var(--text); color: #fff; }
#bl-cycle-yearly:checked ~ .bl-toggle .bl-toggle-save { background: #fff; color: var(--success); }
#bl-cycle-monthly:focus-visible ~ .bl-toggle .bl-toggle-m,
#bl-cycle-yearly:focus-visible ~ .bl-toggle .bl-toggle-y { box-shadow: 0 0 0 2px var(--surface), 0 0 0 5px var(--ring-color); }
#bl-cycle-monthly:checked ~ .bl-plans .bl-when-y,
#bl-cycle-yearly:checked ~ .bl-plans .bl-when-m { display: none; }

.bl-plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: stretch; }
.bl-plan { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.bl-plan.is-featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow); }
.bl-plan.is-current { border-color: color-mix(in srgb, var(--success) 55%, var(--border)); }
.bl-plan-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; }
.bl-plan-head h3 { margin: 0; font-size: 1.08rem; }
.bl-tag { padding: 3px 10px; border-radius: 999px; background: var(--primary); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.bl-tag-current { background: var(--success-soft); color: var(--success); }
.bl-price { margin: 14px 0 0; }
.bl-price > span { display: flex; align-items: baseline; gap: 6px; }
.bl-price b { font-size: 2.3rem; font-weight: 800; line-height: 1.05; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.bl-price small { font-size: .92rem; font-weight: 600; color: var(--muted); }
.bl-price-sub { margin: 6px 0 0; font-size: .88rem; color: var(--muted); }
.bl-save { color: var(--success); font-weight: 750; }
.bl-storage { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--border); font-size: .95rem; color: var(--text-2); }
.bl-storage .icon { width: 18px; height: 18px; color: var(--primary); }
.bl-storage b { color: var(--text); }
.bl-blurb { margin: 4px 0 0; font-size: .9rem; color: var(--muted); }
/* Buttons line up at the bottom of equal-height cards. */
.bl-plan-body { flex: 1 0 auto; }
.bl-pay { min-height: 50px; margin-top: 20px; }

.bl-includes { margin-top: 16px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-2); }
.bl-includes h3 { margin: 0 0 10px; font-size: .76rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.bl-includes ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: .92rem; color: var(--text-2); }
.bl-includes li { display: flex; align-items: center; gap: 8px; }
.bl-includes .icon, .bl-trust .icon { width: 17px; height: 17px; color: var(--success); }

.bl-trust { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .86rem; color: var(--muted); }
.bl-trust li { display: flex; align-items: center; gap: 7px; }

@media (max-width: 560px) {
  .bl-toggle { display: flex; }
  .bl-toggle label { flex: 1 1 0; padding: 8px 10px; }
  .bl-plan { padding: 18px; }
  .bl-price b { font-size: 2rem; }
  .bl-trust, .bl-includes ul { flex-direction: column; }
}

/* ---------- tables (shop history + admin log) ---------- */
.bl-cell { display: inline-flex; flex-direction: column; min-width: 0; }
.bl-cell-main { font-weight: 650; }
.bl-cell-sub { font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; }
.bl-cell-action { width: 1%; text-align: right; white-space: nowrap; }
.bl-table td { vertical-align: middle; }
.bl-shop-link { font-weight: 700; text-decoration: none; }
.bl-shop-link:hover { text-decoration: underline; }
/* Phones: each row becomes a compact two-column grid instead of one labelled line per column. */
@media (max-width: 720px) {
  .bl-log tr, .bl-hist tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: start; padding: 14px 16px; }
  .bl-log td, .bl-hist td { display: block; width: auto; padding: 0; border: 0; text-align: left; }
  .bl-log td::before, .bl-hist td::before { content: none; }
  .bl-log .bl-cell, .bl-hist .bl-cell { align-items: flex-start; text-align: left; }

  .bl-log .bl-c-shop { grid-column: 1; grid-row: 1; }
  .bl-log .bl-c-amount { grid-column: 2; grid-row: 1; text-align: right; }
  .bl-log .bl-c-plan { grid-column: 1; grid-row: 2; }
  .bl-log .bl-c-date { grid-column: 2; grid-row: 2 / span 2; }
  .bl-log .bl-c-date .bl-cell { align-items: flex-end; text-align: right; }
  .bl-log .bl-c-method { grid-column: 1; grid-row: 3; }
  .bl-log .bl-c-period { grid-column: 1; grid-row: 4; font-size: .84rem; color: var(--muted); }
  .bl-log .bl-c-period.is-empty { visibility: hidden; }
  .bl-log .bl-c-status { grid-column: 2; grid-row: 4; justify-self: end; }
  .bl-log .bl-c-plan .bl-cell, .bl-log .bl-c-method .bl-cell { flex-direction: row; flex-wrap: wrap; column-gap: 5px; }
  .bl-log .bl-c-plan .bl-cell-main, .bl-log .bl-c-method .bl-cell-main, .bl-log .bl-c-date .bl-cell-main { font-size: .88rem; font-weight: 550; color: var(--text-2); }
  .bl-log .bl-c-plan .bl-cell-sub, .bl-log .bl-c-method .bl-cell-sub { font-size: .88rem; }
  .bl-log .bl-c-plan .bl-cell-sub::before, .bl-log .bl-c-method .bl-cell-sub::before { content: '· '; }

  .bl-hist .bl-c-plan { grid-column: 1; grid-row: 1; }
  .bl-hist .bl-c-amount { grid-column: 2; grid-row: 1; text-align: right; font-size: 1.05rem; }
  .bl-hist .bl-c-period { grid-column: 1; grid-row: 2; font-size: .88rem; color: var(--text-2); }
  .bl-hist .bl-c-date { grid-column: 1; grid-row: 3; font-size: .84rem; color: var(--muted); }
  .bl-hist .bl-c-date::before { content: 'Paid on '; color: inherit; font-size: inherit; font-weight: inherit; }
  .bl-hist .bl-c-action { grid-column: 2; grid-row: 2 / span 2; align-self: center; justify-self: end; }
}

.bl-pill-paid { --pill-bg: #dcfce7; --pill-fg: #166534; }
.bl-pill-created { --pill-bg: #fef3c7; --pill-fg: #92400e; }
.bl-pill-failed, .bl-pill-cancelled { --pill-bg: #fee2e2; --pill-fg: #991b1b; }

/* ---------- help ---------- */
.bl-help { display: flex; align-items: center; gap: 14px; margin-top: 36px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.bl-help-ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-soft-ink); }
.bl-help > div { flex: 1 1 auto; min-width: 0; }
.bl-help p { margin: 2px 0 0; font-size: .88rem; color: var(--muted); }
@media (max-width: 560px) {
  .bl-help { flex-wrap: wrap; }
  .bl-help > div { flex-basis: calc(100% - 56px); }
  .bl-help .btn { flex: 1 1 100%; min-height: 44px; }
}

/* ---------- checkout hand-off ---------- */
.bl-checkout { padding-top: 24px; }
.bl-checkout-card { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 36px 24px; text-align: center; }
.bl-checkout-card h1 { margin: 0; font-size: 1.45rem; }
.bl-checkout-card .lead, .bl-checkout-card .hint { margin: 0; }
.bl-checkout-card .hint { max-width: 40ch; }
.bl-checkout-spin { width: 34px; height: 34px; border-width: 3px; color: var(--primary); }

/* ---------- receipt ---------- */
.bl-receipt-wrap { max-width: 820px; }
.bl-receipt-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.bl-receipt { padding: 34px; }
.bl-receipt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.bl-receipt-brand { display: flex; align-items: center; gap: 12px; }
.bl-receipt-brand b { display: block; font-size: 1.2rem; letter-spacing: -.01em; }
.bl-receipt-brand span { display: block; font-size: .85rem; color: var(--muted); }
.bl-receipt-title { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.bl-receipt-title h1 { margin: 0; font-size: 1.6rem; }
.bl-receipt-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 22px; margin: 22px 0; }
.bl-receipt-meta dt, .bl-receipt-parties h2 { margin: 0; font-size: .74rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.bl-receipt-meta dd { margin: 3px 0 0; font-weight: 650; overflow-wrap: anywhere; }
.bl-receipt-parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.bl-receipt-parties h2 { margin-bottom: 6px; }
.bl-receipt-parties p { margin: 0 0 6px; font-size: .94rem; overflow-wrap: anywhere; }
.bl-receipt-contact { color: var(--text-2); }
.bl-receipt-lines { width: 100%; margin-top: 24px; border-collapse: collapse; font-size: .95rem; }
.bl-receipt-lines th { padding: 10px 0; border-bottom: 1px solid var(--border); text-align: left; font-size: .74rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.bl-receipt-lines td { padding: 14px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.bl-receipt-lines th + th, .bl-receipt-lines td + td { padding-left: 16px; }
.bl-receipt-lines td span { display: block; font-size: .85rem; color: var(--muted); }
.bl-receipt-lines .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bl-receipt-lines tfoot th, .bl-receipt-lines tfoot td { padding-top: 16px; border: 0; }
.bl-receipt-lines tfoot th { text-align: right; font-size: .95rem; letter-spacing: 0; text-transform: none; color: var(--text); }
.bl-receipt-lines tfoot td { font-size: 1.35rem; }
.bl-receipt-note { margin: 16px 0 0; font-size: .9rem; color: var(--text-2); }
.bl-receipt-foot { margin-top: 26px; padding-top: 18px; border-top: 1px dashed var(--border-strong); font-size: .92rem; }
.bl-receipt-foot p { margin: 0 0 4px; }
@media (max-width: 560px) {
  .bl-receipt { padding: 22px 16px; }
  .bl-receipt-head { flex-direction: column-reverse; }
  .bl-receipt-title { flex-direction: row; align-items: center; }
  .bl-receipt-parties { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .bl-receipt-lines { font-size: .9rem; }
}
@media print {
  @page { margin: 14mm; }
  html, body.bl-receipt-page { background: #fff !important; }
  .bl-receipt-page main { padding: 0 !important; }
  .bl-receipt-page .flash-stack, .bl-receipt-page .skip-link, .bl-receipt-bar { display: none !important; }
  .bl-receipt-wrap { max-width: none; padding: 0; }
  .bl-receipt { padding: 0; border: 0; box-shadow: none; }
  .bl-receipt-parties { background: #fff; }
  .bl-receipt, .bl-receipt-lines { break-inside: avoid; }
}

/* ---------- admin: payments ---------- */
.bl-stats { display: grid; gap: 14px; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 24px; }
.bl-stats > .card { margin-top: 0; }
.bl-stat { display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding: 16px; }
.bl-stat-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--bl-soft); color: var(--bl-ink); }
.bl-stat-ic .icon { width: 19px; height: 19px; }
.bl-stat-copy { min-width: 0; }
.bl-stat-label { display: block; font-size: .82rem; font-weight: 650; color: var(--muted); }
.bl-stat-value { display: block; margin-top: 2px; font-size: 1.55rem; font-weight: 800; line-height: 1.15; letter-spacing: -.025em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bl-stat-sub { display: block; margin-top: 2px; font-size: .78rem; color: var(--muted); }
@media (max-width: 1100px) { .bl-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .bl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bl-stats > .bl-stat:first-child { grid-column: 1 / -1; }
  .bl-stat { padding: 12px 14px; }
  .bl-stat-ic { display: none; }
  .bl-stat-value { font-size: 1.3rem; }
}
.bl-admin-list .card-head { flex-wrap: wrap; }
.bl-filters { margin: 0; padding: 12px 20px 10px; border-bottom: 1px solid var(--border); }

/* ---------- admin: plans ---------- */
.bl-plan-edits { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.bl-plan-edit { min-width: 0; margin: 0; padding: 20px; }
.bl-plan-edits > .card + .card { margin-top: 0; }
.bl-plan-edit.is-off { background: var(--surface-2); }
.bl-plan-edit-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.bl-plan-key { padding: 3px 8px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.bl-switch, .bl-radio { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: .93rem; font-weight: 650; cursor: pointer; }
.bl-plan-edit-save { display: flex; align-items: flex-start; gap: 8px; margin: -6px 0 16px; font-size: .84rem; color: var(--muted); }
.bl-plan-edit-save .icon { width: 16px; height: 16px; margin-top: 2px; }
.bl-addon-end { border-right: 0; border-left: 1px solid var(--border); }
.bl-plans-form .card.bl-plans-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 16px 20px; }
@media (max-width: 560px) { .bl-plans-foot .btn { flex: 1 1 100%; } }

/* ---------- admin: manual payment form (shop detail page) ---------- */
.bl-manual-cycle { min-width: 0; margin: 0 0 16px; padding: 0; border: 0; }
.bl-manual-cycle legend { margin-bottom: 6px; padding: 0; }
.bl-manual-cycle .seg label { min-width: 0; }
.bl-manual-period { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 14px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface-2); font-size: .88rem; color: var(--text-2); }
.bl-manual-period .icon { width: 17px; height: 17px; margin-top: 2px; color: var(--muted); }
.bl-manual-off { display: flex; align-items: center; gap: 8px; }

/* ---------- payment waiting / opening-soon screens ---------- */
.wait-page { padding: 32px 16px 48px; }
.wait-card { text-align: center; padding: 36px 28px; }
.wait-card h1 { margin: 14px 0 8px; }
.wait-card .lead { color: var(--text-2); margin-bottom: 20px; }
.wait-spinner { width: 40px; height: 40px; margin: 0 auto; border-width: 3px; color: var(--primary); }
.wait-steps { list-style: none; margin: 0 auto 18px; padding: 0; display: grid; gap: 8px; max-width: 360px; text-align: left; }
.wait-steps li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--muted); font-weight: 600; font-size: .9rem; }
.wait-steps li.is-done { color: var(--success); }
.wait-steps li.is-current { color: var(--text); border-color: var(--primary); background: var(--primary-soft); }
.soon-mark { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: linear-gradient(135deg, var(--primary-soft), #fff1e6); color: var(--primary); }
.soon-mark .icon { width: 30px; height: 30px; }
.soon-list { list-style: none; margin: 0 auto 22px; padding: 0; display: grid; gap: 10px; max-width: 440px; text-align: left; }
.soon-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--text-2); }
.soon-list .icon { flex: none; margin-top: 2px; color: var(--primary); width: 18px; height: 18px; }
.soon-actions { justify-content: center; margin-bottom: 14px; }
@media (max-width: 480px) { .wait-card { padding: 28px 18px; } .soon-actions .btn { width: 100%; } }

/* ---------- Help & support + notifications (shop and admin) – classes prefixed sup- ---------- */

.sup-page { --sup-gap: 20px; }
.sup-ic-xs { width: 14px !important; height: 14px !important; vertical-align: -2px; }

/* Header */
.sup-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; margin-bottom: 22px; }
.sup-hero h1 { margin: 6px 0 4px; }
.sup-hero-sm h1 { margin-top: 0; }
.sup-hero p { margin: 0; }
.sup-online { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 550; font-size: .95rem; }
.sup-online-dot { width: 9px; height: 9px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 4px #dcfce7; flex: none; }

/* Shop support layout: two columns on desktop; on phones one column in a helpful order. */
.sup-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--sup-gap); align-items: start; }
.sup-main, .sup-side { display: grid; gap: var(--sup-gap); min-width: 0; }
.sup-main > div:empty { display: none; }
.sup-layout .card + .card { margin-top: 0; }
@media (max-width: 900px) {
  .sup-layout { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
  .sup-main, .sup-side { display: contents; }
  .sup-o-list { order: 1; }
  .sup-o-help { order: 2; }
  .sup-o-form { order: 3; }
  .sup-o-contact { order: 4; }
  .sup-main > .sup-o-form:first-child { order: 0; }
}

/* Ticket status pills */
.sup-st-open { --pill-bg: #e0f2fe; --pill-fg: #075985; }
.sup-st-answered { --pill-bg: #dcfce7; --pill-fg: #166534; }
.sup-st-closed { --pill-bg: #eef2f6; --pill-fg: #475569; }
.sup-new { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; background: var(--primary); color: #fff; font-size: .72rem; font-weight: 750; letter-spacing: .01em; white-space: nowrap; }

/* Ticket rows (shop list + admin inbox) */
.sup-tickets { list-style: none; margin: 0; padding: 0; }
.sup-tk { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); transition: background .12s var(--ease); }
.sup-tk:last-child { border-bottom: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.sup-inbox .sup-tk:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.sup-inbox .sup-tk:only-child { border-radius: var(--radius-lg); }
.sup-tk:hover { background: var(--surface-2); }
.sup-tk.is-unread::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary); }
.sup-tk-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--muted); }
.sup-tk.is-unread .sup-tk-ic { background: var(--primary-soft); color: var(--primary); }
.sup-tk-main { display: grid; gap: 2px; min-width: 0; }
.sup-tk-subject { color: var(--text); font-weight: 650; text-decoration: none; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.sup-tk.is-unread .sup-tk-subject { font-weight: 800; }
.sup-tk-subject:hover { color: var(--primary); }
.sup-tk-meta { color: var(--muted); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-tk-meta b { color: var(--text-2); font-weight: 650; }
.sup-tk-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.sup-tk-time { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.sup-stretch::after { content: ''; position: absolute; inset: 0; }
.sup-stretch:focus-visible { outline: none; }
.sup-stretch:focus-visible::after { outline: 2px solid var(--ring-color); outline-offset: -2px; border-radius: inherit; }
@media (max-width: 480px) {
  .sup-tk { padding: 13px 14px; gap: 4px 12px; }
  .sup-tk-ic { width: 36px; height: 36px; }
}

/* Avatars */
.sup-avatar { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; }
.sup-avatar svg { width: 100%; height: 100%; display: block; }
.sup-avatar-brand { border-radius: 11px; }
.sup-tk .sup-avatar, .sup-shopcard .sup-avatar { width: 40px; height: 40px; }
.sup-shopcard .sup-avatar { width: 44px; height: 44px; }

/* New ticket form */
.sup-form-card .card-body { padding-bottom: 20px; }
.sup-form-alert { margin-bottom: 16px; }
.sup-form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
@media (max-width: 480px) {
  .sup-form-foot .btn { width: 100%; }
}
.sup-counter { margin: -2px 0 0; text-align: right; font-size: .8rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.sup-counter.is-over { color: var(--danger); }

/* Sample shop notice */
.sup-sample { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: color-mix(in srgb, var(--primary) 4%, var(--surface)); border-color: color-mix(in srgb, var(--primary) 22%, var(--border)); }
.sup-sample h2 { font-size: 1.08rem; margin: 2px 0 6px; }
.sup-sample p { color: var(--text-2); margin: 0 0 14px; }
.sup-sample-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); }
@media (max-width: 480px) { .sup-sample { flex-direction: column; padding: 18px; } .sup-sample .btn { width: 100%; } }

/* Quick answers (accordion) */
.sup-faq { display: grid; }
.sup-faq-item { border-bottom: 1px solid var(--border); }
.sup-faq-item:last-child { border-bottom: 0; }
.sup-faq-item summary { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 18px; cursor: pointer; list-style: none; font-weight: 650; color: var(--text); border-radius: 0; }
.sup-faq-item:last-child:not([open]) summary { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.sup-faq-item summary::-webkit-details-marker { display: none; }
.sup-faq-item summary:hover { background: var(--surface-2); }
.sup-faq-item summary:focus-visible { outline: 2px solid var(--ring-color); outline-offset: -2px; }
.sup-faq-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--primary-soft); color: var(--primary); }
.sup-faq-ic .icon { width: 18px; height: 18px; }
.sup-faq-title { flex: 1 1 auto; min-width: 0; font-size: .95rem; }
.sup-faq-chev { flex: none; color: var(--muted); transition: transform .18s var(--ease); }
.sup-faq-item[open] .sup-faq-chev { transform: rotate(90deg); }
.sup-faq-body { padding: 0 18px 18px 66px; color: var(--text-2); font-size: .92rem; }
.sup-faq-body p { margin: 0; }
.sup-steps { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.sup-steps li::marker { color: var(--primary); font-weight: 700; }
.sup-faq-action { margin-top: 14px; }
@media (max-width: 480px) { .sup-faq-body { padding-left: 18px; } }

/* Contact card */
.sup-contact { padding: 20px; }
.sup-contact-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.sup-contact-head h2 { font-size: 1.02rem; margin: 2px 0 4px; }
.sup-contact-head p { margin: 0; color: var(--muted); font-size: .9rem; }
.sup-contact-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--text-2); }
.sup-contact-actions { display: grid; gap: 10px; }

/* One ticket */
.sup-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -6px 0 6px; color: var(--text-2); font-weight: 650; font-size: .92rem; text-decoration: none; }
.sup-back:hover { color: var(--primary); }
.sup-back .icon { width: 18px; height: 18px; }
.sup-ticket-head { margin-bottom: 18px; }
.sup-ticket-head h1 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); margin: 0 0 10px; overflow-wrap: anywhere; }
.sup-ticket-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; color: var(--muted); font-size: .88rem; font-weight: 550; }

.sup-convo { overflow: hidden; }
.sup-thread { list-style: none; margin: 0; padding: 20px; display: grid; gap: 14px; background: #f8fafc; }
.sup-day { display: flex; justify-content: center; }
.sup-day span { padding: 3px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: .76rem; font-weight: 700; }
.sup-msg { display: flex; align-items: flex-start; gap: 10px; scroll-margin-top: calc(var(--header-h) + 20px); }
.sup-msg.is-cont { margin-top: -8px; }
.sup-avatar-gap { flex: none; width: 36px; }
.sup-msg.is-mine { justify-content: flex-end; }
.sup-msg-col { display: grid; gap: 4px; max-width: min(78%, 560px); min-width: 0; }
.sup-msg.is-mine .sup-msg-col { justify-items: end; }
.sup-msg-who { display: flex; align-items: baseline; gap: 8px; padding: 0 4px; font-size: .78rem; color: var(--muted); }
.sup-msg-who b { color: var(--text-2); font-weight: 700; }
.sup-bubble { padding: 11px 15px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: .95rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: var(--shadow-sm); }
.sup-msg.is-theirs:not(.is-cont) .sup-bubble { border-top-left-radius: 6px; }
.sup-msg.is-mine .sup-bubble { background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 18%, transparent); box-shadow: none; }
.sup-msg.is-mine:not(.is-cont) .sup-bubble { border-top-right-radius: 6px; }
@media (max-width: 480px) {
  .sup-thread { padding: 16px 12px; }
  .sup-msg-col { max-width: 86%; }
  .sup-msg .sup-avatar, .sup-avatar-gap { width: 30px; height: 30px; }
}

.sup-state { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 20px; border-top: 1px solid var(--border); font-size: .9rem; color: var(--text-2); }
.sup-state .icon { width: 18px; height: 18px; margin-top: 2px; }
.sup-state-open { background: #f5fbff; }
.sup-state-open .icon { color: var(--primary); }
.sup-state-answered { background: #f2fbf5; }
.sup-state-answered .icon { color: var(--success); }
.sup-state-closed { background: var(--surface-2); }
.sup-state-closed .icon { color: var(--muted); }

.sup-composer { display: grid; gap: 10px; padding: 16px 20px 18px; border-top: 1px solid var(--border); background: var(--surface); }
.sup-composer textarea { min-height: 92px; max-height: 50vh; }
.sup-composer.has-error textarea { border-color: var(--danger); }
.sup-composer-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; }
@media (max-width: 560px) {
  .sup-composer { padding: 14px; }
  .sup-composer-foot { flex-direction: column-reverse; align-items: stretch; }
  .sup-composer-foot .btn, .sup-composer-foot .btn-row { width: 100%; }
  .sup-composer-foot .btn-row { flex-direction: column-reverse; }
  .sup-composer-foot .hint { text-align: center; }
}

.sup-solve { display: flex; align-items: center; justify-content: center; gap: 4px 10px; flex-wrap: wrap; margin-top: 14px; color: var(--muted); font-size: .9rem; }
.sup-solve .btn { min-height: 44px; }

/* Notifications */
.sup-note-groups { display: grid; gap: 22px; min-width: 0; }
.sup-note-group .section-title { margin: 0 0 10px 4px; }
.sup-notes { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.sup-note { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-bottom: 1px solid var(--border); transition: background .12s var(--ease); }
.sup-note:last-child { border-bottom: 0; }
.sup-note:has(.sup-stretch):hover { background: var(--surface-2); }
.sup-note.is-unread { background: #f5fbff; }
.sup-note.is-unread:has(.sup-stretch):hover { background: #ebf6fd; }
.sup-note-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; }
.sup-note-ic .icon { width: 19px; height: 19px; }
.sup-tone-ok { background: #dcfce7; color: #15803d; }
.sup-tone-blue { background: var(--primary-soft); color: var(--primary); }
.sup-tone-warn { background: #fef3c7; color: #b45309; }
.sup-tone-muted { background: var(--surface-2); color: var(--text-2); }
.sup-note-main { flex: 1 1 auto; min-width: 0; }
.sup-note-main p { margin: 0; }
.sup-note-title { display: flex; align-items: center; gap: 8px; font-weight: 650; color: var(--text); line-height: 1.35; overflow-wrap: anywhere; }
.sup-note-title a { color: inherit; text-decoration: none; }
.sup-note.is-unread .sup-note-title { font-weight: 800; }
.sup-new-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.sup-note-body { margin-top: 3px !important; color: var(--text-2); font-size: .92rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; white-space: pre-line; overflow-wrap: anywhere; }
.sup-note-time { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px !important; color: var(--muted); font-size: .8rem; }
.sup-note-open { display: inline-flex; align-items: center; gap: 2px; color: var(--primary); font-weight: 700; }
.sup-note-open .icon { width: 15px; height: 15px; }
@media (max-width: 480px) { .sup-note { padding: 14px; gap: 12px; } .sup-note-ic { width: 36px; height: 36px; } }

/* Admin: ticket page + notifications page */
.sup-filters { margin-bottom: 14px; }
.sup-admin-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--sup-gap); align-items: start; }
.sup-admin-side { display: grid; gap: 16px; min-width: 0; }
.sup-admin-side .card + .card { margin-top: 0; }
@media (max-width: 960px) { .sup-admin-layout { grid-template-columns: minmax(0, 1fr); } }

.sup-shopcard { padding: 18px 20px; }
.sup-shopcard-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sup-shopcard-text { display: grid; min-width: 0; }
.sup-shopcard-text h2 { font-size: 1.05rem; margin: 0 0 2px; overflow-wrap: anywhere; }
.sup-shopcard-text h2 a { color: var(--text); text-decoration: none; }
.sup-shopcard-text h2 a:hover { color: var(--primary); }
.sup-shopcard-text .muted { font-size: .86rem; }
.sup-kv { display: grid; gap: 8px; margin: 0 0 14px; font-size: .9rem; }
.sup-kv > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.sup-kv dt { color: var(--muted); font-weight: 600; }
.sup-kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.sup-shopcard-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 1px solid var(--border); }

.sup-status-form { display: grid; gap: 10px; }
.sup-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.sup-seg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 6px 8px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); font: inherit; font-size: .86rem; font-weight: 650; cursor: pointer; transition: background .12s var(--ease), color .12s var(--ease); }
.sup-seg-btn .icon { width: 16px; height: 16px; }
.sup-seg-btn:hover { background: var(--surface); color: var(--text); }
.sup-seg-btn:focus-visible { outline: 2px solid var(--ring-color); outline-offset: 1px; }
.sup-seg-btn.is-current { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); cursor: default; }
.sup-seg-open.is-current { color: #075985; }
.sup-seg-answered.is-current { color: #166534; }
.sup-seg-closed.is-current { color: #475569; }
.sup-status-form .hint { margin: 0; }

.sup-mini { list-style: none; margin: 0; padding: 0; }
.sup-mini li { display: grid; gap: 6px; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.sup-mini li:last-child { border-bottom: 0; }
.sup-mini a { font-weight: 650; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.sup-mini a:hover { color: var(--primary); }
.sup-mini span { display: flex; align-items: center; gap: 10px; }
.sup-mini small { color: var(--muted); }

/* Send-notification forms (admin) */
.sup-notify .field { margin-bottom: 14px; }
.sup-notify-row { display: flex; flex-wrap: wrap; gap: 0 16px; align-items: flex-end; }
.sup-notify-row .field { flex: 1 1 190px; margin-bottom: 14px; }
.sup-check { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; margin-bottom: 14px; font-weight: 600; font-size: .92rem; cursor: pointer; white-space: nowrap; }
.sup-notify-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.sup-announce-lead { margin: 0 0 16px; }
#sup-announce-title { display: flex; align-items: center; gap: 8px; }
#sup-announce-title .icon { color: var(--primary); }
@media (max-width: 480px) {
  .sup-notify-foot .btn { width: 100%; }
}

/* Ticket rows on phones: status moves under the subject so the subject gets the full width. */
@media (max-width: 560px) {
  .sup-tk { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 6px 12px; }
  .sup-tk > :first-child { grid-row: 1 / span 2; }
  .sup-tk-side { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
  .sup-tk-meta { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

/* Admin notifications: the announcement panel is collapsible (open on wide screens), first on phones. */
.sup-announce summary { cursor: pointer; list-style: none; }
.sup-announce summary::-webkit-details-marker { display: none; }
.sup-announce summary:hover { background: var(--surface-2); }
.sup-announce summary:focus-visible { outline: 2px solid var(--ring-color); outline-offset: -2px; }
.sup-announce:not([open]) summary { border-bottom: 0; }
.sup-announce[open] .sup-faq-chev { transform: rotate(90deg); }
#sup-announce-title span { min-width: 0; }
@media (min-width: 961px) {
  .sup-notes-layout .sup-admin-side { position: sticky; top: calc(var(--header-h) + 16px); }
}
@media (max-width: 960px) {
  .sup-notes-layout .sup-admin-side { order: -1; }
}

/* ---------- admin ---------- */
/* ---------- admin: super-admin area (/admin, adminprint.brightonsolution.com) ---------- */

/* chrome */
.app-header-admin { background: var(--bg-elev); }
.app-header-admin .brand { gap: 10px; }
.app-header-admin .admin-tag { margin-left: 0; padding: 3px 8px; border-radius: 6px; font-size: .66rem; letter-spacing: .08em; background: var(--text); }
.adm-nav { gap: 2px; }
.adm-nav .nav-item { padding: 8px 13px; font-size: .92rem; }
.adm-nav .nav-item .badge { margin-left: 0; }
.adm-bell { position: relative; border-radius: 12px; }
.adm-bell.is-active { --btn-bg: var(--primary-soft); --btn-fg: var(--primary-soft-ink); }
.adm-bell .badge { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; font-size: .66rem; box-shadow: 0 0 0 2px var(--bg-elev); }
@media (max-width: 860px) {
  .v-admin main { padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 24px); }
  .tabbar-admin { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tabbar-admin .tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar-admin .badge { top: 5px; left: calc(50% + 4px); }
}
@media (max-width: 380px) { .tabbar-admin .tab { font-size: .68rem; } }

/* shared bits (also used by the payments / support admin pages) */
.adm { padding-bottom: 8px; }
.adm-sub { color: var(--muted); font-size: .8rem; font-weight: 550; }
.adm-ok { color: var(--success); font-size: .8rem; font-weight: 700; }
.adm-warn { color: var(--warn); font-size: .8rem; font-weight: 700; }
.adm-danger { color: var(--danger); font-size: .8rem; font-weight: 700; }
.adm-tag {
  display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 6px; vertical-align: middle;
  font-size: .64rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; line-height: 1.45;
  color: #92400e; background: #fef3c7; border: 1px solid #fde68a;
}
.adm-tag-sample { color: var(--text-2); background: var(--surface-3); border-color: var(--border-strong); }
.adm-avatar { flex: none; display: block; width: 38px; height: 38px; border-radius: 11px; overflow: hidden; background: #fff; border: 1px solid var(--border); }
.adm-avatar img, .adm-avatar svg { display: block; width: 100%; height: 100%; object-fit: contain; }
.adm-avatar svg text { font-family: var(--font); }
.adm-avatar-lg { width: 56px; height: 56px; border-radius: 16px; }
.adm-copy input { flex: 1 1 auto; min-width: 0; }
.adm-copy .btn { flex: none; }
.adm-amount { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.adm-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.adm-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: .8rem; font-weight: 650; }

/* page head */
.adm-pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; margin-bottom: 20px; }
.adm-pagehead h1 { margin: 0; font-size: clamp(1.55rem, 1.3rem + 1vw, 2rem); }
.adm-kicker { margin: 0 0 4px; color: var(--muted); font-size: .88rem; font-weight: 600; }
.adm-pagehead-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 520px) {
  .adm-pagehead { margin-bottom: 16px; }
  .adm-pagehead-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
}

/* ---------- overview: KPI tiles ---------- */
.adm-kpis { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.adm-kpi {
  position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  color: var(--text); text-decoration: none;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
a.adm-kpi:hover { color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow); }
a.adm-kpi:focus-visible { outline: 2px solid transparent; box-shadow: var(--ring); border-radius: var(--radius-lg); }
.adm-kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.adm-kpi-label { min-width: 0; color: var(--text-2); font-size: .86rem; font-weight: 650; line-height: 1.3; }
.adm-kpi-ic { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); color: var(--muted); }
.adm-kpi-ic .icon { width: 18px; height: 18px; }
.adm-kpi-value { font-size: 1.85rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.adm-kpi-sub { color: var(--muted); font-size: .8rem; font-weight: 550; line-height: 1.35; }
.adm-kpi.is-ok .adm-kpi-ic { background: var(--success-soft); color: var(--success); }
.adm-kpi.is-primary .adm-kpi-ic { background: var(--primary-soft); color: var(--primary); }
.adm-kpi.is-primary .adm-kpi-sub { color: var(--primary-soft-ink); font-weight: 650; }
.adm-kpi.is-warn .adm-kpi-ic { background: var(--warn-soft); color: var(--warn); }
.adm-kpi.is-warn .adm-kpi-sub { color: var(--warn); font-weight: 650; }
.adm-kpi.is-danger .adm-kpi-ic { background: var(--danger-soft); color: var(--danger); }
.adm-kpi.is-danger .adm-kpi-sub { color: var(--danger); font-weight: 650; }

/* revenue: the wide first tile */
.adm-kpi-revenue { grid-column: span 2; border-color: color-mix(in srgb, var(--primary) 22%, var(--border)); }
.adm-kpi-revenue .adm-kpi-ic { background: var(--primary); color: #fff; }
.adm-rev { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.adm-rev-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.adm-rev-main .adm-kpi-value { font-size: 2.3rem; color: var(--text); }
.adm-rev-total { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding-left: 18px; border-left: 1px solid var(--border); }
.adm-rev-label { color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.adm-rev-total b { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

@media (max-width: 1020px) { .adm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .adm-kpis { gap: 10px; }
  .adm-kpi { padding: 14px; }
  .adm-kpi-value { font-size: 1.55rem; }
  .adm-kpi-ic { width: 30px; height: 30px; border-radius: 9px; }
  .adm-kpi:not(.adm-kpi-revenue) .adm-kpi-ic { display: none; }
  .adm-kpi-label { font-size: .8rem; }
  .adm-kpi-sub { font-size: .76rem; }
  .adm-rev-main .adm-kpi-value { font-size: 1.9rem; }
  .adm-rev-total { padding-left: 14px; }
}

/* usage strip */
.adm-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 14px 0 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.adm-strip-item { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 18px; }
.adm-strip-item + .adm-strip-item { border-left: 1px solid var(--border); }
.adm-strip-ic { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--surface-2); color: var(--muted); }
.adm-strip-ic .icon { width: 17px; height: 17px; }
.adm-strip-item > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.adm-strip-label { color: var(--muted); font-size: .78rem; font-weight: 650; }
.adm-strip-item b { font-size: 1.12rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 860px) {
  .adm-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-strip-item:nth-child(3) { border-left: 0; }
  .adm-strip-item:nth-child(n + 3) { border-top: 1px solid var(--border); }
}
@media (max-width: 520px) { .adm-strip { margin: 10px 0 18px; } .adm-strip-item { padding: 12px 14px; gap: 10px; } }

/* panels (lists of rows) */
.adm-panels { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.adm-panels-col { display: grid; gap: 16px; min-width: 0; }
.adm-panels-col > .card + .card { margin-top: 0; }
@media (max-width: 900px) { .adm-panels { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .adm-panels, .adm-panels-col { gap: 12px; } }
.adm-panel { overflow: hidden; }
.adm-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.adm-panel-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1rem; }
.adm-panel-link { display: inline-flex; align-items: center; gap: 2px; min-height: 36px; color: var(--primary); font-size: .86rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.adm-panel-link:hover { text-decoration: underline; }
.adm-panel-link .icon, .adm-panel-more .icon { width: 16px; height: 16px; }
.adm-panel-empty { display: flex; align-items: center; gap: 10px; margin: 0; padding: 22px 18px; color: var(--muted); font-size: .92rem; }
.adm-panel-empty .icon { flex: none; width: 18px; height: 18px; color: var(--success); }
.adm-panel-more { margin: 0; padding: 10px 18px; border-top: 1px solid var(--border); }
.adm-panel-more a { display: inline-flex; align-items: center; gap: 2px; font-size: .88rem; font-weight: 700; text-decoration: none; }
.adm-list { list-style: none; margin: 0; padding: 0; }
.adm-list li + li { border-top: 1px solid var(--border); }
.adm-item { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 18px; color: var(--text); text-decoration: none; transition: background .12s var(--ease); }
.adm-item:hover { color: var(--text); background: var(--surface-2); }
.adm-item:focus-visible { outline: 2px solid transparent; box-shadow: inset var(--ring); border-radius: 0; }
.adm-item .adm-avatar { width: 34px; height: 34px; border-radius: 10px; }
.adm-item-ic { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); color: var(--muted); }
.adm-item-ic .icon { width: 17px; height: 17px; }
.adm-item-ic.is-ok { background: var(--success-soft); color: var(--success); }
.adm-item-ic.is-new { background: var(--primary-soft); color: var(--primary); }
.adm-item-main { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; line-height: 1.35; }
.adm-item-title { display: block; min-width: 0; font-weight: 700; font-size: .94rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-item-title .adm-tag { margin-left: 6px; }
.adm-item-title .adm-dot { margin: 0 6px 1px 0; vertical-align: middle; }
.adm-item-sub { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; text-align: right; }
@media (max-width: 520px) {
  .adm-item { padding: 10px 14px; gap: 10px; }
  .adm-panel-head { padding: 12px 14px; }
  .adm-item-side .pill { padding: 3px 8px; font-size: .72rem; }
  .adm-item-side .pill::before { width: 6px; height: 6px; }
}

/* ---------- shops list ---------- */
.adm-search { flex: 1 1 320px; max-width: 460px; }
.adm-search .btn { flex: none; }
@media (max-width: 520px) { .adm-search { flex-basis: 100%; max-width: none; } }
.adm-chips { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 14px; padding: 2px 2px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.adm-chips::-webkit-scrollbar { display: none; }
.adm-chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 7px 8px 7px 14px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-2);
  font-size: .88rem; font-weight: 650; text-decoration: none; transition: border-color .15s var(--ease), background .15s var(--ease);
}
.adm-chip:hover { color: var(--text); border-color: var(--border-strong); }
.adm-chip.is-on { color: var(--primary-soft-ink); background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 35%, transparent); }
.adm-chip-n { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: .76rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.adm-chip.is-on .adm-chip-n { background: var(--primary); color: #fff; }
.adm-searchnote { margin: -4px 0 14px; color: var(--muted); font-size: .9rem; }

.adm-tablecard { overflow: hidden; }
.adm-table-wrap { position: relative; border-radius: 0; }
.adm-table td { vertical-align: top; }
.adm-table th, .adm-table td { padding-left: 8px; padding-right: 8px; }
.adm-table th:first-child, .adm-table td:first-child { padding-left: 18px; }
.adm-table th:last-child, .adm-table td:last-child { padding-right: 14px; }
.adm-table th { background: var(--surface); }
.adm-shop { display: flex; align-items: flex-start; gap: 12px; min-width: 190px; max-width: 270px; }
.adm-shop-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.adm-shop-title { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.adm-shop-name { color: var(--text); font-weight: 750; text-decoration: none; overflow-wrap: anywhere; }
.adm-shop-name:hover { color: var(--primary); text-decoration: underline; }
.adm-slug { display: block; margin-top: 1px; font-family: var(--mono); font-size: .76rem; color: var(--primary); text-decoration: none; overflow-wrap: anywhere; min-width: 0; }
.adm-slug:hover { text-decoration: underline; }
.adm-slug .icon { width: 12px; height: 12px; margin: -2px 0 0 4px; }
.adm-lines { display: flex; flex-direction: column; gap: 1px; min-width: 0; max-width: 240px; font-size: .88rem; line-height: 1.4; }
.adm-lines b { color: var(--text); font-weight: 700; }
.adm-lines a { color: var(--text-2); text-decoration: none; overflow-wrap: anywhere; }
.adm-lines a:hover { color: var(--primary); text-decoration: underline; }
.adm-owner { min-width: 140px; }
.adm-owner a { display: block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-td-plan .adm-lines { white-space: nowrap; }
.adm-cycle { color: var(--muted); font-weight: 600; font-size: .8rem; }
.adm-num { align-items: flex-end; text-align: right; margin-left: auto; }
.adm-col-activity .adm-lines { min-width: 120px; }
.adm-td-actions { text-align: right; white-space: nowrap; vertical-align: middle !important; }
.adm-manage { width: 40px; padding: 0; }
.adm-manage .icon { width: 18px; height: 18px; }
.adm-manage-label { display: none; }
@media (min-width: 721px) and (max-width: 1240px) { .adm-col-activity { display: none; } }
@media (min-width: 721px) and (max-width: 980px) { .adm-col-storage { display: none; } }

/* phones: each shop becomes a card */
@media (max-width: 720px) {
  .adm-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; padding: 14px 16px 16px; }
  .adm-table td, .adm-table td:first-child, .adm-table td:last-child { display: block; padding: 0; text-align: left; }
  .adm-table td::before { display: block; margin-bottom: 2px; font-size: .7rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
  .adm-table td.num { text-align: left; }
  .adm-table .adm-num { align-items: flex-start; text-align: left; margin-left: 0; }
  .adm-table .adm-lines { max-width: none; }
  .adm-table td.adm-td-shop { grid-column: 1 / -1; }
  .adm-table td.adm-td-shop::before, .adm-table td.adm-td-state::before, .adm-table td.adm-td-actions::before { display: none; }
  .adm-table td.adm-td-state { grid-column: 1 / -1; margin-top: -4px; padding-left: 50px; }
  .adm-table td.adm-td-shop .adm-shop { min-width: 0; max-width: none; }
  .adm-table td.adm-td-plan { order: 1; }
  .adm-table td.adm-td-orders { order: 2; }
  .adm-table td.adm-col-storage { order: 3; }
  .adm-table td.adm-col-activity { order: 4; }
  .adm-table td.adm-td-owner { order: 5; grid-column: 1 / -1; padding-top: 10px; border-top: 1px dashed var(--border); }
  .adm-table td.adm-td-actions { order: 6; grid-column: 1 / -1; }
  .adm-owner { min-width: 0; }
  .adm-owner a { max-width: none; }
  .adm-td-plan .adm-lines { white-space: normal; }
  .adm-col-activity .adm-lines { min-width: 0; }
  .adm-table td.adm-td-actions .btn { width: 100%; min-height: 44px; gap: 4px; }
  .adm-manage-label { display: inline; }
}

/* ---------- shop detail ---------- */
.adm-back { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin: -8px 0 6px; color: var(--text-2); font-size: .92rem; font-weight: 650; text-decoration: none; }
.adm-back:hover { color: var(--primary); }
.adm-back .icon { width: 18px; height: 18px; }

.adm-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px 24px; margin-bottom: 16px; padding: 22px 24px; }
.adm-hero-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.adm-hero-text { min-width: 0; }
.adm-hero-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.adm-hero-title h1 { margin: 0; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); overflow-wrap: anywhere; }
.adm-hero-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 0; color: var(--muted); font-size: .88rem; font-weight: 550; }
.adm-hero-meta span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.adm-hero-meta .icon { width: 15px; height: 15px; }
.adm-hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.adm-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.adm-facts > div { min-width: 0; padding: 12px 16px; }
.adm-facts > div + div { border-left: 1px solid var(--border); }
.adm-facts dt { color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.adm-facts dd { display: flex; flex-direction: column; margin: 2px 0 0; font-weight: 750; overflow-wrap: anywhere; line-height: 1.35; }
.adm-facts dd .adm-ok, .adm-facts dd .adm-warn, .adm-facts dd .adm-danger, .adm-facts dd .adm-sub { font-size: .8rem; }
.adm-hero .adm-facts { order: 3; }
.adm-hero .adm-hero-actions { order: 2; }
@media (max-width: 900px) {
  .adm-hero { grid-template-columns: minmax(0, 1fr); }
  .adm-hero-actions { justify-content: flex-start; }
  .adm-hero .adm-facts { order: 2; }
  .adm-hero .adm-hero-actions { order: 3; }
}
@media (max-width: 640px) {
  .adm-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-facts > div:nth-child(3) { border-left: 0; }
  .adm-facts > div:nth-child(n + 3) { border-top: 1px solid var(--border); }
}
@media (max-width: 520px) {
  .adm-hero { padding: 18px 16px; gap: 14px; }
  .adm-hero-id { align-items: flex-start; gap: 12px; }
  .adm-avatar-lg { width: 46px; height: 46px; border-radius: 13px; }
  .adm-facts > div { padding: 10px 12px; }
  .adm-hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-hero-actions .btn { min-height: 44px; }
}

/* in-page shortcuts (phones) */
.adm-jumps { display: none; }
@media (max-width: 960px) {
  .adm-jumps { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 14px; padding: 2px; scrollbar-width: none; }
  .adm-jumps::-webkit-scrollbar { display: none; }
  .adm-jumps a { flex: none; display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: .86rem; font-weight: 650; text-decoration: none; }
  .adm-jumps a:hover { color: var(--text); border-color: var(--border-strong); }
}

/* two columns: details left, actions right; one column on phones with actions first */
.adm-split { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 16px; align-items: start; }
.adm-col > * + * { margin-top: 16px; }
.adm-col > .card + .card { margin-top: 16px; }
@media (max-width: 960px) {
  .adm-split { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
  .adm-col { display: contents; }
  .adm-col > * + *, .adm-col > .card + .card { margin-top: 0; }
  .adm-split #actions { order: 1; }
  .adm-split #subscription { order: 2; }
  .adm-split #support { order: 3; }
  .adm-split #notify { order: 4; }
  .adm-split #usage { order: 5; }
  .adm-split #details { order: 6; }
  .adm-split #access { order: 7; }
  .adm-split #note { order: 8; }
}
.adm-detail .card { scroll-margin-top: calc(var(--header-h) + 12px); }
.adm-detail .card-head .adm-sub { text-align: right; }

/* temporary password */
.adm-reveal { padding: 18px 20px; margin-bottom: 16px; border-color: color-mix(in srgb, var(--success) 40%, var(--border)); background: color-mix(in srgb, var(--success) 5%, var(--surface)); box-shadow: var(--shadow); }
.adm-reveal-head { display: flex; align-items: flex-start; gap: 12px; }
.adm-reveal-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--success-soft); color: var(--success); }
.adm-reveal h2 { margin: 0 0 2px; font-size: 1.05rem; }
.adm-reveal p { margin: 0; color: var(--text-2); font-size: .92rem; }
.adm-reveal-pw { max-width: 460px; margin: 14px 0 12px; }
.adm-reveal-pw input { font-family: var(--mono); font-size: 1.15rem; font-weight: 700; letter-spacing: .06em; }
@media (max-width: 520px) { .adm-reveal { padding: 16px; } }

/* mini metric grid */
.adm-mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
@media (max-width: 640px) { .adm-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.adm-mini > div { min-width: 0; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); }
.adm-mini dt { color: var(--muted); font-size: .76rem; font-weight: 650; }
.adm-mini dd { margin: 2px 0 0; overflow: hidden; color: var(--text); font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; text-overflow: ellipsis; }

/* subscription */
.adm-sub-card { overflow: hidden; }
.adm-sub-card .adm-table-wrap { border-top: 1px solid var(--border); }
.adm-paytable td { vertical-align: middle; }
.adm-paynote { display: block; max-width: 220px; color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.adm-pay-paid { --pill-bg: var(--success-soft); --pill-fg: #166534; }
.adm-pay-created { --pill-bg: var(--surface-3); --pill-fg: var(--muted); }
.adm-pay-failed { --pill-bg: var(--danger-soft); --pill-fg: #991b1b; }
.adm-pay-cancelled { --pill-bg: var(--surface-3); --pill-fg: var(--muted); }
.adm-nopay { border-top: 1px solid var(--border); }
.adm-nopay .icon { color: var(--muted); }
.adm-embed-pay { padding: 18px 20px; border-top: 1px solid var(--border); background: var(--surface-2); }
.adm-embed-pay .adm-form-title { margin-bottom: 2px; }
.adm-embed-lead { margin-bottom: 14px; }
.adm-noorders .icon { color: var(--muted); }
@media (max-width: 720px) {
  .adm-paytable tbody tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .adm-paytable .nowrap { white-space: normal; }
  .adm-paytable td[data-label="Amount"] { order: -1; }
}
@media (max-width: 520px) { .adm-embed-pay { padding: 16px 14px; } }

/* tickets */
.adm-tk-open { --pill-bg: var(--warn-soft); --pill-fg: #92400e; }
.adm-tk-answered { --pill-bg: var(--primary-soft); --pill-fg: var(--primary-soft-ink); }
.adm-tk-closed { --pill-bg: var(--surface-3); --pill-fg: var(--muted); }

/* usage */
.adm-meter { margin-top: 16px; }
.adm-meter-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; color: var(--text-2); font-size: .84rem; font-weight: 650; }
.adm-meter meter { display: block; width: 100%; height: 8px; border: 0; border-radius: 999px; background: var(--surface-3); }
.adm-meter meter::-webkit-meter-bar { height: 8px; border: 0; border-radius: 999px; background: var(--surface-3); }
.adm-meter meter::-webkit-meter-optimum-value { border-radius: 999px; background: var(--primary); }
.adm-meter meter::-webkit-meter-suboptimum-value { border-radius: 999px; background: var(--warn); }
.adm-meter meter::-webkit-meter-even-less-good-value { border-radius: 999px; background: var(--danger); }
.adm-meter meter::-moz-meter-bar { border-radius: 999px; background: var(--primary); }
.adm-usage-sub { margin: 20px 0 10px; }
.adm-status-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.adm-status-list li { display: inline-flex; align-items: center; gap: 8px; padding: 3px 11px 3px 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.adm-status-list b { font-size: .86rem; font-variant-numeric: tabular-nums; }
.adm-status-list li.is-zero { opacity: .5; }
.adm-subhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 12px 20px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.adm-subhead h3 { margin: 0; font-size: .92rem; }
.adm-orders .order-row { padding-left: 20px; padding-right: 20px; }
.adm-order-title { display: flex; align-items: center; gap: 6px; }
@media (max-width: 520px) { .adm-orders .order-row { padding-left: 14px; padding-right: 14px; } .adm-subhead { padding: 12px 14px; } }

/* details */
.adm-linkfield { margin-bottom: 18px; }
.adm-details > div { grid-template-columns: 130px minmax(0, 1fr); }
.adm-details a { overflow-wrap: anywhere; }
.adm-pre { white-space: pre-line; }
.adm-color { display: inline-flex; align-items: center; gap: 8px; }
.adm-swatch { flex: none; border-radius: 4px; box-shadow: 0 0 0 1px var(--border); }
.adm-kv { margin-bottom: 16px; }
.adm-kv > div { grid-template-columns: 96px minmax(0, 1fr); }
@media (max-width: 480px) { .adm-details > div, .adm-kv > div { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* account actions */
.adm-actions .alert { margin-bottom: 16px; font-size: .9rem; }
.adm-form-title { margin: 0 0 12px; font-size: .95rem; }
.adm-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
.adm-form-grid > .field:only-child { grid-column: 1 / -1; }
.adm-form .field { margin-bottom: 12px; }
.adm-form .field > label { font-size: .84rem; }
.adm-form .btn-block { min-height: 46px; }
.adm-or { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; color: var(--muted); font-size: .8rem; font-weight: 650; }
.adm-or::before, .adm-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.adm-extend-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; }
.adm-extend-btns .btn { min-height: 42px; padding-left: 6px; padding-right: 6px; }
.adm-form .hint { margin-top: 10px; }
.adm-foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.adm-foot .btn { min-height: 44px; }
.adm-note textarea { min-height: 110px; }
.adm-note .form-actions { justify-content: flex-end; }
@media (max-width: 380px) { .adm-form-grid { grid-template-columns: minmax(0, 1fr); } }

/* embedded forms from other modules (manual payment, notify) */
.adm-embed form > :last-child { margin-bottom: 0; }

/* ---------- login ---------- */
.adm-login-page .main-admin { display: grid; place-items: center; padding: 40px 16px 56px; }
.adm-login { width: 100%; max-width: 420px; margin: 0 auto; }
.adm-login-card { padding: 30px 28px 26px; box-shadow: var(--shadow); }
.adm-login-ic { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); }
.adm-login-ic .icon { width: 24px; height: 24px; }
.adm-login-card h1 { margin: 0 0 4px; font-size: 1.5rem; }
.adm-login-lead { margin: 0 0 22px; color: var(--muted); font-size: .95rem; }
.adm-login .alert { margin-bottom: 16px; }
.adm-login-form .btn-block { margin-top: 6px; }
.adm-login-foot { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: .9rem; }
@media (max-width: 480px) { .adm-login-card { padding: 24px 18px 20px; } }

/* engines without color-mix(): solid stand-ins */
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .adm-kpi-revenue { border-color: var(--border-strong); }
  .adm-chip.is-on { border-color: var(--primary); }
  .adm-reveal { background: var(--success-soft); border-color: var(--border); }
}

/* ---------- platform ---------- */
/* ---------- platform: offline page ---------- */
.offline-icon { background: var(--warn-soft); color: var(--warn); }
.offline-page .message-card .muted { max-width: 44ch; margin-left: auto; margin-right: auto; }
.offline-home { margin: 14px 0 0; font-size: .92rem; }

/* ---------- fallbacks: engines without color-mix() (iOS < 16.2, Chrome < 111, Firefox ESR 102) ---------- */
/* A color-mix() value containing var() is only rejected at computed-value time, which leaves the background
   transparent (an earlier fallback declaration does not help). These solid stand-ins come last so they win. */

@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .tabbar { background: var(--bg-elev); }
  .set-save, .lp-kicker { background: var(--surface); }
  .seg input:checked + span, .dropzone:hover, .dropzone.is-over, .set-preview-drop, .set-link, .set-renew,
  .cust-how li, .cust-chip, .cust-sec-num, .adm-stat-ic, .ord-stat-icon, .lp-who-ic,
  .set-tip-list li:nth-child(1) .set-tip-icon, .set-tip-list li:nth-child(2) .set-tip-icon, .set-tip-list li:nth-child(4) .set-tip-icon { background: var(--surface-2); }
  .history .h-actor-customer .h-dot { background: var(--surface-3); }
  .lp-row.is-fresh, .lp-chips .is-on, .ord-newbar, .ord-newbar:hover { background: var(--info-soft); }
  .waiting-steps li.is-current, .adm-stat.is-attention, .adm-table tr.is-pending > td, .adm-table tr.adm-approve-row > td,
  .adm-table tr.is-pending, .adm-table tr.adm-approve-row, .ord-attn, .ord-attn:hover, .ord-callout { background: var(--warn-soft); }
  .adm-reveal { background: var(--success-soft); }
  .cust-files-field.has-error .dropzone { background: var(--danger-soft); }
  .lp-ph-steps .is-current { background: var(--magenta); opacity: .45; }
  .lp-tile-c, .lp-tile-m, .lp-tile-y { --tile-bg: var(--surface); }
  .dm-card-customer, .dm-card-shop { --dm-bg: var(--surface); }
  .ord-wa-soft, .ord-wa-soft:hover { --btn-bg: var(--success-soft); --btn-bd: transparent; }
}
