/*
 * Pepsite. Pepsite's own look is Parc's (Play With Me's Parc wallet): a pure black page, square corners on everything,
 * and frosted glass (a fine grain, a milky tint, a heavy blur and a bright top edge), with Bricolage Grotesque titles.
 * Nothing from Arc: no arched card and no Arc or Circle marks.
 *
 * A store's builder changes the look without any CSS of its own. It sets, on <html> (app/core.js applyTheme):
 *   data-mode     dark | light
 *   data-glass    1 | 0 | liquid   frosted cards, flat ones, or clear glass with a bright edge (like Apple's)
 *   data-corners  square | soft | round | pill
 *   data-header   flat | float     a bar across the top, or a rounded bar that floats
 *   data-hero     plain | panel    the home head as words on the page, or a color panel with a picture
 *   data-cards    flat | framed    product pictures edge to edge, or set inside the card
 *   and --accent, --accent2, --bg, --label, --label2, --font-display, --font-body, --strip-bg, --strip-ink.
 * Accel's white label is light, flat, pill, float, panel, framed, in Accel blue with Manrope and DM Sans.
 */

:root {
  --accent: #8b3dff;
  --accent2: color-mix(in srgb, var(--accent) 62%, white);
  --bg: #000;
  --label: #f6f3fb;
  --label2: #bcb4cc;
  --label3: color-mix(in srgb, var(--label2) 62%, transparent);
  --sep: rgba(255, 255, 255, 0.1);
  --edge: rgba(255, 255, 255, 0.17);
  --fill: rgba(255, 255, 255, 0.07);
  --good: #7ee6a2;
  --bad: #ff6b81;
  --warn: #ffd60a;
  --on-accent: #fff;
  --font-display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --display-w: 800;
  --title-w: 700;
  --track: -0.025em;
  --track2: -0.015em;
  --r-btn: 0px;
  --r-field: 0px;
  --r-card: 0px;
  --r-well: 0px;
  --r-chip: 0px;
  --r-head: 0px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .075 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --tint: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045) 55%, rgba(255, 255, 255, 0.075));
  --surface: var(--grain), var(--tint), rgba(20, 16, 30, 0.36);
  --surface-strong: var(--grain), linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05)), rgba(18, 14, 27, 0.92);
  --shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(255, 255, 255, 0.05), 0 20px 50px rgba(0, 0, 0, 0.34);
  --blur: blur(42px) saturate(165%) brightness(1.08);
  --btn-bg: var(--grain), linear-gradient(180deg, color-mix(in srgb, var(--accent) 62%, rgba(255, 255, 255, 0.1)), color-mix(in srgb, var(--accent) 44%, rgba(10, 8, 16, 0.4)));
  --btn-edge: color-mix(in srgb, var(--accent) 72%, white 10%);
  --btn-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 12px 28px color-mix(in srgb, var(--accent) 26%, transparent);
  --top-bg: rgba(0, 0, 0, 0.62);
  --well: rgba(255, 255, 255, 0.05);
  --panel: color-mix(in srgb, var(--accent) 24%, #050b1c);
  color-scheme: dark;

  /* One scale for the whole site. Text: seven sizes, then a page title and a home page headline that grow with
     the screen. Space: 4, 8, 12, 16, 24, 32. Controls: one tall size for the main button, one size for all else. */
  --fs-1: 12.5px; /* fine print: labels over a title, states, counts */
  --fs-2: 14px; /* second lines, hints, field labels */
  --fs-3: 16px; /* words, buttons, chips, what is typed */
  --fs-4: 18px; /* a card's title, a lead line, an article's words */
  --fs-5: 20px; /* a small head, a sheet's title */
  --fs-6: 24px; /* a section's head */
  --fs-7: 30px; /* a figure */
  --fs-title: clamp(30px, 8vw, 40px); /* a page's title */
  --fs-hero: clamp(34px, 9vw, 56px); /* a home page headline */
  --fs-hero-half: clamp(34px, 5vw, 56px); /* the same headline when a photo takes half of the row */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --h-btn: 52px; /* the main button, a search box, a number stepper */
  --h-ctl: 44px; /* every other thing to tap: small buttons, chips, icons, tabs */
  /* Weight: 400 for words, 650 for anything strong (buttons, row titles, labels), 700 for prices and small caps.
     Line height: 1.15 titles, 1.3 a row's lines, 1.45 words, 1.6 an article. Icons: 20 in a control, 24 beside a
     row or in a menu, then 32, 48 and 64 for pictures that stand in for a photo. */
}
:root[data-glass="0"][data-mode="dark"] {
  --surface: #0f0d15;
  --surface-strong: #17131d;
  --shadow: none;
  --btn-bg: var(--accent);
  --btn-shadow: none;
  --btn-edge: var(--accent);
  --top-bg: var(--bg);
}
:root[data-mode="light"] {
  color-scheme: light;
  --accent2: var(--accent);
  --sep: color-mix(in srgb, var(--label) 11%, transparent);
  --edge: color-mix(in srgb, var(--label) 12%, transparent);
  --fill: color-mix(in srgb, var(--label) 5%, transparent);
  --good: #1e7a46;
  --bad: #b8321f;
  --warn: #8a5a00;
  --surface: #fff;
  --surface-strong: #fff;
  --shadow: 0 1px 2px color-mix(in srgb, var(--label) 4%, transparent), 0 9px 25px color-mix(in srgb, var(--label) 6%, transparent);
  --btn-bg: var(--accent);
  --btn-edge: var(--accent);
  --btn-shadow: none;
  --top-bg: color-mix(in srgb, #fff 93%, transparent);
  --well: color-mix(in srgb, var(--label) 5%, #fff);
}
:root[data-mode="light"][data-glass="1"] {
  --tint: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.7) 55%, rgba(255, 255, 255, 0.84));
  --surface: var(--grain), var(--tint), rgba(255, 255, 255, 0.55);
  --surface-strong: var(--grain), linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.9)), rgba(244, 245, 247, 0.96);
  --shadow: inset 0 1px 0 #fff, 0 14px 36px color-mix(in srgb, var(--label) 8%, transparent);
  --blur: blur(42px) saturate(140%);
  --btn-bg: var(--grain), linear-gradient(180deg, color-mix(in srgb, var(--accent) 86%, white), var(--accent));
  --btn-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 20px color-mix(in srgb, var(--label) 12%, transparent);
}
:root[data-corners="soft"] { --r-btn: 7px; --r-field: 10px; --r-card: 16px; --r-well: 10px; --r-chip: 5px; --r-head: 16px; }
:root[data-corners="round"] { --r-btn: 12px; --r-field: 14px; --r-card: 22px; --r-well: 14px; --r-chip: 7px; --r-head: 22px; }
:root[data-corners="pill"] { --r-btn: 999px; --r-field: 16px; --r-card: 27px; --r-well: 19px; --r-chip: 999px; --r-head: 999px; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.locked { overflow: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--label);
  font: 400 var(--fs-3)/1.45 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
:root[data-mode="light"] body { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 5%, var(--bg)) 0, var(--bg) 700px) var(--bg); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); line-height: 1.08; }
h1 { font-weight: var(--display-w); letter-spacing: var(--track); }
h2, h3 { font-weight: var(--title-w); letter-spacing: var(--track2); }
h1 em { font-style: normal; color: var(--accent2); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- glass ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow);
  border-radius: var(--r-card);
}
:root[data-glass="1"] .glass { -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1152px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }
.slim { max-width: 480px; }
#app { min-height: calc(100vh - 64px); padding: 24px 0 120px; }
.boot { height: 60vh; }
@media (min-width: 760px) { #app { padding: var(--s-6) 0 80px; } }
.stackgap { display: grid; gap: var(--s-3); }
.stackgap > *, .col > * { min-width: 0; }

/* ---------- the top line (a store's own short notice) ---------- */
.strip { display: none; }
.strip:not(:empty) { display: block; padding: 8px 16px; text-align: center; font-size: var(--fs-2); font-weight: 650; line-height: 1.3; color: var(--strip-ink, var(--on-accent)); background: var(--strip-bg, var(--accent)); }

/* ---------- the top bar ---------- */
.top { position: sticky; top: 0; z-index: 30; }
.top .bar { background: var(--top-bg); border-bottom: 1px solid var(--sep); }
:root[data-glass="1"] .top .bar, :root[data-mode="light"] .top .bar { -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%); }
.top .wrap { display: flex; align-items: center; gap: var(--s-4); height: 64px; }
.brand { display: flex; align-items: center; min-width: 0; min-height: var(--h-ctl); text-decoration: none; flex: 0 1 auto; }
.mark { display: inline-flex; flex-direction: column; line-height: 1; min-width: 0; }
.mark b { font-family: var(--font-display); font-weight: var(--display-w); font-size: var(--fs-6); letter-spacing: var(--track); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the small line under a name is part of the mark, like a logo: its size is its own */
.mark small { font-size: 10px; font-weight: 650; letter-spacing: 0.34em; margin-top: 4px; color: var(--label); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mark.big b { font-size: 44px; }
.mark.big small { font-size: var(--fs-2); }
[data-markprev] .mark { max-width: 100%; }
.logo { height: 40px; width: auto; max-width: min(200px, 46vw); object-fit: contain; object-position: left center; }
.logo.big { height: 72px; max-width: 300px; }
/* a square logo has the store's name beside it (core.js brandMark) */
.logo { vertical-align: middle; }
.logo + .mark { margin-left: var(--s-2); vertical-align: middle; }
.nav { display: none; gap: 0; flex: 1; min-width: 0; }
.nav a { display: inline-flex; align-items: center; height: var(--h-ctl); padding: 0 var(--s-3); text-decoration: none; font-weight: 650; font-size: var(--fs-3); color: var(--label2); border-radius: var(--r-btn); white-space: nowrap; }
.nav a:hover, .nav a.on { color: var(--label); }
.top .end { margin-left: auto; display: flex; align-items: center; gap: var(--s-1); flex: none; }
.iconbtn { position: relative; display: inline-grid; place-items: center; width: var(--h-ctl); height: var(--h-ctl); flex: none; color: var(--label); text-decoration: none; border-radius: var(--r-btn); }
.iconbtn svg { width: 24px; height: 24px; }
.iconbtn .n { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 var(--s-1); font: 700 var(--fs-1)/20px var(--font-body); text-align: center; color: var(--on-accent); background: var(--accent); border-radius: min(var(--r-btn), 10px); }
/* the count sits beside the icon, never on it */
.iconbtn:has(> .n) > svg { transform: translateX(-9px); }
.top .signin { min-height: var(--h-ctl); padding: 0 var(--s-4); }
@media (min-width: 760px) {
  .nav { display: flex; }
}
/* a bar that floats: rounded, a little off the top, with a soft shadow */
:root[data-header="float"] .top { padding: var(--s-2) var(--s-3) 0; }
:root[data-header="float"] .top .bar { max-width: 1232px; margin: 0 auto; border: 1px solid var(--edge); border-radius: min(var(--r-head), 28px); box-shadow: 0 8px 28px color-mix(in srgb, var(--label) 7%, transparent); }
:root[data-header="float"] .top .wrap { height: 64px; padding: 0 var(--s-3) 0 var(--s-4); }
:root[data-header="float"] #app { padding-top: var(--s-4); }
@media (min-width: 760px) {
  :root[data-header="float"] .top { padding: var(--s-3) var(--s-5) 0; }
  :root[data-header="float"] .top .bar { border-radius: var(--r-head); }
  :root[data-header="float"] .top .wrap { height: 72px; padding: 0 var(--s-5); max-width: none; }
  :root[data-header="float"] .nav { justify-content: center; }
  :root[data-header="float"] .logo { height: 44px; }
  :root[data-header="float"] #app { padding-top: var(--s-5); }
}

/* ---------- phone tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; padding: var(--s-1) var(--s-2) calc(env(safe-area-inset-bottom, 0px) + var(--s-1));
  background: var(--top-bg); border-top: 1px solid var(--sep);
}
.tabbar:empty { display: none; }
:root[data-glass="1"] .tabbar, :root[data-mode="light"] .tabbar { -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%); }
.tabbar a { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-1); height: var(--h-btn); text-decoration: none; color: var(--label2); font-size: var(--fs-1); font-weight: 650; }
.tabbar a svg { width: 24px; height: 24px; flex: none; }
.tabbar a.on { color: var(--accent); }
:root[data-mode="dark"] .tabbar a.on { color: var(--accent2); }
.tabbar a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (min-width: 760px) { .tabbar { display: none; } }
/* a thing scrolled into view (a field tapped, Find, the keyboard) stays clear of the sticky top bar, and on a phone
   of the bottom bar, so it is never under one */
html { scroll-padding-top: 72px; }
@media (max-width: 759px) { html { scroll-padding-bottom: calc(var(--h-btn) + var(--s-2) + var(--s-3) + env(safe-area-inset-bottom, 0px)); } }

/* ---------- type ---------- */
.eyebrow { font-size: var(--fs-1); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--label2); }
:root[data-mode="light"] .eyebrow { color: var(--accent); }
.lead { font-size: var(--fs-4); line-height: 1.45; color: var(--label2); max-width: 560px; }
.muted { color: var(--label2); }
.small { font-size: var(--fs-2); }
.mono { font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace; font-size: var(--fs-2); overflow-wrap: anywhere; }

.sech { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: var(--s-6); margin: var(--s-6) 0 var(--s-3); min-width: 0; }
.sech:first-child, .sech.first { margin-top: 0; }
/* a part of the home page that fills in after it loads is a section like the ones before it */
[data-resellers] > .sech:first-child, [data-news] > .sech:first-child { margin-top: var(--s-6); }
.sech h2 { font-size: var(--fs-6); display: flex; align-items: center; gap: var(--s-2); min-width: 0; overflow-wrap: anywhere; }
.sech h2.sm { font-size: var(--fs-5); }
.sech .count { font-size: var(--fs-2); color: var(--label2); font-weight: 650; white-space: nowrap; flex: none; }
.sech .acts { display: flex; gap: var(--s-2); flex-wrap: wrap; justify-content: flex-end; }

.i { position: relative; flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; font: 800 var(--fs-2)/1 var(--font-display); color: var(--label2); background: var(--fill); border: 1px solid var(--edge); border-radius: min(var(--r-btn), 13px); letter-spacing: 0; vertical-align: middle; }
.i::after { content: ""; position: absolute; inset: -10px; }
.i:hover { color: var(--label); }
.tipbox { position: fixed; z-index: 80; padding: var(--s-3) var(--s-4); font-size: var(--fs-2); line-height: 1.45; color: var(--label); background: #17131d; border: 1px solid var(--edge); border-radius: min(var(--r-card), 14px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); }
:root[data-mode="light"] .tipbox { background: #fff; box-shadow: 0 12px 34px color-mix(in srgb, var(--label) 16%, transparent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none;
  min-height: var(--h-btn); padding: var(--s-1) var(--s-5); font-size: var(--fs-3); font-weight: 650; line-height: 1.2; text-align: center; text-decoration: none;
  color: var(--on-accent); background: var(--btn-bg); border: 1px solid var(--btn-edge); box-shadow: var(--btn-shadow);
  border-radius: var(--r-btn); transition: transform 0.15s, filter 0.15s;
}
:root[data-glass="1"] .btn { -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.plain { color: var(--label); background: var(--surface); border: 1px solid var(--edge); box-shadow: var(--shadow); }
:root[data-mode="light"] .btn.plain { box-shadow: none; }
.btn.bad { color: var(--bad); background: var(--surface); border: 1px solid color-mix(in srgb, var(--bad) 45%, transparent); box-shadow: none; }
.btn.small { min-height: var(--h-ctl); padding: var(--s-1) var(--s-4); }
.btn.wide { width: 100%; }
.btns { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.btns.stack { display: grid; }
.btns.end { justify-content: flex-end; }
.link { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--h-ctl); font-weight: 650; color: var(--label2); text-decoration: none; }
.link svg { width: 20px; height: 20px; flex: none; }
.link:hover { color: var(--label); }
.link.accent { color: var(--accent); }
:root[data-mode="dark"] .link.accent { color: var(--accent2); }
.link.inline { min-height: 0; }

/* ---------- lists and rows (Parc's) ---------- */
.list { overflow: hidden; }
.row { position: relative; display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: 56px; padding: var(--s-3) var(--s-4); text-align: left; text-decoration: none; color: inherit; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--sep); }
.row:has(> .tile) + .row::before { left: 52px; }
.row:has(> .thumb) + .row::before { left: 76px; }
/* a row whose buttons drop under its words on a narrow screen */
.row.wrap { flex-wrap: wrap; }
.row.wrap .txt { min-width: 180px; }
button.row:hover, a.row:hover { background: var(--fill); }
.row .txt { flex: 1; min-width: 0; }
.row h3 { font: 650 var(--fs-3)/1.3 var(--font-body); letter-spacing: 0; overflow-wrap: anywhere; }
.row p { font-size: var(--fs-2); color: var(--label2); overflow-wrap: anywhere; }
.row .end { flex: none; text-align: right; font-variant-numeric: tabular-nums; max-width: 46%; }
.row .end b { display: block; font-size: var(--fs-3); font-weight: 650; }
.row .end small { display: block; font-size: var(--fs-1); color: var(--label2); }
.row .go { flex: none; width: 20px; height: 20px; color: var(--label3); }
.row .go svg { width: 20px; height: 20px; display: block; }
.tile { flex: none; display: grid; place-items: center; width: 24px; height: 40px; color: var(--c, var(--accent)); }
:root[data-mode="dark"] .tile { color: var(--c, var(--accent2)); }
.tile svg { width: 24px; height: 24px; }
.plainlist .row { padding: var(--s-3) 0; min-height: var(--h-ctl); }
.plainlist .row + .row::before { left: 0; right: 0; }

/* ---------- forms ---------- */
.form { overflow: hidden; }
.field { position: relative; display: block; padding: var(--s-3) var(--s-4); min-width: 0; }
.field + .field::before, .field + .fieldrow::before, .fieldrow + .field::before, .fieldrow + .fieldrow::before, .row + .field::before, .field + .row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--sep); }
.fieldrow { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.fieldrow .field + .field::before { left: 0; top: var(--s-3); bottom: var(--s-3); width: 1px; height: auto; right: auto; }
.field > .lab, .field > span { display: flex; align-items: center; gap: var(--s-2); min-height: 24px; font-size: var(--fs-2); font-weight: 650; color: var(--label2); margin-bottom: var(--s-1); }
.field label { cursor: pointer; }
.field em { font-style: normal; font-weight: 500; color: var(--label3); }
.field input, .field textarea, .field select { display: block; width: 100%; min-width: 0; border: 0; background: none; color: var(--label); font-size: var(--fs-3); outline: none; padding: 2px 0; resize: vertical; border-radius: 0; }
.field select { -webkit-appearance: none; appearance: none; padding-right: var(--s-5); cursor: pointer; background: no-repeat right 0 center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.field select option { color: #000; }
.field input::placeholder, .field textarea::placeholder { color: var(--label3); }
.field:focus-within > .lab label, .field:focus-within > span { color: var(--accent); }
:root[data-mode="dark"] .field:focus-within > .lab label { color: var(--accent2); }
.err { margin: var(--s-3) 0 0; color: var(--bad); font-size: var(--fs-3); font-weight: 650; overflow-wrap: anywhere; }
/* inside a stack the stack's own gap is the space */
.stackgap > .err, .sheet-body > .err, .col > .err { margin: 0; }
.err:empty { display: none; }
.filebtn { position: relative; overflow: hidden; }
.filebtn input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* ---------- square choice chips (pills only when a store picks pill corners) ---------- */
.seg { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.seg button, .seg a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--h-ctl); padding: var(--s-1) var(--s-4); font-size: var(--fs-3); font-weight: 650; color: var(--label2); text-decoration: none; background: var(--fill); border: 1px solid var(--edge); border-radius: var(--r-btn); white-space: nowrap; }
.seg button.on, .seg a.on { color: var(--label); background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.seg .n { font-variant-numeric: tabular-nums; color: var(--label3); font-weight: 650; }
.seg .on .n { color: var(--label2); }
.scrollx { overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.scrollx::-webkit-scrollbar { display: none; }
.scrollx .seg { flex-wrap: nowrap; width: max-content; }
:root[data-mode="light"] .seg button, :root[data-mode="light"] .seg a { background: #fff; }
:root[data-mode="light"] .seg button.on, :root[data-mode="light"] .seg a.on { background: color-mix(in srgb, var(--accent) 9%, #fff); color: var(--accent); }

/* ---------- words that say how something stands ---------- */
.state { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-1); font-weight: 650; color: var(--label2); }
.state::before { content: ""; width: 8px; height: 8px; border-radius: min(var(--r-chip), 2px); background: currentColor; flex: none; }
.row .end small.state { display: inline-flex; }
.state.good, .row .end .state.good { color: var(--good); }
.state.warn, .row .end .state.warn { color: var(--warn); }
.state.bad, .row .end .state.bad { color: var(--bad); }
.state.accent, .row .end .state.accent { color: var(--accent); }
:root[data-mode="dark"] .state.accent, :root[data-mode="dark"] .row .end .state.accent { color: var(--accent2); }
.state.off, .row .end .state.off { color: var(--label3); }
/* with pill corners a state is a soft chip, as on Accel's report list */
:root[data-corners="pill"] .state { padding: var(--s-1) var(--s-2); border-radius: 6px; background: color-mix(in srgb, currentColor 10%, transparent); font-size: var(--fs-1); }
:root[data-corners="pill"] .state::before { display: none; }

/* ---------- the home head ---------- */
.homehead { display: grid; gap: 24px; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); padding: var(--s-2) 0 0; align-content: center; min-width: 0; }
.hero-copy { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); min-width: 0; }
.hero h1 { font-size: var(--fs-hero); max-width: 760px; overflow-wrap: anywhere; }
.hero .lead { font-size: var(--fs-4); }
.hero-photo { display: none; }
.kicker { justify-self: start; max-width: 100%; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.fact { padding: var(--s-4); display: grid; gap: var(--s-2); align-content: start; min-width: 0; }
.fact .tile { width: 24px; height: 24px; }
a.fact { text-decoration: none; color: inherit; }
a.fact:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.fact b { font: var(--title-w) var(--fs-4)/1.15 var(--font-display); letter-spacing: var(--track2); overflow-wrap: anywhere; }
.fact > span:not(.tile) { font-size: var(--fs-2); color: var(--label2); }
@media (min-width: 1000px) {
  :root[data-hero="plain"] .homehead { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s-6); align-items: center; }
  :root[data-hero="panel"] .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.f1 { --c: #64d2ff; } .f2 { --c: #30d158; } .f3 { --c: #ff9f0a; } .f4 { --c: #b48cff; }
:root[data-mode="light"] .fact .tile { --c: var(--accent); }

/* the head as a color panel with a picture (Accel's) */
:root[data-hero="panel"] .hero { overflow: hidden; padding: var(--s-5); color: #fff; background: radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 60%), var(--panel); border-radius: min(calc(var(--r-card) + 7px), 34px); box-shadow: 0 18px 40px color-mix(in srgb, var(--accent) 14%, transparent); }
:root[data-hero="panel"] .hero h1 { color: #fff; }
:root[data-hero="panel"] .hero h1 em { color: var(--accent2); }
:root[data-hero="panel"][data-mode="light"] .hero h1 em { color: color-mix(in srgb, var(--accent2) 78%, white); }
:root[data-hero="panel"] .hero .lead { color: rgba(255, 255, 255, 0.84); }
:root[data-hero="panel"] .hero .kicker { padding: var(--s-1) var(--s-2); font-size: var(--fs-1); letter-spacing: 0.09em; color: color-mix(in srgb, var(--accent2) 45%, white); background: color-mix(in srgb, var(--accent) 34%, transparent); border-radius: var(--r-chip); white-space: normal; }
:root[data-hero="panel"] .hero .btn.plain { color: #fff; background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.62); box-shadow: none; }
:root[data-hero="panel"] .hero .state { color: #fff; }
:root[data-hero="panel"] .hero .byline { color: rgba(255, 255, 255, 0.84); }
:root[data-hero="panel"] .hero .byline b { color: #fff; }
:root[data-hero="panel"] .hero.pic { padding-bottom: 0; }
:root[data-hero="panel"] .hero.pic .hero-photo { display: block; margin: 0 calc(var(--s-5) * -1); height: min(78vw, 340px); }
:root[data-hero="panel"] .hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
/* on a wide screen the words keep the left of the panel and the picture the right; its left edge fades into the panel,
   so no word ever sits on the picture */
@media (min-width: 760px) {
  :root[data-hero="panel"] .hero { padding: 48px; min-height: 440px; }
  :root[data-hero="panel"] .hero-copy { max-width: 560px; }
  :root[data-hero="panel"] .hero.pic { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 0; padding: 0; min-height: 520px; align-items: stretch; }
  :root[data-hero="panel"] .hero.pic .hero-copy { align-self: center; padding: 48px var(--s-4) 48px 48px; max-width: none; }
  /* beside a photo the words have half the row, so the headline grows with that half and no long word is cut */
  :root[data-hero="panel"] .hero.pic h1 { font-size: var(--fs-hero-half); }
  :root[data-hero="panel"] .hero.pic .hero-photo { position: relative; margin: 0; height: auto; min-height: 520px; }
  :root[data-hero="panel"] .hero-photo img { position: absolute; inset: 0; object-position: right center; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%); mask-image: linear-gradient(90deg, transparent 0, #000 24%); }
}

/* ---------- product cards ---------- */
.tools { display: grid; gap: var(--s-3); margin: 0 0 var(--s-4); }
.tools > * { min-width: 0; }
.search { display: flex; align-items: center; gap: var(--s-3); min-height: var(--h-btn); padding: 0 var(--s-4); }
.search svg { width: 20px; height: 20px; color: var(--label2); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: var(--fs-3); }
.search input::placeholder { color: var(--label3); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr)); gap: var(--s-3); }
@media (max-width: 519px) { .grid.pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); } }
.card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; text-decoration: none; color: inherit; }
.card .pic { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; background: var(--well); border-bottom: 1px solid var(--sep); color: var(--accent); overflow: hidden; }
:root[data-mode="dark"] .card .pic { color: var(--accent2); }
.card .pic.none { aspect-ratio: 16 / 10; }
/* in a shop that has pictures, a product without one keeps the same square so the rows line up */
.grid.haspics .card .pic.none { aspect-ratio: 1 / 1; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; }
.card .pic svg { width: 48px; height: 48px; opacity: 0.85; }
.card .body { display: grid; gap: var(--s-1); padding: var(--s-4) var(--s-4) var(--s-3); flex: 1; align-content: start; min-width: 0; }
.card .body a { display: block; padding: var(--s-1) 0; text-decoration: none; }
.card h3 { font-size: var(--fs-4); overflow-wrap: anywhere; }
.card .meta { font-size: var(--fs-2); color: var(--label2); }
.card .tags { margin-top: 4px; }
.card .tags .state { font-size: var(--fs-1); }
.card .cfoot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: var(--h-ctl); margin: 0 var(--s-4); padding: var(--s-3) 0 var(--s-4); border-top: 1px solid var(--sep); min-width: 0; }
.price { font: 700 var(--fs-4)/1.2 var(--font-body); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price small { font-size: var(--fs-1); font-weight: 500; color: var(--label2); }
.hidden-price { flex: 1; font-size: var(--fs-2); line-height: 1.3; color: var(--label2); font-weight: 650; min-width: 0; }
a.hidden-price { display: flex; align-items: center; min-height: var(--h-ctl); text-decoration: underline; text-underline-offset: 3px; }
.addbtn { flex: none; display: inline-grid; place-items: center; width: var(--h-ctl); height: var(--h-ctl); color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent); border-radius: var(--r-btn); text-decoration: none; }
:root[data-mode="dark"] .addbtn { color: var(--label); }
.addbtn svg { width: 20px; height: 20px; }
.addbtn:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
/* the picture set inside the card (Accel's) */
:root[data-cards="framed"] .card { padding: var(--s-3); }
:root[data-cards="framed"] .card .pic { border: 0; border-radius: var(--r-well); }
:root[data-cards="framed"] .card .body { padding: var(--s-3) var(--s-1); }
:root[data-cards="framed"] .card .cfoot { margin: 0 var(--s-1); padding: var(--s-3) 0 var(--s-1); }
@media (max-width: 519px) {
  /* two cards side by side on a phone: the name and the price step down one size so they fit */
  .grid.pair .card h3 { font-size: var(--fs-3); }
  .grid.pair .card .body { padding: var(--s-3) var(--s-3) var(--s-2); }
  .grid.pair .card .cfoot { margin: 0 var(--s-3); padding: var(--s-2) 0 var(--s-3); }
  .grid.pair .price { font-size: var(--fs-3); }
  .grid.pair .hidden-price { font-size: var(--fs-1); }
  .grid.pair .card .tags .state { font-size: var(--fs-1); }
  :root[data-cards="framed"] .grid.pair .card { padding: var(--s-2); }
  :root[data-cards="framed"] .grid.pair .card .body { padding: var(--s-2) var(--s-1); }
  :root[data-cards="framed"] .grid.pair .card .cfoot { margin: 0 var(--s-1); }
}

/* ---------- product page ---------- */
.prod { display: grid; gap: var(--s-5); }
.prod .pic { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; color: var(--accent); background: var(--well); }
:root[data-glass="1"] .prod .pic { background: var(--surface); }
.prod .pic.none { aspect-ratio: 16 / 10; }
.prod .pic img { width: 100%; height: 100%; object-fit: cover; }
.prod .pic svg { width: 64px; height: 64px; }
.prod h1 { font-size: var(--fs-title); overflow-wrap: anywhere; }
@media (min-width: 900px) { .prod { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); align-items: start; } }
.qty { display: inline-flex; align-items: center; height: var(--h-btn); flex: none; border: 1px solid var(--edge); border-radius: var(--r-btn); background: var(--surface); }
.qty button { display: grid; place-items: center; width: 48px; height: 100%; color: var(--label); }
.qty button svg { width: 20px; height: 20px; }
.qty input { width: 44px; text-align: center; border: 0; background: none; font-size: var(--fs-3); font-weight: 650; outline: none; -moz-appearance: textfield; padding: 0; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.sm { height: var(--h-ctl); }
.qty.sm button { width: 40px; }
.qty.sm input { width: 32px; }
/* the sizes of one product (shop.js): rounded squares, never pills */
.sizebox { display: grid; gap: var(--s-2); }
.sizebox .lab { font-size: var(--fs-2); font-weight: 650; color: var(--label2); }
.sizes { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.sizes button { display: grid; gap: var(--s-1); justify-items: start; min-width: 104px; min-height: var(--h-btn); padding: var(--s-2) var(--s-3); border: 1px solid var(--edge); border-radius: var(--r-field); background: var(--surface); color: var(--label); text-align: left; cursor: pointer; }
.sizes button b { font-size: var(--fs-3); font-weight: 650; line-height: 1.2; }
.sizes button small { font-size: var(--fs-1); color: var(--label2); line-height: 1.2; }
.sizes button.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.sizes button.out b { color: var(--label2); }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-2) var(--s-4); font-size: var(--fs-3); margin: 0; padding: var(--s-4); }
.kv dt { color: var(--label2); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; text-align: right; font-weight: 650; }

/* ---------- figures ---------- */
.fig { padding: var(--s-5); display: grid; gap: var(--s-2); min-width: 0; }
.fig .big { font: var(--display-w) var(--fs-title)/1 var(--font-display); letter-spacing: var(--track); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fig .big.sm { font-size: var(--fs-7); }
.fig .sub { font-size: var(--fs-3); color: var(--label2); }
.totals { display: grid; gap: var(--s-2); padding: var(--s-4); font-size: var(--fs-3); }
.totals div { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.totals .sum { font-size: var(--fs-4); font-weight: 700; padding-top: var(--s-3); border-top: 1px solid var(--sep); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); margin-bottom: var(--s-5); }
.stat { padding: var(--s-4); display: grid; gap: var(--s-1); min-width: 0; text-align: left; text-decoration: none; color: inherit; }
a.stat:hover, button.stat:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.stat b { font: var(--display-w) var(--fs-7)/1 var(--font-display); letter-spacing: var(--track2); font-variant-numeric: tabular-nums; color: var(--c, var(--label)); overflow-wrap: anywhere; }
.stat span { font-size: var(--fs-2); color: var(--label2); font-weight: 650; }
:root[data-mode="light"] .stat b { color: var(--accent); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } .stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* on a phone the figures are one slim band, so the list under them starts sooner */
@media (max-width: 759px) {
  .stats { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-4); }
  .stat { flex: 1 1 auto; min-width: 72px; padding: var(--s-2) var(--s-3); gap: 0; }
  .stat b { font-size: var(--fs-5); white-space: nowrap; }
  .stat span { font-size: var(--fs-1); white-space: nowrap; }
}
.s1 { --c: #64d2ff; } .s2 { --c: #ffd60a; } .s3 { --c: #ff9f0a; } .s4 { --c: #b48cff; }

/* ---------- paying ---------- */
.pay { display: grid; gap: var(--s-3); }
.qrbox { display: grid; place-items: center; padding: var(--s-2) 0 0; }
.qr { width: min(220px, 62vw); aspect-ratio: 1 / 1; color: var(--label); }
:root[data-mode="dark"] .qr { padding: var(--s-2); background: #fff; color: #000; }
.qr svg { width: 100%; height: 100%; display: block; }
.paysteps { display: grid; gap: var(--s-3); }
.copyrow { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.copyrow .mono { flex: 1; min-width: 0; }
.copyrow .iconbtn { flex: none; color: var(--label2); }
.steps { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: var(--s-1); }
.fig .steps { margin: var(--s-2) 0 var(--s-1); }
.steps i { height: 6px; background: var(--fill); border: 1px solid var(--sep); border-radius: min(var(--r-chip), 3px); }
.steps i.on { background: var(--accent); border-color: transparent; }
:root[data-mode="dark"] .steps i.on { background: var(--accent2); }
.steps i.now { background: color-mix(in srgb, var(--accent2) 55%, transparent); border-color: transparent; }
@media (prefers-reduced-motion: no-preference) { .steps i.now { animation: pulse 1.3s ease-in-out infinite; } }
@keyframes pulse { 50% { opacity: 0.45; } }
.say { font-size: var(--fs-3); font-weight: 650; color: var(--label2); overflow-wrap: anywhere; }
.say:empty { display: none; }
.say.bad { color: var(--bad); }
.say.good { color: var(--good); }
details.fold > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: var(--h-btn); padding: 0 var(--s-4); font-weight: 650; cursor: pointer; list-style: none; }
details.fold > summary::-webkit-details-marker { display: none; }
/* a closed fold draws nothing; saying so keeps layout checks honest */
details:not([open]) > :not(summary) { display: none !important; }
details.fold > summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--label2); border-bottom: 2px solid var(--label2); transform: rotate(45deg) translateY(-3px); }
details.fold[open] > summary::after { transform: rotate(225deg) translateY(-3px); }
details.fold > div { padding: 0 var(--s-4) var(--s-4); display: grid; gap: var(--s-3); }
/* a fold that holds a form: the fields bring their own space */
details.fold > div.fold-form { padding: 0 0 var(--s-1); gap: 0; }

/* ---------- admin ---------- */
.adm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-4); min-width: 0; }
.adm-head > div:first-child { min-width: 0; }
.adm-head h1 { font-size: var(--fs-title); overflow-wrap: anywhere; }
.adm-tabs { margin: 0 0 var(--s-4); padding: 0; border-bottom: 1px solid var(--sep); }
.adm-tabs .seg { gap: 0; }
.adm-tabs .seg a, :root[data-mode="light"] .adm-tabs .seg a { min-height: var(--h-ctl); padding: 0 var(--s-4); font-size: var(--fs-3); background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--label2); }
.adm-tabs .seg a.on, :root[data-mode="light"] .adm-tabs .seg a.on { background: none; color: var(--label); border-bottom-color: var(--accent); }
@media (max-width: 359px) { .adm-tabs .seg a, :root[data-mode="light"] .adm-tabs .seg a { padding: 0 var(--s-3); } }
.empty { padding: var(--s-6) var(--s-4); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-3); color: var(--label2); font-weight: 650; text-align: center; }
.thumb { flex: none; width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden; background: var(--well); color: var(--accent); border-radius: min(var(--r-well), 12px); }
:root[data-mode="dark"] .thumb { color: var(--accent2); }
.thumb.lg { width: 72px; height: 72px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb svg { width: 24px; height: 24px; }
.swatches { display: flex; flex-wrap: wrap; gap: var(--s-2); padding: var(--s-2) 0 0; }
.swatches button { width: var(--h-ctl); height: var(--h-ctl); border: 2px solid transparent; border-radius: min(var(--r-btn), 12px); background: var(--c); box-shadow: inset 0 0 0 1px var(--edge); }
.swatches button.on { border-color: var(--label); box-shadow: inset 0 0 0 2px var(--bg); }
.swatches label { position: relative; width: var(--h-ctl); height: var(--h-ctl); display: grid; place-items: center; border: 1px dashed var(--edge); border-radius: min(var(--r-btn), 12px); color: var(--label2); cursor: pointer; overflow: hidden; }
.swatches label input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.swatches label svg { width: 20px; height: 20px; }
.preview { padding: var(--s-4); display: grid; gap: var(--s-3); }
.toggle { position: relative; flex: none; width: 58px; height: 36px; background: var(--fill); border: 1px solid var(--edge); border-radius: var(--r-btn); }
.toggle::before { content: ""; position: absolute; inset: -5px; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; background: var(--label2); border-radius: var(--r-btn); transition: transform 0.2s, background 0.2s; }
.toggle[aria-checked="true"] { background: color-mix(in srgb, var(--accent) 45%, transparent); border-color: var(--accent); }
:root[data-mode="light"] .toggle[aria-checked="true"] { background: var(--accent); }
.toggle[aria-checked="true"]::after { transform: translateX(22px); background: #fff; }
.toggle:disabled { opacity: 0.45; }
.two { display: grid; gap: var(--s-4); }
.two > div { min-width: 0; }
@media (min-width: 900px) { .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: var(--s-5); } }
.col { display: grid; gap: var(--s-3); align-content: start; min-width: 0; }
/* a page with a main part and a side part: side by side on a computer, one under the other on a phone */
.split { display: grid; gap: var(--s-3); min-width: 0; }
.split > * { min-width: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; gap: var(--s-5); }
  .split > .side { position: sticky; top: 88px; }
}
.stackgap.tight { gap: var(--s-2); }
.stackgap.loose { gap: var(--s-4); }
/* a head inside a sheet sits close to what it names */
.sheet-body > .sech { margin: var(--s-2) 0 0; }
/* a head inside a stack: the stack's gap is the space under it */
.stackgap > .sech, .col > .sech { margin: calc(var(--s-6) - var(--s-3)) 0 0; }
.stackgap > .sech.first, .stackgap > .sech:first-child, .col > .sech.first, .col > .sech:first-child { margin-top: 0; }
.mid { max-width: 960px; }
.pre { white-space: pre-line; }
.nowrap { white-space: nowrap; }
.wrapany { overflow-wrap: anywhere; }
.center { text-align: center; }
.strong { font-weight: 650; }
.grid > .empty { grid-column: 1 / -1; }
.form-foot { padding: 0 var(--s-4) var(--s-4); }
.btns.fill { flex-wrap: nowrap; }
.btns.fill > .btn { flex: 1; min-width: 0; }
.btns.center { justify-content: center; }
.empty.tall { flex-direction: column; padding: 48px var(--s-4); }
.flat { box-shadow: none; }
.field input[type="color"] { height: 32px; padding: 0; cursor: pointer; }
.field .val { padding: 2px 0; }
[data-markprev] { min-width: 0; flex: 1 1 180px; }
.thumb.wide { width: 72px; }
.qr.small { width: 160px; }
.preview h3 { font-size: var(--fs-6); }
/* a plain box: the one padding every card uses */
.box { padding: var(--s-4); display: grid; gap: var(--s-3); min-width: 0; }
.box.tight { gap: var(--s-2); }
/* a box with a short title of its own (the Credits page) */
.box > h3 { font-size: var(--fs-4); line-height: 1.15; }
.picrow { padding: var(--s-4); display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
/* space above a thing that follows a card, where no stack gives it */
.mt { margin-top: var(--s-3); }
.mt-s { margin-top: var(--s-2); }
.mb { margin-bottom: var(--s-3); }
/* a table that turns into stacked rows on a phone */
.tbl { display: grid; }
.tbl .tr { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 110px 96px; gap: var(--s-3); align-items: center; padding: var(--s-3) var(--s-4); min-height: 56px; }
.tbl.p4 .tr { grid-template-columns: minmax(0, 1fr) 96px 96px 96px; }
.tbl .tr + .tr::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--sep); }
.tbl .th { min-height: var(--h-ctl); font-size: var(--fs-1); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--label2); }
.tbl .tr b { font: 650 var(--fs-3)/1.3 var(--font-body); overflow-wrap: anywhere; }
.tbl .tr small { display: block; font-size: var(--fs-2); color: var(--label2); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; }
.tbl input { width: 100%; min-width: 0; height: var(--h-ctl); padding: 0 var(--s-2); font-size: var(--fs-3); text-align: right; color: var(--label); background: var(--fill); border: 1px solid var(--edge); border-radius: min(var(--r-field), 12px); outline: none; }
.tbl input:focus { border-color: var(--accent); }
@media (max-width: 519px) {
  .tbl .th { font-size: var(--fs-1); letter-spacing: 0.02em; }
  /* on a phone a product's name gets the full width, and what is typed sits under it in two columns */
  .tbl .tr { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: var(--s-3); }
  .tbl:not(.p4) .tr > :first-child { grid-column: 1 / -1; }
  .tbl:not(.p4) .th > :first-child { display: none; }
  .tbl:not(.p4) .th .num, .tbl:not(.p4) input { text-align: left; }
  .tbl.p4 .tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tbl.p4 .tr > :first-child { grid-column: 1 / -1; }
  .tbl.p4 .th > :first-child { display: none; }
  .tbl.p4 .tr .num { text-align: left; }
  .tbl.p4 .tr .num::before { content: attr(data-h); display: block; font-size: var(--fs-1); font-weight: 650; color: var(--label2); }
  .tbl.p4 .th { display: none; }
}
.savebar { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin-top: var(--s-4); }
.savebar .link { margin-left: auto; }
.note { padding: var(--s-4); display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; font-weight: 650; }
.note .txt { flex: 1; min-width: 180px; }
.note p { font-weight: 400; font-size: var(--fs-2); color: var(--label2); }
textarea.paste { display: block; width: 100%; min-height: 150px; padding: var(--s-3) var(--s-4); font: var(--fs-2)/1.4 "IBM Plex Mono", ui-monospace, Menlo, monospace; color: var(--label); background: var(--fill); border: 1px solid var(--edge); border-radius: var(--r-field); outline: none; resize: vertical; }
textarea.paste:focus { border-color: var(--accent); }

