/* PaperSafeAI Drop: styled to match papersafeai.com (papersafeAI site/src/new-theme.css and
   docs/design/PAPERSAFEAI_DESIGN_LANGUAGE_SKILL.md). Calm, precise, no decorative motion,
   no cards inside cards, results as toasts. Light and dark follow the device. */

@font-face {
  font-family: 'Plus Jakarta Sans Variable'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/plus-jakarta-sans-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans Variable'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque Variable'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque Variable'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* --- Tokens (papersafeai.com values) --- */
:root {
  /* Light */
  --bg: #faf9f6; --bg-raise: #ffffff; --bg-sunk: #f2f1ed;
  --line: #e9e8e2; --line-strong: #bcbdb8;
  --ink: #0f172a; --ink-soft: #64748b;
  --accent: #2563eb; --accent-hover: #1d4cbf; --accent-ink: #ffffff; --accent-soft: rgba(37, 99, 235, 0.1);
  --ok: #15803d; --ok-soft: rgba(21, 128, 61, 0.1);
  --alarm: #dc2626; --alarm-soft: rgba(220, 38, 38, 0.1);
  --shadow: 0 14px 30px -16px rgba(15, 23, 42, 0.22);
  --focus: 0 0 0 3px rgba(37, 99, 235, 0.35);
  /* Background: a still glow mesh (blue, teal, amber) and a faint dot grid. */
  --glow-1: rgba(37, 99, 235, 0.24); --glow-2: rgba(8, 145, 178, 0.18); --glow-3: rgba(245, 158, 11, 0.16);
  --dot: rgba(15, 23, 42, 0.13); --head-bg: rgba(250, 249, 246, 0.72);

  --font-display: 'Bricolage Grotesque Variable', 'Plus Jakarta Sans Variable', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px; --space-8: 32px;
  --radius-sm: 8px; --radius-control: 12px; --radius-md: 14px; --radius-lg: 20px; --radius-pill: 999px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-base: 1rem; --text-lg: 1.125rem; --text-xl: 1.375rem; --text-2xl: 2rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  /* Dark: depth comes from the surface steps, not shadows (design doc, "Elevation in dark"). */
  :root {
    --bg: #191b1e; --bg-raise: #242629; --bg-sunk: #202225;
    --line: #303236; --line-strong: #53565d;
    --ink: #f5f5f4; --ink-soft: #a6a8ad;
    --accent: #60a5fa; --accent-hover: #93c5fd; --accent-ink: #0f172a; --accent-soft: rgba(59, 130, 246, 0.15);
    --ok: #4ade80; --ok-soft: rgba(74, 222, 128, 0.12);
    --alarm: #f87171; --alarm-soft: rgba(248, 113, 113, 0.14);
    --shadow: none;
    --focus: 0 0 0 3px rgba(96, 165, 250, 0.45);
    --glow-1: rgba(96, 165, 250, 0.24); --glow-2: rgba(34, 211, 238, 0.15); --glow-3: rgba(245, 158, 11, 0.10);
    --dot: rgba(255, 255, 255, 0.09); --head-bg: rgba(25, 27, 30, 0.7);
    color-scheme: dark;
  }
}

/* --- Base --- */
* { box-sizing: border-box; }
/* `hidden` always wins over a class's display, on every page. */
[hidden] { display: none !important; }
html { background: var(--bg); }
body { margin: 0; color: var(--ink); font: 400 var(--text-base)/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
main { max-width: 720px; margin: 0 auto; padding: var(--space-8) var(--space-4) 64px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--text-2xl); line-height: 1.1; font-weight: 700; margin-bottom: var(--space-2); }
h2 { font-size: var(--text-lg); line-height: 1.25; font-weight: 650; margin-bottom: var(--space-3); }
h3 { font-size: var(--text-base); line-height: 1.3; font-weight: 650; margin-bottom: var(--space-3); }
p { margin: 0 0 var(--space-3); }
a { color: var(--accent); text-underline-offset: 2px; }
.muted { color: var(--ink-soft); }
.error { color: var(--alarm); }
.done { color: var(--ok); }
.failed { color: var(--alarm); }

/* --- Background: still, behind everything (the slideshow keeps its black). --- */
body:not(.show-body)::before, body:not(.show-body)::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body:not(.show-body)::before {
  background:
    radial-gradient(52rem 38rem at 92% -6%, var(--glow-1), transparent 64%),
    radial-gradient(44rem 34rem at -8% 26%, var(--glow-2), transparent 62%),
    radial-gradient(40rem 30rem at 58% 104%, var(--glow-3), transparent 62%);
}
body:not(.show-body)::after {
  background-image: radial-gradient(var(--dot) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(120% 70% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(120% 70% at 50% 0%, #000 20%, transparent 75%);
}

/* --- Header and footer --- */
.site-head { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: var(--head-bg); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.site-head .inner { max-width: 720px; margin: 0 auto; padding: var(--space-3) var(--space-4); display: flex; align-items: center; gap: var(--space-3); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 var(--text-base)/1 var(--font-display); letter-spacing: -0.01em; }
/* The mark is inline SVG, so it shows however the file would be served. */
.brand .brand-mark { width: 28px; height: 28px; display: block; flex: none; }
.brand span { color: var(--ink-soft); font-weight: 600; }
.footer { max-width: 720px; margin: 0 auto; padding: var(--space-6) var(--space-4) var(--space-8); font-size: var(--text-sm); color: var(--ink-soft); border-top: 1px solid var(--line); }
.footer a { color: inherit; }

/* --- Surfaces: a card is a discrete object on the page; never a card inside a card. --- */
.card { background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-5); margin: var(--space-5) 0; box-shadow: var(--shadow); }
.notice { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); background: var(--accent-soft); }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
details.card > summary { cursor: pointer; font: 650 var(--text-base)/1.4 var(--font-display); list-style-position: outside; }
details.card[open] > summary { margin-bottom: var(--space-3); }

/* --- Controls --- */
label { display: block; font-weight: 600; font-size: var(--text-sm); margin: var(--space-4) 0 var(--space-2); }
input[type=text], input[type=email], input[type=password], input[type=number], input[inputmode], textarea, select {
  width: 100%; padding: 11px var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-control);
  background: var(--bg-raise); color: var(--ink); font: 400 var(--text-base)/1.4 var(--font-body);
}
input[type=file] { font: inherit; color: var(--ink-soft); max-width: 100%; }
textarea { resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, .button:focus-visible, a:focus-visible, summary:focus-visible { outline: none; box-shadow: var(--focus); }
select.needed { border-color: var(--alarm); box-shadow: 0 0 0 3px var(--alarm-soft); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }

button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: var(--radius-control);
  background: var(--accent); color: var(--accent-ink); font: 650 0.95rem/1.2 var(--font-body); letter-spacing: -0.01em;
  cursor: pointer; text-decoration: none; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
button:hover, .button:hover { background: var(--accent-hover); }
button.secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
button.secondary:hover { background: var(--bg-sunk); }
button:disabled { opacity: 0.5; cursor: default; }
.big { width: 100%; min-height: 52px; font-size: var(--text-base); margin-top: var(--space-4); }
.row { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; }
.row input { flex: 1; min-width: 0; }
.linklike { min-height: 0; background: none; border: 0; padding: 0; color: var(--ink-soft); text-decoration: underline; font: 400 var(--text-sm)/1.4 var(--font-body); }
.linklike:hover { background: none; color: var(--ink); }
.check { display: flex; align-items: center; gap: var(--space-2); font-weight: 400; font-size: var(--text-base); margin: var(--space-3) 0; }
.link { word-break: break-all; padding: var(--space-3); background: var(--bg-sunk); border: 1px solid var(--line); border-radius: var(--radius-sm); font: 400 var(--text-sm)/1.5 var(--font-mono); color: var(--ink); }
.turnstile { margin: var(--space-4) 0 0; min-height: 65px; }

/* --- Lists --- */
.queue { list-style: none; padding: 0; margin: var(--space-3) 0 0; }
.queue li { display: grid; grid-template-columns: 1fr auto; gap: var(--space-1) var(--space-3); padding: var(--space-2) 0; border-bottom: 1px solid var(--line); font-size: var(--text-sm); }
.queue li:last-child { border-bottom: 0; }
.queue progress { grid-column: 1 / -1; width: 100%; height: 6px; accent-color: var(--accent); }
.queue .state button { min-height: 32px; padding: 4px 10px; font-size: var(--text-xs); margin-left: var(--space-2); }
.chips { list-style: none; padding: 0; margin: 0 0 var(--space-2); display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); font-size: var(--text-sm); background: var(--bg-raise); }
.chips .linklike { text-decoration: none; font-size: var(--text-base); padding: 0 6px; }

/* --- QR codes and share cards. Inside a panel a share card is flat (no card inside a card). --- */
.qr { background: #fff; padding: var(--space-3); border-radius: var(--radius-sm); display: inline-block; border: 1px solid var(--line); }
.qr img { display: block; width: 200px; height: 200px; image-rendering: pixelated; }
#shareCards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-3); }
.share { background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-4); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: var(--space-3); }
.share h3, .share .link { margin: 0; }
.card .share { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: var(--space-4) 0 0; }

/* --- Host gallery --- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: var(--space-4) 0; }
.tabs button { min-height: 36px; padding: 6px 14px; border-radius: var(--radius-pill); font-size: var(--text-sm); }
.tabs button[aria-pressed="false"] { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.tabs button[aria-pressed="false"]:hover { background: var(--bg-sunk); }
.group { margin: var(--space-6) 0; }
.group-head { display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-3); }
.group-head h2 { margin: 0; }
.group-head span { font-size: var(--text-sm); }
.group .more { margin-top: var(--space-3); width: 100%; }
.group-head button { margin-left: auto; min-height: 36px; padding: 6px 14px; font-size: var(--text-sm); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--space-2); }
.tile { position: relative; aspect-ratio: 1; background: var(--bg-sunk); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .kind { display: grid; place-items: center; height: 100%; color: var(--ink-soft); font-size: var(--text-sm); }
.tile .who { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 8px 6px; font-size: var(--text-xs); color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, 0.6)); }
.tile .del, .tile .mod { position: absolute; min-height: 0; padding: 3px 8px; border-radius: var(--radius-sm); font-size: 11px; font-weight: 600; background: rgba(15, 23, 42, 0.7); color: #fff; border: 0; }
.tile .del { top: 6px; right: 6px; }
.tile .mod { bottom: 6px; right: 6px; }
.tile .del:hover, .tile .mod:hover { background: rgba(15, 23, 42, 0.9); }
.tile.off-show img, .tile.off-show .kind { opacity: 0.45; }
.tile.off-show::after { content: 'Not on slideshow'; position: absolute; top: 50%; left: 0; right: 0; text-align: center; font-size: 12px; color: #fff; text-shadow: 0 1px 4px #000; pointer-events: none; }

/* --- Legal pages --- */
.prose h2 { margin-top: var(--space-8); }
.prose li { margin: 6px 0; }
.prose ul { padding-left: 1.2em; }

/* --- Toasts: results of what the user just did (design doc), never lines in the page --- */
.toasts { position: fixed; left: 50%; bottom: var(--space-6); transform: translateX(-50%); display: flex; flex-direction: column; gap: var(--space-2); z-index: 1000; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast { pointer-events: auto; padding: var(--space-3) var(--space-4); border-radius: var(--radius-control); background: var(--ink); color: var(--bg); font-size: var(--text-sm); font-weight: 600; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.45); border-left: 4px solid var(--accent); }
.toast.success { border-left-color: var(--ok); }
.toast.error { border-left-color: var(--alarm); }

/* --- Slideshow (TV) --- */
.show-body { background: #000; color: #fff; overflow: hidden; cursor: none; font-family: var(--font-body); }
.show-stage { position: fixed; inset: 0; }
.show-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 1.2s ease; }
.show-slide.shown { opacity: 1; }
/* The one place type follows the screen: it fills a TV across a room. */
.show-title { position: fixed; top: 24px; left: 32px; font: 700 clamp(18px, 2.4vw, 36px)/1.1 var(--font-display); letter-spacing: -0.02em; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); }
.show-caption { position: fixed; bottom: 28px; left: 32px; font-size: clamp(14px, 1.6vw, 24px); font-weight: 600; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); }
.show-join { position: fixed; bottom: 24px; right: 24px; display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: var(--radius-control); background: rgba(15, 23, 42, 0.7); font-size: clamp(12px, 1.1vw, 18px); }
.show-join .qr { padding: 6px; border: 0; }
.show-join .qr img { width: clamp(72px, 8vw, 140px); height: auto; }
.show-join span { display: block; opacity: 0.8; }
.show-empty { position: fixed; inset: 0; display: grid; place-items: center; text-align: center; padding: 32px; font-size: clamp(18px, 2vw, 32px); opacity: 0.85; }
.show-paused { position: fixed; top: 24px; right: 32px; padding: 6px 12px; border-radius: var(--radius-sm); background: rgba(15, 23, 42, 0.7); }

