/* Generated from app.src.css by scripts/css-rem.mjs. Do not edit. */
/* The source stylesheet. Sizes are plain pixels at a 1rem base; `npm run css` writes app.css with
   them converted to rem, so the whole interface scales up smoothly on large screens. */

/* ---------- Tokens ---------- */
:root {
  --bg: #08080e;
  --card: #12121c;
  --card-2: #1a1a27;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: #f5f5fa;
  --muted: #a1a1b8;
  --lime: #c8ff2e;
  --lime-ink: #131a00;
  --mint: #5cf2b6;
  --violet: #8a6bff;
  --pink: #ff5c93;
  --amber: #ffb224;
  --red: #ff5d5d;
  --radius: 1.25rem;
  --radius-sm: 0.75rem;
  --display: 'Fredoka', 'Assistant', system-ui, sans-serif;
  --body: 'Assistant', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --grad: linear-gradient(100deg, var(--lime), var(--mint) 55%, var(--violet));
  --shadow: 0 1.875rem 4.375rem -1.875rem rgba(0, 0, 0, 0.85);
  /* One clock for interaction motion. Decorative loops (hero, booth) keep their own timing. */
  --move-fast: 150ms;
  --move: 220ms;
  --move-slow: 250ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  color-scheme: dark;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
/* 1rem up to laptop widths, growing to 1.25rem on a 160rem monitor. */
html { font-size: clamp(16px, 0.4167vw + 9.33px, 22px); scroll-behavior: smooth; scroll-padding-top: max(6rem, calc(env(safe-area-inset-top) + 4rem)); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; touch-action: manipulation; overscroll-behavior-y: none; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-overflow-scrolling: touch;
}
/* The soft glows behind every page. A fixed layer of its own scrolls far more smoothly than a fixed background. */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(56.25rem 32.5rem at 88% -8%, rgba(138, 107, 255, 0.2), transparent 62%),
    radial-gradient(47.5rem 30rem at 6% 2%, rgba(200, 255, 46, 0.08), transparent 60%);
}
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button, a, summary, label { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.h1 { font: 700 clamp(2.625rem, 7.4vw, 5.375rem)/1.04 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.h2 { font: 700 clamp(1.8125rem, 4.2vw, 3rem)/1.12 var(--display); letter-spacing: -0.01em; text-align: center; margin-bottom: 2.75rem; text-wrap: balance; }
.h3 { font: 600 1.625rem/1.2 var(--display); }
.lead { color: var(--muted); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); max-width: 41.25rem; text-wrap: pretty; }

/* ---------- Shared parts ---------- */
.ico { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico.back { transform: rotate(180deg); }
[dir='rtl'] .ico.back { transform: none; }

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.6875rem 1.25rem; border-radius: 62.4375rem; border: 1px solid transparent; background: none;
  font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary { background: var(--lime); color: var(--lime-ink); box-shadow: 0 0.5rem 1.875rem -0.625rem rgba(200, 255, 46, 0.7); }
.btn.primary:hover:not(:disabled) { box-shadow: 0 0.625rem 2.375rem -0.5rem rgba(200, 255, 46, 0.9); }
.btn.ghost { border-color: var(--line-2); background: rgba(255, 255, 255, 0.04); }
.btn.ghost:hover:not(:disabled) { border-color: var(--lime); }
.btn.quiet { color: var(--muted); }
.btn.quiet:hover:not(:disabled) { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.btn.danger { border-color: rgba(255, 93, 93, 0.45); color: var(--red); background: rgba(255, 93, 93, 0.07); }
.btn.danger:hover:not(:disabled) { background: rgba(255, 93, 93, 0.15); }
.btn.ai { background: linear-gradient(100deg, var(--violet), var(--pink)); color: #fff; box-shadow: 0 0.5rem 1.875rem -0.75rem rgba(138, 107, 255, 0.9); }
.btn.sm { padding: 0.5rem 0.9375rem; font-size: 0.9375rem; }
.btn.lg { padding: 0.9375rem 1.875rem; font-size: 1.125rem; }
.btn.icon { padding: 0.5rem; }
.btn.block { width: 100%; }

.pill {
  display: inline-flex; align-items: center; gap: 0.4375rem; padding: 0.3125rem 0.75rem; border-radius: 62.4375rem;
  border: 1px solid var(--line-2); font-size: 0.875rem; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.pill.ok { color: var(--mint); border-color: rgba(92, 242, 182, 0.4); }
.pill.warn { color: var(--amber); border-color: rgba(255, 178, 36, 0.4); }
.pill.live { color: var(--pink); border-color: rgba(255, 92, 147, 0.4); }
.dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 0.625rem currentColor; flex: none; }
.pill:not(.warn) .dot, .kicker .dot { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

.logo { display: inline-flex; align-items: center; gap: 0.625rem; font: 700 1.375rem var(--display); text-decoration: none; letter-spacing: -0.01em; }
.logo-mark { width: 1.625rem; height: 1.625rem; border-radius: 0.5rem; background: var(--grad); position: relative; transform: rotate(-8deg); box-shadow: 0 0.375rem 1.125rem -0.375rem rgba(200, 255, 46, 0.8); flex: none; }
.logo-mark::after { content: ''; position: absolute; inset: 0.3125rem 0.3125rem 0.5625rem; border-radius: 0.1875rem; background: var(--bg); }

/* Form controls */
.fields { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.375rem; }
.field > span, .label { font-weight: 600; font-size: 0.9375rem; }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field select, .input, .menu-face {
  width: 100%; min-height: 2.875rem; padding: 0.625rem 0.875rem; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background-color: rgba(0, 0, 0, 0.32); outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .input:focus, .menu-face.focus, .menu-face.open { border-color: var(--lime); box-shadow: 0 0 0 0.1875rem rgba(200, 255, 46, 0.16); }
.field select, .menu-face {
  appearance: none; cursor: pointer; padding-inline-end: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 1.125rem; background-position: right 0.75rem center;
}
[dir='rtl'] .field select, [dir='rtl'] .menu-face { background-position: left 0.75rem center; }
/* The face we give a <select>, and the list it opens (see dress() in common.js). The browser's own control stays, out of sight. */
.menu-face { display: flex; align-items: center; text-align: start; color: inherit; font: inherit; }
.menu-face span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-face:disabled { opacity: 0.55; cursor: not-allowed; }
.menu-native { position: absolute !important; width: 1px !important; min-height: 0 !important; height: 1px !important; padding: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; }
.menu-list { position: fixed; z-index: 300; margin: 0; padding: 0.375rem; list-style: none; overflow: auto; border: 1px solid var(--line-2); border-radius: 0.875rem; background: var(--card-2); box-shadow: 0 1.5rem 3.75rem -1.125rem rgba(0, 0, 0, 0.9); }
.menu-list li { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.625rem 0.75rem; border-radius: 0.5625rem; cursor: pointer; }
.menu-list li.at { background: rgba(255, 255, 255, 0.08); }
.menu-list li.chosen { color: var(--lime); font-weight: 700; }
.menu-list li.off { opacity: 0.45; cursor: default; }
.menu-list .ico { flex: none; width: 1.0625rem; height: 1.0625rem; }
.field select option { background: var(--card-2); }
.field input[type='color'] { padding: 0.25rem; cursor: pointer; }
.field input[type='file'] { padding: 0.5625rem 0.75rem; font-size: 0.875rem; }
.field input[type='date'] { text-align: start; }
/* Date and time, typed as 13/10/26 and 22:15, with our own picker (public/js/pick.js). */
.when-field { position: relative; }
/* The value is written left to right, so the gap has to be on the same physical side as the icon.
   In Hebrew the icon sits at the left; padding-inline-end on an ltr field would pad the right. */
.when-field .when-text { padding-inline-end: 3rem; font-variant-numeric: tabular-nums; }
html[dir='rtl'] .when-field .when-text { padding-inline-start: 3rem; padding-inline-end: 0.875rem; }
.when-open { position: absolute; inset-inline-end: 0.25rem; top: 50%; z-index: 1; transform: translateY(-50%); width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border: 0; border-radius: 0.625rem; background: transparent; color: var(--muted); cursor: pointer; }
.when-open .ico { width: 1.125rem; height: 1.125rem; }
.when-open:hover, .when-open[aria-expanded='true'] { color: var(--lime); background: rgba(200, 255, 46, 0.12); }
.when-open:active { transform: translateY(-50%) scale(0.94); }
.when-open:disabled { opacity: 0.4; cursor: not-allowed; }
/* Solid, like a menu. The card style is a see-through wash, so it is not used here.
   Above the dialog, the help tip and the toast, so nothing behind shows or takes a click. */
div.when-pop { position: fixed; z-index: 2000; isolation: isolate; display: grid; gap: 0.625rem; margin: 0; padding: 0.75rem; overflow: auto; border: 1px solid var(--line-2); border-radius: 1rem; background-color: var(--card-2); background-image: none; box-shadow: 0 1.5rem 3.75rem -1.125rem rgba(0, 0, 0, 0.9); transform-origin: top center; animation: menu-in var(--move-fast) var(--ease-out) both; }
.when-pop.up { transform-origin: bottom center; animation-name: menu-in-up; }
.when-pop.out { animation: menu-out var(--move-fast) var(--ease-in) both; pointer-events: none; }
.when-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: 2.5rem; }
.when-title, .when-head b { font: 700 1rem/1.2 var(--display); }
.when-nav { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 0.75rem; background: rgba(255, 255, 255, 0.04); color: var(--text); cursor: pointer; }
.when-nav .ico { width: 1.125rem; height: 1.125rem; }
.when-prev .ico { transform: rotate(180deg); }
[dir='rtl'] .when-prev .ico { transform: none; }
[dir='rtl'] .when-next .ico { transform: rotate(180deg); }
.when-nav:active, .when-day:active, .when-cell:active { transform: scale(0.94); }
.when-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.when-dow { text-align: center; color: var(--muted); font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0; }
.when-day { min-height: 2.5rem; border: 0; border-radius: 0.625rem; background: transparent; color: inherit; font: 700 0.9375rem/1 var(--body); cursor: pointer; }
.when-day.at { box-shadow: inset 0 0 0 1px var(--line-2); }
.when-day.today:not(.on) { box-shadow: inset 0 0 0 1.5px var(--lime); }
.when-day.on { background: var(--lime); color: var(--lime-ink); box-shadow: none; }
.when-day:hover:not(.on) { background: rgba(255, 255, 255, 0.08); }
.when-cap { color: var(--muted); font-size: 0.8125rem; font-weight: 700; }
.when-hours, .when-mins { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.25rem; }
.when-cell { min-height: 2.5rem; border: 1px solid transparent; border-radius: 0.625rem; background: rgba(255, 255, 255, 0.05); color: inherit; font: 700 0.875rem/1 var(--body); font-variant-numeric: tabular-nums; cursor: pointer; }
.when-cell:hover:not(.on) { border-color: var(--line-2); }
.when-cell.on { background: var(--lime); color: var(--lime-ink); }
.when-actions { display: flex; justify-content: space-between; gap: 0.5rem; }
.form-error { color: var(--red); font-weight: 600; }

.search-wrap { position: relative; display: block; flex: 1 1 13.75rem; max-width: 21.25rem; }
.search-wrap .ico { position: absolute; top: 50%; inset-inline-start: 0.875rem; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-wrap .input { padding-inline-start: 2.625rem; border-radius: 62.4375rem; }
.input.search::-webkit-search-cancel-button { filter: invert(0.7); }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 0.875rem; min-height: 2.875rem; cursor: pointer; font-weight: 600; font-size: 0.9375rem; }
/* A setting's name with its picture before it, in the muted line colour, lit while its row is in use */
.set-label { display: inline-flex; align-items: center; gap: 0.5625rem; }
.set-label > .ico { width: 1.125rem; height: 1.125rem; color: var(--muted); stroke-width: 1.7; transition: color 0.15s; }
.field:focus-within > .set-label > .ico, .switch-row:hover > .set-label > .ico, .switch-row:focus-within > .set-label > .ico { color: var(--lime); }
.help-tip-wrap { display: inline-flex; align-items: center; flex: none; }
.help-tip-btn { flex: none; width: 1.0625rem; height: 1.0625rem; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; color: var(--muted); font: 700 0.625rem/1 var(--body); cursor: help; transition: color 0.15s, border-color 0.15s, background 0.15s; }
.help-tip-btn:hover, .help-tip-btn:focus-visible { color: var(--lime); border-color: color-mix(in srgb, var(--lime) 45%, var(--line-2)); background: color-mix(in srgb, var(--lime) 8%, transparent); outline: none; }
.help-tip-pop { position: fixed; z-index: 1200; isolation: isolate; max-width: min(18rem, calc(100vw - 1.25rem)); padding: 0.625rem 0.75rem; border: 1px solid var(--line-2); border-radius: 0.75rem; background-color: var(--card-2); box-shadow: 0 1.125rem 3rem -1rem rgba(0, 0, 0, 0.85); color: var(--text); font-size: 0.8438rem; line-height: 1.45; font-weight: 400; pointer-events: none; visibility: hidden; opacity: 1; transform: translateY(0.375rem); transition: transform 0.16s ease, visibility 0s linear 0.16s; }
.help-tip-pop.on { pointer-events: auto; visibility: visible; transform: none; transition: transform 0.16s ease, visibility 0s; }
.help-tip-pop.still { transition: none; }
.help-tip-pop p { margin: 0; }
.field > .help-tip-wrap, .switch-row > .help-tip-wrap, .set-label > .help-tip-wrap { align-self: center; }
.switch { appearance: none; flex: none; width: 2.875rem; height: 1.6875rem; border-radius: 62.4375rem; background: rgba(255, 255, 255, 0.16); position: relative; cursor: pointer; transition: background 0.2s; }
.switch::after { content: ''; position: absolute; top: 0.1875rem; inset-inline-start: 0.1875rem; width: 1.3125rem; height: 1.3125rem; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.switch:checked { background: var(--lime); }
.switch:checked::after { transform: translateX(1.1875rem); background: var(--lime-ink); }
[dir='rtl'] .switch:checked::after { transform: translateX(-1.1875rem); }
.check { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; color: var(--muted); font-size: 0.9375rem; font-weight: 600; }
.check input, .pick input { width: 1.125rem; height: 1.125rem; accent-color: var(--lime); cursor: pointer; }

.chips-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips-row.center { justify-content: center; }
.chips-row.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips-row.scroll::-webkit-scrollbar { display: none; }
.chip { padding: 0.4375rem 0.9375rem; border-radius: 62.4375rem; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); font-weight: 600; font-size: 0.9375rem; color: var(--muted); white-space: nowrap; transition: all 0.15s; }
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip.on { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }

.row { display: flex; gap: 0.625rem; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.notice { padding: 0.75rem 1rem; border-radius: var(--radius-sm); background: rgba(255, 178, 36, 0.1); border: 1px solid rgba(255, 178, 36, 0.35); color: var(--amber); font-weight: 600; font-size: 0.9375rem; margin-bottom: 1rem; }
.empty { padding: 3.5rem 1.5rem; text-align: center; display: grid; gap: 0.875rem; justify-items: center; }
.big-ico { width: 2.75rem; height: 2.75rem; color: var(--muted); stroke-width: 1.4; }

/* A printed magnet: the photo in the event's frame */
.mag { flex: none; background: #fff; padding: 0.4375rem 0.4375rem 0; border-radius: 0.3125rem; box-shadow: 0 1.625rem 3.125rem -1.25rem rgba(0, 0, 0, 0.85); }
.mag img { object-fit: cover; border-radius: 2px; height: clamp(9.375rem, 12.5vw, 15.625rem); }
.mag.p img { aspect-ratio: 3 / 3.55; }
.mag.l img { aspect-ratio: 4 / 2.66; }
.mag figcaption { padding: 0.375rem 0 0.5rem; text-align: center; font: 600 0.875rem var(--display); color: #16161f; }
/* The other magnets the print sizes make: a square, and a strip of three photos one above the other. */
.mag.sq img { aspect-ratio: 1; }
.mag.strip { display: flex; flex-direction: column; gap: 0.3125rem; width: max-content; }
.mag.strip img { height: clamp(2.75rem, 3.9vw, 4.75rem); aspect-ratio: 3 / 2; }
.sheet.strips { flex-direction: row; gap: 0.375rem; }
.sheet.strips .mag.strip img { height: 2.375rem; }
.sheet.strips .mag.strip figcaption { font-size: 0.5625rem; }

/* ---------- Landing ---------- */
.nav-wrap { position: sticky; top: 0.875rem; z-index: 30; padding: 0 1rem; }
/* Flat dark glass. Blurring whatever is moving behind this bar costs about ten frames
   a second on the home page at a 4× CPU throttle, including over the photo wall. */
.nav {
  max-width: 73.75rem; margin: 0 auto; padding: 0.625rem 0.875rem 0.625rem 1.125rem; display: flex; align-items: center; gap: 1.25rem;
  border: 1px solid var(--line); border-radius: 62.4375rem; background: rgba(10, 10, 18, 0.88);
}
[dir='rtl'] .nav { padding: 0.625rem 1.125rem 0.625rem 0.875rem; }
.nav-links { display: flex; gap: 1.625rem; margin-inline: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 1rem; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 0.625rem; }
.lang { color: var(--muted); font-size: 0.9375rem; font-weight: 600; text-decoration: none; padding: 0.375rem 0.5rem; }
.lang:hover { color: var(--lime); }

.landing { overflow-x: clip; padding-bottom: 5rem; }
.container { max-width: 73.75rem; margin-inline: auto; padding-inline: 1.25rem; }
.container.narrow { max-width: 51.25rem; }

.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.375rem; padding: 5rem 1.25rem 0; }
.hero.slim { padding-bottom: 2.75rem; }
.hero-bg {
  position: absolute; inset: -6.875rem 0 auto; height: 50rem; z-index: -1; pointer-events: none;
  background: url('/static/img/backdrops/lights.webp') center 30% / cover; opacity: 0.3;
  -webkit-mask-image: linear-gradient(#000 20%, transparent 90%); mask-image: linear-gradient(#000 20%, transparent 90%);
}
.h1.sm { font-size: clamp(2.25rem, 5.6vw, 4rem); }
.kicker {
  display: inline-flex; align-items: center; gap: 0.5625rem; padding: 0.4375rem 1rem; border-radius: 62.4375rem;
  border: 1px solid rgba(200, 255, 46, 0.35); color: var(--lime); font-weight: 700; font-size: 0.9375rem; background: rgba(10, 12, 4, 0.55); backdrop-filter: blur(0.5rem);
}
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 0.375rem; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.625rem 1.25rem; list-style: none; padding: 0; margin: 0; }
.chips li { color: var(--muted); font-size: 0.9375rem; font-weight: 600; }
.chips li::before { content: '✓'; color: var(--lime); margin-inline-end: 0.375rem; }

/* The moving wall of magnets under the hero */
.wall {
  direction: ltr; margin-top: 3.125rem; padding: 2.125rem 0 4.75rem; perspective: 93.75rem; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.wall-tilt { display: grid; gap: 1.25rem; transform: rotateX(20deg) rotateZ(-4deg); transform-origin: 50% 0; }
.wall-row { display: flex; gap: 1.25rem; width: max-content; animation: slide 110s linear infinite; }
.wall-row.rev { animation-direction: reverse; }
@keyframes slide { to { transform: translateX(-50%); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.875rem; max-width: 57.5rem; }
.stat { padding: 1.375rem 0.875rem; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.025); border-top: 2px solid var(--lime); }
.stat.s1 { border-top-color: var(--violet); }
.stat.s2 { border-top-color: var(--mint); }
.stat.s3 { border-top-color: var(--pink); }
.stat b { display: block; font: 700 2.25rem/1 var(--display); }
.stat span { color: var(--muted); font-size: 0.9375rem; }

.section { padding-top: 8rem; }
.h2.start { text-align: start; margin-bottom: 1.125rem; }
.reveal { opacity: 0; transform: translateY(1.625rem); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* AI showcase */
.ai-sec { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3.75rem; align-items: center; }
.ai-view { position: relative; aspect-ratio: 4 / 3; border-radius: 1.5rem; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 3.125rem 6.875rem -3.125rem rgba(138, 107, 255, 0.75); background: var(--card-2); }
.ai-view > img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.18s ease, transform 0.6s ease; }
.ai-view > img.swap { opacity: 0; transform: scale(1.03); }
.ai-name { position: absolute; top: 0.875rem; inset-inline-start: 0.875rem; padding: 0.375rem 0.875rem; border-radius: 62.4375rem; background: rgba(8, 8, 14, 0.7); backdrop-filter: blur(0.5rem); font-weight: 700; font-size: 0.9375rem; }
.ai-before { position: absolute; bottom: 0.875rem; inset-inline-end: 0.875rem; width: 27%; border-radius: 0.75rem; overflow: hidden; border: 2px solid #fff; box-shadow: 0 0.875rem 1.875rem -0.625rem #000; }
.ai-before img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ai-before figcaption { position: absolute; bottom: 0; inset-inline: 0; padding: 0.1875rem 0; background: rgba(0, 0, 0, 0.6); font-size: 0.75rem; font-weight: 700; text-align: center; }
.ai-sec .chips-row { margin-top: 1rem; }
.ai-text { display: grid; gap: 1.125rem; justify-items: start; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.625rem; }
.ticks li { position: relative; padding-inline-start: 1.625rem; }
.ticks li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--lime); font-weight: 800; }

/* Face recognition showcase */
.ai-sec.flip { grid-template-columns: 0.85fr 1.15fr; }
.faces-demo { padding: 1.375rem; display: grid; gap: 1rem; box-shadow: 0 3.125rem 6.875rem -3.125rem rgba(200, 255, 46, 0.45); background: var(--card); }
.faces-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; font: 600 1.25rem var(--display); }
.faces-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.faces-demo .person-chip .avatar.sm { width: 2.625rem; height: 2.625rem; }
.faces-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.faces-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 0.625rem; }

/* Steps */
.steps, .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.125rem; }
.step { overflow: hidden; padding: 0 1.625rem 1.75rem; }
.step-media { height: 14.375rem; margin: 0 -1.625rem 1.375rem; background: #0b0b14; border-bottom: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.step-media .cover { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.step-media.pad { padding: 1.125rem; align-content: center; gap: 0.625rem; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.375rem; width: min(18.75rem, 100%); }
.mini-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0.4375rem; }
.mini-grid img.picked, .tablet-grid img.picked { outline: 0.1875rem solid var(--lime); outline-offset: 2px; }
.mini-cta { width: min(18.75rem, 100%); padding: 0.5625rem; border-radius: 0.625rem; background: var(--lime); color: var(--lime-ink); font-weight: 800; font-size: 0.875rem; text-align: center; }
.sheet { display: flex; background: #e9e9ee; padding: 0.375rem; border-radius: 0.25rem; transform: rotate(-3deg); box-shadow: 0 1.5rem 3.125rem -1.25rem #000; position: relative; }
.sheet::after { content: ''; position: absolute; inset-block: 0; left: 50%; border-left: 2px dashed rgba(0, 0, 0, 0.35); }
.sheet .mag { box-shadow: none; border-radius: 0; }
.sheet .mag img { height: 8.25rem; }
.sheet .mag figcaption { font-size: 0.625rem; padding: 0.25rem 0 0.3125rem; }
.step h3, .feature h3 { font: 600 1.3125rem var(--display); margin-bottom: 0.5rem; }
.step p, .feature p { color: var(--muted); }
.num {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 0.875rem; margin-bottom: 0.875rem;
  background: var(--lime); color: var(--lime-ink); font: 700 1.375rem var(--display); transform: rotate(-6deg);
}

/* Screens mock-up */
.stage { position: relative; height: 32.5rem; max-width: 61.25rem; margin: 0 auto; direction: ltr; }
.stage::before { content: ''; position: absolute; inset: 14% 12% 4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(138, 107, 255, 0.45), transparent); filter: blur(3.75rem); }
.tablet {
  position: absolute; left: 50%; top: 0.375rem; width: 31.25rem; transform: translateX(-50%) rotate(-1.5deg);
  padding: 0.875rem; border-radius: 1.625rem; background: #0b0b14; border: 1px solid var(--line-2);
  box-shadow: 0 3.125rem 6.25rem -1.875rem rgba(0, 0, 0, 0.9), 0 0 0 0.4375rem rgba(255, 255, 255, 0.03);
}
.tablet-bar { display: flex; align-items: center; justify-content: space-between; padding: 2px 0.25rem 0.75rem; font: 600 1rem var(--display); }
.tablet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.tablet-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0.625rem; }
.tablet-cta { margin-top: 0.75rem; padding: 0.8125rem; border-radius: 0.875rem; background: var(--lime); color: var(--lime-ink); font-weight: 800; text-align: center; }
.phone {
  position: absolute; left: 1%; top: 4.375rem; width: 13.25rem; padding: 0.75rem; border-radius: 1.875rem; background: #0b0b14; border: 1px solid var(--line-2);
  transform: rotate(-7deg); display: grid; gap: 0.5625rem; box-shadow: 0 2.5rem 5rem -1.75rem rgba(0, 0, 0, 0.9), 0 0 0 0.3125rem rgba(255, 255, 255, 0.03);
}
.phone-bar { font: 600 0.875rem var(--display); text-align: center; padding-top: 0.25rem; }
.phone .mag { box-shadow: none; justify-self: center; }
.phone .mag img { height: 12.25rem; }
.phone-cta { padding: 0.625rem; border-radius: 62.4375rem; background: var(--lime); color: var(--lime-ink); font-weight: 800; font-size: 0.875rem; text-align: center; }
.phone-fx { padding: 0.5625rem; border-radius: 62.4375rem; background: linear-gradient(100deg, rgba(138, 107, 255, 0.45), rgba(255, 92, 147, 0.45)); font-weight: 700; font-size: 0.8125rem; text-align: center; }
.queue-card {
  position: absolute; right: 0; top: 9.375rem; width: 18.125rem; padding: 1rem; border-radius: 1.25rem; text-align: start;
  background: rgba(18, 18, 30, 0.9); border: 1px solid var(--line-2); backdrop-filter: blur(0.875rem);
  box-shadow: 0 1.875rem 4.375rem -1.5rem rgba(0, 0, 0, 0.9); transform: rotate(4deg);
}
.queue-head { display: flex; flex-direction: column; gap: 0.5rem; font: 600 1.0625rem var(--display); margin-bottom: 0.75rem; }
.queue-head .pill { align-self: flex-start; font-family: var(--body); }
.queue-row { display: flex; align-items: center; gap: 0.375rem; padding: 0.5rem 0; border-top: 1px solid var(--line); }
.queue-row img { width: 2.625rem; height: 3.375rem; object-fit: cover; border-radius: 0.375rem; }
.state { margin-left: auto; font-size: 0.8125rem; font-weight: 700; color: var(--muted); }
.state.printing { color: var(--lime); }
.state.done { color: var(--mint); }

.feature { padding: 1.75rem; transition: border-color 0.2s, transform 0.2s; }
.feature:hover { border-color: rgba(200, 255, 46, 0.4); transform: translateY(-0.1875rem); }
.feature-icon { display: block; width: 3.25rem; height: 3.25rem; padding: 0.8125rem; border-radius: 1rem; margin-bottom: 1rem; color: var(--lime); background: rgba(200, 255, 46, 0.08); border: 1px solid rgba(200, 255, 46, 0.22); }

.compare { max-width: 56.25rem; margin: 0 auto; overflow: hidden; }
.compare-head, .compare-row { display: grid; grid-template-columns: 1fr 1fr; }
.compare-head span { padding: 1rem 1.375rem; font: 600 1.0625rem var(--display); color: var(--muted); }
.compare-head .us { color: var(--lime); background: rgba(200, 255, 46, 0.07); }
.compare-row span { padding: 1rem 1.375rem; border-top: 1px solid var(--line); }
.compare-row .them { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 93, 93, 0.6); }
.compare-row .us { font-weight: 700; background: rgba(200, 255, 46, 0.07); }
.compare-row .us::before { content: '✓'; color: var(--lime); margin-inline-end: 0.5rem; }

.plans { align-items: stretch; }
/* The shared card wash is only a few percent of white. On a plan stretched to the
   tallest card, that wash fades out around the last line and the page shows through
   the rest. A solid surface, the same one as the highlighted plan, sits under the
   wash, and the wash is sized to the whole card so the tint has no edge. */
.plan {
  padding: 1.875rem; display: flex; flex-direction: column; gap: 1.125rem; position: relative;
  background: var(--card) linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)) 0 0 / 100% 100% no-repeat;
}
.plan.hot { border-color: rgba(200, 255, 46, 0.55); box-shadow: 0 1.875rem 5rem -2.5rem rgba(200, 255, 46, 0.55); }
.plan h3 { font: 600 1.25rem var(--display); }
.plan > p { color: var(--muted); font-size: 0.9375rem; margin-top: -0.625rem; }
.price { display: flex; align-items: baseline; gap: 0.5rem; }
.price b { font: 700 3rem/1 var(--display); }
.price > span { color: var(--muted); }
.plan .ticks { flex: 1; align-content: start; }
.badge { position: absolute; top: -0.8125rem; inset-inline-start: 1.5rem; padding: 0.25rem 0.75rem; border-radius: 62.4375rem; background: var(--lime); color: var(--lime-ink); font-size: 0.8125rem; font-weight: 800; }
.fine { text-align: center; color: var(--muted); font-size: 0.9375rem; margin-top: 1.375rem; }

.faq { padding: 0; margin-bottom: 0.75rem; }
.faq summary { cursor: pointer; list-style: none; padding: 1.25rem 1.5rem; font: 600 1.125rem var(--display); display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--lime); font-size: 1.375rem; line-height: 1; transition: transform 0.2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 1.5rem 1.375rem; color: var(--muted); }

