/* Fallbacks sized like Cormorant Garamond, so headings don't rewrap (and shift the page) when
   the web font arrives. Wide serifs (Android's Noto Serif, Linux's DejaVu Serif) measured at
   0.916; Georgia (Apple, Windows) estimated. */
@font-face { font-family: 'CG Fallback Wide'; src: local('Noto Serif'), local('NotoSerif-Regular'), local('DejaVu Serif'), local('DejaVuSerif'); size-adjust: 91.6%; }
@font-face { font-family: 'CG Fallback Georgia'; src: local('Georgia'); size-adjust: 96%; }
/* Everyshot styles: tokens, base, public site, dashboard, guest pages, slideshow, print. */
:root {
  --bg: #faf6f1; --surface: #ffffff; --ink: #2b2420; --muted: #7a6e66; --line: #e8dfd6;
  --accent: #d01515; --accent-ink: #ffffff; --soft: #f3ebe3; --ok: #3f7d4e; --err: #b3261e; --warn: #b26a00;
  --display: 'Cormorant Garamond', 'CG Fallback Wide', 'CG Fallback Georgia', Georgia, serif; --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 14px; --shadow: 0 1px 2px rgba(43,36,32,.06), 0 6px 24px rgba(43,36,32,.06);
}
/* Light/dark: follows the browser unless the visitor picked one with the header toggle
   (html[data-theme], set before paint by lib/html.js). Guest pages keep the event's accent. */
