/* Club Mocha's panel (v1.25): liquid glass on warm porcelain. Espresso, crema and caramel come from the brand kit; the
   business's own colors (--p-brand, --p-brand-ink, --p-accent, set in panel/_head) dress the primary actions. Outfit and
   DM Mono are served by the core (the CSP loads no fonts from outside). Everything here is used by a view or a script. */
@font-face { font-family: "Outfit"; font-weight: 400; src: url("outfit-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Outfit"; font-weight: 600; src: url("outfit-latin-600-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Outfit"; font-weight: 800; src: url("outfit-latin-800-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "DM Mono"; font-weight: 500; src: url("dm-mono-latin-500-normal.woff2") format("woff2"); font-display: swap; }

:root {
  --club-espresso: #17120f;
  --club-cream: #f5eee4;
  --club-caramel: #c8966a;
  --club-caramel-deep: #a46e3f;
  --club-mocha: #7a5541;
  --p-bg: #f3efe9;
  --p-bg-deep: #ebe5dd;
  --p-surface: rgb(255 255 255 / .66);
  --p-surface-strong: rgb(255 255 255 / .84);
  --p-solid: #fff;
  --p-ink: #1c1613;
  --p-muted: #6f635a;
  --p-faint: #a69a90;
  --p-line: rgb(28 22 19 / .09);
  --p-line-strong: rgb(28 22 19 / .16);
  --p-brand: #17120f;
  --p-brand-ink: #f5eee4;
  --p-brand-text: #17120f;
  --p-accent: #c8966a;
  --p-accent-ink: #4a2d16;
  --p-ok: #1f6b45; --p-ok-bg: #e4f3ea;
  --p-bad: #b3261e; --p-bad-bg: #fdebe9;
  --p-warn: #845309; --p-warn-bg: #fbf0da;
  --p-info: #2f5fb3; --p-info-bg: #e8eefb;
  --p-radius: 18px;
  --p-radius-sm: 12px;
  --p-side: 256px;
  --p-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --p-display: "Outfit", -apple-system, "SF Pro Display", "Segoe UI", sans-serif;
  --p-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --glass-blur: 22px;
  --glass-edge: inset 0 1px 0 rgb(255 255 255 / .8);
  --glass-shadow: 0 1px 2px rgb(28 22 19 / .04), 0 18px 40px -26px rgb(28 22 19 / .28);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.3, .64, 1);
  --ch-apple: #e5e5ea; --ch-apple-line: #a1a1a8; --ch-google: #4285f4; --ch-web: #c8966a; --ch-both: #1d9a8a;
  --viz-1: #2f6fd0; --viz-2: #d08a3e; --viz-0: #c9c0b4; --viz-seq: #2f6fd0; --viz-seq-0: #edf2fb; --viz-grid: rgb(28 22 19 / .08); --viz-up: #1f6b45; --viz-down: #b3261e;
}
.seg--new { --seg: #3b7dd8; } .seg--loyal { --seg: #2f8a5b; } .seg--regular { --seg: #6c8a96; } .seg--late { --seg: #d08a1e; }
.seg--asleep { --seg: #c45a3c; } .seg--once { --seg: #8a6fb0; } .seg--lost { --seg: #9aa3a8; } .seg--none { --seg: #c9d0d4; }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { position: relative; min-height: 100dvh; background: var(--p-bg); color: var(--p-ink); font: 14px/1.55 var(--p-font); -webkit-font-smoothing: antialiased; }
/* The liquid: two soft pools of caramel and milk drifting under every glass surface. Paused when the tab hides (panel.js). */
body::before, body::after { content: ''; position: fixed; z-index: -1; inset: -20%; pointer-events: none; will-change: transform; }
body::before { background: radial-gradient(42% 38% at 18% 22%, rgb(200 150 106 / .38), transparent 70%), radial-gradient(36% 34% at 84% 14%, rgb(255 255 255 / .9), transparent 72%), radial-gradient(40% 40% at 72% 84%, rgb(122 85 65 / .16), transparent 70%); animation: drift-a 34s ease-in-out infinite alternate; }
body::after { background: radial-gradient(30% 30% at 64% 40%, rgb(214 196 176 / .55), transparent 70%), radial-gradient(28% 26% at 28% 78%, rgb(200 150 106 / .22), transparent 70%); animation: drift-b 46s ease-in-out infinite alternate; }
@keyframes drift-a { from { transform: translate3d(-3%, -2%, 0) scale(1); } to { transform: translate3d(4%, 5%, 0) scale(1.08); } }
@keyframes drift-b { from { transform: translate3d(3%, 4%, 0) rotate(0deg); } to { transform: translate3d(-4%, -3%, 0) rotate(6deg); } }
html.is-hidden body::before, html.is-hidden body::after { animation-play-state: paused; }
a { color: var(--p-ink); text-decoration-color: color-mix(in srgb, var(--p-accent) 70%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: text-decoration-color .15s; }
a:hover { text-decoration-color: var(--p-accent-ink); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button, a, input, select { touch-action: manipulation; }
h1, h2, h3 { font-family: var(--p-display); line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
p { overflow-wrap: anywhere; }
small { font-size: 12px; color: var(--p-muted); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--p-accent) 70%, transparent); outline-offset: 3px; border-radius: 4px; }
.icon { flex: 0 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* v1.46: clipped, not moved above the viewport (iOS showed it on a pull-down); only the keyboard brings it in. */
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; }
.skip-link:focus-visible { width: auto; height: auto; padding: 12px 20px; overflow: visible; clip-path: none; white-space: normal; opacity: 1; background: var(--p-solid); border: 2px solid var(--p-brand); border-radius: 12px; }
.eyebrow { font-family: var(--p-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--p-muted); margin: 0; font-weight: 500; }
.eyebrow small { font-family: var(--p-font); text-transform: none; letter-spacing: 0; font-weight: 400; }
.section-title { font-size: 17px; font-weight: 600; margin: 0 0 4px; }
.section-title small { margin-left: 8px; font-family: var(--p-font); font-weight: 400; letter-spacing: 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.section-head--icon { justify-content: flex-start; align-items: flex-start; flex-wrap: nowrap; gap: 14px; }
.section-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: color-mix(in srgb, var(--p-brand) 9%, white); color: var(--p-brand-text); box-shadow: var(--glass-edge); }
.section-icon .icon { width: 21px; height: 21px; flex: none; }
.section-lead { margin: -8px 0 0; font-size: 13px; color: var(--p-muted); max-width: 70ch; }
.section-lead--flush { margin: 4px 0 0; }
.switch + .section-lead { margin-top: 8px; }
.section-lead + .section-lead { margin-top: 8px; }
.section-note { margin: 0; font-size: 12.5px; color: var(--p-muted); }
.empty { color: var(--p-muted); margin: 0; padding: 24px 0; max-width: 60ch; }
.mono { font-family: var(--p-mono); font-size: .94em; letter-spacing: .02em; }
.muted { color: var(--p-muted); }

/* Glass: one recipe, three weights. Bigger surfaces read thicker. */
.glass, .card, .side, .savebar, .actions--sticky, .confirm, .busy__card, .dash-todo, .club-nav, .cl-period, .pay-nav, .pay-period, .stat-chip, .notice { background: var(--p-surface); box-shadow: var(--glass-edge), var(--glass-shadow); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%); backdrop-filter: blur(var(--glass-blur)) saturate(160%); }
@media (prefers-reduced-transparency: reduce) {
  :root { --p-surface: #fff; --p-surface-strong: #fff; }
  .glass, .card, .side, .savebar, .actions--sticky, .confirm, .busy__card, .dash-todo, .club-nav, .cl-period, .pay-nav, .pay-period, .stat-chip, .notice { -webkit-backdrop-filter: none; backdrop-filter: none; border: 1px solid var(--p-line); }
  body::before, body::after { display: none; }
}

/* Shell */
.shell { display: grid; grid-template-columns: var(--p-side) minmax(0, 1fr); min-height: 100dvh; }
.side { position: sticky; top: 12px; height: calc(100dvh - 24px); margin: 12px 0 12px 12px; padding: 24px 14px 18px; display: flex; flex-direction: column; gap: 18px; border-radius: 24px; overflow-y: auto; scrollbar-width: thin; }
.side__store { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; text-decoration: none; color: var(--p-ink); padding: 4px 8px 20px; border-bottom: 1px solid var(--p-line); }
.side__logo { display: grid; place-items: center; width: 100%; height: 64px; }
.side__logo img { width: auto; height: auto; max-width: 100%; max-height: 64px; object-fit: contain; }
.side__logo.is-light { width: auto; max-width: 100%; height: auto; padding: 10px 14px; border-radius: 14px; background: #1d1a18; }
.side__logo.is-light img { max-height: 52px; }
.side__logo .store-mark { flex: none; width: 52px; height: 52px; font-size: 24px; border-radius: 16px; }
.side__store strong { display: block; font-family: var(--p-display); font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; overflow-wrap: anywhere; }
.store-mark { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 11px; font-family: var(--p-display); font-weight: 600; font-size: 20px; background: var(--p-brand); color: var(--p-brand-ink); }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { margin: 16px 12px 6px; color: var(--p-faint); font-family: var(--p-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.nav-label:first-child { margin-top: 0; }
.side nav a { position: relative; display: flex; align-items: center; gap: 11px; color: var(--p-muted); text-decoration: none; padding: 10px 12px; border-radius: 13px; min-height: 42px; font-weight: 500; transition: color .15s, background-color .15s, transform 220ms var(--ease-out); }
.side nav a .icon { transition: transform 260ms var(--ease-spring), color .15s; }
.side nav a:hover { background: rgb(255 255 255 / .5); color: var(--p-ink); }
.side nav a:hover .icon { transform: translateX(1px) scale(1.06); }
.side nav a:active { transform: scale(.985); }
.side nav a[aria-current] { color: var(--p-ink); background: var(--p-surface-strong); font-weight: 600; box-shadow: var(--glass-edge), 0 6px 18px -12px rgb(28 22 19 / .35); view-transition-name: nav-active; }
.side nav a[aria-current] .icon { color: var(--p-brand-text); }
.side nav a[aria-current]::before { content: ''; position: absolute; left: 0; top: 50%; width: 3px; height: 18px; border-radius: 99px; background: var(--p-accent); transform: translateY(-50%); }
.side nav .side__visit { margin-top: 18px; border-top: 1px solid var(--p-line); padding-top: 14px; border-radius: 0; }
.side__user { margin-top: auto; border-top: 1px solid var(--p-line); padding: 16px 4px 0; display: flex; gap: 8px; align-items: center; }
.side__user > span:nth-child(2) { min-width: 0; flex: 1; }
.side__account { display: flex; gap: 8px; align-items: center; flex: 1; min-width: 0; padding: 4px; margin: -4px; border-radius: 10px; color: inherit; text-decoration: none; }
.side__account > span:nth-child(2) { min-width: 0; flex: 1; }
.side__account:hover, .side__account[aria-current] { background: rgb(255 255 255 / .5); }
.side__user strong { display: block; overflow-wrap: anywhere; font-size: 12px; }
.side__user small { display: block; font-size: 11px; }
.user-avatar { border: 1px solid var(--p-line); background: var(--p-surface-strong); border-radius: 50%; width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.user-avatar--lg { width: 46px; height: 46px; font-size: 18px; }
.side__plaque { margin: 0; padding: 0 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.side__plaque small { font-size: 10px; letter-spacing: .03em; white-space: nowrap; color: var(--p-faint); }
.club-plaque__mark { display: inline-flex; align-items: center; }
.club-plaque__mark img { width: 84px; height: auto; display: block; opacity: .85; }
.menu-toggle { display: none; }

.main { min-width: 0; width: 100%; max-width: 1600px; margin-inline: auto; padding: 32px clamp(20px, 3vw, 52px) 24px; display: flex; flex-direction: column; gap: 22px; animation: page-in 260ms var(--ease-out) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(4px); } }
/* What a fold or a tab reveals arrives instead of snapping in; a field's error fades in next to it. */
details[open] > :not(summary) { animation: fold-in 220ms var(--ease-out) both; }
@keyframes fold-in { from { opacity: 0; transform: translateY(-4px); } }
.field-error { animation: fold-in 160ms var(--ease-out) both; }
.pv-pass:not([hidden]) { animation: material-in 240ms var(--ease-out) both; }
.main:focus { outline: none; }
.main__head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 2px; }
.page-heading { min-width: 0; }
.main__head h1 { margin: 0; font-size: clamp(28px, 2.4vw, 38px); overflow-wrap: anywhere; }
.page-description { color: var(--p-muted); margin: 8px 0 0; max-width: 66ch; font-size: 13.5px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; color: var(--p-faint); font-family: var(--p-mono); font-size: 11px; letter-spacing: .04em; margin-bottom: 14px; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--p-ink); }
.breadcrumb span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 50ch; color: var(--p-muted); }
.breadcrumb i { font-style: normal; opacity: .6; }
.main__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid var(--p-line); padding-top: 18px; margin-top: auto; font-size: 11px; color: var(--p-faint); }

/* Surfaces */
.card { --card-pad: 24px; min-width: 0; border-radius: var(--p-radius); padding: var(--card-pad); }
.card > .section-title + .form { margin-top: 20px; }
.grid { display: grid; gap: 18px; }
.grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.notice { padding: 14px 18px; border-radius: var(--p-radius-sm); margin: 0; font-size: 13px; overflow-wrap: anywhere; border: 1px solid transparent; animation: notice-in 360ms var(--ease-out) both; }
@keyframes notice-in { from { opacity: 0; transform: translateY(-6px); filter: blur(4px); } }
.notice p { margin: 4px 0 0; }
.notice--ok { color: var(--p-ok); background: color-mix(in srgb, var(--p-ok-bg) 85%, white); border-color: color-mix(in srgb, var(--p-ok) 22%, transparent); }
.notice--bad { color: var(--p-bad); background: color-mix(in srgb, var(--p-bad-bg) 85%, white); border-color: color-mix(in srgb, var(--p-bad) 22%, transparent); }
.notice--warn { color: var(--p-warn); background: color-mix(in srgb, var(--p-warn-bg) 85%, white); border-color: color-mix(in srgb, var(--p-warn) 22%, transparent); }
.notice ul { margin: 8px 0 0; padding-left: 20px; }
.notice .notice__hint { font-size: 12px; margin-top: 10px; }
.notice .notice__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.notice__actions .icon { flex: none; width: 16px; height: 16px; }
.submission-status { margin: 0; color: var(--p-muted); font-size: 13px; }
.field-error, .field > .field-error { display: block; color: var(--p-bad); font-size: 12px; font-weight: 500; margin-top: 3px; }
[aria-invalid=true] { border-color: var(--p-bad) !important; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 600; background: rgb(28 22 19 / .06); color: var(--p-muted); white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--active { background: var(--p-ok-bg); color: var(--p-ok); }
.pill--paused { background: var(--p-bad-bg); color: var(--p-bad); }
.pill--draft { background: var(--p-warn-bg); color: var(--p-warn); }
.pill--scheduled, .pill--done { background: var(--p-info-bg); color: var(--p-info); }
.pill--ended { background: rgb(28 22 19 / .06); color: var(--p-muted); }
.pill--count { background: var(--p-brand); color: var(--p-brand-ink); padding: 1px 7px; }
.pill--count::before { display: none; }
.pill .icon { width: 13px; height: 13px; flex: none; }
.pill-link { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--p-line-strong); background: rgb(255 255 255 / .5); color: var(--p-ink); text-decoration: none; font-weight: 600; font-size: 12.5px; transition: border-color .15s, background-color .15s; }
.pill-link .icon { width: 15px; height: 15px; flex: none; }
.pill-link:hover { border-color: var(--p-accent); background: var(--p-solid); }
.empty-state { display: flex; align-items: center; gap: 14px; padding: 20px; border: 1.5px dashed var(--p-line-strong); border-radius: var(--p-radius-sm); }
.empty-state p { margin: 0; font-size: 13.5px; color: var(--p-muted); max-width: 60ch; }
.empty-state b { color: var(--p-ink); }
.facts { margin: 14px 0 0; display: grid; gap: 10px; font-size: 13px; }
.facts div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
.facts dt { color: var(--p-muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.legal-text { max-width: 760px; }
.legal-text h3 { font-size: 15px; margin: 22px 0 6px; }
.legal-text p { margin: 0 0 10px; line-height: 1.55; }

/* Stat chips: the number in Outfit, counted up on load (panel.js). */
.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat-chip { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--p-radius); }
.stat-chip div { display: flex; flex-direction: column; min-width: 0; }
.stat-chip b { font-family: var(--p-display); font-weight: 800; font-size: 24px; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
/* v1.27: an amount never breaks in the middle; it shrinks with the chip instead ($1,500.00 in four chips beside the aside). */
.cl-kpis .stat-chip > div { flex: 1; min-width: 0; container-type: inline-size; }
.cl-kpis .stat-chip b { display: block; white-space: nowrap; font-size: clamp(16px, 19cqi, 24px); }
.stat-chip small { font-size: 12px; }
.stat-chip__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: rgb(28 22 19 / .05); color: var(--p-muted); flex: none; box-shadow: var(--glass-edge); }
.stat-chip__icon .icon { width: 19px; height: 19px; flex: none; }
.stat-chip__icon--ok { background: var(--p-ok-bg); color: var(--p-ok); }
.stat-chip__icon--info { background: var(--p-info-bg); color: var(--p-info); }
.stat-chip__icon--warn { background: var(--p-warn-bg); color: var(--p-warn); }
.stat-chip--link { color: inherit; text-decoration: none; transition: transform 240ms var(--ease-spring), box-shadow .2s; }
.stat-chip--link:hover { transform: translateY(-2px); box-shadow: var(--glass-edge), 0 22px 40px -24px rgb(28 22 19 / .4); }
.stat-chip--link:active { transform: scale(.98); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 20px; }
.form--row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 18px; align-items: start; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0 8px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > span, .field > label, .field > legend { font-size: 12.5px; font-weight: 600; color: var(--p-ink); }
.field > legend { padding: 0; margin-bottom: 7px; }
.field > span small { font-weight: 400; }
.field small { font-size: 12px; font-weight: 400; color: var(--p-muted); }
.field--icon > span { display: inline-flex; align-items: center; gap: 6px; }
.field--icon > span .icon { width: 15px; height: 15px; flex: none; color: var(--p-muted); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=tel], input[type=date], input[type=datetime-local], input[type=search], select, textarea {
  padding: 10px 14px; border: 1px solid var(--p-line-strong); border-radius: var(--p-radius-sm); background-color: rgb(255 255 255 / .75); color: var(--p-ink); width: 100%; min-height: 44px; transition: border-color .15s, box-shadow .2s, background-color .15s; box-shadow: var(--glass-edge);
}
input::placeholder, textarea::placeholder { color: var(--p-faint); }
input:hover, select:hover, textarea:hover { border-color: rgb(28 22 19 / .28); }
select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236f635a' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
textarea { min-height: 130px; resize: vertical; }
.field textarea[rows="2"] { min-height: 66px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--p-accent); background-color: var(--p-solid); box-shadow: 0 0 0 4px color-mix(in srgb, var(--p-accent) 28%, transparent); }
input[type=file] { width: 100%; font-size: 13px; }
input[type=file]::file-selector-button { font: inherit; border: 1px solid var(--p-line-strong); border-radius: 10px; background: var(--p-surface-strong); color: var(--p-ink); padding: 9px 12px; margin-right: 10px; cursor: pointer; }
.unit, .money { display: flex; align-items: center; border: 1px solid var(--p-line-strong); border-radius: var(--p-radius-sm); background: rgb(255 255 255 / .75); box-shadow: var(--glass-edge); transition: border-color .15s, box-shadow .2s; }
.unit input, .money input { border: 0; min-width: 0; background: transparent; box-shadow: none; }
.unit input:focus, .money input:focus { outline: none; box-shadow: none; background: transparent; }
.unit:focus-within, .money:focus-within { border-color: var(--p-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--p-accent) 28%, transparent); }
.unit i, .money i { font-style: normal; padding-right: 12px; color: var(--p-muted); font-size: 13px; }
.money i { padding-left: 12px; }
.unit--pre { padding-left: 14px; }
.unit--pre i { padding: 0; }
.unit--pre b { font-family: var(--p-mono); font-weight: 500; color: var(--p-muted); }
.unit--pre input { padding-left: 6px; }
.money:has([aria-invalid=true]), .unit:has([aria-invalid=true]) { border-color: var(--p-bad); }
.check { display: flex; align-items: center; gap: 9px; min-height: 30px; cursor: pointer; font-size: 13px; }
input[type=checkbox], input[type=radio] { flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--p-brand); cursor: pointer; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 550; }
.switch input { appearance: none; flex: none; width: 44px; height: 26px; margin: 0; border-radius: 99px; background: rgb(28 22 19 / .16); position: relative; cursor: pointer; transition: background .2s; box-shadow: inset 0 1px 2px rgb(0 0 0 / .08); }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform 280ms var(--ease-spring), width 120ms; }
.switch input:active::after { width: 24px; }
.switch input:checked { background: var(--p-ok); }
.switch input:checked::after { transform: translateX(18px); }
.switch input:checked:active::after { transform: translateX(14px); }
.switch input:focus-visible { outline: 3px solid color-mix(in srgb, var(--p-accent) 70%, transparent); outline-offset: 2px; }
.switch--small { font-size: 12px; font-weight: 550; gap: 8px; }
.switch--small input { width: 36px; height: 22px; }
.switch--small input::after { width: 16px; height: 16px; }
.switch--small input:checked::after { transform: translateX(14px); }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.options--three { grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
.option { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px; border: 1.5px solid var(--p-line); border-radius: var(--p-radius-sm); background: rgb(255 255 255 / .45); cursor: pointer; transition: border-color .15s, box-shadow .15s, background-color .15s, transform 160ms var(--ease-out); }
.option:active { transform: scale(.99); }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgb(28 22 19 / .05); color: var(--p-muted); transition: background-color .2s, color .2s, transform 300ms var(--ease-spring); }
.option__icon .icon { width: 20px; height: 20px; flex: none; }
.option__body { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.option__body small { font-size: 12.5px; line-height: 1.5; }
.option:has(input:checked) { border-color: var(--p-brand); background: var(--p-solid); box-shadow: inset 0 0 0 1px var(--p-brand); }
.option:has(input:checked) .option__icon { background: var(--p-brand); color: var(--p-brand-ink); transform: scale(1.06); }
.option:has(input:checked)::after { content: '✓'; position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--p-brand); color: var(--p-brand-ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; animation: pop-in 320ms var(--ease-spring); }
.option:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--p-accent) 70%, transparent); outline-offset: 2px; }
.options--three .option { padding: 14px; gap: 12px; grid-template-columns: 34px minmax(0, 1fr); }
.options--three .option__icon { width: 34px; height: 34px; }
.options--three .option__icon .icon { width: 17px; height: 17px; }
@keyframes pop-in { from { transform: scale(.4); opacity: 0; } }
.choice-row { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: rgb(28 22 19 / .06); }
.choice-row label { position: relative; flex: 1 1 auto; }
.choice-row input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice-row label > span { display: grid; place-items: center; min-height: 34px; padding: 6px 10px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--p-muted); text-align: center; transition: color .15s, background-color .15s, box-shadow .15s; }
.choice-row input:checked + span { background: var(--p-solid); color: var(--p-ink); box-shadow: 0 1px 4px rgb(28 22 19 / .14); }
.choice-row input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--p-accent) 70%, transparent); outline-offset: 1px; }
.choice-row--icons svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stamp-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.colors { display: flex; flex-direction: column; border: 1px solid var(--p-line); border-radius: var(--p-radius-sm); overflow: hidden; background: rgb(255 255 255 / .4); }
.color-field { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; }
.color-field + .color-field { border-top: 1px solid var(--p-line); }
.color-field__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgb(28 22 19 / .05); color: var(--p-muted); }
.color-field__icon .icon { width: 18px; height: 18px; flex: none; }
.color-field__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.color-field__text label { font-size: 13px; font-weight: 600; }
.color-field__text small { font-size: 12px; }
.color-field__inputs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.color-field__inputs input[type=color] { appearance: none; flex: 0 0 44px; width: 44px; height: 44px; padding: 3px; border: 1px solid var(--p-line-strong); border-radius: 12px; background: var(--p-solid); cursor: pointer; }
.color-field__inputs input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.color-field__inputs input[type=color]::-webkit-color-swatch { border: 0; border-radius: 8px; }
.color-field__inputs input[type=color]::-moz-color-swatch { border: 0; border-radius: 8px; }
.color-field__inputs input[type=text] { width: 110px; font-family: var(--p-mono); font-size: 13px; text-transform: lowercase; }
/* v1.49: a field's error under its inputs, never floating over them; width 0 keeps it out of the column's intrinsic size. */
.color-field__inputs .field-error { position: static; flex-basis: 100%; width: 0; min-width: 100%; margin: 0; }
.color-field > .field-error { grid-column: 2 / -1; margin: 0; }
.contrast { margin: 0; padding: 12px 16px; border-top: 1px solid var(--p-line); font-size: 12.5px; font-weight: 550; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.contrast[data-state=ok] { color: var(--p-ok); background: var(--p-ok-bg); }
.contrast[data-state=bad] { color: var(--p-warn); background: var(--p-warn-bg); }
.brand-logo { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 20px; align-items: center; }
.brand-logo__copy { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.brand-logo__copy p { margin: 0; color: var(--p-muted); font-size: 12.5px; max-width: 48ch; }
.logo-drop { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; aspect-ratio: 13 / 6; padding: 16px; border-radius: var(--p-radius-sm); border: 1.5px dashed var(--p-line-strong); cursor: pointer; overflow: hidden; background: #fff conic-gradient(#f1ece5 25%, #fff 0 50%, #f1ece5 0 75%, #fff 0) 0 0 / 18px 18px; transition: border-color .15s, box-shadow .2s; }
/* v1.49: the row is the box, so a tall logo shrinks into it instead of being cut (e2e H-02). */
.logo-drop img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-drop img.is-removed { opacity: .2; }
.logo-drop:has(img:not([hidden])) { border-style: solid; border-color: var(--p-line); }
.logo-drop.is-light { background: #1d1a18; }
.logo-drop__empty { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; color: var(--p-muted); font-size: 12px; background: rgb(255 255 255 / .85); padding: 10px 14px; border-radius: 10px; }
.logo-drop__empty .icon { width: 26px; height: 26px; flex: none; }
.logo-drop__empty b { color: var(--p-ink); font-size: 13px; }
.logo-drop:has(img:not([hidden])) .logo-drop__empty { display: none; }
.logo-drop__change { position: absolute; right: 8px; bottom: 8px; padding: 5px 10px; border-radius: 8px; background: rgb(255 255 255 / .92); font-size: 11.5px; font-weight: 600; box-shadow: 0 1px 4px rgb(28 22 19 / .18); }
.logo-drop:not(:has(img:not([hidden]))) .logo-drop__change { display: none; }
.logo-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.logo-drop:focus-within { outline: 3px solid color-mix(in srgb, var(--p-accent) 70%, transparent); outline-offset: 3px; }
.logo-drop.is-over, .logo-drop:hover { border-color: var(--p-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--p-accent) 18%, transparent); }
.brand-photo .logo-drop--photo { aspect-ratio: 375 / 144; }
.brand-photo .logo-drop--photo img { width: 100%; height: 100%; object-fit: cover; }

/* Buttons: capsules. Feedback lives on the press. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--p-line-strong); background: rgb(255 255 255 / .72); color: var(--p-ink); cursor: pointer; text-decoration: none; min-height: 42px; line-height: 1.4; box-shadow: var(--glass-edge); transition: transform 120ms var(--ease-out), background-color .15s, border-color .15s, color .15s, box-shadow .2s; }
.btn:hover { background: var(--p-solid); border-color: rgb(28 22 19 / .28); text-decoration: none; }
.btn:active { transform: scale(.97); transition-duration: 60ms; }
.btn--primary { background: var(--p-brand); border-color: var(--p-brand); color: var(--p-brand-ink); box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 8px 20px -12px color-mix(in srgb, var(--p-brand) 70%, transparent); }
.btn--primary:hover { background: var(--p-brand); border-color: var(--p-brand); filter: brightness(1.1); box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 12px 24px -12px color-mix(in srgb, var(--p-brand) 80%, transparent); }
.btn--danger { color: var(--p-bad); }
.btn--danger:hover { border-color: var(--p-bad); background: var(--p-bad-bg); }
.btn--danger-solid { background: var(--p-bad); border-color: var(--p-bad); color: #fff; }
.btn--danger-solid:hover { background: #961f18; border-color: #961f18; }
.btn--ok { color: var(--p-ok); background: var(--p-ok-bg); border-color: color-mix(in srgb, var(--p-ok) 30%, transparent); }
.btn--ok:hover { background: #d6ecdf; border-color: var(--p-ok); }
.btn--ok-solid { background: var(--p-ok); border-color: var(--p-ok); color: #fff; }
.btn--ok-solid:hover { background: #185a39; border-color: #185a39; }
.btn--block { width: 100%; }
.btn--small { padding: 7px 12px; font-size: 12px; min-height: 34px; }
.btn--big { min-height: 56px; font-size: 17px; }
.btn--ghost { border-color: transparent; background: transparent; box-shadow: none; }
.btn--ghost:hover { background: rgb(28 22 19 / .05); border-color: transparent; }
button:disabled, button[aria-disabled=true], input[type=submit][aria-disabled=true] { cursor: not-allowed; opacity: .55; }
button.is-loading { opacity: 1; }
.is-loading::before { content: ''; width: 14px; height: 14px; flex: 0 0 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.is-loading .icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.actions, .row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions form, .row-actions form { display: contents; }
.actions--sticky { position: sticky; bottom: 12px; z-index: 5; border-radius: 999px; padding: 10px 12px; margin-top: 4px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid transparent; border-radius: 50%; background: transparent; color: var(--p-muted); cursor: pointer; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s, transform 120ms var(--ease-out); }
.icon-btn .icon { flex: none; width: 18px; height: 18px; }
.icon-btn:hover { background: rgb(255 255 255 / .8); border-color: var(--p-line); color: var(--p-ink); }
.icon-btn:active { transform: scale(.94); }
.icon-btn--danger:hover { background: var(--p-bad-bg); border-color: color-mix(in srgb, var(--p-bad) 25%, transparent); color: var(--p-bad); }
.icon-btn:focus-visible { outline-offset: 1px; }
.icon-btn[data-tip]::after { content: attr(data-tip); position: absolute; right: calc(100% + 6px); top: 50%; transform: translate(4px, -50%); opacity: 0; pointer-events: none; white-space: nowrap; background: var(--club-espresso); color: var(--club-cream); font-size: 11px; font-weight: 600; line-height: 1; padding: 6px 8px; border-radius: 7px; transition: opacity .12s, transform .12s; z-index: 3; }
.icon-btn[data-tip]:hover::after, .icon-btn[data-tip]:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
.password-field { display: flex; position: relative; }
.password-field input { padding-right: 78px; }
.password-toggle { position: absolute; right: 6px; top: 6px; bottom: 6px; border: 0; border-radius: 8px; background: transparent; color: var(--p-muted); padding: 0 10px; font-size: 11px; font-weight: 600; cursor: pointer; }
.password-toggle:hover { background: rgb(28 22 19 / .06); color: var(--p-ink); }
.caps-warning { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--p-warn); }

/* The save bar floats as a capsule of glass. */
.savebar { position: sticky; bottom: 12px; z-index: 5; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px 18px; border-radius: 999px; padding: 10px 12px 10px 22px; }
.savebar__lead { margin: 0; font-size: 12px; color: var(--p-muted); max-width: 36ch; }
.savebar__msg { min-width: 0; }
/* v1.49: an error takes the lead's place: with both, the message had no column and the bar grew over the form (e2e H-07). */
.savebar:has(.savebar__error:not([hidden])) .savebar__lead { display: none; }
.savebar__msg p { margin: 0; font-size: 12.5px; }
.savebar__error { color: var(--p-bad); font-weight: 550; }
.savebar__error button { border: 0; background: none; padding: 0; margin-left: 6px; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.savebar__note { color: var(--p-muted); font-variant-numeric: tabular-nums; }
.savebar__note:empty { display: none; }
.savebar__actions { display: flex; gap: 8px; }
.savebar .field-error { display: none; }
html:has(.savebar) { scroll-padding-bottom: 120px; }

/* Tables */
.table-wrap { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--p-line); vertical-align: middle; overflow-wrap: anywhere; }
th { padding-top: 10px; padding-bottom: 10px; font-family: var(--p-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--p-muted); font-weight: 500; }
tbody tr:last-child td { border-bottom: 0; }
td a:not(.btn) { color: var(--p-ink); font-weight: 550; text-decoration: none; }
td a:not(.btn):hover { color: var(--p-accent-ink); text-decoration: underline; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.card > .table-wrap { max-width: none; margin-inline: calc(var(--card-pad) * -1); }
.card > .table-wrap:first-child { margin-top: calc(var(--card-pad) * -1); }
.card > .table-wrap:last-child { margin-bottom: calc(var(--card-pad) * -1); }
.card:has(> .table-wrap:first-child) { overflow: hidden; }
.data-table th { padding: 12px; background: rgb(28 22 19 / .03); border-bottom: 1px solid var(--p-line); }
.data-table td { padding: 14px 12px; }
.data-table th:first-child, .data-table td:first-child { padding-left: var(--card-pad); }
/* Re-review 2, H-02: the label column breaks between words, never letter by letter («S i n s u c u r s a l» in a 36 px column on a
   phone): a long label widens the table, and its .table-wrap scrolls. */
.data-table th:first-child, .data-table td:first-child { overflow-wrap: break-word; }
.data-table th:last-child, .data-table td:last-child { padding-right: var(--card-pad); }
.data-table tbody tr { transition: background-color .12s; }
.data-table tbody tr:hover { background: rgb(255 255 255 / .45); }
.data-table .cell-actions { width: 1%; white-space: nowrap; }
.data-table tr.is-revoked td { color: var(--p-muted); }
.cell-actions .row-actions { flex-wrap: nowrap; justify-content: flex-end; gap: 4px; }
.chart-data { color: var(--p-muted); font-size: 11px; }
.chart-data summary { cursor: pointer; padding: 8px 0; }
.chart-data table { margin-top: 8px; }
.pagination { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--p-line); font-size: 12px; color: var(--p-muted); }
.pagination__count { font-variant-numeric: tabular-nums; }
.pagination__pages { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.pagination__numbers { display: flex; align-items: center; gap: 2px; }
.pagination__num { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 99px; color: var(--p-ink); font-size: 13px; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; transition: background-color .15s; }
a.pagination__num:hover { background: rgb(255 255 255 / .8); }
.pagination__num[aria-current] { background: var(--p-brand); color: var(--p-brand-ink); }
.pagination__gap { padding: 0 3px; }
.pagination .btn[aria-disabled] { opacity: .45; pointer-events: none; }
.pagination__where { display: none; color: var(--p-ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Tabs: a segmented control of glass; the active lozenge slides between pages (view transitions). */
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding: 4px; border-radius: 999px; background: rgb(28 22 19 / .06); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; color: var(--p-muted); text-decoration: none; font-size: 13px; font-weight: 600; white-space: nowrap; transition: color .15s, background-color .15s; }
.tabs a span { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: rgb(28 22 19 / .08); font-variant-numeric: tabular-nums; }
.tabs a[aria-current] { background: var(--p-solid); color: var(--p-ink); box-shadow: 0 1px 4px rgb(28 22 19 / .14); }
.tabs a[aria-current] span { background: var(--p-brand); color: var(--p-brand-ink); }
.tabs a:not([aria-current]):hover { color: var(--p-ink); }
.club-nav { margin: -4px 0 14px; width: fit-content; border-radius: 999px; padding: 4px; background: var(--p-surface); }
.club-nav a[aria-current] { view-transition-name: club-tab; }
.cl-period { padding: 4px; border-radius: 999px; }
.cl-period a[aria-current] { view-transition-name: period-tab; }
.orders { display: flex; flex-direction: column; gap: 14px; }
.orders__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.orders__bar .tabs a[aria-current] { view-transition-name: list-tab; }
.orders__search input { width: 260px; padding-left: 38px; border-radius: 999px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236f635a' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 13px center; }
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: 320ms; animation-timing-function: var(--ease-out); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; }

/* Dialog and busy overlay: a material arriving, not a fade. */
.confirm { overscroll-behavior: contain; border: 0; padding: 0; border-radius: 22px; width: min(440px, calc(100% - 32px)); color: var(--p-ink); background: var(--p-surface-strong); }
.confirm::backdrop { background: rgb(23 18 15 / .38); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.confirm[open] { animation: material-in 260ms var(--ease-out); }
@keyframes material-in { from { opacity: 0; transform: translateY(10px) scale(.96); filter: blur(6px); } }
.confirm__card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 24px; }
.confirm__icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--club-cream); color: var(--club-espresso); }
.confirm--danger .confirm__icon { background: var(--p-bad-bg); color: var(--p-bad); }
.confirm--ok .confirm__icon { background: var(--p-ok-bg); color: var(--p-ok); }
.confirm__text h2 { font-size: 17px; margin: 2px 0 6px; overflow-wrap: anywhere; }
.confirm__text p { margin: 0; color: var(--p-muted); font-size: 13px; }
.confirm__detail p + p { margin-top: 6px; }
.confirm__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 8px 0 2px; }
.confirm__label { width: 100%; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; font-weight: 650; color: var(--p-muted); }
.confirm__filter { padding: 3px 9px; border: 1px solid var(--p-line-strong); border-radius: 99px; font-size: 12px; font-weight: 550; overflow-wrap: anywhere; }
.confirm__list { list-style: none; margin: 8px 0 10px; padding: 8px 12px; border-radius: 10px; background: rgb(28 22 19 / .05); display: grid; gap: 3px; font-size: 13px; font-weight: 550; }
.confirm__list li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.confirm__list .confirm__more { color: var(--p-muted); font-weight: 450; }
.confirm__actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--p-line); }
.busy { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgb(23 18 15 / .3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.busy__card { width: min(450px, 100%); border-radius: 20px; padding: 28px; display: grid; grid-template-columns: 28px 1fr; gap: 20px; align-items: center; }
.busy__card p { margin: 0; font-size: 14px; }
.busy__spinner { width: 28px; height: 28px; border: 3px solid var(--p-line-strong); border-top-color: var(--p-brand); border-radius: 50%; animation: spin .8s linear infinite; }

/* Layouts */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.editor__form, .editor__main { min-width: 0; }
.editor__main { display: flex; flex-direction: column; gap: 20px; }
.editor__aside { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 20px; }
.aside-fold > summary { display: none; }
.settings-editor { grid-template-columns: minmax(0, 1fr) 360px; }
.users-editor { grid-template-columns: minmax(0, 1fr) 320px; }
.fold { padding: 0; }
.fold > summary { list-style: none; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 12px; padding: 18px 24px; cursor: pointer; border-radius: var(--p-radius); }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: ''; grid-column: 2; grid-row: 1 / 3; align-self: center; width: 9px; height: 9px; border-right: 2px solid var(--p-muted); border-bottom: 2px solid var(--p-muted); transform: rotate(45deg); transition: transform 220ms var(--ease-out); }
.fold[open] > summary::after { transform: rotate(-135deg); }
.fold > summary:focus-visible { outline-offset: -3px; }
.fold > summary:hover { background: rgb(255 255 255 / .4); }
.fold__title { font-family: var(--p-display); font-size: 15px; font-weight: 600; }
.fold__summary { font-size: 12px; color: var(--p-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fold[open] .fold__summary { display: none; }
.fold__body { padding: 0 24px 24px; }
.club-erase { border: 1px solid color-mix(in srgb, var(--p-bad) 22%, transparent); }
.club-erase > summary .fold__title { color: var(--p-bad); }
.error-page { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.error-page > .card { width: min(540px, 100%); padding: 36px; }
.error-page h1 { font-size: 30px; margin: 0; }
.error-page p { margin: 0; color: var(--p-muted); }

/* Sign in: Club Mocha on espresso, the form on glass (mochaclub.css colors the context). */
.auth { --p-brand: var(--club-espresso); --p-brand-ink: var(--club-cream); --p-accent: var(--club-caramel); min-height: 100dvh; display: grid; grid-template-columns: minmax(320px, .9fr) minmax(420px, 1.1fr); }
.auth__context { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(32px, 7vh, 64px); padding: 48px 32px; }
.auth__content { display: flex; align-items: center; justify-content: center; padding: 32px 28px; }
.auth__card { width: min(400px, 100%); display: flex; flex-direction: column; gap: 22px; padding: 30px; border-radius: 24px; background: var(--p-surface); box-shadow: var(--glass-edge), var(--glass-shadow); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%); backdrop-filter: blur(var(--glass-blur)) saturate(160%); animation: material-in 420ms var(--ease-out) both; }
.auth__heading { display: grid; gap: 6px; }
.auth__title { margin: 0; font-size: 28px; letter-spacing: -.03em; }
.auth__lead { margin: 0; font-size: 13.5px; color: var(--p-muted); }
.auth__actions { margin: 18px 0 0; }
.auth__more { margin: 14px 0 0; font-size: 13px; color: var(--p-muted); }
.account-blocking { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.account-blocking li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; padding: 10px 14px; border-radius: var(--p-radius-sm); background: color-mix(in srgb, var(--p-warn-bg) 85%, white); font-size: 13px; }
.account-blocking small { font-family: var(--p-mono); font-size: 11px; color: var(--p-muted); align-self: baseline; }
.account-blocking span { grid-column: 1 / -1; color: var(--p-warn); }
.auth .form { gap: 16px; }
.auth .btn--primary { min-height: 48px; margin-top: 4px; }
.auth .field-error { margin-top: 0; }
.auth__row { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; font-size: 13px; }
.auth__row a { color: var(--p-ink); font-weight: 550; }
.auth__foot { text-align: center; font-size: 12px; margin: 0; }
.auth__foot a { color: var(--p-muted); }
.auth__foot a:hover { color: var(--p-ink); }
.auth-body { background: var(--p-bg); }

/* Club: home */
.club-welcome { display: grid; gap: 10px; }
.club-welcome .section-title { margin: 0; font-size: 22px; }
.club-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: step; }
.club-steps__item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--p-line); border-radius: var(--p-radius-sm); background: rgb(255 255 255 / .45); animation: page-in 500ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
.club-steps__item:nth-child(2) { --i: 1; } .club-steps__item:nth-child(3) { --i: 2; } .club-steps__item:nth-child(4) { --i: 3; }
.club-steps__item > div { flex: 1; display: grid; }
.club-steps__item small { color: var(--p-muted); }
.club-steps__item.is-done .section-icon { background: var(--p-ok-bg); color: var(--p-ok); }
.dash-todo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 16px; border-radius: 999px; font-size: 13px; }
.dash-more { margin: 4px 0 0; color: var(--p-muted); font-size: 13px; }
/* v1.36 (decision 9): what the plan does not include, as an invitation. */
.locked-card { border: 1.5px dashed var(--p-line-strong); background: color-mix(in srgb, var(--p-solid) 70%, transparent); box-shadow: none; }
.locked-card__icon { background: rgb(28 22 19 / .07); color: var(--p-muted); box-shadow: none; }
.locked-card__items { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.locked-card__plan { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 16px 0 0; font-size: 13px; }
.locked-card__plan .muted { color: var(--p-muted); }
/* v1.36 (decision 10): one branch or the whole Club, next to the period. */
.cl-branch select { width: auto; min-width: 160px; max-width: 260px; min-height: 36px; padding: 6px 30px 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.cl-branch-note { margin-bottom: 16px; }
/* v1.37 (decisions 12 and 24): the «solo tu logo» membership. */
.brand-preview__own { margin: 14px 0 0; }
.plan-apple { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0 0; font-size: 13px; color: var(--p-muted); }
.am-facts { display: grid; gap: 10px; margin: 18px 0; }
.am-facts > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 12px 14px; border-radius: var(--p-radius-sm); background: rgb(255 255 255 / .45); border: 1px solid var(--p-line); }
.am-facts dt { font-weight: 600; font-size: 13px; }
.am-facts dd { margin: 0; font-size: 14px; color: var(--p-muted); }
.am-facts dd b { color: var(--p-ink); }
.am-readd { margin: 12px 0; font-size: 14px; }
.add-wallet__renewed { color: #5c4307; }
@media (max-width: 640px) { .am-facts > div { grid-template-columns: 1fr; gap: 4px; } }
.dash-invite { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px 22px; align-items: center; }
.dash-invite .club-share__qr { width: 112px; height: 112px; }
@media (max-width: 600px) { .dash-invite { grid-template-columns: 1fr; justify-items: center; text-align: center; } .dash-invite .club-share__body { justify-items: stretch; text-align: left; } }
.club-plan { margin: 12px 0 0; }
.club-share { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 20px; align-items: center; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--p-line); }
.club-share p { margin: 4px 0 0; color: var(--p-muted); }
.club-share--qr { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
.club-share__qr { width: 128px; height: 128px; padding: 6px; border-radius: 14px; border: 1px solid var(--p-line); background: #fff; }
.club-share__body { display: grid; gap: 10px; min-width: 0; }
.club-share__body > p { margin: 0; }
.club-share__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.club-share__link { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 4px 4px 14px; border: 1px solid var(--p-line); border-radius: 999px; background: rgb(255 255 255 / .6); }
.club-share__link code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.club-nfc { display: block; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--p-line); }
.club-nfc summary { cursor: pointer; }
.club-nfc summary small { color: var(--p-muted); font-weight: 400; }
.club-nfc > p, .club-nfc .club-share__link { margin: 10px 0 0; }
.club-nfc__steps { margin: 10px 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; }
.club-new { display: grid; gap: 16px; max-width: 720px; }
.club-terms { padding: 16px 18px; }
.club-terms .check { align-items: flex-start; line-height: 1.45; }
.club-terms .check input { margin-top: 2px; flex: 0 0 auto; }
.club-terms .field-error { margin: 8px 0 0; }
.club-goals-card { display: grid; gap: 12px; }
.brand-preview { display: grid; gap: 10px; }

/* Club: the card as the panel draws it (ficha, Mostrador, the program's preview). */
.club-preview, .club-member__card { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 20px; background: var(--p-brand); color: var(--p-brand-ink); box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 18px 40px -22px color-mix(in srgb, var(--p-brand) 70%, transparent); }
.club-preview__eyebrow { font-family: var(--p-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.club-preview__name { font-family: var(--p-display); font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; overflow-wrap: anywhere; }
.club-preview__empty { margin: 0; opacity: .8; }
.club-stamps { --cols: 5; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 10px; max-width: 360px; }
.club-stamp { position: relative; aspect-ratio: 1; border-radius: 50%; border: 2px dashed color-mix(in srgb, currentColor 45%, transparent); display: grid; place-items: center; }
.club-stamp svg { width: 56%; height: 56%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.club-stamp.is-goal { border-style: solid; }
.club-stamp.is-on { background: currentColor; border-color: currentColor; border-style: solid; animation: stamp-in 420ms var(--ease-spring) both; animation-delay: calc(var(--n, 0) * 40ms); }
.club-stamp.is-on::after { content: ""; position: absolute; inset: 7.5%; border-radius: 50%; border: 1.5px solid var(--p-brand); }
.club-stamp.is-on svg { width: 50%; height: 50%; stroke: var(--p-brand); stroke-width: 2.2; }
.club-stamp.is-on.is-goal { background: var(--won, currentColor); border-color: var(--won, currentColor); }
.club-stamp:nth-child(2) { --n: 1; } .club-stamp:nth-child(3) { --n: 2; } .club-stamp:nth-child(4) { --n: 3; } .club-stamp:nth-child(5) { --n: 4; } .club-stamp:nth-child(6) { --n: 5; } .club-stamp:nth-child(7) { --n: 6; } .club-stamp:nth-child(8) { --n: 7; } .club-stamp:nth-child(9) { --n: 8; } .club-stamp:nth-child(10) { --n: 9; } .club-stamp:nth-child(n+11) { --n: 10; }
@keyframes stamp-in { from { transform: scale(.5) rotate(-12deg); opacity: 0; } }
/* v1.30: a reward just won, at the top of the card (panel/club/_won). */
.won { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 18px; align-items: center; margin: 0 0 18px; padding: 20px 22px; border-radius: var(--p-radius);
  background: linear-gradient(135deg, color-mix(in srgb, var(--p-accent) 26%, var(--p-solid)), color-mix(in srgb, var(--p-accent) 8%, var(--p-solid)));
  border: 1px solid color-mix(in srgb, var(--p-accent) 45%, transparent); animation: notice-in 360ms var(--ease-out) both; }
.won__mark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--p-accent); color: var(--p-accent-ink);
  animation: stamp-in 520ms var(--ease-spring) 120ms both; }
.won__mark .icon { width: 28px; height: 28px; }
.won__text p { margin: 0; }
.won__title { margin: 2px 0 4px; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }
.won__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.won__actions form { flex: 1 1 220px; margin: 0; }
.won__actions form .btn { width: 100%; }
@media (prefers-reduced-motion: reduce) { .won, .won__mark { animation: none; } }
/* v1.31 (MC1-R47): a purchase at the Point terminal (panel/counter/charge) and the Mostrador's form. */
.charge { display: grid; gap: 10px; justify-items: start; }
.charge__amount { margin: 0; font-size: clamp(38px, 8vw, 56px); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.charge__state { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 18px; font-weight: 600; }
.charge__state--ok { color: var(--p-ok); } .charge__state--bad { color: var(--p-bad); } .charge__state--warn { color: var(--p-warn); }
.charge__state .icon { width: 22px; height: 22px; }
.charge__spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor; animation: charge-spin .9s linear infinite; }
@keyframes charge-spin { to { transform: rotate(360deg); } }
.charge__done { margin: 0; padding-left: 18px; }
.charge .won { width: 100%; margin: 6px 0 0; }
.counter-point__form { display: grid; gap: 12px; margin-top: 12px; }
.counter-point__form .check small { display: block; }
@media (prefers-reduced-motion: reduce) { .charge__spinner { animation-duration: 3s; } }
.club-bar { height: 10px; border-radius: 99px; background: color-mix(in srgb, currentColor 20%, transparent); overflow: hidden; }
.club-bar span { display: block; height: 100%; background: currentColor; border-radius: inherit; animation: bar-in 700ms var(--ease-out) both; transform-origin: left; }
@keyframes bar-in { from { transform: scaleX(0); } }
.club-ladder { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.club-ladder__step { display: flex; align-items: center; gap: 12px; min-width: 0; }
.club-ladder__n { flex: 0 0 auto; min-width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, currentColor 14%, transparent); font-family: var(--p-mono); font-variant-numeric: tabular-nums; }
.club-ladder__step span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.club-ladder__step small { color: inherit; opacity: .7; font-size: 11px; }
.club-member { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.club-member > #movimientos, .club-member > .club-erase { grid-column: 1 / -1; }
.club-member__card { margin-top: 16px; }
.club-member__count { margin: 0; }
.club-stamp-form { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.club-stamp-form .field { flex: 1 1 200px; }
.club-reward { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--p-line); }
.club-reward:first-of-type { border-top: 0; }
.club-reward > .icon { color: var(--p-accent-ink); }
.club-reward b, .club-reward small { display: block; }
.club-past { margin-top: 12px; }
.club-past summary { cursor: pointer; color: var(--p-muted); }
.club-past ul { margin: 8px 0 0; padding-left: 18px; }
.ch-fill--apple, .ch-key--apple { background: var(--ch-apple); box-shadow: inset 0 0 0 1px var(--ch-apple-line); }
.ch-fill--google, .ch-key--google { background: var(--ch-google); }
.ch-fill--web, .ch-key--web { background: var(--ch-web); }
.ch-fill--both, .ch-key--both { background: var(--ch-both); }
.ch-stroke--apple { stroke: var(--ch-apple-line); } .ch-stroke--google { stroke: var(--ch-google); } .ch-stroke--both { stroke: var(--ch-both); } .ch-stroke--web { stroke: var(--ch-web); }
.ch-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.ch-chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--p-line); font-size: 12.5px; font-weight: 600; background: rgb(255 255 255 / .6); }
.ch-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }

/* Club: the program editor */
.club-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.club-icon { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px; border: 1.5px solid var(--p-line); border-radius: var(--p-radius-sm); background: rgb(255 255 255 / .4); cursor: pointer; text-align: center; transition: border-color .15s, background-color .15s, transform 160ms var(--ease-out); }
.club-icon:active { transform: scale(.97); }
.club-icon input { position: absolute; opacity: 0; pointer-events: none; }
.club-icon__art { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgb(28 22 19 / .05); color: var(--p-ink); transition: background-color .2s, color .2s, transform 300ms var(--ease-spring); }
.club-icon__art svg { width: 24px; height: 24px; }
.club-icon__label { font-size: 12px; line-height: 1.25; color: var(--p-muted); }
.club-icon:has(input:checked) { border-color: var(--p-brand); background: var(--p-solid); }
.club-icon:has(input:checked) .club-icon__art { background: var(--p-brand); color: var(--p-brand-ink); transform: scale(1.08) rotate(-6deg); }
.club-icon:has(input:checked) .club-icon__label { color: var(--p-ink); font-weight: 600; }
.club-icon:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--p-accent) 70%, transparent); outline-offset: 2px; }
.club-icon:hover { border-color: var(--p-accent); }
.club-goals { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.club-goal { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 16px; border: 1px solid var(--p-line); border-radius: var(--p-radius-sm); background: rgb(255 255 255 / .4); }
.club-goal__n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--p-brand); color: var(--p-brand-ink); font-family: var(--p-mono); font-weight: 500; }
.club-goal__fields { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.club-goal__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.club-goal__row:first-child { grid-template-columns: 110px minmax(0, 1fr); }

/* Club: members and segments */
.club-segments { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 14px; }
.club-segments a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--p-line-strong); border-radius: 99px; font-size: 12.5px; color: var(--p-ink); text-decoration: none; background: rgb(255 255 255 / .5); transition: border-color .15s, background-color .15s; }
.club-segments a span { font-size: 11px; color: var(--p-muted); font-variant-numeric: tabular-nums; }
.club-segments a.seg::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--seg); }
.club-segments a:hover { border-color: var(--p-accent); background: var(--p-solid); }
.club-segments a[aria-current] { border-color: var(--p-ink); background: var(--p-ink); color: #fff; }
.club-segments a[aria-current] span { color: #ffffffb0; }
.club-segment-hint { margin: -4px 0 14px; font-size: 13px; color: var(--p-muted); }
.seg-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--seg); flex: 0 0 auto; }
.seg-pill { display: inline-block; margin-top: 3px; padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 650; color: var(--seg); background: color-mix(in srgb, var(--seg) 13%, white); }