.final {
  position: relative; overflow: hidden; margin-top: 8rem; padding: 5.5rem 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; text-align: center;
  background: linear-gradient(rgba(7, 7, 12, 0.6), rgba(7, 7, 12, 0.86)), url('/static/img/backdrops/venue.webp') center / cover;
}
.final .h2 { margin-bottom: 0; }
/* Effects gallery page: hover (or tap) a style to see the photo it started from */
.fx-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(16.25rem, 1fr)); gap: 1rem; }
.fx-item { position: relative; border-radius: 1.125rem; overflow: hidden; border: 1px solid var(--line); background: var(--card-2); cursor: pointer; }
.fx-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.5s ease, opacity 0.3s ease; }
.fx-item .before { position: absolute; inset: 0; height: 100%; opacity: 0; }
.fx-item:hover .before, .fx-item.flip .before { opacity: 1; }
.fx-item:hover img { transform: scale(1.04); }
.fx-item figcaption { position: absolute; inset: auto 0 0; padding: 2.125rem 1rem 0.8125rem; display: flex; align-items: baseline; justify-content: space-between; gap: 0.625rem; background: linear-gradient(transparent, rgba(5, 5, 10, 0.92)); pointer-events: none; }
.fx-item figcaption b { font: 600 1.0625rem var(--display); }
.fx-item figcaption span { color: var(--muted); font-size: 0.8125rem; }
.fx-item .was { position: absolute; top: 0.75rem; inset-inline-start: 0.75rem; padding: 0.1875rem 0.625rem; border-radius: 62.4375rem; background: rgba(8, 8, 14, 0.75); font-size: 0.75rem; font-weight: 700; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.fx-item:hover .was, .fx-item.flip .was { opacity: 1; }

/* ---------- Sign in ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.auth-form { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.75rem; padding: 2rem 1.25rem; }
.auth-card { width: min(27.5rem, 100%); padding: 2.125rem; display: grid; gap: 1rem; }
.auth-card a { color: var(--lime); font-weight: 700; }
.auth-art { position: relative; overflow: hidden; background: linear-gradient(rgba(8, 8, 14, 0.35), rgba(8, 8, 14, 0.82)), url('/static/img/backdrops/lights.webp') center / cover; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.875rem; padding: 3.5rem; }
.auth-art .h2 { text-align: start; margin: 0; }
.auth-art .mag { position: absolute; }
.auth-art .mag img { height: 13.125rem; }
.auth-art .m1 { top: 9%; inset-inline-start: 10%; transform: rotate(-8deg); }
.auth-art .m2 { top: 15%; inset-inline-start: 48%; transform: rotate(6deg); }
.auth-art .m3 { top: 43%; inset-inline-start: 24%; transform: rotate(4deg); }

/* ---------- App frame ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(8, 8, 14, 0.84); backdrop-filter: blur(0.875rem); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 82.5rem; margin: 0 auto; padding: 0.75rem 1.5rem; display: flex; align-items: center; gap: 0.875rem; }
.who { color: var(--muted); font-size: 0.9375rem; font-weight: 600; }
.wrap { max-width: 82.5rem; margin: 0 auto; padding: 1.875rem 1.5rem 5.625rem; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.125rem; flex-wrap: wrap; margin-bottom: 1.625rem; }
.page-title { display: grid; gap: 0.25rem; }
.page-title h1 { font: 700 clamp(1.75rem, 3.4vw, 2.5rem)/1.15 var(--display); }
.crumb { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--muted); font-size: 0.9375rem; font-weight: 600; text-decoration: none; width: fit-content; }
.crumb:hover { color: var(--lime); }
.meta { display: flex; flex-wrap: wrap; gap: 0.375rem 1.125rem; color: var(--muted); font-size: 0.9375rem; }
.meta span { display: inline-flex; align-items: center; gap: 0.375rem; }

/* Dashboard */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(18.75rem, 1fr)); gap: 1.125rem; }
.event-card { overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.event-card:hover { border-color: rgba(200, 255, 46, 0.5); transform: translateY(-0.1875rem); }
.event-card .cover { aspect-ratio: 16 / 10; display: grid; gap: 2px; background: var(--card-2); place-items: center; color: var(--muted); }
.event-card .cover img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.cover.n2 { grid-template-columns: 1fr 1fr; }
.cover.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.cover.n3 img:first-child { grid-row: span 2; }
.cover.n4 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.cover.n4 img:first-child { grid-row: span 2; }
.cover.n4 img:nth-child(2) { grid-column: span 2; }
.event-card .cover .ico { width: 2.5rem; height: 2.5rem; stroke-width: 1.3; }
.event-body { padding: 1.25rem 1.375rem 1.375rem; display: grid; gap: 0.625rem; }
.event-body h3 { font: 600 1.375rem var(--display); }
.nums { display: flex; gap: 1.375rem; margin-top: 0.25rem; }
.nums b { font: 700 1.5rem/1.1 var(--display); display: block; }
.nums span { color: var(--muted); font-size: 0.875rem; }
.event-card.new { align-items: center; justify-content: center; gap: 0.5rem; padding: 1.875rem; min-height: 17.5rem; border-style: dashed; border-color: var(--line-2); background: none; color: var(--text); text-align: center; }
.event-card.new .ico { width: 2.5rem; height: 2.5rem; padding: 0.5625rem; border-radius: 50%; background: var(--lime); color: var(--lime-ink); stroke-width: 2.4; }
.event-card.new b { font: 600 1.25rem var(--display); }
.event-card.new small { max-width: 16.25rem; white-space: normal; }

/* Tabs */
.tabs { display: flex; gap: 0.25rem; overflow-x: auto; margin-bottom: 1.5rem; padding: 0.3125rem; scrollbar-width: none; border: 1px solid var(--line); border-radius: 62.4375rem; width: fit-content; max-width: 100%; background: rgba(255, 255, 255, 0.02); }
.tabs::-webkit-scrollbar { display: none; }
/* Twelve admin tabs: on a desktop they wrap inside the content width, so none sit past the edge. */
.admin-tabs { width: 100%; flex-wrap: wrap; overflow: visible; row-gap: 0.25rem; }
@media (max-width: 800px) {
  .admin-tabs { flex-wrap: nowrap; overflow-x: auto; width: auto; }
  [dir='rtl'] .admin-tabs { mask-image: linear-gradient(to right, transparent, #000 2.25rem); -webkit-mask-image: linear-gradient(to right, transparent, #000 2.25rem); }
  [dir='ltr'] .admin-tabs { mask-image: linear-gradient(to left, transparent, #000 2.25rem); -webkit-mask-image: linear-gradient(to left, transparent, #000 2.25rem); }
}
.tab { padding: 0.5625rem 1.0625rem; border-radius: 62.4375rem; border: 0; background: none; font-weight: 700; color: var(--muted); white-space: nowrap; display: inline-flex; gap: 0.5rem; align-items: center; transition: color 0.15s, background 0.15s; }
/* Eight event tabs beside the sidebar. The padding draws in so they stay on one line; a wide screen keeps the spacing above. */
@media (max-width: 1600px) {
  .tabs:not(.admin-tabs) { gap: 2px; }
  .tabs:not(.admin-tabs) .tab { padding: 0.5rem 0.75rem; gap: 0.25rem; }
}
.tab:hover { color: var(--text); }
.tab.on { background: var(--lime); color: var(--lime-ink); }
.tab .num { all: unset; font-size: 0.8125rem; opacity: 0.75; }
.count { min-width: 1.375rem; padding: 0 0.4375rem; border-radius: 62.4375rem; background: var(--pink); color: #fff; font-size: 0.75rem; line-height: 1.375rem; text-align: center; }

/* Photos */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 0.625rem; }
.photo { position: relative; aspect-ratio: 1; border-radius: 0.875rem; overflow: hidden; border: 0; padding: 0; background: var(--card-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s; }
.photo:hover img { transform: scale(1.05); }
.photo.hidden img { opacity: 0.3; filter: grayscale(1); }
.photo .seq { position: absolute; top: 0.4375rem; inset-inline-start: 0.4375rem; padding: 1px 0.5rem; border-radius: 62.4375rem; background: rgba(0, 0, 0, 0.6); font-size: 0.75rem; font-weight: 700; }
.photo .tag { position: absolute; bottom: 0.4375rem; inset-inline-start: 0.4375rem; padding: 2px 0.5625rem; border-radius: 62.4375rem; background: var(--amber); color: #201400; font-size: 0.75rem; font-weight: 800; display: inline-flex; align-items: center; gap: 0.25rem; }
.photo .tag.ai { background: linear-gradient(100deg, var(--violet), var(--pink)); color: #fff; inset-inline-start: auto; inset-inline-end: 0.4375rem; }
.photo.new { animation: pop 0.5s ease; }
/* A photo that waits for the photographer's yes: its two answers sit on the tile. */
.photo.waiting { outline: 2px solid var(--amber); outline-offset: -2px; }
.photo-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; }
.photo.waiting .tag { bottom: auto; top: 0.4375rem; inset-inline-start: auto; inset-inline-end: 0.4375rem; }
.verdict { position: absolute; inset-inline: 0; bottom: 0.5rem; display: flex; justify-content: center; gap: 0.625rem; }
.verdict .btn { width: 2.625rem; height: 2.625rem; padding: 0; box-shadow: 0 0.375rem 1.125rem -0.375rem rgba(0, 0, 0, 0.9); }
.verdict .btn.danger { background: rgba(20, 8, 8, 0.86); }
.waiting-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-bottom: 0.875rem; padding: 0.625rem 0.875rem; border: 1px solid rgba(255, 178, 36, 0.4); border-radius: var(--radius-sm); background: rgba(255, 178, 36, 0.08); color: var(--amber); }
.waiting-bar b { flex: 1; min-width: 11.25rem; color: var(--text); }
.waiting-bar > .ico { width: 1.25rem; height: 1.25rem; }
.link-fixed { display: inline-flex; align-items: center; gap: 0.375rem; max-width: 46ch; }
.link-fixed .ico { flex: none; width: 0.9375rem; height: 0.9375rem; }
/* The new event's three steps. */
.wiz-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.wiz-head h2 { margin: 0; }
.wizard .switch-row small, .when-pick small { display: block; margin-top: 2px; font-weight: 400; }
.when-pick { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 0.875rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; }
.when-pick:has(input:checked) { border-color: var(--lime); background: rgba(200, 255, 46, 0.06); }
.when-pick input { margin-top: 0.3125rem; width: 1.125rem; height: 1.125rem; accent-color: var(--lime); }
.when-pick small { color: var(--muted); }
.event-card .meta .pill[class*='es-'] { font-size: 0.75rem; padding: 2px 0.5625rem; }
/* Where the event stands, beside its name. */
.stage-row { flex-wrap: wrap; justify-content: flex-end; }
.linked-grid { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.linked-grid figure { margin: 0; display: grid; gap: 0.375rem; justify-items: center; }
.linked-grid img { width: 6rem; height: 6rem; object-fit: cover; border-radius: 0.75rem; border: 1px solid var(--line-2); background: var(--card-2); }
.linked-grid figure.strip img { width: 3.375rem; object-fit: contain; }
.linked-grid figcaption { display: inline-flex; align-items: center; gap: 0.3125rem; color: var(--muted); font-size: 0.8125rem; }
.linked-grid figcaption .ico { width: 0.875rem; height: 0.875rem; }
.linked-grid.small img { width: 3.5rem; height: 3.5rem; border-radius: 0.5625rem; }
.linked-shared { display: grid; gap: 0.625rem; margin: 0; }
.linked-ask { align-content: start; }
.linked-list { display: grid; gap: 0.375rem; margin: 0; padding: 0; list-style: none; }
.linked-list li { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); }
.linked-list .ico { width: 1rem; height: 1rem; }
.linked-acts { flex-wrap: wrap; }
.photo-qr { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
button.photo-qr { width: 100%; background: none; color: inherit; font: inherit; text-align: start; cursor: zoom-in; }
.photo-qr .qr-zoom .qr { width: 6rem; padding: 0.375rem; border-radius: 0.625rem; }
.photo-qr img { width: 6rem; flex: none; padding: 0.375rem; border-radius: 0.625rem; background: #fff; }
.photo-qr span { font-weight: 700; }
.photo-qr > div { display: grid; gap: 0.5rem; justify-items: start; }
.sig-look { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
.sig-look .chips-row { flex-wrap: wrap; }
.pill.es-planned { color: var(--amber); border-color: rgba(255, 178, 36, 0.4); }
.pill.es-planned .dot, .pill.es-ended .dot { animation: none; }
.pill.es-live { color: var(--lime); border-color: rgba(200, 255, 46, 0.4); }
.pill.es-ended { color: var(--muted); }
.stage-note { margin: 0.5rem 0 0; max-width: 62ch; color: var(--muted); font-size: 0.9375rem; }
@keyframes pop { from { transform: scale(0.8); opacity: 0; } }
.upload-tile { display: grid; place-content: center; justify-items: center; gap: 0.375rem; padding: 0.875rem; text-align: center; border: 2px dashed var(--line-2); background: rgba(255, 255, 255, 0.02); color: var(--text); transition: border-color 0.15s, background 0.15s; }
.upload-tile:hover, .upload-tile.over { border-color: var(--lime); background: rgba(200, 255, 46, 0.06); }
.upload-tile .ico { width: 1.875rem; height: 1.875rem; color: var(--lime); }
.upload-tile b { font: 600 1rem var(--display); }
.upload-tile small { color: var(--muted); font-size: 0.75rem; line-height: 1.35; }
.progress { width: 100%; height: 0.3125rem; border-radius: 0.1875rem; background: var(--line); overflow: hidden; margin-top: 0.375rem; }
.progress i { display: block; height: 100%; background: var(--grad); transition: width 0.2s; }

/* People */
.avatar { display: block; width: 4rem; height: 4rem; border-radius: 50%; overflow: hidden; padding: 0; border: 2px solid transparent; background: var(--card-2); flex: none; object-fit: cover; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 2.125rem; height: 2.125rem; border-width: 0; }
.avatar.lg { width: 6.5rem; height: 6.5rem; }
.avatar.dim { opacity: 0.4; filter: grayscale(1); }
button.avatar { transition: border-color 0.15s, transform 0.15s; }
button.avatar:hover { border-color: var(--lime); transform: scale(1.04); }
.avatar-blank { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); }
.people-strip { display: flex; gap: 0.5rem; overflow-x: auto; padding: 2px 2px 0.875rem; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.person-chip { display: inline-flex; align-items: center; gap: 0.5rem; flex: none; padding: 0.25rem 0.875rem 0.25rem 0.25rem; border-radius: 62.4375rem; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); font-weight: 600; font-size: 0.875rem; color: var(--muted); white-space: nowrap; transition: all 0.15s; }
[dir='rtl'] .person-chip { padding: 0.25rem 0.25rem 0.25rem 0.875rem; }
.person-chip:has(.avatar:only-child) { padding: 0.25rem; }
.person-chip.all, [dir='rtl'] .person-chip.all { padding: 0.25rem 1rem; min-height: 2.75rem; }
.person-chip:hover { color: var(--text); border-color: var(--muted); }
.person-chip.on { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-bottom: 1.125rem; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.625rem, 1fr)); gap: 0.875rem; }
.person { position: relative; padding: 1.125rem 0.875rem 0.75rem; display: grid; gap: 0.625rem; justify-items: center; transition: border-color 0.15s; }
.person.on { border-color: var(--lime); background: rgba(200, 255, 46, 0.06); }
.person.dim { opacity: 0.6; }
.person .row { width: 100%; flex-wrap: nowrap; }
.pick { position: absolute; top: 0.625rem; inset-inline-start: 0.625rem; display: grid; opacity: 0.55; transition: opacity 0.15s; }
.person:hover .pick, .person.on .pick { opacity: 1; }
.name-input { min-height: 2.375rem; padding: 0.375rem 0.625rem; text-align: center; font-weight: 600; font-size: 0.9375rem; }
.hints { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.625rem, 1fr)); gap: 0.75rem; margin-bottom: 1.125rem; }
.hint { padding: 1rem; display: grid; gap: 0.625rem; justify-items: center; border-color: rgba(138, 107, 255, 0.4); background: rgba(138, 107, 255, 0.07); }
.hint-faces { display: flex; }
.hint-faces .avatar + .avatar { margin-inline-start: -0.875rem; border-color: var(--card); }
.merge-bar { position: sticky; bottom: 1.125rem; z-index: 5; margin: 1.375rem auto 0; width: fit-content; max-width: 100%; display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; padding: 0.625rem 0.75rem 0.625rem 1.25rem; border-radius: 62.4375rem; background: var(--card-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-weight: 700; }
[dir='rtl'] .merge-bar { padding: 0.625rem 1.25rem 0.625rem 0.75rem; }

/* Dialogs */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(3, 3, 8, 0.84); backdrop-filter: blur(0.5rem); display: grid; place-items: center; padding: 1rem; animation: fade 0.15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(32.5rem, 100%); max-height: calc(100vh - 2rem); overflow: auto; padding: 1.625rem; display: grid; gap: 1rem; background: var(--card); box-shadow: var(--shadow); }
/* On a phone or a tablet 100vh reaches under the browser's own bars, which would put a dialog's last row where no finger can press it: the visible height is what counts. */
.modal { max-height: calc(100dvh - 2rem); }
.modal.wide { width: min(58.75rem, 100%); }
.modal h2 { font: 600 1.375rem var(--display); }
.viewer { display: grid; grid-template-columns: minmax(0, 1fr) 18.125rem; gap: 1.625rem; align-items: start; }
.viewer .shot { display: grid; place-items: center; min-height: 15rem; }
.viewer .shot img { max-height: 76vh; border-radius: 0.5rem; box-shadow: 0 1.5rem 3.75rem -1.25rem #000; background: var(--card-2); }
.viewer-side { display: grid; gap: 0.75rem; align-content: start; max-height: calc(100vh - 5.25rem); overflow-y: auto; scrollbar-width: thin; padding-inline: 2px; }
.stepper { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line-2); border-radius: 62.4375rem; padding: 0.3125rem; }
.stepper button { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.08); font-size: 1.125rem; }
.stepper button:hover { background: rgba(255, 255, 255, 0.16); }
.stepper b { font: 700 1.5rem var(--display); }
.who-in { display: grid; gap: 0.5rem; }
.who-in:empty { display: none; }
.who-row { display: flex; align-items: center; gap: 0.5rem; }
.who-row .name-input { text-align: start; }

#toasts { position: fixed; bottom: 1.375rem; left: 50%; transform: translateX(-50%); z-index: 80; display: grid; gap: 0.5rem; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 2rem); }
.toast { display: flex; align-items: center; gap: 0.625rem; padding: 0.75rem 1rem; border-radius: 1rem; border: 1px solid var(--lime); background: var(--card); color: var(--text); font-weight: 700; box-shadow: 0 1rem 2.5rem -0.75rem rgba(0, 0, 0, 0.8); animation: rise 0.25s ease; text-align: start; }
.toast::before { content: ''; flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0.625rem var(--lime); }
.toast.bad { border-color: var(--red); background: var(--card); color: var(--text); }
.toast.bad::before { background: var(--red); box-shadow: 0 0 0.625rem var(--red); }
/* A note that is neither a success nor a failure, such as a magnet printed from the original. */
.toast.quiet { border: 1px solid var(--line-2); background: var(--card-2); color: var(--text); font-weight: 600; box-shadow: 0 0.5rem 1.5rem -0.75rem rgba(0, 0, 0, 0.45); }
.toast.quiet::before { content: none; }
.toast.action { flex-wrap: wrap; justify-content: flex-start; gap: 0.5rem 0.875rem; padding: 0.5625rem 0.5625rem 0.5625rem 1rem; pointer-events: auto; }
[dir='rtl'] .toast.action { padding: 0.5625rem 1rem 0.5625rem 0.5625rem; }
.toast.action .btn { background: var(--lime); color: var(--lime-ink); }
/* "The site was updated": stays until the page loads itself again, and has a button for doing it now. */
.toast.renewed { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 0.875rem; padding: 0.5625rem 0.5625rem 0.5625rem 1.25rem; border-radius: 1.5rem; border: 1px solid var(--line-2); background: var(--card-2); color: var(--text); font-weight: 600; pointer-events: auto; }
.toast.renewed::before { content: none; }
[dir='rtl'] .toast.renewed { padding: 0.5625rem 1.25rem 0.5625rem 0.5625rem; }
.toast.renewed .btn { background: var(--lime); color: var(--lime-ink); }
.failed-files { margin: 0; padding: 0 1.125rem 0 0; max-height: 40vh; overflow: auto; color: var(--muted); font-size: 0.875rem; display: grid; gap: 0.25rem; }
[dir='ltr'] .failed-files { padding: 0 0 0 1.125rem; }
.failed-files b { color: var(--text); font-weight: 600; }
.first-load-note { position: fixed; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); font-size: 1.125rem; pointer-events: none; animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.45; } }
@keyframes rise { from { transform: translateY(1rem); opacity: 0; } }

/* Cards with a titled group of controls */
.panel { padding: 1.5rem; display: grid; gap: 1rem; align-content: start; }
.panel h2 { font: 600 1.1875rem var(--display); display: flex; align-items: center; gap: 0.625rem; }
.panel h2 .ico { color: var(--lime); }

/* Frame designer */
.designer { display: grid; grid-template-columns: 25rem minmax(0, 1fr); gap: 1.25rem; align-items: stretch; }
/* The print size sits across the top of the frame tab: the paper first, then its sizes in a row. */
.frame-size { margin-bottom: 1.25rem; }
.frame-size .format-row { grid-template-columns: repeat(auto-fill, minmax(7.75rem, 9.375rem)); }
.format-row[hidden] { display: none; }
/* The preview keeps its own height and stays in view while the settings beside it are scrolled. */
.designer > .previews { align-self: start; position: sticky; top: 5.25rem; flex-direction: column; gap: 1.375rem; }
.preview-row { display: flex; gap: 2.125rem; flex-wrap: wrap; align-items: center; justify-content: center; }
@media (max-width: 1000px) {
  .designer > .previews { position: static; }
  .frame-size .format-row { grid-template-columns: repeat(auto-fill, minmax(6.75rem, 1fr)); }
}
/* Where the frame stands: saved (and so what prints), on its way, or not sent. */
.frame-state { flex-basis: 100%; display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--mint); }
.frame-state .ico { width: 1rem; height: 1rem; }
.frame-state.saving { color: var(--muted); }
.frame-state.saving .ico { animation: turn 0.9s linear infinite; }
@keyframes turn { to { rotate: 360deg; } }
.frame-state.failed, .frame-state.needsFile, .frame-state.needsBackdrop { color: var(--amber, #ffb224); }
/* The colours offered for a plain background, and the business's backdrops as tiles to choose (public/js/backdrops.js) */
.palette-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem; }
.palette { gap: 0.5rem; }
.swatch { width: 1.875rem; height: 1.875rem; padding: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.18); background: var(--swatch); box-shadow: 0 1px 0.1875rem rgba(0, 0, 0, 0.5); cursor: pointer; transition: transform 0.15s, border-color 0.15s; }
.swatch:hover { transform: scale(1.08); border-color: var(--muted); }
.swatch.on { border-color: var(--lime); box-shadow: 0 0 0 0.1875rem rgba(200, 255, 46, 0.3); }
.palette-row input[type='color'] { width: 2.75rem; height: 2.125rem; padding: 2px; }
.pic-tile { background: #2a2a36; }
.pic-tile img { position: absolute; inset: 0.375rem; width: calc(100% - 0.75rem); height: calc(100% - 0.75rem); object-fit: cover; border-radius: 0.5rem; }
.back-thumb { width: 5.25rem; height: 4rem; padding: 0; overflow: hidden; background: #2a2a36; }
.back-thumb img { width: 100%; height: 100%; object-fit: cover; }
.frame-state.looking { color: var(--muted); }
.sig-places .chip { padding-inline: 0.875rem; }
.styles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.style { padding: 0.625rem; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: none; font-weight: 700; font-size: 0.9375rem; transition: all 0.15s; }
.style:hover { border-color: var(--muted); }
.style.on { border-color: var(--lime); background: rgba(200, 255, 46, 0.1); color: var(--lime); }
/* Styles offered as small magnets: what you tap is what you get */
.styles.pictured { grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.styles.pictured.wide { grid-template-columns: repeat(3, 1fr); }
/* A strip is three times as tall as it is wide: its thirteen styles stand as many to a row as the card has room for. */
.styles.pictured.tall { grid-template-columns: repeat(auto-fill, minmax(3.625rem, 1fr)); gap: 0.375rem; }
.styles.pictured.tall .style { padding: 0.3125rem 0.1875rem 0.4375rem; font-size: 0.7188rem; }
.styles.pictured .style { display: grid; gap: 0.375rem; justify-items: center; align-content: start; padding: 0.375rem 0.25rem 0.5rem; font-size: 0.7813rem; line-height: 1.2; }
.styles.pictured canvas { width: 100%; height: auto; border-radius: 0.25rem; box-shadow: 0 0.5rem 1.125rem -0.625rem #000; background: #222; }
.styles.pictured .style.on canvas { box-shadow: 0 0 0 2px var(--lime), 0 0.5rem 1.125rem -0.625rem #000; }
.previews { display: flex; gap: 2.125rem; flex-wrap: wrap; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; background: radial-gradient(closest-side, rgba(138, 107, 255, 0.16), transparent), rgba(255, 255, 255, 0.02); }
.preview { display: grid; gap: 0.75rem; justify-items: center; color: var(--muted); font-size: 0.875rem; font-weight: 600; }
.preview canvas { border-radius: 0.3125rem; box-shadow: 0 1.875rem 3.75rem -1.5rem #000; background: #222; max-width: 100%; height: auto; }
.preview.p canvas { width: 18.75rem; }
.preview.l canvas { width: 25rem; }
.preview.square canvas { width: 22.5rem; }
.preview.strip canvas { width: 10.625rem; }
.preview.tab canvas { width: 17.5rem; }
/* Two magnets to a sheet: the sheet as it comes out of the printer, with a dashed line where it is cut. */
.sheet-view { display: flex; background: #fff; border-radius: 0.3125rem; box-shadow: 0 1.875rem 3.75rem -1.5rem #000; overflow: hidden; }
.sheet-view.stacked { flex-direction: column; }
.preview .sheet-view canvas { border-radius: 0; box-shadow: none; }
.sheet-piece { display: block; overflow: hidden; }
.preview .sheet-piece canvas { display: block; max-width: none; }
.sheet-cut { flex: none; align-self: stretch; border-inline-start: 2px dashed #6b6b78; margin-inline-start: -1px; position: relative; z-index: 1; }
.sheet-view.stacked .sheet-cut { border-inline-start: 0; border-top: 2px dashed #6b6b78; margin: -1px 0 0; }
.sheet-note { display: block; max-width: 26.25rem; }

/* The computers printing for the event, each with what it reports about its printer */
.computers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(28.75rem, 100%), 1fr)); gap: 0.875rem; margin-bottom: 1.25rem; }
.computer { padding: 1.125rem 1.25rem; display: flex; flex-direction: column; gap: 0.875rem; transition: border-color 0.3s; }
.computer.bad { border-color: rgba(255, 93, 93, 0.45); }
.computer.paused { border-color: rgba(255, 178, 36, 0.4); }
.computer-head { display: flex; align-items: center; gap: 0.75rem; }
.computer-head > .ico { width: 1.5rem; height: 1.5rem; color: var(--lime); flex: none; }
.computer.paused .computer-head > .ico { color: var(--amber); }
.computer.bad .computer-head > .ico { color: var(--red); }
.computer-head .grow { flex: 1; min-width: 0; }
.computer-head b, .computer-head small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.computer-head b { font: 600 1.125rem var(--display); }
.computer-head small { color: var(--muted); }
.computer-error { color: var(--red); font-weight: 600; font-size: 0.9375rem; }
/* Something about the printer that has to be put right before the evening, with the way to do it */
.computer-note { display: flex; align-items: center; gap: 0.875rem; flex-wrap: wrap; padding: 0.875rem 1rem; border-radius: 0.875rem; border: 1px solid rgba(255, 178, 36, 0.38); background: rgba(255, 178, 36, 0.07); }
.computer-note > .ico { width: 1.375rem; height: 1.375rem; color: var(--amber); flex: none; align-self: flex-start; margin-top: 2px; }
.computer-note .grow { flex: 1 1 13.75rem; min-width: 0; }
.computer-note b { display: block; color: var(--amber); font-weight: 700; }
.computer-note p { color: var(--muted); font-size: 0.9063rem; line-height: 1.5; text-wrap: pretty; }
.computer-note .btn { flex: none; }
.computer-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(15.625rem, 1fr); gap: 1.125rem; align-items: center; }
/* Never fewer than two facts across, three or more when the card is wide */
.sfacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(9.375rem, 45%), 1fr)); gap: 0.75rem 1.125rem; }
.sfact { display: grid; align-content: start; min-width: 0; }
.sfact span { color: var(--muted); font-size: 0.8125rem; }
.sfact b { font-weight: 600; font-size: 0.9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Driver and paper names are written left to right, and still line up under their Hebrew labels */
[dir='rtl'] .sfact b, [dir='rtl'] .computer-head small { text-align: right; }
.sfact.wide { grid-column: 1 / -1; }
.sfact .good { color: var(--mint); }
.sfact .warn { color: var(--amber); white-space: normal; }
/* The paper roll: a ring that empties as sheets come out */
.roll { display: grid; grid-template-columns: auto 1fr; gap: 0.375rem 0.875rem; align-items: center; padding: 0.875rem; border-radius: 1rem; background: rgba(255, 255, 255, 0.035); }
.gauge { position: relative; width: 5.25rem; height: 5.25rem; }
.gauge svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; }
.gauge circle { stroke-width: 9; stroke-linecap: round; }
.gauge .track { stroke: rgba(255, 255, 255, 0.08); }
.gauge .level { stroke: var(--lime); stroke-dasharray: 264; stroke-dashoffset: calc(264 - 264 * var(--p, 0)); transition: stroke-dashoffset 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), stroke 0.4s; }
.roll.low .gauge .level { stroke: var(--amber); }
.roll.out .gauge .level { stroke: var(--red); }
.roll.unset .gauge { opacity: 0.4; }
.gauge-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge-text b { font: 700 1.3125rem/1 var(--display); font-variant-numeric: tabular-nums; }
.gauge-text small { color: var(--muted); font-size: 0.75rem; }
.roll-text b { display: block; font: 600 1rem var(--display); }
.roll-text small { color: var(--muted); font-size: 0.8125rem; }
.roll.low .roll-text small { color: var(--amber); }
.roll.out .roll-text small { color: var(--red); }
.roll > .row { grid-column: 1 / -1; }
/* A PDF "printer": where its files are, in place of the roll */
.roll.files > .ico { width: 2.375rem; height: 2.375rem; color: var(--violet); }
.roll.files .roll-text small { display: block; color: var(--text); font-weight: 600; text-align: start; }
[dir='rtl'] .roll.files .roll-text small { text-align: right; }
.roll.files > p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 0.8125rem; line-height: 1.5; }
.roll.files > p.warn { color: var(--amber); font-weight: 600; }
.computer-stats { display: flex; flex-wrap: wrap; gap: 0.375rem 1.375rem; margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }
.computer-stats b { color: var(--text); font: 700 1.0625rem var(--display); font-variant-numeric: tabular-nums; }
.computer-stats .bad b { color: var(--red); }
.computer.simple { padding: 0.875rem 1.125rem; }
/* The printer's own status, one card per computer, two across on a wide screen */
.printer-screen { display: grid; gap: 0.75rem; }
.printer-lead { margin: 0; color: var(--muted); font-size: 0.9063rem; line-height: 1.5; }
.printer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(35rem, 100%), 1fr)); gap: 0.875rem; align-items: start; }
.pstat { padding: 1rem 1.125rem; display: grid; gap: 0.75rem; align-content: start; }
.pstat.bad { border-color: rgba(255, 93, 93, 0.45); }
.pstat.warn, .pstat.out { border-color: rgba(255, 178, 36, 0.4); }
.pstat-id { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.pstat-id > .ico { width: 1.5rem; height: 1.5rem; color: var(--lime); flex: none; }
.pstat.bad .pstat-id > .ico { color: var(--red); }
.pstat.warn .pstat-id > .ico, .pstat.out .pstat-id > .ico { color: var(--amber); }
.pstat.off .pstat-id > .ico { color: var(--muted); }
.pstat-id .grow { flex: 1; min-width: 0; }
.pstat-id b, .pstat-id small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pstat-id b { font: 600 1.125rem var(--display); }
.pstat-id small { color: var(--muted); }
.pstat-main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(12.5rem, 0.85fr); gap: 0.875rem 1.125rem; align-items: center; }
.pstat-roll { display: grid; gap: 0.375rem; }
.pstat-roll b { font: 600 1rem var(--display); font-variant-numeric: tabular-nums; }
.pstat-roll small { color: var(--muted); font-size: 0.8125rem; }
.pstat.out .pstat-roll small, .pstat.bad .pstat-roll small { color: var(--red); }
.pstat.warn .pstat-roll small { color: var(--amber); }
.pbar { height: 0.625rem; border-radius: 62.4375rem; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.pbar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); max-width: 100%; background: var(--lime); border-radius: inherit; transition: width 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.pstat.warn .pbar i { background: var(--amber); }
.pstat.out .pbar i, .pstat.bad .pbar i { background: var(--red); }
.pstat-alert { display: flex; align-items: center; gap: 0.5rem; margin: 0; padding: 0.625rem 0.75rem; border-radius: 0.75rem; background: rgba(255, 178, 36, 0.08); color: var(--amber); font-weight: 600; }
.pstat-alert.bad { background: rgba(255, 93, 93, 0.1); color: var(--red); }
.pstat-alert > .ico { width: 1.125rem; height: 1.125rem; flex: none; }
.pstat-facts { margin-top: 2px; }
@media (max-width: 720px) {
  .pstat-main { grid-template-columns: 1fr; }
}
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.choice { padding: 0.625rem 0.375rem; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: none; text-align: center; display: grid; transition: border-color 0.15s, background 0.15s; }
.choice b { font: 700 1.1875rem var(--display); }
.choice span { color: var(--muted); font-size: 0.7813rem; }
.choice.on { border-color: var(--lime); background: rgba(200, 255, 46, 0.08); }
.choice.on b { color: var(--lime); }
/* The sheet on the printer right now */
.line-item.printing { position: relative; overflow: hidden; border-color: rgba(138, 107, 255, 0.5); background: linear-gradient(100deg, rgba(138, 107, 255, 0.14), rgba(255, 92, 147, 0.06)); }
.line-item.printing::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%); animation: shimmer 1.5s linear infinite; pointer-events: none; }

/* Choosing what comes out of the printer */
.formats { display: grid; gap: 0.75rem; }
.format-group { display: grid; gap: 0.375rem; }
.format-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.375rem, 1fr)); gap: 0.5rem; }
.format { display: grid; justify-items: center; align-content: start; gap: 0.1875rem; padding: 0.75rem 0.5rem 0.625rem; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: none; text-align: center; transition: border-color 0.15s, background 0.15s; }
.format:hover { border-color: var(--muted); }
.format.on { border-color: var(--lime); background: rgba(200, 255, 46, 0.08); }
.format b { font: 700 1.0625rem var(--display); }
.format.on b { color: var(--lime); }
.format span { font-size: 0.8125rem; font-weight: 600; line-height: 1.3; }
.format small { font-size: 0.75rem; color: var(--muted); line-height: 1.3; }
/* A size the connected printer has no paper for: shown, not chosen. */
.format.unfit { opacity: 0.5; cursor: not-allowed; }
.format.unfit:hover { border-color: var(--line-2); }
.format.unfit small { color: var(--amber); }
.format-art { display: grid; place-items: center; height: 3.125rem; }
.format-art svg { overflow: visible; }
.format-art .paper { fill: rgba(255, 255, 255, 0.08); stroke: var(--line-2); stroke-width: 1; }
.format-art rect:not(.paper) { fill: rgba(255, 255, 255, 0.34); stroke: none; }
.format.on .format-art rect:not(.paper) { fill: var(--lime); }
.format-art .cut { stroke: var(--pink); stroke-width: 1.4; stroke-dasharray: 3 2.5; fill: none; }