@media (max-width: 480px) {
  main { padding-top: var(--space-6); }
  .card > .row > button, .card > .row > .button { flex: 1 1 auto; }
  .card { padding: var(--space-4); }
  .qr img { width: 180px; height: 180px; }
}

/* --- Home page: the concept, explained in a slow 10-second loop beside the form ---
   An explanatory exception to "no decorative motion" (owner's request, home page only).
   Three beats: guests scan the QR code; photos land in the album; download, then deleted.
   Desktop only; a device that asks for reduced motion sees one still picture instead. */
.home { max-width: 720px; }
.concept { display: none; }
@media (min-width: 1000px) {
  /* Form 60%, explanation 40%, a hairline between them. */
  .home { max-width: 1200px; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 0; align-items: stretch; }
  .home-copy { padding-right: 48px; }
  .concept { display: block; padding-left: 48px; border-left: 1px solid var(--line); }
  .concept-inner { position: sticky; top: var(--space-8); }
}
.concept-title { font-size: var(--text-lg); margin: 0 0 var(--space-5); }
.concept svg { width: 100%; height: auto; display: block; overflow: visible; }
.concept .phone-body { fill: var(--bg-raise); stroke: var(--line-strong); stroke-width: 1.5; }
.concept .phone-screen { fill: var(--bg-sunk); }
.concept .album { fill: var(--bg-raise); stroke: var(--line); stroke-width: 1.5; filter: drop-shadow(0 12px 24px rgba(15, 23, 42, 0.12)); }
.concept .album-title { fill: var(--ink); font: 650 15px var(--font-display); }
.concept .slots rect { fill: none; stroke: var(--line-strong); stroke-width: 1.2; stroke-dasharray: 4 4; }
.concept .photo-a { fill: var(--accent); }
.concept .photo-b { fill: #0891b2; }
.concept .photo-c { fill: #f59e0b; }
.concept .qr-card { fill: #fff; stroke: var(--line); }
.concept .qr-code { fill: #0f172a; }
.concept .qr-pulse { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.concept .scanline { fill: var(--accent); opacity: 0; }
.concept .download-pill { fill: var(--accent); }
.concept .download-arrow { fill: none; stroke: var(--accent-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.concept .download-text { fill: var(--accent-ink); font: 650 13px var(--font-body); }
.concept .download { opacity: 0; }

/* Where each travelling photo lands (an album slot, relative to its phone). */
.concept .fly { opacity: 0; }
.concept .fly1 { --dx: 56px; --dy: 222px; }
.concept .fly2 { --dx: 4px; --dy: 222px; }
.concept .fly3 { --dx: -48px; --dy: 222px; }
.concept .fly4 { --dx: 4px; --dy: 278px; }
.concept .fly5 { --dx: 56px; --dy: 278px; }
.concept .fly6 { --dx: -48px; --dy: 278px; }

.concept-steps { position: relative; height: 56px; margin-top: var(--space-4); }
.concept-steps .step { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; gap: var(--space-3); font: 600 var(--text-base)/1.4 var(--font-body); color: var(--ink); opacity: 0; }
.concept-steps b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); font-size: var(--text-sm); flex: none; }

@media (prefers-reduced-motion: no-preference) {
  .concept .scanline { animation: scan 10s ease-in-out infinite; }
  .concept .s2 { animation-delay: 0.25s; }
  .concept .s3 { animation-delay: 0.5s; }
  .concept .qr-pulse { animation: pulse 10s ease-out infinite; }
  .concept .fly { animation: fly 10s cubic-bezier(0.45, 0, 0.2, 1) infinite; }
  .concept .fly2 { animation-delay: 0.3s; }
  .concept .fly3 { animation-delay: 0.6s; }
  .concept .fly4 { animation-delay: 0.9s; }
  .concept .fly5 { animation-delay: 1.2s; }
  .concept .fly6 { animation-delay: 1.5s; }
  .concept .download { animation: appear 10s ease-in-out infinite; }
  .concept-steps .step1 { animation: step1 10s ease-in-out infinite; }
  .concept-steps .step2 { animation: step2 10s ease-in-out infinite; }
  .concept-steps .step3 { animation: step3 10s ease-in-out infinite; }
}
/* Beat 1 (0–30%): the scan. */
@keyframes scan { 0% { opacity: 0; transform: translateY(0); } 4% { opacity: 0.9; } 26% { opacity: 0.9; transform: translateY(120px); } 30%, 100% { opacity: 0; transform: translateY(120px); } }
@keyframes pulse { 0%, 4% { opacity: 0; transform: scale(1); } 10% { opacity: 0.8; } 28% { opacity: 0; transform: scale(1.35); } 100% { opacity: 0; } }
/* Beat 2 (30–62%): photos travel into the album and stay. */
@keyframes fly {
  0%, 30% { opacity: 0; transform: translate(0, 0); }
  33% { opacity: 1; transform: translate(0, 0); }
  50% { opacity: 1; transform: translate(var(--dx), var(--dy)); }
  90% { opacity: 1; transform: translate(var(--dx), var(--dy)); }
  97%, 100% { opacity: 0; transform: translate(var(--dx), var(--dy)); }
}
/* Beat 3 (62–95%): download, then everything fades: deleted. */
@keyframes appear { 0%, 62% { opacity: 0; } 67%, 88% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes step1 { 0% { opacity: 0; } 3%, 27% { opacity: 1; } 31%, 100% { opacity: 0; } }
@keyframes step2 { 0%, 31% { opacity: 0; } 35%, 59% { opacity: 1; } 63%, 100% { opacity: 0; } }
@keyframes step3 { 0%, 63% { opacity: 0; } 67%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }

/* Reduced motion: the finished picture, with all three steps listed. */
@media (prefers-reduced-motion: reduce) {
  .concept .fly { opacity: 1; transform: translate(var(--dx), var(--dy)); }
  .concept .download { opacity: 1; }
  .concept-steps { height: auto; display: grid; gap: var(--space-2); }
  .concept-steps .step { position: static; opacity: 1; }
}

/* --- Admin --- */
main.wide { max-width: 1120px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.table th { text-align: left; font-weight: 600; color: var(--ink-soft); padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: var(--space-3); border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .actions { display: flex; gap: var(--space-2); justify-content: flex-end; flex-wrap: wrap; }
.table .actions button { min-height: 34px; padding: 4px 12px; font-size: var(--text-sm); }