/* Club: branches and map */
.loc-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.loc-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; align-items: center; gap: 12px 14px; padding: 12px 14px; border: 1px solid var(--p-line); border-radius: var(--p-radius-sm); background: rgb(255 255 255 / .4); }
.loc-row.is-editing { border-color: var(--p-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p-brand) 14%, transparent); }
.loc-row__n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--p-brand); color: var(--p-brand-ink); font-family: var(--p-mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.loc-row__body { display: flex; flex-direction: column; min-width: 0; }
.loc-row__body small { color: var(--p-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loc-row__stat { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.loc-row__stat b { font-family: var(--p-display); font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.loc-row__stat small { color: var(--p-muted); font-size: 11px; }
.loc-row__actions { display: flex; align-items: center; gap: 6px; }
.loc-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; vertical-align: middle; background: rgb(28 22 19 / .08); color: var(--p-muted); }
.loc-tag--on { background: var(--p-ok-bg); color: var(--p-ok); }
.loc-temp { display: grid; gap: 10px; margin: 4px 0 12px; }
.loc-archived { margin-top: 14px; font-size: 13px; color: var(--p-muted); }
.loc-archived summary { cursor: pointer; padding: 6px 0; }
.loc-archived ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.loc-archived li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.loc-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.loc-results { list-style: none; margin: 0; padding: 4px; border: 1px solid var(--p-line); border-radius: 12px; background: var(--p-surface-strong); display: grid; gap: 2px; max-height: 220px; overflow-y: auto; }
.loc-results button { width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: 13px; cursor: pointer; }
.loc-results button:hover { background: rgb(28 22 19 / .05); }
.loc-results button:focus-visible { outline: 2px solid var(--p-brand); }
.loc-coords summary { cursor: pointer; font-size: 13px; color: var(--p-muted); padding: 4px 0; }
.loc-coords .form--row { margin-top: 8px; }
.club-map { position: relative; z-index: 0; height: 320px; border-radius: var(--p-radius-sm); overflow: hidden; border: 1px solid var(--p-line); background: #ece7e0; }
.club-map--edit { height: 380px; }
.club-map--wide { height: 520px; }
.club-map__fallback { margin: 0; padding: 18px; color: var(--p-muted); font-size: 13px; }
.club-map .leaflet-control-attribution { font-size: 10px; }
.club-pin { background: none; border: 0; }
.club-pin span { position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--p-brand); box-shadow: 0 4px 10px rgb(28 22 19 / .3); display: grid; place-items: center; }
.club-pin i { transform: rotate(45deg); font: 700 12px/1 system-ui, sans-serif; font-style: normal; color: var(--p-brand-ink); font-variant-numeric: tabular-nums; }
.club-pin i:empty { width: 10px; height: 10px; border-radius: 50%; background: var(--p-brand-ink); }
.club-pin--other span { background: #fff; border: 2px solid var(--p-brand); }
.club-pin--other i { color: var(--p-ink); }
.club-pin--edit span { width: 34px; height: 34px; }
.club-nearby { display: grid; gap: 12px; }
.club-nearby__state { display: flex; align-items: center; gap: 10px; margin: 0; }
.club-nearby__state small { color: var(--p-muted); }
.lock-preview { display: grid; gap: 14px; justify-items: center; padding: 22px 14px 18px; border-radius: 22px; background: linear-gradient(160deg, #3a2e27, #17120f); color: #fff; }
.lock-preview__time { font-family: var(--p-display); font-size: 40px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.lock-preview__note { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 16px; background: rgb(255 255 255 / .18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lock-preview__note b { display: block; font-size: 13px; color: #fff; }
.lock-preview__note small { display: block; font-size: 12.5px; color: #fff; opacity: .9; line-height: 1.3; }
.lock-preview__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--p-brand); color: var(--p-brand-ink); font-weight: 700; }
.map-card { margin-bottom: 18px; }
.map-key--branch { background: var(--club-espresso); opacity: .55; border-radius: 50%; }
.map-key--ring { width: 14px; height: 10px; border: 1px dashed var(--club-espresso); border-radius: 50%; display: inline-block; }
.map-credit { margin-top: 14px; }

/* Club: automations, promotions, balance */
.auto-form { display: grid; gap: 14px; margin-top: 18px; }
.auto-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.auto-card { display: grid; gap: 14px; }
.auto-card--wide { grid-column: 1 / -1; }
.auto-sent { margin: 0; font-size: 12px; color: var(--p-muted); }
.auto-rule { margin: 0; }
.auto-feedback { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.auto-feedback li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px; border: 1px solid var(--p-line); border-radius: var(--p-radius-sm); background: rgb(255 255 255 / .4); }
.auto-feedback li.is-low { border-color: color-mix(in srgb, var(--p-bad) 25%, transparent); background: var(--p-bad-bg); }
.auto-feedback__rating { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgb(28 22 19 / .05); font-family: var(--p-display); font-size: 18px; font-weight: 800; }
.auto-feedback li.is-low .auto-feedback__rating { background: #fff; color: var(--p-bad); }
.auto-feedback p { margin: 4px 0 0; font-size: 13.5px; }
.auto-feedback small { color: var(--p-muted); }
.club-promo { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.club-promo__mail { max-width: 560px; padding: 22px; border: 1px solid var(--p-line); border-radius: 14px; background: #fff; color: #1b1d2a; }
.club-promo__mail h2 { margin: 0 0 12px; font-size: 22px; }
.club-promo__mail p { margin: 0 0 12px; line-height: 1.5; overflow-wrap: anywhere; }
.club-promo__from { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #6b7080; }
.club-promo__card span { display: inline-block; padding: 10px 16px; border-radius: 999px; background: var(--p-brand); color: var(--p-brand-ink); }
.club-promo__foot { font-size: 12px; color: #6b7080; }
.club-promo__side { display: grid; gap: 12px; position: sticky; top: 16px; }
.club-promo__reach { margin: 0; font-size: 15px; }
.club-promo__reach b { font-family: var(--p-display); font-weight: 800; font-size: 34px; }
.balance-tier { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.account-link { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.account-link div { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.account { display: flex; flex-direction: column; gap: 18px; max-width: 720px; }
.account__who { display: flex; align-items: center; gap: 14px; }
.account__who div { display: flex; flex-direction: column; gap: 2px; }
.account__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.account__links li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--p-line); border-radius: var(--p-radius-sm); }
.account__links span { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.account__links small { color: var(--p-muted); }

/* v1.25 (MC1-R43): Club → Monedero → Pantalla de recarga. */
.screen-amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.screen-veil { margin-top: 10px; }
.screen-veil input[type=range] { width: 100%; accent-color: var(--p-brand); }
.screen-veil small { font-family: var(--p-mono); }
.screen-studio { display: grid; grid-template-columns: minmax(0, 1fr) clamp(250px, 24vw, 330px); gap: 32px; align-items: start; }
.screen-studio__fields { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.screen-studio__phone { position: sticky; top: 20px; display: grid; gap: 4px; justify-items: center; text-align: center; }
.screen-studio__phone .section-note { max-width: 30ch; margin: 0; }
/* A real phone's screen (393×852) scaled to fit, never taller than the window; club.js sets --phone-scale. */
.phone-frame { position: relative; width: min(100%, calc((100dvh - 230px) * 393 / 852 + 20px)); margin-top: 10px; padding: 10px; border-radius: 50px; background: #17120f; box-shadow: 0 30px 60px -28px rgb(23 18 15 / .55); }
.phone-frame__screen { position: relative; aspect-ratio: 393 / 852; border-radius: 40px; overflow: hidden; background: #0d0a08; isolation: isolate; clip-path: inset(0 round 40px); }
.phone-frame__screen::before { content: ''; position: absolute; top: 1.3%; left: 50%; z-index: 2; width: 32%; height: 4.2%; border-radius: 99px; background: #0d0a08; transform: translateX(-50%); pointer-events: none; }
.phone-frame__screen iframe { position: absolute; top: -1px; left: -1px; width: 393px; height: 852px; border: 0; display: block; background: transparent; transform: scale(var(--phone-scale, .72)); transform-origin: 0 0; }
.phone-frame__screen iframe.is-back { visibility: hidden; }
@media (max-width: 1000px) {
  .screen-studio { grid-template-columns: 1fr; }
  .screen-studio__phone { position: static; order: -1; }
  .phone-frame { width: min(100%, 250px); }
}
/* v1.27: each payment account's panel, and the reference of an online top-up to find it there. */
.gateway-links { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 4px; }
.gateway-link { display: flex; min-width: 0; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border: 1px solid var(--p-line); border-radius: 999px; color: var(--p-ink); text-decoration: none; font-weight: 600; font-size: 14px; background: var(--p-surface); transition: border-color .15s ease, transform .15s ease; }
.gateway-link:hover { border-color: color-mix(in srgb, var(--p-ink) 30%, transparent); }
.gateway-link:active { transform: scale(.98); }
.gateway-link svg { width: 16px; height: 16px; flex: none; margin-left: auto; color: var(--p-muted); }
.gateway-link__label { white-space: nowrap; }
.gateway-link__mark { display: inline-grid; place-items: center; width: 108px; min-width: 0; height: 32px; flex: 0 1 108px; border-radius: 999px; padding: 0 12px; font-weight: 700; letter-spacing: -.01em; }
.gateway-link__mark img { width: 100%; height: 18px; object-fit: contain; }
.gateway-link__mark--stripe { background: #635bff; color: #fff; }
.gateway-link__mark--mercadopago { background: #ffe600; }
.gateway-link__mark--paypal { background: #0070ba; }
/* A cell of several lines stays one block: in the phone's stacked table it sits right, beside its label. */
.move-cell { display: grid; gap: 2px; justify-items: start; }
.move-cell small { color: var(--p-muted); }
@media (max-width: 700px) { .move-cell { justify-items: end; text-align: right; } }
.move-method { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 2px; }
.move-method a, .move-ref { white-space: nowrap; flex: none; }
.move-method a { display: inline-flex; align-items: center; gap: 3px; }
.move-method a svg { width: 12px; height: 12px; }
.move-ref { display: inline-flex; align-items: center; gap: 4px; padding: 1px 6px; border: 1px solid var(--p-line); border-radius: 6px; background: none; color: var(--p-muted); font: inherit; cursor: pointer; }
.move-ref code { font-family: var(--p-mono); font-size: 11px; }
.move-ref svg { width: 12px; height: 12px; }
.move-ref:hover { color: var(--p-ink); }
@media (max-width: 700px) { .screen-amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Users */
.seats { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 130px; }
.seats__bar { width: 130px; height: 6px; border-radius: 99px; background: rgb(28 22 19 / .08); overflow: hidden; }
.seats__bar span { display: block; height: 100%; background: var(--p-brand); border-radius: inherit; }
.seats small { font-size: 12px; }
.team { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.member { display: grid; grid-template-columns: 46px minmax(150px, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 0; scroll-margin-top: 24px; }
.member + .member { border-top: 1px solid var(--p-line); }
.member:target { box-shadow: inset 3px 0 var(--p-accent); padding-left: 8px; }
.member.is-off .member__who b { color: var(--p-muted); }
.member__who { display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.member__who b { display: flex; align-items: center; gap: 8px; }
.member__who small { font-size: 12px; color: var(--p-muted); overflow-wrap: anywhere; }
.member__pending { color: var(--p-warn); font-weight: 600; }
.member__off { color: var(--p-bad); font-weight: 600; }
.member__controls { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; }
.member__controls select { width: auto; max-width: 210px; min-height: 38px; padding-top: 6px; padding-bottom: 6px; }
.member__role { font-size: 13px; font-weight: 600; color: var(--p-muted); padding: 0 6px; }
.member__actions { display: flex; align-items: center; gap: 4px; }
.member__actions .btn .icon { width: 15px; height: 15px; }
.role-cards { list-style: none; margin: 14px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.role-card { padding: 12px 14px; border: 1px solid var(--p-line); border-radius: var(--p-radius-sm); background: rgb(255 255 255 / .4); }
.role-card__head { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.role-card__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--p-brand) 9%, white); color: var(--p-brand-text); }
.role-card__icon .icon { width: 16px; height: 16px; flex: none; }
.role-card__can { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.role-card__can li { display: flex; gap: 8px; align-items: baseline; }
.role-card__can li::before { content: '✓'; color: var(--p-ok); font-weight: 800; font-size: 12px; }
.role-card__cannot { margin: 8px 0 0; font-size: 12px; color: var(--p-muted); }

/* The Mostrador: for a phone or a tablet at the counter. */
/* v1.32 (MC1-R48): the way in: the Kiosco and the link stamp as two big tiles, then the day. */
.counter-home { display: grid; gap: 20px; }
.counter-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.counter-mode { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; min-height: 148px; padding: 24px 26px; border-radius: 26px; background: var(--p-surface-strong); box-shadow: var(--glass-edge), var(--glass-shadow), inset 0 0 0 1px var(--p-line); color: var(--p-ink); text-decoration: none; overflow: hidden; transition: transform 160ms var(--ease-out), box-shadow .2s; -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%); backdrop-filter: blur(var(--glass-blur)) saturate(160%); }
.counter-mode:hover { box-shadow: var(--glass-edge), 0 24px 44px -28px rgb(28 22 19 / .45), inset 0 0 0 1px var(--p-line-strong); }
.counter-mode:active { transform: scale(.98); }
.counter-mode__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: rgb(200 150 106 / .18); color: var(--club-caramel-deep); }
.counter-mode__icon .icon { width: 32px; height: 32px; }
.counter-mode__text { display: grid; gap: 4px; }
.counter-mode__text b { font-family: var(--p-display); font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.counter-mode__text small { font-size: 14px; color: var(--p-muted); }
.counter-mode__go { font-size: 22px; color: var(--p-faint); transition: transform 160ms var(--ease-out); }
.counter-mode:hover .counter-mode__go { transform: translateX(4px); }
.counter-mode--main { background: var(--club-espresso); color: var(--club-cream); box-shadow: 0 26px 50px -30px rgb(23 18 15 / .8); }
.counter-mode--main::before { content: ''; position: absolute; inset: -40% -10% auto auto; width: 70%; height: 140%; background: radial-gradient(closest-side, rgb(200 150 106 / .35), transparent); pointer-events: none; }
.counter-mode--main .counter-mode__icon { background: var(--club-caramel); color: #2a1a0e; }
.counter-mode--main .counter-mode__text small, .counter-mode--main .counter-mode__go { color: rgb(245 238 228 / .66); }
.counter-topup { min-height: 46px; padding-inline: 20px; }
.counter-day__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.counter-row { display: grid; grid-template-columns: 3.2em minmax(0, 1fr) minmax(5.5em, auto) 7.4em; align-items: center; gap: 4px 14px; padding: 14px 10px; border-bottom: 1px solid var(--p-line); color: inherit; text-decoration: none; }
.counter-row:last-of-type { border-bottom: 0; }
.counter-row--link { border-radius: 14px; transition: background-color .15s; }
.counter-row--link:hover { background: rgb(255 255 255 / .6); }
.counter-row__time { font-family: var(--p-mono); font-size: 13px; color: var(--p-muted); font-variant-numeric: tabular-nums; }
.counter-row__main { display: grid; min-width: 0; }
.counter-row__main b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.counter-row__main small { color: var(--p-muted); font-size: 13px; }
.counter-row__amount { grid-column: 3; justify-self: end; font-family: var(--p-display); font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.counter-waiting-list { display: grid; gap: 2px; border: 1px solid rgb(132 83 9 / .25); }
.counter-waiting-list .counter-row { grid-template-columns: minmax(0, 1fr) minmax(5.5em, auto) 7.4em; }
.counter-waiting-list .counter-row__amount { grid-column: 2; }
.counter-waiting-list .counter-row .chip { grid-column: 3; }
.counter-waiting { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin: 0 0 18px; text-decoration: none; color: var(--p-warn); }
.counter-row .chip { grid-column: 4; justify-self: end; }
.chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; background: rgb(28 22 19 / .07); color: var(--p-muted); }
.chip--ok { background: var(--p-ok-bg); color: var(--p-ok); }
.chip--bad { background: var(--p-bad-bg); color: var(--p-bad); }
.chip--warn { background: var(--p-warn-bg); color: var(--p-warn); }
.chip--off { background: transparent; box-shadow: inset 0 0 0 1px var(--p-line-strong); color: var(--p-muted); }
@media (max-width: 600px) {
  .counter-mode { min-height: 112px; padding: 18px; gap: 14px; grid-template-columns: auto minmax(0, 1fr); }
  .counter-mode__go { display: none; }
  .counter-mode__icon { width: 54px; height: 54px; border-radius: 16px; }
  .counter-row { grid-template-columns: 3em minmax(0, 1fr) auto; }
  .counter-row .chip { grid-column: 2 / -1; justify-self: start; }
  .counter-waiting-list .counter-row { grid-template-columns: minmax(0, 1fr) auto; }
  .counter-waiting-list .counter-row .chip { grid-column: 1 / -1; }
  .counter-row__by { display: none; }
}
.counter { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 20px; align-items: start; }
.counter--card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.counter--claim { grid-template-columns: minmax(0, 560px); }
.counter-stamp { margin-top: 16px; }
.counter-undo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--p-line); }
.counter-undo small { color: var(--p-muted); }
.counter-steps { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 10px; }
.counter-claim { display: grid; gap: 16px; }
.counter-claim__ticket { display: grid; justify-items: center; gap: 8px; padding: 20px; border: 1px dashed var(--p-line-strong); border-radius: 16px; background: #fff; text-align: center; }
.counter-claim__qr svg { width: 200px; height: 200px; display: block; }
.counter-claim__how { margin: 0; color: var(--p-muted); font-size: 14px; }
.counter-claim__actions { flex-wrap: wrap; justify-content: flex-start; }
.counter-balance { display: grid; gap: 14px; grid-column: 1 / -1; }
.counter-balance__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.counter-balance__state { margin-left: 8px; padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 600; vertical-align: middle; }
.counter-balance__state--on { background: var(--p-ok-bg); color: var(--p-ok); }
.counter-balance__state--off { background: rgb(28 22 19 / .08); color: var(--p-muted); }
@media print {
  .counter--claim ~ *, .side, .main__head, .main__foot, .counter-claim > :not(.counter-claim__ticket), .notice { display: none !important; }
  .counter-claim__ticket { border: 0; }
  body::before, body::after { display: none; }
}

/* The pass preview (Tarjeta and the Club's summary) and iOS 27's buttons. */
.pv-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; margin: 10px 0 8px; border-radius: 999px; background: rgb(28 22 19 / .06); }
.pv-tabs button, .pv-states button { border: 0; background: none; padding: 7px 6px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--p-muted); cursor: pointer; transition: background-color .15s, color .15s, box-shadow .15s; }
.pv-tabs button { white-space: nowrap; padding-inline: 4px; overflow: hidden; text-overflow: ellipsis; }
.pv-tabs button[aria-selected="true"] { background: var(--p-solid); color: var(--p-ink); box-shadow: 0 1px 4px rgb(28 22 19 / .14); }
.pv-states { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.pv-states button { border: 1px solid var(--p-line-strong); padding: 5px 11px; font-weight: 500; background: rgb(255 255 255 / .5); }
.pv-states button[aria-pressed="true"] { border-color: var(--p-ink); color: var(--p-ink); background: var(--p-solid); }
.pv-pass + .pv-pass { margin-top: 0; }
.pv-note { margin: 8px 0 0; font-size: 12px; color: var(--p-muted); }
.pv-google__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 6px; }
.pv-google__badge { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--pass-bg); box-shadow: 0 0 0 1px color-mix(in srgb, var(--pass-ink) 25%, transparent); color: var(--pass-ink); }
.pv-google__badge img { width: 80%; height: 80%; object-fit: contain; }
.pv-google__badge svg { width: 60%; height: 60%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pv-google__head b { font-size: 14px; font-weight: 500; }
.pv-google__program { margin: 0; padding: 0 16px 10px; font-size: 20px; line-height: 1.2; }
.pv-google__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px; }
.pv-google__fields b { display: block; font-size: 15px; }
.pass--google .pv-google__fields small { color: color-mix(in srgb, var(--pass-ink) 70%, transparent); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 11px; }
.pv-actions { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pv-actions:empty { display: none; }
.pv-actions li { position: relative; display: grid; align-content: start; gap: 10px; min-height: 104px; padding: 14px 34px 14px 14px; border-radius: 18px; background: #1c1c1e; color: #fff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; }
.pv-actions li:only-child { grid-column: 1 / -1; }
.pv-actions li .icon { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--tint, #007aff); color: #fff; box-sizing: border-box; }
.pv-actions li b { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; }
.pv-actions li small { display: block; margin-top: 2px; font-size: 12.5px; color: #98989f; }
.pv-actions li::after { content: ''; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; border-right: 2px solid #8e8e93; border-top: 2px solid #8e8e93; transform: translateY(-50%) rotate(45deg); }
.pv-links { margin-top: 10px; padding: 10px 14px 4px; border-radius: 14px; background: #fff; border: 1px solid var(--p-line); }
.pv-links small { display: block; color: var(--p-muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.pv-links ul { list-style: none; margin: 4px 0 0; padding: 0; }
.pv-links li { padding: 9px 0; border-top: 1px solid var(--p-line); font-size: 13.5px; color: #1a73e8; overflow-wrap: anywhere; }
.pv-links li:first-child { border-top: 0; }
.pass-actions { display: grid; gap: 12px; }
.pass-action { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--p-line); border-radius: var(--p-radius-sm); background: rgb(255 255 255 / .4); }
.pass-action .form--row { margin: 0; }
.pass-action__head { float: left; width: 100%; display: flex; align-items: center; gap: 8px; padding: 0; margin: 0; font-size: 13px; font-weight: 600; color: var(--p-ink); }
.pass-action__head + * { clear: both; }
.pass-action__num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--p-ink); color: #fff; font-family: var(--p-mono); font-size: 12px; }
.pass-actions__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; }
.pass-actions__foot .section-note { flex: 1 1 260px; }

/* v1.53 (MC1-R55): Miembros: the kind of Club, the membership in the file and at the counter, and Club → Membresías. */
.options--compact { grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 10px; }
.options--compact .option { grid-template-columns: minmax(0, 1fr); padding: 12px 40px 12px 14px; }
.option.is-locked { opacity: .55; cursor: not-allowed; }
.option__body small { display: block; }
.club-membership { display: grid; gap: 14px; align-content: start; }
.club-membership .section-head { margin-bottom: 0; }
.club-membership__benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.club-membership__benefits li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--p-ok-bg); font-size: 13px; }
.club-membership__benefits .icon { width: 14px; height: 14px; color: var(--p-ok); }
/* v1.53: a benefit with a limit says what is left and carries its «Usar». */
.club-membership__benefits li > span { display: grid; gap: 1px; }
.club-membership__benefits li small { color: var(--p-muted); font-size: 12px; }
.club-membership__benefits li.is-limited { border-radius: 14px; padding: 6px 6px 6px 12px; }
.club-membership__benefits li.is-spent { background: color-mix(in srgb, var(--p-muted) 12%, transparent); }
.club-membership__benefits li.is-spent .icon { color: var(--p-muted); }
.club-membership__use { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 0 4px; }
.club-membership__use select { max-width: 150px; font-size: 12px; }
.club-membership__give { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--p-line); }
.club-membership__give legend { font-weight: 700; margin-bottom: 8px; }
.club-membership__history { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.club-membership__history li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--p-line); font-size: 13px; }
.club-membership__history li:last-child { border-bottom: 0; }
.club-membership__history small { display: block; color: var(--p-muted); }
.club-membership__history li.is-revoked > span { opacity: .55; text-decoration: line-through; }
.club-preview__member { display: grid; justify-items: start; gap: 8px; }
.club-preview__benefits { margin: 0; padding-left: 18px; font-size: 13px; display: grid; gap: 2px; }
.club-preview__benefits small { color: var(--p-muted); }
/* v1.53: a membership type's head (name, how long, price), its days typed when it is none of the usual ones, and its benefits
   one per row with their limit. */
.club-mtype__head { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr); }
.club-mtype__days { display: grid; gap: 6px; align-content: start; }
.club-mtype__days > label { font-size: 13px; font-weight: 600; }
.unit--post b { font-family: var(--p-mono); font-weight: 500; color: var(--p-muted); padding-right: 12px; font-size: 13px; }
.club-benefits { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.club-benefits legend { padding: 0; margin-bottom: 4px; font-size: 13px; font-weight: 600; }
.club-benefits legend small { font-weight: 400; color: var(--p-muted); }
.club-benefit { display: grid; grid-template-columns: minmax(0, 1fr) 96px 150px; gap: 8px; }
.club-benefit .field { margin: 0; }
.club-benefits [data-benefit-add] { justify-self: start; }
.club-benefit__per select:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 640px) {
  .club-mtype__head { grid-template-columns: minmax(0, 1fr); }
  .club-benefit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .club-benefit__text { grid-column: 1 / -1; }
}
.ms-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--p-line); color: inherit; text-decoration: none; }
.ms-row:last-child { border-bottom: 0; }
.ms-row small { display: block; color: var(--p-muted); font-size: 12px; }
.ms-row:hover b { text-decoration: underline; text-underline-offset: 3px; }
.ms-type { padding: 10px 0; border-bottom: 1px solid var(--p-line); }
.ms-type:last-child { border-bottom: 0; }
.ms-type p { margin: 0; }
.ms-type ul { margin: 6px 0 0; padding-left: 18px; color: var(--p-muted); font-size: 13px; }
.cl-table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 13px; }
.cl-table th, .cl-table td { padding: 6px 4px; border-bottom: 1px solid var(--p-line); text-align: left; }
.cl-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.viz-cols--compact { height: 190px; }

/* Charts (the studio's validated palette, never the business's). */
.cl-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.cl-card--wide { grid-column: 1 / -1; }
.cl-empty { margin: 18px 0; padding: 18px; border: 1px dashed var(--p-line-strong); border-radius: var(--p-radius-sm); color: var(--p-muted); font-size: 13px; text-align: center; }
.cl-empty-row { color: var(--p-muted); text-align: center; }
.cl-segs { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.cl-segs li > a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name n" "bar bar"; gap: 6px 12px; padding: 8px 10px; border-radius: 12px; color: inherit; text-decoration: none; transition: background-color .15s; }
.cl-segs li > a:hover { background: rgb(255 255 255 / .6); }
.cl-segs__name { grid-area: name; display: grid; grid-template-columns: 10px minmax(0, 1fr); align-items: center; column-gap: 9px; min-width: 0; }
.cl-segs__name small { grid-column: 2; color: var(--p-muted); font-size: 12px; }
.cl-segs__n { grid-area: n; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.cl-segs__n b { font-family: var(--p-display); font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.cl-segs__n small { color: var(--p-muted); font-size: 11px; }
.cl-segs__bar { grid-area: bar; height: 6px; border-radius: 99px; background: rgb(28 22 19 / .08); overflow: hidden; }
.cl-segs__bar i { display: block; height: 100%; width: var(--w); background: var(--seg); border-radius: inherit; animation: bar-in 700ms var(--ease-out) both; transform-origin: left; }
.cl-segs__do { display: block; margin: -2px 10px 4px 29px; font-size: 12px; color: var(--p-ink); }
.cl-heat { display: grid; grid-template-columns: 34px repeat(var(--cols), minmax(0, 1fr)); gap: 3px; margin-top: 10px; }
.cl-heat > span { font-size: 10.5px; color: var(--p-muted); display: flex; align-items: center; font-family: var(--p-mono); }
.cl-heat__h { justify-content: center; }
.cl-heat > i { aspect-ratio: 1; border-radius: 4px; background: color-mix(in srgb, var(--viz-seq) calc(var(--v) * 100%), var(--viz-seq-0)); }
.cl-cohorts td, .cl-cohorts th { white-space: nowrap; }
.cl-cohorts__v { display: inline-block; min-width: 52px; padding: 3px 8px; border-radius: 7px; background: color-mix(in srgb, var(--viz-seq) calc(var(--v) * 90%), var(--viz-seq-0)); color: var(--p-ink); font-variant-numeric: tabular-nums; }
.cl-cohorts__v.is-strong { color: #fff; }
.cl-cohorts__na { color: var(--p-muted); }
.cl-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cl-caption { caption-side: top; text-align: left; font-weight: 600; font-size: 13px; padding: 0 0 8px; }
.cl-weekly { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cl-weekly__do { display: flex; align-items: center; gap: 10px; }
.chart-card__head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 18px; }
.chart-card__head .chart-legend { margin-top: 6px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; color: var(--p-muted); font-size: 12px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-key { width: 10px; height: 10px; border-radius: 3px; }
.viz-key--0, .viz-fill--0 { background: var(--viz-0); }
.viz-key--1, .viz-fill--1 { background: var(--viz-1); }
.viz-key--2, .viz-fill--2 { background: var(--viz-2); }
[data-tip] { cursor: default; }
[data-tip]:hover, [data-tip]:focus-visible { filter: brightness(1.1) saturate(1.05); outline: none; }
.viz-cols { position: relative; height: 230px; margin: 12px 0 2px; padding-left: 28px; }
.viz-cols__grid { position: absolute; inset: 0 0 38px 28px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.viz-cols__grid i { position: relative; border-top: 1px solid var(--viz-grid); }
.viz-cols__grid i::before { content: attr(data-v); position: absolute; right: calc(100% + 6px); top: -8px; font-family: var(--p-mono); font-size: 10.5px; color: var(--p-muted); font-variant-numeric: tabular-nums; font-style: normal; }
.viz-cols__list { position: relative; list-style: none; margin: 0; padding: 0; height: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.viz-cols__list li { display: grid; grid-template-rows: minmax(0, 1fr) 18px 20px; justify-items: center; min-width: 0; }
.viz-cols__stack { align-self: end; display: flex; flex-direction: column; gap: 2px; width: min(100%, 24px); height: var(--h); min-height: 3px; transform-origin: bottom; animation: bar-up 700ms var(--ease-out) both; animation-delay: calc(var(--n, 0) * 30ms); }
.viz-cols__list li:nth-child(2) .viz-cols__stack { --n: 1; } .viz-cols__list li:nth-child(3) .viz-cols__stack { --n: 2; } .viz-cols__list li:nth-child(4) .viz-cols__stack { --n: 3; } .viz-cols__list li:nth-child(5) .viz-cols__stack { --n: 4; } .viz-cols__list li:nth-child(6) .viz-cols__stack { --n: 5; } .viz-cols__list li:nth-child(7) .viz-cols__stack { --n: 6; } .viz-cols__list li:nth-child(8) .viz-cols__stack { --n: 7; } .viz-cols__list li:nth-child(9) .viz-cols__stack { --n: 8; } .viz-cols__list li:nth-child(10) .viz-cols__stack { --n: 9; } .viz-cols__list li:nth-child(11) .viz-cols__stack { --n: 10; } .viz-cols__list li:nth-child(12) .viz-cols__stack { --n: 11; }
@keyframes bar-up { from { transform: scaleY(0); } }
.viz-cols__stack i { display: block; min-height: 2px; flex-basis: 0; }
.viz-cols__stack i:first-child { border-radius: 4px 4px 0 0; }
.viz-cols__list b { font-family: var(--p-mono); font-size: 11.5px; font-variant-numeric: tabular-nums; visibility: hidden; align-self: end; }
.viz-cols__list b.is-shown { visibility: visible; }
.viz-cols__list small { font-size: 10.5px; color: var(--p-muted); white-space: nowrap; align-self: end; }
.viz-hbars { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.viz-hbars li { display: grid; grid-template-columns: 110px minmax(0, 1fr) 78px; align-items: center; gap: 12px; font-size: 13px; padding: 3px 0; border-radius: 6px; }
.viz-hbars--wide li { grid-template-columns: 170px minmax(0, 1fr) 78px; }
/* v1.48: thin bars on a faint track, the largest one a step darker, each one in after the one before. */
.viz-hbars__track { height: 10px; border-radius: 99px; background: rgb(28 22 19 / .06); overflow: hidden; }
.viz-hbars__track i { display: block; height: 100%; width: max(var(--w), 3px); border-radius: 0 99px 99px 0; animation: bar-in 700ms var(--ease-out) both; animation-delay: calc(var(--n, 0) * 60ms); transform-origin: left; }
.viz-hbars li.is-top .viz-hbars__track i { background: color-mix(in srgb, var(--viz-1) 82%, black); }
.viz-hbars li b { text-align: right; font-family: var(--p-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.viz-hbars li b small { margin-left: 5px; font-size: 10.5px; color: var(--p-muted); }
.viz-split { display: flex; gap: 2px; height: 18px; margin: 16px 0 14px; border-radius: 6px; overflow: hidden; background: rgb(28 22 19 / .06); }
.viz-split i { display: block; min-width: 4px; flex-basis: 0; }
.viz-legend-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.viz-legend-list li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 44px; align-items: center; gap: 10px; font-size: 13px; }
.viz-legend-list b { font-variant-numeric: tabular-nums; font-family: var(--p-display); font-weight: 800; font-size: 16px; }
.viz-legend-list small { text-align: right; font-variant-numeric: tabular-nums; }
.viz-ramp { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.viz-ramp i { width: 120px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--viz-seq-0), var(--viz-seq)); }
.viz-ramp small { font-size: 11px; }
.viz-delta { display: block; margin-top: 4px; color: var(--p-muted); line-height: 1.35; }
.viz-delta b { white-space: nowrap; font-family: var(--p-font); font-size: 12px; font-weight: 650; }
.viz-delta.is-up b { color: var(--viz-up); }
.viz-delta.is-down b { color: var(--viz-down); }
.viz-delta__vs { font-weight: 400; color: var(--p-muted); }
.viz-delta--neutral b { color: var(--p-muted); }
.viz-tip { position: fixed; z-index: 90; max-width: 240px; padding: 8px 10px; border-radius: 10px; background: var(--club-espresso); color: #fff; font-size: 12px; line-height: 1.35; pointer-events: none; box-shadow: 0 8px 24px rgb(0 0 0 / .18); animation: pop-in 160ms var(--ease-out); }
.viz-tip b { display: block; font-size: 14px; font-variant-numeric: tabular-nums; }
.viz-tip span { color: #cfc5bb; }
.viz-tip ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; }
.viz-tip li { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 6px; }
.viz-tip li i { height: 2px; border-radius: 1px; }
.viz-tip li em { font-style: normal; font-variant-numeric: tabular-nums; font-weight: 600; }

/* Responsive: desktop, iPad and phone each get their own composition. */
@media (min-width: 1450px) { .main { padding-top: 42px; } }
@media (max-width: 1280px) { .settings-editor { grid-template-columns: minmax(0, 1fr) 320px; } .pv-tabs button { font-size: 12px; } }
@media (max-width: 1150px) {
  :root { --p-side: 228px; }
  .editor { grid-template-columns: minmax(0, 1fr) 250px; }
  .main__head { align-items: flex-start; flex-direction: column; gap: 16px; }
  .grid--two { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) { .cl-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) {
  .editor, .settings-editor, .users-editor { grid-template-columns: 1fr; }
  .editor__aside { position: static; order: -1; }
  .users-editor .editor__aside, .club-home .editor__aside { order: 0; }
  .club-locations > .editor__aside { order: 2; }
  .settings-editor .brand-preview { max-width: 400px; }
  .aside-fold { background: var(--p-surface); border-radius: var(--p-radius); box-shadow: var(--glass-edge), var(--glass-shadow); }
  .aside-fold > summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-weight: 600; cursor: pointer; list-style: none; }
  .aside-fold > summary::-webkit-details-marker { display: none; }
  .aside-fold > summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--p-muted); border-bottom: 2px solid var(--p-muted); transform: rotate(45deg); transition: transform 200ms var(--ease-out); }
  .aside-fold[open] > summary::after { transform: rotate(-135deg); }
  .aside-fold[open] > summary { border-bottom: 1px solid var(--p-line); }
  .aside-fold .card { box-shadow: none; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .club-member { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth__context { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
  .auth__content { align-items: flex-start; padding: 28px 20px 40px; }
  .counter, .counter--card, .cl-grid, .cl-two, .auto-grid, .club-promo { grid-template-columns: 1fr; }
  .club-promo__side { position: static; order: -1; }
}
@media (min-width: 601px) and (max-width: 900px) { .auth__content { align-items: center; padding: 56px 32px; } .auth__card { width: min(460px, 100%); } }
@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; z-index: 20; height: auto; margin: 0; border-radius: 0 0 22px 22px; flex-direction: row; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); overflow: visible; }
  .side__store { flex: 1; flex-direction: row; text-align: left; gap: 10px; padding: 0; border: 0; min-width: 0; }
  .side__logo { width: auto; height: 40px; }
  .side__logo img { max-width: 120px; max-height: 40px; }
  .side__logo.is-light { padding: 6px 10px; }
  .side__logo.is-light img { max-height: 28px; }
  .side__logo .store-mark { width: 36px; height: 36px; font-size: 18px; border-radius: 11px; }
  .side__store:has(.side__logo img) strong { display: none; }
  .menu-toggle { display: inline-flex; }
  .side nav { width: 100%; order: 3; padding-top: 8px; border-top: 1px solid var(--p-line); transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
  @starting-style { .side nav { opacity: 0; transform: translateY(-6px); } }
  .side nav a[aria-current] { view-transition-name: none; }
  .side__user { border: 0; padding: 0; margin: 0; }
  .side__user > span, .side__account > span:nth-child(2) { display: none; }
  .side__plaque { display: none; }
  .main { padding: 20px 18px 28px; gap: 18px; }
  .main__head { flex-direction: column; align-items: stretch; }
  .main__head h1 { font-size: 28px; }
  .breadcrumb { margin-bottom: 10px; }
  .card { --card-pad: 20px; }
  table.responsive thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.responsive tr { display: block; border-bottom: 1px solid var(--p-line); padding: 14px 0; }
  table.responsive tr:last-child { border: 0; }
  table.responsive td { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; border: 0; padding: 6px 0; text-align: right; }
  table.responsive td::before { content: attr(data-label); color: var(--p-muted); font-size: 11px; margin-right: auto; }
  table.responsive td:not([data-label])::before { content: none; }
  table.responsive td.cell-actions { justify-content: flex-end; width: auto; }
  table.responsive.data-table td { padding-inline: var(--card-pad); }
  .icon-btn { width: 40px; height: 40px; }
  input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=tel], input[type=date], input[type=datetime-local], input[type=search], select, textarea { font-size: 16px; }
  .btn--small { min-height: 40px; }
  .actions--sticky { position: sticky; bottom: 10px; border-radius: 22px; }
  .savebar { position: sticky; bottom: 10px; border-radius: 22px; grid-template-columns: minmax(0, 1fr) auto; padding: 10px 12px; }
  .savebar__lead { display: none; }
  .savebar__msg { grid-column: 1 / -1; grid-row: 1; }
  .savebar__msg:has(p:not([hidden]):not(:empty)) { display: block; }
}
@media (max-width: 760px) {
  .brand-logo { grid-template-columns: 1fr; }
  .color-field { grid-template-columns: 34px minmax(0, 1fr); }
  .color-field__inputs { grid-column: 2; flex-wrap: wrap; }
  .color-field__inputs { grid-column: 1 / -1; }
  .color-field__inputs input[type=text] { flex: 1; width: auto; }
  .account-link { grid-template-columns: 40px minmax(0, 1fr); }
  .account-link .btn { grid-column: 1 / -1; }
  .orders__search, .orders__search input { width: 100%; }
  .seats { margin-left: 0; align-items: flex-start; }
  .users-editor .section-head--icon { flex-wrap: wrap; }
  .member { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .member__controls { grid-column: 2 / -1; grid-row: 2; }
  .fold > summary { padding: 16px 18px; }
  .fold__body { padding: 0 18px 18px; }
}
@media (max-width: 700px) { .stamp-options { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .stat-chip { flex-direction: column; align-items: flex-start; gap: 8px; }
  /* Re-review, H-01: in a column the text box takes the chip's width; with its inline-size container it had none (0 px). */
  .stat-chip > div { align-self: stretch; }
  .pagination__count { width: 100%; text-align: center; }
  .pagination__pages { width: 100%; margin: 0; justify-content: space-between; }
  .pagination__numbers { display: none; }
  .pagination__where { display: inline; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .club-share, .club-share--qr { grid-template-columns: 1fr; }
  .club-share--qr { justify-items: center; text-align: center; }
  .club-share__body { justify-items: stretch; text-align: left; }
  .club-goal { grid-template-columns: 1fr; padding: 14px; }
  .club-goal__n { width: 28px; height: 28px; font-size: 13px; }
  .club-stamp-form .btn { width: 100%; justify-content: center; }
  .club-nav { width: auto; margin-inline: -2px; flex-wrap: wrap; border-radius: 22px; }
  .club-nav a { padding: 7px 11px; font-size: 12.5px; }
  .loc-row { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .loc-row__actions { grid-column: 2 / -1; justify-content: flex-start; }
  .loc-search { grid-template-columns: 1fr; }
  .loc-search .btn { justify-content: center; }
  .club-map, .club-map--edit { height: 300px; }
  .club-map--wide { height: 380px; }
  .viz-cols { height: 190px; padding-left: 22px; }
  .viz-cols__grid { left: 22px; }
  .viz-cols__list { gap: 3px; }
  .viz-cols__list small { writing-mode: vertical-rl; transform: rotate(180deg); }
  .viz-cols__list li { grid-template-rows: minmax(0, 1fr) 16px 38px; }
  /* Re-review 2, H-01: the count and its share take what they need («245 · 100 %»), the bar the rest. */
  .viz-hbars li, .viz-hbars--wide li { grid-template-columns: minmax(0, 1fr) auto; }
  .viz-hbars li > span:first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .counter-balance__form { grid-template-columns: 1fr; } }
@media (max-width: 420px) {
  .card { --card-pad: 16px; }
  .main { padding-inline: 14px; }
  .actions .btn { flex-grow: 1; }
  .pagination { flex-wrap: wrap; }
  .savebar__actions .btn:not(.btn--primary) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}

/* v1.33 (MC1-R49): Pagos. One color per line of the cut, never a provider's own. */
:root { --pay-cash: #2f8a5b; --pay-point: #3b7dd8; --pay-stripe: #8a6fb0; --pay-mercadopago: #d08a1e; --pay-paypal: #6c8a96; --pay-online: #8a6fb0; --pay-credits: #b9ada1; --pay-store: #c9c0b4; }
.pay--cash, .viz-fill--cash { background: var(--pay-cash); }
.pay--point, .viz-fill--point { background: var(--pay-point); }
.pay--stripe, .viz-fill--stripe { background: var(--pay-stripe); }
.pay--mercadopago, .viz-fill--mercadopago { background: var(--pay-mercadopago); }
.pay--paypal, .viz-fill--paypal { background: var(--pay-paypal); }
.pay--online { background: var(--pay-online); }
.pay--credits { background: repeating-linear-gradient(135deg, var(--pay-credits) 0 3px, transparent 3px 5px); box-shadow: inset 0 0 0 1px var(--pay-credits); }
.pay--store { background: var(--pay-store); }
.pay-dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; }
.pay-nav { margin: -4px 0 14px; width: fit-content; background: var(--p-surface); }
.pay-nav a[aria-current] { view-transition-name: pay-tab; }
.pay-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 18px; }
.pay-period { width: fit-content; background: var(--p-surface); }
.pay-period a[aria-current], .pay-period button[aria-current] { view-transition-name: pay-period; }
.pay-period__range { font: inherit; font-size: 13px; font-weight: 600; padding: 7px 13px; border: 0; border-radius: 999px; background: transparent; color: var(--p-muted); cursor: pointer; }
.pay-period__range[aria-current] { background: var(--p-solid); color: var(--p-ink); box-shadow: 0 1px 4px rgb(28 22 19 / .14); }
.pay-step { display: flex; align-items: center; gap: 6px; }
.pay-step .btn { min-width: 34px; padding-inline: 10px; }
.pay-step span[aria-disabled] { opacity: .4; cursor: default; }
.pay-step__label { font-family: var(--p-display); font-weight: 600; font-size: 15px; padding: 0 4px; white-space: nowrap; }
.pay-bar__end { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.pay-bar__end .club-segments { padding: 0; }
.pay-branch select, .pay-sheet__platform select { min-height: 34px; padding-block: 6px; font-size: 12.5px; border-radius: 999px; }
.pay-pick { position: relative; display: none; }
.pay-pick__button { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 36px 6px 14px; border: 1px solid var(--p-line-strong); border-radius: 999px; background: rgb(255 255 255 / .75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236f635a' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center; box-shadow: var(--glass-edge); color: var(--p-ink); font: 400 12.5px var(--p-font); white-space: nowrap; cursor: pointer; }
.pay-pick__button:hover { border-color: rgb(28 22 19 / .28); }
.pay-pick__list { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 100%; max-height: 320px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: var(--p-solid); border: 1px solid var(--p-line-strong); border-radius: 14px; box-shadow: 0 14px 32px rgb(28 22 19 / .14); }
.pay-pick__list [role=option] { position: relative; padding: 9px 14px 9px 30px; border-radius: 9px; font: 400 14px var(--p-font); color: var(--p-ink); white-space: nowrap; cursor: pointer; }
.pay-pick__list [role=option]:hover, .pay-pick__list [role=option]:focus { background: rgb(200 150 106 / .14); outline: none; }
.pay-pick__list [role=option][aria-selected=true]::before { content: ''; position: absolute; left: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--club-caramel); }
@media (min-width: 1001px) {
  .pay-pick { display: inline-block; }
  select.has-pick { display: none; }
}
.pay-test-note { margin: -6px 0 16px; font-size: 12.5px; color: var(--p-muted); }
.pay-test-note b { margin-right: 6px; padding: 2px 8px; border-radius: 99px; background: var(--p-warn-bg); color: var(--p-warn); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.pay-dialog__card { display: grid; gap: 14px; padding: 24px; }
.pay-dialog__card h2 { margin: 0; font-size: 17px; }
.pay-dialog__card .club-segments { padding: 0; }
.pay-chip { font: inherit; font-size: 12.5px; padding: 5px 11px; border: 1px solid var(--p-line-strong); border-radius: 99px; background: rgb(255 255 255 / .5); color: var(--p-ink); cursor: pointer; }
.pay-chip:hover { border-color: var(--p-accent); background: var(--p-solid); }
.pay-dialog__dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pay-dialog__hint { margin: 0; font-size: 12.5px; color: var(--p-muted); }
.pay-dialog .confirm__actions { margin-top: 0; }
.pay-exports { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.pay-export { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--p-line-strong); border-radius: 14px; cursor: pointer; background: rgb(255 255 255 / .55); }
.pay-export:has(input:checked) { border-color: var(--p-ink); background: var(--p-solid); }
.pay-export input { margin-top: 3px; accent-color: var(--p-ink); }
.pay-export span { display: grid; gap: 2px; }
.pay-export b { font-size: 13.5px; }
.pay-export small { font-size: 12px; color: var(--p-muted); }

.pay-cut { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 18px; align-items: start; }
.pay-side { display: grid; gap: 18px; min-width: 0; }
.pay-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pay-ticket-wrap { position: sticky; top: 18px; filter: drop-shadow(0 14px 28px rgb(28 22 19 / .12)); }
.pay-ticket { position: relative; overflow: hidden; padding: 26px 22px 22px; background: #fffdf9; color: var(--p-ink);
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 0 0 / 14px 7px repeat-x, linear-gradient(#000 0 0) 0 7px / 100% 100% no-repeat;
  mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 0 0 / 14px 7px repeat-x, linear-gradient(#000 0 0) 0 7px / 100% 100% no-repeat; }
.pay-ticket__band { position: absolute; top: 22px; right: -42px; transform: rotate(35deg); padding: 3px 48px; background: var(--p-warn-bg); color: var(--p-warn); font-family: var(--p-mono); font-size: 11px; letter-spacing: .2em; }
.pay-ticket__head { text-align: center; padding-bottom: 14px; border-bottom: 1px dashed var(--p-line-strong); }
.pay-ticket__head small { font-family: var(--p-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--p-muted); }
.pay-ticket__head h2 { margin: 4px 0 2px; font-family: var(--p-display); font-size: 20px; font-weight: 800; }
.pay-ticket__head p { margin: 0; font-size: 13px; color: var(--p-muted); }
.pay-ticket__total:has(.pay-stamp) { min-height: 104px; }
.pay-stamp { position: absolute; top: 2px; right: 4px; display: grid; justify-items: center; gap: 2px; transform: rotate(-9deg); pointer-events: none; opacity: .85; }
/* The kit's emblem as caramel ink: its dark lines turn caramel, its white body vanishes into the paper. */
.pay-stamp__ink { position: relative; display: block; width: 72px; height: 72px; isolation: isolate; mix-blend-mode: multiply; }
.pay-stamp__ink img { display: block; width: 72px; height: 72px; }
.pay-stamp__ink::after { content: ''; position: absolute; inset: 0; background: var(--club-caramel-deep); mix-blend-mode: screen; mask: url("mochaclub-sello-espresso.png") center / contain no-repeat; }
.pay-ticket__total .pay-stamp span { font: 500 9.5px var(--p-mono); letter-spacing: .08em; text-transform: none; color: var(--club-caramel-deep); white-space: nowrap; }
.pay-stamp--fresh { animation: pay-stamp 420ms cubic-bezier(.2, .7, .3, 1) 300ms both; }
@keyframes pay-stamp { from { opacity: 0; transform: rotate(-9deg) scale(1.6); } to { opacity: .85; transform: rotate(-9deg) scale(1); } }
.pay-ticket__empty { margin: 14px 0 0; padding: 12px; border: 1px dashed var(--p-line-strong); border-radius: 10px; font-size: 13px; color: var(--p-muted); text-align: center; text-wrap: pretty; }
.pay-ticket.is-empty > .pay-ticket__lines:not(.pay-ticket__outside), .pay-ticket.is-empty .pay-ticket__total, .pay-ticket.is-empty .pay-ticket__voided { opacity: .45; }
.pay-ticket__lines { margin: 14px 0 0; display: grid; gap: 7px; }
.pay-ticket__lines > div { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; }
.pay-ticket__line dt { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.pay-ticket__line dt small { color: var(--p-muted); font-family: var(--p-mono); font-size: 11px; }
.pay-ticket__line::after { content: ''; order: 1; flex: 1; border-bottom: 1px dotted var(--p-line-strong); transform: translateY(-3px); }
.pay-ticket__line dd { order: 2; margin: 0; font-family: var(--p-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.pay-ticket__line.is-sub dt { padding-left: 14px; }
.pay-ticket__line.is-zero { color: var(--p-muted); }
.pay-ticket__group dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--p-muted); font-weight: 650; }
.pay-ticket__gap { height: 2px; }
.pay-ticket__total { position: relative; margin-top: 16px; padding-top: 12px; border-top: 3px double var(--p-ink); display: grid; gap: 2px; }
.pay-ticket__total span { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 650; color: var(--p-muted); }
.pay-ticket__total b { font-family: var(--p-mono); font-weight: 500; font-size: 34px; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pay-ticket__total b small { font-size: .72em; color: var(--p-faint); }
.pay-ticket__voided { display: flex; justify-content: space-between; gap: 8px; margin: 6px 0 0; font-family: var(--p-mono); font-weight: 400; font-size: 12px; color: var(--p-muted); }
.pay-ticket__voided a { color: inherit; }
.pay-ticket__perf { position: relative; display: flex; justify-content: center; align-items: baseline; gap: 8px; margin: 20px -22px 0; padding-top: 12px; border-top: 2px dashed var(--p-line-strong); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--p-muted); font-weight: 650; }
.pay-ticket__perf small { font-family: var(--p-mono); font-size: 11px; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--p-warn); }
.pay-ticket__outside { margin-top: 10px; }
.pay-ticket__outside > div { font-size: 12.5px; color: var(--p-muted); }
.pay-ticket__foot { margin: 16px 0 0; font-family: var(--p-mono); font-size: 10.5px; color: var(--p-faint, var(--p-muted)); text-align: center; }
.pay-cols .viz-cols__list { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: clamp(1px, .6vw, 6px); }
.pay-cols .viz-cols__list li { position: relative; }
.pay-cols .viz-cols__list small:not(.is-tick) { visibility: hidden; }
.pay-cols__before { position: absolute; bottom: 38px; left: 50%; width: min(100%, 24px); height: calc((100% - 38px) * var(--v) / 100); transform: translateX(-50%); border: 1px dashed rgb(28 22 19 / .3); border-radius: 4px 4px 0 0; pointer-events: none; }
.pay-cols__dot { position: absolute; bottom: calc(38px + (100% - 38px) * var(--v) / 100 - 4px); left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--p-solid); box-shadow: inset 0 0 0 2px var(--p-ink); pointer-events: none; }
.pay-where a { color: var(--p-ink); text-decoration: none; }
.pay-where a:hover { text-decoration: underline; }
.pay-where b { font-family: var(--p-mono); font-weight: 500; font-size: 13.5px; }
.pay-where__more { margin: 14px 0 0; font-size: 12.5px; color: var(--p-muted); }
.pay-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-bottom: 14px; }
.pay-count { margin: 0 0 0 auto; font-size: 13px; color: var(--p-muted); }
.pay-count b { color: var(--p-ink); font-variant-numeric: tabular-nums; }
.pay-moves td.num { font-family: var(--p-mono); font-weight: 500; white-space: nowrap; }
.pay-moves time, .pay-moves th, .pay-moves td[data-label=Sucursal], .pay-moves td[data-label=Personal], .pay-moves td[data-label=Tarjeta] { white-space: nowrap; }
.pay-moves small { color: var(--p-muted); font-size: 12px; }
.pay-origin { display: inline-flex; align-items: center; gap: 7px; }
.pay-link { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; }
.pay-moves small.pay-ref { display: inline-block; max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; font-size: 11px; color: var(--p-faint); }
.pay-open { min-width: 32px; min-height: 32px; justify-content: center; }
.pay-moves__meta, .pay-moves__why { display: none; }
.pay-filter-open__n { min-width: 18px; padding: 0 5px; border-radius: 99px; background: var(--p-ink); color: #fff; font: 600 11px/18px var(--p-mono); text-align: center; }
/* The filter sheet sits inline above a phone: the dialog is just its box. */
@media (min-width: 801px) {
  dialog.pay-sheet { display: block; position: static; inset: auto; width: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; overflow: visible; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; animation: none; color: inherit; }
  .pay-sheet .pay-sheet__card { display: block; padding: 0; }
  .pay-sheet__title, .pay-sheet__actions, .pay-filter-open { display: none !important; }
  .pay-sheet__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .pay-sheet .pay-sheet__card .club-segments { padding: 0 0 12px; }
  .pay-sheet__platform { padding-bottom: 14px; }
  .pay-sheet__platform select { width: auto; max-width: 100%; }
}
.pay-platforms { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.pay-platform { display: flex; flex-direction: column; gap: 12px; }
.pay-platform.is-off { opacity: .62; }
.pay-platform__head { display: flex; align-items: center; gap: 10px; }
.pay-platform__head > div { flex: 1; min-width: 0; }
.pay-platform__head h2 { margin: 0; }
.pay-platform__head small { font-size: 12px; color: var(--p-muted); }
.pay-platform__total { margin: 0; display: grid; }
.pay-platform__total b { font-family: var(--p-display); font-weight: 800; font-size: 26px; font-variant-numeric: tabular-nums; }
.pay-platform__total small { font-size: 12px; color: var(--p-muted); }
.pay-platform__bar { margin: 0; height: 10px; }
.pay-state--ok { background: var(--p-ok); } .pay-state--warn { background: var(--p-warn); } .pay-state--bad { background: var(--p-bad); } .pay-state--off { background: var(--p-line-strong); }
.pay-platform__states { margin: 0; display: grid; gap: 6px; }
.pay-platform__states div { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pay-platform__states dd { margin: 0; font-family: var(--p-mono); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pay-platform__last { margin: 0; font-size: 12.5px; color: var(--p-muted); }
.pay-platform__do { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: auto; }
.pay-platform__hint { font-size: 12px; color: var(--p-muted); }
/* The sidebar takes ~230px above 800px: the cut and the movements need the room of a wide screen to sit side by side. */
@media (max-width: 1180px) {
  .pay-cut { grid-template-columns: 1fr; }
  .pay-ticket-wrap { position: static; max-width: 460px; width: 100%; justify-self: center; }
  table.pay-moves, table.pay-moves tbody { display: block; }
  table.pay-moves thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.pay-moves tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "what amount open" "when state open"; gap: 4px 12px; align-items: center; padding: 10px var(--card-pad); border-bottom: 1px solid var(--p-line); }
  table.pay-moves tr:last-child { border: 0; }
  table.data-table.pay-moves td { display: block; min-width: 0; padding: 0; border: 0; }
  table.data-table.pay-moves .pay-moves__wide, .pay-moves .pay-moves__reason { display: none; }
  table.data-table.pay-moves .pay-moves__what { grid-area: what; display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
  .pay-moves__what .pay-origin { min-width: 0; }
  .pay-moves .pay-origin__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pay-moves__what .chip { flex: none; padding: 2px 7px; font-size: 10.5px; }
  .pay-moves__amount { grid-area: amount; text-align: right; }
  .pay-moves__when { grid-area: when; align-self: start; font-size: 12px; color: var(--p-muted); }
  .pay-moves__when time { white-space: normal; }
  .pay-moves__state { grid-area: state; align-self: start; justify-self: end; }
  .pay-moves__state .chip { padding: 2px 9px; font-size: 11.5px; }
  .pay-moves__open { grid-area: open; align-self: center; }
  .pay-moves .pay-moves__meta { display: inline; }
  .pay-moves .pay-moves__why { display: block; margin-top: 2px; }
}
@media (max-width: 1000px) {
  .pay-bar__end { margin-left: 0; }
}
@media (max-width: 800px) {
  .pay-bar { gap: 8px; }
  .pay-step { width: 100%; justify-content: space-between; }
  .pay-count { margin-left: 0; width: 100%; }
  .pay-dialog__dates { grid-template-columns: 1fr; }
  .pay-cols__before, .pay-cols__dot { display: none; }
  .pay-ticket__total b { font-size: 30px; }
  .pay-chips { grid-template-columns: 1fr; }
  .pay-chips > :not(.pay-chip--keep) { display: none; }
  .pay-open { min-width: 44px; min-height: 44px; }
  .pay-moves small.pay-ref { display: none; }
  table.pay-moves tr { grid-template-columns: minmax(0, 1fr) auto 44px; }
  dialog.pay-dialog { width: 100%; max-width: 100%; max-height: calc(100dvh - 24px); margin: auto 0 0; border-radius: 22px 22px 0 0; overflow-y: auto; }
  dialog.pay-dialog[open] { animation: pay-sheet-in 280ms var(--ease-out); }
  .pay-dialog__card { padding: 22px 16px calc(14px + env(safe-area-inset-bottom)); }
  .pay-dialog .confirm__actions { position: sticky; bottom: calc(-14px - env(safe-area-inset-bottom)); margin-inline: -16px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); margin-bottom: calc(-14px - env(safe-area-inset-bottom)); background: var(--p-surface-strong); }
  .pay-dialog .confirm__actions .btn { flex: 1; min-height: 44px; justify-content: center; }
  .pay-sheet .club-segments { padding: 0; }
  .pay-sheet .club-segments a { min-height: 44px; padding: 8px 14px; font-size: 14px; }
  .pay-sheet__label { font-size: 12.5px; color: var(--p-muted); }
  .pay-sheet__platform { display: grid; gap: 6px; }
  .pay-sheet__platform select { min-height: 44px; font-size: 16px; }
  .pay-cols .viz-cols__list li { grid-template-rows: minmax(0, 1fr) 18px 20px; }
  .pay-cols .viz-cols__list small { writing-mode: horizontal-tb; transform: none; visibility: hidden; }
  .pay-cols .viz-cols__list small.is-edge { visibility: visible; }
}
@keyframes pay-sheet-in { from { opacity: 0; transform: translateY(48px); } }
@media (prefers-reduced-motion: reduce) { .pay-stamp--fresh { animation: none; } }

/* v1.35: Ajustes → Tu plan. */
/* Plan (v1.41): the hero says what you pay and when; the change form is three numbered steps and an outcome box that
   says, before any press, whether it is charged today or waits for the end of the paid period. */
.plan-page { max-width: 860px; }
.plan-page .card > *, .plan-step > *, .plan-step .field > *, .plan-outcome > * { min-width: 0; max-width: 100%; }
.plan-hero__head { min-width: 0; flex: 1; }
.plan-hero__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 6px 0 4px; }
.plan-hero__price b { font-family: var(--p-display); font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.plan-hero__price > span { font-size: 14px; color: var(--p-muted); }
.plan-hero__price small { flex-basis: 100%; font-family: var(--p-mono); font-size: 12px; color: var(--p-muted); }
.plan-pending { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 16px 0 0; padding: 14px 16px; border-radius: var(--p-radius-sm); background: color-mix(in srgb, var(--p-warn-bg) 85%, white); border: 1px solid color-mix(in srgb, var(--p-warn) 22%, transparent); color: var(--p-warn); font-size: 13px; }
.plan-pending > div { flex: 1 1 320px; min-width: 0; }
.plan-pending p { margin: 4px 0 0; color: var(--p-ink); }
.plan-stats { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.plan-stats li { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--p-radius-sm); background: rgb(28 22 19 / .04); box-shadow: var(--glass-edge); }
.plan-stats b { font-family: var(--p-display); font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.plan-stats span { font-size: 12px; color: var(--p-muted); line-height: 1.4; }
.plan-fold { margin: 14px 0 0; }
.plan-fold summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--p-muted); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.plan-fold summary::-webkit-details-marker { display: none; }
.plan-fold summary::before { content: ''; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .2s; }
.plan-fold[open] summary::before { transform: rotate(45deg); }
.plan-feature-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 18px; font-size: 13px; }
.plan-feature-list li { display: flex; gap: 8px; align-items: baseline; }
.plan-feature-list li::before { content: '✓'; color: var(--p-ok); font-weight: 700; }
.plan-feature-list li.is-off { color: var(--p-faint); }
.plan-feature-list li.is-off::before { content: '–'; color: var(--p-faint); }
.plan-feature-list small { color: var(--p-faint); }
.plan-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.plan-step { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; }
.plan-step__n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--p-brand); color: var(--p-brand-ink); font-family: var(--p-mono); font-size: 12px; font-weight: 600; margin-top: 2px; }
.plan-step .field { margin: 0; }
.field__label { display: block; font-weight: 600; font-size: 14px; }
.field__label small { display: block; font-weight: 400; font-size: 12.5px; color: var(--p-muted); margin-top: 2px; line-height: 1.5; }
.option--plain { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; }
.option--plain > span { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.option--plain > span small { font-size: 12.5px; color: var(--p-muted); }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 10px; }
.plan-card { position: relative; display: block; border: 1.5px solid var(--p-line-strong); border-radius: var(--p-radius-sm); background: rgb(255 255 255 / .5); cursor: pointer; transition: border-color .15s, background-color .15s, transform 160ms var(--ease-out); }
.plan-card:active { transform: scale(.99); }
.plan-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.plan-card__body { display: grid; gap: 4px; padding: 14px 16px 16px; }
.plan-card__body > b { font-family: var(--p-display); font-size: 17px; font-weight: 600; }
.plan-card__body > .pill { justify-self: start; }
.plan-card__price { font-family: var(--p-display); font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.plan-card__price small { font-family: var(--p-mono); font-size: 11px; font-weight: 500; color: var(--p-muted); letter-spacing: 0; }
.plan-card__who { font-size: 12.5px; color: var(--p-muted); line-height: 1.45; }
.plan-card.is-current { border-style: dashed; }
.plan-card:has(input:checked) { border-color: var(--p-brand); border-style: solid; background: var(--p-solid); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p-brand) 18%, transparent); }
.plan-card:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--p-accent) 60%, transparent); outline-offset: 2px; }
.stepper { display: inline-flex; max-width: 100%; align-items: stretch; margin-top: 8px; border-radius: var(--p-radius-sm); border: 1.5px solid var(--p-line-strong); background: rgb(255 255 255 / .5); overflow: hidden; }
.stepper__btn { width: 46px; border: 0; background: transparent; color: var(--p-ink); font: 600 20px var(--p-display); cursor: pointer; transition: background-color .15s; }
.stepper__btn:hover { background: rgb(28 22 19 / .05); }
.stepper input { width: 64px; min-height: 46px; text-align: center; border: 0; border-left: 1.5px solid var(--p-line); border-right: 1.5px solid var(--p-line); border-radius: 0; background: transparent; font: 600 18px var(--p-display); color: var(--p-ink); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus-visible { outline: none; background: color-mix(in srgb, var(--p-accent) 10%, white); }
.stepper__note { align-self: center; min-width: 0; padding: 0 14px 0 10px; font-family: var(--p-mono); font-size: 12px; line-height: 1.35; color: var(--p-muted); }
.plan-outcome { margin-top: 4px; padding: 16px 18px; border-radius: var(--p-radius-sm); border: 1.5px solid var(--p-line-strong); background: rgb(28 22 19 / .03); transition: border-color .2s, background-color .2s; }
.plan-outcome[data-tone="now"] { border-color: color-mix(in srgb, var(--p-ok) 35%, transparent); background: color-mix(in srgb, var(--p-ok-bg) 70%, white); }
.plan-outcome[data-tone="later"] { border-color: color-mix(in srgb, var(--p-warn) 35%, transparent); background: color-mix(in srgb, var(--p-warn-bg) 70%, white); }
.plan-outcome[data-tone="scheduled"] { border-color: color-mix(in srgb, var(--p-info) 35%, transparent); background: color-mix(in srgb, var(--p-info-bg) 70%, white); }
.plan-outcome__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; }
.plan-outcome__head b { font-family: var(--p-display); font-size: 16px; font-weight: 600; }
.plan-outcome__price { font-family: var(--p-display); font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.plan-outcome p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--p-ink); }
.plan-outcome__diff { display: grid; gap: 2px; font-size: 12.5px; color: var(--p-muted); }
.plan-outcome__diff em { font-style: normal; font-weight: 600; color: var(--p-ink); margin-right: 6px; }
@media (max-width: 640px) {
  .plan-stats { grid-template-columns: 1fr; gap: 8px; }
  .plan-stats li { grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 10px; padding: 10px 14px; }
  .plan-step { grid-template-columns: 24px minmax(0, 1fr); gap: 10px; }
  .plan-step__n { width: 24px; height: 24px; font-size: 11px; }
  .stepper { display: flex; }
  .stepper input { flex: 1; width: 40px; }
  .stepper__note { flex: 0 1 auto; padding-right: 10px; }
  .plan-outcome__head b, .plan-outcome__price { overflow-wrap: anywhere; }
  .plan-pending form { width: 100%; }
  .plan-pending .btn { width: 100%; }
}


/* v1.48: Inicio with more life. The ring of what is done, the next step pointed at (the arrow comes in and nudges twice, then
   rests), the tiles and the cards one after another, the weeks' average as a hairline, a donut for the Wallets, a sparkline in
   the visits tile. Only transform and opacity move; with reduced motion the final frame shows at once. */
.ring { position: relative; display: inline-grid; place-items: center; width: 52px; height: 52px; flex: none; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; stroke-linecap: round; }
.ring__track { stroke: rgb(28 22 19 / .1); }
.ring__bar { stroke: var(--p-ok); stroke-dasharray: var(--c); stroke-dashoffset: calc(var(--c) * (1 - var(--p))); animation: ring-in 900ms var(--ease-out) 200ms both; }
@keyframes ring-in { from { stroke-dashoffset: var(--c); } }
.ring b { font-family: var(--p-mono); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.club-welcome__head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.club-welcome__head > div { display: grid; gap: 10px; }
.club-steps__item.is-next { border-color: var(--p-brand); background: var(--p-solid); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p-brand) 14%, transparent); }
.club-steps__here { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 2px 8px 2px 6px; border-radius: 99px; background: var(--p-brand); color: var(--p-brand-ink); font-size: 11.5px; font-weight: 600; vertical-align: 2px; animation: nudge 1.6s var(--ease-out) 500ms both; }
.club-steps__here svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dash-next { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; align-items: center; padding: 14px 18px; margin-bottom: 16px; animation: page-in 500ms var(--ease-out) both; }
.dash-next__text { display: grid; }
.dash-next__text b { font-size: 15px; }
.dash-next__text small { color: var(--p-muted); font-size: 12.5px; }
.dash-next__steps { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.dash-next__arrow { display: inline-grid; place-items: center; width: 24px; height: 24px; color: var(--p-brand-text); animation: nudge 1.6s var(--ease-out) 400ms both; }
.dash-next__arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes nudge { 0% { transform: translateX(-14px); opacity: 0; } 30% { transform: translateX(0); opacity: 1; } 50% { transform: translateX(5px); } 68% { transform: translateX(0); } 84% { transform: translateX(4px); } 100% { transform: translateX(0); opacity: 1; } }
.pill-link.is-next { border-color: var(--p-brand); background: var(--p-brand); color: var(--p-brand-ink); box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--p-brand) 80%, transparent); }
.pill-link.is-next:hover { background: var(--p-brand); border-color: var(--p-brand); }
.cl-kpis .stat-chip { animation: page-in 500ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
.cl-grid .cl-card { animation: page-in 520ms var(--ease-out) both; animation-delay: 120ms; }
.cl-col { display: grid; gap: 18px; align-content: start; }
.cl-col > .cl-card:nth-child(2) { animation-delay: 220ms; }
.cl-col > .cl-card:nth-child(3) { animation-delay: 320ms; }
.chart-summary { margin: 8px 0 0; font-size: 13px; color: var(--p-muted); line-height: 1.5; }
.chart-summary > b { color: var(--p-ink); font-family: var(--p-display); font-weight: 800; font-size: 17px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.chart-summary .viz-delta { display: inline; margin-left: 8px; }
/* --y is a fraction (0.354): a length times a percentage is no calc() at all, and the line went to the top. */
.viz-cols__avg { position: absolute; left: 28px; right: 0; bottom: calc(38px + (100% - 38px) * var(--y)); border-top: 1px solid color-mix(in srgb, var(--p-ink) 38%, transparent); pointer-events: none; }
.viz-cols__avg em { position: absolute; right: 0; bottom: 2px; padding: 0 5px; border-radius: 4px; background: var(--p-solid); font: 500 10.5px var(--p-mono); font-style: normal; color: var(--p-muted); }
.viz-cols__stack { transition: filter .15s; }
.viz-cols__stack:hover, .viz-cols__stack:focus-visible { filter: brightness(1.12); }
/* The column the keyboard is on has its ring, not just the tooltip (e2e 2026-10-29, 2nd run, idea). */
.viz-cols__stack:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 3px; border-radius: 3px; }
.viz-donut-wrap { position: relative; width: min(100%, 196px); margin: 14px auto 6px; }
.viz-donut { display: block; width: 100%; height: auto; transform: rotate(-90deg); overflow: visible; }
.viz-donut circle { fill: none; stroke-width: 14; }
.viz-donut__track { stroke: rgb(28 22 19 / .07); }
.viz-donut__seg { animation: donut-in 900ms var(--ease-out) both; animation-delay: calc(120ms + var(--n, 0) * 110ms); transition: stroke-width .15s; cursor: default; }
.viz-donut__seg:hover, .viz-donut__seg:focus-visible { stroke-width: 17; outline: none; }
@keyframes donut-in { from { stroke-dasharray: 0 400; } }
.viz-donut__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.viz-donut__center b { font-family: var(--p-display); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.viz-donut__center small { margin-top: 5px; font-size: 11.5px; color: var(--p-muted); }
.cl-card--wallets .viz-legend-list { margin-top: 12px; }
.viz-spark { display: flex; align-items: flex-end; gap: 2px; height: 20px; margin-top: 7px; max-width: 150px; }
.viz-spark i { flex: 1; min-width: 3px; height: max(var(--h), 8%); border-radius: 2px 2px 0 0; background: var(--p-info); opacity: .5; transform-origin: bottom; animation: bar-up 600ms var(--ease-out) 300ms both; }
.viz-spark i:last-child { opacity: 1; }
@media (max-width: 900px) { .cl-col { display: contents; } .dash-next { grid-template-columns: auto minmax(0, 1fr); } .dash-next__steps { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { .ring__bar, .club-steps__here, .dash-next, .dash-next__arrow, .cl-kpis .stat-chip, .cl-grid .cl-card, .viz-donut__seg, .viz-spark i, .viz-hbars__track i { animation: none; } }
/* v1.48: on a phone the four tiles keep two columns without their icons, and the weeks show every other date. */
@media (max-width: 600px) {
  .cl-kpis { gap: 10px; }
  .cl-kpis .stat-chip { padding: 12px 14px; gap: 0; }
  .cl-kpis .stat-chip__icon { display: none; }
  .cl-kpis .stat-chip small { font-size: 11.5px; }
  .viz-cols__list li:nth-child(even) small { visibility: hidden; }
  .viz-cols__avg em { display: none; }
}