/* A print size for one magnet, in the photo's dialog */
.print-how { display: grid; gap: 0.75rem; }
.size-pick { border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 0 0.875rem; }
.size-pick summary { display: flex; align-items: center; gap: 0.625rem; padding: 0.75rem 0; cursor: pointer; list-style: none; }
.size-pick summary::-webkit-details-marker { display: none; }
.size-pick .size-now { flex: 1; min-width: 0; font-size: 0.9375rem; }
.size-pick .size-now b { font: 700 1rem var(--display); }
.size-pick .size-now small { color: var(--muted); }
.size-pick .size-change { color: var(--lime); font-weight: 700; font-size: 0.875rem; }
.size-pick[open] .size-change { visibility: hidden; }
.size-pick[open] { padding-bottom: 0.875rem; display: grid; gap: 0.75rem; }
.size-pick .format-row { grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr)); }
.size-pick .format { padding: 0.625rem 0.375rem 0.5rem; }
.size-pick .format b { font-size: 0.9375rem; }
.size-pick .format span { font-size: 0.75rem; }
.size-note { display: block; line-height: 1.45; }
.tagp.size { margin-inline-start: 0.5rem; background: rgba(138, 107, 255, 0.2); color: #cbbdff; vertical-align: 1px; }

/* The sizes an event offers, and who chooses one for every print (Settings > Printing) */
.sizes-field { gap: 0.5rem; container-type: inline-size; }
/* The printer the sizes are offered for, and the quick way to offer only what it cuts (public/js/sizes.js, printerBar) */
.printer-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem 0.75rem; padding: 0.5625rem 0.625rem 0.5625rem 0.75rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--card-2); transition: border-color 0.15s, background 0.15s; }
.printer-bar.on { border-color: rgba(200, 255, 46, 0.45); background: rgba(200, 255, 46, 0.06); }
.printer-bar-ico { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; flex: none; border-radius: 0.625rem; background: rgba(200, 255, 46, 0.12); color: var(--lime); }
.printer-bar-ico .ico { width: 1.25rem; height: 1.25rem; }
.printer-bar-text { display: grid; flex: 1 1 9.375rem; min-width: 0; line-height: 1.3; }
.printer-bar-text b { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.printer-bar-text small { color: var(--muted); font-size: 0.8rem; }
.printer-bar .btn { flex: none; }
/* In a narrow column the button takes a line of its own, and the printer's name the whole width above it. */
@container (max-width: 27.5rem) {
  .printer-bar .btn { flex-basis: 100%; }
}
.size-chips { grid-template-columns: repeat(auto-fill, minmax(5.375rem, 1fr)); gap: 0.375rem; }
.size-chip { padding: 0.5rem 0.25rem 0.4375rem; }
.size-chip b { font-size: 0.9375rem; }
.size-chip span { font-size: 0.7188rem; }
.size-chip small { font-size: 0.6875rem; }
.size-chip .format-art { height: 2.25rem; }
.size-chip .format-art svg { width: auto; height: 2.125rem; }
/* The event's own size is always offered: marked, and not to be taken off. */
.size-chip:disabled { cursor: default; }
.ask-size { display: grid; gap: 2px; padding-block: 0.25rem; }
.ask-size .switch-row { min-height: 2.5rem; font-weight: 500; }
.ask-size .switch-row.off { opacity: 0.5; cursor: not-allowed; }
.ask-size small { color: var(--muted); line-height: 1.45; }
/* Which size, asked as a guest's request is approved */
.ask-size-pick { display: grid; gap: 0.875rem; }
.ask-size-pick h2 { margin: 0; }

/* Where the tablet or a guest's phone chooses the size of each magnet */
.choose-size { display: grid; justify-items: center; gap: 0.625rem; }
.choose-size > b { font: 700 1.0625rem var(--display); }
.choose-size-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.choose-size-opt { display: grid; grid-template-rows: 2.875rem auto auto; justify-items: center; gap: 0.25rem; min-width: 5.25rem; padding: 0.625rem 0.75rem 0.5625rem; border-radius: 1rem; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); color: inherit; transition: border-color 0.15s, background 0.15s; }
.choose-size-opt:hover { border-color: var(--muted); }
.choose-size-opt b { font: 700 1rem var(--display); }
.choose-size-opt small { font-size: 0.75rem; color: var(--muted); }
.choose-size-opt.on { border-color: var(--lime); background: rgba(200, 255, 46, 0.1); }
.choose-size-opt.on b { color: var(--lime); }
.choose-size-shape { align-self: end; display: flex; flex-direction: column; gap: 2px; padding: 2px; border: 1.5px solid currentColor; border-radius: 0.1875rem; color: var(--muted); }
.choose-size-shape i { flex: 1; border-radius: 1px; background: currentColor; opacity: 0.45; }
.choose-size-opt.on .choose-size-shape { color: var(--lime); background: rgba(200, 255, 46, 0.12); }
.is-kiosk .choose-size-opt { min-width: 6.5rem; padding: 0.875rem 1rem 0.75rem; }
.is-kiosk .choose-size-opt b { font-size: 1.1875rem; }
/* Before the camera opens: which magnet is about to be taken, and how many photos it takes (public/js/sizes.js) */
.shoot-sizes { display: grid; gap: 1.125rem; }
.shoot-size-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.shoot-size { display: grid; grid-template-rows: 5.75rem auto auto; justify-items: center; gap: 0.4375rem; min-width: 7.25rem; padding: 1.125rem 1rem 0.875rem; border: 1px solid var(--line-2); border-radius: 1.375rem; background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)); color: inherit; cursor: pointer; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; animation: pop-in 0.38s calc(var(--i, 0) * 60ms) both; }
.shoot-size:hover, .shoot-size:focus-visible { border-color: var(--lime); box-shadow: 0 1rem 2.25rem -1.25rem rgba(200, 255, 46, 0.55); transform: translateY(-2px); }
.shoot-size:active { transform: scale(0.96); }
.shoot-size b { font: 700 1.25rem var(--display); }
.shoot-size small { display: inline-flex; align-items: center; gap: 0.375rem; color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.shoot-size small .ico { width: 0.9375rem; height: 0.9375rem; color: var(--lime); }
.shoot-size-pics { display: flex; align-items: flex-end; align-self: end; gap: 0.3125rem; }
.shoot-size .choose-size-shape { border-width: 2px; border-radius: 0.25rem; color: var(--lime); background: linear-gradient(150deg, rgba(200, 255, 46, 0.2), rgba(138, 107, 255, 0.24)); }
.shoot-size .choose-size-shape i { opacity: 0.32; }
.is-kiosk .shoot-size { grid-template-rows: 7rem auto auto; min-width: 9.375rem; padding: 1.375rem 1.25rem 1.125rem; }
/* On a phone the sizes share one row. */
@media (max-width: 480px) {
  .shoot-size-row { flex-wrap: nowrap; gap: 0.5rem; }
  .shoot-size { flex: 1 1 0; min-width: 0; padding: 0.875rem 0.375rem 0.75rem; }
  .shoot-size small { flex-direction: column; gap: 0.1875rem; font-size: 0.75rem; text-align: center; }
  /* Four sizes or more: two to a row. */
  .shoot-size-row:has(> :nth-child(4)) { flex-wrap: wrap; }
  .shoot-size-row:has(> :nth-child(4)) .shoot-size { flex: 1 1 40%; }
}
.is-kiosk .shoot-size b { font-size: 1.5rem; }
.is-kiosk .shoot-size small { font-size: 0.9375rem; }
/* The two magnets of a sheet that holds two, as the camera took them */
.pair-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.875rem; align-items: start; }
.pair-one { display: grid; justify-items: center; gap: 0.625rem; min-width: 0; }
.pair-one .shot { margin: 0; }
.kmodal .pair-one .shot img { max-height: 40vh; max-width: 100%; }
.kmodal .pair-one .shot .sk-frame { max-width: 100%; }

/* The strip being put together, at the foot of the screen */
.strip-bar { position: fixed; inset: auto 0 1.125rem; z-index: 40; width: fit-content; max-width: calc(100% - 1.5rem); margin-inline: auto; display: flex; align-items: center; gap: 0.875rem; padding: 0.625rem; padding-inline-start: 1.125rem; border-radius: 1.375rem; background: rgba(18, 18, 30, 0.95); border: 1px solid var(--line-2); box-shadow: var(--shadow); backdrop-filter: blur(0.875rem); animation: rise 0.25s ease; }
.strip-bar > b { font: 600 1rem var(--display); white-space: nowrap; }
.strip-slots { display: flex; gap: 0.5rem; }
.strip-slot { position: relative; flex: none; width: 3.375rem; height: 2.875rem; padding: 0; border: 0; border-radius: 0.625rem; overflow: hidden; background: var(--card-2); }
.strip-slot img { width: 100%; height: 100%; object-fit: cover; }
.strip-slot .ico { position: absolute; top: 0.1875rem; inset-inline-end: 0.1875rem; width: 1rem; height: 1rem; padding: 2px; border-radius: 50%; background: rgba(0, 0, 0, 0.7); stroke-width: 3; }
.strip-slot.empty { display: grid; place-items: center; border: 2px dashed var(--line-2); background: none; color: var(--muted); font-weight: 700; }
body.has-strip { padding-bottom: 6.25rem; }
/* Messages pop up above the strip bar rather than over it. */
body.has-strip #toasts { bottom: 6.5rem; }
.strip-shot img { width: auto; max-height: 62vh; }