html[data-theme=dark] body { --bg: #141416; --surface: #1d1e21; --ink: #f2f2f3; --muted: #a8a8b3; --line: #34353a; --soft: #26272b; --shadow: none; color-scheme: dark; }
html[data-theme=dark] body.app, html[data-theme=dark] body.public { --accent: #ff5a6a; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme=light]) body { --bg: #141416; --surface: #1d1e21; --ink: #f2f2f3; --muted: #a8a8b3; --line: #34353a; --soft: #26272b; --shadow: none; color-scheme: dark; }
  html:not([data-theme=light]) body.app, html:not([data-theme=light]) body.public { --accent: #ff5a6a; }
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); }
img, video { max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
.display { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; font-variant-numeric: lining-nums; }
.bk-n, .seg-h, .s-table, .g-hero, .plan h3 { font-variant-numeric: lining-nums; }
h1.display { font-size: clamp(2rem, 5vw, 3rem); }
h2.display { font-size: clamp(1.6rem, 4vw, 2.2rem); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.left { text-align: left; }
.err { color: var(--err); }
.ok { color: var(--ok); }
.hp { position: absolute; left: -9999px; }
.cf-turnstile { display: contents; } /* invisible until Cloudflare needs an interaction; no empty gap */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
.pad { padding-top: 48px; padding-bottom: 48px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.inline { display: inline; }
.noscroll { overflow: hidden; }
code { background: var(--soft); padding: 1px 6px; border-radius: 6px; font-size: .9em; word-break: break-all; }
pre { white-space: pre-wrap; }
.note { background: var(--soft); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 8px; font-size: .9rem; }

/* Forms & buttons */
label { display: block; font-weight: 500; font-size: .95rem; }
input, select, textarea { font: inherit; color: inherit; width: 100%; margin-top: 4px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
input[type=checkbox], input[type=radio] { width: auto; margin: 0 8px 0 0; accent-color: var(--accent); }
input[type=color] { padding: 2px; height: 44px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
label.check { display: flex; align-items: center; font-weight: 400; margin: 6px 0; }
label.check.inline { display: inline-flex; }
.row2, .row3 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.row3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 560px) { .row2, .row3 { grid-template-columns: 1fr; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 999px; padding: 10px 20px; font: 600 .95rem var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: filter .15s, transform .05s; }
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled=true] { opacity: .45; pointer-events: none; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-sm { padding: 6px 14px; font-size: .85rem; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-xl { padding: 18px 28px; font-size: 1.15rem; }
.btn-block { display: flex; width: 100%; }
.btn-danger { background: var(--err); border-color: var(--err); }
.linklike { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.pill { display: inline-block; font: 500 .75rem var(--sans); background: var(--soft); color: var(--muted); border-radius: 999px; padding: 2px 10px; vertical-align: middle; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px; }
.card.danger { border-color: color-mix(in srgb, var(--err) 40%, var(--line)); }
.flash { padding: 12px 16px; text-align: center; background: color-mix(in srgb, var(--ok) 14%, var(--bg)); border-bottom: 1px solid var(--line); }
.flash-err { background: color-mix(in srgb, var(--err) 14%, var(--bg)); }
.flash-inline { padding: 10px 14px; border-radius: 10px; background: var(--soft); }
.flash-inline.err { background: color-mix(in srgb, var(--err) 14%, var(--bg)); color: var(--err); }
#toasts { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: rgba(30,25,22,.92); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: .9rem; transition: opacity .3s; max-width: 90vw; text-align: center; }
.toast.out { opacity: 0; }

/* Public site */
.site-header, .app-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(8px); }
.site-header .row, .app-header .row { min-height: 64px; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 1.2rem var(--display); color: var(--ink); text-decoration: none; letter-spacing: .01em; }
.brand-logo { display: block; height: 36px; width: auto; }
/* Header logo 5px from the header's top and bottom (64px row), shrinking where the nav or buttons need the room. */
.site-header .brand-logo, .app-header .brand-logo { height: 54px; }
@media (max-width: 900px) and (min-width: 761px) { .site-header .brand-logo { height: calc(13.6vw - 69px); } }
@media (max-width: 760px) { .site-header .brand-logo { height: max(20px, min(54px, 19.2vw - 43.5px)); } }
/* Dashboard: only the Menu button beside it on small screens. */
@media (max-width: 760px) { .app-header .app-nav { display: none; } .app-header .brand-logo { height: max(20px, min(54px, 19.2vw - 21px)); } }
.site-nav { display: flex; gap: 22px; }
.site-nav a, .site-cta a:not(.btn), .app-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-cta { display: flex; gap: 16px; align-items: center; }
@media (max-width: 760px) { .site-nav { display: none; } }
.hero { padding: 20px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { display: none; } }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--accent); }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); }
.hero h1 em { color: var(--accent); font-style: italic; }
.lead { font-size: 1.15rem; color: color-mix(in srgb, var(--ink) 80%, var(--bg)); }
.cta-row { margin: 22px 0 10px; }
.hero-art { position: relative; height: 520px; }
.phone { position: absolute; right: 40px; top: 0; width: 260px; height: 520px; border-radius: 40px; background: #1d1916; padding: 12px; box-shadow: 0 0 0 3px #fff, 0 30px 60px rgba(43,36,32,.25); }
.phone-screen { background: #faf6f1; border-radius: 30px; height: 100%; overflow: hidden; color: #2b2420; padding: 0 0 12px; }
.ph-hero { background: linear-gradient(160deg, #e9d8c8, #c99a7b); padding: 34px 16px 22px; text-align: center; color: #3a2a20; }
.ph-hero span { display: block; font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; }
.ph-hero b { display: block; font: 600 1.7rem 'Cormorant Garamond', serif; }
.ph-hero i { font-size: .75rem; }
.ph-btn { margin: 14px; background: #d01515; color: #fff; border-radius: 999px; padding: 11px; text-align: center; font-weight: 600; font-size: .85rem; }
.ph-q { margin: 0 14px; background: #fff; border-radius: 12px; padding: 10px; font-size: .7rem; border: 1px solid #eadfd5; }
.ph-q-top { display: flex; justify-content: space-between; }
.ph-bar { height: 6px; background: #f0e6dc; border-radius: 3px; margin: 6px 0; overflow: hidden; }
.ph-bar div { width: 41%; height: 100%; background: #d01515; animation: phbar 4s ease-in-out infinite alternate; }
@keyframes phbar { to { width: 88%; } }
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 12px 14px; }
.ph-grid i { aspect-ratio: 1; border-radius: 6px; background: linear-gradient(135deg, #d9c3ae, #b98d6c); }
.ph-grid i:nth-child(2n) { background: linear-gradient(135deg, #c8d1bd, #8fa07c); }
.ph-grid i:nth-child(3n) { background: linear-gradient(135deg, #e8cfc8, #c48f86); }
.card-sign { position: absolute; left: 0; bottom: 20px; width: 190px; background: #fff; border-radius: 12px; padding: 16px; text-align: center; box-shadow: 0 20px 40px rgba(43,36,32,.18); transform: rotate(-5deg); color: #2b2420; }
.card-sign b { display: block; font: 600 1.2rem 'Cormorant Garamond', serif; margin-top: 8px; }
.card-sign small { font-size: .65rem; color: #7a6e66; }
.qr-fake { width: 110px; height: 110px; margin: 0 auto; background:
  conic-gradient(from 90deg at 30% 30%, #000 25%, transparent 0) 0 0/22px 22px, repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 11px), #fff; border: 8px solid #fff; outline: 1px solid #eee; opacity: .85; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0; }
.band.alt { background: var(--soft); }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 30px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps b { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; margin-bottom: 10px; }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0 0 20px; }
.ticks li { padding: 8px 0 8px 30px; position: relative; }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: 8px; color: var(--accent); font-weight: 700; }
.feature-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .feature-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .feature-cards { grid-template-columns: 1fr; } }
.fcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feat-h { font: 600 1.5rem var(--display); margin-top: 36px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 28px; }
.feat h3 { margin: 12px 0 4px; }
.feat p { color: var(--muted); font-size: .93rem; margin: 0; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); margin: 30px auto; max-width: 440px; }
.price { font: 600 4rem var(--display); font-variant-numeric: lining-nums; color: var(--accent); }
.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin: 10px 0 0; }
.faq h3 { font: 600 1.05rem var(--sans); margin: 18px 0 4px; }
.faq ul, .faq ol { margin: 6px 0 0; padding-left: 1.3em; }
.faq li { margin: 5px 0; }
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 24px; margin-top: 40px; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.footer-cols h4, .footer-cols .foot-h { margin: 0 0 8px; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.footer-cols a:not(.brand) { display: block; color: var(--ink); text-decoration: none; font-size: .93rem; padding: 2px 0; }
/* A page that ends in a band (home) meets the footer directly, with the band's bottom border as the line. */
@media (min-width: 721px) { main:has(> .band:last-child) + .site-footer { margin-top: 0; border-top: 0; } }
.foot-sec > summary { list-style: none; cursor: default; }
.foot-sec > summary::-webkit-details-marker { display: none; }
.foot-copy-m { display: none; }
/* Phones: one bar (logo, PRODUCT, HELP, LEGAL); each section opens upward as a panel. */
@media (max-width: 720px) {
  /* Fixed to the bottom of the screen; pages get room for it, and bottom-sticky bars sit above it. */
  body:has(> .site-footer) { --foot-h: calc(37px + env(safe-area-inset-bottom)); padding-bottom: var(--foot-h); }
  .site-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; margin: 0; padding: 0 0 env(safe-area-inset-bottom); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  body:has(> .site-footer) .sticky-save, body:has(> .site-footer) .mq-actions, body.select-mode:has(> .site-footer) .bulkbar { bottom: var(--foot-h); }
  body:has(> .site-footer) .mod-bulk { bottom: var(--foot-h); }
  body:has(> .site-footer) .mq-toast { bottom: calc(var(--foot-h) + 16px); }
  .site-footer .foot-copy, .foot-about p { display: none; }
  .footer-cols { display: flex; align-items: center; gap: 2px; padding: 3px 0; position: relative; }
  .foot-about { margin-right: auto; flex-shrink: 0; }
  .foot-about .brand-logo { height: 28px; }
  .foot-sec > summary { cursor: pointer; display: flex; align-items: center; gap: 5px; padding: 8px 9px; border-radius: 999px; -webkit-tap-highlight-color: transparent; }
  .foot-sec > summary::after { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 5px solid var(--muted); transition: transform .15s; }
  .foot-sec[open] > summary { background: var(--soft); }
  .foot-sec[open] > summary::after { transform: rotate(180deg); }
  .foot-sec > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
  .footer-cols .foot-sec .foot-h { margin: 0; font-size: .78rem; font-weight: 600; letter-spacing: .07em; color: var(--ink); }
  .foot-links { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 70; width: min(260px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: 0 -10px 30px rgba(43,36,32,.15); }
  .footer-cols .foot-links a:not(.brand) { padding: 10px 12px; border-radius: 8px; font-size: .95rem; }
  .footer-cols .foot-links a:hover, .footer-cols .foot-links a:focus-visible { background: var(--soft); }
  .foot-copy-m { display: block; margin: 6px 12px 4px; }
}
@media (max-width: 380px) {
  .foot-about .brand-logo { height: 22px; }
  .foot-sec > summary { padding: 8px 6px; gap: 0; }
  .foot-sec > summary::after { display: none; }
  .footer-cols .foot-sec .foot-h { font-size: .72rem; letter-spacing: .04em; }
}
.code-form { display: flex; gap: 8px; max-width: 320px; margin: 16px auto; }
.code-form input { margin: 0; text-transform: uppercase; }

/* Dashboard */
.app-nav { display: flex; gap: 18px; align-items: center; }
.app-main { padding-top: 24px; padding-bottom: 80px; }
.event-bar { background: var(--surface); border-bottom: 1px solid var(--line); }
.event-title { padding: 14px 0 6px; font-weight: 600; }
.event-title a { color: var(--ink); text-decoration: none; }
.event-title .muted a { color: var(--accent); font-weight: 400; }
.tabs { display: flex; flex-wrap: wrap; gap: 0 4px; }
/* Phones: the 13 event sections collapse into a menu instead of a long row. */
.tabs-menu { display: none; margin: 4px 0 12px; }
.tabs-menu summary { cursor: pointer; padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 8px; }
.tabs-menu summary::-webkit-details-marker { display: none; }
.tabs-menu summary::after { content: "\25BE"; color: var(--muted); margin-left: auto; }
.tabs-menu[open] summary::after { content: "\25B4"; }
.tabs-menu nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.tabs-menu nav a { padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; font-size: .93rem; background: var(--bg); }
.tabs-menu nav a.on { border-color: var(--accent); color: var(--accent); font-weight: 600; }
@media (max-width: 640px) { .event-tabs { display: none; } .tabs-menu { display: block; } }
.tabs a { padding: 10px 12px; color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; font-size: .93rem; font-weight: 500; }
.tabs a.on, .tabs a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.admin-tabs { margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.page-head h1 { margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tile-stat b { display: block; font: 600 1.6rem var(--sans); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.02em; }
.tile-stat span { color: var(--muted); font-size: .85rem; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }
.cols > .card { margin-bottom: 0; }
.cols + .cols, .cols + .card, .card + .cols { margin-top: 20px; }
.event-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 20px; }
.event-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s; }
.event-card:hover { transform: translateY(-2px); }
.event-card h2 { font: 600 1.5rem var(--display); margin: 4px 0; }
.ec-kind { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 600; }
.ec-stats { display: flex; gap: 16px; margin-top: 12px; font-size: .9rem; color: var(--muted); }
.ec-stats b { color: var(--ink); }
.narrow-form { max-width: 560px; }
.share-row { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.qr-box { width: 150px; flex: none; background: #fff; border-radius: 10px; padding: 4px; }
.qr-box svg { display: block; width: 100%; height: auto; }
.big-link { font: 600 1.25rem var(--sans); word-break: break-all; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 7px 0 7px 30px; position: relative; border-bottom: 1px dashed var(--line); }
.checklist li::before { content: ''; position: absolute; left: 2px; top: 10px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); }
.checklist li.done::before { background: var(--ok); border-color: var(--ok); }
.checklist li.done > a { text-decoration: line-through; color: var(--muted); }
.strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 16px; }
.strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.spark { display: flex; gap: 3px; align-items: flex-end; height: 64px; }
.spark i { flex: 1; max-width: 22px; background: var(--accent); border-radius: 2px 2px 0 0; min-width: 3px; opacity: .8; }
.leader { padding-left: 20px; margin: 0 0 10px; }
.leader li { display: flex; justify-content: space-between; padding: 4px 0; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar select { width: auto; margin: 0; padding: 8px 10px; }
.bulkbar { position: sticky; top: 64px; z-index: 40; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-bottom: 12px; box-shadow: var(--shadow); }
.seg-h { font: 600 1.35rem var(--display); margin: 24px 0 10px; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.mtile { position: relative; display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--soft); cursor: pointer; }
.mtile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mtile.sel { outline: 3px solid var(--accent); outline-offset: -3px; }
.mtile.is-hidden img { opacity: .35; }
.mtile.pending img { filter: grayscale(.6); }
.mtile .pick { position: absolute; top: 6px; left: 6px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.25); color: #fff; font-weight: 700; cursor: pointer; opacity: 0; transition: opacity .15s; padding: 0; }
.mtile:hover .pick, .mtile.sel .pick, .mgrid:has(.sel) .pick { opacity: 1; }
.mtile.sel .pick { background: var(--accent); border-color: var(--accent); }
@media (hover: none) { .mtile .pick { opacity: .9; } }
.trash-tile .tpick { position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; margin: 0; accent-color: var(--accent); z-index: 1; }
.trash-tile:has(.tpick:checked) { outline: 3px solid var(--accent); outline-offset: -3px; }
.trash-tile img { opacity: .8; }
.trash-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 6px; font-size: .72rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.mtile .play, .tile .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.6rem; text-shadow: 0 2px 8px rgba(0,0,0,.5); pointer-events: none; }
.mtile .star { position: absolute; top: 6px; right: 8px; color: #ffd257; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.badge { position: absolute; bottom: 6px; left: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: .7rem; padding: 2px 8px; border-radius: 999px; }
.badge.best { background: var(--accent); left: auto; right: 6px; }
.badge.warn { background: var(--err); }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.data th { font-weight: 600; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
table.data input { margin: 0; padding: 7px 9px; }
tr.muted td { color: var(--muted); }
.edit-list { list-style: none; padding: 0; margin: 0 0 12px; }
.edit-list li { display: flex; gap: 10px; align-items: center; padding: 4px 0; }
.edit-list input:not([type=checkbox]) { margin: 0; flex: 1; }
.edit-list label { white-space: nowrap; font-weight: 400; display: flex; align-items: center; }
.print-list { list-style: none; padding: 0; }
.print-list li { display: flex; gap: 12px; align-items: center; padding: 6px 0; flex-wrap: wrap; }
.links dt { font-weight: 600; margin-top: 10px; font-size: .9rem; }
.links dd { margin: 2px 0 0; }
.copybox { font-size: .9rem; }
.settings-form .card { max-width: 760px; }
.sticky-save { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 30%); max-width: 760px; z-index: 5; }
.gb-list { columns: 2 320px; column-gap: 20px; }
.gb-item { break-inside: avoid; }
.gb-item.is-hidden { opacity: .5; }
.gb-text { white-space: pre-wrap; font-family: var(--display); font-size: 1.2rem; }
.gb-item audio, .gb-item video { width: 100%; margin: 8px 0; border-radius: 8px; }
.reels { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.reel video { width: 100%; border-radius: 10px; background: #000; max-height: 420px; }
.dl-list { list-style: none; padding: 0; }
.dl-list li { padding: 6px 0; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
ul.plain { list-style: none; padding: 0; }
ul.plain li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.empty { padding: 40px 20px; }

/* Guest pages */
body.guest { --gpad: 16px; padding-bottom: calc(76px + env(safe-area-inset-bottom)); min-height: 100vh; }
.g-hero { text-align: center; padding: 56px 20px 40px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 14%, var(--bg)), var(--bg)); position: relative; overflow: hidden; }
.g-hero.has-cover { background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55)), var(--cover) center/cover; color: #fff; padding: 110px 20px 44px; }
.g-hero.small { padding: 22px 16px 16px; }
.g-hero.small .g-hero-inner { padding: 0 52px; }
.lang-pick { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 10px; z-index: 70; text-align: left; font-size: .8rem; color: var(--ink); }
.lang-pick summary { list-style: none; display: flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; cursor: pointer; background: color-mix(in srgb, var(--bg) 82%, transparent); border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); font-weight: 600; letter-spacing: .04em; backdrop-filter: blur(4px); }
.lang-pick summary::-webkit-details-marker { display: none; }
.lang-pick svg { width: 20px; height: 14px; border-radius: 2px; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.lang-pick .lp-menu { position: absolute; right: 0; top: calc(100% + 4px); background: var(--surface, #fff); border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.14); padding: 4px; min-width: 132px; }
.lang-pick .lp-menu a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.lang-pick .lp-menu a:hover, .lang-pick .lp-menu a:focus-visible { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.lang-pick .lp-menu a[aria-current] { font-weight: 600; }
.site-cta .lang-pick { position: relative; top: auto; right: auto; }
.site-cta .lang-pick summary { background: transparent; }
/* Site header language flag: flag only on phones (beside the icon Menu button); Spanish nav
   is longer, so Spanish switches to the Menu layout below 1000px. */
.site-nav a, .site-cta a { white-space: nowrap; }
.nav-menu summary svg { display: block; }
@media (max-width: 1100px) {
  .site-cta .lang-pick summary { padding: 4px; border-color: transparent; }
  .site-cta .lang-pick .lp-code { display: none; }
}
@media (max-width: 900px) and (min-width: 761px) { .site-header .brand-logo { height: calc(13.6vw - 75px); } }
@media (max-width: 760px) {
  .site-header .site-cta { gap: 6px; }
  .site-header .nav-menu summary { padding: 6px 8px; }
  .site-header .brand-logo { height: max(20px, min(54px, 19.2vw - 45px)); }
}
@media (max-width: 1000px) and (min-width: 761px) {
  html[lang="es"] .site-nav, html[lang="es"] .site-cta > a:not(.btn) { display: none; }
  html[lang="es"] .nav-menu { display: block; }
  html[lang="es"] .site-header .brand-logo { height: 54px; }
}
.legal-lang { margin: 0 0 16px; }
.g-hero.small.has-cover { padding: 50px 16px 20px; }
.g-hero h1 { font-size: clamp(2.4rem, 10vw, 3.6rem); margin: 0; }
.g-hero.small h1 { font-size: 1.8rem; }
.g-kicker { text-transform: uppercase; letter-spacing: .2em; font-size: .75rem; margin-bottom: 6px; opacity: .85; }
.g-date { margin-top: 6px; font-size: 1rem; opacity: .85; }
.g-wrap { max-width: 560px; margin: 0 auto; padding: 0 var(--gpad); }
.g-wrap.wide { max-width: 1100px; }
.g-welcome { text-align: center; font: 500 1.2rem/1.45 var(--display); margin: 8px 6px 20px; }
.g-card { background: var(--surface); border-radius: 18px; padding: 20px; margin-bottom: 16px; box-shadow: 0 2px 14px rgba(43,36,32,.07); border: 1px solid color-mix(in srgb, var(--ink) 7%, transparent); }
.g-card h2 { font: 600 1.4rem var(--display); margin-bottom: 4px; }
.g-name-row { margin-bottom: 14px; }
.g-alt { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; }
.g-alt .btn { padding: 11px 8px; font-size: .9rem; }
.queue { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.queue-head { display: flex; justify-content: space-between; align-items: baseline; }
.bar { height: 10px; background: var(--soft); border-radius: 5px; overflow: hidden; margin: 8px 0; }
.bar div { height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.q-list { list-style: none; padding: 0; margin: 8px 0 0; max-height: 240px; overflow-y: auto; font-size: .85rem; }
.q-item { display: flex; gap: 8px; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--line); }
.q-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.q-state { color: var(--muted); white-space: nowrap; }
.q-item.done .q-state { color: var(--ok); }
.q-item.error .q-state { color: var(--err); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { text-align: left; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 14px; font: 500 .9rem var(--sans); cursor: pointer; }
.chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.chip.done { color: var(--muted); }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0; position: sticky; top: 0; background: var(--bg); z-index: 5; }
.g-nav { position: fixed; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); z-index: 60; }
.g-nav a { flex: 1; max-width: 140px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px 8px; color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 500; }
.g-nav a.on { color: var(--accent); }
.g-nav .ico { width: 24px; height: 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 4px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; } }
.tile { position: relative; border: 0; padding: 0; background: var(--soft); border-radius: 6px; overflow: hidden; cursor: pointer; aspect-ratio: 1 !important; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile.pending img { opacity: .55; }
.tile .likes { position: absolute; right: 6px; bottom: 4px; color: #fff; font-size: .75rem; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.tile .badge { font-size: .62rem; }
.after-ad { margin-top: 30px; }
.lightbox { position: fixed; inset: 0; background: #000; z-index: 200; display: flex; flex-direction: column; color: #fff; }
.lb-top { display: flex; align-items: center; gap: 12px; padding: 10px 12px; padding-top: max(10px, env(safe-area-inset-top)); font-size: .85rem; }
.lb-x { background: none; border: 0; color: #fff; font-size: 1.4rem; cursor: pointer; padding: 4px 10px; }
.lb-meta { opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-media { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; overflow: hidden; }
.lb-media video { max-width: 100%; max-height: 100%; }
.zoom { width: 100%; height: 100%; overflow: auto; display: flex; align-items: center; justify-content: center; touch-action: pinch-zoom pan-x pan-y; }
.zoom img { max-width: 100%; max-height: 100%; object-fit: contain; }
.zoom.zoomed { display: block; }
.zoom.zoomed img { max-width: none; max-height: none; width: 200%; cursor: zoom-out; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); border: 0; color: #fff; font-size: 2rem; width: 44px; height: 64px; cursor: pointer; border-radius: 8px; }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
@media (hover: none) { .lb-prev, .lb-next { display: none; } }
.lb-bar { display: flex; gap: 6px; justify-content: center; padding: 10px; padding-bottom: max(12px, env(safe-area-inset-bottom)); flex-wrap: wrap; }
.lb-bar button, .lb-bar a { background: rgba(255,255,255,.12); border: 0; color: #fff; border-radius: 999px; padding: 9px 16px; font: 500 .9rem var(--sans); text-decoration: none; cursor: pointer; }
.lb-bar .on { color: #ff6b81; }
.lb-bar .danger { background: rgba(179,38,30,.6); }
.lb-info { text-align: center; padding: 0 0 12px; font-size: .85rem; }
.lb-info input { width: auto; display: inline-block; padding: 4px 8px; margin: 0 6px; background: #222; color: #fff; border-color: #444; }
.lb-info label { display: inline; font-weight: 400; }
.lb-comments { background: #111; max-height: 40vh; overflow-y: auto; padding: 12px 16px; }
.lb-comments ul { list-style: none; padding: 0; margin: 0 0 10px; font-size: .9rem; }
.lb-comments li { padding: 4px 0; }
.lb-comments input { background: #222; color: #fff; border-color: #333; margin: 0; flex: 1; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 14px 0; }
.seg-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 12px; font: 500 .85rem var(--sans); cursor: pointer; }
.seg-btn.on { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.gb-mode textarea { margin-bottom: 12px; }
.rec-ui { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 0; }
.rec-btn { width: 84px; height: 84px; border-radius: 50%; border: 5px solid var(--line); background: var(--err); cursor: pointer; transition: border-radius .2s; }
.rec-btn.on { border-radius: 22px; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--err) 20%, transparent); } }
.rec-time { font: 600 1.4rem var(--sans); font-variant-numeric: tabular-nums; }
#gbPreview, #gbVideo { width: 100%; border-radius: 12px; background: #000; max-height: 50vh; }
.consent { background: var(--soft); border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
.consent summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 300; overflow: hidden; }
.confetti i { position: absolute; top: -10px; width: 9px; height: 14px; border-radius: 2px; animation: fall 2.2s ease-in forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); } }
/* Grandparent mode */
body.g-simple { padding-bottom: 0; }
.simple-wrap { max-width: 560px; margin: 0 auto; padding: 40px 20px; text-align: center; font-size: 1.3rem; }
.simple-wrap h1 { font-size: 2.8rem; }
.simple-lead { font-size: 1.4rem; }
.simple-btn { display: flex; width: 100%; min-height: 160px; font-size: 2rem; border-radius: 28px; margin: 24px 0; }
.simple-queue { font-size: 1.2rem; }
.simple-queue .bar { height: 22px; border-radius: 11px; }

/* Live slideshow */
body.g-live { background: #000; color: #fff; overflow: hidden; padding: 0; cursor: none; }
.stage { position: fixed; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.slide.in { opacity: 1; }
.slide-bg { position: absolute; inset: -40px; background: center/cover; filter: blur(40px) brightness(.45); }
.slide img, .slide video { position: relative; max-width: 100%; max-height: 100%; object-fit: contain; }
.kb { animation: kb0 8s ease-out forwards; }
.kb0 { animation-name: kb0; } .kb1 { animation-name: kb1; } .kb2 { animation-name: kb2; } .kb3 { animation-name: kb3; }
@keyframes kb0 { from { transform: scale(1); } to { transform: scale(1.07) translate(1%, 1%); } }
@keyframes kb1 { from { transform: scale(1.07) translate(-1%, 0); } to { transform: scale(1); } }
@keyframes kb2 { from { transform: scale(1); } to { transform: scale(1.06) translate(-1%, -1%); } }
@keyframes kb3 { from { transform: scale(1.05) translate(1%, -1%); } to { transform: scale(1.01); } }
.slide-cap { position: absolute; left: 3vw; bottom: 3vh; font: 500 clamp(14px, 1.6vw, 26px) var(--sans); text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.live-qr { position: fixed; right: 2.5vw; bottom: 3vh; background: #fff; color: #222; border-radius: 16px; padding: 12px 18px 12px 12px; display: flex; gap: 14px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.4); z-index: 10; }
.live-qr svg { width: clamp(130px, 13vw, 230px); height: auto; display: block; }
.live-qr strong { display: block; font: 600 clamp(16px, 1.6vw, 28px) var(--display); }
.live-qr span { font: 600 clamp(12px, 1.1vw, 20px) var(--sans); color: var(--accent); }
.live-ticker { position: fixed; top: 4vh; left: 50%; transform: translateX(-50%); background: color-mix(in srgb, var(--accent) 92%, #000); padding: 14px 28px; border-radius: 999px; font: 500 clamp(16px, 1.8vw, 30px) var(--sans); z-index: 10; white-space: nowrap; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.live-ticker.in { animation: drop .6s ease-out; }
.live-ticker em { font-style: normal; opacity: .85; margin-left: 8px; }
@keyframes drop { from { transform: translate(-50%, -150%); } }
.live-board { position: fixed; left: 2.5vw; top: 4vh; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); border-radius: 16px; padding: 14px 20px; min-width: 220px; z-index: 9; }
.live-board h3 { font: 600 clamp(14px, 1.3vw, 22px) var(--display); margin: 0 0 6px; }
.live-board ol { margin: 0; padding-left: 22px; font-size: clamp(13px, 1.1vw, 20px); }
.live-board li span { margin-right: 14px; }
.live-board li b { float: right; }
.live-start { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: radial-gradient(circle, #2a221d, #000); cursor: pointer; z-index: 20; padding: 20px; }
.live-start h1 { font-size: clamp(2.5rem, 7vw, 6rem); }
.live-start a { color: #f0c6a8; }
.empty-stage { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-stage h1 { font-size: clamp(2.5rem, 7vw, 6rem); }

/* Printable signs */
body.print-body { background: #ddd; color: #111; }
.print-bar { position: sticky; top: 0; background: #fff; padding: 12px 16px; display: flex; gap: 12px; align-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.1); z-index: 5; }
.page { width: 8.5in; min-height: 11in; margin: 20px auto; background: var(--bg, #fff); padding: .5in; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.sign { text-align: center; color: var(--ink); width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.s-hosts { font: 600 .9rem var(--sans); text-transform: uppercase; letter-spacing: .2em; color: var(--accent); }
.s-head { font: 600 2.6rem/1.1 var(--display); margin: 10px 0 18px; }
.s-qr { background: #fff; padding: 0; border-radius: 8px; }
.s-qr svg { display: block; width: 3.6in; height: 3.6in; }
.s-sub { margin-top: 14px; font-size: 1.05rem; }
.s-link { margin-top: 6px; font-size: .95rem; color: #555; }
.s-link b { color: #111; font-size: 1.1rem; }
.s-fine { margin-top: 4px; font-size: .62rem; line-height: 1.3; color: #666; max-width: 32em; margin-left: auto; margin-right: auto; }
body.print-bw .s-fine { color: #000; }
.sign.poster .s-head { font-size: 3.6rem; }
.sign.poster .s-qr svg { width: 4.6in; height: 4.6in; }
.page.grid4 { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; padding: .25in; gap: 0; }
.page.grid4 .sign, .page.grid8 .sign { border: 1px dashed #bbb; padding: 10px; height: 100%; }
.sign.card46 .s-head { font-size: 1.7rem; margin: 6px 0 10px; }
.sign.card46 .s-qr svg { width: 2in; height: 2in; }
.sign.card46 .s-sub, .sign.card46 .s-link { font-size: .78rem; }
.page.grid8 { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, 1fr); padding: .25in; }
.sign.small .s-head { font-size: 1.2rem; margin: 2px 0 6px; }
.sign.small .s-hosts { font-size: .6rem; }
.sign.small .s-qr svg { width: 1.5in; height: 1.5in; }
.sign.small .s-sub { display: none; }
.sign.small .s-link { font-size: .7rem; margin-top: 3px; }
.page.tent { flex-direction: column; padding: 0; }
.page.tent > * { height: 5.5in; width: 100%; padding: .4in; }
.page.tent .flip { transform: rotate(180deg); border-bottom: 1px dashed #bbb; }
.sign.tent-half .s-head { font-size: 2rem; margin: 6px 0 10px; }
.sign.tent-half .s-qr svg { width: 2.4in; height: 2.4in; }
.s-table { font: 600 1.6rem var(--display); margin-top: 10px; }
.s-ch { text-align: left; font-size: .9rem; margin: 6px 0 0; }
/* B&W: black on white, overriding the event's theme colors */
body.print-bw { --accent: #000; --ink: #000; --bg: #fff; }
body.print-bw .s-tap-spot { opacity: 1; }
body.print-bw .s-link, body.print-bw .s-link b { color: #000; }
/* Print toolbar toggles: one pill with a sliding highlight on the current half */
.tg-label { font: 600 .8rem var(--sans); color: #666; margin-left: 6px; white-space: nowrap; }
a.tg-label { color: #666; text-decoration: underline dotted; text-underline-offset: 3px; }
a.tg-label:hover { color: #111; }
/* The same pill as a form control (Settings): radio inputs, highlight on the checked half */
.pill-toggle.form::before { display: none; }
.pill-toggle.form label { display: block; margin: 0; font-weight: 600; }
.pill-toggle.form input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.pill-toggle.form span { display: block; padding: 5px 14px; border-radius: 999px; color: #555; cursor: pointer; text-align: center; transition: background .15s ease, color .15s ease; }
.pill-toggle.form input:checked + span { background: #b5121b; color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.pill-toggle.form input[value=bw]:checked + span { background: #111; }
.pill-toggle.form input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.setting-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0; }
.setting-name { font-weight: 500; min-width: 5.5em; }
.pill-toggle { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid #cfc6bd; border-radius: 999px; background: #f3eee9; font: 600 .85rem var(--sans); }
.pill-toggle::before { content: ''; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: #b5121b; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s ease; }
.pill-toggle.right::before { transform: translateX(100%); }
.pill-toggle.three { grid-template-columns: 1fr 1fr 1fr; }
.pill-toggle.three::before { width: calc((100% - 6px) / 3); }
.pill-toggle.three.at1::before { transform: translateX(100%); }
.pill-toggle.three.at2::before { transform: translateX(200%); }
.print-bw .pill-toggle::before { background: #111; }
.pill-toggle a { position: relative; z-index: 1; padding: 5px 14px; border-radius: 999px; text-align: center; color: #555; text-decoration: none; }
.pill-toggle a[aria-current] { color: #fff; }
.pill-toggle a:not([aria-current]):hover { color: #111; }
/* NFC "Tap Here" spot: below the code on posters and 4x6 cards, beside it on tents and small cards */
.s-codes { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.s-tap { display: flex; align-items: center; gap: 10px; font: 1.05rem var(--sans); color: var(--ink); }
.s-tap-spot { --d: 1.3in; width: var(--d); height: var(--d); flex: none; border: 2px dashed var(--accent); border-radius: 50%; display: grid; place-items: center; color: var(--accent); opacity: .85; }
.s-tap-spot svg { width: 42%; height: 42%; opacity: .45; }
.sign.poster .s-tap-spot { --d: 1.35in; }
.sign.poster .s-tap { font-size: 1.3rem; }
.sign.card46 .s-tap-spot { --d: 1.25in; }
.sign.poster > .s-tap, .sign.card46 > .s-tap { margin-top: 12px; }
.sign.card46 > .s-tap { margin-top: 8px; }
.sign.tent-half .s-codes, .sign.small .s-codes { flex-direction: row; gap: 18px; }
.sign.tent-half .s-tap, .sign.small .s-tap { flex-direction: column; gap: 6px; }
.sign.tent-half .s-tap-spot { --d: 1.25in; }
.sign.small .s-tap-spot { --d: 1.1in; }
.sign.small .s-tap { font-size: .8rem; gap: 3px; }
@media print {
  body.print-body { background: none; }
  .no-print { display: none !important; }
  .page { margin: 0; box-shadow: none; page-break-after: always; break-after: page; }
  @page { size: letter; margin: 0; }
}
.print-book { max-width: 7in; margin: 0 auto; padding: 1in .5in; background: #fff; color: #222; }
.print-book blockquote { margin: 0 0 28px; break-inside: avoid; font: 1.2rem/1.5 var(--display); }
.print-book cite { display: block; font: .9rem var(--sans); color: #777; margin-top: 4px; }

/* Vendor credit on guest pages */
.vendor-credit { text-align: center; margin: 28px 16px 12px; font-size: .82rem; color: var(--muted); }
.vendor-credit a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.vendor-credit .vc-logo { max-height: 28px; max-width: 120px; }
.vendor-credit b { color: var(--ink); }
body.g-live .vendor-credit { position: fixed; left: 2.5vw; bottom: 3vh; margin: 0; z-index: 9; color: rgba(255,255,255,.75); }
body.g-live .vendor-credit b { color: #fff; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; } }
.plans.compact { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan.popular { border: 2px solid var(--accent); }
.plan.current { outline: 3px solid color-mix(in srgb, var(--ok) 40%, transparent); }
.plan-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font: 600 .75rem var(--sans); padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.plan h3 { font: 600 1.6rem var(--display); margin: 0; }
.plan-price { font: 600 2.6rem var(--display); font-variant-numeric: lining-nums; color: var(--accent); margin: 6px 0 2px; }
.plan-price span { font: 400 .85rem var(--sans); color: var(--muted); }
.plan-tag { color: var(--muted); min-height: 3em; }
.plan .ticks { font-size: .93rem; margin: 16px 0 8px; }
.plan > .btn, .plan > form, .plan > div.btn, .plan > .small { margin-top: 4px; }
.plan-more { font-size: .9rem; margin-top: 4px; border-top: 1px solid var(--line); padding-top: 10px; }
.plan-more summary { cursor: pointer; color: var(--accent); font-weight: 500; }
.plan-more .ticks { margin: 8px 0 0; }
.plan .ticks li { padding: 5px 0 5px 26px; }
.plan .ticks li::before { top: 5px; }
.compare-wrap { margin: 28px 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 640px; }
table.compare th, table.compare td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: center; }
table.compare td:first-child, table.compare th:first-child { text-align: left; width: 40%; }
table.compare tbody th[scope=row] { font-weight: 400; }
table.compare .row-note { margin-top: 2px; }
table.compare .tip { display: none; }
/* Sticky plan names: on wide screens against the page (below the 64px site header); on phones
   the table scrolls inside its own box, with the feature column pinned too. */
table.compare thead th { position: sticky; top: 64px; z-index: 2; }
@media (min-width: 700px) { .compare-wrap { overflow: visible; } }
@media (max-width: 699px) {
  .compare-wrap { max-height: calc(100vh - 90px); overflow: auto; scroll-margin-top: 74px; }
  table.compare thead th { top: 0; }
  table.compare th:first-child, table.compare td:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); min-width: 150px; width: 150px; box-shadow: 1px 0 0 var(--line); }
  table.compare thead th:first-child { z-index: 3; }
  table.compare tr.grp th { position: static; width: auto; min-width: 0; box-shadow: none; }
  table.compare .grp-l { position: sticky; left: 14px; }
  table.compare .row-note { display: none; }
  table.compare .tip { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); font-size: .7rem; color: var(--muted); cursor: help; }
}
.scroll-hint { display: none; margin: 18px 0 -18px; }
@media (max-width: 699px) { .scroll-hint { display: block; } }
table.compare thead th { background: var(--surface); font: 600 1.15rem var(--display); }
table.compare thead th.popular { color: var(--accent); }
table.compare .cp { font: 500 .85rem var(--sans); color: var(--muted); }
table.compare tr.grp th, table.compare tr.grp td { background: var(--soft); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; color: var(--ink); }
table.compare .yes { color: var(--ok); font-weight: 700; font-size: 1.1rem; }
table.compare .no { color: var(--line); }
.faq-mini { margin-top: 30px; }
.upsell { padding: 40px 20px; max-width: 620px; margin: 20px auto; }
.plan-pill { font-weight: 600; text-decoration: none; }
fieldset.plain-fs { border: 0; padding: 0; margin: 0; }
fieldset.plain-fs[disabled] { opacity: .5; }

/* Songs */
.song-list { list-style: none; padding: 0; margin: 0; }
.song { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.song-t { flex: 1; min-width: 0; }
.song.played { opacity: .45; }
.song .vote { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; cursor: pointer; color: var(--ink); font: inherit; }
.song .vote.on { color: #e0245e; border-color: #e0245e; }
.dj-wrap { max-width: 900px; margin: 0 auto; padding: 30px 20px; font-size: 1.2rem; }
.song-list.dj .song { padding: 14px 0; }
.song-list.dj .votes { font-weight: 600; color: var(--accent); min-width: 3em; }
.sib-list { list-style: none; padding: 0; margin: 0; }
.sib-list li a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; }

/* Kiosk & camera */
body.g-kiosk, body.g-camera { background: #000; color: #fff; padding: 0; overflow: hidden; }
.kiosk, .cam { position: fixed; inset: 0; }
.kiosk video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.k-top { position: absolute; top: 3vh; width: 100%; text-align: center; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.k-top h1 { font-size: clamp(2rem, 5vw, 4rem); margin: 0; }
.k-count { position: absolute; inset: 0; display: grid; place-items: center; font: 600 30vh var(--display); text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.k-flash { position: absolute; inset: 0; background: #fff; }
.k-shot { position: absolute; inset: 6vh 6vw 18vh; width: 88vw; height: 76vh; object-fit: contain; background: #000; border: 10px solid #fff; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.k-bottom { position: absolute; bottom: 4vh; width: 100%; text-align: center; }
.k-go { background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 26px 56px; font: 600 clamp(1.2rem, 3vw, 2rem) var(--sans); box-shadow: 0 10px 30px rgba(0,0,0,.4); cursor: pointer; }
.k-go[disabled] { opacity: .5; }
.k-msg { margin-top: 12px; font-size: 1.2rem; text-shadow: 0 2px 8px #000; }
.k-start { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: radial-gradient(circle, #2a221d, #000); cursor: pointer; z-index: 5; padding: 20px; }
.k-start h1 { font-size: clamp(2.4rem, 7vw, 5rem); }
.cam-view { position: absolute; inset: 0 0 120px; background: #111; }
.cam-view video { width: 100%; height: 100%; object-fit: cover; }
.cam-bar { position: absolute; left: 0; right: 0; bottom: 30px; display: flex; justify-content: space-around; align-items: center; }
.cam-shutter { width: 76px; height: 76px; border-radius: 50%; border: 5px solid #fff; background: #e9e1d6; cursor: pointer; }
.cam-shutter:active { transform: scale(.94); }
.cam-back, .cam-flip { color: #fff; font-size: 1.6rem; text-decoration: none; background: none; border: 0; width: 48px; cursor: pointer; }
.cam-info { position: absolute; top: max(14px, env(safe-area-inset-top)); width: 100%; text-align: center; font: 600 .95rem monospace; color: #ffb36b; text-shadow: 0 1px 4px #000; }
.cam-note { position: absolute; bottom: 108px; width: 100%; text-align: center; font-size: .8rem; opacity: .8; margin: 0; }

/* Photobook editor */
.book-edit { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.bk-row { display: grid; grid-template-columns: 56px 1fr minmax(260px, 340px); gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; cursor: pointer; }
.bk-row.sel { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }
@media (max-width: 760px) { .bk-row { grid-template-columns: 40px 1fr; } .bk-ctl { grid-column: 1 / -1; } }
.bk-n { font: 600 1.1rem var(--display); text-align: center; color: var(--muted); }
.bk-thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.bk-t { position: relative; }
.bk-t img { width: 74px; height: 74px; object-fit: cover; border-radius: 6px; display: block; }
.bk-t button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); cursor: pointer; line-height: 1; }
.bk-ctl { display: flex; flex-direction: column; gap: 6px; }
.bk-ctl input, .bk-ctl select { margin: 0; padding: 6px 8px; }
.bk-ctl button { background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; cursor: pointer; color: var(--ink); }
.tray .mtile.used img { opacity: .35; }
.picker-grid { padding: 12px; overflow-y: auto; flex: 1; }

/* Photobook print */
body.bk-body { margin: 0; background: #ccc; }
.bk-page { width: var(--bk-w); height: var(--bk-h); background: #fff; color: #2b2420; margin: 20px auto; position: relative; overflow: hidden; box-sizing: border-box; padding: .45in; page-break-after: always; break-after: page; display: flex; flex-direction: column; }
@media print { body.bk-body { background: none; } .bk-page { margin: 0; box-shadow: none; } }
.bk-ph { background: center/cover no-repeat #eee; border-radius: 2px; }
.bk-grid { flex: 1; display: grid; gap: .18in; min-height: 0; }
.bk-full .bk-grid { grid-template-columns: 1fr; }
.bk-two .bk-grid { grid-template-columns: 1fr 1fr; }
.bk-three .bk-grid { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; }
.bk-three .bk-ph:first-child { grid-row: span 2; }
.bk-four .bk-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.bk-cap { font: italic 500 14pt var(--display); text-align: center; margin: .15in 0 0; }
.bk-num { position: absolute; bottom: .18in; right: .3in; font: 8pt var(--sans); color: #999; }
.bk-cover { padding: 0; }
.bk-cover-ph { position: absolute; inset: 0; border-radius: 0; }
.bk-cover-text { position: absolute; left: 0; right: 0; bottom: 0; padding: .6in .5in .5in; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; text-align: center; }
.bk-cover-text h1 { font: 600 34pt var(--display); margin: 0; }
.bk-cover-text p { font: 12pt var(--sans); letter-spacing: .15em; text-transform: uppercase; margin: 6pt 0 0; }
.bk-section { justify-content: center; align-items: center; text-align: center; }
.bk-section h2 { font: 600 30pt var(--display); color: var(--accent); }
.bk-end p { font: 9pt var(--sans); color: #999; letter-spacing: .2em; text-transform: uppercase; }

/* Thank-you cards */
table.thanks .th-ph img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; display: block; margin-bottom: 4px; }
.ty-page { display: grid; grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; padding: .4in .75in; gap: .3in; }
.ty-card { border: 1px dashed #bbb; display: flex; flex-direction: column; overflow: hidden; }
.ty-front .ty-ph { flex: 1; background: center/cover #eee; display: grid; place-items: center; font: 600 24pt var(--display); }
.ty-foot { text-align: center; font: italic 600 22pt var(--display); padding: .12in; color: var(--accent); }
.ty-back { padding: .5in .6in; justify-content: center; }
.ty-back p { white-space: pre-wrap; font: 14pt/1.5 var(--display); margin: 0; }
.lang-row { text-align: center; margin: 8px 0 18px; font-size: .82rem; }
.lang-row a { color: var(--muted); }
body.g-live .lang-row, body.g-kiosk .lang-row, body.g-camera .lang-row, body.g-dj .lang-row, body.print-body .lang-row { display: none; }
.moment { border-top: 1px solid var(--line); padding: 12px 0; }
.moment-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.mpick { position: relative; display: block; cursor: pointer; }
.mpick img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; display: block; }
.mpick input { position: absolute; top: 4px; left: 4px; }
.mpick span { position: absolute; right: 4px; bottom: 4px; font-size: .7rem; color: #fff; background: rgba(0,0,0,.6); padding: 0 5px; border-radius: 4px; }
.gb-transcript { white-space: pre-wrap; }
.pad-top { margin-top: 24px; }

/* Demo page (desktop): a sample table sign next to the steps */
.demo { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: 56px; align-items: center; }
.demo-poster { background: #fffdf9; color: #2b2420; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 2px 4px rgba(43,36,32,.08), 0 18px 48px rgba(43,36,32,.14);
  padding: 40px 32px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; transform: rotate(-1.2deg); }
.demo-poster .s-head { font-size: 2.5rem; color: #2b2420; }
.demo-poster .s-qr { padding: 10px; border: 1px solid #e8dfd6; }
.demo-poster .s-qr svg { width: 240px; height: 240px; }
.demo-poster .s-sub { color: #2b2420; }
.demo-steps ol { padding-left: 1.3em; margin: 0 0 24px; }
.demo-steps li { margin: 0 0 12px; font-size: 1.08rem; }
@media (max-width: 860px) { .demo { grid-template-columns: 1fr; gap: 32px; } .demo-poster { max-width: 380px; margin: 0 auto; transform: none; } }

/* Guest pages on a desktop: the page runs in an iframe inside a drawn phone (lib/phone-frame.js) */
body.phone-shell { padding: 0; min-height: 100vh; overflow: hidden;
  background: radial-gradient(1200px 700px at 30% 40%, color-mix(in srgb, var(--accent) 16%, var(--bg)), var(--bg) 70%); }
.ps-stage { height: 100vh; display: flex; align-items: center; justify-content: center; gap: 72px; padding: 24px 32px; }
.ps-fit { flex: none; width: 412px; height: 866px; }
.ps-phone { position: relative; width: 412px; height: 866px; padding: 11px; transform-origin: 0 0;
  background: #1c1c1e; border-radius: 64px; box-shadow: 0 0 0 2px #48484a, 0 0 0 4px #1c1c1e, 0 0 0 7px #fff, 0 40px 90px rgba(20,14,10,.38), 0 12px 30px rgba(20,14,10,.22); }
.ps-btn { position: absolute; width: 4px; background: #3a3a3c; border-radius: 2px; }
.ps-btn-action { left: -6px; top: 17%; height: 4%; }
.ps-btn-up { left: -6px; top: 25%; height: 7.5%; }
.ps-btn-down { left: -6px; top: 34%; height: 7.5%; }
.ps-btn-power { right: -6px; top: 28%; height: 11%; }
.ps-screen { position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 54px; background: var(--bg); }
.ps-status { flex: none; height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 34px;
  font: 600 15px/1 Inter, system-ui, sans-serif; color: var(--ink); background: var(--bg); position: relative; }
.ps-island { position: absolute; left: 50%; top: 11px; transform: translateX(-50%); width: 31%; height: 30px; border-radius: 16px; background: #000; }
.ps-icons { display: flex; align-items: center; gap: 6px; }
.ps-signal { display: flex; align-items: flex-end; gap: 2px; height: 11px; }
.ps-signal b { width: 3px; background: currentColor; border-radius: 1px; }
.ps-signal b:nth-child(1) { height: 4px; } .ps-signal b:nth-child(2) { height: 6px; } .ps-signal b:nth-child(3) { height: 8.5px; } .ps-signal b:nth-child(4) { height: 11px; }
.ps-battery { width: 24px; height: 11.5px; border: 1.5px solid currentColor; border-radius: 3.5px; position: relative; opacity: .9; }
.ps-battery::before { content: ""; position: absolute; inset: 1.5px; right: 4px; background: currentColor; border-radius: 1.5px; }
.ps-battery::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 3.5px; background: currentColor; border-radius: 0 1px 1px 0; }
.ps-screen iframe { flex: 1; width: 100%; border: 0; display: block; background: var(--bg); }
.ps-homebar { flex: none; height: 24px; display: flex; align-items: center; justify-content: center; background: var(--surface, #fff); }
.ps-home { width: 36%; height: 5px; border-radius: 3px; background: var(--ink); opacity: .55; }
.ps-side { max-width: 320px; max-height: calc(100vh - 48px); overflow-y: auto; }
@media (max-height: 800px) { .ps-side h1 { font-size: 1.9rem; margin: 4px 0 8px; } .ps-side p { margin: 8px 0; } .ps-qr { width: 120px; margin: 10px 0 6px; } .ps-exit { margin-top: 10px; } }
.ps-side h1 { font-size: 2.4rem; margin: 6px 0 12px; }
.ps-live { padding: 10px 12px; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); border-radius: 0 10px 10px 0; }
.ps-exit { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ps-qr { width: 168px; padding: 10px; margin: 18px 0 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.ps-qr svg { display: block; width: 100%; height: auto; }
/* Short or narrow windows, and touch screens: just the page, no phone */
@media (max-width: 760px), (max-height: 560px), (pointer: coarse) {
  body.phone-shell { overflow: auto; background: var(--bg); }
  .ps-stage { display: block; height: 100vh; padding: 0; }
  .ps-fit, .ps-phone { width: 100%; height: 100%; }
  .ps-phone { padding: 0; border-radius: 0; box-shadow: none; background: none; transform: none; }
  .ps-btn, .ps-status, .ps-homebar, .ps-side { display: none; }
  .ps-screen { border-radius: 0; }
}
@media (max-width: 1000px) and (min-width: 761px) { .ps-stage { gap: 40px; } .ps-side { max-width: 240px; } .ps-side h1 { font-size: 1.9rem; } }
.legal h2 { font-size: 1.15rem; margin: 1.8em 0 .5em; }
.legal li { margin-bottom: .35em; }
.legal code { font-size: .9em; }
.gd-fix p, .gd-fix ol { margin: 0 0 10px; }
.gd-fix ol { padding-left: 1.3em; }
.spin { display: inline-block; width: .9em; height: .9em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -.1em; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.gd-progress { margin-top: 8px; }

/* Revision 2026-10-26: accessibility helpers, nav menu, privacy note, guides. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* File pickers stay real, focusable inputs; the label next to them is the visible button. */
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.file-input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn:focus-visible, .chip:focus-visible, a:focus-visible, summary:focus-visible, .linklike:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.who-sees { margin: 10px 0 4px; text-align: center; color: var(--muted); }
.who-sees summary { cursor: pointer; color: var(--accent); font-weight: 500; }
.who-sees p { text-align: left; margin: 8px 0 0; }
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav a:hover { color: var(--accent); }
.nav-menu { display: none; position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; font-size: .9rem; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu nav { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; min-width: 190px; box-shadow: 0 10px 30px rgba(43,36,32,.15); }
.nav-menu nav a { padding: 10px 12px; color: var(--ink); text-decoration: none; border-radius: 8px; }
.nav-menu nav a:hover, .nav-menu nav a:focus-visible { background: var(--soft); }
.nav-menu nav .linklike { display: block; width: 100%; text-align: left; padding: 10px 12px; color: var(--ink); text-decoration: none; border-radius: 8px; }
.nav-menu nav .linklike:hover, .nav-menu nav .linklike:focus-visible { background: var(--soft); }
@media (max-width: 760px) { .nav-menu { display: block; } .site-cta > a:not(.btn) { display: none; } .site-cta { gap: 10px; } }
.early-note { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.hero h1 .l { display: block; }
.hero-qr { position: absolute; left: 0; bottom: 20px; width: 200px; background: #fff; border-radius: 12px; padding: 14px 16px; text-align: center; box-shadow: 0 20px 40px rgba(43,36,32,.18); transform: rotate(-5deg); color: #2b2420; text-decoration: none; }
.hero-qr svg { width: 120px; height: 120px; display: block; margin: 0 auto; }
.hero-qr b { display: block; font: 600 1.2rem 'Cormorant Garamond', serif; margin-top: 6px; }
.hero-qr small { font-size: .7rem; color: #7a6e66; }
.in-action { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
@media (max-width: 860px) { .in-action { grid-template-columns: 1fr; } }
.in-action .fcard h3 { margin-top: 0; }
.mini-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0; }
@media (max-width: 700px) { .mini-plans { grid-template-columns: 1fr; } }
.mini-plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; }
.mini-plan b { display: block; font: 600 1.3rem var(--display); }
.mini-plan .plan-price { font-size: 2rem; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px 28px; margin: 20px 0; }
.trust-grid h3 { margin: 0 0 4px; font-size: 1rem; }
.trust-grid p { margin: 0; color: var(--muted); font-size: .93rem; }
.guide { max-width: 760px; }
.guide h2 { font: 600 1.7rem var(--display); margin-top: 36px; }
.guide figure { margin: 20px 0; }
.guide figcaption { font-size: .85rem; color: var(--muted); }
.guide-cta { background: var(--soft); border-radius: var(--radius); padding: 18px 20px; margin: 28px 0; }
.guide-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 24px 0; }
.guide-list a.fcard { color: var(--ink); text-decoration: none; display: block; }
.guide-list a.fcard h2 { font: 600 1.35rem var(--display); margin: 0 0 6px; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin: 20px 0; }
.tpl-grid .fcard { text-align: center; }

.qr-slot { width: 3.6in; height: 3.6in; border: 2px dashed #999; border-radius: 8px; display: grid; place-items: center; color: #999; font: 500 .9rem var(--sans); }
.sign.poster .qr-slot { width: 4.6in; height: 4.6in; }
.sign.card46 .qr-slot { width: 2in; height: 2in; }
.sign.tent-half .qr-slot { width: 2.4in; height: 2.4in; }
.write-line { display: inline-block; width: 2.6in; border-bottom: 1px solid #555; vertical-align: bottom; height: 1.2em; }
.sign.card46 .write-line { width: 1.6in; }
.tpl-credit { text-align: center; font-size: .7rem; color: #999; margin: 0 0 20px; }
@media print { .tpl-credit { position: fixed; bottom: .15in; left: 0; right: 0; margin: 0; } }
.agree-row { display: flex; gap: 10px; align-items: flex-start; }
.agree-row input { margin-top: 4px; flex: none; width: 20px; height: 20px; }
.agree-row label { font-weight: 400; margin: 0; cursor: pointer; }
.agree-links { margin: -4px 0 0 30px; }
.shot-crop { width: 100%; height: 340px; object-fit: cover; object-position: top; border-radius: 12px; border: 1px solid var(--line); display: block; }
.g-alt + p { margin-top: 12px; }
@media (min-width: 901px) { .plan .plan-tag { min-height: 4.7em; } }
.nowrap { white-space: nowrap; }
.timeline-edit + .btn + .small, form.card > .btn + p.small { margin-top: 10px; }

/* 2026-11 plans: four public cards, intro prices, usage meters, purchase offers. */
.plans.four { grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1150px) { .plans.four { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-left: auto; margin-right: auto; } }
@media (max-width: 620px) { .plans.four { grid-template-columns: 1fr; max-width: 460px; } }
.plan-price .was { font-size: .55em; color: var(--muted); font-weight: 400; }
.cp .plan-price { font-size: 1.15rem; margin: 2px 0 0; }
.intro-note { color: var(--ok); font-weight: 500; }
.meter { height: 8px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); overflow: hidden; max-width: 320px; margin-top: 4px; }
.meter i { display: block; height: 100%; background: var(--accent); }
.meter.over i { background: var(--warn); }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 12px; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }
@media (max-width: 560px) { dl.facts { grid-template-columns: 1fr; } dl.facts dd { margin-bottom: 8px; } }
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 24px; }
.offer { display: flex; flex-direction: column; }
.offer .offer-form { margin-top: auto; display: grid; gap: 8px; }
dialog.size-dialog { max-width: 420px; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--surface); color: var(--ink); }
dialog.size-dialog::backdrop { background: rgba(0,0,0,.45); }
dialog.size-dialog h2 { font-size: 1.15rem; }
/* Galleries editor and moderation */
.gal-list { display: grid; gap: 14px; margin-bottom: 14px; }
fieldset.gal-row { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px 14px; }
fieldset.gal-row legend { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.gal-cover { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; display: inline-block; }
.gal-cover.ph { background: var(--soft); border: 1px dashed var(--line); }
.mod-row { display: grid; grid-template-columns: minmax(120px, 220px) 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.mod-row:first-of-type { border-top: 0; }
@media (max-width: 600px) { .mod-row { grid-template-columns: 1fr; } }
.mod-thumb { width: 100%; max-width: 220px; border-radius: 8px; }
.mod-row blockquote { margin: 0 0 4px; padding-left: 10px; border-left: 3px solid var(--line); }
input.mini { width: 4.5em; }
.row-inline { display: inline-flex; gap: 6px; align-items: center; }
.lb-note { color: #fff; background: rgba(0,0,0,.55); padding: 6px 10px; border-radius: 8px; margin: 6px auto; max-width: 90%; text-align: center; }
.lb-note a { color: #fff; }
.g-gal-desc { margin: 4px 0 12px; }
.tile-tools { position: absolute; bottom: 4px; right: 4px; display: flex; gap: 6px; background: rgba(0,0,0,.55); border-radius: 6px; padding: 2px 6px; }
.tile-tools .linklike { color: #fff; }
.gb-translation { border-left: 3px solid var(--line); padding-left: 8px; font-style: italic; }
.gb-translation.gb-tr-text { white-space: pre-wrap; font-family: var(--display); font-size: 1.2rem; font-style: normal; }
.gb-tr > summary { color: var(--accent); cursor: pointer; }
.wait-qr svg { width: clamp(180px, 22vw, 360px); height: auto; background: #fff; padding: 14px; border-radius: 16px; margin: 2vh 0; }
.qr-slide .empty-stage p { font-size: clamp(18px, 2vw, 32px); }
.dj-slides .row { flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.small-grid { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
.tile.voted { outline: 3px solid var(--accent); }
.tile.ph { display: flex; align-items: center; justify-content: center; background: var(--soft); aspect-ratio: 1; }

/* Guest crop editor (gallery lightbox) */
.crop-wrap { position: relative; display: inline-block; max-width: 100%; max-height: 100%; touch-action: none; user-select: none; }
.crop-wrap img { display: block; max-width: 100%; max-height: 70vh; width: auto; height: auto; }
.crop-box { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0,0,0,.55); cursor: move; }
.crop-box i { position: absolute; width: 22px; height: 22px; background: #fff; border-radius: 50%; border: 2px solid var(--accent, #d01515); }
.crop-box i[data-h=nw] { left: -3px; top: -3px; cursor: nwse-resize; } .crop-box i[data-h=ne] { right: -3px; top: -3px; cursor: nesw-resize; }
.crop-box i[data-h=sw] { left: -3px; bottom: -3px; cursor: nesw-resize; } .crop-box i[data-h=se] { right: -3px; bottom: -3px; cursor: nwse-resize; }
.lb-media .crop-wrap { overflow: hidden; }
.trim { border: 1px solid var(--line, #ddd); border-radius: 8px; padding: 8px 10px; }
.trim input[type=range] { width: 100%; }

/* Header never wraps (it used to wrap with the fallback font, then jump when the web font
   loaded: CLS 0.24-0.38 on phones). The logo gives up width instead. */
.site-header .row, .app-header .row { flex-wrap: nowrap; }
.site-header .brand, .app-header .brand { min-width: 0; flex-shrink: 1; }
.site-header .brand-logo, .app-header .brand-logo { max-width: 100%; object-fit: contain; object-position: left center; }
.site-cta, .app-header .nav-menu { flex-shrink: 0; white-space: nowrap; }
.lb-panel select, .lb-panel input, .lb-panel textarea { color: var(--ink); }

/* 2026-11-07 UX handoff: photo hero, real demo screens, image cards, price stack, compare intro row. */
.pad-sm { padding-top: 36px; padding-bottom: 36px; }
.mini-plans { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .mini-plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .mini-plans { grid-template-columns: 1fr; } }
.mini-plan { position: relative; display: flex; flex-direction: column; align-items: center; }
.mini-plan.popular { border: 2px solid var(--accent); }
.mini-plan > .small { margin-top: auto; padding-top: 8px; }
picture { display: block; }
picture img { display: block; width: 100%; height: auto; }
.rounded img { border-radius: var(--radius); }

.hero-photo { position: relative; }
.hero-photo .hero-screen { bottom: 22px; }
.hero-pic img { border-radius: 22px; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 50% 40%; box-shadow: var(--shadow); }
.hero-screen { position: absolute; left: -26px; bottom: 0; width: 132px; border-radius: 22px; padding: 6px; background: #1d1916; box-shadow: 0 0 0 2px #fff, 0 18px 40px rgba(43,36,32,.28); }
.hero-screen img { border-radius: 17px; aspect-ratio: 390 / 600; object-fit: cover; object-position: top; }
.hero-qr2 { position: absolute; right: -10px; bottom: 6px; display: flex; gap: 10px; align-items: center; background: #fff; color: #2b2420; text-decoration: none; border-radius: 14px; padding: 10px 14px 10px 10px; box-shadow: 0 16px 36px rgba(43,36,32,.2); }
.hero-qr2 .qr svg { width: 84px; height: 84px; display: block; }
.hero-qr2 b { display: block; font: 600 1.15rem var(--display); }
.hero-qr2 small { font-size: .72rem; color: #6b5f57; }
.hero-note { margin: 10px 0 0 120px; font-size: .75rem; color: var(--muted); }
.hero-photo .hero-qr2 { bottom: 40px; }
@media (max-width: 860px) {
  .hero-photo { max-width: 560px; margin: 8px auto 0; }
  .hero-screen { left: 8px; width: 104px; }
  .hero-qr2 { display: none; }
}

.proof-cards { display: grid; grid-template-columns: 1fr 1.25fr 1.25fr; gap: 18px; margin-top: 22px; }
@media (max-width: 900px) { .proof-cards { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; } }
.proof { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s; }
.proof:hover { transform: translateY(-2px); }
.proof-media { display: block; background: var(--soft); border-bottom: 1px solid var(--line); }
.proof-media img { aspect-ratio: 16 / 10.5; object-fit: cover; object-position: top; }
.proof-media.phone-shot { padding: 14px 0 0; text-align: center; }
.proof-media.phone-shot picture { width: 54%; margin: 0 auto; }
.proof-media.phone-shot img { aspect-ratio: 390 / 520; border-radius: 16px 16px 0 0; border: 5px solid #1d1916; border-bottom: 0; }
@media (max-width: 900px) { .proof-media.phone-shot picture { width: 46%; } }
.proof-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px 18px; }
.proof-body b { font: 600 1.3rem var(--display); }
.proof .go { color: var(--accent); font-weight: 600; font-size: .92rem; margin-top: 4px; }

.qr-flow { margin: 28px auto 0; max-width: 820px; text-align: center; }
.qr-flow img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); }
.qr-flow figcaption { margin-top: 8px; }
.media-split { align-items: center; }

.big-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 26px; }
@media (max-width: 760px) { .big-cards { grid-template-columns: 1fr; } }
.big-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
a.big-card:hover .big-body b { color: var(--accent); }
.big-media { position: relative; display: block; }
.big-media > picture img { aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 35%; }
.big-media .inset { position: absolute; right: 12px; bottom: 12px; width: 38%; border-radius: 10px; overflow: hidden; border: 3px solid #fff; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.big-media .inset img { aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.big-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px 20px; }
.big-body b { font: 600 1.4rem var(--display); }
.big-body .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.plan-tag-pill { display: inline-block; font: 600 .75rem var(--sans); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--ink); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); border-radius: 999px; padding: 3px 10px; }

/* Price stack: regular first and legible, intro price larger in an outlined pill. */
.price-stack { margin: 6px 0 4px; }
.price-stack .plan-price { margin: 0; line-height: 1.05; }
.price-unit { font-size: .85rem; color: var(--muted); white-space: nowrap; margin-top: 4px; }
.price-regular { font-size: .95rem; color: var(--ink); }
.price-regular span { color: var(--muted); }
.price-regular b { font-family: var(--sans); font-variant-numeric: lining-nums; font-weight: 600; text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, var(--ink) 55%, transparent); }
.intro-pill { display: inline-flex; flex-direction: column; align-items: flex-start; margin-top: 6px; padding: 6px 16px 8px; border: 2px solid var(--accent); border-radius: 16px; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.intro-label { font: 600 .72rem var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.mini-plan .price-stack { display: flex; flex-direction: column; align-items: center; }
.mini-plan .intro-pill { align-items: center; }
.plan .price-stack { min-height: 8.6rem; }
@media (max-width: 620px) { .plan .price-stack { min-height: 0; } }
.plan .price-stack.free .plan-price, .plan .price-stack:not(.has-intro) .plan-price { font-size: 2.6rem; }
.plan .price-stack.free { padding-top: 1.7rem; }

.reassure { list-style: none; padding: 0; margin: 22px auto 26px; max-width: 920px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: center; }
.reassure li { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.reassure span { font-size: .88rem; color: var(--muted); }
@media (max-width: 700px) { .reassure { grid-template-columns: 1fr; } }

/* Compare: jump links, Best Value in the sticky header, one connected intro-price row. */
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 4px; }
.jump a { font-size: .85rem; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 12px; }
.jump a:hover { border-color: var(--accent); color: var(--accent); }
table.compare tr.grp { scroll-margin-top: 150px; }
table.compare tr.grp th { padding-top: 20px; }
table.compare tbody th[scope=row], table.compare td { padding-top: 12px; padding-bottom: 12px; }
.th-flag { font: 600 .68rem var(--sans); color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
table.compare .cp { font: 600 1.1rem var(--display); color: var(--accent); font-variant-numeric: lining-nums; }
table.compare tr.intro-row td.intro-cell { position: relative; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); border-top: 2px solid var(--accent); border-bottom: 2px solid var(--accent); font: 600 1.45rem var(--display); color: var(--accent); font-variant-numeric: lining-nums; }
table.compare tr.intro-row td.intro-cell.first { border-left: 2px solid var(--accent); border-radius: 14px 0 0 14px; }
table.compare tr.intro-row td.intro-cell.last { border-right: 2px solid var(--accent); border-radius: 0 14px 14px 0; }
table.compare tr.intro-row { border-collapse: separate; }

/* Feature sections, partners, guides, help topics. */
.feat-section { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; padding: 40px 0; border-top: 1px solid var(--line); }
.feat-section:first-of-type { border-top: 0; }
.feat-section.flip > .feat-visual { order: 2; }
@media (max-width: 860px) { .feat-section { grid-template-columns: 1fr; gap: 20px; } .feat-section.flip > .feat-visual { order: 0; } }
.feat-visual { position: sticky; top: 90px; }
@media (max-width: 860px) { .feat-visual { position: static; } }
.feat-visual figure { margin: 0 0 12px; }
.feat-visual img { border-radius: var(--radius); border: 1px solid var(--line); }
.feat-visual figcaption { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.feat-list h3 { font: 600 1.05rem var(--sans); margin: 16px 0 2px; }
.feat-list p { margin: 0; color: var(--muted); font-size: .95rem; }
.feat-list .plan-tag-pill { margin-left: 6px; vertical-align: 1px; }
.aud { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center; padding: 36px 0; border-top: 1px solid var(--line); }
.aud.flip > :first-child { order: 2; }
@media (max-width: 820px) { .aud { grid-template-columns: 1fr; } .aud.flip > :first-child { order: 0; } }
.aud img { border-radius: var(--radius); }
.guide figure { margin: 20px 0; }
.guide figure img { border-radius: 12px; border: 1px solid var(--line); }
.guide figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.guide .fig-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .guide .fig-pair { grid-template-columns: 1fr; } }
.help-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }
.help-jump a { font-size: .88rem; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; color: var(--ink); background: var(--surface); }
.help-topic { scroll-margin-top: 90px; margin-top: 32px; font: 600 1.5rem var(--display); }
.demo-paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 26px 0 10px; }
@media (max-width: 860px) { .demo-paths { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; } }
.demo-note { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; font-size: .92rem; }
.req { color: var(--accent); font-weight: 600; }
.g-sample { margin: 6px 0 0; font-size: .78rem; opacity: .85; }
.who-short { margin: 12px 0 0; text-align: center; color: var(--ink); }
.who-short + .who-sees { margin-top: 2px; }
.tile:focus-visible, .mtile:focus-visible, .proof:focus-visible, .big-card:focus-visible, .jump a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
figure img { max-width: 100%; height: auto; }
.phone-fig picture { max-width: 250px; margin: 0 auto; }
.phone-fig picture img { border: 6px solid #1d1916; border-radius: 22px; }
.aud figure img[src$=".svg"] { width: 100%; }
.demo > * { min-width: 0; }
@media (max-width: 400px) { .demo-poster .s-qr svg { width: 200px; height: 200px; } .demo-poster { padding-left: 16px; padding-right: 16px; } }
.tpl-grid .btn { white-space: normal; text-align: center; }
.aud { align-items: start; }

/* Upload progress bar (guest pages, public/js/uploader.js): fixed at the bottom while a queue
   is running. Whole-bar segments: green sent, light green queued, grey held for WiFi, red failed. */
.upbar { --up-done: #2f8f4e; --up-queued: #bfe5c9; --up-held: #d8d2cb; --up-fail: #c0392b;
  position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 60; max-width: 640px; margin: 0 auto;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 6px 28px rgba(0,0,0,.18); overflow: hidden; }
body.has-upbar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
body:has(.g-nav) .upbar { bottom: calc(68px + env(safe-area-inset-bottom)); }
body.guest.has-upbar:has(.g-nav) { padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
body.has-upbar #toasts { bottom: calc(150px + env(safe-area-inset-bottom)); }
body.g-camera .upbar, body.g-kiosk .upbar { display: none; }
.upbar-head { all: unset; box-sizing: border-box; display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 14px 6px; cursor: pointer; font: 600 .9rem/1.3 var(--sans); font-variant-numeric: tabular-nums; }
.upbar-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.upbar-more { color: var(--muted); }

.upbar-track { display: flex; height: 8px; margin: 0 14px 10px; border-radius: 99px; overflow: hidden; background: var(--up-queued); }
.upbar-track .upseg { display: block; margin: 0; height: 100%; transition: width .4s ease; }
.upbar-track .up-done { background: var(--up-done); }
.upbar-track .up-queued { background: var(--up-queued); }
.upbar-track .up-held { background: repeating-linear-gradient(45deg, var(--up-held) 0 6px, #e9e4de 6px 12px); }
.upbar-track .up-fail { background: var(--up-fail); }
.upbar-panel { border-top: 1px solid var(--line); padding: 10px 14px 12px; max-height: min(60vh, 460px); overflow-y: auto; }
.upbar-sizes { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin-bottom: 8px; }
.upbar-sizes .check { margin: 0; }
.upbar-actions { display: flex; gap: 8px; margin-bottom: 8px; }
.btn.btn-small { padding: 5px 12px; font-size: .85rem; }
.upbar-remind { background: var(--soft); border-radius: 8px; padding: 8px 10px; }
.upi-list { list-style: none; margin: 0; padding: 0; }
.upi { position: relative; display: grid; grid-template-columns: 44px 1fr auto auto auto; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
.upi img, .upi .upi-ph { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; background: var(--soft); }
.upi .play { position: absolute; left: 0; top: 5px; width: 44px; height: 44px; display: grid; place-items: center; color: #fff; font-size: .9rem; text-shadow: 0 1px 4px rgba(0,0,0,.6); pointer-events: none; }
.upi-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upi-st { color: var(--muted); white-space: nowrap; }
.upi.done .upi-st { color: var(--ok); }
.upi.error .upi-st { color: var(--err); }
@media (prefers-color-scheme: dark) { html:not([data-theme=light]) .upbar { --up-held: #5a524c; --up-queued: #3d6b4b; --up-done: #5cc27e; } html:not([data-theme=light]) .upbar-track .up-held { background: repeating-linear-gradient(45deg, #5a524c 0 6px, #4a433e 6px 12px); } }
/* Play badge on video thumbnails wherever thumbnails appear. */
.play-badge { position: relative; display: inline-block; }
.play-badge::after { content: '▶'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.2rem; text-shadow: 0 2px 8px rgba(0,0,0,.55); pointer-events: none; }
.badge.orig-incomplete { background: var(--warn); color: #fff; }
.badge.orig-pending { background: var(--soft); color: var(--muted); }

/* ===== Host workspace redesign 2026-11 (docs/redesign-2026-11): light, high-contrast ===== */
body.app { --bg: #f6f6f7; --surface: #ffffff; --ink: #18181b; --muted: #5b5b66; --line: #dcdce1; --soft: #f0f0f3; --accent: #c8102e; --shadow: none; }
body.app .card { box-shadow: none; }
.app-header .row { min-height: 56px; }
.app-header .brand-logo { height: 40px; }
.ah-right { display: flex; align-items: center; gap: 10px; }
.menu { position: absolute; z-index: 60; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px; min-width: 220px; box-shadow: 0 8px 28px rgba(0,0,0,.12); display: flex; flex-direction: column; }
.menu a, .menu .linklike { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; text-align: left; }
.menu a:hover, .menu .linklike:hover { background: var(--soft); }
.menu form { margin: 0; }
.menu-h { padding: 6px 12px 2px; }
details.profile-menu, details.ev-switch, details.share-pop { position: relative; }
details.profile-menu > summary, details.ev-switch > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
details > summary::-webkit-details-marker { display: none; }
.profile-menu .menu { right: 0; top: calc(100% + 6px); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-grid; place-items: center; font-weight: 600; font-size: .9rem; }
.pm-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
@media (max-width: 640px) { .pm-name { display: none; } }
.lp-note { padding: 6px 10px 2px; max-width: 240px; margin: 0; }
.event-bar { background: var(--surface); }
.eb-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 0 4px; }
.ev-name { font: 600 1.15rem var(--sans); max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-switch .menu { left: 0; top: calc(100% + 6px); }
.caret { width: 16px; height: 16px; color: var(--muted); }
.plan-pill { text-decoration: none; background: var(--ink); color: #fff; font-weight: 600; }
.status-pill { font-weight: 600; border: 1px solid currentColor; background: transparent; }
.tone-ok { color: var(--ok); } .tone-warn { color: var(--warn); } .tone-err { color: var(--err); } .tone-muted { color: var(--muted); }
.eb-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.share-pop > summary { list-style: none; }
.share-panel { right: 0; top: calc(100% + 6px); padding: 14px; gap: 10px; align-items: flex-start; min-width: 260px; }
.share-panel img { border: 1px solid var(--line); border-radius: 8px; background: #fff; height: auto; }
@media (max-width: 640px) { .eb-actions { margin-left: 0; width: 100%; } .share-panel { right: auto; left: 0; } .ev-name { max-width: 70vw; } }
.event-tabs { border-top: 0; }
.event-tabs a { font-size: .95rem; color: var(--muted); }
.event-tabs a.on { color: var(--ink); font-weight: 600; }
.nav-badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .72rem; line-height: 20px; text-align: center; font-weight: 600; }
.subnav { display: flex; gap: 6px; flex-wrap: wrap; padding: 14px 0 0; }
.subnav a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--surface); font-size: .9rem; }
.subnav a.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.crumbs { padding-top: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
/* Shared status badges (never color alone: always text) */
.sb { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; border: 1px solid var(--line); background: var(--soft); color: var(--ink); white-space: nowrap; }
.sb.b-ok { background: #e7f4ea; border-color: #b7dcc0; color: #1d5a2d; }
.sb.b-warn { background: #fff4e0; border-color: #f0d09a; color: #7a4a00; }
.sb.b-err { background: #fde8e8; border-color: #f2b8b8; color: #8e1b1b; }
.sb.b-info { background: #e8f0fd; border-color: #b9cdf3; color: #1d3f7a; }
.sb.b-lock { background: #f0f0f3; border-color: #dcdce1; color: #4a4a55; }
/* Home dashboard */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; border: 1px solid; }
.alert-urgent { background: #fde8e8; border-color: #f2b8b8; color: #6e1414; }
.alert a { color: inherit; font-weight: 600; }
.status-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 18px; }
.status-strip > div { padding: 12px 16px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.status-strip > div:first-child { border-left: 0; }
.ss-l { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.meter { display: block; height: 6px; background: var(--soft); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.meter i { display: block; height: 100%; background: var(--ink); }
@media (max-width: 900px) { .status-strip { grid-template-columns: 1fr 1fr; } .status-strip > div { border-left: 0; border-top: 1px solid var(--line); } .status-strip > div:nth-child(-n+2) { border-top: 0; } }
.needs { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px 18px; margin-bottom: 18px; }
.needs h2 { font-size: 1rem; margin-bottom: 6px; }
.needs-list { margin: 0; padding-left: 18px; }
.needs-list li { margin: 4px 0; }
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 18px; }
.dcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.dcard.wide { grid-column: 1 / -1; }
.dcard.primary { border-color: var(--ink); }
.dcard.locked { background: var(--soft); color: var(--muted); }
.dcard-head { display: flex; gap: 8px; align-items: center; width: 100%; }
.dcard-head h3 { margin: 0; font-size: 1.02rem; }
.dcard-head .sb { margin-left: auto; }
.dcard-status { margin: 0; font-weight: 500; }
.dcard p.small { margin: 0 0 4px; }
.dcard .btn { margin-top: auto; }
.getting-started { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.getting-started li.done a { color: var(--muted); }
.other-tools > summary { cursor: pointer; font-weight: 600; padding: 10px 0; list-style: none; }
.other-tools > summary::before { content: "▸ "; } .other-tools[open] > summary::before { content: "▾ "; }
/* Settings: seven cards, two columns, expanded card spans the row */
.settings-search { width: 240px; margin: 0; }
.active-summary { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 16px; }
.active-summary a.sb { text-decoration: none; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; grid-auto-flow: row dense; }
.scard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.scard.open { grid-column: 1 / -1; border-color: var(--ink); }
.scard-head { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; width: 100%; padding: 16px 18px; }
.scard-head:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius); }
.scard-title { font-weight: 600; font-size: 1.05rem; }
.scard-vals { grid-column: 1 / -1; }
.scard-body { padding: 0 18px 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.settings-grid.searching { grid-template-columns: 1fr; }
.settings-grid.searching .scard { grid-column: auto; }
.frow { padding: 8px 0; border-bottom: 1px solid var(--soft); }
.frow:last-child { border-bottom: 0; }
.frow.no-match { display: none; }
.frow label { margin: 0; }
.frow select, .frow input:not([type=checkbox]):not([type=radio]), .frow textarea { max-width: 520px; }
.fhint { margin: 2px 0 0 0; }
.fsub { margin: 16px 0 4px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.f-life, .f-locked { color: var(--muted); background: var(--soft); border-radius: 8px; padding: 8px 12px; margin: 6px 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.f-locked { display: block; }
.f-locked summary { cursor: pointer; display: flex; gap: 8px; align-items: center; justify-content: space-between; }
@media (max-width: 760px) { .settings-grid { grid-template-columns: 1fr; } .settings-search { width: 100%; } }
#saveAll.pulse { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.page-head.unsaved { position: sticky; z-index: 40; background: var(--bg); padding: 8px 0; margin-top: -8px; margin-bottom: 4px; box-shadow: 0 1px 0 var(--line); }
@media (max-width: 760px) { .page-head.unsaved h1 { display: none; } .page-head.unsaved .row { flex-wrap: nowrap; width: 100%; } .page-head.unsaved .settings-search { flex: 1; min-width: 0; } .page-head.unsaved .btn { white-space: nowrap; } }
.appearance-split { display: grid; grid-template-columns: 1fr 260px; gap: 24px; align-items: start; }
@media (max-width: 760px) { .appearance-split { grid-template-columns: 1fr; } }
.phone-preview { margin: 0; position: sticky; top: 80px; }
.pp-screen { width: 240px; height: 420px; border: 10px solid #111; border-radius: 30px; background: var(--pp-bg); color: var(--pp-ink); padding: 26px 16px 0; overflow: hidden; position: relative; text-align: center; font-family: var(--sans); }
.pp-screen[data-font=serif] .pp-names { font-family: var(--display); } .pp-screen[data-font=script] .pp-names { font-family: 'Great Vibes', cursive; } .pp-screen[data-font=sans] .pp-names { font-family: var(--sans); }
.pp-kicker { font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; color: var(--pp-accent); font-weight: 600; }
.pp-names { font-size: 1.6rem; font-weight: 600; margin: 4px 0 8px; }
.pp-welcome { font-size: .72rem; opacity: .85; }
.pp-btn { background: var(--pp-accent); color: #fff; border-radius: 999px; padding: 10px; font-size: .8rem; font-weight: 600; margin-top: 10px; }
.pp-nav { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 10px 4px 14px; border-top: 1px solid rgba(0,0,0,.1); font-size: .62rem; background: rgba(255,255,255,.6); color: #333; }
.danger-zone { margin-top: 18px; border: 1px solid #f2b8b8; border-radius: var(--radius); padding: 0 14px; }
.danger-zone > summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--err); }
.feature-settings > summary { cursor: pointer; display: flex; gap: 10px; align-items: center; list-style: none; }
.feature-settings > summary h2 { margin: 0; }
.feature-settings > summary::after { content: "▾"; margin-left: auto; color: var(--muted); }
.feature-settings[open] > summary { margin-bottom: 10px; }
.faces-block { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.sec-h { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 10px; display: flex; gap: 8px; align-items: center; }
.xgroup.current .sec-h { color: var(--ink); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.facts dt { font-weight: 600; } .facts dd { margin: 0; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: 8px; } }
/* Split pane (Guests, Moderation): list left, detail right; phones: full-screen detail */
.split { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.split.has-detail { grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); }
.split-detail { background: var(--surface); border: 1px solid var(--ink); border-radius: var(--radius); padding: 16px 18px; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
@media (max-width: 860px) { .split.has-detail { grid-template-columns: 1fr; } .split-detail { position: fixed; inset: 0; z-index: 80; border-radius: 0; max-height: none; } }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.panel-head h2 { margin: 0; }
.people-list { list-style: none; margin: 0; padding: 0; }
.people-list > li { padding: 8px 0; border-bottom: 1px solid var(--soft); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.people-list > li:last-child { border-bottom: 0; }
.pl-name { font-weight: 600; }
.pl-open { all: unset; cursor: pointer; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; width: 100%; padding: 2px 4px; border-radius: 6px; }
.pl-open:hover, .pl-open.on { background: var(--soft); }
.pl-open:focus-visible { outline: 2px solid var(--accent); }
.pl-meta { flex-basis: 100%; }
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.mini-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; display: block; }
/* Moderation queue */
.mq-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mq-bar select { width: auto; margin: 0; }
.mq-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.modq .chip, .fchip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: 500 .88rem var(--sans); cursor: pointer; }
.modq .chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.fchip { background: var(--soft); }
.mq-active { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 10px; }
.mq-new { margin: 0 0 10px; }
.mq-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.mq-item { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--soft); }
.mq-item:last-child { border-bottom: 0; }
.mq-item.on { background: var(--soft); }
.mq-open { all: unset; cursor: pointer; display: flex; gap: 12px; flex: 1; min-width: 0; align-items: flex-start; }
.mq-open:focus-visible { outline: 2px solid var(--accent); border-radius: 8px; }
.mq-th { width: 64px; height: 64px; flex: none; border-radius: 8px; overflow: hidden; background: var(--soft); position: relative; display: grid; place-items: center; }
.mq-th img { width: 100%; height: 100%; object-fit: cover; }
.mq-th .play { position: absolute; color: #fff; text-shadow: 0 1px 3px #000; }
.mq-txt { font-size: 1.4rem; color: var(--muted); }
.mq-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mq-text { color: var(--muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mq-ind { display: flex; flex-wrap: wrap; gap: 4px; }
.mq-quick { display: flex; gap: 6px; flex: none; }
@media (max-width: 560px) { .mq-item { flex-wrap: wrap; } .mq-quick { width: 100%; justify-content: flex-end; } }
.mq-empty { padding: 24px; text-align: center; color: var(--muted); }
.mq-media img, .mq-media video { width: 100%; max-height: 50vh; object-fit: contain; background: #111; border-radius: 10px; }
.mq-quote { margin: 10px 0; padding: 10px 14px; background: var(--soft); border-radius: 8px; }
.mq-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; position: sticky; bottom: 0; background: var(--surface); padding: 10px 0 2px; }
.mq-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: #18181b; color: #fff; padding: 10px 18px; border-radius: 999px; z-index: 200; display: flex; gap: 12px; align-items: center; }
.mq-toast .linklike { color: #fff; font-weight: 600; }
body.guest .mq-toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
.app-header .lang-pick { position: relative; top: auto; right: auto; }
.app-header .lang-pick .lp-menu { right: 0; }
.media-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.media-toolbar select { width: auto; margin: 0 0 0 6px; }
.inline-l { display: inline-flex; align-items: center; font-weight: 500; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.media-layout { display: grid; grid-template-columns: 1fr; gap: 16px; }
.media-layout.with-filters { grid-template-columns: 240px minmax(0, 1fr); }
.filter-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; align-self: start; position: sticky; top: 12px; display: flex; flex-direction: column; gap: 10px; }
.filter-panel h2 { font-size: 1rem; margin: 0; }
@media (max-width: 860px) { .media-layout.with-filters { grid-template-columns: 1fr; } .filter-panel { position: fixed; inset: auto 0 0 0; z-index: 90; border-radius: 16px 16px 0 0; max-height: 80vh; overflow: auto; box-shadow: 0 -8px 30px rgba(0,0,0,.2); } }
body.app:not(.select-mode) .mtile .pick { display: none; }
body.select-mode .mtile .pick { opacity: 1; }
body.select-mode .bulkbar { position: sticky; bottom: 0; z-index: 20; }
body.app h1, body.app h1.display { font-family: var(--sans); font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 650; letter-spacing: -.015em; }
/* ===== Guest mobile redesign (docs/redesign-2026-11/mobile-ux-spec.md) ===== */
.g-hero.compact { padding: 22px 16px 14px; }
.g-hero.compact.has-cover { padding: 72px 16px 18px; }
.g-hero.compact h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
.g-hero.compact.small h1 { font-size: 1.45rem; }
.g-hero.compact .g-hero-inner { padding: 0 56px; }
.g-title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; }
.mode-pill { font: 600 .72rem var(--sans); color: inherit; border: 1px solid currentColor; border-radius: 999px; padding: 3px 10px; text-decoration: none; opacity: .8; white-space: nowrap; }
.mode-pill:hover { opacity: 1; }
.g-welcome { margin: 6px 0 14px; text-align: center; }
details.g-welcome summary { list-style: none; cursor: pointer; } details.g-welcome summary::-webkit-details-marker { display: none; }
details.g-welcome .more { color: var(--accent); font-weight: 600; }
details.g-welcome[open] summary { display: none; }
.g-primary { min-height: 60px; }
.g-upload.simple .g-primary { min-height: 120px; font-size: 1.4rem; border-radius: 22px; }
.simple-lead { text-align: center; margin: 12px 0 4px; }
.g-alt { gap: 8px; }
.g-alt span { display: contents; }
.g-asks .ask + .ask { margin-top: 10px; }
.g-asks h2 { font-size: 1.2rem; }
.chip[aria-pressed="true"], .chip.on { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.ask-done summary { cursor: pointer; color: var(--muted); padding: 4px 0; }
.sel-note { background: var(--soft); border-radius: 10px; padding: 8px 12px; margin: 0; }
.g-nav a { position: relative; min-height: 52px; justify-content: center; font-size: .74rem; }
.g-nav a[aria-current] { font-weight: 600; }
.g-badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--err); color: #fff; font-size: .66rem; line-height: 18px; text-align: center; font-weight: 700; }
dialog.sheet { border: 0; border-radius: 20px 20px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); width: 100%; max-width: 560px; margin: auto auto 0; max-height: 88vh; overflow: auto; background: var(--surface); color: var(--ink); }
@media (min-width: 700px) { dialog.sheet { border-radius: 20px; margin: auto; } }
dialog.sheet::backdrop { background: rgba(0,0,0,.45); }
dialog.faq-dialog { max-width: 620px; }
dialog.faq-dialog .faq-body h3 { font-size: 1rem; margin: 16px 0 6px; }
@media print { dialog.faq-dialog { display: none; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.sheet-head h2 { margin: 0; }
.plain-fs { border: 0; padding: 0; margin: 0 0 14px; }
.plain-fs legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.report-reasons label.check { margin: 4px 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.g-toolbar { display: flex; align-items: center; gap: 8px; padding: 12px 0 8px; overflow-x: auto; position: sticky; top: 0; background: var(--bg); z-index: 5; }
.g-toolbar .btn { flex: none; }
.presets { display: flex; gap: 6px; flex: none; }
.presets .chip { padding: 6px 12px; font-size: .85rem; white-space: nowrap; }
.fchips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
@media (min-width: 700px) { .fchips { flex-wrap: wrap; } }
.fchip { flex: none; display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line); background: var(--soft); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: 500 .85rem var(--sans); cursor: pointer; min-height: 36px; }
.gf-note { background: var(--soft); border-radius: 10px; padding: 8px 12px; }
.g-empty { text-align: center; padding: 24px 12px; }
.seg.mini { display: inline-flex; margin: 0; gap: 0; }
.seg.mini .seg-btn { flex-direction: row; padding: 8px 14px; border-radius: 0; }
.seg.mini .seg-btn:first-child { border-radius: 10px 0 0 10px; } .seg.mini .seg-btn:last-child { border-radius: 0 10px 10px 0; }
.seg-btn.on { background: var(--accent); color: #fff; border-color: var(--accent); }
#gfPeople .row { flex-wrap: nowrap; } #gfPeople input[type=search] { margin: 0; }
.people-pick { list-style: none; margin: 8px 0; padding: 0; max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.people-pick li { border-bottom: 1px solid var(--soft); }
.pp-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-weight: 400; min-height: 48px; cursor: pointer; }
.pp-row input { margin: 0; }
.pp-av { width: 32px; height: 32px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-weight: 600; overflow: hidden; flex: none; }
.pp-av img { width: 100%; height: 100%; object-fit: cover; }
.pp-name { flex: 1; min-width: 0; }
.tile.not-visible img { opacity: .5; filter: grayscale(.4); }
.tile .badge.st { left: 6px; bottom: 6px; top: auto; background: rgba(0,0,0,.72); }
.tile .tsel { display: none; position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; place-items: center; }
body.mod-mode .tile { outline: 1px dashed rgba(0,0,0,.2); }
body.mod-mode .tile.sel { outline: 3px solid var(--accent); outline-offset: -3px; }
body.mod-mode .tile.sel .tsel { display: grid; }
.mod-bulk { position: fixed; left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 61; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
.lb-status { text-align: center; margin: 6px 0 0; font-size: .85rem; background: rgba(255,255,255,.14); align-self: center; padding: 4px 12px; border-radius: 999px; }
.lb-bar.actions5 { flex-wrap: nowrap; gap: 4px; padding: 8px 6px; justify-content: space-around; }
.lb-bar.actions5 .lb-act { flex: 1; max-width: 96px; min-height: 52px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border-radius: 12px; background: transparent; font-size: .72rem; }
.lb-bar.actions5 .lb-act .ico { width: 24px; height: 24px; }
.lb-bar.actions5 .lb-act.on { color: #ff6b81; }
.lb-bar.actions5 .lb-act:focus-visible { outline: 2px solid #fff; }
.lb-sub { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 0 10px 8px; font-size: .85rem; }
.lb-sub a, .lb-sub .linklike { color: #fff; }
.lb-people { padding: 0 12px 10px; text-align: center; font-size: .85rem; }
.lb-people .linklike { color: #fff; }
.ptag { display: inline-block; background: rgba(255,255,255,.14); border-radius: 999px; padding: 3px 10px; margin: 2px; }
.ptag.pending { border: 1px dashed rgba(255,255,255,.5); }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: center; }
.toast-act { background: none; border: 0; color: #fff; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 0; font: inherit; }
body.g-mod .modq { margin-top: 12px; }
@media (max-width: 400px) { .g-alt { grid-template-columns: 1fr 1fr; } .lb-bar.actions5 .lb-act { font-size: .68rem; } }
.small-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.confirm-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; margin-bottom: 6px; }
.g-me label.check > span { display: block; }
label.check { align-items: flex-start; }
label.check > input { margin-top: 4px; }
label.check > .muted.small, label.check > .small.muted { margin-left: 6px; }

/* Dark-safe colors for elements that used fixed light colors */
.avatar, .plan-pill, .subnav a.on, .modq .chip.on { color: var(--surface); }
.logo-dark { display: none !important; }
html[data-theme=dark] .logo-light { display: none !important; } html[data-theme=dark] .logo-dark { display: block !important; }
@media (prefers-color-scheme: dark) { html:not([data-theme=light]) .logo-light { display: none !important; } html:not([data-theme=light]) .logo-dark { display: block !important; } }
html[data-theme=dark] .sb.b-ok { background: #16321f; border-color: #2c5e3b; color: #a6e3b5; }
html[data-theme=dark] .sb.b-warn { background: #3a2a0c; border-color: #6b4d13; color: #f3cf8a; }
html[data-theme=dark] .sb.b-err, html[data-theme=dark] .alert-urgent { background: #3d1515; border-color: #6e2626; color: #f6b3b3; }
html[data-theme=dark] .sb.b-info { background: #14243f; border-color: #2a4675; color: #a9c4f5; }
html[data-theme=dark] .sb.b-lock { background: #26272b; border-color: #3a3b40; color: #b9b9c2; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme=light]) .sb.b-ok { background: #16321f; border-color: #2c5e3b; color: #a6e3b5; }
  html:not([data-theme=light]) .sb.b-warn { background: #3a2a0c; border-color: #6b4d13; color: #f3cf8a; }
  html:not([data-theme=light]) .sb.b-err, html:not([data-theme=light]) .alert-urgent { background: #3d1515; border-color: #6e2626; color: #f6b3b3; }
  html:not([data-theme=light]) .sb.b-info { background: #14243f; border-color: #2a4675; color: #a9c4f5; }
  html:not([data-theme=light]) .sb.b-lock { background: #26272b; border-color: #3a3b40; color: #b9b9c2; }
}
.theme-toggle { background: none; border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); color: var(--ink); width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer; padding: 0; flex: none; }
.theme-toggle:hover { background: var(--soft); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
html[data-theme=dark] .theme-toggle .i-sun { display: block; } html[data-theme=dark] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) { html:not([data-theme=light]) .theme-toggle .i-sun { display: block; } html:not([data-theme=light]) .theme-toggle .i-moon { display: none; } }
.g-tools { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 10px; z-index: 70; display: flex; gap: 6px; align-items: flex-start; }
.g-tools .lang-pick { position: relative; top: auto; right: auto; }
.g-details-btn { border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); color: var(--ink); width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(4px); }
.g-details-btn:hover { background: var(--soft); }
.g-details-btn .ico { width: 18px; height: 18px; }
.site-cta .theme-toggle { margin-right: 4px; }
.g-hero.compact .g-hero-inner { padding: 0 136px; }
@media (max-width: 420px) { .g-hero.compact .g-hero-inner { padding: 26px 8px 0; } }

.facts .beside { margin-top: 6px; } .facts .beside .offer-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .facts .beside .btn-block { display: inline-flex; width: auto; }

.mq-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mq-compare figure { margin: 0; }
.mq-compare img { width: 100%; max-height: 40vh; object-fit: contain; background: #111; border-radius: 8px; }

/* Galleries: compact cards, one open at a time */
.gal-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.gal-card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.gal-card[open] { border-color: var(--ink); }
.gal-card > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.gal-card > summary::-webkit-details-marker { display: none; }
.gal-card .gal-cover { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; background: var(--soft); display: inline-grid; place-items: center; }
.gal-card .gal-cover.add { font-size: 1.4rem; color: var(--muted); }
.gal-sum { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.gal-meta { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.gal-body { padding: 4px 14px 14px; border-top: 1px solid var(--line); }
@media (max-width: 600px) { .gal-card > summary { flex-wrap: wrap; } .gal-meta { justify-content: flex-start; width: 100%; } }

/* Older host pages, restyled: copy buttons line up with their values */
.facts dd code + .btn { margin-left: 6px; vertical-align: middle; }
body.app .card h2 { font: 600 1.1rem var(--sans); }

/* Event Team permissions: grouped rows, one checkbox column per role */
.perm-table td, .perm-table th { vertical-align: middle; }
.perm-table .perm-col { width: 7.5rem; text-align: center; }
.perm-table .perm-col input { width: 1.15rem; height: 1.15rem; margin: 0; }
.perm-table .perm-group th { text-align: left; font-weight: 600; padding-top: 14px; background: var(--soft, transparent); }
.perm-table tbody:first-of-type .perm-group th { padding-top: 8px; }
@media (max-width: 560px) { .perm-table .perm-col { width: 1%; padding-left: 6px; padding-right: 6px; } .perm-table thead th.perm-col { font-size: .78rem; white-space: nowrap; } .perm-table td { font-size: .9rem; } .perm-table td:first-child, .perm-table th:first-child { padding-left: 4px; } }

.perm-head { margin-top: 22px; }
.perm-table { width: 100%; }
.perm-table thead th { text-align: left; }
.perm-table thead th.perm-col { text-align: center; }
@media (max-width: 560px) { section#team.card { padding: 4px 0; border: 0; box-shadow: none; background: transparent; } }

/* Feature settings: cog beside the page title opens a modal */
.fs-cog { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-left: 8px; vertical-align: middle; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); cursor: pointer; }
.fs-cog:hover, .fs-cog:focus-visible { color: var(--ink); border-color: var(--ink); }
.page-head h1 .fs-cog { position: relative; top: -2px; }
dialog.fs-dialog { max-width: 620px; }
.fs-dialog-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fs-dialog-head h2 { margin: 0; font-size: 1.15rem; }
.fs-close { margin-left: auto; border: 0; background: none; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 4px 8px; }
.fs-dialog .fields + .row { margin-top: 16px; }

/* Close = an × button in the top right of panels, sheets and modals */
.x-close { margin-left: auto; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0; }
.x-close:hover, .x-close:focus-visible { background: var(--soft, rgba(0,0,0,.06)); color: var(--ink); }
.sheet-head { display: flex; align-items: center; gap: 10px; }
.sheet-head h2 { margin: 0; }

/* Dashboard and Experience cards: the whole card is the link */
a.dcard-link { color: inherit; text-decoration: none; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.dcard-link:hover { border-color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.08); transform: translateY(-1px); }
a.dcard-link:focus-visible { outline: 2px solid var(--accent, var(--ink)); outline-offset: 2px; }
a.dcard-link .dcard-head h3::after { content: "›"; margin-left: 6px; color: var(--muted); font-weight: 400; }
a.dcard-link:hover .dcard-head h3::after { color: var(--ink); }
/* Crop tools under the photo in the host viewer (dark background) */
.lb-crop-tools { justify-content: center; gap: 10px; padding: 8px 12px; color: #fff; }
.lb-crop-tools select { width: auto; min-width: 90px; color: #111; background: #fff; padding: 4px 8px; }
.lb-crop-tools .btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }

/* Event Team controls on guest pages are gold, so hosts and moderators can tell them from guest links */
:root { --team: #9a6b00; --team-bg: #fbf1d6; --team-line: #d9b25a; }
html[data-theme=dark] { --team: #e8c46a; --team-bg: #3a2f14; --team-line: #8a6d2a; }
@media (prefers-color-scheme: dark) { html:not([data-theme=light]) { --team: #e8c46a; --team-bg: #3a2f14; --team-line: #8a6d2a; } }
.btn.team-ctl, .btn.btn-ghost.team-ctl { color: var(--team); background: var(--team-bg); border-color: var(--team-line); }
.btn.team-ctl:hover, .btn.team-ctl[aria-pressed=true] { background: var(--team); border-color: var(--team); color: #fff; }
.g-nav a.team-ctl { color: var(--team); }
.g-nav a.team-ctl.on { color: var(--team); background: var(--team-bg); box-shadow: inset 0 -3px 0 var(--team); }
.lb-act.team-ctl, .lb-act.team-ctl span { color: #f0cf7a; }
fieldset.team-ctl { border: 1px solid var(--team-line); background: var(--team-bg); border-radius: 10px; padding: 8px 12px; }
fieldset.team-ctl legend { color: var(--team); font-weight: 600; padding: 0 4px; }
/* Save buttons with nothing to save (public/js/common.js) */
.btn.is-clean, .btn.is-clean:hover { background: var(--soft, #eee); border-color: var(--line); color: var(--muted); cursor: default; box-shadow: none; animation: none; }

/* People tags under the photo in the host viewer */
.host-people { text-align: center; color: #fff; padding: 2px 12px 6px; }
.host-people .ptag { display: inline-flex; align-items: center; gap: 2px; background: rgba(255,255,255,.14); color: #fff; border-radius: 999px; padding: 2px 4px 2px 10px; margin: 2px; font-size: .85rem; }
.host-people .ptag.pending { opacity: .75; }
.x-close.x-mini { width: 22px; height: 22px; font-size: 1.05rem; color: inherit; }

/* Shared header (2026-11-11): logo → home, My Events / Create Free Event beside it, account on the right. */
.hdr-left { display: flex; align-items: center; gap: 16px; min-width: 0; flex-shrink: 1; }
.hdr-left .hdr-cta { flex-shrink: 0; }
.site-header .site-cta > a.hdr-login, .app-header a.hdr-login { display: inline; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap; }
html[lang="es"] .site-header .site-cta > a.hdr-login { display: inline; }
@media (max-width: 760px) {
  .hdr-left { gap: 8px; }
  .hdr-left .hdr-cta { padding: 6px 10px; font-size: .8rem; }
  .site-header .site-cta > a.hdr-login, .app-header a.hdr-login { font-size: .85rem; }
}
.nav-menu .nm-extra { display: none; }
@media (max-width: 760px) {
  /* Phones: theme and language move into the Menu so the logo, button, account and Menu fit. */
  .site-header .site-cta > .theme-toggle, .site-header .site-cta > .lang-pick { display: none; }
  .nav-menu .nm-extra { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
  .site-header .brand-logo { height: 30px; }
  .site-header .site-cta { gap: 8px; }
  /* Phones: tighter header (was 64px / 56px tall); things pinned under it move up to match. */
  .site-header .row, .app-header .row { min-height: 50px; }
  .bulkbar { top: 50px; }
}
@media (min-width: 700px) and (max-width: 760px) { table.compare thead th { top: 50px; } }
@media (max-width: 380px) { .site-header .brand-logo { height: 24px; } .hdr-left .hdr-cta { padding: 5px 8px; font-size: .74rem; } }
/* Host/admin header carries the public site links too (2026-11-11). */
.app-header .site-nav { margin-left: auto; margin-right: 24px; }
@media (max-width: 1000px) and (min-width: 761px) { .app-header .site-nav { gap: 14px; margin-right: 12px; } }
@media (max-width: 760px) {
  .app-header .ah-right > .theme-toggle, .app-header .ah-right > .lang-pick { display: none; }
}
/* The first section on every public page starts as close under the header as the home hero (2026-11-12). */
body.public main > section.pad:first-child, body.public main > section.pad-sm:first-child { padding-top: 20px; }

/* Pricing and the home page plans: one intro-price band across all four plan cards when they share a row (common.js). */
:is(.plans.four, .mini-plans) { position: relative; }
:is(.plans.four, .mini-plans) .intro-band { display: none; }
:is(.plans.four, .mini-plans).intro-row-on .intro-band { display: block; position: absolute; z-index: 1; pointer-events: none; border: 2px solid var(--accent); border-radius: 16px; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
/* The band is opaque (hides the gutters and card outlines under it); the prices sit above it. */
:is(.plans.four, .mini-plans).intro-row-on .intro-pill, :is(.plans.four, .mini-plans).intro-row-on .price-stack.free .plan-price { position: relative; z-index: 2; }
:is(.plans.four, .mini-plans).intro-row-on .intro-pill { border-color: transparent; background: none; }
/* When the cards wrap, each paid card's intro pill runs the full width of the card. */
:is(.plans.four, .mini-plans):not(.intro-row-on) .intro-pill { display: flex; }
.mini-plans:not(.intro-row-on) .price-stack.has-intro, .mini-plans:not(.intro-row-on) .intro-pill { align-self: stretch; }
.plan-more .plan-all { display: inline-block; margin-top: 8px; font-weight: 500; }

/* Participation (host analytics) */
.ins-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px 20px; }
.ins-stat b { display: block; font-size: 1.6rem; line-height: 1.2; }
.ins-stat span { color: var(--muted); font-size: .9rem; }
.ins-bars { width: 100%; border-collapse: collapse; }
.ins-bars th { text-align: left; font-weight: 500; padding: 4px 12px 4px 0; white-space: nowrap; width: 1%; }
.ins-bars .ins-bar { width: auto; padding: 4px 0; }
.ins-bars .ins-bar .meter { max-width: none; margin: 0; }
.ins-bars .ins-n { text-align: right; padding-left: 12px; white-space: nowrap; width: 1%; font-variant-numeric: tabular-nums; }

/* Phone number picker (lib/phone-ui.js) */
.num-list { border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px 10px; margin: 0; }
.num-list legend { padding: 0 6px; font-weight: 600; }
.num-list .check { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; }
.num-list .check b { font-variant-numeric: tabular-nums; }
/* What can be typed in the Location box, with examples */
.loc-examples { display: grid; grid-template-columns: max-content 1fr; gap: 2px 14px; margin: -6px 0 4px; }
.loc-examples dt { font-weight: 600; }
.loc-examples dd { margin: 0; color: var(--ink); }
.loc-examples dd span { color: var(--muted); }

/* Sticky table headers (Michael, 2026-11-15): every table's header row stays under the site
   header (and the pinned Save bar on Event Settings) while its rows scroll. --sticky-top comes
   from common.js. A .table-wrap only scrolls sideways when its table is too wide (.fits from
   common.js otherwise), since a scrolling box would stop the header from sticking to the page;
   a table that is too wide scrolls in its own box with the header pinned inside it.
   The pricing comparison table keeps its own rules. */
:root { --sticky-top: 64px; --th-bg: var(--bg); }
.card, dialog { --th-bg: var(--surface); }
.table-wrap.fits { overflow: visible; }
table:not(.compare) > thead th { position: sticky; top: var(--sticky-top); z-index: 3; background: var(--th-bg); box-shadow: inset 0 -1px 0 var(--line); }
/* Too wide for the screen: the box scrolls both ways, at most a screen tall, header pinned inside. */
.table-wrap:not(.fits) { max-height: calc(100vh - var(--sticky-top) - 12px); overflow: auto; }
.table-wrap:not(.fits) > table > thead th { top: 0; }

/* The Logo QR style (lib/qr.js cameraSvg) is wider than tall (499 x 396): on signs it keeps the
   height the square codes have and grows sideways, so the code inside stays as large as it can. */
.s-qr svg.qr-logo { width: 4.54in; height: auto; }
.sign.poster .s-qr svg.qr-logo { width: 5.8in; }
.sign.card46 .s-qr svg.qr-logo { width: 2.52in; }
.sign.small .s-qr svg.qr-logo { width: 1.89in; }
.sign.tent-half .s-qr svg.qr-logo { width: 3.02in; }
.demo-poster .s-qr svg.qr-logo { width: 302px; }
.hero-qr2 .qr svg.qr-logo { width: 106px; height: auto; }

/* ---------- Settings Wizard (lib/wizard.js, public/js/wizard.js) ---------- */
dialog.wiz-dialog { border: 0; padding: 0; width: 100%; max-width: 560px; height: min(740px, 92vh); max-height: none; border-radius: 20px; overflow: hidden; background: var(--surface); color: var(--ink); }
dialog.wiz-dialog::backdrop { background: rgba(0,0,0,.5); }
.wiz { display: flex; flex-direction: column; height: 100%; }
.wiz-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px 20px; }
.wiz-headtext { min-width: 0; }
.wiz-head h2 { margin: 0; font-size: 1.05rem; }
.wiz-cat { margin: 0; text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; min-height: 1em; }
.wiz-bar { height: 4px; background: var(--soft); flex: none; }
.wiz-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s; }
.wiz-body { flex: 1; min-height: 0; overflow: auto; padding: 18px 20px 20px; overscroll-behavior: contain; }
.wiz-body h3 { margin: 0 0 6px; font-size: 1.35rem; line-height: 1.2; outline: none; }
.wiz-body h4 { margin: 22px 0 6px; font-size: .95rem; }
.wiz-why { margin: 0 0 16px; color: var(--muted); }
.wiz-fields { display: grid; gap: 14px; }
.wiz-row > label:not(.wiz-toggle) { font-weight: 600; display: block; }
.wiz-row input[type=color] { height: 48px; padding: 4px; }
.wiz-hint { margin: 4px 0 0; }
.wiz-toggle { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 500; }
.wiz-toggle input { flex: none; width: 22px; height: 22px; margin: 0; }
.wiz-toggle:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.wiz-opts { border: 0; padding: 0; margin: 0; min-width: 0; }
.wiz-opts legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
.wiz-optlist { display: grid; gap: 8px; }
.wiz-opts-long .wiz-optlist { max-height: 264px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 6px; gap: 2px; overscroll-behavior: contain; }
.wiz-opt { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 400; margin: 0; }
.wiz-opts-long .wiz-opt { border-color: transparent; padding: 10px 12px; border-radius: 8px; }
.wiz-opt input { flex: none; width: 20px; height: 20px; margin: 0; }
.wiz-opt > span:first-of-type { flex: 1; min-width: 0; }
.wiz-opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); font-weight: 600; }
.wiz-toggle:focus-within, .wiz-opt:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.wiz-toggle input:focus, .wiz-opt input:focus { outline: none; }
.wiz-more { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.wiz-more summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: .92rem; }
.wiz-more p { margin: 8px 0 0; color: var(--muted); font-size: .92rem; }
.wiz-note { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff4e0; border: 1px solid #f0d09a; color: #7a4a00; }
html[data-theme=dark] .wiz-note { background: #3a2a0c; border-color: #6b4d13; color: #f3cf8a; }
.wiz-sample { --wz-accent: var(--accent); --wz-bg: var(--bg); --wz-ink: var(--ink); --wz-font: var(--display); background: var(--wz-bg); color: var(--wz-ink); border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; margin-bottom: 16px; }
.wiz-sample-names { font-family: var(--wz-font); font-size: 1.7rem; line-height: 1.2; margin-bottom: 10px; overflow-wrap: anywhere; }
.wiz-sample-btn { display: inline-block; background: var(--wz-accent); color: #fff; border-radius: 999px; padding: 7px 16px; font-size: .85rem; font-weight: 600; }
.wiz-choices { display: grid; gap: 10px; margin-top: 18px; }
.wiz-links { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.wiz-foot { flex: none; border-top: 1px solid var(--line); padding: 10px 20px calc(12px + env(safe-area-inset-bottom)); display: grid; gap: 8px; background: var(--surface); }
.wiz-count { margin: 0; text-align: center; }
.wiz-foot .wiz-primary { width: 100%; }
.wiz-foot-row { display: flex; justify-content: space-between; gap: 8px; }
.wiz-foot-row .btn { flex: 1; white-space: nowrap; padding-left: 12px; padding-right: 12px; }
.wiz-foot-row .btn[hidden] + .btn { flex: 1; }
.wiz [hidden] { display: none !important; }
@media (max-width: 699px) {
  dialog.wiz-dialog { max-width: none; width: 100vw; height: 100vh; height: 100dvh; margin: 0; border-radius: 0; }
}
@media print { dialog.wiz-dialog { display: none; } }