/* ---------- Pepsite's home: the store builder (app/build.js) ----------
   On a phone the sample store sits on top and stays in view while the choices scroll under it; on a wide screen the
   choices are on the left and the store stays in view on the right. */
.wrap.full, :root.wide .top .wrap { max-width: 1440px; }
.bld-h1 { order: -2; font-size: var(--fs-title); overflow-wrap: anywhere; }
.bld { display: flex; flex-direction: column; gap: var(--s-3); margin-bottom: var(--s-6); }
/* on a phone the side's two parts (headline, steps) take their places around the sample store */
.bld-side { display: contents; }
.bld-panel { display: grid; gap: var(--s-3); align-content: start; min-width: 0; }
/* the steps: a bar and a word each; the one in use is bright, the ones before it are filled */
.bld-steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--s-2); }
.bld-steps button { display: grid; gap: var(--s-2); align-content: start; min-height: var(--h-ctl); padding: var(--s-1) 0; font-size: var(--fs-2); font-weight: 650; color: var(--label2); }
.bld-steps i { display: block; height: 6px; background: var(--fill); border: 1px solid var(--sep); border-radius: min(var(--r-chip), 3px); }
.bld-steps .done i { background: color-mix(in srgb, var(--accent) 42%, transparent); border-color: transparent; }
.bld-steps .on { color: var(--label); }
.bld-steps .on i { background: var(--accent); border-color: transparent; }
:root[data-mode="dark"] .bld-steps .on i { background: var(--accent2); }
.bld-pane { display: grid; gap: var(--s-3); min-width: 0; }
.bld-nav { display: flex; gap: var(--s-3); }
.bld-nav .btn { flex: 1 1 0; min-width: 0; }
.bld-reset { display: flex; justify-content: center; }
/* the part of the sample store that the field in use changes */
:root[data-spot="mark"] .brand, :root[data-spot="eyebrow"] .hero .kicker, :root[data-spot="headline"] .hero h1, :root[data-spot="headline2"] .hero h1 em, :root[data-spot="sub"] .hero .lead { outline: 2px dashed currentColor; outline-offset: var(--s-1); border-radius: 4px; }
:root[data-spot="strip"] .strip { outline: 2px dashed currentColor; outline-offset: -4px; }
:root[data-spot="feed"] [data-part="feed"] h2 { outline: 2px dashed currentColor; outline-offset: var(--s-1); border-radius: 4px; }
.bld-stage { order: -1; display: grid; gap: var(--s-2); min-width: 0; }
.bld-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); min-width: 0; }
.bld-bar .seg { flex-wrap: nowrap; }
.bld-bar .seg button svg { width: 20px; height: 20px; }
.bld-bar .seg button:has(> svg) { padding: 0 var(--s-3); }
.bld-big { display: none; margin-left: auto; }
@media (min-width: 760px) { .bld-big { display: inline-flex; } }
.bld-box { position: relative; height: clamp(180px, 30vh, 380px); overflow: hidden; display: flex; justify-content: center; align-items: flex-start; }
.bld-dev { flex: none; overflow: hidden; border: 1px solid var(--edge); border-radius: 10px; background: #fff; box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22); }
.bld-dev.phone { border-radius: 24px; }
.bld-dev iframe { display: block; border: 0; transform-origin: 0 0; background: #fff; }
.bld-dot { flex: none; width: 24px; height: 24px; background: var(--c); border-radius: min(var(--r-btn), 8px); box-shadow: inset 0 0 0 1px var(--edge); }
.bld-made { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-1); }
.bld-made .bld-dot { width: 16px; height: 16px; }
.facts.four { margin-bottom: var(--s-2); }
@media (min-width: 760px) { .facts.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 999px) {
  .bld-stage { position: sticky; top: 64px; z-index: 6; padding: var(--s-3) var(--s-4); margin: 0 calc(var(--s-4) * -1); background: var(--top-bg); border-bottom: 1px solid var(--sep); -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%); }
  :root[data-header="float"] .bld-stage { top: 76px; }
  /* while someone types, the store steps back to its place so it never covers the field */
  .bld:has(.bld-panel input:not([type="color"]):not([type="file"]):focus, .bld-panel textarea:focus) .bld-stage { position: relative; top: auto; }
}
@media (min-width: 1000px) {
  .bld { display: grid; grid-template-columns: minmax(330px, 400px) minmax(0, 1fr); align-items: start; gap: var(--s-5); }
  .bld-side { display: grid; gap: var(--s-4); align-content: start; min-width: 0; }
  .bld-h1 { order: 0; }
  .bld-stage { order: 0; position: sticky; top: 80px; }
  /* the whole store fits the window from the start, so nothing at its bottom edge is cut off */
  .bld-box { height: calc(100vh - 176px); min-height: 480px; }
}

