/* ═══════════════════════════════════════════════════════════ the wedding palette
   The commercial screens wear the same stationery as the booth's own: cream paper, warm ink,
   champagne for the thing to press, a deep rose for anything wrong. Light is the base here,
   because these are pages read in daylight on a laptop rather than a screen in a dim room.

   Fonts are whatever the machine already has. Nothing is fetched to render a page. */
:root:not([data-look="camera"]) {
  /* Which way this page is painted, so a browser with "force dark" on leaves it alone rather
     than inverting what it takes for light. */
  color-scheme: light;
  --bg: #f3ebdf; --card: #fdfaf3; --ink: #3b2f28; --dim: #8a7867; --line: #e5d8c5;
  --accent: #a23b4b; --accent2: #c9a35d; --ok: #55763f; --warn: #9a6a24; --shadow: 0 10px 40px #3b2f2814;
  /* Champagne, symmetric so the moving sweep loops seamlessly. Text on it is a dark gold-brown. */
  --btn: linear-gradient(120deg, #dcbc82 0%, #f4e3c2 26%, #c9a35d 52%, #f4e3c2 78%, #dcbc82 100%);
  --btn-ink: #3a2a0a;
  --font-display: var(--font-body);
  --font-body: Nunito, "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --font-hand: Caveat, "Bradley Hand", "Chalkboard SE", "Segoe Script", cursive;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-look="camera"]) { color-scheme: dark; --bg: #17120f; --card: #241c18; --ink: #f7eee2; --dim: #b9a795; --line: #3b2e26; --accent: #e4909a; --shadow: 0 10px 40px #0007; }
}
:root[data-theme="dark"]:not([data-look="camera"]) { color-scheme: dark; --bg: #120e0c; --card: #241c18; --ink: #f7eee2; --dim: #b9a795; --line: #3b2e26; --accent: #e4909a; --shadow: 0 10px 40px #0007; }

/* ── The camera look, for `data-look="camera"`. These are the values this file carried before
   the wedding one, unchanged, so choosing it puts the old pages back rather than approximating
   them. See the note at the top of css/host.css for what the two looks are. */
:root[data-look="camera"] {
  color-scheme: light;
  --bg: #faf7fb; --card: #ffffff; --ink: #1a141f; --dim: #6b6472; --line: #e7e2ec;
  --accent: #d70015; --accent2: #ff9f0a; --ok: #1e7f4d; --warn: #a35a00; --shadow: 0 10px 40px #1a141f14;
  --btn: linear-gradient(120deg, #ffd60a 0%, #ffe14d 26%, #ffc300 52%, #ffe14d 78%, #ffd60a 100%);
  --btn-ink: #191500;
  --font-display: -apple-system, system-ui, "Segoe UI", sans-serif;
  --font-body: -apple-system, system-ui, "Segoe UI", sans-serif;
  --font-hand: Caveat, "Bradley Hand", "Chalkboard SE", "Segoe Script", cursive;
  --head-weight: 800; --head-track: -0.02em;
  --tape-ink: #1a1206; --tape-bg: #f7c948; --tape-ink2: #1a1206; --tape-bg2: #f7c948;
}
@media (prefers-color-scheme: dark) {
  :root[data-look="camera"]:not([data-theme="light"]) { color-scheme: dark; --bg: #15111b; --card: #1c1b21; --ink: #f6f1ef; --dim: #b3a7bd; --line: #2e2c36; --shadow: 0 10px 40px #0006; }
}
:root[data-look="camera"][data-theme="dark"] { color-scheme: dark; --bg: #0d0d0f; --card: #1c1c1e; --ink: #f5f5f7; --dim: #9a9aa0; --line: #2e2c36; --accent: #ff453a; --shadow: 0 10px 40px #0006; }

* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.55 var(--font-body); color: var(--ink); background: var(--bg); }
a { color: var(--accent); }
/* Every heading is set in the serif. A tight negative tracking is how a start-up page shouts;
   an invitation lets its letters breathe, and it is most of the difference between the two. */
h1, h2, h3, .brand, .modal h2, .auth h2 {
  font-family: var(--font-display);
  font-weight: var(--head-weight, 600);
  letter-spacing: var(--head-track, 0.01em);
}
.hero h1, .lp-hero h1 { font-weight: var(--head-weight, 600); letter-spacing: var(--head-track, 0.005em); }
.stat b, .num, [class*="-num"] { font-variant-numeric: lining-nums tabular-nums; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }

.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { font-weight: 600; letter-spacing: 0.02em; font-size: 19px; display: flex; gap: 8px; align-items: center; }
/* The Yuno wordmark (2.807.0): the logo as drawn, at the height of a line of the nav. */
.brand-logo { display: block; height: 28px; width: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 9px 15px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--btn); color: var(--btn-ink); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: default; }

/* Landing hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 40px 0 60px; }
.hero h1 { font-size: 46px; line-height: 1.08; margin: 0 0 16px; }
.hero p.lead { font-size: 18px; color: var(--dim); margin: 0 0 24px; max-width: 46ch; }
.hero .points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hero .points li { display: flex; gap: 10px; }
.hero .points li::before {
  content: ''; flex: none; width: 1.15em; height: 1.15em; margin-top: 1px; background: var(--ok);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5 11-11'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5 11-11'/%3E%3C/svg%3E") center/contain no-repeat;
}
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } .hero h1 { font-size: 34px; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.auth h2 { margin: 0 0 4px; font-size: 20px; }
.auth .sub { color: var(--dim); margin: 0 0 18px; font-size: 14px; }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--dim); }
.field input { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg); color: var(--ink); font-size: 15px; }
.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.socials { display: grid; gap: 8px; margin-bottom: 16px; }
.social { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); color: var(--ink); font-weight: 600; cursor: pointer; font: inherit; transition: background .12s ease, box-shadow .12s ease; }
.social-ico { width: 18px; height: 18px; flex: none; }
.social .soon { color: var(--dim); font-size: 12px; font-weight: 500; }

/* Official brand colors per provider */
.social[data-provider="google"] { background: #fff; color: #3c4043; border-color: #dadce0; }
.social[data-provider="google"]:hover { background: #f7f8f8; box-shadow: 0 1px 2px rgba(60,64,67,.18); }
.social[data-provider="facebook"] { background: #1877f2; color: #fff; border-color: #1877f2; }
.social[data-provider="facebook"]:hover { background: #166fe5; }
.social[data-provider="apple"] { background: #000; color: #fff; border-color: #000; }
.social[data-provider="apple"]:hover { background: #1a1a1a; }
.social[data-provider="facebook"] .soon,
.social[data-provider="apple"] .soon { color: rgba(255,255,255,.75); }
/* The hidden attribute must win over the display:flex above (higher specificity). */
.social[hidden] { display: none !important; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 13px; margin: 6px 0 16px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.err { color: var(--accent); font-size: 13px; min-height: 18px; margin: 2px 0 8px; }
.toggle { text-align: center; color: var(--dim); font-size: 14px; margin-top: 14px; }
.toggle button { background: none; border: 0; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; }

/* The account dashboard (dashboard.html) wears a stylesheet of its own, css/dashboard.css. */

.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow); }

/* In-app modal (replaces the browser's native prompt) */
.modal-backdrop { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; background: #0b0810b3; backdrop-filter: blur(2px); }
.modal { width: 100%; max-width: 380px; }
.modal h2 { margin: 0 0 14px; font-size: 20px; }
.modal-input { width: 100%; box-sizing: border-box; padding: 12px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg); color: var(--ink); font: inherit; font-size: 15px; }
.modal-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.hidden { display: none !important; }

/* Light/dark theme toggle button. */
.theme-toggle {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; flex: none;
  border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--ink);
  cursor: pointer; padding: 0; vertical-align: middle;
}
.theme-toggle:hover { border-color: var(--dim); }

/* Inline SVG icons size to the surrounding text (guards against an unsized icon blowing up). */
.icon { display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; }

/* ======================================================================
   Landing page (lp-*). A conversion-focused marketing page whose CTAs
   open the sign-up modal. Reuses the tokens above so it themes for free.
   ====================================================================== */
.nav-actions { display: flex; gap: 10px; align-items: center; }
.brand-gradient { background: var(--btn); }
body.lp-locked { overflow: hidden; }

/* hero */
.lp-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; padding: 48px 0 40px; }
.lp-hero > * { min-width: 0; }
.lp-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lp-hero h1 { font-size: clamp(35px, 5.2vw, 55px); line-height: 1.08; margin: 0 0 18px; }
.lp-hero .lead { font-size: 18px; color: var(--dim); margin: 0 0 26px; max-width: 48ch; }
.lp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
/* The hero/section CTAs stay a touch larger than a normal button, but not oversized. */
.lp-cta-lg { padding: 11px 20px; font-size: 15px; border-radius: 11px; }
.lp-trust { margin: 18px 0 0; font-size: 13.5px; color: var(--dim); }

/* hero product mock */
.lp-hero-visual { position: relative; display: grid; place-items: center; min-height: 380px; max-width: 100%; }
.lp-hero-visual::before { content: ''; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(135deg, #ffd60a55, #ff453a44); filter: blur(60px); opacity: 0.55; z-index: 0; }
.lp-phone { position: relative; z-index: 1; width: min(270px, 82%); aspect-ratio: 10 / 19.5; background: #0c0c0f;
  border-radius: 38px; padding: 9px; box-shadow: 0 40px 80px -30px #000a, 0 0 0 1px var(--line); }
.lp-phone::before { content: ''; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 42%; height: 7px; background: #000; border-radius: 999px; z-index: 3; }
.lp-screen { height: 100%; border-radius: 30px; overflow: hidden;
  background: #f3eee9 url('/backgrounds/paper-portrait-1.jpg') center / cover; display: flex; align-items: center; justify-content: center; padding: 20px 14px; }
/* the print is itself the 2x2 grid; aspect-ratio gives it a definite height so the rows split evenly */
.lp-print { width: 100%; aspect-ratio: 2 / 3; background: #ffffffe6; border-radius: 12px; padding: 9px;
  box-shadow: 0 12px 30px -12px #0007; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 7px; }
.lp-cell { border-radius: 8px; min-width: 0; min-height: 0; }
.lp-cell.c1 { background: linear-gradient(135deg, #8b5cf6, #b794f6); }
.lp-cell.c2 { background: linear-gradient(135deg, #2bb673, #6fe3a1); }
.lp-cell.c3 { background: linear-gradient(135deg, #ffd60a, #ffe98a); }
.lp-cell.c4 { background: linear-gradient(135deg, #ff7a4d, #ffb26b); }
img.lp-sticker { width: 100%; height: 100%; object-fit: contain; padding: 5px; background: linear-gradient(135deg, #ffd60a1f, #ff453a1a); }
.lp-scan { position: absolute; z-index: 2; right: 2%; bottom: 8%; display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px 10px 10px; box-shadow: var(--shadow); }
.lp-qr { width: 46px; height: 46px; border-radius: 8px; flex: none; }
.lp-scan-text b { display: block; font-size: 14px; }
.lp-scan-text span { font-size: 12px; color: var(--dim); }

/* trust chips */
.lp-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 8px 0 12px; }
.lp-chip { font-size: 13px; font-weight: 600; color: var(--dim); background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; }
.lp-chip::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px;
  vertical-align: 1px; background: var(--btn); }

/* sections */
.lp-section { padding: 64px 0; border-top: 1px solid var(--line); }
.lp-section-alt { background: var(--card); border-radius: 24px; padding: 56px 40px; margin: 8px 0; border-top: 0; }
.lp-section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.lp-kicker { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent2); margin-bottom: 12px; }
.lp-section-head h2 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.01em; }
.lp-sub { font-size: 17px; color: var(--dim); margin: 0; }

/* steps — each one is a photo just printed from the booth strip: white matte, a photo
   window on top, a caption below, tilted a touch like it was handed to you. */
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.lp-step { position: relative; background: #fff; border-radius: 6px; padding: 12px 12px 4px; color: #1a141f;
  box-shadow: 0 18px 36px -18px #0008, 0 2px 6px #0002; transition: transform .2s ease, box-shadow .2s ease; }
.lp-step:nth-child(1) { transform: rotate(-1.6deg); }
.lp-step:nth-child(2) { transform: rotate(0.9deg); }
.lp-step:nth-child(3) { transform: rotate(-0.8deg); }
.lp-step:hover { transform: rotate(0) translateY(-5px); box-shadow: 0 26px 46px -18px #0009, 0 2px 6px #0002; }
.lp-photo { position: relative; border-radius: 3px; aspect-ratio: 4 / 3; display: grid; place-items: center;
  color: var(--btn-ink); background: var(--btn); overflow: hidden; }
.lp-photo::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 0%, #ffffff33, #0000 62%); }
.lp-photo-ico svg { position: relative; z-index: 1; width: 48px; height: 48px; }
/* Illustrated scene filling the photo window (scan / capture / print). */
.lp-scene { position: relative; z-index: 1; width: 82%; max-width: 260px; display: block; filter: drop-shadow(0 8px 14px rgba(0,0,0,0.16)); }
.lp-scene svg { display: block; width: 100%; height: auto; }
.lp-photo-no { position: absolute; z-index: 2; top: 8px; right: 8px; min-width: 26px; height: 26px; padding: 0 8px;
  display: grid; place-items: center; border-radius: 7px; font-weight: 800; font-size: 14px; color: #fff; background: rgba(0,0,0,0.55); }
.lp-cap { padding: 14px 6px 12px; text-align: center; }
.lp-cap h3 { margin: 0 0 7px; font-size: 18px; color: #1a141f; }
.lp-cap p { margin: 0; color: #5b5560; font-size: 14.5px; }
.lp-mid-cta { text-align: center; margin-top: 38px; }

/* usps */
.lp-usps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-usp { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.lp-usp-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px; color: var(--btn-ink);
  background: var(--btn); }
.lp-usp-ico svg { width: 22px; height: 22px; }
.lp-usp h3 { margin: 0 0 7px; font-size: 17.5px; }
.lp-usp p { margin: 0; color: var(--dim); font-size: 14.5px; }

/* features */
.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 28px; }
.lp-feature { display: flex; gap: 12px; align-items: flex-start; }
.lp-feature .lp-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 6px;
  background: var(--btn); }
.lp-feature b { display: block; font-size: 15.5px; margin-bottom: 2px; }
.lp-feature p { margin: 0; color: var(--dim); font-size: 14px; }

/* use cases */
.lp-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-case { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.lp-case-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px;
  color: var(--accent); background: var(--bg); border: 1px solid var(--line); }
.lp-case-ico svg { width: 23px; height: 23px; }
.lp-case b { display: block; font-size: 17px; margin-bottom: 6px; }
.lp-case p { margin: 0; color: var(--dim); font-size: 14.5px; }

/* faq */
.lp-faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.lp-q { background: var(--bg); border: 1px solid var(--line); border-radius: 13px; padding: 4px 18px; }
.lp-section-alt .lp-q { background: var(--bg); }
.lp-q summary { cursor: pointer; padding: 14px 0; font-weight: 700; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lp-q summary::-webkit-details-marker { display: none; }
.lp-q summary::after { content: '+'; color: var(--accent); font-weight: 700; font-size: 20px; line-height: 1; }
.lp-q[open] summary::after { content: '\2212'; }
.lp-q p { margin: 0 0 16px; color: var(--dim); font-size: 15px; }

/* final CTA band */
.lp-band { text-align: center; border-radius: 24px; padding: 60px 30px; margin: 40px 0 24px;
  background: radial-gradient(90% 120% at 20% 0%, #2a2a2e 0%, #121214 55%, #0a0a0b 100%); color: #fff;
  border: 1px solid #ffffff1f; }
.lp-band h2 { font-size: clamp(26px, 3.6vw, 36px); margin: 0 0 10px; text-shadow: 0 1px 12px rgba(0,0,0,0.22); }
.lp-band p { margin: 0 0 22px; font-size: 17px; opacity: 0.95; text-shadow: 0 1px 10px rgba(0,0,0,0.18); }
.lp-band-cta { justify-content: center; }
.lp-band .btn.primary { background: var(--btn); color: var(--btn-ink); }
.lp-band-ghost { background: transparent; color: #fff; border-color: #ffffff8c; }
.lp-band .lp-trust { color: #fff; opacity: 0.9; }

/* footer */
.lp-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 26px 0 40px; border-top: 1px solid var(--line); color: var(--dim); }
.lp-foot-note { font-size: 14px; }

/* the auth modal card */
.modal-backdrop[hidden] { display: none !important; }
.lp-auth-modal .modal { max-width: 420px; max-height: 92vh; overflow: auto; position: relative; }
.lp-modal-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.lp-modal-close:hover { border-color: var(--dim); }

@media (max-width: 900px) {
  .lp-steps, .lp-usps, .lp-features, .lp-cases { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .lp-hero { grid-template-columns: 1fr; gap: 30px; padding: 28px 0 24px; }
  .lp-hero-visual { min-height: 340px; order: 2; }
  .nav-cta { display: none; }
}
@media (max-width: 620px) {
  .lp-steps, .lp-usps, .lp-features, .lp-cases { grid-template-columns: 1fr; }
  .lp-section { padding: 48px 0; }
  .lp-section-alt { padding: 40px 20px; }
  .lp-cta-row .btn { flex: 1 1 auto; }
}

/* Moving gradient: a slow shimmer sweep across every surface that uses --btn, so the
   buttons, brand mark, value icons, step photos and CTA band all feel alive together. */
.btn.primary, .lp-usp-ico, .lp-photo, .lp-feature .lp-dot, .lp-chip::before, .lp-band {
  background-size: 220% 220%;
  animation: lp-flow 9s ease-in-out infinite;
}
@keyframes lp-flow {
  0%   { background-position:   0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .btn.primary, .lp-usp-ico, .lp-photo, .lp-feature .lp-dot, .lp-chip::before, .lp-band { animation: none; }
}

/* ======================================================================
   Admin / CRM (adm-*). Read-only reporting dashboard at /admin.
   Reuses the tokens, .card, .btn and .modal-input from above.
   ====================================================================== */
.adm-sub { font-weight: 600; font-size: 12px; color: var(--dim); letter-spacing: .04em; text-transform: uppercase; margin-left: 6px; }
.adm-gen { font-size: 12px; color: var(--dim); }

.adm-gate { max-width: 420px; margin: 40px auto; }
.adm-gate h2 { margin: 0 0 6px; font-size: 20px; }
.adm-gate .sub { color: var(--dim); margin: 0 0 14px; font-size: 14px; }
.adm-gate-alt { font-size: 14px; color: var(--dim); margin: 12px 0 0; }

/* A segmented control, never an underline (2.417.0: no border on one side, anywhere). */
.adm-tabs { display: inline-flex; gap: 3px; flex-wrap: wrap; margin: 18px 0 18px; padding: 3px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.adm-tab { background: none; border: 0; border-radius: 9px; padding: 8px 14px; font: inherit; font-weight: 700; color: var(--dim); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.adm-tab:hover { color: var(--ink); }
.adm-tab.active { color: var(--ink); background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16), 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent); }
.adm-badge { font-size: 12px; font-weight: 700; color: var(--dim); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }

.adm-panel[hidden] { display: none !important; }
.adm-panel { display: flex; flex-direction: column; gap: 16px; }

.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.adm-stats .stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 15px 17px; box-shadow: var(--shadow); }
.adm-stats .stat-k { display: block; font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.adm-stats .stat b { display: block; font-size: 27px; font-weight: 800; margin-top: 5px; line-height: 1.05; }
.adm-stats .stat-sub { display: block; font-size: 12px; color: var(--dim); margin-top: 5px; }

.adm-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 760px) { .adm-cols { grid-template-columns: 1fr; } }
.adm-h { margin: 0 0 14px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }

/* signups sparkline */
.adm-spark { display: flex; align-items: flex-end; gap: 6px; height: 130px; }
.adm-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.adm-bar span { width: 100%; min-height: 3px; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, var(--accent), var(--accent2)); }
.adm-bar em { font-size: 10px; color: var(--dim); font-style: normal; }

/* status breakdown */
.adm-break { display: flex; flex-direction: column; gap: 10px; }
.adm-break-row { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 10px; }
.adm-break-bar { height: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.adm-break-bar span { display: block; height: 100%; background: var(--accent); }

/* tables */
.adm-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.adm-search { max-width: 340px; }
.adm-count { font-size: 13px; color: var(--dim); }
.adm-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table th, .adm-table td { text-align: left; padding: 11px 14px; white-space: nowrap; }
.adm-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; }
.adm-table tbody tr { border-top: 1px solid var(--line); }
.adm-table tbody tr:first-child { border-top: 0; }
.adm-table tbody tr:hover { background: var(--bg); }
.adm-table code { font-size: 12px; background: var(--bg); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.adm-empty { text-align: center; color: var(--dim); padding: 28px; }

/* status pills */
.adm-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: capitalize; }
.adm-pill.ok { background: #17803d; color: #ffffff; }
.adm-pill.info { background: #2f5fd0; color: #ffffff; }
.adm-pill.warn { background: #9a5b00; color: #ffffff; }
.adm-pill.bad { background: #c8102e; color: #ffffff; }
.adm-pill.muted { background: var(--bg); color: var(--dim); border: 1px solid var(--line); }

/* On-site (embedded) Stripe checkout modal on the dashboard. */
.pay-modal { max-width: 560px; width: 100%; max-height: 92vh; overflow: auto; }
.pay-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pay-head h2 { margin: 0; font-size: 20px; }
#embeddedCheckout { min-height: 260px; }

/* ── printer helper installers (admin) ──────────────────────────────────────── */
.helper-list { display: grid; gap: 10px; margin: 12px 0 4px; }
.helper-row {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card2, #00000018);
}
.helper-what { display: grid; gap: 2px; min-width: 0; }
.helper-file { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--ink-dim); }
.helper-state { font-size: 12px; color: var(--ink-dim); }
.helper-do { display: flex; gap: 8px; flex: 0 0 auto; }
.helper-pick { cursor: pointer; }
/* Progress across the bottom of the row: a 90MB upload on a slow line needs to show it is moving. */
.helper-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #ffffff14; border-radius: 0 0 12px 12px; overflow: hidden; }
.helper-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s ease; }
@media (max-width: 620px) {
  .helper-row { flex-direction: column; align-items: stretch; }
  .helper-do { justify-content: flex-start; }
}

/* ── The look picker (/admin only) ─────────────────────────────────────────────────────
   Two named choices, each showing the palette it will bring rather than only naming it: a
   swatch is the only honest label for a colour. The one in use is pressed. */
.look-pick { margin-bottom: 18px; }
.look-pick h2 { margin: 0 0 4px; font-size: 18px; }
.look-pick .sub { margin: 0 0 14px; color: var(--dim); font-size: 13px; }
.look-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.look-opt {
  display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  padding: 12px 14px; border-radius: 12px; font: inherit; color: var(--ink);
  background: transparent; border: 1px solid var(--line);
}
.look-opt:hover { border-color: var(--dim); }
.look-opt[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.look-txt { display: block; min-width: 0; }
.look-txt b { display: block; font-family: var(--font-display); font-weight: var(--head-weight, 600); font-size: 16px; }
.look-txt small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--dim); line-height: 1.4; }
/* The palettes themselves, written out rather than taken from the tokens: a swatch has to show
   the look you are NOT wearing, and the tokens only ever hold the one you are. */
.look-sw { flex: none; width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--line); }
.look-sw-wedding { background: linear-gradient(135deg, #fdfaf3 0 42%, #dcbc82 42% 74%, #a23b4b 74% 100%); }
.look-sw-camera { background: linear-gradient(135deg, #0c0c0f 0 42%, #ffd60a 42% 74%, #ff453a 74% 100%); }
.look-msg {
  margin: 12px 0 0; font-size: 13px; line-height: 1.45; color: var(--accent);
}
.look-way { margin: 8px 0 0; font-size: 13px; }
/* What the choice reaches, said quietly under it: this page changes at once, a booth has to be
   told and only a booth that belongs to this account can be. */
.look-note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--dim); }

/* The admin's log of system template updates (2.665.0). */
.tpl-log { display: grid; gap: 12px; margin-top: 12px; }
.tpl-rec { padding: 18px 20px; }
.tpl-rec-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tpl-rec-meta { color: var(--dim); font-size: 13px; margin-top: 4px; }
.tpl-rec details { margin-top: 12px; }
.tpl-rec summary { cursor: pointer; font-weight: 700; }
.tpl-rec h4 { margin: 10px 0 4px; font-size: 13px; }
.tpl-rec ul { margin: 0; padding-left: 18px; display: grid; gap: 2px; font-size: 14px; }
.tpl-none { color: var(--dim); margin: 8px 0 0; }