/* Print queue */
.totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: 1.125rem; }
.total { padding: 1.125rem 1.25rem; border-inline-start: 0.1875rem solid var(--line-2); }
.total.ok { border-inline-start-color: var(--mint); }
.total.wait { border-inline-start-color: var(--amber); }
.total.bad { border-inline-start-color: var(--red); }
.total b { font: 700 2rem/1.1 var(--display); display: block; }
.total span { color: var(--muted); font-size: 0.875rem; }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; padding: 0.875rem 1.125rem; margin-bottom: 0.875rem; border-color: rgba(255, 178, 36, 0.4); }
.list-title { font: 600 1.125rem var(--display); margin: 1.5rem 0 0.625rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.line-item { display: flex; align-items: center; gap: 0.875rem; padding: 0.625rem 1rem; margin-bottom: 0.5rem; border-radius: 1rem; }
.thumbs { display: flex; gap: 0.25rem; }
.thumbs img { width: 2.75rem; height: 3.5rem; object-fit: cover; border-radius: 0.375rem; background: var(--card-2); }
.sheet-thumb { padding: 0.25rem; gap: 0.1875rem; background: #fff; border-radius: 0.25rem; }
.sheet-thumb img { border-radius: 1px; width: 5rem; height: 6.5rem; }
/* A strip in the queue: three near-square windows, as on the paper (about 484×476 on a 5×15), with the white at each side. The stack stays as tall as one sheet thumbnail. */
.queue-strip { display: flex; flex-direction: column; align-items: center; box-sizing: border-box; width: 2.75rem; padding-inline: 0.3125rem; gap: 1px; background: #fff; }
.thumbs .queue-strip img, .sheet-thumb .queue-strip img { width: 2.125rem; height: 2.125rem; border-radius: 1px; }
.queue-magnet:not(.queue-strip) { display: block; }
.queue-photo { position: relative; display: block; padding: 0; border: 0; background: none; line-height: 0; color: inherit; font: inherit; }
button.queue-photo { cursor: pointer; }
button.queue-photo:hover { box-shadow: 0 0 0 2px var(--lime); }
.queue-photo.is-deleted { cursor: default; }
.queue-photo.is-deleted img { filter: grayscale(.6) brightness(.85); }
.queue-missing { display: grid; place-items: center; background: #e4e4ee; color: #6e6e82; }
.sheet-thumb .queue-missing { width: 5rem; height: 6.5rem; }
.sheet-thumb .queue-strip .queue-missing { width: 2.125rem; height: 2.125rem; }
.queue-missing .ico { width: 46%; height: 46%; }
.queue-gone-badge { position: absolute; inset-inline-end: 1px; inset-block-end: 1px; display: grid; place-items: center; color: #fff; pointer-events: none; }
.queue-gone-badge .ico { width: 1.25rem; height: 1.25rem; filter: drop-shadow(0 0 1px rgba(3, 3, 8, .95)); }
/* The enlarged magnet. It sits on the body, so a printing row cannot clip it, and it fades in after the hover has lasted. */
.queue-preview { position: fixed; z-index: 40; width: max-content; pointer-events: none; opacity: 0; transform: scale(.96); transition: opacity 120ms ease, transform 120ms ease; }
.queue-preview.on { opacity: 1; transform: scale(1); }
.queue-preview-body { position: relative; display: block; width: max-content; }
.queue-preview-frame { display: block; position: relative; overflow: hidden; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.queue-preview-frame.sheet { aspect-ratio: 80 / 104; }
.queue-preview-frame.sheet { height: min(15rem, 280px); } /* px */
.queue-preview-frame.strip { aspect-ratio: 44 / 104; }
.queue-preview-frame.strip { height: min(15rem, 280px); } /* px */
.queue-preview-frame.sheet .queue-photo { width: 100%; height: 100%; }
.queue-preview-frame.sheet img,
.queue-preview-frame.sheet .queue-missing { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.queue-preview-frame.strip .queue-strip { align-items: stretch; width: 100%; height: 100%; padding-inline: 11%; gap: 1px; background: #fff; }
.queue-preview-frame.strip .queue-photo { flex: 1 1 0; min-width: 0; min-height: 0; width: 100%; }
.queue-preview-frame.strip .queue-photo img,
.queue-preview-frame.strip .queue-missing { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.queue-preview-frame.is-deleted img { filter: grayscale(.6) brightness(.85); }
.queue-deleted-scrim { position: absolute; inset-inline: 0; bottom: 0; height: 45%; background: linear-gradient(to top, rgba(3, 3, 8, .78), transparent); pointer-events: none; }
.queue-deleted-chip { position: absolute; left: 50%; bottom: 0.75rem; transform: translateX(-50%); z-index: 1; display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 62.4375rem; background: rgba(3, 3, 8, .78); backdrop-filter: blur(0.375rem); border: 1px solid var(--line-2); padding: 0.5rem 1rem; color: #fff; font: 700 0.9375rem/1.2 var(--body); white-space: nowrap; }
.queue-deleted-chip .ico { width: 1.125rem; height: 1.125rem; color: var(--muted); }
.line-item .grow { flex: 1; min-width: 0; color: var(--muted); font-size: 0.875rem; }
.status { font-weight: 800; font-size: 0.875rem; }
.status.ready { color: var(--amber); }
.status.printing { color: var(--lime); }
.status.done { color: var(--mint); }
.status.failed { color: var(--red); }
.status.canceled { color: var(--muted); }

/* Connections: what connects to the event, by where it runs */
.connections { display: grid; gap: 2.125rem; max-width: 73.75rem; }
.conn-intro { font-size: 1.0625rem; margin-bottom: -0.875rem; }
.conn-sec { display: grid; gap: 0.875rem; }
.conn-head { display: flex; align-items: center; gap: 0.875rem; }
.conn-head h2 { font: 600 1.375rem/1.2 var(--display); }
.conn-head p { font-size: 0.9375rem; line-height: 1.45; max-width: 45rem; }
.ico-badge { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; color: var(--lime); background: rgba(200, 255, 46, 0.08); border: 1px solid rgba(200, 255, 46, 0.22); flex: none; }
.conn-head .ico-badge { width: 2.875rem; height: 2.875rem; border-radius: 0.875rem; font-size: 1.1875rem; }
/* Whether anything is connected to this part right now */
.conn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.3125rem 0.75rem; border-radius: 62.4375rem; font-size: 0.8125rem; font-weight: 700; white-space: nowrap; color: var(--muted); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.conn .dot { box-shadow: none; opacity: 0.5; }
.conn.on { color: var(--mint); border-color: rgba(92, 242, 182, 0.35); background: rgba(92, 242, 182, 0.08); }
.conn.on .dot { opacity: 1; box-shadow: 0 0 0.625rem currentColor; animation: pulse 1.6s ease-in-out infinite; }
.pill-link { text-decoration: none; border-radius: 62.4375rem; }

/* The print computer: three steps on one side, who is connected on the other */
.conn-print { padding: 1.5rem; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(16.25rem, 1fr); gap: 1.375rem 1.875rem; align-items: start; }
.csteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.125rem; }
.cstep { display: flex; gap: 0.875rem; align-items: flex-start; }
.cstep b { font: 600 1.0625rem/1.3 var(--display); }
.cstep p { font-size: 0.9375rem; line-height: 1.5; margin: 2px 0 0.625rem; }
.cstep .row { gap: 0.5rem 0.625rem; }
.cstep small.wide { flex-basis: 100%; }
.cnum { flex: none; width: 1.875rem; height: 1.875rem; border-radius: 50%; display: grid; place-items: center; font: 700 0.9375rem var(--display); color: var(--lime-ink); background: var(--lime); }
.conn-now { display: grid; gap: 0.625rem; align-content: start; padding: 1.125rem; border-radius: 1rem; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line); }
.conn-now > p { font-size: 0.9375rem; line-height: 1.5; }
.cpc { display: flex; align-items: center; gap: 0.625rem; flex-wrap: wrap; padding: 0.625rem 0.75rem; border-radius: 0.75rem; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.cpc > .ico { font-size: 1.25rem; color: var(--muted); }
.cpc b { display: block; font-size: 0.9375rem; line-height: 1.25; }
.cpc small { display: block; color: var(--muted); font-size: 0.7813rem; text-align: start; overflow-wrap: anywhere; }
.update-note { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.8125rem; font-weight: 700; color: var(--amber); text-decoration: none; }
.update-note:hover { text-decoration: underline; }
.conn-more, #face-settings details { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 0.875rem; }
.conn-more summary, #face-settings details summary { cursor: pointer; font-weight: 600; font-size: 0.9375rem; color: var(--muted); display: flex; align-items: center; gap: 0.5rem; list-style: none; }
.conn-more summary::-webkit-details-marker, #face-settings details summary::-webkit-details-marker { display: none; }
.conn-more summary::after, #face-settings details summary::after { content: ''; width: 0.4375rem; height: 0.4375rem; border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-inline-start: 2px; transition: transform 0.2s; }
.conn-more[open] summary::after, #face-settings details[open] summary::after { transform: rotate(-135deg) translate(-0.1875rem, -0.1875rem); }
.conn-more summary:hover, .conn-more[open] summary, #face-settings details summary:hover, #face-settings details[open] summary { color: var(--text); }
.conn-more > p { font-size: 0.9375rem; margin: 0.625rem 0 0.75rem; max-width: 47.5rem; }
.conn-more.ingest { padding: 1.125rem 1.375rem; border-top: 0; display: grid; gap: 0.625rem; }
.conn-more.ingest > p { margin: 0; }

/* Screens at the stand */
.screen-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr)); gap: 1rem; }
.screen-card { padding: 1.375rem; display: grid; gap: 0.75rem; align-content: start; grid-template-rows: auto 1fr auto; }
.screen-top { display: flex; align-items: center; gap: 0.75rem; }
.screen-top h3 { font: 600 1.1875rem/1.25 var(--display); margin-bottom: 0.3125rem; }
.screen-card > p { font-size: 0.9375rem; line-height: 1.5; }
.screen-open { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; padding: 0.875rem; border-radius: 1rem; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line); }
.screen-open .label { display: block; font-size: 0.7813rem; font-weight: 600; color: var(--muted); }
.screen-open b { display: block; font-size: 0.9688rem; line-height: 1.3; margin-bottom: 0.625rem; }
.screen-card > .btn.quiet { justify-self: start; margin: -0.25rem -0.5rem -0.5rem; }
.qr { width: 9.375rem; padding: 0.5rem; border-radius: 0.75rem; background: #fff; }
/* A code on the Connect tab is a button: pressed, it opens large on the same screen. */
.qr-zoom { display: block; flex: none; padding: 0; border: 0; background: none; border-radius: 0.75rem; cursor: zoom-in; transition: transform 0.15s ease; }
.qr-zoom:hover { transform: scale(1.03); }
.qr-zoom .qr { display: block; }
.qr-large { display: grid; gap: 1rem; justify-items: center; text-align: center; }
.qr-large h2 { margin: 0; }
.qr-large img { width: min(27.5rem, 72vw, 60vh); padding: 1rem; border-radius: 1.25rem; background: #fff; }
.qr.sm { width: 6.5rem; padding: 0.375rem; border-radius: 0.625rem; flex: none; }
.qr.lg { width: 11.875rem; padding: 0.625rem; border-radius: 1rem; flex: none; }

/* A short code typed on the device, under that device's QR. The address stays on one line. */
.pair-block { flex: 1 0 100%; display: grid; gap: 0.625rem; justify-items: start; padding-top: 0.25rem; }
.pair-rule { width: 100%; height: 1px; /* px */ margin: 0; border: 0; background: var(--line); }
.pair-label { margin: 0; font-size: 0.9063rem; line-height: 1.4; color: var(--muted); }
.screen-open .pair-label b, .pair-label b { display: inline; margin: 0; font-size: 0.9375rem; font-weight: 700; color: var(--text); letter-spacing: 0; }
.pair-live { display: grid; gap: 0.5rem; min-height: 5.75rem; }
.pair-tile { display: inline-flex; align-items: center; padding: 0.5rem 1rem; border-radius: var(--radius-sm); background: var(--card-2); border: 1px solid var(--line); }
.screen-open .pair-code, .pair-code { display: inline; margin: 0; font: 700 2rem/1 var(--display); letter-spacing: 0.12em; direction: ltr; }
.pair-tile.dead .pair-code { opacity: 0.35; text-decoration: line-through; }
.pair-bar { height: 3px; /* px */ width: 100%; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; direction: ltr; }
.pair-bar i { display: block; height: 100%; width: 100%; background: var(--lime); transform-origin: left center; }
.pair-bar.late i { background: var(--amber); }
.pair-status { margin: 0; font-size: 0.875rem; color: var(--muted); }
.pair-act { display: block; height: 2.125rem; }
.pair-block .pill { font-size: 0.9375rem; }

/* The device types the code. The card stays in the top third so a landscape keyboard does not cover it. */
.is-code { background: var(--bg); }
.code-page { min-height: 100vh; min-height: 100dvh; display: flex; justify-content: center; align-items: flex-start; box-sizing: border-box; padding: 8vh 1.25rem 42vh; }
.code-card { width: min(40rem, 100%); display: grid; gap: 1rem; justify-items: center; text-align: center; padding: 1.75rem 1.5rem 1.5rem; border-radius: 1.625rem; background: linear-gradient(180deg, #181826, var(--card)); box-shadow: var(--shadow); }
.code-card h1 { margin: 0; font: 700 1.75rem/1.25 var(--display); }
.code-sub { margin: 0; max-width: 36em; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.code-field { position: relative; }
.code-boxes { display: flex; gap: 0.625rem; direction: ltr; }
.code-boxes span { width: 4rem; height: 4.75rem; display: grid; place-items: center; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--card-2); font: 700 2.5rem/1 var(--display); }
.code-field:focus-within .code-boxes { outline: 0.25rem solid var(--lime); outline-offset: 0.5rem; border-radius: 0.75rem; }
.type-code:focus { outline: none; }
.code-card .btn:focus, .code-card .btn:focus-visible { outline: 0.25rem solid var(--lime); outline-offset: 0.375rem; }
.code-card .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.code-boxes span.on { border-color: var(--lime); }
.code-boxes.bad span { border-color: var(--red); }
.code-boxes.ok span { border-color: var(--lime); background: rgba(200, 255, 46, 0.14); }
.code-boxes.busy span { animation: code-pulse 0.9s ease-in-out infinite; }
.code-boxes.shake { animation: code-shake 0.3s linear; }
.type-code { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0.02; font-size: 1rem; color: transparent; background: transparent; caret-color: transparent; }
.code-msg { min-height: 1.4em; margin: 0; max-width: 34em; font-size: 1rem; line-height: 1.45; display: flex; align-items: center; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
.code-card[data-state="wrong"] .code-msg, .code-card[data-state="expired"] .code-msg, .code-card[data-state="offline"] .code-msg, .code-card[data-state="limited"] .code-msg { color: var(--red); }
.code-card[data-state="success"] .code-msg { color: var(--lime); }
.code-card[data-state="success"] .code-msg .ico { animation: code-pop 0.4s ease; }
.code-card .btn.lg { min-width: 13.75rem; }
@keyframes code-shake { 20% { transform: translateX(-0.375rem); } 40% { transform: translateX(0.375rem); } 60% { transform: translateX(-0.25rem); } 80% { transform: translateX(0.1875rem); } }
@keyframes code-pulse { 50% { border-color: var(--lime); } }
@keyframes code-pop { from { transform: scale(0.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .code-boxes.busy span, .code-boxes.shake, .code-card[data-state="success"] .code-msg .ico { animation: none; }
}
@media (max-width: 520px) {
  .code-boxes { gap: 0.375rem; }
  .code-boxes span { width: 2.875rem; height: 3.625rem; font-size: 1.875rem; }
}
@media (min-width: 1600px) {
  .code-card { width: min(55rem, 100%); }
  .code-boxes span { width: clamp(64px, 5vw, 110px); height: clamp(76px, 5.9vw, 130px); font-size: clamp(40px, 2.5vw, 64px); } /* px */
}

/* The guests' code */
.guest-card { padding: 1.5rem; display: flex; gap: 1.625rem; align-items: center; flex-wrap: wrap; }
.guest-card .grow { display: grid; gap: 0.625rem; min-width: min(100%, 20rem); }
.guest-card h3 { font: 600 1.25rem/1.25 var(--display); }
.guest-card p { font-size: 0.9688rem; line-height: 1.5; }
.guest-mode { color: var(--text); padding: 0.5625rem 0.8125rem; border-radius: 0.75rem; background: rgba(200, 255, 46, 0.07); border: 1px solid rgba(200, 255, 46, 0.2); justify-self: start; }
.guest-mode.off { background: rgba(255, 178, 36, 0.08); border-color: rgba(255, 178, 36, 0.3); }
.guest-mode a { color: var(--lime); font-weight: 700; white-space: nowrap; }
.url { direction: ltr; text-align: left; font: 500 0.8125rem ui-monospace, SFMono-Regular, Menlo, monospace; padding: 0.625rem 0.75rem; border-radius: 0.625rem; background: rgba(0, 0, 0, 0.4); border: 1px solid var(--line); overflow-wrap: anywhere; user-select: all; }
/* On a narrow screen each part is one column, and a part's state goes under its name */
@media (max-width: 900px) {
  .conn-print { grid-template-columns: minmax(0, 1fr); padding: 1.125rem; }
  .conn-head { flex-wrap: wrap; }
  .conn-head .grow { flex: 1 1 60%; }
  .conn-head > .conn { margin-inline-start: 3.75rem; }
  .screen-cards { grid-template-columns: minmax(0, 1fr); }
  .guest-card { padding: 1.125rem; gap: 1rem; }
  .guest-card .qr.lg { width: 9.375rem; margin: 0 auto; }
  .connections { gap: 1.75rem; }
}

/* Settings: cards flow down three columns */
.settings { columns: 3 20rem; column-gap: 1rem; }
.settings > .card { break-inside: avoid; margin-bottom: 1rem; }
.danger-zone { border-color: rgba(255, 93, 93, 0.3); }
.danger-zone h2 .ico { color: var(--red); }

/* AI effect picker */
.fx { display: grid; gap: 0.875rem; }
.fx h2 { font: 600 1.375rem var(--display); }
.fx .search-wrap { max-width: none; flex: none; }
.fx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.375rem, 1fr)); gap: 0.625rem; align-content: start; min-height: 15rem; }
.fx-card { position: relative; padding: 0; border: 1px solid var(--line-2); border-radius: 0.875rem; overflow: hidden; background: var(--card-2); transition: transform 0.15s, border-color 0.15s; }
.fx-card:hover { transform: translateY(-2px); border-color: var(--lime); }
.fx-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fx-card span { position: absolute; inset: auto 0 0; padding: 1.375rem 0.625rem 0.5rem; background: linear-gradient(transparent, rgba(5, 5, 10, 0.92)); font-weight: 700; font-size: 0.875rem; text-align: start; }
.fx-working { display: grid; gap: 0.75rem; justify-items: center; text-align: center; padding: 0.5rem 0 0.875rem; }
.fx-shot { position: relative; border-radius: 0.875rem; overflow: hidden; }
.fx-shot img { max-height: 46vh; filter: saturate(0.6) brightness(0.75); }
.fx-scan { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(200, 255, 46, 0.35) 48%, rgba(138, 107, 255, 0.4) 55%, transparent 72%); background-size: 260% 100%; animation: scan 1.8s linear infinite; }
@keyframes scan { from { background-position: 130% 0; } to { background-position: -130% 0; } }
.fx-line { color: var(--muted); min-height: 1.6em; }

/* ---------- Motion and interface effects ---------- */
/* Pages cross-fade into each other instead of flashing. Browsers without this simply load the next page. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out var(--move-fast) var(--ease-out) both; }
::view-transition-new(root) { animation: vt-in var(--move) var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-0.375rem); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(0.5rem); } }

.scroll-progress { position: fixed; inset: 0 0 auto; height: 0.1875rem; z-index: 60; background: var(--grad); transform: scaleX(var(--p, 0)); transform-origin: left; pointer-events: none; }
[dir='rtl'] .scroll-progress { transform-origin: right; }

/* Things rise into place when the page opens; --i staggers them. */
.rise, .split .w { animation: rise-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 85ms + 60ms); }
.split .w, .split .grad { display: inline-block; }
@keyframes rise-in { from { opacity: 0; transform: translateY(1.5rem); filter: blur(0.5rem); } }
[data-stagger] > * { transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.2s; transition-delay: calc(var(--n, 0) * 70ms); }
.reveal:not(.in) [data-stagger] > *, [data-stagger].reveal:not(.in) > * { opacity: 0; transform: translateY(1.25rem); }

/* A soft light follows the pointer across a card. */
.glow { position: relative; }
.glow::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s; background: radial-gradient(26.25rem circle at var(--mx, 50%) var(--my, 50%), rgba(200, 255, 46, 0.13), transparent 60%); }
.glow:hover::before { opacity: 1; }
.tilt { transition: transform 0.25s ease; }
.ico.flip { transform: scaleX(-1); }
[dir='rtl'] .ico.dir { transform: scaleX(-1); }

/* Hero: drifting colour, floating lights and three live snippets of the product.
   The three discs, their colours and their three clocks are the old ones. The
   blur that used to sit on the whole wash is gone: it forced a repaint every
   frame and, once the discs already fade out at the edge, it does not show. */
.aurora { position: absolute; inset: -10rem 0 auto; height: 53.75rem; z-index: -1; overflow: hidden; pointer-events: none; opacity: 0.5; }
.aurora i { position: absolute; width: 46vw; height: 46vw; max-width: 47.5rem; max-height: 47.5rem; border-radius: 50%; animation: drift 24s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { background: radial-gradient(closest-side, rgba(138, 107, 255, 0.8), transparent); left: 6%; top: -12%; }
.aurora i:nth-child(2) { background: radial-gradient(closest-side, rgba(200, 255, 46, 0.42), transparent); right: 4%; top: 4%; animation-duration: 30s; animation-delay: -8s; }
.aurora i:nth-child(3) { background: radial-gradient(closest-side, rgba(255, 92, 147, 0.4), transparent); left: 36%; top: 28%; animation-duration: 36s; animation-delay: -14s; }
@keyframes drift { to { transform: translate(8vw, 4.375rem) scale(1.18); } }
/* Normal blending, not screen. Screen would mix this canvas with everything moving
   behind it, on every frame. On the dark ground the lights read the same. */
.bokeh { position: absolute; inset: -6.875rem 0 auto; width: 100%; height: 50rem; z-index: -1; pointer-events: none; }
.floats { position: absolute; inset: 0; pointer-events: none; }
/* No backdrop blur: these cards drift forever, and a blur of whatever is behind them
   would be sampled again on every frame. The fill is the same dark glass. */
.float { position: absolute; display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 1rem 0.5rem 0.5rem; border-radius: 1.125rem; background: rgba(14, 14, 22, 0.9); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 0.875rem; text-align: start; animation: bob 7s ease-in-out infinite, rise-in 0.9s 0.9s both; transform: translate(calc(var(--px, 0) * 1px), calc(var(--py, 0) * 1px)); }
[dir='rtl'] .float { padding: 0.5rem 0.5rem 0.5rem 1rem; }
.float > img { width: 2.875rem; height: 2.875rem; border-radius: 0.6875rem; object-fit: cover; }
.float b { display: flex; align-items: center; gap: 0.3125rem; font-weight: 700; white-space: nowrap; }
.float b .ico { color: var(--lime); }
.float small { display: block; color: var(--muted); }
.stack { display: flex; }
.stack img { width: 2.125rem; height: 2.125rem; border-radius: 50%; object-fit: cover; border: 2px solid var(--card); }
.stack img + img { margin-inline-start: -0.6875rem; }
.f1 { top: 34%; inset-inline-start: 5%; }
.f2 { top: 60%; inset-inline-end: 4%; animation-delay: -2.5s, 1.1s; }
.f3 { top: 18%; inset-inline-end: 8%; animation-delay: -5s, 1.3s; }
@keyframes bob { 50% { translate: 0 -0.75rem; } }
.wall .mag { transition: transform 0.35s ease, box-shadow 0.35s ease; }
.wall .mag:hover { transform: translateY(-0.625rem) scale(1.04); box-shadow: 0 2.5rem 3.75rem -1.25rem rgba(0, 0, 0, 0.9); }
.wall:hover .wall-row { animation-play-state: paused; }

/* Before / after slider */
.cmp { position: relative; aspect-ratio: 4 / 3; border-radius: 1.5rem; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 3.125rem 6.875rem -3.125rem rgba(138, 107, 255, 0.75); background: var(--card-2); --pos: 50%; user-select: none; }
.cmp > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.25s ease; }
.cmp.swap > img { opacity: 0; }
.cmp-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0.1875rem; background: #fff; transform: translateX(-50%); box-shadow: 0 0 1.375rem rgba(0, 0, 0, 0.6); pointer-events: none; }
.cmp-handle i { position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 3rem; height: 3rem; border-radius: 50%; background: #fff; color: #14141d; display: flex; align-items: center; justify-content: center; gap: 0; box-shadow: 0 0.625rem 1.875rem -0.5rem rgba(0, 0, 0, 0.7); }
.cmp-handle .ico { width: 0.9375rem; height: 0.9375rem; stroke-width: 2.6; }
.cmp input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.cmp-label { position: absolute; top: 0.875rem; padding: 0.3125rem 0.8125rem; border-radius: 62.4375rem; background: rgba(8, 8, 14, 0.72); backdrop-filter: blur(0.5rem); font-weight: 700; font-size: 0.875rem; pointer-events: none; }
.cmp-label.b { left: 0.875rem; }
.cmp-label.a { right: 0.875rem; }

/* Two rows of effect examples sliding past */
.fx-marquee { margin-top: 4.375rem; display: grid; gap: 0.875rem; overflow: hidden; direction: ltr; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.fx-strip { display: flex; gap: 0.875rem; width: max-content; animation: slide 100s linear infinite; }
.fx-strip.rev { animation-direction: reverse; }
.fx-marquee:hover .fx-strip { animation-play-state: paused; }
.fx-chip { position: relative; flex: none; width: 14.375rem; border-radius: 1rem; overflow: hidden; border: 1px solid var(--line); text-decoration: none; }
.fx-chip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.5s ease; }
.fx-chip:hover img { transform: scale(1.06); }
.fx-chip span { position: absolute; inset: auto 0 0; padding: 1.625rem 0.75rem 0.5625rem; background: linear-gradient(transparent, rgba(5, 5, 10, 0.92)); font-weight: 700; font-size: 0.875rem; text-align: center; }

/* The request flow: tablet -> queue -> printer -> fridge, played in a loop */
.center-lead { margin: -1.625rem auto 2.5rem; text-align: center; }
.flow-stage { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 0.625rem; }
.flow-box { position: relative; height: 16.375rem; border-radius: 1.375rem; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); padding: 1rem; display: grid; place-content: center; justify-items: center; gap: 0.625rem; overflow: hidden; transition: border-color 0.4s, box-shadow 0.4s, background 0.4s; }
.flow[data-step='1'] .flow-tablet, .flow[data-step='2'] .flow-queue, .flow[data-step='3'] .flow-printer, .flow[data-step='4'] .flow-fridge { border-color: rgba(200, 255, 46, 0.55); background: rgba(200, 255, 46, 0.04); box-shadow: 0 1.875rem 3.75rem -2.5rem rgba(200, 255, 46, 0.7); }
.flow-link { position: relative; width: 2.25rem; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 0.375rem, transparent 0.375rem 0.75rem); }
.flow-link::after { content: ''; position: absolute; top: -0.25rem; inset-inline-start: 0; width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0.875rem var(--lime); opacity: 0; }
.flow[data-step='2'] .l1::after, .flow[data-step='3'] .l2::after, .flow[data-step='4'] .l3::after { animation: travel 0.7s ease forwards; }
@keyframes travel { from { inset-inline-start: 0; opacity: 1; } to { inset-inline-start: calc(100% - 0.625rem); opacity: 1; } }
.flow-tablet .mini-grid, .flow-tablet .mini-cta { width: 12.5rem; }
.flow[data-step='1'] .mini-grid img:nth-child(5) { outline: 0.1875rem solid var(--lime); outline-offset: 2px; }
.tap { position: absolute; top: 43%; left: 50%; width: 2.75rem; height: 2.75rem; margin: -1.375rem; border-radius: 50%; border: 0.1875rem solid #fff; background: rgba(255, 255, 255, 0.25); opacity: 0; }
.flow[data-step='1'] .tap { animation: tap 1.3s ease; }
@keyframes tap { 0% { opacity: 0; scale: 1.7; } 30% { opacity: 1; scale: 1; } 60% { opacity: 0.8; scale: 0.8; } 100% { opacity: 0; scale: 1.6; } }
.flow[data-step='1'] .mini-cta { animation: press 0.4s 0.95s; }
@keyframes press { 50% { scale: 0.93; filter: brightness(1.25); } }
.flow-queue { align-content: start; justify-items: stretch; padding-top: 1.375rem; }
.flow-queue > b { font: 600 1rem var(--display); }
.flow-row { display: flex; align-items: center; gap: 0.375rem; padding: 0.4375rem 0; border-top: 1px solid var(--line); min-width: 11.875rem; }
.flow-row img { width: 1.875rem; height: 2.375rem; object-fit: cover; border-radius: 0.3125rem; }
.flow-row .st { margin-inline-start: auto; font-size: 0.8125rem; font-weight: 700; }
.flow-row em { font-style: normal; display: none; }
.flow-row em.on { display: inline; }
.s-wait { color: var(--amber); }
.s-print { color: var(--lime); }
.s-done { color: var(--mint); }
.flow-row.new { max-height: 0; opacity: 0; padding-block: 0; overflow: hidden; border-top-color: transparent; transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease; }
.flow:is([data-step='2'], [data-step='3'], [data-step='4']) .flow-row.new { max-height: 3.75rem; opacity: 1; padding-block: 0.4375rem; border-top-color: var(--line); }
.flow[data-step='2'] .new .s-wait, .flow[data-step='3'] .new .s-print, .flow[data-step='4'] .new .s-done { display: inline; }
.printer { position: relative; z-index: 2; width: 11rem; height: 5.375rem; border-radius: 1rem 1rem 0.625rem 0.625rem; background: linear-gradient(#2c2c3e, #171722); border: 1px solid var(--line-2); box-shadow: 0 1rem 1.875rem -0.875rem #000; }
.printer::before { content: ''; position: absolute; inset: 0.75rem 0.875rem auto; height: 1.375rem; border-radius: 0.375rem; background: rgba(255, 255, 255, 0.05); }
.printer .led { position: absolute; top: 1.1875rem; right: 1.5rem; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--muted); }
.flow[data-step='3'] .led { background: var(--lime); box-shadow: 0 0 0.625rem var(--lime); animation: pulse 0.5s infinite; }
.printer .slot { position: absolute; bottom: 0.75rem; left: 1rem; right: 1rem; height: 0.4375rem; border-radius: 0.25rem; background: #05050a; }
.sheet-out { position: relative; z-index: 1; width: 9.75rem; height: 7rem; margin-top: -1.375rem; overflow: hidden; display: grid; justify-items: center; transition: opacity 0.4s ease 0.5s; }
.sheet-out .sheet { transform: translateY(-104%); transition: transform 1.9s cubic-bezier(0.3, 0.6, 0.3, 1); padding: 0.25rem; }
.sheet-out .sheet::after { display: none; }
.sheet-out .mag img, .flow-fridge .mag img { height: 4rem; }
.sheet-out .mag figcaption, .flow-fridge .mag figcaption { font-size: 0.5rem; padding: 0.1875rem 0 0.25rem; }
.sheet-out .mag, .flow-fridge .mag { padding: 0.25rem 0.25rem 0; }
.flow:is([data-step='3'], [data-step='4']) .sheet-out .sheet { transform: translateY(0.625rem); }
.flow[data-step='4'] .sheet-out { opacity: 0; }
.flow-fridge { background: linear-gradient(160deg, #222230, #14141d); }
.flow-fridge .handle { position: absolute; top: 1.375rem; bottom: 1.375rem; left: 0.75rem; width: 0.3125rem; border-radius: 0.1875rem; background: rgba(255, 255, 255, 0.13); }
.flow-fridge .mag { position: absolute; box-shadow: 0 0.625rem 1.25rem -0.5rem #000; }
.o1 { top: 1.25rem; right: 1.25rem; rotate: 6deg; }
.o2 { bottom: 1.375rem; right: 2.125rem; rotate: -5deg; }
.fresh { opacity: 0; scale: 1.6; transition: opacity 0.5s ease, scale 0.6s cubic-bezier(0.2, 1.5, 0.4, 1); }
.n1 { top: 1.875rem; left: 2.125rem; rotate: -7deg; }
.n2 { bottom: 1rem; left: 2.75rem; rotate: 5deg; transition-delay: 0.25s; }
.flow[data-step='4'] .fresh { opacity: 1; scale: 1; }
.flow-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.625rem; margin: 1.375rem 0 0; padding: 0; }
.flow-steps li { display: flex; align-items: center; gap: 0.625rem; padding: 0.75rem 0.875rem; border-radius: 0.875rem; border: 1px solid transparent; color: var(--muted); font-weight: 600; transition: all 0.3s; }
.flow-steps span { display: grid; place-items: center; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 0.5625rem; background: rgba(255, 255, 255, 0.07); font: 700 0.875rem var(--display); transition: all 0.3s; }
.flow[data-step='1'] [data-at='1'], .flow[data-step='2'] [data-at='2'], .flow[data-step='3'] [data-at='3'], .flow[data-step='4'] [data-at='4'] { color: var(--text); border-color: var(--line-2); background: rgba(255, 255, 255, 0.04); }
.flow[data-step='1'] [data-at='1'] span, .flow[data-step='2'] [data-at='2'] span, .flow[data-step='3'] [data-at='3'] span, .flow[data-step='4'] [data-at='4'] span { background: var(--lime); color: var(--lime-ink); }

/* The recommended plan has a slowly turning border of light. The colour wheel is one
   layer that rotates; the card covers its middle, so only the border shows. Turning
   a custom property would repaint the gradient on every frame. */
.plan.hot { border-color: transparent; background: var(--card); background-clip: padding-box; isolation: isolate; }
.plan-ring { position: absolute; inset: -1px; z-index: -1; padding: 1px; border-radius: inherit; pointer-events: none; overflow: hidden; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.plan-ring i { position: absolute; left: 50%; top: 50%; width: 240%; aspect-ratio: 1; translate: -50% -50%; background: conic-gradient(from 0deg, var(--lime), var(--violet), var(--mint), var(--pink), var(--lime)); animation: spin 7s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.price .cur { font-size: 0.55em; margin-inline-end: 0.1875rem; opacity: 0.8; }
.price small { font-size: 0.8125rem; }
.price-more { color: var(--muted); font-size: 0.875rem; line-height: 1.4; margin-top: -0.5rem; }
/* The two kinds of a card, one over the other, so the card keeps the taller one's height whichever shows. */
.plan .swap { display: grid; }
.plan .swap > * { grid-area: 1 / 1; }
.plan .swap > :not(.on) { visibility: hidden; }
.plan .swap.grow { flex: 1; align-content: start; }
.plan .swap .ticks { flex: none; }
/* A regular or a premium event, on the same card. */
.plan-toggle { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin: -0.25rem 0 2px; font: 600 0.9375rem var(--display); color: var(--muted); }
.plan-toggle span { cursor: pointer; transition: color 0.2s; }
.plan-toggle span.on { color: #fff; }
.kind-switch { position: relative; width: 3.5rem; height: 1.875rem; padding: 0; border: 0; border-radius: 62.4375rem; background: rgba(255, 255, 255, 0.14); cursor: pointer; transition: background 0.25s; }
.kind-switch i { position: absolute; top: 0.1875rem; inset-inline-start: 0.1875rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #fff; box-shadow: 0 2px 0.5rem rgba(0, 0, 0, 0.35); transition: transform 0.25s ease; }
.kind-switch.premium { background: linear-gradient(100deg, var(--violet), var(--pink)); }
.kind-switch.premium i { transform: translateX(1.625rem); }
[dir='rtl'] .kind-switch.premium i { transform: translateX(-1.625rem); }
.kind-switch:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

/* ---------- More public pages ---------- */
.nav-wrap { transition: top 0.25s ease; }
.nav { transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease; }
.nav-wrap.scrolled .nav { background: rgba(10, 10, 18, 0.92); box-shadow: 0 1rem 2.5rem -1.5rem #000; }
.nav-links a { position: relative; }
.nav-links a::after { content: ''; position: absolute; inset: auto 0 -0.375rem; height: 2px; border-radius: 2px; background: var(--lime); transform: scaleX(0); transition: transform 0.2s ease; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-burger { display: none; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--line-2); background: none; }
.nav-sheet { max-width: 73.75rem; margin: 0.5rem auto 0; padding: 0.625rem; border-radius: 1.375rem; border: 1px solid var(--line); background: rgba(10, 10, 18, 0.96); backdrop-filter: blur(1rem); display: grid; }
.nav-sheet a { padding: 0.8125rem 1rem; border-radius: 0.75rem; text-decoration: none; font-weight: 600; }
.nav-sheet a:hover { background: rgba(255, 255, 255, 0.06); }
.nav-sheet hr { width: auto; border: 0; border-top: 1px solid var(--line); margin: 0.375rem 0.75rem; }

.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.125rem; }
.grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.need { padding: 1.5rem; }
.need h3 { font: 600 1.1875rem var(--display); margin-bottom: 0.375rem; }
.need p { color: var(--muted); font-size: 0.9688rem; }
.callout { display: flex; align-items: center; gap: 0.875rem; flex-wrap: wrap; margin-top: 1.125rem; padding: 1rem 1.25rem; border-radius: 1rem; border: 1px solid rgba(200, 255, 46, 0.3); background: rgba(200, 255, 46, 0.06); font-weight: 600; }
.callout > .ico { color: var(--lime); width: 1.5rem; height: 1.5rem; }
.callout span { flex: 1 1 18.75rem; }
.more { margin-top: 1.75rem; }
.uses { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.75rem; }
.use { position: relative; border-radius: 1.125rem; overflow: hidden; aspect-ratio: 3 / 4; border: 1px solid var(--line); }
.use img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.use:hover img { transform: scale(1.07); }
.use figcaption { position: absolute; inset: auto 0 0; padding: 2.75rem 0.625rem 0.875rem; background: linear-gradient(transparent, rgba(5, 5, 10, 0.94)); font: 600 1.0625rem var(--display); text-align: center; }

.bill-toggle { display: flex; width: fit-content; margin: 0 auto 2.125rem; padding: 0.3125rem; border-radius: 62.4375rem; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); }
.bill-toggle button { display: flex; align-items: center; gap: 0.5rem; padding: 0.5625rem 1.25rem; border: 0; border-radius: 62.4375rem; background: none; font-weight: 700; color: var(--muted); transition: all 0.2s; }
.bill-toggle button.on { background: var(--lime); color: var(--lime-ink); }
.bill-toggle em { font-style: normal; font-size: 0.75rem; padding: 2px 0.5625rem; border-radius: 62.4375rem; background: rgba(138, 107, 255, 0.35); color: #fff; }
.bill-toggle .on em { background: rgba(0, 0, 0, 0.16); color: inherit; }
.calc { max-width: 48.75rem; margin: 0 auto; padding: 2rem; display: grid; gap: 1.5rem; }
.calc-slider { display: grid; gap: 0.875rem; font-weight: 600; }
.calc-slider b { font: 700 1.5rem var(--display); color: var(--lime); }
input[type='range'] { accent-color: var(--lime); width: 100%; cursor: pointer; }
.calc-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.875rem; }
.calc-out .vs { background: none; border: 1px dashed var(--line-2); }
.calc-out .vs b { color: var(--muted); }
.calc-note { text-align: center; color: var(--muted); font-size: 0.9375rem; }
.calc-out > div { padding: 1.25rem; border-radius: 1rem; background: rgba(255, 255, 255, 0.04); text-align: center; display: grid; gap: 2px; }
.calc-out b { font: 700 2.625rem/1.1 var(--display); }
.calc-out small { color: var(--muted); }
.table-wrap { overflow-x: auto; padding: 0.375rem; }
.ptable { width: 100%; min-width: 40rem; border-collapse: collapse; }
.ptable th, .ptable td { padding: 0.9375rem 1.125rem; text-align: center; border-bottom: 1px solid var(--line); }
.ptable tbody th { text-align: start; font-weight: 600; }
.ptable thead th { font: 600 1.125rem var(--display); }
.ptable .hot { background: rgba(200, 255, 46, 0.06); }
.ptable thead .hot { color: var(--lime); }
.ptable tbody tr:last-child > * { border-bottom: 0; }
.ptable tbody tr:hover > * { background: rgba(255, 255, 255, 0.03); }
.ptable .yes { color: var(--lime); }
.ptable .yes .ico { width: 1.25rem; height: 1.25rem; stroke-width: 2.6; }
.ptable .no { color: var(--muted); }

.feat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 4.375rem; align-items: center; }
.feat-row.flip .ai-text { order: 2; }
.eyebrow { color: var(--lime); font-weight: 800; font-size: 0.875rem; letter-spacing: 0.04em; }
.feat-visual { display: grid; place-items: center; min-height: 23.75rem; padding: 2.125rem; border-radius: 1.75rem; border: 1px solid var(--line); background: radial-gradient(closest-side, rgba(138, 107, 255, 0.2), transparent), rgba(255, 255, 255, 0.02); }
.mock.static { position: static; transform: none; width: min(26.875rem, 100%); }
.phone.static { width: 14.375rem; }
.frames { display: flex; gap: 1rem; align-items: center; }
.frames .mag img { height: 13.125rem; }
.fr1 { rotate: -5deg; }
.fr2 { background: #16161f; translate: 0 -0.875rem; }
.fr2 figcaption { color: #fff; }
.fr3 { rotate: 5deg; background: var(--lime); }
.fx-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.625rem; width: 100%; }
.fx-mini figure { position: relative; border-radius: 0.875rem; overflow: hidden; border: 1px solid var(--line); }
.fx-mini img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fx-mini figcaption { position: absolute; inset: auto 0 0; padding: 1.25rem 0.5rem 0.4375rem; background: linear-gradient(transparent, rgba(5, 5, 10, 0.92)); font-weight: 700; font-size: 0.8125rem; text-align: center; }
.dnp { display: grid; gap: 1.375rem; justify-items: center; }
.sheet.big .mag img { height: 12.5rem; }
.sheet.big .mag figcaption { font-size: 0.8125rem; padding: 0.375rem 0 0.5rem; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.875rem; }
.timeline > li { display: flex; gap: 1.25rem; padding: 1.625rem; align-items: flex-start; }
.timeline .num { flex: none; margin: 0; }
.timeline h3 { font: 600 1.3125rem var(--display); margin-bottom: 0.75rem; }
.tips { padding: 1.625rem; }
.prose { display: grid; gap: 1.125rem; font-size: 1.1875rem; line-height: 1.75; color: #d6d6e3; }
.prose p { text-wrap: pretty; }
.legal { font-size: 1.0625rem; padding-bottom: 1.875rem; }
.legal h2 { font: 600 1.375rem var(--display); margin-top: 1.25rem; color: var(--text); }
.legal a { color: var(--lime); font-weight: 700; }
.legal-hero { padding-bottom: 1.875rem; }
.lost { min-height: 66vh; justify-content: center; }
.lost .h1 { font-size: clamp(6.25rem, 20vw, 15rem); }

.contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.375rem; align-items: start; max-width: 65rem; margin: 0 auto; }
textarea { font: inherit; color: inherit; width: 100%; padding: 0.75rem 0.875rem; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.32); resize: vertical; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
textarea:focus { border-color: var(--lime); box-shadow: 0 0 0 0.1875rem rgba(200, 255, 46, 0.16); }
.contact-aside { display: grid; gap: 0.75rem; }
.contact-aside h3 { font: 600 1.1875rem var(--display); }
.aside-card { padding: 1.125rem 1.25rem; display: grid; gap: 0.25rem; text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.aside-card:hover { border-color: rgba(200, 255, 46, 0.45); transform: translateY(-2px); }
.aside-card span { color: var(--muted); font-size: 0.9375rem; }
.aside-card em { display: flex; align-items: center; gap: 0.375rem; margin-top: 0.375rem; font-style: normal; font-weight: 700; color: var(--lime); }
.sent-ok { display: grid; gap: 0.75rem; justify-items: center; text-align: center; padding: 2.5rem 1.25rem; }
.sent-ok .ico { width: 3.375rem; height: 3.375rem; padding: 0.75rem; border-radius: 50%; background: var(--lime); color: var(--lime-ink); stroke-width: 2.6; animation: pop 0.5s cubic-bezier(0.2, 1.5, 0.4, 1); }

.footer { max-width: 73.75rem; margin: 0 auto; padding: 3.125rem 1.25rem 2.5rem; border-top: 1px solid var(--line); color: var(--muted); display: block; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 1.875rem; }
.footer-brand p { margin-top: 0.75rem; max-width: 18.75rem; }
.footer-col { display: grid; gap: 0.625rem; align-content: start; }
.footer-col b { color: var(--text); font: 600 1rem var(--display); }
.footer-col a { text-decoration: none; transition: color 0.15s; width: fit-content; }
.footer-col a:hover { color: var(--lime); }
.footer-bottom { display: flex; justify-content: space-between; gap: 0.875rem; flex-wrap: wrap; margin-top: 2.25rem; padding-top: 1.375rem; border-top: 1px solid var(--line); font-size: 0.875rem; }
.footer-bottom small { opacity: 0.7; font-size: 0.8125rem; }

/* ---------- The signed-in app: side navigation ---------- */
.shell { display: grid; grid-template-columns: 16.75rem minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 0.25rem; padding: 1.25rem 0.875rem; border-inline-end: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); }
.side .logo { padding: 0.375rem 0.75rem 1.25rem; }
.side-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.6875rem 0.875rem; border-radius: 0.75rem; text-decoration: none; font-weight: 600; color: var(--muted); transition: color 0.15s, background 0.15s; }
.side-link .ico { width: 1.25rem; height: 1.25rem; }
.side-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.side-link.on { color: var(--lime-ink); background: var(--lime); }
.side-plan { margin: 0.5rem 0; padding: 0.875rem; border-radius: 0.875rem; border: 1px solid rgba(138, 107, 255, 0.35); background: rgba(138, 107, 255, 0.08); font-size: 0.875rem; display: grid; gap: 0.375rem; }
.side-plan b { display: flex; align-items: center; gap: 0.5rem; }
.side-plan a { color: var(--lime); font-weight: 700; text-decoration: none; }
.side-user { display: flex; align-items: center; gap: 0.625rem; padding: 0.625rem 0.375rem 0; border-top: 1px solid var(--line); margin-top: 0.375rem; }
.side-user > div { min-width: 0; flex: 1; }
.side-user b, .side-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user small { color: var(--muted); }
.side-role { display: inline-flex; align-items: center; gap: 0.3125rem; margin-top: 0.1875rem; font-size: 0.75rem; font-weight: 700; color: var(--mint); }
.side-role.admin { color: var(--lime); }
.side-role svg { width: 0.8125rem; height: 0.8125rem; }
.initials { display: grid; place-items: center; flex: none; width: 2.375rem; height: 2.375rem; border-radius: 50%; background: var(--grad); color: #0b0b12; font: 700 0.9375rem var(--display); }
.main { min-width: 0; }
.main-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 0.75rem; min-height: 3.875rem; padding: 0.625rem 1.75rem; background: rgba(8, 8, 14, 0.84); backdrop-filter: blur(0.875rem); border-bottom: 1px solid var(--line); }
.side-burger { display: none; }
.mobile-logo { display: none; }
/* "What's new": a small button beside the logo, with a mark while something has not been opened. */
.side-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.mobile-news { display: none; }
.news-btn { position: relative; }
.news-btn.has-news { color: var(--lime); }
.news-btn.has-news::after { content: ''; position: absolute; top: 0.25rem; inset-inline-end: 0.25rem; width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 2px var(--card); animation: pulse 1.6s ease-in-out infinite; }
.news { display: grid; gap: 1rem; }
.news h2 { display: flex; align-items: center; gap: 0.625rem; margin: 0; }
.news h2 .ico { color: var(--lime); }
.news-list { display: grid; gap: 0.625rem; margin: 0; padding: 0; list-style: none; max-height: min(62vh, 38.75rem); overflow: auto; }
.news-list li { padding: 0.875rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.025); }
.news-list li.unread { border-color: rgba(200, 255, 46, 0.35); background: rgba(200, 255, 46, 0.05); }
.news-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.375rem 0.625rem; }
.news-head small { margin-inline-start: auto; }
.news-new { padding: 1px 0.5625rem; border-radius: 62.4375rem; background: var(--lime); color: var(--lime-ink); font-size: 0.75rem; font-weight: 800; }
.news-list p { margin: 0.375rem 0 0; color: var(--muted); }
.main-top.bare { display: none; }
.side-nav { display: grid; gap: 0.25rem; }
.side-plan .muted { font-size: 0.8125rem; }
.skeleton.tall { min-height: 17.5rem; }
.section-row { margin: 0.375rem 0 1rem; }
.section-row .section-title { margin: 0; }
.ask-text { font-size: 1.125rem; font-weight: 600; text-wrap: pretty; }
.list-tools { margin-bottom: 1rem; }
.chart-foot { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.75rem; direction: ltr; }
.side-backdrop { display: none; }
.main .wrap { max-width: 82.5rem; padding: 1.875rem 1.75rem 5.625rem; animation: rise-in 0.45s ease both; }

/* Dashboard */
.stat-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.875rem; margin-bottom: 1.25rem; }
.kpi { padding: 1.25rem 1.375rem; display: grid; gap: 0.25rem; align-content: start; }
.kpi .ico { width: 1.375rem; height: 1.375rem; color: var(--lime); margin-bottom: 0.375rem; }
.kpi b { font: 700 2.125rem/1.05 var(--display); }
.kpi > span { color: var(--muted); font-size: 0.875rem; }
.kpi small { color: var(--mint); font-size: 0.8125rem; font-weight: 600; }
.starter { padding: 1.5rem; margin-bottom: 1.625rem; display: grid; gap: 1rem; }
.starter-head { display: flex; align-items: center; justify-content: space-between; gap: 0.875rem; flex-wrap: wrap; }
.starter-head h2 { font: 600 1.25rem var(--display); }
.meter { height: 0.5rem; border-radius: 0.25rem; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 0.25rem; background: var(--grad); transition: width 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.starter ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.625rem; }
.starter ol > li { border-radius: 0.875rem; border: 1px solid var(--line); font-weight: 600; font-size: 0.9375rem; color: var(--muted); transition: border-color 0.2s, background 0.2s, color 0.2s; }
.starter li > * { display: flex; align-items: center; gap: 0.625rem; width: 100%; padding: 0.75rem 0.875rem; border: 0; background: none; font: inherit; color: inherit; text-align: start; text-decoration: none; }
.starter li:not(.done):has(a, button):hover { border-color: var(--lime); color: var(--text); }
.starter li i { display: grid; place-items: center; flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 2px solid var(--line-2); }
.starter li i .ico { width: 0.875rem; height: 0.875rem; stroke-width: 3; opacity: 0; }
.starter li.done { color: var(--text); border-color: rgba(200, 255, 46, 0.3); background: rgba(200, 255, 46, 0.05); }
.starter li.done i { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.starter li.done i .ico { opacity: 1; }
.section-title { font: 600 1.375rem var(--display); margin: 0.375rem 0 1rem; }

/* Help Center: a quiet index, section cards like the settings page, and a wide article with its section beside it. */
.help-layout { display: grid; grid-template-columns: 16.25rem minmax(0, 1fr); gap: 1.125rem; align-items: start; }
.help-side { position: sticky; top: calc(var(--sup-h, 0px) + 1rem); display: grid; gap: 0.875rem; max-height: calc(100vh - var(--sup-h, 0px) - 2.25rem); overflow: auto; padding: 1rem; }
.help-search span { display: inline-flex; align-items: center; gap: 0.5rem; }
.help-search span .ico { width: 1.125rem; height: 1.125rem; color: var(--muted); }
.help-toc { display: grid; gap: 2px; }
.help-toc-sec { display: flex; align-items: center; gap: 0.5rem; padding: 0.4375rem 0.5rem; border-radius: 0.625rem; color: var(--text); font: 700 0.9063rem var(--display); text-decoration: none; }
.help-toc-sec .ico { width: 1rem; height: 1rem; color: var(--lime); flex: none; }
.help-toc-sec:hover, .help-toc-sec.on { background: rgba(200, 255, 46, 0.12); }
.help-toc-group ul { display: none; list-style: none; margin: 0; padding: 0 0 0.375rem; }
.help-toc-group.open ul { display: grid; }
.help-toc-group li a { display: block; padding: 0.3125rem 0.5rem 0.3125rem 2rem; border-radius: 0.5rem; color: var(--muted); font-size: 0.8438rem; text-decoration: none; }
.help-toc-group li a:hover, .help-toc-group li a.on { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.help-more { font-size: 0.8125rem; margin: 0; }
.help-main { display: grid; gap: 0.875rem; align-content: start; min-width: 0; }
.help-hero { padding: 1.125rem 1.375rem; display: grid; gap: 0.375rem; }
.help-hero .h3 { margin: 0; font-size: clamp(1.625rem, 2.4vw, 2.125rem); text-align: start; }
.help-hero .kicker { width: fit-content; }
.help-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.help-group { padding: 1rem 1rem 0.375rem; scroll-margin-top: 1rem; }
.help-group h2 { margin-bottom: 0.25rem; }
.help-links { list-style: none; margin: 0; padding: 0; display: grid; }
.help-links a { display: grid; gap: 2px; padding: 0.5rem 2px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.help-links a:hover b { color: var(--lime); }
.help-links b { font-size: 0.9375rem; }
.help-links span { color: var(--muted); font-size: 0.8125rem; line-height: 1.35; }
.help-stage { display: grid; grid-template-columns: minmax(0, 1fr) 17.5rem; gap: 1rem; align-items: start; }
.help-stage:not(:has(.help-article:not([hidden]))) { display: none; }
.help-reader { min-width: 0; }
.help-reader.is-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.875rem; }
.help-reader.is-results ~ .help-related { display: none; }
.help-stage:has(.help-reader.is-results) { grid-template-columns: 1fr; }
.help-article { width: 100%; padding: 1.375rem 1.625rem 1.625rem; }
.help-kicker { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.5rem; color: var(--lime); font-size: 0.8125rem; font-weight: 700; }
.help-kicker .ico { width: 1rem; height: 1rem; }
.help-article-head h2 { font: 700 1.75rem/1.2 var(--display); margin: 0 0 0.375rem; }
.help-sum { margin: 0; font-size: 0.9688rem; }
.help-body { display: grid; gap: 0.875rem; margin-top: 1rem; font-size: 1.0313rem; line-height: 1.6; color: #d6d6e3; }
.help-body .callout { margin: 0; }
.callout.warn { border-color: rgba(255, 163, 102, 0.45); background: rgba(255, 163, 102, 0.08); }
.callout.warn > .ico { color: #ffb17a; }
.help-h3 { font: 600 1.125rem var(--display); margin: 0.25rem 0 0; color: var(--text); }
.help-list { margin: 0; }
.help-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; }
.help-steps > li { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.75rem 0.875rem; border-radius: 0.875rem; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.help-step-n { flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--lime-ink); font: 800 0.875rem var(--display); }
.help-go { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.help-related { position: sticky; top: 1rem; padding: 1rem; }
.help-related h2 { margin-bottom: 0.5rem; }
.help-related .help-links a { padding: 0.5rem 2px; font-weight: 600; }
.help-related .help-links li.on a { color: var(--lime); }
@media (max-width: 1180px) {
  .help-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-steps { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .help-layout, .help-stage, .help-reader.is-results { grid-template-columns: 1fr; }
  .help-side { position: static; max-height: 15rem; order: 2; }
  .help-main { order: 1; }
  .help-related { position: static; }
}
@media (max-width: 640px) {
  .help-overview { grid-template-columns: 1fr; }
  .help-article { padding: 1rem; }
}

/* Account */
.account { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.125rem; align-items: start; }
.account-col { display: grid; gap: 1.125rem; min-width: 0; }
.usage { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.625rem; }
.usage div { padding: 0.875rem; border-radius: 0.875rem; background: rgba(255, 255, 255, 0.04); }
.usage b { display: block; font: 700 1.625rem/1.1 var(--display); }
.usage span { color: var(--muted); font-size: 0.875rem; }
.plan-badge { display: inline-flex; align-items: center; gap: 0.5rem; width: fit-content; padding: 0.375rem 0.875rem; border-radius: 62.4375rem; background: rgba(138, 107, 255, 0.18); border: 1px solid rgba(138, 107, 255, 0.4); font-weight: 700; }

/* Admin */
.kpi-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.875rem; margin-bottom: 1.125rem; }
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.125rem; }
.chart { padding: 1.375rem; display: grid; gap: 0.875rem; }
.chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.625rem; }
.chart-head b { font: 600 1.0625rem var(--display); }
.chart-head span { color: var(--muted); font-size: 0.8125rem; }
.bars { display: flex; align-items: flex-end; gap: 0.375rem; height: 8.125rem; direction: ltr; }
.bars i { flex: 1; min-height: 0.1875rem; border-radius: 0.3125rem 0.3125rem 2px 2px; background: linear-gradient(var(--lime), rgba(200, 255, 46, 0.25)); transform-origin: bottom; animation: grow 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--n) * 30ms); }
.bars i.zero { background: var(--line); }
.bars i:hover { filter: brightness(1.3); }
@keyframes grow { from { transform: scaleY(0); } }
.dtable-wrap { overflow-x: auto; }
.dtable { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.dtable th { text-align: start; padding: 0.75rem 1rem; color: var(--muted); font-weight: 600; font-size: 0.8125rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dtable td { padding: 0.8125rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dtable tbody tr:last-child td { border-bottom: 0; }
.dtable tbody tr:hover td { background: rgba(255, 255, 255, 0.03); }
.dtable .muted { font-size: 0.8125rem; }
.dtable .num-cell { font-variant-numeric: tabular-nums; white-space: nowrap; }
.dtable .actions { display: flex; gap: 0.375rem; justify-content: flex-end; }
/* On a wide screen a row's actions stay on one line; on a narrower one they fold. */
@media (max-width: 1500px) { .dtable .actions { flex-wrap: wrap; } }
.who-cell { display: flex; align-items: center; gap: 0.625rem; min-width: 0; }
.who-cell b, .who-cell small { display: block; white-space: nowrap; }
.who-cell b .muted { font-weight: 400; }
.who-cell small { text-align: start; }
.who-cell small { color: var(--muted); }
.tagp { display: inline-flex; padding: 2px 0.625rem; border-radius: 62.4375rem; font-size: 0.75rem; font-weight: 700; background: rgba(255, 255, 255, 0.08); }
.tagp.ok { background: rgba(92, 242, 182, 0.15); color: var(--mint); }
.tagp.warn { background: rgba(255, 178, 36, 0.16); color: var(--amber); }
.tagp.bad { background: rgba(255, 93, 93, 0.15); color: var(--red); }
.tagp.lime { background: rgba(200, 255, 46, 0.14); color: var(--lime); }
.tagp { align-items: center; gap: 0.3125rem; white-space: nowrap; }
.tagp svg { width: 0.8125rem; height: 0.8125rem; flex: none; }
.chips-row.kinds { margin-bottom: 0.625rem; }
.chips-row.kinds .chip small { margin-inline-start: 0.4375rem; opacity: 0.7; font-weight: 700; }
.roles-note { margin: 0 2px 0.875rem; font-size: 0.875rem; }
.msg { padding: 1.25rem 1.375rem; display: grid; gap: 0.625rem; margin-bottom: 0.75rem; }
.msg.done { opacity: 0.55; }
.msg p { white-space: pre-wrap; overflow-wrap: anywhere; }
.sys { display: grid; grid-template-columns: repeat(auto-fill, minmax(16.25rem, 1fr)); gap: 0.875rem; }
.sys .kpi b { font-size: 1.5rem; }
/* Global settings fill the same width as the system cards and the statistics charts. */
.admin-settings { display: grid; grid-template-columns: minmax(16.25rem, 21.25rem) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (min-width: 1600px) {
  .admin-settings { grid-template-columns: minmax(12.5rem, 15rem) minmax(40rem, 1.6fr) minmax(16.25rem, 20rem); }
}
/* One four-column grid: each slider spans two columns, each number or switch takes one. */
.face-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.875rem 1rem; align-items: start; }
.face-grid > .tune { grid-column: span 2; }
.face-cell { display: grid; gap: 0.25rem; align-content: start; min-width: 0; }
.face-cell > span { font-weight: 600; font-size: 0.9375rem; }
.face-cell > small { color: var(--muted); font-weight: 400; font-size: 0.8125rem; line-height: 1.35; }
#face-settings, #face-settings details { height: auto; max-height: none; overflow: visible; }
#face-settings details > .face-grid { margin-top: 0.875rem; }
#face-settings > .row.end { margin-top: 2px; }
.admin-settings .num-inline { display: flex; align-items: center; gap: 0.5rem; }
.admin-settings .num-inline input { width: 6rem; min-height: 2.5rem; padding: 0.375rem 0.625rem; text-align: center; }
.admin-settings .num-inline .unit { color: var(--muted); font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.admin-settings .tune { display: grid; gap: 0.375rem; min-width: 0; }
.admin-settings .tune > span { font-weight: 600; font-size: 0.9375rem; }
.admin-settings .tune > small { margin-top: -2px; }
.admin-settings .sig-range { display: grid; grid-template-columns: 6em minmax(0, 1fr) 3.6em 6em; align-items: center; gap: 0.5rem; }
.admin-settings .sig-range small { color: var(--muted); font-weight: 600; font-size: 0.8125rem; white-space: nowrap; text-align: center; }
.admin-settings .sig-range input[type='range'] { min-height: 0; width: 100%; min-width: 7.5rem; }
.admin-settings .sig-range-says { min-width: 0; text-align: end; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) {
  .face-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .admin-settings, .face-grid { grid-template-columns: 1fr; }
  .face-grid > .tune { grid-column: auto; }
  .admin-settings .sig-range { grid-template-columns: 4.6em minmax(0, 1fr) 3.2em 4.6em; }
}
.assist-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 0.875rem; }
.assist-span { grid-column: 1 / -1; }
.assist-tools { display: grid; gap: 0.5rem; }
.assist-tool { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.assist-tool small { color: var(--muted); font-weight: 500; margin-inline-start: auto; }
.assist-use { display: flex; flex-wrap: wrap; gap: 0.5rem 0.875rem; align-items: baseline; }
.assist-people { display: grid; gap: 0.5rem; }
.assist-people > div { display: flex; flex-wrap: wrap; gap: 0.375rem 0.75rem; align-items: baseline; }
#assistant-settings .callout { margin-top: 0.25rem; }
#assistant-settings textarea { min-height: 4.5rem; width: 100%; }
.assist-fold-btn { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: 2.25rem; padding: 0.25rem 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; cursor: pointer; text-align: start; }
.assist-fold-btn::after { content: ''; width: 0.5rem; height: 0.5rem; border-inline-end: 2px solid currentColor; border-block-end: 2px solid currentColor; transform: rotate(45deg); opacity: 0.7; }
.assist-fold-btn[aria-expanded='true']::after { transform: rotate(-135deg); }
.assist-fold { display: grid; gap: 0.625rem; padding: 0.25rem 0 0.5rem; }
.assist-fold[hidden] { display: none; }
.assistant-dock { position: fixed; z-index: 36; inset-inline-end: 1.125rem; inset-block-end: 1.125rem; display: flex; flex-direction: column; align-items: flex-end; gap: 0.625rem; max-width: min(26.25rem, calc(100vw - 1.5rem)); }
.assistant-panel { width: min(25rem, calc(100vw - 1.5rem)); max-height: min(40rem, calc(100dvh - 6rem)); display: flex; flex-direction: column; gap: 0.625rem; padding: 0.875rem; margin: 0; background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; }
.assistant-head { display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
.assistant-head b { display: flex; align-items: center; gap: 0.375rem; }
.assistant-titleline, .assistant-subline { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.assistant-subline small { flex: 1; min-width: 0; }
.assistant-head .assistant-min, .assistant-head .assistant-clear { padding: 0; flex: none; }
.assistant-head .assistant-min { width: 2.25rem; height: 2.25rem; }
.assistant-head .assistant-min .ico { width: 1.5rem; height: 1.5rem; stroke-width: 0.1875rem; }
.assistant-head .assistant-clear { width: 2rem; height: 2rem; }
.assistant-head .assistant-clear .ico { width: 0.875rem; height: 0.875rem; }
.assistant-head .assistant-min:focus-visible, .assistant-head .assistant-clear:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.assistant-log { display: flex; flex-direction: column; gap: 0.5rem; overflow: auto; flex: 1 1 auto; min-height: 0; max-height: 20rem; }
.assistant-msg { display: grid; gap: 2px; padding: 0.5rem 0.625rem; border-radius: 0.75rem; background: rgba(255, 255, 255, 0.05); }
.assistant-msg.user { background: rgba(200, 255, 46, 0.1); }
.assistant-msg small { color: var(--muted); font-weight: 700; }
.assistant-msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.assistant-pending { flex: none; min-height: 0; }
.assistant-card {
  display: grid; gap: 0.5rem; padding: 0.75rem 0.75rem 0.625rem; border-radius: 1rem;
  border: 1px solid rgba(200, 255, 46, 0.38);
  background: linear-gradient(180deg, rgba(200, 255, 46, 0.1), transparent 46%), var(--card-2);
  box-shadow: 0 1rem 2.25rem -1.5rem rgba(0, 0, 0, 0.9);
}
.assistant-card:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.assistant-card-title { display: flex; align-items: flex-start; gap: 0.5rem; }
.assistant-card-title .ico { color: var(--lime); margin-top: 2px; }
.assistant-card-title b { font: 700 1rem/1.35 var(--display); }
.assistant-card > .muted { font-size: 0.8125rem; }
.assistant-block { display: grid; gap: 0.25rem; }
.assistant-kicker { color: var(--muted); font-weight: 800; font-size: 0.75rem; }
.assistant-kicker.heed { color: var(--red); }
.assistant-card.settled { border-color: var(--line-2); background: var(--card-2); }
.assistant-changes, .assistant-stays { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.375rem; }
.assistant-change { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.5rem; font-size: 0.875rem; }
.assistant-change .lbl { font-weight: 700; flex: 1 1 100%; }
.assistant-change .from { color: var(--muted); text-decoration: line-through; }
.assistant-change .to { color: var(--lime); font-weight: 800; }
.assistant-arrow::before { content: '←'; color: var(--muted); font-weight: 700; }
[dir='ltr'] .assistant-arrow::before { content: '→'; }
.assistant-stays li { color: var(--muted); font-size: 0.8125rem; line-height: 1.45; }
.assistant-card-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.assistant-card-actions .btn { flex: 1 1 calc(50% - 0.5rem); justify-content: center; }
.assistant-card-actions .assistant-otherwise { flex: 1 1 100%; }
.assistant-card .btn:active:not(:disabled),
.assistant-card .btn.is-down:not(:disabled) { transform: scale(0.96); filter: brightness(0.92); }
.assistant-result { margin: 0; align-self: flex-start; padding: 0.25rem 0.625rem; border-radius: 62.4375rem; font-size: 0.8125rem; font-weight: 800; }
.assistant-result.ok { background: rgba(200, 255, 46, 0.16); color: var(--lime); }
.assistant-result.no { background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.setting-fresh { border-radius: 0.75rem; animation: setting-fresh 2.4s var(--ease-out) both; }
.setting-fresh input, .setting-fresh select { border-color: var(--lime); box-shadow: 0 0 0 0.1875rem rgba(200, 255, 46, 0.28); }
@keyframes setting-fresh {
  0%, 55% { background-color: rgba(200, 255, 46, 0.24); box-shadow: inset 0 0 0 2px rgba(200, 255, 46, 0.55); }
  100% { background-color: transparent; box-shadow: inset 0 0 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .setting-fresh { outline: 2px solid var(--lime); outline-offset: 2px; }
}
.assistant-pending.busy .btn.primary:disabled { cursor: wait; }
.assistant-pending.busy .btn.primary:disabled .ico { animation: spin 0.8s linear infinite; }
.assistant-pending.note { min-height: 2.75rem; padding: 0.625rem; border-radius: 0.75rem; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.04); }
.assistant-pending.note p { margin: 0; font-size: 0.875rem; line-height: 1.45; }
.assistant-dock [hidden] { display: none; }
.assistant-form { display: flex; gap: 0.5rem; align-items: flex-end; }
.assistant-input { flex: 1; min-height: 2.75rem; resize: vertical; }
@media (max-width: 800px) {
  .assist-grid { grid-template-columns: 1fr; }
  .assistant-dock { inset-inline-end: 0.625rem; inset-block-end: 0.625rem; }
  .assistant-panel { max-height: min(70dvh, calc(100dvh - 5.5rem)); }
  .assistant-log { min-height: 0; max-height: 34dvh; }
}
.secret { font: 700 1.625rem ui-monospace, monospace; letter-spacing: 0.04em; padding: 1rem; border-radius: 0.875rem; background: rgba(0, 0, 0, 0.4); border: 1px dashed var(--line-2); text-align: center; user-select: all; direction: ltr; }

/* A burst of confetti when a guest sends a magnet to print */
.confetti { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: 50%; left: 50%; width: 0.625rem; height: 0.875rem; border-radius: 2px; animation: confetti 1.3s cubic-bezier(0.1, 0.6, 0.3, 1) forwards; }
@keyframes confetti { to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }
.modal, .kmodal { animation: modal-in 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.1); }
@keyframes modal-in { from { opacity: 0; transform: translateY(0.875rem) scale(0.97); } }

/* ---------- Finishing touches ---------- */
::selection { background: var(--lime); color: var(--lime-ink); }
html { scrollbar-color: var(--line-2) transparent; }

/* A slim strip above the menu with the launch offer */
.announce { display: flex; align-items: center; justify-content: center; gap: 0.625rem 0.875rem; flex-wrap: wrap; padding: 0.5625rem 1rem; text-decoration: none; font-size: 0.9375rem; text-align: center; background: linear-gradient(90deg, rgba(138, 107, 255, 0.22), rgba(200, 255, 46, 0.12), rgba(255, 92, 147, 0.2)); border-bottom: 1px solid var(--line); margin-bottom: 0.875rem; }
.announce b { padding: 2px 0.6875rem; border-radius: 62.4375rem; background: var(--lime); color: var(--lime-ink); font-size: 0.8125rem; font-weight: 800; }
.announce em { display: inline-flex; align-items: center; gap: 0.25rem; font-style: normal; font-weight: 700; color: var(--lime); }
.announce em .ico { width: 1rem; height: 1rem; transition: translate 0.2s ease; }
.announce:hover em .ico { translate: 0.25rem 0; }
[dir='rtl'] .announce:hover em .ico { translate: -0.25rem 0; }
/* Before the launch: the bar says the site is a preview and the sign-up is not open yet. */
.announce.preview { background: linear-gradient(90deg, rgba(255, 178, 36, 0.24), rgba(255, 92, 147, 0.14)); }
.announce.preview b { background: var(--amber); color: #16161f; }
.announce.preview em { color: var(--amber); }
.auth-closed { display: grid; gap: 0.875rem; }
/* A form's field no person sees (bots fill it); and Cloudflare's widget, which is as wide as the form. */
.hp { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); opacity: 0; pointer-events: none; }
.cf-turnstile { min-height: 4.0625rem; }
.site-switch .switch-row { width: 100%; }
.calc-slider + .calc-slider { margin-top: 0.625rem; }
.calc-out em { display: none; font-style: normal; color: var(--lime); font-weight: 700; font-size: 0.8125rem; }
.calc-out .cheaper em { display: block; }

.nav-links a[aria-current] { color: var(--text); }
.nav-links a[aria-current]::after { transform: scaleX(1); }
.nav-sheet a[aria-current] { color: var(--lime); }
@media (min-width: 1001px) { .nav-sheet { display: none; } }

.float { transition: transform 0.35s ease-out; }
.btn.magnetic { transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, translate 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
/* A streak of light crosses the main button when the pointer arrives. */
.btn.primary { position: relative; overflow: hidden; }
.btn.primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.6) 50%, transparent 65%); transform: translateX(-130%); pointer-events: none; }
.btn.primary:hover:not(:disabled)::after { transform: translateX(130%); transition: transform 0.65s ease; }

.flow[data-step='0'] .sheet-out { opacity: 0; transition: none; }
.flow[data-step='0'] .sheet-out .sheet { transition: none; }
.flow-steps li { cursor: pointer; }

.fx-count { color: var(--muted); font-weight: 600; margin-top: -0.5rem; }
.fx-count b { color: var(--lime); font: 700 1.25rem var(--display); }
.fx-item.pop { animation: pop-in 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--n, 0) * 22ms); }
@keyframes pop-in { from { opacity: 0; transform: scale(0.92) translateY(0.75rem); } }

/* Answers open and close smoothly where the browser can animate to a natural height. */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  :is(.faq, .conn-more, .size-pick, .faces-advanced)::details-content { block-size: 0; overflow: hidden; transition: block-size var(--move) var(--ease-out), content-visibility var(--move) allow-discrete; }
  :is(.faq, .conn-more, .size-pick, .faces-advanced)[open]::details-content { block-size: auto; }
}
.faq { transition: border-color 0.2s; }
.faq:hover, .faq[open] { border-color: var(--line-2); }

/* Placeholders while a page fetches its numbers */
.skeleton { position: relative; overflow: hidden; border-radius: var(--radius); background: rgba(255, 255, 255, 0.04); min-height: 6.5rem; }
.skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.07) 50%, transparent 70%); animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------- Tablet and guest galleries ---------- */
.is-kiosk, .is-guest { background: var(--bg); }
.is-guest #app { max-width: 62.5rem; margin: 0 auto; padding-bottom: 6.5rem; }
/* The event's name over the photos: frosted, with a line of the brand's colours under it */
.kbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; padding: 0.875rem 1.125rem; background: rgba(8, 8, 14, 0.76); backdrop-filter: blur(1.125rem) saturate(1.4); }
.kbar::after { content: ''; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--lime) 22%, var(--mint) 50%, var(--violet) 78%, transparent); opacity: 0.6; }
.kbar-title { min-width: 0; }
.kbar-title h1 { font: 700 clamp(1.375rem, 3.6vw, 2.125rem)/1.12 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
.kbar .sub { color: var(--muted); font-size: clamp(0.875rem, 2vw, 1.0625rem); margin-top: 2px; }
.is-kiosk .kbar { padding: 1rem 1.375rem; }
.is-kiosk .kbar .btn { padding: 0.75rem 1.25rem; font-size: 1.0625rem; }
.is-guest .kbar { padding: 1.125rem 1rem 0.875rem; }
.is-guest .kbar-title h1 { font-size: clamp(1.6875rem, 8.4vw, 2.625rem); background: linear-gradient(100deg, #fff 35%, var(--lime) 130%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pill.soft { font-size: 0.8125rem; padding: 0.3125rem 0.75rem; background: rgba(255, 178, 36, 0.08); }

/* The people in the photos, as a row of faces to tap */
.people-strip.public { display: grid; gap: 0.625rem; padding: 0.875rem 0.875rem 2px; overflow: visible; }
.chips-scroll { display: flex; gap: 0.75rem; overflow-x: auto; padding: 0.3125rem 0.25rem 0.625rem; scrollbar-width: none; scroll-snap-type: x proximity; }
.chips-scroll::-webkit-scrollbar { display: none; }
.people-strip.public .person-chip, [dir='rtl'] .people-strip.public .person-chip { flex-direction: column; gap: 0.375rem; width: 4.25rem; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; white-space: normal; font-size: 0.7813rem; line-height: 1.2; scroll-snap-align: start; }
.people-strip.public .person-chip span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people-strip.public .person-chip .avatar.sm, .people-strip.public .person-chip.all .ico { width: 3.875rem; height: 3.875rem; border-radius: 50%; border: 2px solid var(--bg); box-shadow: 0 0 0 2px var(--line-2); transition: box-shadow 0.2s, transform 0.2s; }
.people-strip.public .person-chip.all .ico { padding: 1.125rem; background: rgba(255, 255, 255, 0.06); }
.people-strip.public .person-chip.on { color: var(--lime); background: none; }
.people-strip.public .person-chip.on .avatar.sm { box-shadow: 0 0 0 0.1875rem var(--lime), 0 0 1.375rem -2px rgba(200, 255, 46, 0.7); transform: scale(1.04); }
.people-strip.public .person-chip.all.on .ico { background: var(--lime); color: var(--lime-ink); box-shadow: 0 0 1.375rem -2px rgba(200, 255, 46, 0.7); }
.is-kiosk .people-strip.public .person-chip { width: 5.375rem; font-size: 0.9063rem; }
.is-kiosk .people-strip.public .person-chip .avatar.sm, .is-kiosk .people-strip.public .person-chip.all .ico { width: 4.875rem; height: 4.875rem; }
.is-kiosk .people-strip.public .person-chip.all .ico { padding: 1.4375rem; }

/* The photos, each tile as wide as its photo is: rows of one height, upright and lying side by side */
.kgrid { --row: clamp(9.375rem, 19vw, 16.25rem); display: flex; flex-wrap: wrap; gap: 0.625rem; padding: 0.875rem; }
/* Takes up what is left of the last row, so its photos are not stretched across it. */
.kgrid::after { content: ''; flex-grow: 1000000; }
.kgrid .photo { flex: var(--ar, 1) 1 calc(var(--ar, 1) * var(--row)); height: var(--row); aspect-ratio: auto; border-radius: 1rem; background: linear-gradient(110deg, var(--card-2) 35%, #26263a 50%, var(--card-2) 65%) 0 0 / 240% 100%; animation: kwait 1.5s linear infinite; box-shadow: 0 0.75rem 1.5rem -1rem #000; transition: transform 0.2s, box-shadow 0.2s; -webkit-tap-highlight-color: transparent; }
@keyframes kwait { to { background-position: -240% 0; } }
.kgrid .photo:has(img.in) { animation: none; background: var(--card-2); }
.kgrid .photo img { opacity: 0; transition: opacity 0.35s, transform 0.3s; }
.kgrid .photo img.in { opacity: 1; }
.kgrid .photo:active { transform: scale(0.97); }
@media (hover: hover) { .kgrid .photo:hover { transform: translateY(-3px); box-shadow: 0 20px 34px -16px #000; } }
.kgrid .photo.new { animation: pop 0.5s ease; box-shadow: 0 0 0 2px var(--lime), 0 0 1.875rem -0.25rem rgba(200, 255, 46, 0.65); }
.kgrid .photo .tag.ai { top: 0.5rem; bottom: auto; inset-inline: auto 0.5rem; padding: 0.375rem; border-radius: 50%; }
.kgrid .photo .tag.ai .ico { width: 0.875rem; height: 0.875rem; }
.is-guest .kgrid { --row: clamp(6.5rem, 30vw, 12.5rem); gap: 0.375rem; padding: 0.5rem; }
.is-guest .kgrid .photo { border-radius: 0.75rem; }
.kempty { min-height: 56vh; display: grid; place-content: center; justify-items: center; gap: 0.875rem; text-align: center; color: var(--muted); font-size: 1.1875rem; padding: 1.5rem; }
.kempty-ico { display: grid; place-items: center; width: 5.25rem; height: 5.25rem; border-radius: 50%; color: var(--lime); background: rgba(200, 255, 46, 0.07); border: 1px solid rgba(200, 255, 46, 0.22); }
.kempty-ico .ico { width: 2.25rem; height: 2.25rem; }

/* One photo, opened: the magnet as it will come out, a little crooked, as on a fridge */
.kmodal { width: min(40rem, 100%); max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); overflow: auto; padding: 1.125rem; display: grid; gap: 0.75rem; border-radius: 1.625rem; background: linear-gradient(180deg, #181826, var(--card)); box-shadow: var(--shadow); }
.kmodal .shot { display: grid; place-items: center; padding: 0.625rem 0.375rem 0.375rem; }
.kmodal .shot img { max-height: 52vh; border-radius: 0.375rem; box-shadow: 0 2px 0.1875rem rgba(0, 0, 0, 0.5), 0 1.875rem 3.75rem -1.375rem #000; background: var(--card-2); transform: rotate(-1.2deg); }
.is-kiosk .kmodal .btn.lg { padding: 1.25rem; font-size: 1.3125rem; }
/* On a phone it comes up from the foot of the screen, like a sheet */
@media (max-width: 640px) {
  .overlay:has(> .kmodal) { align-items: end; padding: 0; }
  .kmodal { width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 1.625rem 1.625rem 0 0; padding: 0.625rem 1rem max(1.125rem, env(safe-area-inset-bottom)); animation: ksheet 0.32s cubic-bezier(0.2, 0.9, 0.3, 1); }
  .kmodal::before { content: ''; justify-self: center; width: 2.75rem; height: 0.3125rem; border-radius: 0.1875rem; background: var(--line-2); }
}
@keyframes ksheet { from { transform: translateY(38%); opacity: 0.4; } }

/* A guest's buttons, at the foot of the phone where the thumb is */
.gdock { position: fixed; z-index: 12; inset-inline: 0; bottom: max(0.875rem, env(safe-area-inset-bottom)); margin: 0 auto; width: fit-content; max-width: calc(100vw - 1.25rem); display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem; border-radius: 62.4375rem; background: rgba(16, 16, 26, 0.86); backdrop-filter: blur(1.125rem) saturate(1.4); border: 1px solid var(--line-2); box-shadow: 0 1.125rem 2.75rem -0.875rem #000; }
.gdock:not(:has(.btn:not([hidden]))) { display: none; }
.gdock .btn { padding: 0.75rem 1.125rem; font-size: 1rem; white-space: nowrap; }
.gdock .btn.ghost:not(.me-btn) { border-color: transparent; background: var(--lime); color: var(--lime-ink); box-shadow: 0 0.5rem 1.625rem -0.625rem rgba(200, 255, 46, 0.8); }
.gdock .me-btn { border-color: transparent; background: rgba(255, 255, 255, 0.08); max-width: 58vw; }
.guest-foot { text-align: center; color: var(--muted); font-size: 0.8125rem; padding: 1.625rem 1rem 1.25rem; }
.guest-foot a { color: var(--lime); text-decoration: none; font-weight: 700; }

/* ---------- The business's team ---------- */
.team { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(17.5rem, 1fr); gap: 1.375rem; align-items: start; }
.team-main { min-width: 0; }
.team-list { display: grid; gap: 0.625rem; margin-bottom: 1.625rem; }
.team-row { display: flex; align-items: center; gap: 0.875rem; padding: 0.75rem 1rem; border-radius: 1.125rem; flex-wrap: wrap; }
.team-row .grow { flex: 1 1 11.25rem; min-width: 0; display: grid; }
.team-row .grow b { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.team-row .grow small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
[dir='rtl'] .team-row .grow small[dir='ltr'], [dir='rtl'] .team-row .grow b[dir='ltr'] { text-align: right; }
.team-row .grow small.bad { color: var(--red); }
.team-seen { display: grid; color: var(--muted); font-size: 0.8438rem; }
.team-seen span { color: var(--text); }
.team-role { width: 8.25rem; }
.team-role select, .team-role .menu-face { min-height: 2.5rem; padding-block: 0.375rem; }
.team-gap { width: 2.5rem; }
.initials.dim { background: rgba(255, 255, 255, 0.08); color: var(--muted); }
.initials.dim .ico { width: 1.125rem; height: 1.125rem; }
.team-invite { position: sticky; top: 1.125rem; }
.secret.link { font-size: 0.875rem; word-break: break-all; user-select: all; }
.role-line { display: flex; align-items: center; gap: 0.625rem; flex-wrap: wrap; font-size: 0.875rem; }
.lock-note { display: inline-flex; align-items: center; gap: 0.375rem; color: var(--amber); font-weight: 600; font-size: 0.8438rem; }
.lock-note .ico { width: 1rem; height: 1rem; }
@media (max-width: 1000px) {
  .team { grid-template-columns: minmax(0, 1fr); }
  .team-invite { position: static; order: -1; }
}

/* ---------- A guest's own corner: who they are and where their magnets stand ---------- */
.avatar.xs { width: 1.5rem; height: 1.5rem; border-width: 0; }
.avatar.xl { width: 7.25rem; height: 7.25rem; border: 0.1875rem solid var(--lime); box-shadow: 0 0 0 0.375rem rgba(200, 255, 46, 0.12); }
.avatar.plain { display: grid; place-items: center; color: var(--lime); background: rgba(200, 255, 46, 0.08); }
.avatar.plain .ico { width: 46%; height: 46%; }
.me-modal { width: min(28.75rem, 100%); gap: 0.875rem; }
.me-head { display: grid; justify-items: center; gap: 0.5rem; text-align: center; padding-top: 0.375rem; }
.me-head h2 { font: 700 clamp(1.5rem, 4vw, 1.875rem)/1.15 var(--display); }
.name-form { display: grid; gap: 0.75rem; }
.name-form .field > span { text-align: center; font-size: 1.0625rem; }
.input.lg, .name-form input { min-height: 3.5rem; font-size: 1.25rem; text-align: center; }
.me-btn { position: relative; gap: 0.5rem; padding-inline: 0.5rem 0.875rem; max-width: 46vw; }
.me-btn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-btn > .ico { width: 1.25rem; height: 1.25rem; }
.me-btn .count { min-width: 1.375rem; height: 1.375rem; padding: 0 0.375rem; border-radius: 62.4375rem; background: var(--amber); color: #201400; font: 700 0.8125rem/1.375rem var(--display); text-align: center; }
.me-btn.has-ready { border-color: var(--mint); box-shadow: 0 0 0 0.1875rem rgba(92, 242, 182, 0.18); }
.me-btn.has-ready .count { background: var(--mint); color: #012b1b; animation: pulse 1.6s ease-in-out infinite; }
.mine-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 0.625rem 0.875rem 0; padding: 0.625rem 1rem; border-radius: 0.875rem; background: rgba(200, 255, 46, 0.08); border: 1px solid rgba(200, 255, 46, 0.3); font-weight: 600; }
.mine { display: grid; gap: 0.875rem; }
.mine-head { display: flex; align-items: center; gap: 0.875rem; }
.mine-head .grow { min-width: 0; }
.mine-head h2 { font: 700 1.5rem/1.2 var(--display); }
.mine-list { display: grid; gap: 0.5rem; }
.mine-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem; border-radius: 1rem; background: rgba(255, 255, 255, 0.04); border-inline-start: 0.25rem solid var(--line-2); }
.mine-item img { width: 3.5rem; height: 3.5rem; border-radius: 0.625rem; object-fit: cover; flex: none; }
.mine-item .grow { min-width: 0; display: grid; }
.mine-item b { font: 600 1.0625rem var(--display); }
.mine-item small, .mine-item time { color: var(--muted); font-size: 0.8438rem; }
.mine-item.pending { border-inline-start-color: var(--amber); }
.mine-item.pending b { color: var(--amber); }
.mine-item.approved, .mine-item.printing { border-inline-start-color: var(--lime); }
.mine-item.printing b { color: var(--lime); }
.mine-item.ready { border-inline-start-color: var(--mint); background: rgba(92, 242, 182, 0.1); }
.mine-item.ready b { color: var(--mint); }
.mine-item.rejected, .mine-item.problem { border-inline-start-color: var(--red); }
.mine-item.rejected b, .mine-item.problem b { color: var(--red); }
.mine-item.canceled { opacity: 0.6; }
.mine-empty { padding: 1.125rem 0.5rem; }
.notify-box { display: grid; gap: 0.625rem; padding: 0.875rem; border-radius: 1rem; background: rgba(138, 107, 255, 0.12); border: 1px solid rgba(138, 107, 255, 0.4); text-align: center; font-weight: 600; }

/* The code that opens the gallery on a guest's own phone */
.qr.big { width: min(18.75rem, 70vw); justify-self: center; padding: 0.75rem; border-radius: 1.125rem; }
.phone-code { display: grid; justify-items: center; gap: 0.625rem; text-align: center; font-weight: 600; }
.phone-corner { position: fixed; inset-block-end: 1rem; inset-inline-end: 1rem; z-index: 30; display: grid; justify-items: center; gap: 0.375rem; width: 9.25rem; padding: 0.625rem 0.625rem 0.5rem; border-radius: 1.125rem; border: 1px solid var(--line-2); background: rgba(18, 18, 28, 0.92); backdrop-filter: blur(0.625rem); box-shadow: var(--shadow); color: var(--text); font: 600 0.8438rem/1.25 var(--display); text-align: center; transition: transform 0.2s, border-color 0.2s; }
.phone-corner:hover { transform: translateY(-0.1875rem); border-color: var(--lime); }
.phone-corner img { width: 100%; padding: 0.375rem; border-radius: 0.625rem; background: #fff; }

/* ---------- The tablet that opens on its camera alone ----------
   One large button in the middle, breathing, with rings going out of it; colour drifting slowly
   behind; the event's name over it. The gallery's button and the gallery's code in the two corners. */
.cam-only { overflow: hidden; }
.cam-home { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(1.125rem, 4vh, 2.75rem); padding: 6vh 1.5rem 16vh; overflow: hidden; text-align: center; background: radial-gradient(120% 85% at 50% 0%, #17172c 0%, var(--bg) 62%); }
.cam-home h1 { position: relative; max-width: 22ch; font: 700 clamp(1.75rem, 5vw, 3.625rem)/1.08 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
.cam-hint { position: relative; color: var(--muted); font: 500 clamp(1.0625rem, 2.4vw, 1.5rem)/1.3 var(--display); }
.cam-glow { position: absolute; inset: 0; pointer-events: none; }
.cam-glow i { position: absolute; width: 58vmax; height: 58vmax; border-radius: 50%; filter: blur(5rem); opacity: 0.2; animation: drift 16s ease-in-out infinite alternate; }
.cam-glow i:nth-child(1) { top: -24vmax; inset-inline-start: -20vmax; background: var(--mint); }
.cam-glow i:nth-child(2) { bottom: -26vmax; inset-inline-end: -16vmax; background: var(--violet); animation-duration: 21s; animation-direction: alternate-reverse; }
.cam-glow i:nth-child(3) { bottom: -30vmax; inset-inline-start: 18vw; width: 40vmax; height: 40vmax; background: var(--pink); opacity: 0.16; animation-duration: 26s; }
.cam-shoot { --s: min(46vmin, 23.75rem); position: relative; display: grid; place-items: center; width: var(--s); height: var(--s); flex: none; padding: 0; border: 0; border-radius: 50%; background: var(--grad); color: var(--lime-ink); cursor: pointer; box-shadow: 0 0 0 clamp(0.5rem, 1.6vmin, 1rem) rgba(200, 255, 46, 0.1), 0 2.125rem 5.625rem -1.625rem rgba(92, 242, 182, 0.7), inset 0 -0.625rem 1.875rem rgba(0, 0, 0, 0.18), inset 0 0.625rem 1.5rem rgba(255, 255, 255, 0.35); animation: cam-breathe 3.4s ease-in-out infinite; -webkit-tap-highlight-color: transparent; }
.cam-shoot:active { animation: none; transform: scale(0.93); filter: brightness(1.12); }
.cam-shoot:focus-visible { outline: 0.25rem solid var(--text); outline-offset: 0.625rem; }
.cam-face { position: relative; display: grid; justify-items: center; gap: clamp(0.25rem, 1vmin, 0.625rem); }
.cam-face .ico { width: calc(var(--s) * 0.3); height: calc(var(--s) * 0.3); stroke-width: 1.7; }
.cam-face b { font: 700 calc(var(--s) * 0.1)/1 var(--display); letter-spacing: -0.01em; }
.cam-rings { position: absolute; inset: 0; pointer-events: none; }
.cam-rings i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(200, 255, 46, 0.6); opacity: 0; animation: cam-ripple 3s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; }
.cam-rings i:nth-child(2) { animation-delay: 1s; border-color: rgba(92, 242, 182, 0.55); }
.cam-rings i:nth-child(3) { animation-delay: 2s; border-color: rgba(138, 107, 255, 0.55); }
@keyframes cam-breathe { 50% { transform: scale(1.04); } }
@keyframes cam-ripple { 0% { transform: scale(1); opacity: 0.85; } 100% { transform: scale(1.65); opacity: 0; } }
.cam-gallery { position: fixed; inset-block-end: 1rem; inset-inline-start: 1rem; z-index: 21; min-height: 3.5rem; padding: 0.75rem 1.375rem; border-color: var(--line-2); background: rgba(18, 18, 28, 0.92); backdrop-filter: blur(0.625rem); box-shadow: var(--shadow); color: var(--text); font: 600 1.0625rem/1.2 var(--display); }
.cam-gallery .ico { width: 1.375rem; height: 1.375rem; color: var(--lime); }
.cam-gallery:hover { border-color: var(--lime); }
@media (prefers-reduced-motion: reduce) { .cam-shoot, .cam-rings i, .cam-glow i { animation: none; } }
.who { font-weight: 700; color: var(--text); }
.board-link { margin: -0.375rem 0 0.875rem; }
/* The queue in three stages, as on the queue screen: on the printer, in line, finished */
.lanes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.25rem 1.25rem; align-items: start; }
.lane { display: grid; gap: 0.5rem; min-width: 0; margin-bottom: 0.875rem; }
.lane .list-title small { margin-inline-start: 0.5rem; padding: 1px 0.5625rem; border-radius: 62.4375rem; background: rgba(255, 255, 255, 0.08); color: var(--muted); font-size: 0.8125rem; font-weight: 700; }
.lane-more { margin: 0; padding: 0.25rem 0.75rem; color: var(--muted); font-size: 0.875rem; text-align: center; }
.lane-note { margin: 0 0 2px; color: var(--muted); font-size: 0.875rem; }
.lane.problems .line-item { flex-wrap: wrap; }
.line-item.problem { border-color: rgba(255, 107, 107, 0.45); background: linear-gradient(100deg, rgba(255, 107, 107, 0.1), rgba(255, 107, 107, 0.02)); }
.lane-empty { padding: 1.375rem 0.75rem; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); color: var(--muted); text-align: center; font-size: 0.9375rem; }
.lane .list-title { margin: 0.625rem 0 2px; }
.lane .line-item { margin-bottom: 0; }
.lanes .line-item { flex-wrap: wrap; }

/* ---------- The queue screen at the stand, read from across the room ---------- */
.is-board { background: var(--bg); overflow: hidden; }
.board { height: 100vh; height: 100dvh; display: grid; grid-template: 'top top' auto 'hero next' minmax(0, 1.1fr) 'hero done' minmax(0, 1fr) 'foot foot' auto / minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(0.75rem, 1.5vw, 1.625rem); padding: clamp(0.875rem, 1.9vw, 2.125rem); }
.btop { grid-area: top; display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.875rem); min-width: 0; }
.btop .logo { font-size: clamp(1.125rem, 1.7vw, 1.875rem); }
.btop h1 { flex: 1; min-width: 0; font: 700 clamp(1.5rem, 3.2vw, 3.5rem)/1.1 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bstate { display: inline-flex; align-items: center; gap: 0.625rem; padding: 0.5em 1.1em; border-radius: 62.4375rem; border: 1px solid currentColor; font: 600 clamp(0.875rem, 1.4vw, 1.5rem) var(--display); white-space: nowrap; }
.bstate.printing { color: var(--lime); }
.bstate.idle { color: var(--mint); }
.bstate.stopped { color: var(--amber); }
.bstate.offline { color: var(--muted); }
.bstate:not(.printing) .dot { animation: none; }
.bstate.printing .dot { animation: pulse 1.1s ease-in-out infinite; }
.bfull { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--muted); opacity: 0.5; transition: opacity 0.2s; }
.bfull:hover { opacity: 1; }
.bfull .ico { width: 1.125rem; height: 1.125rem; }
:fullscreen .bfull { display: none; }
.bhero, .bcol { border: 1px solid var(--line); border-radius: clamp(1.125rem, 2vw, 2.25rem); background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)); min-height: 0; min-width: 0; }
.bhero { grid-area: hero; position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; justify-items: center; align-items: center; gap: clamp(0.5rem, 1.4vh, 1.25rem); padding: clamp(1rem, 2.2vw, 2.5rem); text-align: center; overflow: hidden; }
.bhero.printing { border-color: rgba(200, 255, 46, 0.45); background: radial-gradient(120% 90% at 50% 0%, rgba(200, 255, 46, 0.12), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)); }
.bhero.idle { grid-template-rows: none; align-content: center; background: radial-gradient(110% 80% at 50% 10%, rgba(138, 107, 255, 0.16), transparent 62%), linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)); }
.blabel { font: 600 clamp(1rem, 1.7vw, 1.875rem) var(--display); color: var(--lime); letter-spacing: 0.02em; }
/* The printer's slot: the sheet slides out from under it while it prints */
.bslot { position: relative; width: 100%; height: 100%; min-height: 0; display: grid; place-items: center; overflow: hidden; border-radius: 0.875rem; }
.bslot::before { content: ''; position: absolute; inset: 0 8% auto; height: 0.625rem; border-radius: 0 0 0.625rem 0.625rem; background: linear-gradient(180deg, #000, #1c1c28); box-shadow: 0 0.625rem 1.875rem 0.375rem rgba(200, 255, 46, 0.25); z-index: 2; }
.bfeed { display: flex; align-items: center; justify-content: center; gap: clamp(0.5rem, 1vw, 1.25rem); width: 100%; height: 100%; padding-top: 1.125rem; animation: feed 11s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.bfeed .bmag { max-height: 100%; max-width: 100%; min-width: 0; border-radius: 0.375rem; background: #fff; box-shadow: 0 1.875rem 4.375rem -1.5rem #000; }
.bfeed[data-magnets='2'] .bmag { max-width: calc(50% - 0.75rem); }
.bfeed[data-magnets='3'] .bmag { max-width: calc(33.3% - 0.875rem); }
@keyframes feed { from { transform: translateY(-78%); } to { transform: none; } }
.bwho { font: 600 clamp(1.125rem, 2.3vw, 2.625rem)/1.2 var(--display); min-height: 1.2em; text-wrap: balance; }
.bhero h2 { font: 700 clamp(1.875rem, 4.4vw, 4.875rem)/1.08 var(--display); text-wrap: balance; }
.bhero.idle .bwho { color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.875rem); font-weight: 500; max-width: 26ch; }
.bqr { width: clamp(10.625rem, 30vh, 23.75rem); padding: clamp(0.5rem, 1vw, 1rem); border-radius: clamp(0.875rem, 1.6vw, 1.625rem); background: #fff; box-shadow: 0 1.875rem 5rem -1.875rem rgba(138, 107, 255, 0.9); margin-bottom: clamp(0.375rem, 1.4vh, 1.125rem); }
.bidle-ico { display: grid; place-items: center; width: clamp(5.625rem, 14vh, 10.625rem); aspect-ratio: 1; border-radius: 50%; color: var(--lime); background: rgba(200, 255, 46, 0.08); }
.bidle-ico .ico { width: 46%; height: 46%; }
.bcol { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: clamp(0.5rem, 1.2vh, 1rem); padding: clamp(0.875rem, 1.6vw, 1.75rem); overflow: hidden; position: relative; }
.bcol.next { grid-area: next; }
.bcol.done { grid-area: done; }
.bcol h2 { display: flex; align-items: center; gap: 0.75rem; font: 600 clamp(1.0625rem, 1.7vw, 1.875rem) var(--display); }
.bcol.done h2 { color: var(--mint); }
.bcount:not(:empty) { min-width: 1.7em; padding: 0 0.5em; border-radius: 62.4375rem; background: var(--amber); color: #201400; font-size: 0.8em; line-height: 1.7; text-align: center; }
.blist { display: grid; align-content: start; gap: clamp(0.375rem, 0.9vh, 0.75rem); min-height: 0; overflow: hidden; }
/* The lists fade out at the bottom rather than cutting a row in half */
.bcol::after { content: ''; position: absolute; inset: auto 0 0; height: 2.875rem; background: linear-gradient(transparent, var(--bg)); pointer-events: none; border-radius: 0 0 clamp(1.125rem, 2vw, 2.25rem) clamp(1.125rem, 2vw, 2.25rem); }
.brow { display: flex; align-items: center; gap: clamp(0.625rem, 1vw, 1.125rem); padding: clamp(0.375rem, 0.8vh, 0.625rem) clamp(0.5rem, 0.8vw, 0.875rem); border-radius: 1rem; background: rgba(255, 255, 255, 0.045); border-inline-start: 0.25rem solid var(--line-2); animation: brow-in 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.1) both; }
@keyframes brow-in { from { opacity: 0; transform: translateY(1.125rem) scale(0.97); } }
.brow.printing { border-inline-start-color: var(--lime); background: rgba(200, 255, 46, 0.07); }
.bcol.done .brow { border-inline-start-color: var(--mint); }
.bcol.done .brow:first-child { background: rgba(92, 242, 182, 0.12); }
.bmags { display: flex; gap: 0.25rem; flex: none; }
.bmags .bmag { width: clamp(2.375rem, 3.3vw, 3.875rem); aspect-ratio: 3 / 4; object-fit: cover; border-radius: 0.5rem; background: var(--card-2); }
.binfo { display: grid; min-width: 0; }
.binfo b { font: 600 clamp(0.9375rem, 1.5vw, 1.625rem)/1.2 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.binfo small { color: var(--muted); font-size: clamp(0.75rem, 1.05vw, 1.125rem); }
.binfo small:empty { display: none; }
.bnone { align-self: center; text-align: center; color: var(--muted); font-size: clamp(0.875rem, 1.3vw, 1.375rem); }
.bfoot { grid-area: foot; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: clamp(2.5rem, 6vh, 6rem); }
.binvite { display: flex; align-items: center; gap: clamp(0.625rem, 1.2vw, 1.25rem); }
/* The guests' link is longer than it was, so its code has an eighth more squares a side; the two small codes are shown larger by as much. */
.binvite img { width: clamp(4.25rem, 10vh, 7.75rem); padding: 0.3125rem; border-radius: 0.75rem; background: #fff; }
.binvite div { display: grid; }
.binvite b { font: 700 clamp(1.0625rem, 1.8vw, 2rem) var(--display); }
.binvite span { color: var(--muted); font-size: clamp(0.8125rem, 1.2vw, 1.25rem); }
.btotal { display: flex; align-items: baseline; gap: 0.625rem; margin-inline-start: auto; color: var(--muted); font-size: clamp(0.875rem, 1.3vw, 1.375rem); }
.btotal b { font: 700 clamp(1.75rem, 3.4vw, 3.75rem)/1 var(--display); color: var(--lime); font-variant-numeric: tabular-nums; }
/* A screen standing up, or a phone: one column, and the page scrolls */
@media (max-width: 860px), (orientation: portrait) {
  .is-board { overflow: auto; }
  .board { height: auto; min-height: 100dvh; grid-template: 'top' auto 'hero' auto 'next' auto 'done' auto 'foot' auto / minmax(0, 1fr); }
  .btop { flex-wrap: wrap; }
  .btop h1 { flex-basis: 100%; order: 3; white-space: normal; }
  .bhero { min-height: 56vh; }
  .bhero.printing { height: 60vh; }
  .blist { overflow: visible; }
  .bcol::after { display: none; }
  .bfoot { flex-wrap: wrap; }
}

/* ---------- The magnet wall: every photo as its magnet, on a board for the guests ---------- */
.is-wall { background: #07070c; overflow: hidden; }
/* Not ".wall": that is the moving row of magnets on the home page. */
.mwall { position: fixed; inset: 0; overflow: hidden; user-select: none; -webkit-user-select: none; }
/* The board: dark brushed steel, lit from the corners */
.wsurface {
  position: absolute; inset: 0; touch-action: none; cursor: grab;
  background:
    radial-gradient(70% 55% at 86% 0%, rgba(138, 107, 255, 0.24), transparent 70%),
    radial-gradient(60% 50% at 6% 100%, rgba(200, 255, 46, 0.1), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 0.1875rem),
    linear-gradient(180deg, #15151f, #0b0b12 58%, #08080d);
}
.wsurface::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 92% at 50% 44%, transparent 56%, rgba(0, 0, 0, 0.6)); }
.wsurface.sliding { cursor: grabbing; }
.wworld { position: absolute; inset: 0; will-change: transform; }
.wcol { position: absolute; }
.wcol.far { content-visibility: hidden; }
/* One magnet. Where it hangs and how crooked comes from the script, as --dx, --dy and --r. */
.wmag { position: absolute; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 0.3125rem; transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r, 0deg)) scale(var(--s, 1)); transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3); -webkit-tap-highlight-color: transparent; }
.wmag:focus-visible { outline-offset: 0.3125rem; }
.wmag-in { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: #1c1c26; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.6), 0 0.1875rem 0.3125rem rgba(0, 0, 0, 0.4), 0 0.875rem 1.5rem -0.5rem rgba(0, 0, 0, 0.75); transition: box-shadow 0.25s; }
/* The sheen of the laminate */
.wmag-in::after, .wcard::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(122deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, 0.07)); }
.wph, .wfr, .wsharp, .wbk { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
/* Under a background of its own the photo lies in its window (its place set on the element), the backdrop under it */
.wmag-in.backed :is(.wph, .wbk), .wcard.backed :is(.wph, .wbk) { inset: auto; }
.wfr { object-fit: fill; }
@media (hover: hover) { .wmag:hover { --s: 1.05; z-index: 3; } }
.wmag.moved { z-index: 2; }
.wmag.held { --s: 1.12; z-index: 20; transition: none; cursor: grabbing; }
.wmag.held .wmag-in { box-shadow: 0 2px 2px rgba(0, 0, 0, 0.5), 0 2.25rem 3.375rem -0.625rem rgba(0, 0, 0, 0.9); }
.wmag.away { visibility: hidden; }
/* A new magnet is put up: it comes down onto the board, and a ring of light spreads from it */
.wmag.drop { z-index: 6; animation: wdrop 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes wdrop {
  0% { opacity: 0; transform: translate(var(--dx, 0px), calc(var(--dy, 0px) - 4.375rem)) rotate(calc(var(--r, 0deg) + 14deg)) scale(1.75); }
  55% { opacity: 1; transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(calc(var(--r, 0deg) - 3deg)) scale(0.95); }
  78% { transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(calc(var(--r, 0deg) + 1deg)) scale(1.03); }
  100% { transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r, 0deg)) scale(1); }
}
.wmag.drop::before { content: ''; position: absolute; inset: -0.5rem; border-radius: 0.6875rem; border: 2px solid var(--lime); pointer-events: none; animation: wring 1.5s 0.5s ease-out both; }
@keyframes wring { from { opacity: 0.95; transform: scale(0.92); } to { opacity: 0; transform: scale(1.4); } }
.wnew { position: absolute; top: -0.6875rem; inset-inline-start: -0.6875rem; z-index: 2; padding: 0.1875rem 0.6875rem; border-radius: 62.4375rem; background: var(--lime); color: var(--lime-ink); font: 700 0.8125rem/1.5 var(--display); box-shadow: 0 0.375rem 1.125rem -0.375rem rgba(200, 255, 46, 0.8); transform: rotate(calc(var(--r, 0deg) * -1)); }
/* One taken down lets go and falls */
.wmag.gone { pointer-events: none; animation: wfall 0.65s cubic-bezier(0.5, 0, 0.9, 0.4) forwards; }
@keyframes wfall { to { opacity: 0.2; transform: translate(var(--dx, 0px), calc(var(--dy, 0px) + 120vh)) rotate(calc(var(--r, 0deg) + 42deg)); } }
/* Now and then one gives a small shake */
.wmag.stir { animation: wstir 1.05s ease-in-out; }
@keyframes wstir {
  0%, 100% { transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r, 0deg)); }
  22% { transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(calc(var(--r, 0deg) + 3.5deg)) scale(1.035); }
  50% { transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(calc(var(--r, 0deg) - 2.6deg)) scale(1.035); }
  76% { transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(calc(var(--r, 0deg) + 1.2deg)); }
}
/* What lies over the board: the event's name, how many photos, the code for the gallery */
.wtop { position: absolute; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.875rem); padding: clamp(0.75rem, 1.5vw, 1.5rem) clamp(0.875rem, 2vw, 2.25rem) clamp(1.25rem, 2.8vw, 2.875rem); background: linear-gradient(180deg, rgba(7, 7, 12, 0.94), rgba(7, 7, 12, 0.62) 58%, transparent); pointer-events: none; }
.wtop > * { pointer-events: auto; }
.wtop .logo { font-size: clamp(1rem, 1.5vw, 1.625rem); }
.wtop h1 { flex: 1; min-width: 0; font: 700 clamp(1.375rem, 3vw, 3.25rem)/1.12 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 1.375rem rgba(0, 0, 0, 0.7); }
.wcount { font: 600 clamp(0.8125rem, 1.25vw, 1.375rem) var(--display); color: var(--lime); padding: 0.4em 1em; border-radius: 62.4375rem; border: 1px solid rgba(200, 255, 46, 0.4); background: rgba(8, 8, 14, 0.66); white-space: nowrap; }
.winvite { position: absolute; z-index: 30; inset-inline-start: clamp(0.75rem, 1.6vw, 1.75rem); bottom: clamp(0.75rem, 1.6vw, 1.75rem); display: flex; align-items: center; gap: clamp(0.625rem, 1.1vw, 1.125rem); padding: clamp(0.5rem, 0.8vw, 0.875rem); padding-inline-end: clamp(0.875rem, 1.4vw, 1.5rem); border-radius: clamp(1rem, 1.6vw, 1.625rem); background: rgba(12, 12, 20, 0.88); backdrop-filter: blur(0.875rem); border: 1px solid var(--line-2); box-shadow: 0 1.25rem 3.125rem -1.125rem #000; max-width: min(92vw, 30em); pointer-events: none; }
.winvite img { width: clamp(4.5rem, 7.6vw, 8.25rem); border-radius: clamp(0.5rem, 0.8vw, 0.875rem); background: #fff; padding: clamp(0.25rem, 0.4vw, 0.5rem); flex: none; }
.winvite b { display: block; font: 700 clamp(0.9375rem, 1.5vw, 1.625rem)/1.2 var(--display); }
.winvite span { display: block; margin-top: 0.1875rem; color: var(--muted); font-size: clamp(0.8125rem, 1.1vw, 1.125rem); line-height: 1.35; }
.whint { position: absolute; z-index: 30; inset-inline: 0; bottom: clamp(0.875rem, 1.8vw, 1.875rem); margin: 0 auto; width: fit-content; max-width: 86vw; padding: 0.5em 1.2em; border-radius: 62.4375rem; background: rgba(12, 12, 20, 0.8); border: 1px solid var(--line); color: var(--muted); font-size: clamp(0.8125rem, 1.1vw, 1.125rem); text-align: center; pointer-events: none; animation: whint 12s ease forwards; }
.whint.seen { display: none; }
@keyframes whint { 0%, 80% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
.wempty { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 0.9em; padding: 1.5rem; text-align: center; color: var(--muted); font: 500 clamp(1.125rem, 2vw, 2rem)/1.4 var(--display); pointer-events: none; }
.wempty-ico { display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%; color: var(--lime); background: rgba(200, 255, 46, 0.08); border: 1px solid rgba(200, 255, 46, 0.25); animation: wfloat 3.2s ease-in-out infinite; }
.wempty-ico .ico { width: 1.2em; height: 1.2em; }
@keyframes wfloat { 50% { transform: translateY(-0.625rem); } }
/* One magnet lifted off the board, with the code that opens it on a phone */
.wlift { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; padding: clamp(1rem, 4vw, 4rem); background: rgba(4, 4, 9, 0.84); backdrop-filter: blur(0.625rem); animation: fade 0.25s; cursor: zoom-out; transition: background 0.3s; }
.wlift.leaving { background: rgba(4, 4, 9, 0); backdrop-filter: none; }
.wlift.leaving .wtake, .wlift.leaving .wclose { opacity: 0; transition: opacity 0.15s; }
.wlift-in { display: flex; align-items: center; justify-content: center; gap: clamp(1.375rem, 4.5vw, 5rem); max-width: 100%; max-height: 100%; }
.wcard { --hmax: 78vh; --wmax: 56vw; position: relative; flex: none; width: min(var(--wmax), calc(var(--hmax) * var(--ar, 0.74))); aspect-ratio: var(--ar, 0.74); border-radius: clamp(0.375rem, 0.7vw, 0.75rem); overflow: hidden; background: #1c1c26; box-shadow: 0 0.1875rem 0.25rem rgba(0, 0, 0, 0.5), 0 3.75rem 6.25rem -1.5rem #000; }
.wsharp { opacity: 0; transition: opacity 0.4s; }
.wsharp.in { opacity: 1; }
.wtake { display: grid; justify-items: center; gap: clamp(0.5rem, 1vw, 1rem); text-align: center; max-width: min(34vw, 26em); animation: modal-in 0.4s 0.15s both; }
.wqr { width: clamp(9.375rem, 18vw, 20rem); padding: clamp(0.5rem, 0.9vw, 1rem); border-radius: clamp(0.875rem, 1.5vw, 1.625rem); background: #fff; box-shadow: 0 0 5rem -0.625rem rgba(138, 107, 255, 0.6); }
.wtake b { font: 700 clamp(1.375rem, 2.5vw, 2.75rem)/1.15 var(--display); }
.wtake span { color: var(--muted); font-size: clamp(0.9375rem, 1.4vw, 1.5rem); line-height: 1.4; }
.wclose { position: absolute; top: clamp(0.75rem, 2vw, 1.875rem); inset-inline-end: clamp(0.75rem, 2vw, 1.875rem); display: grid; place-items: center; width: clamp(2.75rem, 3.6vw, 4rem); height: clamp(2.75rem, 3.6vw, 4rem); border-radius: 50%; border: 1px solid var(--line-2); background: rgba(20, 20, 30, 0.82); color: var(--text); }
/* A screen standing up, or a phone: the code goes under the magnet */
@media (max-aspect-ratio: 1/1) {
  .wlift-in { flex-direction: column; }
  .wcard { --hmax: 54vh; --wmax: 84vw; }
  .wtake { max-width: 84vw; }
  .wqr { width: clamp(8.125rem, 34vw, 15rem); }
  .whint { bottom: auto; top: clamp(4.375rem, 12vw, 7.5rem); }
}
@media (max-width: 640px) { .wtop .logo { display: none; } }
@media (prefers-reduced-motion: reduce) { .wmag, .wmag.drop, .wmag.stir { animation: none; transition: none; } }

/* ---------- Print station ---------- */
.station { max-width: 55rem; margin: 0 auto; padding: 1.75rem 1.25rem 3.75rem; display: grid; gap: 1.125rem; }
.station-hero { padding: 2.375rem 1.5rem; text-align: center; display: grid; gap: 0.75rem; justify-items: center; }
.station-hero .state-big { font: 700 clamp(1.8125rem, 5vw, 2.8125rem) var(--display); text-wrap: balance; }
.station-hero.printing { border-color: rgba(200, 255, 46, 0.6); }
.station-hero.printing .state-big { color: var(--lime); }
.station-hero.waiting .state-big { color: var(--mint); }
.station-hero.paused .state-big, .station-hero.offline .state-big { color: var(--amber); }
.steps-list { margin: 0; padding-inline-start: 1.375rem; display: grid; gap: 0.5rem; color: var(--muted); }
.recent { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.recent:empty::after { content: '—'; color: var(--muted); }
.recent img { width: 9.375rem; border-radius: 0.375rem; background: #fff; }
#print-area { display: none; }

@media print {
  html { font-size: 16px; /* px */ }
  html, body { margin: 0 !important; padding: 0 !important; background: #fff !important; }
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block; position: fixed; inset: 0; }
  #print-area img, #print-area .test-sheet { width: 100%; height: 100%; object-fit: fill; image-rendering: smooth; }
  .test-sheet { box-sizing: border-box; border: 3mm solid #000; color: #000; background: repeating-linear-gradient(90deg, #fff 0 9.5mm, #ccc 9.5mm 10mm); display: grid; place-items: center; font: 700 28pt sans-serif; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .test-sheet::before { content: ''; position: absolute; inset: 0 50% 0 auto; border-right: 0.3mm dashed #000; }
}

/* ---------- Small screens ---------- */
@media (max-width: 1250px) {
  .floats { display: none; }
  .uses { grid-template-columns: repeat(3, 1fr); }
  .grid5 { grid-template-columns: repeat(3, 1fr); }
  .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .starter ol { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-actions { margin-inline-start: auto; }
  .nav-burger { display: inline-flex; }
  .grid4, .grid5 { grid-template-columns: repeat(2, 1fr); }
  .feat-row, .contact, .account, .charts { grid-template-columns: 1fr; gap: 1.75rem; }
  .feat-row.flip .ai-text { order: 0; }
  .feat-visual { min-height: 0; padding: 1.375rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .flow-stage { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .flow-link { display: none; }
  .flow-steps { grid-template-columns: 1fr 1fr; }
  .fx-chip { width: 10.625rem; }
  /* The menu waits off the edge of the screen; that must not make the page scroll sideways towards it. */
  .shell { grid-template-columns: 1fr; overflow-x: clip; }
  .side { position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 45; width: 17.5rem; background: var(--card); transform: translateX(-105%); transition: transform 0.25s ease; }
  [dir='rtl'] .side { transform: translateX(105%); }
  .side.open, [dir='rtl'] .side.open { transform: none; }
  .side.open + .side-backdrop { display: block; position: fixed; inset: 0; z-index: 44; background: rgba(3, 3, 8, 0.7); }
  .side-burger { display: inline-flex; }
  .mobile-logo { display: block; }
  .mobile-news { display: block; }
  .main-top.bare { display: flex; }
  .main-top { padding: 0.625rem 1rem; }
  .main .wrap { padding: 1.375rem 1rem 5rem; }
  .steps, .grid3, .ai-sec, .ai-sec.flip { grid-template-columns: 1fr; }
  .ai-sec { gap: 1.875rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding-top: 5.5rem; }
  .wall { padding-bottom: 2.875rem; }
  .stage { height: 27.5rem; }
  .tablet { width: 21.25rem; }
  .queue-card { display: none; }
  .phone { left: -0.375rem; top: 11.25rem; width: 9.375rem; padding: 0.5625rem; border-radius: 1.375rem; }
  .phone .mag img { height: 8.25rem; }
  .phone-fx { display: none; }
  .designer, .viewer { grid-template-columns: 1fr; }
  .compare-head span, .compare-row span { padding: 0.8125rem 0.875rem; font-size: 0.9375rem; }
  .footer { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
}
@media (max-width: 560px) {
  .nav { gap: 0.5rem; }
  .nav .lang { display: none; }
  .grid4, .grid5, .uses { grid-template-columns: 1fr 1fr; }
  .stat-row, .kpi-row { grid-template-columns: 1fr 1fr; }
  .starter ol { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .calc-out { grid-template-columns: 1fr; }
  .computers { grid-template-columns: 1fr; }
  .lanes { grid-template-columns: minmax(0, 1fr); }
  .computer-body { grid-template-columns: 1fr; }
  .computer-head { flex-wrap: wrap; }
  .computer-head .grow { flex-basis: 50%; }
  .strip-bar > b { display: none; }
  .frames .mag img { height: 8.125rem; }
  .flow-stage { grid-template-columns: 1fr; }
  .flow-box { grid-area: 1 / 1; height: 15.625rem; opacity: 0; transition: opacity 0.45s ease, border-color 0.4s, box-shadow 0.4s, background 0.4s; }
  .flow:is([data-step='0'], [data-step='1']) .flow-tablet, .flow[data-step='2'] .flow-queue, .flow[data-step='3'] .flow-printer, .flow[data-step='4'] .flow-fridge { opacity: 1; }
  .flow-queue { justify-content: center; }
  .flow-steps li { padding: 0.625rem 0.75rem; font-size: 0.9375rem; }
  .announce span { display: none; }
  .timeline > li { flex-direction: column; gap: 0.625rem; padding: 1.25rem; }
  .lead.center-lead { margin-top: -1.25rem; }
  .nav .btn.ghost { display: none; }
  .hero { padding-top: 3rem; }
  .totals { grid-template-columns: 1fr; }
  .who { display: none; }
  .final { padding: 3.75rem 1.125rem; margin-top: 5.5rem; }
  .wrap { padding: 1.25rem 0.875rem 4.375rem; }
  .topbar-in { padding: 0.625rem 0.875rem; gap: 0.5rem; }
  .topbar .logo { font-size: 1.1875rem; }
  .topbar .btn.quiet span { display: none; }
  .topbar .pill { font-size: 0.75rem; padding: 0.25rem 0.625rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 44vw; }
  .topbar .pill .dot { display: inline-block; margin-inline-end: 0.375rem; }
  .page-head { align-items: stretch; }
  .page-head > .row { width: 100%; }
  .page-head > .row .btn { flex: 1 1 auto; }
  .toolbar .search-wrap { max-width: none; flex-basis: 100%; }
  .photos { grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: 0.375rem; align-items: start; }
  /* A square tile clips the drop label on a phone. This one grows; the photos stay square. */
  .photo.upload-tile { aspect-ratio: auto; height: auto; min-height: 6.5rem; overflow: visible; }
  .people-grid { grid-template-columns: repeat(auto-fill, minmax(8.75rem, 1fr)); }
  .modal { padding: 1.125rem; }
  .line-item { flex-wrap: wrap; }
  /* The words take the rest of the first line beside the photos; the state and the buttons go below. */
  .line-item.wordy .grow { flex: 1 1 calc(100% - 8.75rem); }
  /* The time keeps its own width, so a tight row wraps its button instead of running the words together. */
  .line-item .grow { min-width: 3.4em; }
}
@media (max-width: 419px) {
  .main-top { gap: 0.5rem; padding-inline: 0.625rem; }
  /* The logo gives up space before the printer chip is pushed off the screen. */
  .main-top .mobile-logo { min-width: 0; overflow: hidden; }
  .main-top .logo { min-width: 0; overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .reveal:not(.in) [data-stagger] > *, [data-stagger].reveal:not(.in) > * { opacity: 1; transform: none; }
  .aurora, .bokeh { display: none; }
}

/* ---- Two-step sign-in ---- */
.code-input { font: 600 1.625rem/1.2 var(--mono, ui-monospace, monospace); letter-spacing: 0.22em; text-align: center; padding: 0.875rem 0.75rem; }
.code-input::placeholder { color: rgba(255, 255, 255, 0.18); }
.code-modal { width: min(26.25rem, 100%); }
.code-modal h2 { display: flex; align-items: center; gap: 0.625rem; }
.code-modal h2 .ico { color: var(--lime); }
.two-steps { margin: 0; padding-inline-start: 1.375rem; display: grid; gap: 0.375rem; color: var(--muted); }
.two-qr { display: flex; align-items: center; gap: 1.125rem; flex-wrap: wrap; }
.two-qr img { width: 11.875rem; height: 11.875rem; padding: 0.625rem; border-radius: 1rem; background: #fff; }
.two-qr > div { display: grid; gap: 0.5rem; min-width: 0; }
.two-qr code { font: 600 0.9375rem/1.7 var(--mono, ui-monospace, monospace); letter-spacing: 0.06em; word-break: break-word; max-width: 16em; }
.twostep .role-line .tagp .ico { width: 0.875rem; height: 0.875rem; }
.once-modal { width: min(27.5rem, 100%); }
.once-codes { margin: 0; padding: 1rem 1.25rem 1rem 2.75rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1.75rem; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.05); font: 600 1.0625rem/1.5 var(--mono, ui-monospace, monospace); }
.once-codes li::marker { color: var(--muted); font-weight: 400; }

/* ---- A support visit: the bar across the top of every page ---- */
.shell.visiting { grid-template-rows: auto 1fr; }
.sup-bar { grid-column: 1 / -1; position: sticky; top: 0; z-index: 46; display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 1rem; padding: 0.5625rem 1.25rem; background: #2a1f5c; border-bottom: 1px solid rgba(138, 107, 255, 0.6); font-size: 0.9375rem; }
.sup-bar.write { background: #5c2a1f; border-bottom-color: rgba(255, 138, 107, 0.7); }
.sup-what { display: inline-flex; align-items: center; gap: 0.5rem; min-width: 0; }
.sup-what .ico { width: 1.125rem; height: 1.125rem; color: var(--lime); flex: none; }
.sup-biz { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 26ch; opacity: 0.9; }
.sup-biz::before { content: '·'; margin-inline-end: 0.5rem; opacity: 0.6; }
.sup-role { appearance: none; padding: 0.3125rem 0.75rem; border-radius: 62.4375rem; border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.08); color: inherit; font: inherit; font-size: 0.875rem; cursor: pointer; }
.sup-role option { background: var(--card-2); }
/* Its face in the bar: a small pill, as the menu itself was. */
.sup-role + .menu-face { width: auto; min-height: 0; padding: 0.3125rem 0.75rem; padding-inline-end: 1.875rem; border-radius: 62.4375rem; border: 1px solid rgba(255, 255, 255, 0.28); background-color: rgba(255, 255, 255, 0.08); background-size: 0.875rem; font-size: 0.875rem; }
.sup-mode { display: inline-flex; align-items: center; gap: 0.375rem; font-weight: 700; }
.sup-mode .ico { width: 1rem; height: 1rem; }
.sup-left { color: rgba(255, 255, 255, 0.72); font-variant-numeric: tabular-nums; }
.sup-bar .spacer { flex: 1; }
.shell.visiting .side { top: var(--sup-h, 2.875rem); height: calc(100vh - var(--sup-h, 2.875rem)); }
.shell.visiting .main-top { top: var(--sup-h, 2.875rem); }

/* ---- The administrators' page for one business, and their log ---- */
.biz-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.125rem; }
.biz-head h2 { font: 600 1.625rem var(--display); margin: 0.25rem 0; }
.biz-head .meta { color: var(--muted); }
.biz-back { color: var(--muted); font-weight: 600; font-size: 0.875rem; text-decoration: none; }
.biz-back::before { content: '‹ '; }
[dir='rtl'] .biz-back::before { content: '› '; }
.biz-back:hover, .biz-link:hover { color: var(--lime); }
.biz-link { color: inherit; text-decoration: none; border-bottom: 1px dashed rgba(255, 255, 255, 0.3); }
.biz-section { font: 600 1.0625rem var(--display); margin: 1.625rem 0 0.75rem; }
.log-about { display: grid; gap: 2px; min-width: 0; }
.log-about small { color: var(--muted); overflow-wrap: anywhere; }
.two-first { display: grid; justify-items: center; gap: 0.75rem; padding: 3rem 1.5rem; text-align: center; }
.two-first > .ico { width: 2.75rem; height: 2.75rem; color: var(--lime); }
.two-first h2 { font: 600 1.375rem var(--display); }
.two-first p { max-width: 52ch; }

@media (max-width: 900px) {
  .sup-bar { padding: 0.5rem 0.875rem; font-size: 0.875rem; gap: 0.375rem 0.75rem; }
  /* On a phone the bar keeps to two lines: what and whose, then the state and the two buttons. */
  .sup-bar .spacer, .sup-left { display: none; }
  .sup-biz { max-width: 14ch; }
  .sup-bar .btn.sm { padding-inline: 0.75rem; }
  .sup-mode { margin-inline-end: auto; }
  .shell.visiting .side { top: var(--sup-h, 2.875rem); height: auto; }
  .once-codes { grid-template-columns: 1fr; }
}

/* ---- The stand's tablet as a photo booth: the camera over the whole screen, and a count before each photo ---- */
.has-booth { overflow: hidden; }
.booth { position: fixed; inset: 0; z-index: 70; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; gap: 2.4vh; padding: 3.5vh 3vw 3vh; background: radial-gradient(120% 90% at 50% 0%, #1b1440, #05050a 70%); }
/* The room the picture has, and the picture in it: booth.js gives the picture its width and height, in the magnet's shape, to fit the room whichever way the tablet is held. */
.booth-view { justify-self: stretch; align-self: stretch; min-height: 0; min-width: 0; display: grid; place-items: center; }
.booth-stage { position: relative; aspect-ratio: 1.5; max-width: 100%; max-height: 100%; border-radius: 1.875rem; overflow: hidden; background: #0d0d16; box-shadow: 0 0 0 0.375rem rgba(255, 255, 255, 0.08), 0 0 5.625rem -0.625rem rgba(138, 107, 255, 0.55), 0 2.5rem 7.5rem -1.875rem #000; }
.booth-stage video { display: block; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); transition: filter 0.3s; }
/* The photos as they will be kept: turned over when the guests chose a mirror. One that came back from the server (.done) is already turned, so it is not turned again. */
.booth.mirrored .booth-slot img:not(.done), .booth.mirrored .booth-review:not(.done) { transform: scaleX(-1); }
.booth-review { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.booth-review.away { animation: booth-away 1s ease-in forwards; pointer-events: none; }
.booth-stage.retaking > .booth-x, .booth-stage.retaking > .booth-ai { animation: booth-away 1s ease-in forwards; }
@keyframes booth-away { to { opacity: 0; scale: 0.92; } }
/* The mirror switch at the foot of the booth, there from the first count. */
/* "Find me": the booth's camera and look, with a ring for the face and a sweep when it scans. */
.booth.scan .booth-stage { width: min(80vw, 54vh); height: auto; aspect-ratio: 3 / 4; }
.scan-ring { position: absolute; inset: 14% 18% 18%; border: 0.1875rem solid rgba(200, 255, 46, 0.85); border-radius: 50%; box-shadow: 0 0 0 62.4375rem rgba(5, 5, 10, 0.45), 0 0 2.5rem rgba(200, 255, 46, 0.5); animation: pulse 1.8s ease-in-out infinite; }
.scan-stage.scanning .scan-ring { animation: none; border-color: var(--mint); }
.scan-stage.scanning::after { content: ''; position: absolute; inset-inline: 18%; top: 14%; height: 0.25rem; border-radius: 2px; background: var(--mint); box-shadow: 0 0 1.5rem var(--mint); animation: scan-sweep 0.5s ease-in-out forwards; }
@keyframes scan-sweep { to { top: 82%; } }
.scan-pick { margin-top: 0.375rem; text-decoration: underline; text-underline-offset: 0.1875rem; }
.booth-mirror { display: inline-flex; align-items: center; gap: 0.625rem; padding: 0.5rem 0.875rem; border: 1px solid var(--line-2); border-radius: 62.4375rem; background: rgba(255, 255, 255, 0.05); font-weight: 700; cursor: pointer; }
.booth-mirror:has(.switch:disabled) { opacity: 0.55; cursor: default; }
.booth-mirror .switch:disabled { cursor: default; }
.booth-mirror .ico { width: 1.125rem; height: 1.125rem; }
.booth-mirror[hidden] { display: none; }
/* Effects on a strip's photos, in the strip's view. */
.sig-range { display: flex; align-items: center; gap: 0.75rem; }
.sig-range input[type='range'] { flex: 1; min-width: 0; height: 1.75rem; padding: 0; border: 0; background: none; box-shadow: none; accent-color: var(--lime); cursor: pointer; }
.sig-range-says { min-width: 3.4em; font-variant-numeric: tabular-nums; font-weight: 600; text-align: center; white-space: nowrap; }
.strip-paper { position: relative; display: inline-block; line-height: 0; transform: rotate(-1.2deg); }
.kmodal .strip-shot .strip-paper img { transform: none; }
.strip-spot { position: absolute; padding: 0; border: 2px solid transparent; border-radius: 0.1875rem; background: transparent; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.strip-spot:hover, .strip-spot:focus-visible { border-color: var(--violet); background: rgba(138, 107, 255, 0.16); outline: none; }
.strip-spot:active { background: rgba(138, 107, 255, 0.28); }
.strip-spot-ai, .booth-ai { position: absolute; inset-inline-end: 0.375rem; bottom: 0.375rem; display: grid; place-items: center; width: 1.625rem; height: 1.625rem; border-radius: 50%; background: linear-gradient(100deg, var(--violet), var(--pink)); color: #fff; box-shadow: 0 2px 0.5rem rgba(0, 0, 0, 0.45); animation: strip-spot-hi 2.4s ease-in-out 0.4s 2; pointer-events: none; }
.strip-spot-ai .ico, .booth-ai .ico { width: 0.9375rem; height: 0.9375rem; }
.booth-ai[hidden] { display: none; }
/* On the large photo the same sparkle, a little larger, clear of the retake X at the top corner. */
.booth-stage > .booth-ai { z-index: 1; inset-inline-end: 0.875rem; bottom: 0.875rem; width: 2.25rem; height: 2.25rem; }
.booth-stage > .booth-ai .ico { width: 1.25rem; height: 1.25rem; }
@keyframes strip-spot-hi { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.strip-spots-say { display: flex; align-items: center; justify-content: center; gap: 0.375rem; margin: 0; color: var(--muted); font-size: 0.875rem; }
.strip-spots-say .ico { width: 0.9375rem; height: 0.9375rem; color: var(--violet); }
.booth-acts { display: flex; gap: 0.625rem; justify-content: center; flex-wrap: wrap; }
.booth-acts .btn[hidden] { display: none; }
.booth.holding .booth-foot { width: min(100%, 57.5rem); }
.booth-stage.sending video { filter: blur(1rem) brightness(0.45); }
.booth-count { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.booth-count > * { grid-area: 1 / 1; }
.booth-count b { font: 700 min(44vh, 56vw) / 1 var(--display); color: #fff; text-shadow: 0 0 3.75rem rgba(0, 0, 0, 0.55), 0 0.625rem 2.5rem rgba(0, 0, 0, 0.45); animation: booth-beat 1s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
.booth-ring { width: min(52vh, 62vw); aspect-ratio: 1; border-radius: 50%; border: 0.625rem solid var(--lime); animation: booth-ring 1s ease-out both; }
@keyframes booth-beat { 0% { transform: scale(1.75); opacity: 0; } 16% { transform: scale(1); opacity: 1; } 80% { transform: scale(0.96); opacity: 1; } 100% { transform: scale(0.8); opacity: 0; } }
@keyframes booth-ring { 0% { transform: scale(0.55); opacity: 0.95; } 100% { transform: scale(1.5); opacity: 0; } }
.booth-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.booth-flash.go { animation: booth-flash 0.6s ease-out; }
@keyframes booth-flash { 0% { opacity: 0.96; } 100% { opacity: 0; } }
.booth-foot { display: grid; justify-items: center; gap: 1.8vh; min-height: 9vh; }
.booth-say { margin: 0; font: 600 clamp(1.375rem, 3.6vh, 2.25rem) var(--display); text-align: center; }
.booth-shots { display: flex; gap: 0.875rem; direction: ltr; }
.booth-slot { position: relative; width: clamp(3.75rem, 10.5vh, 6.5rem); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border-radius: 1rem; border: 2px dashed rgba(255, 255, 255, 0.28); font: 700 1.375rem var(--display); color: var(--muted); transition: width 0.25s ease; }
.booth.holding .booth-slot { width: clamp(5.5rem, 16vh, 8.75rem); overflow: visible; }
.booth-slot.next { border-style: solid; border-color: var(--lime); color: var(--lime); }
.booth-slot img { width: 100%; height: 100%; object-fit: cover; animation: pop 0.3s ease-out; }
.booth-photo { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: inherit; overflow: hidden; background: none; color: inherit; cursor: pointer; transition: scale 0.12s ease; }
.booth-photo:active { scale: 0.94; }
.booth-photo img { display: block; }
.booth-stage.reviewing .booth-review { transition: scale 0.12s ease; }
.booth-stage.reviewing .booth-review:active { scale: 0.975; }
/* A small X, with a touch target of 3rem, in the photo's top-right corner. */
.booth-x { position: absolute; top: 0; right: 0; z-index: 2; width: 3rem; height: 3rem; min-width: 3rem; min-height: 3rem; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #fff; transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease; }
.booth-x:disabled { opacity: 0.4; }
.booth-x[hidden] { display: none; }
.booth-x .ico { width: 1.125rem; height: 1.125rem; padding: 0.1875rem; box-sizing: content-box; border-radius: 50%; background: rgba(8, 8, 14, 0.78); border: 1px solid rgba(255, 255, 255, 0.5); transition: scale 0.12s ease, filter 0.12s ease; }
.booth-x:active .ico { scale: 0.84; filter: brightness(1.35); }
.booth .btn.primary:active:not(:disabled) { filter: brightness(1.15); }
.booth-stage > .booth-x { top: 0.625rem; right: 0.625rem; }
body.has-booth .overlay { z-index: 75; }
.booth-close { position: absolute; top: 1.125rem; inset-inline-end: 1.125rem; }
/* A tablet held upright: the picture reaches the sides, so it starts below the close button and not under it. */
@media (orientation: portrait) { .booth { padding-top: 74px; } }
@media (prefers-reduced-motion: reduce) {
  .booth-count b { animation: none; }
  .booth-ring { display: none; }
  .booth-ai, .strip-spot-ai { animation: none; }
  .booth-review.away, .booth-stage.retaking > .booth-x, .booth-stage.retaking > .booth-ai { animation: none; }
  .booth-slot { transition: none; }
}

/* ---------- The new-event steps (public/js/wizard.js) ---------- */
/* The rows are the progress bar, the steps (which scroll inside their row, the rail and the pane each), the error and the foot: on a short screen the foot stays in reach instead of being pushed out or covered. */
.wiz-modal { width: min(65rem, 100%); padding: 0; gap: 0; overflow: auto; grid-template-rows: auto minmax(0, 1fr) auto auto; }
.wizard { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; max-height: calc(100vh - 2rem); }
.wiz-progress { margin: 0; height: 0.25rem; border-radius: 0; }
.wiz-grid { display: grid; grid-template-columns: 14.5rem minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); min-height: 0; }
.wiz-rail { list-style: none; margin: 0; padding: 1.375rem 0.875rem; display: grid; gap: 0.25rem; align-content: start; border-inline-end: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); overflow: auto; scrollbar-width: thin; }
.wiz-rail li button { display: flex; align-items: center; gap: 0.75rem; width: 100%; padding: 0.625rem 0.75rem; border: 0; border-radius: var(--radius-sm); background: none; color: var(--muted); font: 600 0.9375rem var(--body); text-align: start; cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.2s; }
.wiz-rail li button:disabled { cursor: default; opacity: 0.55; }
.wiz-rail li button:not(:disabled):hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.wiz-rail li i { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--line-2); flex: none; transition: background 0.3s, border-color 0.3s, color 0.3s; }
.wiz-rail li i svg { width: 1rem; height: 1rem; }
.wiz-rail li.now button { color: var(--text); background: rgba(200, 255, 46, 0.08); }
.wiz-rail li.now i { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); box-shadow: 0 0 0 0.3125rem rgba(200, 255, 46, 0.16); }
.wiz-rail li.done i { background: rgba(92, 242, 182, 0.16); border-color: rgba(92, 242, 182, 0.5); color: var(--mint); animation: pop 0.3s; }
.wiz-body { overflow: auto; padding: 1.625rem 1.875rem; scrollbar-width: thin; }
.wiz-pane { animation: wiz-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; display: grid; gap: 1.375rem; }
@keyframes wiz-in { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * -1.75rem)); filter: blur(0.375rem); } }
[dir='ltr'] .wiz-pane { animation-name: wiz-in-ltr; }
@keyframes wiz-in-ltr { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 1.75rem)); filter: blur(0.375rem); } }
.wiz-pane-head { display: grid; grid-template-columns: 9.375rem minmax(0, 1fr); gap: 1.375rem; align-items: center; }
.wiz-pane-head h2 { margin: 2px 0 0.375rem; font: 600 1.625rem var(--display); }
.wiz-pane-head p { margin: 0; line-height: 1.5; }
.wiz-step { display: block; font-size: 0.8125rem; letter-spacing: 0.3px; }
.wiz-art { position: relative; height: 7.5rem; border-radius: 1.125rem; overflow: hidden; background: radial-gradient(7.5rem 5rem at 20% 20%, rgba(138, 107, 255, 0.55), transparent 70%), radial-gradient(6.25rem 5rem at 80% 90%, rgba(200, 255, 46, 0.35), transparent 70%), var(--card-2); }
.wiz-art-ico { position: absolute; inset-inline-start: 0.75rem; top: 0.75rem; z-index: 2; display: grid; place-items: center; width: 2.375rem; height: 2.375rem; border-radius: 50%; background: var(--lime); color: var(--lime-ink); box-shadow: 0 0.625rem 1.5rem -0.5rem rgba(0, 0, 0, 0.8); }
.wiz-art-ico svg { width: 1.25rem; height: 1.25rem; }
.wiz-art img { position: absolute; width: 3.5rem; height: 3.5rem; object-fit: cover; border: 0.1875rem solid #fff; border-bottom-width: 0.75rem; border-radius: 0.1875rem; box-shadow: 0 1rem 1.875rem -0.75rem #000; inset-inline-end: calc(0.875rem + var(--n) * 1.875rem); top: calc(1.625rem + var(--n) * 0.875rem); rotate: calc(-10deg + var(--n) * 9deg); animation: bob 4s ease-in-out infinite; animation-delay: calc(var(--n) * -1.3s); }
.wiz-art.a2 { background: radial-gradient(7.5rem 5rem at 30% 30%, rgba(92, 242, 182, 0.5), transparent 70%), var(--card-2); }
.wiz-art.a3 { background: radial-gradient(7.5rem 5rem at 70% 30%, rgba(255, 92, 147, 0.5), transparent 70%), var(--card-2); }
.wiz-art.a6 { background: radial-gradient(7.5rem 5rem at 50% 50%, rgba(138, 107, 255, 0.6), transparent 70%), var(--card-2); }
.wiz-art.a7 { background: radial-gradient(7.5rem 5rem at 50% 50%, rgba(200, 255, 46, 0.45), transparent 70%), var(--card-2); }
.wiz-help { display: block; color: var(--muted); font-size: 0.8438rem; line-height: 1.45; font-weight: 400; }
.wiz-row { display: grid; gap: 2px; }
.wiz-row .switch-row { min-height: 2.5rem; }
.wiz-templates { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.75rem 0.875rem; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); }
.wiz-templates-title { font-weight: 600; font-size: 0.875rem; color: var(--muted); margin-inline-end: 0.25rem; }
.chip.tpl { display: inline-flex; align-items: center; gap: 2px; padding: 0; overflow: hidden; }
.chip.tpl > button { display: inline-flex; align-items: center; gap: 0.4375rem; padding: 0.4375rem 0.8125rem; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.chip.tpl > button svg { width: 0.9375rem; height: 0.9375rem; }
.chip.tpl > .x { padding: 0.4375rem 0.5625rem 0.4375rem 0.25rem; opacity: 0.6; }
.chip.tpl > .x:hover { opacity: 1; color: var(--red); }
.chip.tpl.on > .x:hover { color: var(--lime-ink); }
.wiz-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.375rem, 1fr)); gap: 0.75rem; }
.wiz-size, .wiz-style { display: grid; gap: 0.5rem; justify-items: center; padding: 0.875rem 0.625rem 0.75rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.03); color: var(--text); font: 600 0.875rem var(--body); cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.2s; }
.wiz-size:hover, .wiz-style:hover { border-color: var(--muted); transform: translateY(-2px); }
.wiz-size.on, .wiz-style.on { border-color: var(--lime); background: rgba(200, 255, 46, 0.07); box-shadow: 0 0 0 1px var(--lime); }
.wiz-size small { color: var(--muted); font-weight: 400; }
.wiz-size-pic { display: grid; place-items: center; height: 7.375rem; }
.wiz-size-pic canvas { max-height: 7.375rem; max-width: 100%; border-radius: 0.1875rem; box-shadow: 0 0.875rem 1.75rem -0.75rem #000; transition: transform 0.3s; }
.wiz-size.on canvas, .wiz-style.on canvas { transform: scale(1.04) rotate(-2deg); }
.wiz-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.375rem, 1fr)); gap: 0.625rem; }
.wiz-style { padding: 0.625rem 0.375rem 0.5625rem; font-size: 0.8125rem; }
.wiz-style .wiz-size-pic { height: 5.75rem; }
.wiz-style .wiz-size-pic canvas { max-height: 5.75rem; }
.wiz-hero { display: grid; place-items: center; padding: 0.875rem; border-radius: var(--radius-sm); background: radial-gradient(16.25rem 10rem at 50% 60%, rgba(255, 92, 147, 0.25), transparent 70%), var(--card-2); }
.wiz-hero canvas { max-width: 100%; max-height: 15rem; border-radius: 0.25rem; box-shadow: 0 1.875rem 3.125rem -1.375rem #000; animation: rise 0.5s both; }
.wiz-summary { list-style: none; margin: 0.25rem 0 0; padding: 0; display: grid; gap: 1px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.wiz-summary li { display: grid; grid-template-columns: 6.875rem minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; padding: 0.625rem 0.875rem; background: rgba(255, 255, 255, 0.03); font-size: 0.875rem; }
.wiz-summary li span { color: var(--muted); }
.wiz-summary .link { border: 0; background: none; color: var(--lime); font: 600 0.8125rem var(--body); cursor: pointer; padding: 0; }
.wiz-save { padding: 0.75rem 0.875rem; border-radius: var(--radius-sm); background: rgba(200, 255, 46, 0.06); }
.wizard > .form-error { margin: 0 1.875rem; }
.wiz-foot { padding: 1rem 1.875rem calc(1.375rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); flex-wrap: wrap; }
@media (max-width: 760px) {
  .wiz-grid { grid-template-columns: 1fr; }
  .wiz-rail { display: flex; gap: 2px; padding: 0.625rem 0.5rem; overflow-x: auto; border-inline-end: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .wiz-rail li button { padding: 0.375rem; gap: 0; }
  .wiz-rail li button span { display: none; }
  .wiz-rail li.now button span { display: inline; margin-inline-start: 0.5rem; }
  .wiz-body { padding: 1.125rem 1rem; }
  .wiz-pane-head { grid-template-columns: 1fr; }
  .wiz-art { height: 5.75rem; }
  .wiz-summary li { grid-template-columns: 1fr; gap: 2px; }
  .wiz-foot { padding: 0.75rem 1rem 1rem; }
  .wizard > .form-error { margin: 0 1rem; }
}

/* ---------- Plans and licences (src/plans.ts) ---------- */
.licence-card { margin-top: 0.875rem; padding: 1.125rem 1.25rem; gap: 0.625rem; }
/* Under the title and the stage, across the head, whatever the stage's row holds. */
.page-head > div:has(> .licence-card), .page-head .licence-card { flex: 1 1 100%; }
.licence-card.warn { border-color: rgba(255, 178, 36, 0.45); background: linear-gradient(180deg, rgba(255, 178, 36, 0.08), rgba(255, 255, 255, 0.018)); }
.licence-card h2 { font-size: 1.0625rem; }
.licence-card p { margin: 0; }
.licence-row { align-items: center; flex-wrap: wrap; gap: 0.625rem; }
.licence-row select { min-width: 13.75rem; }
.plan-box { display: grid; gap: 0.875rem; }
.plan-free { display: grid; gap: 0.5rem; }
.plan-free b { font-size: 0.875rem; }
.plan-free .row { min-height: 0; justify-content: flex-start; gap: 0.5rem; }
.plan-month { display: grid; gap: 0.5rem; }
.plan-month > b { font-size: 0.875rem; }
.usage.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.usage small { display: block; color: var(--muted); font-weight: 400; }
.muted.small { font-size: 0.8125rem; }
.biz-plan { display: grid; grid-template-columns: repeat(auto-fit, minmax(16.25rem, 1fr)); gap: 1rem; align-items: start; }
.biz-plan .card { padding: 1.25rem; display: grid; gap: 0.75rem; align-content: start; }
.biz-plan h3 { margin: 0; font: 600 1.0625rem var(--display); }
.licence-list { display: grid; gap: 0.375rem; }
.licence-list li { display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 0.75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 0.875rem; }
.licence-list li small { color: var(--muted); }
.licence-list .spacer { flex: 1; }
.month-nav { display: flex; align-items: center; gap: 0.625rem; }
.month-nav b { font: 600 1.25rem var(--display); min-width: 7.5rem; text-align: center; }
.statement-total { font: 700 1.375rem var(--display); color: var(--lime); }

/* ---------- Motion: the small movements that make the pages feel alive (nothing changes its look) ---------- */
/* What a page draws arrives in a soft stagger: cards, tiles, rows, one a few milliseconds after the other. */
:is(.events, .kpi-row, .stat-row, .settings, .wiz-sizes, .wiz-styles, .fx-grid, .usage, .licence-list) > * { animation: arrive 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
:is(.events, .kpi-row, .stat-row, .settings, .wiz-sizes, .wiz-styles, .fx-grid, .usage, .licence-list) > *:nth-child(1) { animation-delay: 0ms; }
:is(.events, .kpi-row, .stat-row, .settings, .wiz-sizes, .wiz-styles, .fx-grid, .usage, .licence-list) > *:nth-child(2) { animation-delay: 40ms; }
:is(.events, .kpi-row, .stat-row, .settings, .wiz-sizes, .wiz-styles, .fx-grid, .usage, .licence-list) > *:nth-child(3) { animation-delay: 80ms; }
:is(.events, .kpi-row, .stat-row, .settings, .wiz-sizes, .wiz-styles, .fx-grid, .usage, .licence-list) > *:nth-child(4) { animation-delay: 120ms; }
:is(.events, .kpi-row, .stat-row, .settings, .wiz-sizes, .wiz-styles, .fx-grid, .usage, .licence-list) > *:nth-child(5) { animation-delay: 160ms; }
:is(.events, .kpi-row, .stat-row, .settings, .wiz-sizes, .wiz-styles, .fx-grid, .usage, .licence-list) > *:nth-child(6) { animation-delay: 200ms; }
:is(.events, .kpi-row, .stat-row, .settings, .wiz-sizes, .wiz-styles, .fx-grid, .usage, .licence-list) > *:nth-child(7) { animation-delay: 240ms; }
:is(.events, .kpi-row, .stat-row, .settings, .wiz-sizes, .wiz-styles, .fx-grid, .usage, .licence-list) > *:nth-child(8) { animation-delay: 280ms; }
:is(.events, .kpi-row, .stat-row, .settings, .wiz-sizes, .wiz-styles, .fx-grid, .usage, .licence-list) > *:nth-child(9) { animation-delay: 320ms; }
:is(.events, .kpi-row, .stat-row, .settings, .wiz-sizes, .wiz-styles, .fx-grid, .usage, .licence-list) > *:nth-child(10) { animation-delay: 360ms; }
:is(.events, .kpi-row, .stat-row, .settings, .wiz-sizes, .wiz-styles, .fx-grid, .usage, .licence-list) > *:nth-child(11) { animation-delay: 400ms; }
:is(.events, .kpi-row, .stat-row, .settings, .wiz-sizes, .wiz-styles, .fx-grid, .usage, .licence-list) > *:nth-child(12) { animation-delay: 440ms; }
:is(.events, .kpi-row, .stat-row, .settings, .wiz-sizes, .wiz-styles, .fx-grid, .usage, .licence-list) > *:nth-child(13) { animation-delay: 480ms; }
:is(.events, .kpi-row, .stat-row, .settings, .wiz-sizes, .wiz-styles, .fx-grid, .usage, .licence-list) > *:nth-child(14) { animation-delay: 520ms; }
:is(.events, .kpi-row, .stat-row, .settings, .wiz-sizes, .wiz-styles, .fx-grid, .usage, .licence-list) > *:nth-child(15) { animation-delay: 560ms; }
:is(.events, .kpi-row, .stat-row, .settings, .wiz-sizes, .wiz-styles, .fx-grid, .usage, .licence-list) > *:nth-child(16) { animation-delay: 600ms; }
@keyframes arrive { from { opacity: 0; transform: translateY(0.75rem); filter: blur(0.1875rem); } }
/* Cards lift a little under the pointer, with a breath of the site's green. */
.card { transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease, border-color 0.2s ease; }
.card.glow:hover, .card.kpi:hover, .event-card:hover { transform: translateY(-0.1875rem); box-shadow: 0 1.625rem 3.75rem -2rem rgba(200, 255, 46, 0.35), 0 0.625rem 1.875rem -1.25rem rgba(0, 0, 0, 0.8); border-color: rgba(200, 255, 46, 0.35); }
.card.panel:hover { border-color: var(--line-2); }
/* Buttons: a touch of lift, a quick press, the icon leaning in. */
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: scale(0.97); transition-duration: 0.06s; }
.btn .ico { transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.btn:hover:not(:disabled) .ico { transform: scale(1.12) rotate(-6deg); }
/* A tab that becomes the open one settles with a small pop; the side navigation's icon leans in. */
.tab { transition: color 0.15s, background 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.tab.on, .chip.on { animation: tab-pop 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes tab-pop { 50% { transform: scale(1.04); } }
.side-link .ico { transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.side-link:hover .ico, .side-link.on .ico { transform: scale(1.1); }
/* Switches spring; chips answer the pointer. */
.switch { transition: background 0.3s ease; }
.switch::after { transition: transform 0.3s cubic-bezier(0.3, 1.5, 0.5, 1), background 0.2s; }
.chip { transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.chip:hover { transform: translateY(-1px); }
/* Fields glow softly when they take the focus. */
.field input, .field select, .field textarea, .input, .code-input { transition: border-color 0.2s ease, box-shadow 0.25s ease, background 0.2s ease; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible, .input:focus-visible, .code-input:focus-visible { box-shadow: 0 0 0 0.25rem rgba(200, 255, 46, 0.14); }
/* Dialogs open from a little below; toasts rise and settle. */
.overlay > .card { animation: modal-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(0.875rem) scale(0.975); } }
.toast { animation: toast-in 0.4s cubic-bezier(0.2, 0.9, 0.2, 1.1) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(1.125rem) scale(0.96); } }
/* Table rows light up under the pointer. */
.dtable tbody tr { transition: background 0.2s ease; }
.dtable tbody tr:hover { background: rgba(255, 255, 255, 0.035); }
/* Meters fill from nothing when they are drawn. */
.progress i, .meter i { animation: fill-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes fill-in { from { transform: scaleX(0); } }
.progress i, .meter i { transform-origin: left; }
[dir='rtl'] .progress i, [dir='rtl'] .meter i { transform-origin: right; }
/* Photos in the grids sharpen as they come in, and the card covers answer the pointer. */
.photo img { transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease, opacity 0.3s ease; }
.cover img { transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.event-card:hover .cover img { transform: scale(1.04); }
/* The new-event steps say which licence the event takes: a line under every step, a card on the last. */
.wiz-licence-line .tagp { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.8125rem; }
.wiz-licence-line .tagp.bad { color: var(--amber); border-color: rgba(255, 178, 36, 0.5); }
.wiz-licence-line .tagp svg { width: 0.875rem; height: 0.875rem; }
.wiz-foot .spacer { flex: 1; }
.wiz-licence { padding: 1.125rem 1.25rem; gap: 0.625rem; }
.wiz-licence h3 { margin: 0; display: flex; align-items: center; gap: 0.5rem; font: 600 1.0625rem var(--display); }
.wiz-licence h3 svg { width: 1.125rem; height: 1.125rem; color: var(--lime); }
.wiz-licence-takes { margin: 0; font: 700 1.125rem var(--display); }
.wiz-licence p { margin: 0; }
.wiz-licence.warn { border-color: rgba(255, 178, 36, 0.45); background: linear-gradient(180deg, rgba(255, 178, 36, 0.08), rgba(255, 255, 255, 0.018)); }

/* The writing on a frame, moved and finished by hand (public/js/writing.js) */
.modal.we-modal { width: min(73.75rem, 100%); }
.we-dialog { display: grid; gap: 0.75rem; min-width: 0; }
.we-dialog h2 { margin: 0; }
.we-body { display: grid; grid-template-columns: minmax(0, 1fr) 18.75rem; gap: 1.375rem; align-items: start; }
.we-view { display: grid; justify-items: center; gap: 0.625rem; min-width: 0; }
.we-stage { position: relative; width: fit-content; max-width: 100%; border-radius: 0.375rem; outline: none; touch-action: none; user-select: none; -webkit-user-select: none; }
.we-stage:focus-visible { box-shadow: 0 0 0 0.1875rem rgba(200, 255, 46, 0.35); }
/* The paper the magnet is on (its size set by the page), and the magnet drawn on it, what lies past the paper's edge cut off. */
.we-paper { position: absolute; inset: 0; overflow: hidden; border-radius: 0.25rem; box-shadow: 0 2px 0.1875rem rgba(0, 0, 0, 0.5), 0 1.5rem 3.125rem -1.5rem #000; }
.we-canvas { position: absolute; display: block; max-width: none; max-height: none; cursor: pointer; }
.we-box { position: absolute; border: 1.5px dashed var(--lime); border-radius: 0.1875rem; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35); cursor: move; }
.we-grip { position: absolute; width: 0.875rem; height: 0.875rem; border: 2px solid var(--lime); border-radius: 0.25rem; background: #fff; box-shadow: 0 1px 0.1875rem rgba(0, 0, 0, 0.5); }
.we-grip.nw { top: -0.5rem; left: -0.5rem; cursor: nwse-resize; }
.we-grip.ne { top: -0.5rem; right: -0.5rem; cursor: nesw-resize; }
.we-grip.sw { bottom: -0.5rem; left: -0.5rem; cursor: nesw-resize; }
.we-grip.se { bottom: -0.5rem; right: -0.5rem; cursor: nwse-resize; }
/* A photo under a background of its own (we-photo, not .photo: that is a gallery tile): no turning; its edges pull one side of it while the lock is off */
.we-box.we-photo .we-turn { display: none; }
.we-edge { display: none; position: absolute; width: 0.875rem; height: 0.875rem; border: 2px solid var(--lime); border-radius: 0.25rem; background: #fff; box-shadow: 0 1px 0.1875rem rgba(0, 0, 0, 0.5); }
.we-box.we-photo.we-free .we-edge { display: block; }
.we-edge.n { top: -0.5rem; left: 50%; margin-left: -0.4375rem; cursor: ns-resize; }
.we-edge.s { bottom: -0.5rem; left: 50%; margin-left: -0.4375rem; cursor: ns-resize; }
.we-edge.w { left: -0.5rem; top: 50%; margin-top: -0.4375rem; cursor: ew-resize; }
.we-edge.e { right: -0.5rem; top: 50%; margin-top: -0.4375rem; cursor: ew-resize; }
.we-turn { position: absolute; top: -2.375rem; left: 50%; width: 1.125rem; height: 1.125rem; margin-left: -0.5625rem; border: 2px solid #fff; border-radius: 50%; background: var(--lime); box-shadow: 0 1px 0.1875rem rgba(0, 0, 0, 0.5); cursor: grab; }
.we-turn::after { content: ''; position: absolute; top: 1rem; left: 50%; width: 2px; height: 1.25rem; margin-left: -1px; background: var(--lime); }
.we-guide { position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1.5px dashed var(--pink); pointer-events: none; }
.we-guide.across { top: 50%; right: 0; bottom: auto; left: 0; border-top: 1.5px dashed var(--pink); border-left: 0; }
@media (pointer: coarse) {
  .we-grip { width: 1.5rem; height: 1.5rem; }
  .we-grip.nw, .we-grip.ne { top: -0.8125rem; }
  .we-grip.sw, .we-grip.se { bottom: -0.8125rem; }
  .we-grip.nw, .we-grip.sw { left: -0.8125rem; }
  .we-grip.ne, .we-grip.se { right: -0.8125rem; }
  .we-edge { width: 1.5rem; height: 1.5rem; }
  .we-edge.n { top: -0.8125rem; margin-left: -0.75rem; }
  .we-edge.s { bottom: -0.8125rem; margin-left: -0.75rem; }
  .we-edge.w { left: -0.8125rem; margin-top: -0.75rem; }
  .we-edge.e { right: -0.8125rem; margin-top: -0.75rem; }
  .we-turn { top: -3rem; width: 1.75rem; height: 1.75rem; margin-left: -0.875rem; }
  .we-turn::after { top: 1.5rem; height: 1.375rem; }
}
.we-side { display: grid; align-content: start; gap: 0.875rem; }
/* The pieces, the top one first: a row to pick one, and arrows to lay it over or under the next */
.we-layers { display: grid; gap: 0.375rem; }
.we-layers-head { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em; }
.we-layers-head .ico { width: 1rem; height: 1rem; }
.we-layer { display: flex; align-items: center; gap: 2px; padding: 0.25rem; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: var(--card-2); transition: border-color 0.15s, background 0.15s; }
.we-layer.on { border-color: var(--lime); background: rgba(200, 255, 46, 0.07); }
/* The caption's second line on its own: under its caption, a step in, in the caption's place among the pieces. */
.we-layer-sub { margin-inline-start: 1.375rem; }
.we-layer-pick { display: flex; flex: 1; align-items: center; gap: 0.625rem; min-width: 0; min-height: 2.5rem; padding: 0 0.625rem; border: 0; border-radius: 0.5625rem; background: none; color: inherit; font: inherit; font-weight: 600; text-align: start; cursor: pointer; }
.we-layer-pick .ico { width: 1.125rem; height: 1.125rem; flex: none; color: var(--muted); }
.we-layer.on .we-layer-pick .ico { color: var(--lime); }
.we-layer-move { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; flex: none; padding: 0; border: 0; border-radius: 0.5625rem; background: none; color: var(--muted); cursor: pointer; transition: background 0.15s, color 0.15s; }
.we-layer-move:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.we-layer-move:disabled { opacity: 0.22; cursor: default; }
.we-layer-move .ico { width: 1.125rem; height: 1.125rem; }
/* The QR code lies over everything: its row says so where the others have arrows. */
.we-layer-note { flex: none; padding: 0 0.625rem; color: var(--muted); font-size: 0.78rem; font-weight: 600; }
/* A QR code on every magnet: the Frame tab's section */
.qr-fields .switch-row { min-height: 2.5rem; font-weight: 500; }
.we-tools { display: grid; gap: 0.375rem; }
.we-tools .switch-row { min-height: 2.5rem; font-weight: 500; }
.we-pair { display: flex; align-items: center; gap: 0.625rem; }
.we-pair .field { flex: 1; min-width: 0; }
.we-range { display: flex; align-items: center; gap: 0.75rem; }
.we-range input[type='range'] { flex: 1; min-width: 0; height: 1.75rem; padding: 0; border: 0; background: none; box-shadow: none; accent-color: var(--lime); cursor: pointer; }
.we-says { min-width: 3.4em; font-variant-numeric: tabular-nums; font-weight: 600; text-align: center; white-space: nowrap; }
@media (max-width: 860px) {
  .we-body { grid-template-columns: minmax(0, 1fr); }
}

/* A logo on the frame: the Frame tab's section, and the chooser (public/js/logo-picker.js) */
.fl-fields .switch-row { min-height: 2.5rem; font-weight: 500; }
.fl-now { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem; }
.fl-thumb { display: grid; place-items: center; width: 4rem; height: 4rem; padding: 0.375rem; border-radius: 0.75rem; background: #f3efe6; }
.fl-thumb img { max-width: 100%; max-height: 100%; }
.fl-picker { display: grid; gap: 0.875rem; }
.fl-picker h2 { margin: 0; }
.fl-body { min-height: 13.75rem; }
.fl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.75rem, 1fr)); gap: 0.625rem; max-height: min(56vh, 35rem); overflow: auto; padding: 2px; }
.fl-cell { position: relative; }
.fl-tile { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 0.875rem; background: #f3efe6; transition: border-color 0.15s, transform 0.15s; }
/* Out of the flow, so a tall drawing does not stretch its square. */
.fl-tile img { position: absolute; inset: 0.75rem; width: calc(100% - 1.5rem); height: calc(100% - 1.5rem); object-fit: contain; }
.fl-tile:hover { border-color: var(--muted); }
.fl-tile.on { border-color: var(--lime); }
.fl-forget { position: absolute; top: 0.25rem; inset-inline-end: 0.25rem; background: rgba(20, 20, 30, 0.75); }
/* The vector version of an uploaded logo: asked for on its tile, and made under a veil there. */
.fl-vector { display: flex; width: 100%; min-height: 1.875rem; margin-top: 0.375rem; padding: 0 0.5rem; font-size: 0.76rem; white-space: nowrap; }
.fl-vector .ico { width: 0.875rem; height: 0.875rem; }
.fl-making { position: absolute; inset: 0 0 auto; aspect-ratio: 1; display: grid; place-content: center; justify-items: center; gap: 0.375rem; padding: 0.5rem; border-radius: 0.875rem; background: rgba(8, 8, 14, 0.8); color: #fff; font-size: 0.74rem; font-weight: 700; line-height: 1.25; text-align: center; backdrop-filter: blur(2px); }
.fl-making .ico { width: 1.5rem; height: 1.5rem; color: var(--lime); animation: pulse 1.2s ease-in-out infinite; }
.fl-tile.fresh { border-color: var(--lime); box-shadow: 0 0 0 0.25rem rgba(200, 255, 46, 0.2); }
.fl-made { display: grid; gap: 0.625rem; justify-items: center; }
.fl-made .fl-cell { width: min(13.75rem, 60%); }

/* Stickers on a guest's magnet (public/js/sticker-editor.js) */
.sk-frame { position: relative; display: inline-block; line-height: 0; }
.sk-layer { position: absolute; inset: 0; outline: none; }
/* As it prints: what lies past the magnet's edge is cut off there. */
.sk-still { pointer-events: none; overflow: hidden; }
.sk-item { position: absolute; touch-action: none; }
.sk-item img { display: block; width: 100%; height: 100%; pointer-events: none; user-select: none; -webkit-user-select: none; }
.sk-item.on { outline: 2px dashed rgba(255, 255, 255, 0.95); outline-offset: 0.1875rem; border-radius: 0.5rem; }
.sk-remove { position: absolute; top: -1rem; left: -1rem; display: grid; place-items: center; width: 1.875rem; height: 1.875rem; padding: 0; border: 2px solid #fff; border-radius: 50%; background: #e5484d; color: #fff; box-shadow: 0 2px 0.375rem rgba(0, 0, 0, 0.45); }
.sk-remove svg { width: 1rem; height: 1rem; }
.sk-grip { position: absolute; right: -0.875rem; bottom: -0.875rem; width: 1.75rem; height: 1.75rem; border: 2px solid #fff; border-radius: 50%; background: var(--lime); box-shadow: 0 2px 0.375rem rgba(0, 0, 0, 0.45); cursor: grab; }
/* In a photo's view the picture leans a little: the stickers lean with it, and are not pictures of their own. */
.kmodal .shot .sk-frame { transform: rotate(-1.2deg); }
.kmodal .shot .sk-frame > img { transform: none; }
.kmodal .shot .sk-item img { max-height: none; border-radius: 0; box-shadow: none; background: none; transform: none; }
/* A strip leans already: its stickers lean with it, once. */
.kmodal .shot .strip-paper .sk-frame { transform: none; }
/* The crew's view of a photo (public/js/event.js): its stickers are not pictures of their own either. */
.viewer .shot .sk-item img { max-height: none; border-radius: 0; box-shadow: none; background: none; }
/* In front of the others, or behind them: under the magnet, while a sticker is picked. */
.sk-order { display: flex; justify-content: center; gap: 0.5rem; }
.sk-editor { display: grid; gap: 0.625rem; }
.sk-editor h2 { margin: 0; }
.sk-editor .sk-frame { justify-self: center; touch-action: none; user-select: none; -webkit-user-select: none; }
.sk-editor .sk-magnet { display: block; max-width: 100%; max-height: 46vh; max-height: 46dvh; border-radius: 0.25rem; box-shadow: 0 2px 0.1875rem rgba(0, 0, 0, 0.5), 0 1.5rem 3.125rem -1.5rem #000; }
.sk-layer:focus-visible { box-shadow: 0 0 0 0.1875rem rgba(200, 255, 46, 0.4); }
.sk-groups { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.sk-tray { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, 4rem); grid-auto-columns: 4rem; gap: 0.5rem; overflow-x: auto; padding: 2px 2px 0.375rem; overscroll-behavior-x: contain; }
.sk-pick { width: 4rem; height: 4rem; padding: 0.4375rem; border: 1px solid var(--line-2); border-radius: 1rem; background: rgba(255, 255, 255, 0.05); transition: transform 0.12s, background 0.12s; }
.sk-pick:hover { background: rgba(255, 255, 255, 0.1); }
.sk-pick:active { transform: scale(0.92); }
.sk-pick:disabled { opacity: 0.4; }
.sk-pick img { display: block; width: 100%; height: 100%; }
.is-kiosk .sk-tray { grid-template-rows: repeat(2, 4.875rem); grid-auto-columns: 4.875rem; }
.is-kiosk .sk-pick { width: 4.875rem; height: 4.875rem; }

/* Admin: statistics */
.stats-tools { justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.875rem; }
.stats-org { max-width: 18.75rem; }
.stats-note { color: var(--muted); font-size: 0.8125rem; margin: 0 0 1rem; text-wrap: pretty; }
.live-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.75rem; padding: 1rem 1.25rem; margin-bottom: 1.125rem; }
.live-item { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 0.75rem; }
.live-item i { grid-row: span 2; width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--line-2); }
.live-item i.on { background: var(--lime); box-shadow: 0 0 0 0.25rem rgba(200, 255, 46, 0.18); animation: live-pulse 1.8s ease-in-out infinite; }
.live-item b { font: 700 1.5rem/1 var(--display); }
.live-item span { color: var(--muted); font-size: 0.8125rem; }
@keyframes live-pulse { 50% { box-shadow: 0 0 0 0.4375rem rgba(200, 255, 46, 0.08); } }
.kpi-row.stats-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.delta { font-size: 0.8125rem; font-weight: 700; }
.kpi small.delta.up { color: var(--mint); }
.kpi small.delta.down { color: var(--pink); }
.kpi small.delta.flat { color: var(--muted); font-weight: 500; }
.minis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.625rem; margin-bottom: 1.125rem; }
.mini { padding: 0.75rem 0.875rem; display: grid; gap: 2px; align-content: start; }
.mini b { font: 700 1.25rem/1.1 var(--display); }
.mini span { color: var(--muted); font-size: 0.75rem; }
.charts.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.charts.one { grid-template-columns: 1fr; }
.speed.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hbars { display: grid; gap: 0.625rem; align-content: start; }
.hbar { display: grid; grid-template-columns: minmax(6.875rem, 1fr) 2fr auto auto; align-items: center; gap: 0.625rem; font-size: 0.875rem; }
.hbar-track { height: 0.625rem; border-radius: 0.3125rem; background: var(--line); overflow: hidden; }
.hbar-track i { display: block; width: 0; height: 100%; border-radius: 0.3125rem; background: var(--grad); transition: width 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.hbar-n { font-variant-numeric: tabular-nums; }
.hbar-pct { color: var(--muted); min-width: 3.2em; text-align: end; font-variant-numeric: tabular-nums; }
.hours { display: grid; grid-template-columns: 8.125rem 1fr; align-items: center; gap: 0.75rem; }
.hours-label { color: var(--muted); font-size: 0.8125rem; }
.hours-cells { display: grid; grid-template-columns: repeat(24, 1fr); gap: 0.1875rem; direction: ltr; }
.hours-cells i { height: 1.625rem; border-radius: 0.3125rem; background: rgba(200, 255, 46, calc(0.07 + var(--k) * 0.93)); }
.hours-scale { display: grid; grid-template-columns: repeat(24, 1fr); gap: 0.1875rem; direction: ltr; color: var(--muted); font-size: 0.6875rem; text-align: center; }
.funnel { display: grid; gap: 0.75rem; align-content: start; }
.funnel-step { display: grid; gap: 0.3125rem; }
.funnel-bar { height: 0.875rem; border-radius: 0.4375rem; background: var(--line); overflow: hidden; }
.funnel-bar i { display: block; width: 0; height: 100%; border-radius: 0.4375rem; background: var(--grad); transition: width 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.funnel-text { display: flex; align-items: baseline; gap: 0.5rem; font-size: 0.875rem; }
.funnel-text b { font: 700 1.125rem/1 var(--display); }
.funnel-text small { color: var(--muted); margin-inline-start: auto; }
.speed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; align-content: start; }
.speed div { padding: 0.75rem 0.875rem; border-radius: 0.75rem; background: rgba(255, 255, 255, 0.04); }
.speed b { display: block; font: 700 1.375rem/1.1 var(--display); }
.speed span { color: var(--muted); font-size: 0.8125rem; }
.stat-cell small { display: block; color: var(--muted); font-size: 0.75rem; }
@media (max-width: 1100px) {
  .kpi-row.stats-kpis, .minis, .live-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .charts.three { grid-template-columns: 1fr; }
  .speed.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Settings: the AI effects' categories, a chip each; one a regular event has no effects in is shown locked.
   A category with only some of its effects ticked is outlined, not filled. Under the chips, each
   category opens onto those effects, so one can be unticked on its own. */
.fx-cats { margin-top: 0.25rem; }
.fx-cats .chip:disabled { opacity: 0.45; cursor: not-allowed; }
.fx-cats .chip.partial { background: transparent; border-color: var(--lime); color: var(--text); box-shadow: inset 0 0 0 1px var(--lime); }
.fx-picks { display: grid; gap: 0.5rem; min-width: 0; }
.fx-cat { border: 1px solid var(--line); border-radius: 0.75rem; background: rgba(255, 255, 255, 0.03); min-width: 0; }
.fx-cat > summary { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.5rem 0.75rem; font-weight: 700; cursor: pointer; }
.fx-cat > summary small { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.fx-picks .fx-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.375rem, 1fr)); gap: 0.5rem; padding: 0 0.625rem 0.625rem; min-width: 0; }
.fx-one { position: relative; display: block; margin: 0; border: 1px solid var(--line-2); border-radius: 0.75rem; overflow: hidden; background: var(--card-2); cursor: pointer; min-width: 0; }
.fx-one input { position: absolute; top: 0.375rem; inset-inline-start: 0.375rem; width: 1.125rem; height: 1.125rem; margin: 0; accent-color: #c8ff2e; }
.fx-one img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.fx-one span { display: block; padding: 0.375rem 0.5rem 0.5rem; font-size: 0.8125rem; font-weight: 700; line-height: 1.25; }
.fx-one.on { border-color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime); }
.fx-one:not(.on) img { filter: grayscale(0.85); opacity: 0.72; }
.fx-one:focus-within { outline: 2px solid var(--lime); outline-offset: 2px; }
.fx-one input:disabled { cursor: not-allowed; }

/* ---------- Native motion: the same look, with movement that stays on the compositor ---------- */
/* Chrome that stays put while the page under it cross-fades. A browser that cannot name a transition ignores these. */
@media (min-width: 1001px) { .side { view-transition-name: app-side; } }
.main-top { view-transition-name: app-top; }
.nav-wrap { view-transition-name: site-nav; }
.sup-bar { view-transition-name: support-bar; }
.kbar { view-transition-name: guest-bar; }
::view-transition-group(app-side),
::view-transition-group(app-top),
::view-transition-group(site-nav),
::view-transition-group(support-bar),
::view-transition-group(guest-bar) { animation-duration: 0s; }
/* A tab change fades only the panel. The page's own cross-fade is left to real navigations. */
.panel-area.enter { animation: vt-in var(--move) var(--ease-out); }
@supports (view-transition-name: none) { .main .wrap { animation: none; } }

/* Safe areas: the home indicator and the notch, without moving anything where there is none. */
.nav-wrap { top: max(0.875rem, env(safe-area-inset-top)); }
.main-top { padding-top: max(0.625rem, env(safe-area-inset-top)); }
.side { padding-top: max(1.25rem, env(safe-area-inset-top)); padding-bottom: max(1.25rem, env(safe-area-inset-bottom)); }
.kbar { padding-top: max(0.875rem, env(safe-area-inset-top)); }
.is-kiosk .kbar { padding-top: max(1rem, env(safe-area-inset-top)); }
.is-guest .kbar { padding-top: max(1.125rem, env(safe-area-inset-top)); }
.footer { padding-bottom: max(2.5rem, calc(1.5rem + env(safe-area-inset-bottom))); }
.guest-foot { padding-bottom: max(1.25rem, env(safe-area-inset-bottom)); }
.main .wrap { padding-bottom: max(5.625rem, calc(4.375rem + env(safe-area-inset-bottom))); }
#toasts { bottom: max(1.375rem, calc(0.75rem + env(safe-area-inset-bottom))); }
body.has-strip #toasts { bottom: max(6.5rem, calc(5.75rem + env(safe-area-inset-bottom))); }
/* A sheet covers the foot of the screen. A toast there sits on its buttons, so it moves up. */
body:has(.overlay) #toasts { top: max(1rem, env(safe-area-inset-top)); bottom: auto; }

/* Scroll containers keep their own momentum and do not drag the page with them. */
.tabs, .chips-scroll, .chips-row.scroll, .people-strip, .menu-list, .when-pop, .modal, .kmodal, .viewer-side, .wiz-body, .wiz-rail, .news-list, .sk-tray, .table-wrap, .nav-sheet {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Pressed, not hovered: a finger leaves :hover stuck, so the lift belongs to a real pointer. */
@media (hover: none) {
  .card.glow:hover, .card.kpi:hover, .event-card:hover, .btn:hover:not(:disabled), .chip:hover, .wall .mag:hover, .fx-card:hover, .aside-card:hover { transform: none; }
  .when-day:hover:not(.on), .when-cell:hover:not(.on) { background: transparent; border-color: transparent; }
  .when-open:hover:not([aria-expanded='true']) { color: var(--muted); background: transparent; }
  .btn:hover:not(:disabled) .ico, .event-card:hover .cover img, .use:hover img { transform: none; }
}
a.card:active, button.card:active, .side-link:active, .tab:active, .chip:active, .person-chip:active, .format:active, .style:active, .choice:active, .menu-list li:active, button.photo:active, .nav-sheet a:active, .bill-toggle button:active {
  transform: scale(0.98);
  transition-duration: var(--move-fast);
}

/* Menus open from the control; closing is the same move, backwards. */
.menu-list { transform-origin: top center; animation: menu-in var(--move-fast) var(--ease-out) both; }
.menu-list.up { transform-origin: bottom center; animation-name: menu-in-up; }
.menu-list.out { animation: menu-out var(--move-fast) var(--ease-in) both; pointer-events: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-0.375rem) scale(0.98); } }
@keyframes menu-in-up { from { opacity: 0; transform: translateY(0.375rem) scale(0.98); } }
@keyframes menu-out { to { opacity: 0; transform: translateY(-0.25rem); } }
.nav-sheet:not([hidden]) { animation: vt-in var(--move) var(--ease-out); }
.nav-sheet.out { animation: vt-out var(--move-fast) var(--ease-in); }
.side.open + .side-backdrop { animation: fade var(--move-fast) var(--ease-out); }

/* Dialogs: fade and settle on a wide screen, a sheet from the bottom on a phone. */
.overlay { overscroll-behavior: contain; }
.overlay.out { animation: fade-out var(--move-fast) var(--ease-in) both; pointer-events: none; }
@keyframes fade-out { to { opacity: 0; } }
.overlay > .card { animation: modal-in var(--move) var(--ease-out) both; }
.overlay.out > .card { animation: modal-out var(--move-fast) var(--ease-in) both; }
@keyframes modal-out { to { opacity: 0; transform: translateY(0.5rem) scale(0.98); } }
.sheet-grab { display: none; }
@media (max-width: 640px) {
  .overlay:has(> .modal), .overlay:has(> .kmodal) { align-items: end; padding: 0; }
  .overlay > .card { position: relative; }
  .overlay > .modal, .overlay > .kmodal {
    width: 100%; max-width: 100%; max-height: 92dvh;
    border-radius: var(--radius) var(--radius) 0 0;
    padding-bottom: max(1.125rem, env(safe-area-inset-bottom));
    animation-name: sheet-in; animation-duration: var(--move-slow);
  }
  .overlay.out > .modal, .overlay.out > .kmodal { animation-name: sheet-out; }
  .kmodal::before { content: none; }
  .sheet-grab {
    display: block; position: absolute; z-index: 3; top: 0.5rem; left: 50%; width: 2.75rem; height: 0.3125rem;
    border-radius: 0.1875rem; background: var(--line-2); transform: translateX(-50%); touch-action: none;
  }
  /* The wizard and the writing desk already fill the screen; a handle would sit on their first row. */
  .wiz-modal > .sheet-grab, .we-modal > .sheet-grab { display: none; }
}
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes sheet-out { to { transform: translateY(100%); } }

/* Toasts, including ones with a button (the update note, and any undo). */
.toast { animation: toast-in var(--move) var(--ease-out) both; }
.toast.out { animation: toast-out var(--move-fast) var(--ease-in) both; pointer-events: none; }
@keyframes toast-out { to { opacity: 0; transform: translateY(0.625rem) scale(0.98); } }
.form-error:not([hidden]) { animation: form-shake var(--move) var(--ease-out); }
@keyframes form-shake {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-0.25rem); }
  70% { transform: translateX(0.25rem); }
}

/* A person card answers the finger, and a selected one eases its border in. */
.person { transition: border-color var(--move) var(--ease-out), background-color var(--move) var(--ease-out), transform var(--move-fast) var(--ease-out), box-shadow var(--move) var(--ease-out); }
.person:active { transform: scale(0.985); }
.person.on { animation: select-in var(--move) var(--ease-out); }
@keyframes select-in { from { border-color: var(--line); } }
.pick { transition: opacity var(--move-fast) var(--ease-out), transform var(--move-fast) var(--ease-out); }
.pick:active { transform: scale(0.92); }
.faces-advanced summary { cursor: pointer; }

/* Rows that appear, leave, or are born inside a list. Movement between places is done in script, with transform. */
.item-in { animation: item-in var(--move) var(--ease-out) both; }
.item-out { animation: item-out var(--move-fast) var(--ease-in) both; pointer-events: none; }
@keyframes item-in { from { opacity: 0; transform: translateY(0.5rem) scale(0.98); } }
@keyframes item-out { to { opacity: 0; transform: scale(0.96); } }

/* Pictures fade in over the placeholder that is already their size, so nothing jumps. */
html.js .photos .photo:not(.upload-tile):not(:has(img.in))::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
  animation: shimmer 1.3s linear infinite;
}
html.js .photos .photo img, html.js .cover img, html.js .avatar img { transition: opacity var(--move) var(--ease-out), transform var(--move) var(--ease-out), filter var(--move) var(--ease-out); }
html.js .photos .photo:not(.upload-tile) img:not(.in), html.js .cover img:not(.in), html.js .avatar img:not(.in) { opacity: 0; }
html.js .photos .photo.hidden img.in { opacity: 0.3; }
.use img, .fx-item > img, .wall .mag img, .float > img { animation: img-in var(--move-slow) var(--ease-out) both; }
@keyframes img-in { from { opacity: 0; } }

/* A loop that has left the screen, or a tab that is not in front, stops spending frames. */
.aurora.rest i,
.wall-row.rest,
.fx-strip.rest,
.plan.hot.rest .plan-ring i,
.float.rest { animation-play-state: paused; }
html.tab-hidden *,
html.tab-hidden *::before,
html.tab-hidden *::after { animation-play-state: paused !important; }

/* The public menu, the drawers and the sheets honour the same reduced-motion switch as the rest. */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: 0s !important; animation-delay: 0s !important; }
  .panel-area.enter, .nav-sheet, .nav-sheet.out, .item-in, .item-out, .form-error:not([hidden]), .light-working .ico, .light-apply.busy .ico { animation: none !important; }
  .light-switch, .shot img { transition: none !important; }
  .shot img.light-swap { opacity: 1 !important; }
}

/* The operator's trash. A row is a thumbnail, what it is, and the two actions. */
.trash-list { display: flex; flex-direction: column; gap: 0.75rem; }
.trash-item { display: flex; align-items: center; gap: 0.875rem; padding: 0.75rem 0.875rem; }
.trash-thumb { width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: 0.625rem; background: var(--card-2); flex: none; }
.trash-thumb.empty { display: grid; place-items: center; color: var(--muted); }
.trash-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.trash-name { display: flex; align-items: baseline; gap: 0.5rem; min-width: 0; }
.btn.busy { cursor: wait; }
.btn.busy .ico { animation: spin 0.8s linear infinite; }
.trash-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trash-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; }
.trash-empty { text-align: center; padding: 3rem 1.25rem; }
.trash-empty h2 { justify-content: center; }
.deleted-events { margin-top: 1.75rem; padding: 0.75rem 1rem; }
.deleted-events summary { cursor: pointer; display: flex; align-items: center; gap: 0.5rem; font-weight: 600; list-style: none; }
.deleted-events summary::-webkit-details-marker { display: none; }
.deleted-count { color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 62.4375rem; padding: 0 0.5rem; font-size: 0.75rem; line-height: 1.25rem; font-weight: 500; }
.deleted-events summary .chevron { margin-inline-start: auto; transition: transform 150ms ease; }
[dir='rtl'] .deleted-events summary .chevron { transform: rotate(180deg); }
.deleted-events[open] summary .chevron,
[dir='rtl'] .deleted-events[open] summary .chevron { transform: rotate(90deg); }
.deleted-events .trash-list { margin-top: 0.75rem; }
@media (max-width: 640px) {
  .trash-item { flex-wrap: wrap; }
  .trash-actions { width: 100%; }
}

/* «שפר תאורה»: the two versions of one photo, and which of them prints. */
.light-host { display: grid; gap: 0.5rem; }
.light-working { display: flex; align-items: center; gap: 0.5rem; margin: 0; }
.light-working .ico { animation: spin 1s linear infinite; }
.light-failed { margin: 0; color: var(--red); font-weight: 700; }
.light-apply:active, .light-apply.is-busy { transform: scale(0.97); filter: brightness(1.2); }
.light-apply.busy { cursor: wait; }
.light-apply.busy .ico { animation: spin 0.8s linear infinite; }
.is-kiosk .light-apply { min-height: 3rem; padding: 0.875rem 1.375rem; font-size: 1.125rem; }
.light-progress { margin: 0 0 0.75rem; }
/* The switch sits on the photo. Compact to look at, and still a full finger target. */
.viewer .shot, .kmodal .shot { position: relative; }
.shot img { transition: opacity 0.28s ease; }
.shot img.light-swap { opacity: 0.45; }
.light-switch {
  position: absolute; z-index: 4; inset-block-start: 0.75rem; inset-inline-start: 0.75rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
  min-height: 2.75rem; min-width: 2.75rem; padding: 0.5rem 0.875rem; border-radius: 62.4375rem;
  border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(14, 14, 20, 0.88); color: #fff;
  font: 800 0.875rem/1 var(--display); box-shadow: 0 0.5rem 1.375rem -0.75rem #000; cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.light-switch .ico { width: 1rem; height: 1rem; color: var(--lime); }
.light-switch:hover { border-color: var(--lime); }
.light-switch:active { transform: scale(0.96); }
.light-switch:focus-visible { outline: 2px solid var(--lime); outline-offset: 0.1875rem; }
.light-switch[data-selected='light'] { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.light-switch.is-busy { opacity: 0.6; pointer-events: none; cursor: wait; }

/* The stand's business card, over the magnet flow, and the callback list. */
.card-corner { position: fixed; z-index: 45; inset-block-start: 1rem; inset-inline-start: 1rem; display: flex; align-items: center; gap: 0.5rem; min-height: 3rem; padding: 0.625rem 1rem; border-radius: 62.4375rem; border: 1px solid var(--line-2); background: rgba(18, 18, 28, 0.92); color: var(--text); box-shadow: var(--shadow); font: 700 0.9375rem/1.2 var(--display); }
.card-corner[hidden] { display: none; }
.card-corner:active { transform: scale(0.97); }
.card-corner .ico { width: 1.25rem; height: 1.25rem; }
.card-sheet { position: fixed; inset: 0; z-index: 70; overflow: auto; padding: 1.5rem 1.25rem 2rem; background: var(--bg); animation: fade 0.18s ease; }
.card-panel { width: min(40rem, 100%); margin: 0 auto; display: grid; gap: 1.125rem; }
.card-top { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.card-top > div { flex: 1; min-width: 0; display: grid; gap: 0.25rem; }
.card-top h2 { font: 700 1.75rem/1.15 var(--display); overflow-wrap: anywhere; }
.card-person { font-weight: 700; color: var(--lime); }
.card-phone { font: 700 1.25rem/1.3 var(--display); }
.card-logo { width: 4.5rem; height: 4.5rem; object-fit: contain; border-radius: 1rem; background: #fff; }
.card-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.card-links a { display: inline-flex; align-items: center; min-height: 3rem; padding: 0.5rem 0.875rem; border-radius: 62.4375rem; border: 1px solid var(--line-2); overflow-wrap: anywhere; }
.card-ask { display: grid; gap: 0.75rem; padding: 1.125rem; border-radius: 1.125rem; border: 1px solid var(--line-2); background: var(--card); }
.card-ask h3 { font: 700 1.375rem/1.2 var(--display); }
.card-form { display: grid; gap: 0.75rem; }
.card-form .field input, .card-sheet .btn { min-height: 3rem; }
.card-consent { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.9375rem; line-height: 1.45; }
.card-consent input { width: 1.375rem; height: 1.375rem; margin-top: 2px; flex: none; accent-color: var(--lime); }
.card-thanks { display: grid; justify-items: center; gap: 0.75rem; padding: 3rem 0.75rem; text-align: center; }
.card-thanks h2 { font: 700 1.75rem/1.2 var(--display); }
.lead-list { display: grid; gap: 0.75rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.lead { display: grid; gap: 0.375rem; padding: 0.875rem 1rem; border-radius: 1rem; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.18); }
.lead p, .lead a { overflow-wrap: anywhere; }
.lead-search .field { flex: 1 1 11.25rem; min-width: 0; }
.card-settings .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 720px) {
  .card-sheet { padding: 1rem 0.875rem 1.5rem; }
  .card-top h2, .card-thanks h2 { font-size: 1.5rem; }
  .card-settings .pair { grid-template-columns: 1fr; }
  .card-corner { max-width: calc(100vw - 2rem); }
}
@media (prefers-reduced-motion: reduce) { .card-sheet { animation: none; } }

/* Clients, quotes and the calendar. The columns fill a desktop screen; each list scrolls on its own. */
.account-wide { grid-column: 1 / -1; }
.crm-tools { align-items: center; margin-bottom: 0.75rem; }
.crm-tools .input { max-width: 20rem; }
.crm-board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; height: calc(100vh - 13.125rem); min-height: 26.25rem; }
.crm-col { display: flex; flex-direction: column; min-height: 0; padding: 0.75rem; }
.crm-col h2 { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.9375rem; margin: 0 0 0.5rem; }
.crm-list { overflow: auto; display: grid; gap: 0.5rem; align-content: start; }
.crm-card { display: grid; gap: 2px; padding: 0.625rem 0.75rem; border-radius: 0.75rem; background: rgba(255, 255, 255, 0.04); text-decoration: none; color: inherit; }
.crm-card:hover { background: rgba(255, 255, 255, 0.08); }
.crm-card span, .crm-card b { overflow-wrap: anywhere; }
.crm-fit { display: grid; grid-template-columns: minmax(16.25rem, 20rem) minmax(0, 1fr) minmax(17.5rem, 22.5rem); gap: 0.875rem; align-items: start; }
.crm-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(17.5rem, 0.8fr); gap: 0.875rem; align-items: start; }
.crm-stack { display: grid; gap: 0.75rem; align-content: start; }
.crm-scroll { max-height: calc(100vh - 10rem); overflow: auto; }
.crm-notes, .crm-lines { display: grid; gap: 0.5rem; }
.crm-note { padding-bottom: 0.5rem; border-bottom: 1px solid var(--line); }
.crm-note p { margin: 0 0 0.25rem; }
.crm-line { display: grid; grid-template-columns: minmax(0, 1.4fr) 4.5rem 6.875rem 2.25rem; gap: 0.5rem; align-items: center; }
.crm-span { grid-column: 1 / -1; }
.crm-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.crm-share .share-url { word-break: break-all; font-size: 0.8125rem; }
.share-totals { display: grid; gap: 0.375rem; }
.share-fig { display: flex; justify-content: space-between; gap: 0.75rem; }
.share-fig b { font-variant-numeric: tabular-nums; }
.crm-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.375rem; }
.crm-dow { color: var(--muted); font-size: 0.8125rem; font-weight: 700; padding: 0 0.375rem; }
.crm-day { min-height: 6.75rem; padding: 0.5rem; border-radius: 0.75rem; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); display: grid; align-content: start; gap: 0.25rem; }
.crm-day.mute { background: transparent; border-color: transparent; }
.crm-day.conflict { border-color: rgba(255, 178, 36, 0.55); }
.crm-pill { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.75rem; font-weight: 700; text-decoration: none; color: var(--text); background: rgba(200, 255, 46, 0.12); border-radius: 0.5rem; padding: 2px 0.375rem; }
.crm-pill.hold { background: rgba(255, 178, 36, 0.16); }
.is-share { background: var(--bg); }
.share { width: min(42.5rem, 100%); margin: 0 auto; padding: 1.25rem 1rem 4rem; display: grid; gap: 0.875rem; }
.share-brand { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 1rem; border-radius: 1rem; border: 1px solid var(--line); background: color-mix(in srgb, var(--share, var(--lime)) 18%, transparent); }
.share-brand img { width: 3rem; height: 3rem; object-fit: contain; background: #fff; border-radius: 0.625rem; }
.share h1 { margin: 0 0 0.375rem; font-size: 1.75rem; }
.share-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem 1rem; margin: 0.75rem 0; }
.share-facts div { display: grid; gap: 2px; }
.share-facts dt { color: var(--muted); font-size: 0.8125rem; }
.share-facts dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.share-doc { white-space: pre-wrap; line-height: 1.6; overflow-wrap: anywhere; }
.share-actions { margin-top: 0.5rem; }
.share canvas { width: 100%; height: 11.25rem; background: #fff; border-radius: 0.75rem; touch-action: none; }
.share-drawing { width: min(100%, 26.25rem); background: #fff; border-radius: 0.75rem; }
.share-hash { font-size: 0.75rem; word-break: break-all; color: var(--muted); }
.dtable td.num-cell { text-align: end; }
@media (min-width: 1101px) {
  .crm-split > .card, .crm-fit > .card { max-height: calc(100vh - 9.25rem); overflow: auto; }
}
@media (max-width: 1100px) {
  .crm-board { grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; }
  .crm-fit, .crm-split, .crm-settings { grid-template-columns: 1fr; }
  .crm-scroll { max-height: none; }
}
@media (max-width: 720px) {
  .crm-board, .share-facts, .crm-line { grid-template-columns: 1fr; }
  .crm-cal { gap: 0.25rem; }
  .crm-day { min-height: 4.5rem; padding: 0.25rem; }
  .crm-pill { font-size: 0.6875rem; }
  .share h1 { font-size: 1.5rem; }
}
@media (max-width: 1280px) and (max-height: 720px) {
  .crm-board { height: auto; min-height: 0; }
  .crm-day { min-height: 4rem; }
}

/* The end-of-event report, for the operator and for the couple who open the link. */
.report-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 0.75rem 0; }
.report-facts b { display: block; font-size: 1.75rem; font-variant-numeric: tabular-nums; }
.report-list { display: grid; gap: 0.75rem; }
.report-guest h2 { margin: 0 0 0.375rem; font-size: 1.125rem; }
.report-guest p { margin: 0 0 0.375rem; overflow-wrap: anywhere; }
.report-photos, .report-top { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.report-photos img, .report-top img { width: 6rem; height: 6rem; object-fit: cover; border-radius: 0.625rem; background: #111; }
.report-top { margin-top: 0.5rem; }
.report-top figure { margin: 0; }
.report-top figcaption { font-size: 0.75rem; color: var(--muted); }
@media (max-width: 720px) {
  .report-facts { grid-template-columns: 1fr; }
  .report-photos img, .report-top img { width: 4.5rem; height: 4.5rem; }
}