/* ---------- sheets ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(4, 3, 8, 0.55); }
:root[data-mode="light"] .sheet-wrap { background: color-mix(in srgb, var(--label) 30%, transparent); }
.sheet { width: 100%; max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column; background: var(--surface-strong); border-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-2) var(--s-2) var(--s-4); flex: none; }
.sheet-head b { font: var(--title-w) var(--fs-5)/1.15 var(--font-display); letter-spacing: var(--track2); min-width: 0; overflow-wrap: anywhere; }
.sheet-head .x { display: grid; place-items: center; width: var(--h-ctl); height: var(--h-ctl); flex: none; color: var(--label2); }
.sheet-head .x svg { width: 24px; height: 24px; }
.sheet-body { padding: var(--s-1) var(--s-4) calc(env(safe-area-inset-bottom, 0px) + var(--s-5)); overflow-y: auto; display: grid; grid-auto-rows: max-content; gap: var(--s-3); align-content: start; min-width: 0; }
.sheet-body > * { min-width: 0; }
@media (min-width: 760px) {
  .sheet-wrap { align-items: center; padding: 24px; }
  .sheet { max-width: 580px; max-height: 88vh; border-bottom: 1px solid var(--edge); border-radius: var(--r-card); }
  .sheet.wide { max-width: 780px; }
}

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); z-index: 90; transform: translate(-50%, 20px); opacity: 0; visibility: hidden; pointer-events: none; width: max-content; max-width: calc(100% - 32px); padding: var(--s-3) var(--s-4); font-weight: 650; font-size: var(--fs-3); text-align: center; color: var(--label); background: var(--surface-strong); border: 1px solid var(--edge); border-radius: min(var(--r-btn), 26px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22); transition: opacity 0.2s, transform 0.2s, visibility 0.2s; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast.tap { display: flex; align-items: center; gap: var(--s-4); }
.toast.tap.show { pointer-events: auto; }
.toast.tap a { min-height: 32px; text-decoration: underline; text-underline-offset: 3px; }
.toast.bad { color: var(--bad); }
@media (min-width: 760px) { .toast { bottom: 28px; } }

/* ---------- a closed store ---------- */
.closed { min-height: 56vh; display: grid; place-items: center; text-align: center; }
.closed > div { display: grid; gap: var(--s-4); justify-items: center; max-width: 440px; }
.closed h1 { font-size: var(--fs-7); }

