/* Roup: membership-card studio. Native controls, local assets, tenant-owned card colors. */
:root {
  --blue: #244d3f;
  --blue-dark: #163a2d;
  --blue-tint: #e8efe8;
  --ink: #202822;
  --ink-soft: #4c5850;
  --muted: #626b65;
  --line: #dce2dc;
  --line-soft: #edf0eb;
  --bg: #f7f8f5;
  --card: #fff;
  --stage: #e2ebdf;
  --danger: #a3251f;
  --danger-bg: #fdf1f0;
  --ok: #245a3d;
  --ok-bg: #edf5ed;
  --warn: #795016;
  --warn-bg: #faf4e8;
  --radius: 12px;
  --radius-lg: 16px;
  --tap: 44px;
  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 12px 28px -16px rgb(25 40 29 / .3);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #a3b2a4 var(--bg); }
body { margin: 0; color: var(--ink); background: var(--bg); font: 15px/1.5 var(--font); }
[hidden] { display: none !important; }
::selection { background: #caddc9; color: #163a2d; }
a { color: var(--blue); text-underline-offset: 3px; }
input, textarea { caret-color: var(--blue); }
h1, h2 { line-height: 1.2; letter-spacing: -.03em; text-wrap: balance; }
h1 { font-size: clamp(26px, 3.2vw, 36px); margin: 0 0 12px; font-weight: 600; }
h2 { font-size: 18px; margin: 28px 0 12px; font-weight: 600; }
code { font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; }
:focus-visible { outline: 3px solid #46785b; outline-offset: 3px; border-radius: 5px; }
main { min-height: calc(100vh - 76px); }
main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; padding: 12px 20px; background: var(--blue); color: #fff; z-index: 100; }
.skip:focus { left: 0; }

/* Stable app shell; navigation always tells the current location. */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 40px; min-height: 76px; padding: 12px clamp(20px, 4vw, 64px); background: var(--card); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.brand-word { font-size: 28px; font-weight: 650; line-height: 1; letter-spacing: -.04em; }
.brand-dot { color: #528760; }
.mark { display: none; }
.topnav { display: flex; align-items: center; gap: 6px; }
.navlink { min-height: var(--tap); padding: 10px 14px; border: 0; border-radius: 8px; font: inherit; font-size: 14px; background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap; }
.navlink:hover { background: var(--line-soft); color: var(--ink); }
.navlink[aria-current="page"] { background: var(--blue-tint); color: var(--blue-dark); font-weight: 600; }
.topbar-end { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.pilot-label { font-size: 12px; color: var(--muted); white-space: nowrap; }
#signOut { min-height: 38px; padding: 7px 13px; font-size: 13px; }
.tenant-picker { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.tenant-picker select { min-height: 38px; max-width: 180px; font-size: 13px; }
.view { padding: 40px clamp(20px, 4vw, 64px) 64px; }
.narrow { max-width: 480px; margin: 0 auto; }
#view-login { padding-top: clamp(36px, 8vh, 88px); }
#view-login .panel h1 { font-size: 32px; }
#view-login .btn-primary { width: 100%; }
.login-start { margin: 24px 0 0; text-align: center; font-size: 14px; }
#view-login .fineprint { text-align: center; }
.wide { max-width: 960px; margin: 0 auto; }
.workspace { display: grid; gap: 36px; max-width: 1040px; margin: 0 auto; }
.panel { padding: clamp(24px, 4vw, 36px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.lede { color: var(--ink-soft); margin: 0 0 24px; line-height: 1.65; }
.muted { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.fineprint { color: var(--muted); font-size: 12px; margin: 18px 0 0; line-height: 1.65; }
.splash-card { max-width: 420px; margin: 18vh auto 0; text-align: center; color: var(--ink-soft); }

/* Forms: one control family, native validation and keyboard affordances. */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; min-width: 0; }
.field label, .reversal-form label { font-size: 13px; font-weight: 550; color: var(--ink); }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], input[type="tel"], input[type="date"], input[type="month"], input[type="time"], input[type="datetime-local"], select, textarea { width: 100%; min-width: 0; min-height: var(--tap); padding: 10px 13px; border: 1px solid #cbd4cb; border-radius: 8px; background: var(--card); color: var(--ink); font: 16px/1.4 var(--font); transition: border-color .16s; }
input::placeholder, textarea::placeholder { color: #6b756d; opacity: 1; }
input:hover:not(:disabled), select:hover:not(:disabled) { border-color: #9bad9c; }
input:disabled, select:disabled { color: var(--muted); background: #edf0eb; }
input[aria-invalid="true"], input:user-invalid { border-color: var(--danger); }
input[type="color"], input[type="file"] { min-height: var(--tap); max-width: 100%; font: inherit; }
#programForm .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 0; }
.fieldset { margin: 0 0 18px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.fieldset legend { font-size: 13px; font-weight: 550; padding: 0 5px; }
.check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; font-size: 13px; line-height: 1.55; color: var(--ink-soft); }
.check:last-child { margin-bottom: 0; }
.check input, #setupConsent { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); }
.field label:has(#setupConsent) { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; line-height: 1.6; color: var(--ink-soft); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.actions-stack { flex-direction: column; }
.actions-stack > .btn-primary { width: 100%; }
.inline-form { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.inline-form .actions { margin-top: 4px; }
.btn-primary, .btn-quiet { min-height: var(--tap); padding: 11px 18px; border: 1px solid transparent; border-radius: 8px; font: 550 14px/1.4 var(--font); cursor: pointer; transition: background-color .16s, border-color .16s; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--blue); }
.btn-quiet { color: var(--ink); background: var(--card); border-color: #cbd4cb; }
.btn-quiet:hover:not(:disabled) { color: var(--blue-dark); background: var(--blue-tint); border-color: #afc1ad; }
.btn-primary:disabled, .btn-quiet:disabled { opacity: .55; cursor: not-allowed; }
.linklike { padding: 0; border: 0; font: inherit; color: var(--blue); background: none; text-decoration: underline; cursor: pointer; }
.form-error, .pending-note { padding: 12px 14px; margin: 12px 0 0; border-radius: 8px; font-size: 13px; line-height: 1.6; }
.form-error { background: var(--danger-bg); color: var(--danger); }
.pending-note { color: var(--warn); background: var(--warn-bg); }
.howto { margin-bottom: 18px; font-size: 14px; color: var(--ink-soft); }
.howto summary { min-height: 32px; color: var(--blue); cursor: pointer; }
.empty { padding: 24px; border: 1px dashed #b9c7b9; border-radius: var(--radius); background: var(--card); }
.empty p { margin: 0 0 6px; }
.empty-help { color: var(--muted); font-size: 14px; }

/* Business setup, the same studio before the first card exists. */
.setup-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start; gap: 0 clamp(40px, 7vw, 110px); max-width: 1080px; margin: 20px auto; }
.setup-story { padding-top: 24px; }
.setup-form-panel { grid-column: 2; grid-row: 1 / span 2; }
.setup-support { grid-column: 1; min-width: 0; }
.setup-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.setup-fields + .setup-fields { margin-top: 10px; }
.setup-fields legend { padding: 0; margin-bottom: 16px; color: var(--ink-soft); font-size: 14px; font-weight: 600; }
#setupLinkPreview { display: block; padding-top: 5px; color: var(--blue-dark); font-size: 13px; overflow-wrap: anywhere; }
#setupSlugHint br { display: none; }
.setup-story h1 { max-width: 12ch; font-size: clamp(38px, 4.2vw, 56px); font-weight: 550; line-height: 1.08; margin-bottom: 24px; }
.setup-story .lede { max-width: 38ch; font-size: 17px; }
.setup-steps { list-style: none; padding: 0; margin: 32px 0; counter-reset: journey; }
.setup-steps li { counter-increment: journey; position: relative; display: grid; gap: 3px; padding: 0 0 24px 44px; }
.setup-steps li::before { content: counter(journey); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--stage); color: var(--blue-dark); font-size: 12px; }
.setup-steps span { color: var(--muted); font-size: 13px; }
.example-invitation { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; padding: 24px 0 0; border-top: 1px solid var(--line); }
.example-invitation img { border-radius: 10px; }
.example-invitation p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.example-invitation button { grid-column: 1 / -1; justify-self: start; font-size: 13px; }
.setup-form-panel h2 { margin: 0 0 6px; font-size: 23px; }
.setup-form-panel .lede { font-size: 14px; margin-bottom: 18px; }
.setup-form-panel .pending-note { margin-bottom: 24px; font-size: 12px; }
.setup-form-panel > .fineprint { text-align: center; }
.setup-form-panel .btn-primary, #joinSubmit { width: 100%; }

/* The editor is a property sheet beside a real-sized membership card. */
.designer-shell { max-width: 1200px; margin: 0 auto; }
.program-catalogue { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.catalogue-toolbar { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.catalogue-toolbar .field { flex: 1 1 250px; margin: 0; }
.new-program-form { max-width: 640px; padding-top: 28px; }
.new-program-form .actions { margin-top: 14px; }
.designer-intro { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 28px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.designer-intro h1 { margin: 0 0 8px; font-size: clamp(26px, 3vw, 34px); font-weight: 550; }
.designer-intro .lede { margin: 0; font-size: 14px; }
.studio-help { max-width: 58ch; margin-top: 8px; }
#programFields > .editor-section { scroll-margin-top: 110px; }
.save-line { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
#programSubmit { display: inline-flex; align-items: center; justify-content: center; gap: 18px; white-space: nowrap; }
.unsaved-note { font-size: 12px; color: var(--warn); }
.designer-layout { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: start; gap: clamp(32px, 5vw, 72px); }
.designer-editor { min-width: 0; }
.program-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.editor-section { padding: 0 0 28px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.editor-section:last-child { margin-bottom: 0; border: 0; }
.brand-import h2 { margin: 0 0 10px; font-size: 20px; }
.brand-import .actions { margin-top: 14px; }
.brand-proposal { padding-top: 18px; }
.brand-proposal dl { margin: 12px 0; }
.brand-proposal dt { margin-top: 12px; color: var(--ink-soft); font-size: 13px; }
.brand-proposal dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.brand-proposal .program-logo { object-fit: contain; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.section-heading > span { font-size: 12px; color: var(--muted); }
.reward-settings { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: 14px; }
.style-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.style-choice { position: relative; min-height: var(--tap); padding: 6px 6px 9px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 9px; color: var(--ink-soft); font: 13px var(--font); cursor: pointer; }
.style-choice:hover:not(:disabled) { border-color: #719276; }
.style-choice[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-tint); color: var(--blue-dark); }
.style-choice:disabled { opacity: .55; cursor: not-allowed; }
.style-check { position: absolute; right: 7px; bottom: 9px; visibility: hidden; }
.style-choice[aria-pressed="true"] .style-check { visibility: visible; }
.style-swatch { position: relative; display: block; height: 42px; margin-bottom: 8px; border-radius: 5px; background: var(--swatch); }
.style-swatch::before, .style-swatch::after { content: ''; position: absolute; background: var(--swatch-ink); }
.style-swatch::before { left: 9px; top: 9px; width: 10px; height: 10px; border-radius: 3px; }
.style-swatch::after { left: 9px; bottom: 9px; width: 29px; height: 2px; }
.style-cafe { --swatch: #3f2d25; --swatch-ink: #fff7eb; }
.style-minimal { --swatch: #20242b; --swatch-ink: #fff; }
.style-natural { --swatch: #304b3b; --swatch-ink: #f5f7ed; }
.style-hint { margin-bottom: 20px; }
.color-control { display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 5px 9px; background: var(--card); border: 1px solid #cbd4cb; border-radius: 8px; }
.color-control input[type="color"] { flex: none; width: 28px; height: 28px; min-height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.color-control span { font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.color-hint { margin-top: -6px; }
.logo-field { margin-top: 20px; margin-bottom: 0; }
input[type="file"] { width: 100%; font-size: 12px; color: var(--muted); }
input[type="file"]::file-selector-button { min-height: var(--tap); padding: 9px 12px; margin-right: 10px; border: 1px solid #cbd4cb; border-radius: 8px; background: var(--card); color: var(--ink); font: 13px var(--font); cursor: pointer; }
.save-message { color: var(--ok); font-size: 13px; margin: 8px 0 0; overflow-wrap: anywhere; }
.designer-preview { min-width: 0; }
.preview-stage { position: relative; }
.preview-stage { display: flex; flex-direction: column; align-items: center; padding: 22px 30px 26px; background: var(--stage); border-radius: 14px; }
.preview-stage-heading { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 30px; font-size: 12px; color: #425a44; }
.live-label { display: inline-flex; align-items: center; gap: 6px; }
.live-label > span { width: 5px; height: 5px; border-radius: 50%; background: #42734c; }
.designer-card { width: 100%; max-width: 390px; }
.preview-caption { margin: 24px 0 0; text-align: center; color: #425a44; font-size: 12px; line-height: 1.8; }
.share-details { padding: 26px 2px 0; }
.share-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.share-heading h2 { margin: 0 0 6px; font-size: 18px; }
.share-heading svg { color: var(--blue); }
.share-link-row { display: flex; gap: 8px; align-items: stretch; margin-top: 18px; }
.share-link-row .field { flex: 1; margin: 0; }
#shareUrl { font-size: 12px; text-overflow: ellipsis; }
#copyShare { flex: none; font-size: 12px; padding-inline: 14px; }
.share-open { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); margin-top: 5px; font-size: 12px; text-decoration: none; }
.share-open:hover { text-decoration: underline; }
.wallet-readiness { padding-top: 14px; margin-top: 7px; border-top: 1px solid var(--line); font-size: 11px; }
.pilot-footnote { margin-top: 8px; font-size: 11px; }

/* Customer: keep the real card legible and actions separate from its branding. */
.program-logo { display: block; width: 48px; height: 48px; object-fit: contain; margin-bottom: 18px; border-radius: 10px; }
.brandline { margin: 0 0 18px; font-size: 13px; color: var(--muted); }
#joinPanel h1 { font-size: 30px; }
#joinPanel .pending-note { margin-bottom: 22px; font-size: 12px; }
/* Composition and geometry from wallet-templates-alejandro@72c812f (Perforada,
   Estrato, Talón, Marquesina). Web fields stay real; the private code stays outside. */
.wallet-card { padding: 0; border-radius: 13px; overflow: hidden; background: var(--pass-bg, var(--blue)); color: var(--pass-ink, #fff); box-shadow: 0 1px 2px rgb(0 0 0 / .12), 0 10px 28px rgb(0 0 0 / .14); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.wallet-card[data-family="talon"] { mask: radial-gradient(circle 5px at 50% 0, transparent 97%, #000 100%) 0 0 / 13px 100% repeat-x; }
.wallet-card[data-family="marquesina"] { mask: radial-gradient(circle 24px at 50% -6px, transparent 97%, #000 100%); }
.wallet-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 54px; padding: 12px 14px 8px; }
.wallet-brand { display: flex; align-items: center; flex: 1 1 0; min-width: 0; gap: 8px; font-size: 16px; font-weight: 600; }
.wallet-brand > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-brand .program-logo { flex: none; width: 32px; height: 32px; margin: 0; border-radius: 0; }
.wallet-header, .wallet-top .pass-count { flex: 0 1 auto; max-width: 45%; margin: 0; text-align: right; font-size: 12px; line-height: 1.3; }
.wallet-card .wallet-program { margin: 0; padding: 8px 14px 12px; font-size: 16px; font-weight: 600; line-height: 1.35; }
.wallet-band { display: grid; position: relative; min-height: 0; }
.wallet-art { display: block; grid-area: 1 / 1; width: 100%; height: auto; align-self: stretch; object-fit: cover; }
.wallet-fields { display: flex; gap: 14px; flex-wrap: wrap; padding: 12px 14px 18px; font-size: 14px; line-height: 1.45; }
.wallet-fields > p { flex: 1 1 120px; margin: 0; color: inherit; }
.wallet-fields > #passMembership { flex-basis: 100%; }
.pass-count { display: flex; flex-direction: column; margin: 0; }
.pass-count strong { font-size: 26px; line-height: 1.1; font-weight: 400; }
.pass-count span { font-size: 11px; }
.wallet-band .pass-count, .wallet-balance { grid-area: 1 / 1; align-self: end; z-index: 1; margin: 12px 14px; max-width: 65%; }
.wallet-band .pass-count strong, .wallet-balance { font-size: 38px; font-weight: 300; line-height: 1.1; }
.wallet-balance { font-size: 32px; }
.wallet-band > #passReward, .wallet-band > #previewReward { grid-area: 1 / 1; align-self: end; z-index: 1; max-width: 58%; margin: 14px; font-size: 24px; font-weight: 400; line-height: 1.15; }
.wallet-card[data-family="marquesina"] .wallet-band { display: flex; gap: 12px; align-items: center; padding: 8px 14px; }
.wallet-card[data-family="marquesina"] .wallet-art { flex: none; order: 2; width: 78px; height: 78px; border-radius: 4px; }
.wallet-event { flex: 1 1 0; min-width: 0; margin: 0; font-size: 26px; font-weight: 400; line-height: 1.12; }
.wallet-card[data-status="void"] .wallet-art, .wallet-card[data-status="redeemed"] .wallet-art, .wallet-card[data-status="expired"] .wallet-art { filter: saturate(.55); }
.pass-rewards h2 { margin: 22px 0 10px; font-size: 14px; letter-spacing: -.01em; }
.reward-list { display: flex; flex-direction: column; gap: 8px; list-style: none; margin: 0; padding: 0; }
.reward { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid currentColor; border-radius: 8px; font-size: 13px; }
.reward code { padding: 2px 6px; }
.pass-none { margin: 0; font-size: 12px; }
.customer-details { padding: 24px; margin-top: 20px; background: var(--card); border-radius: var(--radius-lg); }
.customer-details .wallet-block { margin-top: 24px; }
.customer-details > .pass-code:first-child { margin-top: 0; padding-top: 0; border-top: 0; text-align: center; }
.customer-details > .pass-code:first-child .code-actions { justify-content: center; }
.join-offer { margin: -4px 0 22px; font-size: 18px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; overflow-wrap: anywhere; }
.customer-details .wallet-block h2 { margin: 0 0 8px; font-size: 20px; }
.pass-code { padding: 18px 0; margin-top: 22px; border-block: 1px solid var(--line); }
.code-label { margin: 0 0 7px; font-size: 12px; font-weight: 550; }
.code-value { display: block; color: inherit; font-size: 13px; overflow-wrap: anywhere; user-select: all; }
.code-note { margin: 9px 0 0; font-size: 12px; line-height: 1.6; }
.code-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pass .btn-quiet { border-color: currentColor; background: transparent; color: inherit; font-size: 12px; }
.pass .btn-quiet:hover { background: var(--pass-ink, #fff); color: var(--pass-bg, var(--blue)); }
.wallet-block { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.wallet-btn { min-height: 48px; padding: 12px 18px; border: 1px solid #17251b; border-radius: 9px; background: #17251b; color: #fff; font: 550 14px var(--font); cursor: pointer; }
.wallet-btn:hover:not(:disabled) { background: #244d3f; }
.wallet-btn:disabled { border-color: currentColor; background: transparent; color: inherit; opacity: .65; cursor: not-allowed; }
.wallet-status { margin: 0; font-size: 12px; line-height: 1.65; }

/* Existing operational flows. No value/authentication behavior is changed. */
#passQr { display: block; width: min(100%, 240px); height: auto; margin: 16px auto; }
.share-qr { display: block; width: min(100%, 200px); height: auto; margin: 20px 0 8px; border: 1px solid var(--line); border-radius: 8px; }
#shareQrDownload { display: inline-flex; margin-top: 4px; }
#shareQrDownload[hidden] { display: none; }
.camera-wrap { position: relative; aspect-ratio: 4 / 3; margin-bottom: 12px; overflow: hidden; border-radius: var(--radius); background: #17251b; }
.camera-wrap video { display: block; width: 100%; height: 100%; object-fit: cover; }
.camera-placeholder { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; margin: 0; color: #e0e9df; font-size: 14px; text-align: center; }
.camera-note { min-height: 21px; margin: 8px 0 18px; font-size: 13px; color: var(--ink-soft); }
.identify-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.identify-name { margin: 0 0 10px; font-size: 19px; font-weight: 600; }
.identify-meta { display: grid; grid-template-columns: auto 1fr; gap: 7px 16px; margin: 0; font-size: 14px; }
.identify-meta dt { color: var(--muted); }
.identify-meta dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.intent-picker { display: flex; flex-direction: column; gap: 8px; margin: 22px 0 14px; padding: 0; border: 0; }
.intent-label { padding: 0; margin: 0 0 5px; font-size: 14px; font-weight: 550; }
.radio { display: flex; align-items: flex-start; gap: 10px; min-height: var(--tap); padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); font-size: 14px; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--blue); background: var(--blue-tint); }
.radio:has(input:disabled) { opacity: .6; cursor: not-allowed; }
.radio input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--blue); }
.hint-inline { color: var(--muted); font-size: 12px; }
.activity-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.activity-list, .staff-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.activity-item, .staff-item, .activity-empty { padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.activity-headline { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.activity-headline time { font-size: 12px; color: var(--muted); }
.reversal-form { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.reversal-form label { flex: 1 1 100%; }
.reversal-form input { flex: 1 1 200px; }
.staff-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.status-cell { display: flex; flex-direction: column; gap: 5px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.status-label { font-size: 12px; color: var(--muted); }
.status-cell strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.offline-banner { padding: 12px 20px; text-align: center; font-size: 13px; background: var(--warn-bg); color: var(--warn); }
.toast { position: fixed; z-index: 60; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: min(92vw, 420px); padding: 13px 20px; border-radius: 10px; box-shadow: var(--shadow); background: var(--ink); color: #fff; font-size: 13px; text-align: center; }
.toast[data-tone="error"] { background: #7d1b16; }
.toast[data-tone="warn"] { background: #5c3a00; }
.toast[data-tone="ok"] { background: var(--ok); }
dialog { max-width: min(94vw, 480px); padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); }
dialog::backdrop { background: rgb(20 35 24 / .5); }

.form-field-row { border-bottom: 1px solid var(--line); padding-block: 14px; }
.form-field-row summary, .custom-details summary { cursor: pointer; min-height: var(--tap); padding-block: 10px; font-weight: 600; overflow-wrap: anywhere; }
.form-field-content { padding: 12px 0 8px; }
.field-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.form-builder h3 { font-size: 18px; }
.form-builder > .check { margin-bottom: 18px; }
.form-field-list { margin-bottom: 16px; }
.form-preview { padding: 28px 0 0; margin-top: 28px; border-top: 1px solid var(--line); }
.form-preview h2 { font-size: 20px; margin-bottom: 6px; }
.form-preview h3 { margin-block: 20px 8px; font-size: 23px; overflow-wrap: anywhere; }
.form-preview fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.form-preview .btn-primary { margin-block: 4px 20px; }
.form-preview input:disabled, .form-preview select:disabled, .form-preview textarea:disabled { opacity: 1; color: var(--ink); background: var(--card); }
.custom-details dl, #previewCustomFields { margin-block: 16px; }
.custom-details dt, #previewCustomFields dt { font-size: 13px; color: var(--muted); margin-top: 14px; overflow-wrap: anywhere; }
.custom-details dd, #previewCustomFields dd { margin: 3px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.custom-details { padding-block: 8px 20px; }
.form-image { display: block; width: 96px; height: 96px; max-width: 100%; object-fit: contain; margin-block: 8px; }
.form-image[hidden] { display: none; }
#joinCustomFields label, .form-preview label { overflow-wrap: anywhere; }
#joinReload { margin-block: 10px; }

@media (min-width: 900px) { .workspace { grid-template-columns: 1fr 1fr; align-items: start; } }
@media (max-width: 1080px) {
  .topbar { gap: 20px; padding-inline: 24px; }
  .topbar-end { gap: 12px; }
  .pilot-label { display: none; }
  .navlink { padding-inline: 10px; }
  .designer-layout { gap: 32px; }
  .preview-stage { padding-inline: 24px; }
  .reward-settings { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 800px) {
  .topbar { flex-wrap: wrap; gap: 12px 20px; padding: 14px 20px 10px; }
  .topnav { order: 3; width: 100%; overflow-x: auto; }
  .navlink { min-height: 40px; }
  .topbar-end { flex-wrap: wrap; }
  .tenant-picker label { display: none; }
  .view { padding: 28px 20px 48px; }
  .designer-intro { align-items: flex-start; gap: 18px; }
  .designer-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  /* Phone order: card preview and its link/QR to share (signup already set the essentials), then the fields. */
  .designer-preview { display: contents; }
  .preview-stage { order: -2; }
  .share-details { order: -1; }
  .form-preview { order: 1; }
  .preview-stage { padding: 20px 28px 24px; }
  .preview-stage-heading { margin-bottom: 24px; }
  .preview-caption { margin-top: 20px; }
  .share-details { padding-top: 22px; }
  .designer-editor { padding-top: 26px; border-top: 1px solid var(--line); }
  .reward-settings { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 14px; }
  .setup-shell { gap: 0 28px; }
  .setup-story h1 { font-size: 40px; }
  .section-heading > span { font-size: 11px; }
}
@media (max-width: 560px) {
  #passSettings .row { grid-template-columns: 1fr; }
  .brand-word { font-size: 26px; }
  .tenant-picker select { max-width: 126px; }
  .topbar-end { gap: 8px; }
  #signOut { font-size: 12px; min-height: var(--tap); }
  .designer-intro { display: block; margin-bottom: 24px; padding-bottom: 24px; }
  .designer-intro h1 { font-size: 28px; }
  #view-share { padding-bottom: 112px; }
  .save-line { position: fixed; z-index: 30; inset: auto 0 0; justify-content: flex-end; gap: 10px; padding: 12px 20px max(12px, env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); }
  #programSubmit { flex: 1; gap: 12px; }
  .unsaved-note { max-width: 90px; font-size: 11px; }
  body[data-view="share"] .toast { bottom: max(90px, calc(80px + env(safe-area-inset-bottom))); }
  .preview-stage { padding: 18px; }
  .share-link-row { gap: 6px; }
  #copyShare { padding-inline: 11px; }
  .style-options { gap: 8px; }
  .reward-settings { grid-template-columns: 1fr; gap: 0; }
  .setup-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; margin: 0 auto; gap: 28px; }
  .setup-form-panel, .setup-support { grid-column: auto; grid-row: auto; }
  .setup-story { padding-top: 0; }
  .setup-story h1 { max-width: 17ch; font-size: 34px; margin-bottom: 14px; }
  .setup-story .lede { margin-bottom: 0; font-size: 14px; }
  .setup-steps { display: flex; gap: 12px; margin: 20px 0 0; }
  .setup-steps li { flex: 1; gap: 8px; padding: 0; font-size: 12px; }
  .setup-steps li::before { position: static; width: 24px; height: 24px; }
  .setup-steps span { display: none; }
  .setup-form-panel h2 { font-size: 22px; }
  .setup-support .fineprint { margin-top: 14px; }
  .panel { padding: 24px; }
  .actions .btn-primary, .actions .btn-quiet { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media (prefers-contrast: more) { :root { --line: #8c9b8c; --muted: #384c3b; --ink-soft: #293b2c; } }
@media (forced-colors: active) { .btn-primary, .wallet-btn, .style-choice[aria-pressed="true"] { border: 1px solid ButtonText; } .live-label > span { background: Highlight; } }

/* ===== Counter signs: setup wizard, customer enrollment and card (phone first) ===== */
:root { --wall: #f2f2ee; --marker: #121212; --cs-yellow: #ffe94d; --cs-pink: #ff5eb3; --cs-lime: #b8f35a; --cs-orange: #ff9a3d; --stroke: 2.5px; }
body[data-view="setup"], body[data-view="join"], body[data-view="pass"] { background: var(--wall); }
.view-wizard { padding: 16px 16px 0; }
.wizard { max-width: 480px; margin: 0 auto; caret-color: var(--marker); }
.wizard ::selection, #view-join ::selection { background: var(--cs-yellow); color: var(--marker); }
.wizard :focus-visible, #view-join :focus-visible, #view-pass :focus-visible { outline: 3px solid var(--marker); outline-offset: 3px; }
.wizard-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 4px 2px 14px; }
.wizard-count { margin: 0; font-size: 14px; font-weight: 750; color: var(--marker); }
.wizard-dots { display: flex; gap: 6px; }
.wizard-dots span { width: 28px; height: 6px; border-radius: 3px; background: #d6d6cf; transition: background .25s; }
.wizard-dots span[data-on="true"] { background: var(--marker); }
.sign { padding: 26px 22px 28px; border-radius: 22px; color: var(--marker); animation: sign-in .32s cubic-bezier(.16, 1, .3, 1); }
.sign-yellow { background: var(--cs-yellow); } .sign-pink { background: var(--cs-pink); } .sign-lime { background: var(--cs-lime); } .sign-orange { background: var(--cs-orange); } .sign-white { background: #fff; }
.sign h1:focus { outline: none; }
.sign h1 { margin: 0 0 20px; font-size: clamp(28px, 7.6vw, 34px); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
.sign-sub { margin: 28px 0 12px; font-size: 21px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.sign-label { display: block; margin: 18px 0 8px; font-size: 15px; font-weight: 700; }
.sign .field label { font-size: 15px; font-weight: 700; color: var(--marker); }
.sign .hint, .sign-note { margin: 12px 0 0; font-size: 14px; line-height: 1.45; color: var(--marker); }
.sign-note output { color: var(--marker); font-weight: 700; overflow-wrap: anywhere; }
.text-button { padding: 4px 2px; border: 0; background: none; color: var(--marker); font: inherit; font-weight: 750; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
input.big-input, #joinName, #joinEmail, #setupSlug { width: 100%; min-height: 60px; padding: 14px 16px; border: var(--stroke) solid var(--marker); border-radius: 14px; background: #fff; color: var(--marker); font: 600 20px/1.2 var(--font); }
input.big-input::placeholder, #joinName::placeholder, #joinEmail::placeholder { color: #75756e; font-weight: 500; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { min-height: 52px; padding: 12px 18px; border: var(--stroke) solid var(--marker); border-radius: 999px; background: #fff; color: var(--marker); font: 650 17px/1.15 var(--font); cursor: pointer; transition: transform .18s cubic-bezier(.16, 1, .3, 1), opacity .18s, background .18s; }
.choice[aria-pressed="true"] { background: var(--marker); color: #fff; transform: scale(1.04); }
.choices:has([aria-pressed="true"]) .choice[aria-pressed="false"] { opacity: .82; }
.choice:active { transform: scale(.97); }
.choices-numbers { display: grid; grid-template-columns: repeat(4, 1fr); }
.choice-number { min-height: 68px; padding: 0; border-radius: 16px; font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.swatch { position: relative; display: flex; align-items: flex-end; justify-content: center; aspect-ratio: 1; padding: 0 0 8px; border: var(--stroke) solid var(--marker); border-radius: 16px; background: var(--swatch-bg); color: var(--swatch-fg); font: 700 13px var(--font); cursor: pointer; transition: transform .18s cubic-bezier(.16, 1, .3, 1); }
.swatch[aria-checked="true"] { transform: scale(1.06); box-shadow: 0 0 0 3px var(--cs-lime), 0 0 0 6px var(--marker); }
.swatch[aria-checked="true"]::after { content: ""; position: absolute; top: 8px; right: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--swatch-fg); }
.big-check { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 16px; font-weight: 600; color: var(--marker); cursor: pointer; }
.big-check input { flex: none; width: 26px; height: 26px; margin: 0; accent-color: var(--marker); }
.big-check a { color: var(--marker); font-weight: 750; }
.wizard-error { margin: 14px 4px 0; }
.wizard-bar { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 10px; margin: 16px -16px 0; padding: 12px 16px max(14px, env(safe-area-inset-bottom)); background: var(--wall); }
.btn-big { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 58px; padding: 14px 22px; border: var(--stroke) solid var(--marker); border-radius: 16px; background: var(--marker); color: #fff; font: 750 18px var(--font); text-decoration: none; cursor: pointer; transition: transform .12s; }
.btn-big:active { transform: scale(.98); }
.btn-big:disabled { opacity: .55; cursor: progress; }
.btn-big-outline { background: #fff; color: var(--marker); }
.btn-back { min-height: 58px; padding: 0 18px; border: var(--stroke) solid var(--marker); border-radius: 16px; background: transparent; color: var(--marker); font: 700 16px var(--font); cursor: pointer; }
.wizard-foot { margin: 18px 0 32px; text-align: center; font-size: 15px; color: var(--marker); }
.wizard-foot a { color: var(--marker); font-weight: 750; }
.mini-card { margin-bottom: 14px; padding: 16px 18px 14px; border-radius: 18px; background: var(--biz-bg, #111); color: var(--biz-fg, #fff); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .45); }
.mini-card-top { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 750; }
.mini-logo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--biz-fg, #fff); color: var(--biz-bg, #111); font-size: 14px; font-weight: 800; }
.mini-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-card-stamps { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 12px; }
.mini-card-stamps span { width: 22px; height: 22px; border: 2px dashed currentColor; border-radius: 50%; opacity: .8; }
.mini-card-reward { margin: 0; font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.sign-done { text-align: center; }
.done-qr { display: block; width: min(100%, 230px); height: auto; margin: 18px auto 22px; border: var(--stroke) solid var(--marker); border-radius: 14px; }
.big-stack { display: flex; flex-direction: column; gap: 10px; }
@keyframes sign-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Customer enrollment: the business offer reads like a counter sign. */
#view-join { background: var(--wall); }
#view-join .panel { border: 0; border-radius: 22px; }
#view-join h1 { font-size: clamp(28px, 7.6vw, 36px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.join-offer { margin: 4px 0 24px; padding: 20px; border-radius: 18px; background: var(--biz-bg, var(--cs-yellow)); color: var(--biz-fg, var(--marker)); font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
#view-join .field label { font-size: 15px; font-weight: 700; color: var(--marker); }
#joinSubmit { width: 100%; min-height: 58px; border: var(--stroke) solid var(--marker); border-radius: 16px; background: var(--marker); font: 750 18px var(--font); }
#view-join .check { font-size: 14px; color: var(--marker); }
#view-join .check input { width: 24px; height: 24px; accent-color: var(--marker); }

/* Customer card: big Wallet buttons and one deliberate count update. */
#view-pass { background: var(--wall); }
#view-pass .wallet-btn { min-height: 58px; border: var(--stroke) solid var(--marker); border-radius: 16px; background: var(--marker); font: 750 17px var(--font); }
#view-pass .customer-details .btn-quiet { min-height: 52px; border: var(--stroke) solid var(--marker); border-radius: 14px; background: #fff; color: var(--marker); font: 700 16px var(--font); }
#passStamps.bump { display: inline-block; animation: count-bump .5s cubic-bezier(.16, 1, .3, 1); }
@keyframes count-bump { 0% { transform: translateY(-40%); opacity: 0; } 100% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sign, #passStamps.bump { animation: none; } .choice, .swatch { transition: none; } }
@media (min-width: 801px) { .view-wizard { padding-top: 40px; } }

/* Counter scanning: one big action at a time. */
body[data-view="scan"] { background: var(--wall); }
#view-scan h1 { font-size: clamp(28px, 7.6vw, 36px); font-weight: 800; letter-spacing: -.03em; }
#view-scan .camera-wrap:has(#cameraPlaceholder:not([hidden])) { display: none; }
#view-scan .camera-wrap { border: var(--stroke) solid var(--marker); border-radius: 18px; }
#startCamera, #stopCamera, #manualSubmit, #confirmAction, #clearIdentify, #undoStamp, #cardRecovery { flex: 1; width: 100%; min-height: 58px; border: var(--stroke) solid var(--marker); border-radius: 16px; font: 750 18px var(--font); }
#startCamera, #manualSubmit, #confirmAction { background: var(--marker); color: #fff; }
#startCamera { background: var(--cs-yellow); color: var(--marker); }
#stopCamera, #clearIdentify, #undoStamp, #cardRecovery { background: #fff; color: var(--marker); }
#undoStamp { background: var(--cs-yellow); }
#manualCode { min-height: 56px; border: var(--stroke) solid var(--marker); border-radius: 14px; font: 600 17px var(--font); }
#view-scan .identify-card { border: var(--stroke) solid var(--marker); border-radius: 18px; }
#identifyName { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
#identifyStamps, #identifyRewards { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
#view-scan .op-choice, #view-scan label:has(> input[type="radio"]) { min-height: 58px; border-width: var(--stroke); border-color: var(--marker); border-radius: 16px; font-size: 16px; }
#view-scan input[type="radio"] { width: 22px; height: 22px; accent-color: var(--marker); }

/* The counter code under the QR is read aloud and typed: large, spaced, unambiguous. */
#qrManual { margin-top: 4px; font: 800 30px/1.2 var(--font); letter-spacing: .14em; font-variant-numeric: tabular-nums; }

.erase-block { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); }
.erase-block form { display: grid; gap: 12px; }
.privacy-missing { margin: 8px 0 0; padding: 10px 12px; border-radius: 8px; background: #fff4d6; color: #5c4400; font-size: 14px; }

/* 3D card: the represented card tilts toward the finger or cursor, light follows, and it settles flat
   so the counter can always scan it. One arrival per card; reduced motion keeps it still. */
#passCard, #setupCard { position: relative; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .8s cubic-bezier(.16, 1, .3, 1), box-shadow .8s cubic-bezier(.16, 1, .3, 1); touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
#passCard { box-shadow: calc(var(--tx, 0) * -16px) calc(22px + var(--ty, 0) * 10px) 44px -14px rgb(0 0 0 / .5), 0 2px 6px rgb(0 0 0 / .16); }
#passCard.is-tilting, #setupCard.is-tilting { transition-duration: .18s; }
.card-sheen { position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; background: radial-gradient(110% 75% at var(--mx, 28%) var(--my, 0%), rgb(255 255 255 / .2), rgb(255 255 255 / 0) 60%), linear-gradient(112deg, rgb(255 255 255 / 0) 36%, rgb(255 255 255 / .09) 47%, rgb(255 255 255 / 0) 58%); background-size: 100% 100%, 260% 100%; background-position: 0 0, calc(50% + var(--tx, 0) * 40%) 0; mix-blend-mode: screen; box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), inset 0 0 0 1px rgb(255 255 255 / .08); }
.wallet-barcode { position: relative; z-index: 4; display: grid; justify-items: center; gap: 4px; margin: 2px 14px 16px; padding: 14px 12px 10px; border-radius: 12px; background: #fff; color: #121212; }
.wallet-barcode #passQr { width: min(100%, 210px); margin: 0; }
.wallet-barcode #qrManual { margin: 0; color: #121212; font: 800 22px/1.2 var(--font); letter-spacing: .16em; }
#passCard.arrive { animation: card-arrive 1.1s cubic-bezier(.16, 1, .3, 1) backwards; }
@keyframes card-arrive { from { opacity: 0; transform: perspective(1000px) translateY(36px) rotateX(32deg) rotateY(-10deg); } }
@media (prefers-reduced-motion: reduce) { #passCard, #setupCard { transform: none; transition: none; } #passCard.arrive { animation: none; } }

/* Wallet anatomy: header field top-right and every field as a small uppercase label over its value,
   as Apple and Google render the pass; the barcode sits in a compact white box. */
.wallet-top .pass-count { flex-direction: column-reverse; align-items: flex-end; }
.wallet-top .pass-count span, #passFields > #passReward::before, #passName::before, #previewFields > #previewReward::before, #previewGoal { display: block; font-size: 10px; font-weight: 600; letter-spacing: .05em; line-height: 1.3; text-transform: uppercase; opacity: .78; }
.wallet-top .pass-count strong { font-size: 22px; }
#passFields > #passReward::before { content: 'Tu recompensa'; margin-bottom: 2px; }
#passName::before { content: 'Cliente'; margin-bottom: 2px; }
#previewFields > #previewReward::before { content: 'Tu recompensa'; margin-bottom: 2px; }
#passName { text-align: right; }
.wallet-barcode { justify-self: center; width: fit-content; margin: 2px auto 16px; padding: 10px 10px 6px; border-radius: 8px; }
.wallet-barcode #passQr { width: 176px; }
.wallet-barcode #qrManual { font-size: 15px; font-weight: 700; letter-spacing: .12em; }

/* Editor sections fold: the first stays open, the rest open on tap; a missing value opens its section. */
summary.section-heading { min-height: 44px; margin-bottom: 0; align-items: center; cursor: pointer; list-style: none; }
summary.section-heading::-webkit-details-marker { display: none; }
summary.section-heading::after { content: ''; flex: none; width: 9px; height: 9px; margin: 0 4px 4px 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
details[open] > summary.section-heading { margin-bottom: 18px; }
details[open] > summary.section-heading::after { transform: rotate(-135deg); margin-bottom: -4px; }
summary.section-heading > span { margin-left: auto; }
details.editor-section:not([open]) { padding-bottom: 14px; margin-bottom: 14px; }
@media (prefers-reduced-motion: reduce) { summary.section-heading::after { transition: none; } }
summary.section-heading h2 { margin: 0; font-size: 17px; }
.card-recovery { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.card-recovery p { margin: 0 0 8px; font-size: 14px; }
.login-forgot { margin: 14px 0 0; text-align: center; font-size: 14px; }
#forgotForm, #resetForm { display: grid; gap: 12px; }
#resetForm h2 { margin: 0; font-size: 18px; }