/* ---------- foot ---------- */
.foot { margin-top: 48px; padding: var(--s-5) 0 var(--s-2); border-top: 1px solid var(--sep); display: grid; gap: var(--s-2); font-size: var(--fs-2); color: var(--label2); line-height: 1.45; }
.foot b { color: var(--label); font-weight: 650; }
.foot .link { min-height: 0; }
.footnav { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }

/* ---------- the store's own words (server/site.js): its pages, and the home page's words and questions ---------- */
.prose { display: grid; gap: var(--s-3); min-width: 0; font-size: var(--fs-3); line-height: 1.6; overflow-wrap: anywhere; }
.prose h2 { font-size: var(--fs-5); margin-top: var(--s-2); }
.prose ul { margin: 0; padding-left: var(--s-5); display: grid; gap: var(--s-1); }
.prose p, .prose li { color: var(--label2); }
.pagehead { margin: 0 0 var(--s-4); min-width: 0; }
.pagehead h1 { font-size: var(--fs-title); overflow-wrap: anywhere; }
.prose.page { padding: var(--s-5) var(--s-4); }
@media (min-width: 760px) { .prose.page { padding: var(--s-6); font-size: var(--fs-4); } }
/* a words part: a picture beside the words on a wide screen, above them on a phone */
.words { display: grid; gap: var(--s-4); padding: var(--s-4); min-width: 0; }
.words .wpic { overflow: hidden; border-radius: var(--r-well); aspect-ratio: 16 / 10; background: var(--well); }
.words .wpic img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 760px) {
  .words { padding: var(--s-5); }
  .words.withpic { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s-6); align-items: center; }
  .words.withpic .wpic { aspect-ratio: 4 / 3; }
}
/* questions: the answer behind a tap */
.faq .qa { position: relative; }
.faq .qa + .qa::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--sep); }
.faq .qa > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 56px; padding: var(--s-3) var(--s-4); font-weight: 650; font-size: var(--fs-3); line-height: 1.35; cursor: pointer; list-style: none; }
.faq .qa > summary::-webkit-details-marker { display: none; }
.faq .qa > summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--label2); border-bottom: 2px solid var(--label2); transform: rotate(45deg) translateY(-3px); }
.faq .qa[open] > summary::after { transform: rotate(225deg) translateY(-3px); }
.faq .qa > .prose { padding: 0 var(--s-4) var(--s-4); }
/* the four facts, when the store moved them out of the head */
.facts.part { margin-top: var(--s-6); }
@media (min-width: 760px) { .facts.part { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* a page in the top menu: on computers only, and a long title is cut short */
.nav a.pg { display: none; }
.nav a.pg span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 16ch; }
@media (min-width: 1024px) { .nav a.pg { display: inline-flex; } }
/* Admin, Pages: a part's or a page's buttons, at the end of its row (under it on a phone) */
.ctl { display: flex; align-items: center; justify-content: flex-end; gap: var(--s-2); flex: none; margin-left: auto; }
.ctl .iconbtn:disabled { opacity: 0.3; }
.ctl .iconbtn svg { width: 20px; height: 20px; }
/* Admin, Settings, Pay buttons: each button's own mark, in a tile wide enough for Apple's and Google's */
.tile.pwmark { width: 40px; }
.pwmark .mk { display: block; width: 24px; height: 24px; }
.pwmark .mk-apple { width: 38px; height: auto; }
.pwmark .mk-gpay { width: 52px; height: auto; margin: -8px -6px; }
.qaedit { display: grid; gap: 0; }
.qaedit + .qaedit { border-top: 1px solid var(--sep); }

/* ---------- the news site (app/news.js): articles, codes and podcasts, in the store's look ---------- */
.nhead { display: grid; gap: var(--s-3); margin: 0 0 var(--s-5); min-width: 0; }
.nhead h1 { font-size: var(--fs-hero); max-width: 820px; overflow-wrap: anywhere; }
/* a cover for an article with no picture: a soft color for its subject, with a mark */
.art { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; color: var(--c, var(--accent)); background: radial-gradient(120% 130% at 15% 0%, color-mix(in srgb, var(--c, var(--accent)) 30%, transparent), color-mix(in srgb, var(--c, var(--accent)) 9%, transparent)); border-radius: var(--r-well); }
.art svg { width: 48px; height: 48px; }
.art img { width: 100%; height: 100%; object-fit: cover; }
.art.big svg, .art.wide svg { width: 64px; height: 64px; }
.a-walk { --c: #25a84a; } .a-sleep { --c: #7d7aff; } .a-food { --c: #f08c00; } .a-exercise { --c: #f0473a; } .a-mind { --c: #f0559a; } .a-sun { --c: #dca400; } .a-science { --c: #2a9fd8; } .a-vial { --c: var(--accent); }
:root[data-mode="dark"] .a-vial { --c: var(--accent2); }
.ngrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: var(--s-3); }
.ncard, .nfeat { min-width: 0; padding: var(--s-3); overflow: hidden; text-decoration: none; color: inherit; }
.ncard { display: flex; flex-direction: column; }
.ncard:hover, .nfeat:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.ncard .body, .nfeat .body { display: grid; gap: var(--s-2); padding: var(--s-3) var(--s-1) var(--s-1); align-content: start; min-width: 0; }
.ncard .eyebrow, .nfeat .eyebrow { display: block; }
.ncard h3 { font-size: var(--fs-4); line-height: 1.15; overflow-wrap: anywhere; }
.ncard .sum, .nfeat .sum { font-size: var(--fs-2); color: var(--label2); }
.ncard small, .nfeat small { font-size: var(--fs-1); font-weight: 650; color: var(--label2); }
/* on a phone an article is a short row: a small cover, then its title, so a long list stays short */
@media (max-width: 519px) {
  .ngrid { gap: var(--s-2); }
  .ngrid .ncard { flex-direction: row; align-items: center; gap: var(--s-3); padding: var(--s-2); }
  .ngrid .ncard .art { flex: none; width: 88px; aspect-ratio: 1 / 1; }
  .ngrid .ncard .art svg { width: 32px; height: 32px; }
  .ngrid .ncard .body { flex: 1; padding: 0 var(--s-1) 0 0; gap: var(--s-1); }
  .ngrid .ncard h3 { font-size: var(--fs-3); }
  .ngrid .ncard .sum { display: none; }
}
.nfeat { display: grid; margin-bottom: var(--s-3); }
.nfeat h2 { font-size: var(--fs-6); line-height: 1.15; overflow-wrap: anywhere; }
@media (min-width: 760px) {
  .nfeat { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: var(--s-3); }
  .nfeat .body { padding: var(--s-3) var(--s-5); gap: var(--s-3); }
  .nfeat h2 { font-size: var(--fs-7); }
  .nfeat .sum { font-size: var(--fs-4); }
}
.nart { display: grid; gap: var(--s-3); margin-top: var(--s-2); min-width: 0; }
.nart h1 { font-size: var(--fs-title); overflow-wrap: anywhere; }
.nart .art.wide { aspect-ratio: 16 / 7; }
.nbody { display: grid; gap: var(--s-4); min-width: 0; font-size: var(--fs-4); line-height: 1.6; overflow-wrap: anywhere; }
.nbody h2 { font-size: var(--fs-6); margin-top: var(--s-2); }
.nbody ul { margin: 0; padding-left: var(--s-5); display: grid; gap: var(--s-2); }
.nbody .nquote { display: grid; gap: var(--s-2); margin: var(--s-2) 0; }
.nbody .nquote svg { width: 28px; height: 28px; color: var(--accent); }
:root[data-mode="dark"] .nbody .nquote svg { color: var(--accent2, var(--accent)); }
.nbody .nquote p { font: 650 var(--fs-5)/1.4 var(--font-display); color: var(--label); }
.nbody .npic { display: grid; gap: var(--s-2); margin: 0; min-width: 0; }
.nbody .npic img { display: block; width: 100%; height: auto; border-radius: var(--r-well); }
.nbody .npic figcaption { font-size: var(--fs-2); line-height: 1.4; color: var(--label2); }
.nbody .nvid { gap: var(--s-2); margin: 0; }
.ntags { margin-top: var(--s-2); }
.row .tile[class*="a-"] { color: var(--c); }
.pgrid, .vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--s-3); }
.pcard { display: grid; gap: var(--s-3); padding: var(--s-4); align-content: start; min-width: 0; }
.pcard .body, .vcard .body { display: grid; gap: var(--s-2); min-width: 0; }
.pcard h3 { font-size: var(--fs-4); overflow-wrap: anywhere; }
.pcard .deal { font-weight: 700; }
.coderow { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-width: 0; padding: var(--s-1) var(--s-1) var(--s-1) var(--s-4); background: var(--well); border: 1px dashed var(--edge); border-radius: var(--r-well); }
.coderow .mono { font-size: var(--fs-4); font-weight: 700; letter-spacing: 0.06em; }
/* ---------- news plans: a lock on what a reader cannot open yet, the plans, and a plan's code ---------- */
.lockline { display: inline-flex; align-items: center; gap: var(--s-1); min-width: 0; font-size: var(--fs-1); font-weight: 650; color: var(--label2); }
.lockline svg { flex: none; width: 16px; height: 16px; }
.planrow { margin: 0 0 var(--s-4); }
/* a locked article's first lines fade out into the plans */
.nbody.cut { -webkit-mask-image: linear-gradient(#000 50%, transparent); mask-image: linear-gradient(#000 50%, transparent); }
.paywall { display: grid; gap: var(--s-3); padding: var(--s-5) var(--s-4); justify-items: center; text-align: center; min-width: 0; }
.paywall > * { min-width: 0; max-width: 100%; }
.paywall h2 { font-size: var(--fs-6); }
.paywall > p { max-width: 520px; }
.paywall .plans, .paywall .search, .paywall .list, .paywall .err { width: 100%; text-align: left; }
.lockmark { display: grid; place-items: center; width: var(--h-ctl); height: var(--h-ctl); color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 50%; }
.lockmark svg { width: 24px; height: 24px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--s-3); }
.plan { display: grid; gap: var(--s-2); padding: var(--s-4); align-content: start; min-width: 0; }
.plan.hit { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.plan .btn, .plan .state { justify-self: start; }
.price2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s-2); min-width: 0; }
.price2 b { font: var(--display-w) var(--fs-7)/1 var(--font-display); letter-spacing: var(--track); font-variant-numeric: tabular-nums; }
.price2 span { font-size: var(--fs-2); color: var(--label2); }
/* on a phone each plan is one short row: its words, then Get */
@media (max-width: 519px) {
  .plans { gap: var(--s-2); }
  .plan { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--s-3); row-gap: var(--s-1); padding: var(--s-3) var(--s-4); }
  .plan > * { grid-column: 1; }
  .plan .btn, .plan .state { grid-column: 2; grid-row: 1 / span 3; justify-self: end; }
}
.pass .coderow .mono { font-size: var(--fs-5); }
.pfoot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: var(--h-ctl); }
.vcard { display: grid; padding: var(--s-3); align-content: start; min-width: 0; overflow: hidden; }
.vthumb { display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; overflow: hidden; border: 0; border-radius: var(--r-well); background: #000; cursor: pointer; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; }
a.vthumb { display: grid; place-items: center; }
iframe.vthumb { cursor: auto; }
.vcard .body { padding: var(--s-3) var(--s-1) var(--s-1); }
.vcard h3 { font-size: var(--fs-4); line-height: 1.15; overflow-wrap: anywhere; }
/* the news feed: a post's words sit where a video's picture would; a TikTok plays tall */
.vthumb.fpost { display: flex; flex-direction: column; justify-content: center; gap: var(--s-2); padding: var(--s-3) var(--s-4); text-align: start; text-decoration: none; color: var(--label); font: inherit; background: radial-gradient(120% 130% at 15% 0%, color-mix(in srgb, var(--accent) 26%, transparent), color-mix(in srgb, var(--accent) 8%, transparent)); }
.fpost .fmark { display: flex; color: var(--accent); }
.fpost .fmark svg { width: 22px; height: 22px; }
.fpost .fwords { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: var(--fs-3); font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
iframe.vthumb.tall { aspect-ratio: 9 / 16; }
.ncard .fclamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.row .txt .flagline { display: flex; align-items: center; gap: var(--s-1); color: var(--warn); font-weight: 650; }
.flagline svg { width: 14px; height: 14px; flex: none; }
.search .btn { flex: none; margin-right: -8px; }

/* ---------- faces, marks and places: a person has a face, a business a mark, a place a photo ----------
   A person is round and a business is square. With no picture, each shows its initials. */
.thumb > b { font: 650 var(--fs-3)/1 var(--font-body); letter-spacing: 0.02em; }
/* a promo code's share off, such as 100%, fits its square */
.thumb.pct > b { font-size: var(--fs-2); letter-spacing: 0; }
.thumb.face { border-radius: 50%; }
/* a mark keeps its own shape: no plate behind it */
.thumb.mk { background: none; border-radius: 0; }
.thumb.mk img { object-fit: contain; }
.thumb.sm { width: 24px; height: 24px; }
.thumb.md { width: 32px; height: 32px; }
.thumb.sm > b, .thumb.md > b { font-size: var(--fs-1); letter-spacing: 0; }
.thumb.lg > b { font-size: var(--fs-6); }
.thumb.has > svg, .thumb.has > b { display: none; }
/* who wrote it, or who runs a store: a small face and a name */
.byline { display: flex; align-items: center; gap: var(--s-2); min-width: 0; font-size: var(--fs-2); line-height: 1.3; color: var(--label2); }
.byline b { font-weight: 650; color: var(--label); }
.byline > span { min-width: 0; overflow-wrap: anywhere; }
.byline > svg { flex: none; width: 20px; height: 20px; }
.byline .state { flex: none; font-size: var(--fs-1); }
/* a person or a business at the top of a sheet or a page: the picture, the name, a line under it */
.whohead { display: flex; align-items: center; gap: var(--s-4); min-width: 0; padding: var(--s-4); }
.whohead .txt { flex: 1; min-width: 0; display: grid; gap: var(--s-1); justify-items: start; }
.whohead h3 { font-size: var(--fs-4); overflow-wrap: anywhere; }
.whohead p { font-size: var(--fs-2); color: var(--label2); overflow-wrap: anywhere; }
/* reseller stores: a photo of the place, the store's mark and name, and who runs it */
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: var(--s-3); }
.rcard { display: flex; flex-direction: column; min-width: 0; padding: var(--s-3); overflow: hidden; text-decoration: none; color: inherit; }
a.rcard:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.rcard .body { display: grid; gap: var(--s-2); padding: var(--s-3) var(--s-1) var(--s-1); align-content: start; min-width: 0; }
.rcard .name { display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
.rcard h3 { min-width: 0; font-size: var(--fs-4); line-height: 1.15; overflow-wrap: anywhere; }
.rcard .place { display: flex; align-items: center; gap: var(--s-1); min-width: 0; font-size: var(--fs-2); line-height: 1.3; color: var(--label2); }
.rcard .place svg { flex: none; width: 20px; height: 20px; }
/* on a phone a reseller is a short row, like an article: a small photo, then the name */
@media (max-width: 519px) {
  .rgrid { gap: var(--s-2); }
  .rgrid .rcard { flex-direction: row; align-items: center; gap: var(--s-3); padding: var(--s-2); }
  .rgrid .rcard .art { flex: none; width: 88px; aspect-ratio: 1 / 1; }
  .rgrid .rcard .art svg { width: 32px; height: 32px; }
  .rgrid .rcard .body { flex: 1; padding: 0 var(--s-1) 0 0; gap: var(--s-1); }
  .rgrid .rcard h3 { font-size: var(--fs-3); }
}
/* a promo brand's mark sits beside its name */
.pcard .brand2 { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.pcard .brand2 > div { min-width: 0; display: grid; gap: var(--s-1); }
/* a photo at the top of a sheet */
.sheet-body > .art { aspect-ratio: 16 / 7; }

/* ---------- liquid glass: clear, like Apple's ----------
   Barely tinted, lightly blurred, with a bright rim of light along the top edge and a soft glow inside the edges.
   Soft color sits behind the page so the glass has something to bend. It comes last so it wins over the looks above. */
:root[data-glass="liquid"][data-mode="dark"] {
  --surface: linear-gradient(155deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04) 42%, rgba(255, 255, 255, 0.02) 62%, rgba(255, 255, 255, 0.07)), rgba(255, 255, 255, 0.02);
  --surface-strong: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04)), rgba(24, 22, 32, 0.8);
  --shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), inset 1px 0 0 rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(255, 255, 255, 0.08), inset 0 0 18px rgba(255, 255, 255, 0.05), 0 12px 34px rgba(0, 0, 0, 0.32);
  --blur: blur(10px) saturate(185%) brightness(1.05);
  --btn-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 62%), color-mix(in srgb, var(--accent) 80%, transparent);
  --btn-edge: color-mix(in srgb, var(--accent) 45%, rgba(255, 255, 255, 0.5));
  --btn-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -1px 0 rgba(0, 0, 0, 0.18), 0 10px 26px color-mix(in srgb, var(--accent) 30%, transparent);
  --lq-btn: inset 0 1px 0 rgba(255, 255, 255, 0.34), inset 0 -1px 0 rgba(255, 255, 255, 0.06), 0 6px 18px rgba(0, 0, 0, 0.22);
  --lq-chip: rgba(255, 255, 255, 0.06);
  --top-bg: rgba(14, 12, 20, 0.38);
  --well: rgba(255, 255, 255, 0.045);
  --lq-glow1: color-mix(in srgb, var(--accent) 38%, transparent);
  --lq-glow2: color-mix(in srgb, color-mix(in oklch, var(--accent), #19c6ff) 28%, transparent);
  --lq-glow3: color-mix(in srgb, var(--accent) 22%, transparent);
}
:root[data-glass="liquid"][data-mode="light"] {
  --surface: linear-gradient(155deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.44) 46%, rgba(255, 255, 255, 0.32) 64%, rgba(255, 255, 255, 0.56)), rgba(255, 255, 255, 0.14);
  --surface-strong: linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.82)), rgba(250, 250, 252, 0.72);
  --shadow: inset 0 1px 0 #fff, inset 1px 0 0 rgba(255, 255, 255, 0.75), inset 0 -1px 0 rgba(255, 255, 255, 0.45), inset 0 0 16px rgba(255, 255, 255, 0.6), 0 1px 2px color-mix(in srgb, var(--label) 6%, transparent), 0 12px 32px color-mix(in srgb, var(--label) 10%, transparent);
  --blur: blur(14px) saturate(180%);
  --btn-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 62%), color-mix(in srgb, var(--accent) 88%, transparent);
  --btn-edge: color-mix(in srgb, var(--accent) 60%, white);
  --btn-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(0, 0, 0, 0.1), 0 8px 22px color-mix(in srgb, var(--accent) 26%, transparent);
  --lq-btn: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(255, 255, 255, 0.5), 0 4px 14px color-mix(in srgb, var(--label) 9%, transparent);
  --lq-chip: rgba(255, 255, 255, 0.62);
  --top-bg: rgba(255, 255, 255, 0.52);
  --well: rgba(255, 255, 255, 0.5);
  --lq-glow1: color-mix(in srgb, var(--accent) 22%, transparent);
  --lq-glow2: color-mix(in srgb, color-mix(in oklch, var(--accent), #19c6ff) 18%, transparent);
  --lq-glow3: color-mix(in srgb, var(--accent) 13%, transparent);
}
:root[data-glass="liquid"] body {
  background: radial-gradient(42% 34% at 8% 4%, var(--lq-glow1), transparent 70%), radial-gradient(38% 32% at 96% 22%, var(--lq-glow2), transparent 70%), radial-gradient(46% 38% at 55% 100%, var(--lq-glow3), transparent 72%), var(--bg);
  background-attachment: fixed;
}
:root[data-glass="liquid"] .glass { -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
:root[data-glass="liquid"] .sheet { -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%); }
:root[data-glass="liquid"] .toast { -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: var(--shadow); }
:root[data-glass="liquid"] .top .bar { -webkit-backdrop-filter: blur(16px) saturate(190%); backdrop-filter: blur(16px) saturate(190%); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.07); }
:root[data-glass="liquid"][data-header="float"] .top .bar { box-shadow: var(--shadow); }
:root[data-glass="liquid"] .tabbar { -webkit-backdrop-filter: blur(16px) saturate(190%); backdrop-filter: blur(16px) saturate(190%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16); }
/* on a phone the tab bar floats above the bottom edge, as on an iPhone */
@media (max-width: 759px) {
  :root[data-glass="liquid"] .tabbar { left: var(--s-2); right: var(--s-2); bottom: calc(env(safe-area-inset-bottom, 0px) + var(--s-2)); padding: var(--s-1) var(--s-2); border: 1px solid var(--edge); border-radius: min(var(--r-card), 30px); box-shadow: var(--shadow); }
}
:root[data-glass="liquid"] .btn { -webkit-backdrop-filter: blur(12px) saturate(180%); backdrop-filter: blur(12px) saturate(180%); }
:root[data-glass="liquid"] .btn.plain { box-shadow: var(--lq-btn); }
:root[data-glass="liquid"] .btn.bad { box-shadow: var(--lq-btn); }
:root[data-glass="liquid"] .seg button, :root[data-glass="liquid"] .seg a { background: var(--lq-chip); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14); }
:root[data-glass="liquid"] .seg button.on, :root[data-glass="liquid"] .seg a.on { background: color-mix(in srgb, var(--accent) 20%, transparent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); }
:root[data-glass="liquid"] .prod .pic { background: var(--surface); }
:root[data-glass="liquid"][data-hero="panel"] .hero { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 -26px 50px -34px rgba(255, 255, 255, 0.28), 0 18px 40px color-mix(in srgb, var(--accent) 16%, transparent); }
/* someone who asked their device for less see through gets solid panels */
@media (prefers-reduced-transparency: reduce) {
  :root[data-glass="liquid"][data-mode="dark"] { --surface: #15131c; --surface-strong: #1b1823; --top-bg: var(--bg); }
  :root[data-glass="liquid"][data-mode="light"] { --surface: #fff; --surface-strong: #fff; --top-bg: #fff; }
  :root[data-glass="liquid"] .glass, :root[data-glass="liquid"] .btn, :root[data-glass="liquid"] .top .bar, :root[data-glass="liquid"] .tabbar, :root[data-glass="liquid"] .toast { -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
/* a printed order: just the order, black on white */
@media print {
  :root { --label: #000 !important; --label2: #333 !important; --edge: #999 !important; --sep: #ccc !important; --surface: #fff !important; --shadow: none !important; --accent2: #000 !important; }
  .top, .tabbar, .toast, .strip, .btns, .view > .wrap > a.link, #layer { display: none !important; }
  html, body { background: #fff !important; }
  .glass { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  #app { padding: 0 !important; }
}

/* ---------- paying: a news plan's pay page (news.js getPlan), check out and an order's page (shop.js). The pay
   buttons first (card.js cardRows, pay.js cryptoPay); Debit or credit opens Stripe's fields (card.js) and Pay ---------- */
.pp-check { color: var(--accent); visibility: hidden; }
:root[data-mode="dark"] .pp-check { color: var(--accent2); }
.pp-plans .row[aria-checked="true"] .pp-check { visibility: visible; }
.pp-plans .row[aria-checked="true"] h3 { color: var(--accent); }
:root[data-mode="dark"] .pp-plans .row[aria-checked="true"] h3 { color: var(--accent2); }
.pp-wallet.none { height: 0; overflow: hidden; visibility: hidden; }
/* The pay buttons in one column, the same gap between each. Dusty, 2026-11-16: "debit or credit, Apple Pay logo button,
   Android pay logo button, coinbase logo coinbase pay button, circle logo circle pay, and crypto pay". Stripe's own
   Apple Pay and Google Pay buttons sit in the wallet box; while it has none it is out of the column (no room, no gap),
   still as wide, so Stripe can draw into it. A plain row waiting to hear from Stripe keeps its room, unseen. The gap
   is Stripe's own between its two buttons (8px), so every row is the same space apart. */
.payways { position: relative; display: grid; gap: var(--s-2); }
/* each row in the store's order (pay.js payWays sets --o; card.js walletRows moves Stripe's box to its wallet's place) */
.payways > * { order: var(--o, 0); }
.payways .paycrypto { gap: var(--s-2); }
.payways > .pp-wallet.none { position: absolute; left: 0; right: 0; }
.payway.wait { visibility: hidden; }
.payway .mk { display: block; flex: none; }
.payway .mk-apple { width: auto; height: 24px; }
/* Google's mark has its clear space inside the file: drawn taller, so the mark itself is as tall as Apple's */
.payway .mk-gpay { width: auto; height: 44px; margin: -10px -6px; }
.paywith { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); font-size: var(--fs-2); line-height: 1.45; color: var(--label2); }
.paywith .mk { width: 24px; height: 24px; flex: none; }
.pp-test { margin-top: var(--s-3); }
.pp-card { padding: var(--s-4); }
/* room for Stripe's card fields before they load, so nothing below them moves when they come in (narrow screens
   stack the date and the code) */
.pp-fields { min-height: 381px; }
@media (max-width: 389px) { .pp-fields { min-height: 458px; } }
/* a box loaded while out of sight (the sign up's pay sheet) drops that room once Stripe's fields are in */
.pp-fields.fit:has(> .in) { min-height: 0; }
.pp-fine { font-size: var(--fs-2); line-height: 1.45; color: var(--label2); overflow-wrap: anywhere; }
.pp-card .pp-fine { margin-top: var(--s-3); }
/* Coinbase Pay, Circle Pay, then Crypto Pay with its coins in a row under it (pay.js cryptoPay), as on Play With Me Predict */
.paycrypto { display: grid; gap: var(--s-4); }
.paycrypto[hidden] { display: none; }
.payopt { display: grid; gap: var(--s-2); }
.paycoins { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.paycoins .coin { width: 24px; height: 24px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.paycoins .coin img { width: 100%; height: 100%; display: block; }
.paycoins .coin.sol { background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.paycoins .coin.eth, .paycoins .coin.usdt { background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.paycoins .coin.usdt img { width: 76%; height: 76%; }
/* check out: Apple Pay and Google Pay wait for the address. Until then they are faded and take no taps; a tap on
   them says what is missing. */
.pp-wallet.veiled { cursor: pointer; }
.pp-wallet.veiled > * { opacity: 0.45; pointer-events: none; }
