/* Hallmark · genre: playful · macrostructure: Marquee Hero (landing) · theme: studied-DNA (source: uitnodiging-kaart.jpeg)
 * info-remove (2026-10-08): /info bestaat niet meer — feestdetails reizen op de printkaart en het QR; de app is puur tooling.
 * polish 009: landing-stripping — geen tagline/subtitle/helper op de landing; titel "Mientje's 65ste Birthday Party".
 * enrichment: E-none (portret-cutout mientje-portret.png is het hero-visual) · nav: één NAVS-bron (app.js) → bottom tab bar (Upload FAB / Mijn foto's / QR) + desktop-topnav · footer: gast-voettekst (Liefs/privacy/divider)_removed (captain 2026-10-09); base <footer> remains for /beheer
 * cohesion (2026-10-08): hint-state store (public/hint-state.js) + .page-head/.hero-inner headerpatroon + empty-icon SVG-states; dead code weg (countdown/datebar/info-grid/gift-note/party-hero/ornament)
 * pre-emit critique: P5 H4 E4 S5 R4 V4 · contrast: pass (40-41) · mobile: pass (34,49,50-57)
 * Deliberate DNA deviations from slop-test (the client card IS the locked design system):
 *   - gold-foil numeral uses background-clip:text (gate 2) — reproduces the card's 3D metallic "65"; one brand moment only.
 *   - script display face (Great Vibes) for "Mientje / Birthday Party" — the card's calligraphy; roman everywhere else.
 */

/* ---------- tokens: kleur (card-DNA) ---------- */
:root {
  --color-paper:      #f7efe1;
  --color-paper-2:    #fdf8ef;
  --color-paper-3:    #ead9be;
  --color-ink:        #5a3d20;
  --color-ink-soft:   #7a5230;
  --color-muted:      #9a7a52;
  --color-gold:       #c9a24b;
  --color-gold-light: #e0c070;
  --color-gold-pale:  #f3dda0;
  --color-gold-dark:  #8c6d2f;
  --color-accent:     #c9a24b;
  --color-accent-ink: #3d2c10;   /* tekst op goud: ≥4.5:1 */
  --color-ok:         #2f6b34;
  --color-ok-bg:      #e7f2e6;
  --color-err:        #a52f2a;
  --color-err-bg:     #f8e9e7;
  --color-focus:      #8c6d2f;

  /* ---------- tokens: type (2+1) ---------- */
  --font-body:    "Nunito", system-ui, -apple-system, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script:  "Great Vibes", "Brush Script MT", cursive;

  /* ---------- tokens: ruimte (8pt) ---------- */
  --space-3xs: 4px;  --space-2xs: 8px;  --space-xs: 12px;  --space-sm: 16px;
  --space-md: 24px;  --space-lg: 32px;  --space-xl: 48px;  --space-2xl: 64px;  --space-3xl: 96px;

  /* ---------- tokens: motion ---------- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0.35, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;

  /* ---------- tokens: vorm ---------- */
  --radius-sm: 8px; --radius: 14px; --radius-lg: 22px; --radius-pill: 999px;
  --shadow-soft: 0 8px 24px -12px rgba(90, 61, 32, 0.45);
  --shadow-lift: 0 14px 34px -14px rgba(90, 61, 32, 0.55);
  --border-gold: 1px solid rgba(201, 162, 75, 0.5);
  --measure: 62ch;

  /* ---------- tokens: layout ---------- */
  --tabbar-h: 60px;
  --z-sticky: 20; --z-tabbar: 30; --z-lightbox: 50; --z-toast: 60;

  /* ---------- tokens: landing-hero-schaal (hero-redesign 2026-10-09) ----------
   * Eén proportioneel systeem: portretmaat anker, wordmark/cijfer/titel + eerste
   * sectiekop (tooling-hero) hangen eraan. Fold-contract: gouden CTA blijft
   * volledig zichtbaar op 360×740. */
  --hero-portrait: clamp(112px, 30vw, 200px);
  --hero-wordmark: clamp(2.4rem, 10vw, 3.8rem);
  --hero-numeral:  clamp(3.4rem, 15vw, 6rem);
  --hero-title:    clamp(2rem, 7.5vw, 3.2rem);
  --hero-section-title: clamp(2rem, 7vw, 2.9rem);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html, body { overflow-x: clip; }  /* gate 34: clip, niet hidden */

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  overscroll-behavior-y: none;   /* tegen rubber-band (003) */
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  background-color: var(--color-paper);
  background-image:
    radial-gradient(900px 480px at 50% -120px, var(--color-paper-2) 0%, transparent 62%),
    linear-gradient(165deg, var(--color-paper) 0%, var(--color-paper-3) 100%);
  background-attachment: fixed;
  /* ruimte voor bottom tab bar op mobiel */
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 60rem) { body { padding-bottom: 0; } }

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { font-family: var(--font-display); font-style: normal; color: var(--color-ink); line-height: 1.12; margin: 0; overflow-wrap: anywhere; min-width: 0; }

a { color: var(--color-gold-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.wrap { width: 100%; max-width: 60rem; margin-inline: auto; padding-inline: max(var(--space-sm), env(safe-area-inset-left, 0px)); }
.wrap-narrow { max-width: var(--measure); }

/* ---------- typografie: script + folie-cijfer (card-DNA) ---------- */
.script { font-family: var(--font-script); font-weight: 400; color: var(--color-gold-dark); line-height: 1; }

.foil-numeral {
  font-family: var(--font-display); font-weight: 700; line-height: 0.9; margin: 0;
  background: linear-gradient(180deg, var(--color-gold-pale) 0%, var(--color-gold-light) 38%, var(--color-gold) 62%, var(--color-gold-dark) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 3px rgba(140, 109, 47, 0.35));
}
.foil-numeral sup { font-size: 0.32em; }

/* ---------- knoppen (8 states) ---------- */
.btn {
  --btn-bg: var(--color-gold); --btn-ink: var(--color-accent-ink); --btn-border: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2xs);
  min-height: 48px; padding: 12px 26px;
  font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; line-height: 1;
  color: var(--btn-ink); background: var(--btn-bg); border: 2px solid var(--btn-border);
  border-radius: var(--radius-pill); cursor: pointer; text-decoration: none; white-space: nowrap;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-short) var(--ease-out);
}
.btn:hover { background: var(--color-gold-light); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-gold { box-shadow: var(--shadow-soft); }
.btn-outline { --btn-bg: var(--color-paper-2); --btn-ink: var(--color-ink); --btn-border: var(--color-gold); }
.btn-outline:hover { background: #fff8e8; }
.btn-big { min-height: 56px; font-size: 1.15rem; padding: 16px 34px; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-xs); justify-content: center; margin-block-start: var(--space-md); }

/* ---------- formulieren (gate 39) ---------- */
input[type="text"], textarea {
  width: 100%; min-height: 48px; padding: 12px 16px;
  font-family: var(--font-body); font-size: 1rem; color: var(--color-ink);
  background: var(--color-paper-2); border: 1px solid var(--color-gold); border-radius: var(--radius);
  transition: border-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out);
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input:hover, textarea:hover { border-color: var(--color-gold-light); }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; border-color: var(--color-gold); }
input:disabled, textarea:disabled { opacity: 0.55; cursor: not-allowed; }
.field-label { display: block; font-weight: 700; margin-block-end: 6px; color: var(--color-ink); }
.field-gap { margin-block-start: var(--space-sm); }
.helper { min-height: 1lh; font-size: 0.86rem; color: var(--color-muted); margin-block-start: 6px; }

/* ---------- secties / panelen ---------- */
.panel {
  background: color-mix(in srgb, var(--color-paper-2) 88%, transparent);
  border: var(--border-gold); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft); padding: var(--space-lg) var(--space-md);
  margin-block: var(--space-md);
}
.section-title { font-size: clamp(1.9rem, 6vw, 2.6rem); text-align: center; margin-block-end: var(--space-sm); }
.subtitle { color: var(--color-ink-soft); text-align: center; margin: 0; font-size: 1.05rem; }

/* ---------- decor: confetti + ballonnen (kaartstijl; captain houdt ervan) ---------- */
.confetti-layer { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.confetti { position: absolute; top: -14px; width: 9px; height: 14px; border-radius: 2px; opacity: 0.75; animation: confetti-fall linear infinite; }
@keyframes confetti-fall { to { transform: translateY(112vh) rotate(720deg); } }
.balloon { position: fixed; bottom: -90px; width: 58px; height: 72px; border-radius: 50% 50% 48% 48% / 56% 56% 44% 44%; opacity: 0.28; z-index: 0; pointer-events: none; animation: balloon-rise linear infinite; }
.balloon::after { content: ""; position: absolute; bottom: -26px; left: 50%; width: 1.5px; height: 26px; background: rgba(140, 109, 47, 0.45); }
@keyframes balloon-rise { to { transform: translateY(-122vh); } }


main, header, footer, nav { position: relative; z-index: 1; }

/* ---------- hero (marquee: card vult de fold) ---------- */
.hero { text-align: center; padding-block: var(--space-lg) var(--space-xl); }
.hero .kicker { font-family: var(--font-script); font-size: 1.9rem; color: var(--color-gold-dark); margin: 0; }
.hero .foil-numeral { font-size: clamp(4.2rem, 20vw, 8rem); }
.hero h1 { font-family: var(--font-script); font-size: clamp(2.4rem, 9vw, 4rem); color: var(--color-gold-dark); font-weight: 400; margin-block: -0.05em 0.1em; }
.hero .lede { color: var(--color-ink-soft); font-size: clamp(1.05rem, 4vw, 1.25rem); max-width: 34ch; margin-inline: auto; }

/* ---------- één header-patroon voor innerpagina's (cohesion) ----------
   .page-head: script-titel + subtitle, vaste compacte padding (geen inline styles).
   .hero-inner: de foil up-hero-variant (unified upload) met dezelfde padding — twee
   gezichten van één patroon, geen pagina-eigen maatwerk meer. */
.page-head { padding-block: var(--space-md) var(--space-sm); }
.page-head .section-title { font-size: clamp(1.9rem, 6vw, 2.6rem); margin-block: 0 var(--space-3xs); }
.hero-inner { padding-block: var(--space-md) var(--space-sm); }
.wall-note { max-width: 52ch; margin-inline: auto; text-align: center; color: var(--color-ink-soft); }

/* ---------- app-first landing (hero-redesign 2026-10-09): portret + wordmark op
 * zelfverzekerde schaal uit één tokensysteem (--hero-*). De eerste content-sectie
 * (tooling-hero) deelt die ritme: sectiekop hangt aan --hero-section-title.
 * Duim-bereikbaar: de gouden upload-CTA moet zonder scrollen in de fold staan (360×740). */
.hero-landing { padding-block: var(--space-3xs) 0; text-align: center; }
.portrait {
  display: block; margin-inline: auto;
  width: var(--hero-portrait); height: auto;
  filter: drop-shadow(0 10px 24px rgba(90, 61, 32, 0.32));
}
/* line-height 1: de script-/display-faces hebben enorme ingebouwde leading —
 * strakker zetten halveert de hero-hoogte zónder de lettergrootte te raken. */
.hero-landing .kicker { font-size: var(--hero-wordmark); line-height: 1; margin-block-end: 0; } /* inbox-002: stille ademruimte tussen kicker en cijfer (was -0.1em) */
.hero-landing .foil-numeral { font-size: var(--hero-numeral); }
.hero-landing h1 { font-size: var(--hero-title); line-height: 1; margin-block: 0 0.06em; } /* inbox-002: ook tussen cijfer en titel adem (was -0.04em) */
.tooling-hero { text-align: center; padding: var(--space-2xs) var(--space-lg) var(--space-sm); margin-block-start: var(--space-2xs); }
.tooling-hero .section-title { font-size: var(--hero-section-title); margin-block-end: var(--space-2xs); }
.tooling-hero .btn-row { margin-block-start: var(--space-sm); }
.btn-xl { min-height: 64px; font-size: 1.25rem; padding: 18px 44px; box-shadow: var(--shadow-lift); }

/* ---------- bedankt-kaart (BRAINSTORM-BEDANKT): Mientje's stem tussen titel en CTA.
   Compact (fold-budget 360×740): panel-DNA, display-kop + Nunito-body + script-signatuur. */
.bedankt { text-align: center; padding: var(--space-sm) var(--space-md); margin-block-start: var(--space-2xs); max-width: 46ch; margin-inline: auto; }
.bedankt-title { font-family: var(--font-display); font-size: clamp(1.35rem, 4.5vw, 1.7rem); font-weight: 700; color: var(--color-ink); margin: 0 0 var(--space-3xs); }
.bedankt-body { margin: 0; font-size: 0.95rem; line-height: 1.5; color: var(--color-ink-soft); }
.bedankt-body + .bedankt-body { margin-block-start: var(--space-2xs); }
.bedankt-sign { font-size: 1.7rem; margin: var(--space-3xs) 0 0; }
.bedankt + .tooling-hero { margin-block-start: var(--space-2xs); }

/* ---------- gallerij: masonry (002) ---------- */
.gallery { columns: 2; column-gap: var(--space-2xs); }
@media (min-width: 40rem) { .gallery { columns: 3; } }
@media (min-width: 60rem) { .gallery { columns: 4; } }
.gallery .tile { break-inside: avoid; margin-block-end: var(--space-2xs); display: block; border-radius: var(--radius); overflow: hidden; border: 2px solid rgba(201, 162, 75, 0.45); background: var(--color-paper-2); box-shadow: var(--shadow-soft); transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.gallery .tile img { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .gallery .tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
}
.gallery .tile:active { transform: translateY(0); }

/* ---------- album-kopblok + type-glyph op tegels (inbox 003 + galerij-upload-ux-golf) ----------
 * Captain-punt 2: de 44px download-pill op elke tegel is vervangen door een kleine
 * subtiele type-badge (±half formaat, muted): play-glyph = video, berg-glyph = foto.
 * Donkere scrim houdt de glyph leesbaar op zowel lichte foto's als donkere previews.
 * Downloaden van het origineel leeft op de detailpagina (icon-knop) + album-zip. */
.album-top { text-align: center; }
.photo-count { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--color-ink); margin: 0 0 var(--space-xs); }
/* (.share-hint/.share-url weg: deelkaart-golf 2026-10-11 — de uitgeschreven deel-link
   bestaat niet meer; delen gebeurt via de pictogram-actierij.) */
.album-actions { margin-top: var(--space-2xs); }
.gallery .tile { position: relative; }
.gallery .tile-type { position: absolute; right: 6px; bottom: 6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: var(--radius-pill); background: color-mix(in srgb, #14100a 52%, transparent); color: color-mix(in srgb, var(--color-paper) 92%, transparent); pointer-events: none; }
.gallery .tile-type svg { width: 12px; height: 12px; }
.gallery .tile-type[data-type="video"] svg { fill: currentColor; stroke: none; }

/* ---------- conversie-golf: video-tegels (album / jouw foto's) ----------
 * Captain-correctie 001: tegel = levend preview (muted/loop/viewport-autoplay, géén
 * controls) dat als geheel naar de detailpagina navigeert; reduced-motion → poster-img.
 * De volledige speler mét controls leeft alleen op /album/:token/foto/:id (photo.js). */
.gallery a.tile-video-link { display: block; text-decoration: none; color: inherit; }
.gallery .tile-video { position: relative; background: #14100a; }
.gallery .tile-video .tile-preview,
.gallery .tile-video > img { width: 100%; display: block; background: #14100a; aspect-ratio: 16 / 10; object-fit: cover; pointer-events: none; }
.gallery .tile-processing-state { background: linear-gradient(160deg, #1c1710, #14100a); color: var(--color-gold-pale); }
.gallery .tile-failed { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2xs); aspect-ratio: 16 / 10; padding: var(--space-xs); text-align: center; font-size: 0.8rem; font-weight: 600; color: var(--color-ink-soft); background: var(--color-paper); }
.gallery .tile-failed svg { width: 28px; height: 28px; color: var(--color-gold-dark); }
.spin { width: 18px; height: 18px; animation: spin 1s linear infinite; }
.spin-lg { width: 44px; height: 44px; color: var(--color-gold-dark); }
@keyframes spin { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .spin, .spin-lg { animation-duration: 3s; }
}
/* detailpagina: verwerkings-/mislukt-kaart (photo.js) */
.video-processing p, .video-failed p { max-width: 46ch; margin-inline: auto; }
.converted-note { font-size: 0.85rem; color: var(--color-ink-soft); }
.converted-note a { font-weight: 700; }
.gallery .tile-embed { padding: var(--space-2xs); display: flex; flex-direction: column; gap: var(--space-2xs); }
.gallery .tile-embed .embed-holder { width: 100%; overflow: hidden; border-radius: var(--radius-sm); background: var(--color-paper); min-height: 120px; display: grid; place-items: center; }
.gallery .tile-embed .embed-holder iframe { max-width: 100%; }
.embed-source { font-size: 0.82rem; font-weight: 700; color: var(--color-gold-dark); text-decoration: none; overflow-wrap: anywhere; }
.embed-source:hover { text-decoration: underline; }
.media-badge { display: inline-block; align-self: flex-start; padding: 2px 10px; border-radius: var(--radius-pill); background: linear-gradient(180deg, var(--color-gold-light), var(--color-gold)); color: var(--color-accent-ink); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.gallery a.tile-embed-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2xs); min-height: 120px; padding: var(--space-xs); text-align: center; text-decoration: none; color: var(--color-ink); background: var(--color-paper); }
.embed-tile-cap { font-size: 0.8rem; color: var(--color-ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.photo-page video.full { max-width: 100%; max-height: 74dvh; margin-inline: auto; border-radius: var(--radius-lg); border: 3px solid var(--color-gold); box-shadow: var(--shadow-lift); background: #14100a; display: block; }
.embed-stage { display: grid; place-items: center; background: var(--color-paper-2); border: var(--border-gold); border-radius: var(--radius-lg); padding: var(--space-sm); box-shadow: var(--shadow-soft); max-width: 560px; margin-inline: auto; overflow: hidden; }
.embed-stage iframe { max-width: 100%; }
.photo-meta .media-badge { vertical-align: middle; }
.album-strip video { height: 72px; border-radius: var(--radius-sm); border: 1px solid var(--color-gold); background: #14100a; }

.uploader-filter { display: flex; flex-wrap: wrap; gap: var(--space-2xs); justify-content: center; margin-block-end: var(--space-sm); }
.chip { min-height: 44px; padding: 10px 18px; border-radius: var(--radius-pill); border: 1.5px solid var(--color-gold); background: var(--color-paper-2); color: var(--color-ink); font-family: var(--font-body); font-size: 0.92rem; font-weight: 600; cursor: pointer; touch-action: manipulation; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.chip[aria-pressed="true"] { background: var(--color-gold); color: var(--color-accent-ink); }
.chip:hover { background: var(--color-gold-light); color: var(--color-accent-ink); }

.empty-state { text-align: center; padding: var(--space-xl) var(--space-sm); color: var(--color-ink-soft); }
.empty-state .empty-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto var(--space-xs); border-radius: var(--radius-pill); background: var(--color-paper-2); border: var(--border-gold); color: var(--color-gold-dark); }
.empty-state .empty-icon svg { width: 30px; height: 30px; }
.empty-state p { font-style: normal; margin: var(--space-2xs) 0 var(--space-sm); }

/* skeleton loading */
.skeleton { background: linear-gradient(90deg, var(--color-paper-3) 25%, #f2e6d2 50%, var(--color-paper-3) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- upload ---------- */
.dropzone { border: 3px dashed var(--color-gold); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--color-paper-2) 70%, transparent); padding: var(--space-lg) var(--space-sm); text-align: center; cursor: pointer; touch-action: manipulation; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.dropzone:hover, .dropzone.drag { background: #fff8e8; border-color: var(--color-gold-light); }
.dropzone .dz-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto; border-radius: var(--radius-pill); background: var(--color-paper-2); border: 2px solid var(--color-gold); color: var(--color-gold-dark); box-shadow: var(--shadow-soft); }
.dropzone .dz-icon svg { width: 28px; height: 28px; }
.dropzone p { margin: var(--space-2xs) 0 0; font-weight: 700; }
.dropzone .hint { font-weight: 400; font-size: 0.88rem; color: var(--color-ink-soft); }

.upload-list { list-style: none; margin: var(--space-sm) 0 0; padding: 0; }
.upload-list li { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-3xs); border-block-end: 1px solid rgba(201, 162, 75, 0.22); font-size: 0.94rem; }
.upload-list .fname { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-list .fstatus { flex: none; font-weight: 600; font-size: 0.86rem; }
.upload-list progress { flex: none; width: 84px; height: 8px; accent-color: var(--color-gold); }
.status-done { color: var(--color-ok); }
.status-fail { color: var(--color-err); }

.msg { padding: var(--space-xs) var(--space-sm); border-radius: var(--radius); margin-block-start: var(--space-sm); font-weight: 600; }
.msg-ok { background: var(--color-ok-bg); border: 1px solid #a9cfa6; color: var(--color-ok); }
.msg-err { background: var(--color-err-bg); border: 1px solid #e0b3ae; color: var(--color-err); }

/* ---------- wensenmuur ---------- */
.wish { background: var(--color-paper-2); border: var(--border-gold); border-radius: var(--radius); padding: var(--space-sm); margin-block-end: var(--space-xs); box-shadow: var(--shadow-soft); }
.wish .who { font-weight: 800; color: var(--color-gold-dark); }
.wish .when { color: var(--color-muted); font-size: 0.82rem; }
.wish p { margin: 6px 0 0; line-height: 1.5; }

/* ---------- posts / linkwall (002) ---------- */
.post-card { display: flex; gap: var(--space-xs); align-items: center; background: var(--color-paper-2); border: var(--border-gold); border-radius: var(--radius); padding: var(--space-xs); margin-block-end: var(--space-xs); text-decoration: none; color: var(--color-ink); transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); } }
.post-card .thumb { flex: none; width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; background: var(--color-paper-3); }
.post-card .no-thumb { flex: none; width: 64px; height: 64px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--color-paper-3); color: var(--color-gold-dark); font-size: 1.6rem; }
.post-card .pc-body { flex: 1 1 auto; min-width: 0; }
.post-card .pc-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-card .pc-meta { font-size: 0.84rem; color: var(--color-ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-card .pc-open { flex: none; color: var(--color-gold-dark); font-size: 1.3rem; }

/* ---------- per-foto ---------- */
.photo-page { text-align: center; padding-block: var(--space-md) var(--space-xl); }
.photo-page img.full { max-width: 100%; max-height: 74dvh; margin-inline: auto; border-radius: var(--radius-lg); border: 3px solid var(--color-gold); box-shadow: var(--shadow-lift); background: var(--color-paper-2); }
.photo-meta { text-align: center; margin-block: var(--space-sm) 0; color: var(--color-ink-soft); }
.photo-meta-who { display: block; }
.photo-meta-when { display: block; color: var(--color-muted); font-size: 0.86rem; margin-block-start: 2px; }

/* Icon-only actierij (sequentie-order-golf; page-scoped <style> gevouwd in
   galerij-upload-ux-golf): pictogram zonder zichtbare tekst, aria-label + title
   dragen de naam (WCAG). Leeft op de detailpagina én in de album-header. */
.btn-ico { width: 56px; padding-inline: 0; }
/* Deelkaart-golf: de bevestigings-glyphen zijn <svg>'s met het hidden-attribuut. De
 * UA-regel `[hidden] { display: none }` (html.css) gilt alleen voor HTML-elementen —
 * een <svg> in HTML blijft zichtbaar staan. Expliciet maken, anders tonen kopieer- en
 * bewerkknop hun bevestigings-vinkje NOOIT als alternatief maar ALTIJD ernaast. */
svg[hidden] { display: none; }
.btn-ico svg { width: 22px; height: 22px; flex: none; }
/* Galerij-upload-ux-golf (captain-punt 3): twee kleine icon-only kopieer-knoppen in
   het detail-kapsel — compacte variant van .btn-ico (36px), zelfde bevestigingstaal. */
.photo-meta-copy { display: inline-flex; gap: var(--space-3xs); justify-content: center; margin-block-start: var(--space-2xs); }
.btn-ico-sm { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: var(--radius-pill); background: var(--color-paper-2); border: 1.5px solid var(--color-gold); color: var(--color-gold-dark); cursor: pointer; box-shadow: var(--shadow-soft); touch-action: manipulation; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn-ico-sm svg { width: 17px; height: 17px; }
.btn-ico-sm:hover { background: #fff8e8; }
.btn-ico-sm:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn-ico-sm:active { transform: translateY(1px); }

/* ---------- TV-modus ---------- */

/* ---------- QR / login-notitie ----------
   De kale /qr-pagina (qr-delen-golf 2026-10-09) stijlt zichzelf in public/qr.css;
   .qr-frame/.qr-warn van de oude uitleg-pagina waren dood → weg. .qr-note leeft
   voort als de Meta-toelichting op /login (login.html + login.js). */
.qr-note { max-width: 52ch; margin: var(--space-md) auto 0; font-size: 0.92rem; line-height: 1.6; color: var(--color-ink-soft); }

/* ---------- desktop top-nav (verborgen op mobiel, tab bar i.p.v.) ---------- */
.topnav { display: none; }
@media (min-width: 60rem) {
  .topnav { display: flex; gap: var(--space-3xs); justify-content: center; flex-wrap: wrap; padding-block: var(--space-sm) 0; }
  .topnav a { color: var(--color-ink); text-decoration: none; font-weight: 700; font-size: 0.95rem; padding: 10px 16px; border-radius: var(--radius-pill); border: 1.5px solid transparent; white-space: nowrap; transition: border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
  .topnav a:hover, .topnav a[aria-current="page"] { border-color: var(--color-gold); background: color-mix(in srgb, var(--color-paper-2) 70%, transparent); }
}

/* ---------- bottom tab bar (mobiel app-gevoel, 003; home-golf: vier tabs) ----------
   Home / Upload / Mijn foto's / QR — captain-eis (inbox 001): alle tabs VLAK en
   identiek (geen uitstulpende FAB), de selector-balk loopt uniform over de bar.
   Bij 360px is elke tab 90px breed (min-target 44px ruimschoots gehaald), labels op
   0.66rem zodat "Mijn foto's" zonder wrap in de kolom past. */
.tabbar { position: fixed; z-index: var(--z-tabbar); inset-inline: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
  background: color-mix(in srgb, var(--color-paper-2) 96%, transparent); backdrop-filter: blur(8px); border-block-start: 1px solid rgba(201, 162, 75, 0.5); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 44px; min-width: 0; text-decoration: none; color: var(--color-muted); font-size: 0.66rem; font-weight: 700; white-space: nowrap; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: color var(--dur-short) var(--ease-out); }
.tabbar a svg { width: 24px; height: 24px; flex: none; }
.tabbar a[aria-current="page"] { color: var(--color-gold-dark); }
/* home-golf: header-portret/titelblok als secundair tappad naar de landing */
.head-link { display: block; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity var(--dur-short) var(--ease-out); }
.head-link:active { transform: scale(0.975); opacity: 0.85; }
@media (min-width: 60rem) { .tabbar { display: none; } }

/* ---------- footer (organizer-only: /beheer; gast-voetekst removed 2026-10-09) ---------- */
footer { text-align: center; padding: var(--space-xl) var(--space-sm) var(--space-lg); color: var(--color-ink-soft); font-size: 0.92rem; }

/* ---------- toast (003: vibrate + bevestiging bij onzichtbaar effect) ---------- */
#toast { position: fixed; z-index: var(--z-toast); left: 50%; bottom: calc(var(--tabbar-h) + var(--space-md) + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none; background: var(--color-ink); color: var(--color-paper); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); font-weight: 700; box-shadow: var(--shadow-lift); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); max-width: 90vw; text-align: center; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 60rem) { #toast { bottom: var(--space-md); } }
/* feest-modus vs aanloop-modus: data-mode komt uit /api/config (applyMode, app.js) */
/* install-prompt (inbox-fix 002 + iOS-installgolf): compacte pill boven de bottom tab bar,
 * duimzone rechts. Alleen mobiel (<768px), alleen niet-standalone en niet-weggetikt.
 * Zichtbaar met gevangen beforeinstallprompt (native pad) OF op iOS/no-BIP-engines
 * (guidance-pad: tik opent de "Zet op beginscherm"-sheet, hieronder).
 * states: default/hover/focus/active/disabled(=hidden)/loading(n.v.t.)/error(n.v.t.)/success(=install → weg) */
#install-pill {
  position: fixed; z-index: var(--z-tabbar);
  right: var(--space-xs);
  bottom: calc(var(--tabbar-h) + var(--space-xs) + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: var(--space-3xs);
  min-height: 44px; padding: 10px 16px;
  border-radius: var(--radius-pill); border: var(--border-gold);
  background: linear-gradient(180deg, var(--color-gold-light), var(--color-gold));
  color: var(--color-accent-ink); font-weight: 800; font-size: 0.9rem;
  box-shadow: var(--shadow-lift); cursor: pointer; touch-action: manipulation;
}
#install-pill svg { width: 18px; height: 18px; flex: none; }
#install-pill:hover { background: var(--color-gold-light); }
#install-pill:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
#install-pill:active { transform: translateY(1px); }
#install-pill[hidden] { display: none; }
#install-pill .install-pill-x { margin-left: var(--space-3xs); padding: 4px 6px; border-radius: var(--radius-pill); font-size: 1.1rem; line-height: 1; color: var(--color-accent-ink); opacity: 0.7; }
#install-pill .install-pill-x:hover { opacity: 1; background: rgba(61, 44, 16, 0.12); }
#install-pill .install-pill-x:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; }
@media (min-width: 48rem) { #install-pill { display: none !important; } }
/* eenmalige rustige nudge op iOS (hint install-nudged): kort goud-gloed rond de pill, géén sheet */
#install-pill.install-pill-pulse { animation: install-pill-pulse 1.4s var(--ease-out) 2; }
@keyframes install-pill-pulse {
  0%, 100% { box-shadow: var(--shadow-lift); }
  50% { box-shadow: var(--shadow-lift), 0 0 0 7px color-mix(in srgb, var(--color-gold) 38%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  #install-pill.install-pill-pulse { animation: none; }
}

/* ---------- stale-shell-banner (deelkaart-golf) ----------
 * Rustige gouden balk bovenin (z-index boven de tabbar, onder toast/sheet), pill-DNA
 * als de install-pill. Tik op de tekst = herladen; × = weg voor deze sessie+versie.
 * states: default · hover · focus · active · dismiss · reduced-motion (geen animatie) */
#update-banner {
  position: fixed; z-index: calc(var(--z-toast) + 4);
  top: calc(var(--space-2xs) + env(safe-area-inset-top, 0px)); left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: var(--space-3xs);
  max-width: min(92vw, 30rem);
  min-height: 44px; padding: 8px 10px 8px 16px;
  border-radius: var(--radius-pill); border: var(--border-gold);
  background: linear-gradient(180deg, var(--color-gold-light), var(--color-gold));
  color: var(--color-accent-ink); font-weight: 700; font-size: 0.92rem;
  box-shadow: var(--shadow-lift); animation: update-banner-in var(--dur-short) var(--ease-out);
}
@keyframes update-banner-in { from { opacity: 0; transform: translateX(-50%) translateY(-8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@media (prefers-reduced-motion: reduce) { #update-banner { animation: none; } }
#update-banner .update-banner-text { flex: 1 1 auto; min-width: 0; background: none; border: 0; font: inherit; color: inherit; cursor: pointer; padding: 6px 4px; min-height: 32px; text-align: left; touch-action: manipulation; }
#update-banner .update-banner-text:hover { text-decoration: underline; }
#update-banner .update-banner-text:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius-sm); }
#update-banner .update-banner-x { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: var(--radius-pill); background: none; border: 0; color: var(--color-accent-ink); opacity: 0.7; cursor: pointer; }
#update-banner .update-banner-x:hover { opacity: 1; background: rgba(61, 44, 16, 0.12); }
#update-banner .update-banner-x:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; }
#update-banner .update-banner-x svg { width: 16px; height: 16px; }

/* ---------- iOS "Zet op beginscherm"-sheet (app.js, guidance-pad) ----------
 * Zelfde kaart-DNA als de journey-coach-sheet (goud/champagne, duimzone, grabber):
 * bottom-sheet met 2 stappen, stip-paginering, SVG-annotatie in token-kleuren.
 * states: default · hover(skip) · focus · active · skip · dots · actions · reduced-motion */
.ios-backdrop {
  position: fixed; inset: 0; z-index: calc(var(--z-toast) + 5);
  display: grid; align-items: end; justify-items: center;
  background: rgba(30, 20, 8, 0.45);
}
.ios-backdrop[hidden] { display: none; }
.ios-sheet {
  position: relative; width: min(480px, 100%);
  background: var(--color-paper-2);
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-lift);
  padding: var(--space-xs) var(--space-md) calc(var(--space-md) + env(safe-area-inset-bottom, 0px));
  text-align: center; will-change: transform;
}
.ios-grab { width: 44px; height: 4px; border-radius: var(--radius-pill); background: var(--color-gold-pale); margin: 0 auto var(--space-sm); }
.ios-skip {
  position: absolute; top: var(--space-xs); right: var(--space-xs);
  min-height: 44px; min-width: 44px; padding: 8px 12px;
  background: none; border: 0; border-radius: var(--radius-pill);
  color: var(--color-muted); font-family: var(--font-body);
  font-size: 0.85rem; font-weight: 700; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}
.ios-skip:hover { color: var(--color-ink); background: color-mix(in srgb, var(--color-gold-pale) 55%, transparent); }
.ios-skip:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.ios-skip:active { transform: translateY(1px); }
.ios-icon {
  display: grid; place-items: center;
  width: 64px; height: 64px; margin: var(--space-2xs) auto var(--space-xs);
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--color-gold-light), var(--color-gold));
  color: var(--color-accent-ink);
  border: 3px solid var(--color-paper-2); box-shadow: var(--shadow-soft);
}
.ios-icon svg { width: 30px; height: 30px; }
.ios-step { margin: 0 0 var(--space-3xs); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-ink-soft); }
.ios-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin: 0 0 var(--space-2xs); color: var(--color-ink); }
.ios-text { margin: 0 auto var(--space-sm); max-width: 38ch; color: var(--color-ink-soft); font-size: 0.98rem; line-height: 1.55; }
.ios-illus { margin: 0 auto var(--space-sm); width: min(200px, 70%); }
.ios-illus svg { display: block; width: 100%; height: auto; }
.ios-dots { display: flex; gap: 6px; justify-content: center; margin-block-end: var(--space-xs); }
.ios-dot { width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--color-paper-3); transition: background-color var(--dur-short) var(--ease-out), width var(--dur-short) var(--ease-out); }
.ios-dot.on { width: 22px; background: var(--color-gold); }
.ios-actions { display: flex; flex-direction: column; gap: var(--space-2xs); }
.ios-actions .btn { width: 100%; }
@media (min-width: 40rem) {
  .ios-backdrop { align-items: center; padding: var(--space-md); }
  .ios-sheet { border-radius: var(--radius-lg); padding-block-end: var(--space-md); }
}
html.ios-open, html.ios-open body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .ios-sheet, .ios-backdrop, .ios-skip, .ios-dot { animation: none !important; transition: none !important; }
}

/* ---------- QR-overlay (qr-overlay-golf 2026-10-11, docs/BRAINSTORM-QR-OVERLAY.md) ----------
 * De QR-kaart als overlay óp de huidige pagina: bottom sheet onder 40rem,
 * gecentreerd dialog daarboven — dezelfde dialog-taal als de wish-sheet
 * (.wish-backdrop-DNA: hidden-attribuut + CSS-gate, grabber, ×, Escape/backdrop,
 * focus-return, safe-area). De nav-QR-entry opent hem via initQrNavIntercept()
 * in app.js; /qr blijft printvlak + deep-link. De kaart-img komt uit /qr.svg
 * (lib/qr-card.js), dus overlay, /qr en drukwerk divergeren nooit. */
.qr-backdrop { position: fixed; inset: 0; z-index: calc(var(--z-toast) + 5);
  display: grid; align-items: end; justify-items: center;
  background: rgba(30, 20, 8, 0.45); animation: qr-fade var(--dur-short) var(--ease-out); }
.qr-backdrop[hidden] { display: none; }
.qr-sheet { position: relative; width: min(420px, 100%); text-align: center;
  background: color-mix(in srgb, var(--color-gold-pale) 14%, var(--color-paper));
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-lift);
  padding: var(--space-xs) var(--space-md) calc(var(--space-md) + env(safe-area-inset-bottom, 0px));
  max-height: 92dvh; overflow-y: auto; outline: none;
  animation: qr-rise 320ms var(--ease-out); }
@keyframes qr-fade { from { opacity: 0; } }
@keyframes qr-rise { from { transform: translateY(16px); opacity: 0; } }
.qr-grab { width: 44px; height: 4px; border-radius: var(--radius-pill);
  background: var(--color-gold); margin: 0 auto var(--space-sm); }
.qr-close { position: absolute; top: var(--space-2xs); right: var(--space-2xs);
  min-height: 44px; min-width: 44px; padding: 8px; background: none; border: 0;
  display: grid; place-items: center;
  border-radius: var(--radius-pill); color: var(--color-muted);
  cursor: pointer; touch-action: manipulation;
  transition: color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.qr-close:hover { color: var(--color-ink); background: color-mix(in srgb, var(--color-gold-pale) 55%, transparent); }
.qr-close:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.qr-close:active { transform: translateY(1px); }
.qr-close svg { width: 18px; height: 18px; }
.qr-sheet-title { font-family: var(--font-display); font-size: clamp(1.35rem, 5vw, 1.7rem);
  font-weight: 700; margin: 0 0 var(--space-2xs); color: var(--color-ink); }
.qr-sheet-card { width: min(72vw, 300px); margin: 0 auto; line-height: 0;
  background: var(--color-paper-2); border-radius: var(--radius-sm); overflow: hidden; }
.qr-sheet-card img { width: 100%; height: auto; }
.qr-sheet-acts { display: flex; flex-direction: column; align-items: center; gap: var(--space-3xs);
  margin-block-start: var(--space-sm); }
.qr-sheet-share { min-width: 168px; }
.qr-sheet-share svg { width: 18px; height: 18px; flex: none; }
.qr-sheet-print { display: inline-flex; align-items: center; min-height: 44px;
  padding: var(--space-3xs) var(--space-2xs); background: none; border: 0; font: inherit;
  font-size: 0.92rem; color: var(--color-ink-soft); border-radius: var(--radius-sm);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--color-gold); }
.qr-sheet-print:hover { color: var(--color-ink); background: var(--color-paper-2); }
.qr-sheet-print:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
@media (min-width: 40rem) {
  .qr-backdrop { align-items: center; padding: var(--space-md); }
  .qr-sheet { border-radius: var(--radius-lg); padding-block-end: var(--space-md); }
  .qr-grab { display: none; } /* gecentreerd dialog heeft geen grabber nodig */
}
html.qr-open, html.qr-open body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .qr-sheet, .qr-backdrop, .qr-close { animation: none !important; transition: none !important; }
}

/* ---------- reveal (één georkestreerde entrance, IO) ---------- */
.reveal { opacity: 0; transform: translateY(10px); }
.reveal.in { opacity: 1; transform: none; transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }

/* ---------- confetti-burst bij geslaagde upload ---------- */
.burst { position: fixed; z-index: var(--z-toast); width: 10px; height: 14px; border-radius: 2px; pointer-events: none; will-change: transform, opacity; }

/* ---------- reduced motion (gate 27) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 150ms !important; animation-iteration-count: 1 !important; transition-duration: 150ms !important; scroll-behavior: auto !important; }
  .confetti-layer, .balloon { display: none; }
  .burst { display: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- beheer (organizer-only UI) ---------- */
.tabstrip { display: flex; gap: var(--space-2xs); flex-wrap: wrap; margin-block: var(--space-sm) var(--space-xs); }
.admin-h { font-size: 1.6rem; margin-block: var(--space-md) var(--space-2xs); }
.queue-card {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xs);
  background: var(--color-paper-2); border: var(--border-gold); border-radius: var(--radius);
  padding: var(--space-sm); margin-block-end: var(--space-xs);
}
@media (min-width: 40rem) { .queue-card { grid-template-columns: 140px minmax(0, 1fr); } }
.queue-thumb { width: 100%; max-height: 140px; object-fit: cover; border-radius: var(--radius-sm); border: var(--border-gold); }
.queue-thumb.queue-link { display: grid; place-items: center; background: var(--color-paper); font-size: 1.6rem; min-height: 84px; }
.queue-meta { margin: 0; font-size: 0.86rem; color: var(--color-ink-soft); }
.queue-caption { margin: 4px 0; overflow-wrap: anywhere; }
.queue-url { font-size: 0.86rem; overflow-wrap: anywhere; }
.queue-status { display: inline-block; margin: 4px 0 0; padding: 2px 10px; border-radius: var(--radius-pill); font-size: 0.78rem; font-weight: 700; border: 1px solid var(--color-gold); }
.status-pending { background: #fff3d6; color: var(--color-gold-dark); }
.status-approved { background: var(--color-ok-bg); color: var(--color-ok); }
.status-rejected, .status-takedown { background: var(--color-err-bg); color: var(--color-err); }
.status-failed { background: var(--color-err-bg); color: var(--color-err); }
.row-actions { display: flex; gap: var(--space-2xs); flex-wrap: wrap; margin-top: var(--space-2xs); }
.embed-preview { margin-top: var(--space-2xs); border: var(--border-gold); border-radius: var(--radius-sm); padding: var(--space-2xs); overflow-x: clip; }
.album-strip { display: flex; gap: 4px; overflow-x: auto; margin-block: var(--space-2xs); }
.album-strip img { height: 72px; border-radius: var(--radius-sm); border: 1px solid var(--color-gold); }
.preview-btn { min-height: 44px; padding: 8px 16px; font-size: 0.9rem; }

/* ============================================================================
 * MOTION-SYSTEM (ux-journeys): native View Transitions API (cross-document) +
 * Web Animations API + CSS scroll-driven reveals. Geen libraries, geen deps.
 * Alles transform/opacity-only (compositor), 60 fps, reduced-motion heeft een
 * volledige no-motion parity-path (zie de prefers-reduced-motion-blokken).
 * ========================================================================== */

/* ---------- cross-document view transitions (Chrome 126+; andere UA's navigeren
   gewoon direct — instant-nav fallback is de default MPA-gedragsregel) ---------- */
@view-transition { navigation: auto; }

/* shared elements: portret (landing), tab bar (stabiel chrome), upload-hero.
   Foto-tegels krijgen hun naam via .vt-photo (JS) — view-transition-names moeten
   uniek zijn per document, dus nooit élke tegel dezelfde naam geven. */
.portrait { view-transition-name: mientje-portrait; }
.tabbar { view-transition-name: app-tabbar; }
.up-hero { view-transition-name: hero-head; }

/* root: nieuwe pagina schuift zachtjes op vanuit de navigatierichting */
::view-transition-old(root) { animation: vt-fade-out 180ms var(--ease-in) both; }
::view-transition-new(root) { animation: vt-slide-in 320ms var(--ease-out) both; }
@keyframes vt-fade-out { to { opacity: 0; transform: scale(0.985); } }
@keyframes vt-slide-in { from { opacity: 0; transform: translateY(10px); } }

/* de tab bar zelf mag NIET morphen — stabiel chrome voelt als een native app */
::view-transition-old(app-tabbar), ::view-transition-new(app-tabbar) { animation: none; }


/* foto-detail shared element: JS zet .vt-photo op de aangeklikte tegel (oude pagina)
   én op de grote foto (nieuwe pagina) — zo blijft view-transition-name uniek per document */
.vt-photo { view-transition-name: photo-hero; }
/* ---------- pressed-state spring feedback (aanvulling: WAAPI-overshoot in app.js) ---------- */
.btn:active:not(:disabled) { transform: scale(0.965); transition-duration: 60ms; }
.chip:active { transform: scale(0.96); transition-duration: 60ms; }
.tabbar a:active { transform: scale(0.92); }
.tabbar a { transition: color var(--dur-short) var(--ease-out), transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1); }

/* ---------- geanimeerde actieve-tab-indicator (positie via JS) ---------- */
.tabbar-ind {
  position: absolute; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--color-gold-light), var(--color-gold));
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transform: translateX(0);
  transition: transform 320ms cubic-bezier(0.34, 1.3, 0.64, 1), width 320ms var(--ease-out);
  pointer-events: none;
}

/* ---------- scroll-driven reveal (Chrome 115+): pagina-blokken faden in terwijl je
   scrollt — oriëntatie in lange lijsten. Feature-gated: niet-ondersteunende UA's tonen
   alles gewoon direct. Tegels krijgen hun entrance via de stagger hieronder (één
   animatie-slot per element, nooit beide). ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .album-block, .post-card, .mypost, .wish {
      animation: block-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
    @keyframes block-reveal { from { opacity: 0; transform: translateY(16px); } }
  }
}

/* ---------- entrance-stagger voor vers geladen grids (CSS-only, --n via JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .gallery.stagger .tile {
    animation: pop-in 380ms var(--ease-out) both;
    animation-delay: calc(var(--n, 0) * 45ms);
  }
  @keyframes pop-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } }
}

/* ---------- skeleton-uitbreiding: album-grid + tegelvorm ---------- */
.skeleton-tile { aspect-ratio: 4 / 3; break-inside: avoid; margin-block-end: var(--space-2xs); }

/* ---------- "nieuw sinds je laatste bezoek"-badge (journey 3) ---------- */
.badge-new {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; margin-left: var(--space-2xs);
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--color-gold-light), var(--color-gold));
  color: var(--color-accent-ink); font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase; vertical-align: middle;
}
@media (prefers-reduced-motion: no-preference) {
  .badge-new { animation: badge-pop 420ms cubic-bezier(0.34, 1.56, 0.64, 1) both 320ms; }
  @keyframes badge-pop { from { opacity: 0; transform: scale(0.6); } }
}
.resume-hint {
  display: flex; gap: var(--space-xs); align-items: center;
  background: color-mix(in srgb, var(--color-gold-pale) 40%, var(--color-paper-2));
  border: var(--border-gold); border-radius: var(--radius);
  padding: var(--space-xs) var(--space-sm); margin-block-end: var(--space-sm);
  font-size: 0.92rem; color: var(--color-ink-soft);
}
.resume-hint svg { flex: none; width: 20px; height: 20px; color: var(--color-gold-dark); }

/* ---------- posts: status-kaart na insturen (inbox 001) ---------- */
.status-card {
  display: grid; gap: var(--space-2xs);
  background: var(--color-paper-2); border: 2px solid var(--color-gold);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-soft);
  padding: var(--space-md); margin-block: var(--space-sm); text-align: center;
}
.status-card .sc-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto; border-radius: var(--radius-pill); }
.status-card .sc-icon svg { width: 28px; height: 28px; }
.status-card .sc-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; margin: 0; }
.status-card .sc-text { margin: 0; color: var(--color-ink-soft); font-size: 0.95rem; }
.status-card .sc-url { word-break: break-all; font-size: 0.85rem; color: var(--color-muted); margin: 0; }
.status-card[data-status="pending"] .sc-icon { background: #fff3d6; color: var(--color-gold-dark); }
.status-card[data-status="approved"] .sc-icon { background: var(--color-ok-bg); color: var(--color-ok); }
.status-card[data-status="failed"] .sc-icon, .status-card[data-status="rejected"] .sc-icon { background: var(--color-err-bg); color: var(--color-err); }
@media (prefers-reduced-motion: no-preference) {
  .status-card { animation: pop-in 380ms var(--ease-out) both; }
}

/* ---------- mijn posts op /gallerij (inbox 001) ---------- */
.myposts { margin-block-start: var(--space-md); }
.myposts h3 { font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-gold-dark); margin-block-end: var(--space-xs); }
.mypost {
  display: flex; gap: var(--space-xs); align-items: center;
  background: var(--color-paper-2); border: var(--border-gold); border-radius: var(--radius);
  padding: var(--space-xs); margin-block-end: var(--space-2xs);
}
.mypost .mp-body { flex: 1 1 auto; min-width: 0; }
.mypost .mp-url { display: block; font-size: 0.86rem; color: var(--color-ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.mypost .queue-status { margin: 2px 0 0; }

/* ---------- secondary CTA "Deel je post-link" (landing/upload) ---------- */
.btn-row .btn-posts { --btn-bg: var(--color-paper-2); --btn-ink: var(--color-gold-dark); --btn-border: var(--color-gold); }
.btn-row .btn-posts:hover { background: #fff8e8; }
.btn-row .btn-posts svg { width: 18px; height: 18px; }

/* ---------- albumbeheer (album-beheer-golf, docs/BRAINSTORM-ALBUM-BEHEER.md) ----------
 * Hallmark · component: album-edit-mode · genre: playful (card-DNA, goud/champagne)
 * states: default · hover · focus · active · disabled · loading(=busy knoppen) ·
 * error(=toast/msg) · success(=toast) · contrast: pass (ink op paper-2, err op err-bg)
 * pre-emit critique: P4 H4 E4 S4 R4 V3 */

.manage-row[hidden] { display: none; } /* author-display wint van het hidden-attribuut: expliciet terugzetten */
/* Bewerken-toggle + tools: rustige outline-chips onder de deel-acties. */
.manage-row { display: flex; flex-wrap: wrap; gap: var(--space-2xs); align-items: center; justify-content: center; margin-block-start: var(--space-sm); padding-block-start: var(--space-sm); border-top: 1px dashed color-mix(in srgb, var(--color-gold) 55%, transparent); }
.manage-tools { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.btn-edit { display: inline-flex; align-items: center; gap: 6px; }
.btn-edit svg { width: 18px; height: 18px; }
.btn-edit.is-on { --btn-bg: var(--color-gold); --btn-ink: var(--color-accent-ink); --btn-border: transparent; }
/* Bewerk-modus: elke tegel krijgt een zachte gouden binnenrand (outline: géén layout-shift). */
body.album-editing .gallery .tile { outline: 2px solid color-mix(in srgb, var(--color-gold) 70%, transparent); outline-offset: -2px; }
body.album-editing .gallery .tile:hover { transform: none; }

/* Trash-knop (bewerk-modus, album-beheer-golf): 44px err-omrand, bovenlinks;
   de type-badge (`.tile-type`) is het rustige 22px zusje rechtsonder. */
.gallery .tile-del { position: absolute; left: 6px; top: 6px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--color-paper-2) 92%, transparent); border: 1.5px solid var(--color-err); color: var(--color-err); box-shadow: var(--shadow-soft); cursor: pointer; padding: 0; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.gallery .tile-del svg { width: 20px; height: 20px; }
.gallery .tile-del:hover { background: var(--color-err-bg); }
.gallery .tile-del:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.gallery .tile-del:active { transform: translateY(1px); }
.gallery .tile-del:disabled { opacity: 0.55; cursor: wait; }

/* Tweetraps bevestiging: donkere scrim-strip óp de tegel (context blijft zichtbaar). */
.gallery .tile-confirming { position: relative; }
.gallery .tile-confirming > *:not(.tile-confirm) { pointer-events: none; }
.tile-confirm { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2xs); padding: var(--space-xs); text-align: center; background: color-mix(in srgb, #14100a 82%, transparent); backdrop-filter: blur(2px); border-radius: var(--radius); }
.tile-confirm-q { margin: 0; font-size: 0.9rem; font-weight: 800; line-height: 1.35; color: var(--color-paper-2); }
.tile-confirm-sub { font-weight: 600; font-size: 0.78rem; color: color-mix(in srgb, var(--color-paper) 75%, transparent); }
.tile-confirm-btns { display: flex; flex-wrap: wrap; gap: var(--space-2xs); justify-content: center; }
.btn-danger { --btn-bg: var(--color-err); --btn-ink: var(--color-paper-2); --btn-border: transparent; }
.btn-danger:hover { background: #b8403a; }
.tile-confirm .btn-outline { --btn-bg: color-mix(in srgb, var(--color-paper-2) 90%, transparent); --btn-ink: var(--color-ink); }

/* Inline hernoemen: de titel wordt een formulier op dezelfde plek. */
.album-rename { max-width: 26rem; margin-inline: auto; text-align: left; }
.album-rename input { text-align: center; }
.album-rename .rename-btns { margin-block-start: var(--space-2xs); }
.rename-msg { text-align: center; }
.album-title-custom { color: var(--color-gold-dark); }

/* Samenvoegen-paneel: panel-DNA, radio-kaarten (44px+ tikvlakken). */
.merge-panel { text-align: left; }
.merge-lead { margin: 0 0 var(--space-xs); color: var(--color-ink-soft); font-size: 0.95rem; }
.merge-list { display: grid; gap: var(--space-2xs); }
.merge-opt { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-sm); border: var(--border-gold); border-radius: var(--radius); background: var(--color-paper); cursor: pointer; min-height: 48px; transition: border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.merge-opt:hover { border-color: var(--color-gold); background: #fff8e8; }
.merge-opt input { width: 20px; height: 20px; accent-color: var(--color-gold-dark); flex: none; }
.merge-opt:has(input:checked) { border-color: var(--color-gold); background: color-mix(in srgb, var(--color-gold-pale) 30%, var(--color-paper)); }
.merge-opt:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.merge-opt-txt { display: flex; flex-direction: column; min-width: 0; }
.merge-opt-txt strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-ink); }
.merge-opt-count { font-size: 0.84rem; color: var(--color-muted); }
.merge-btns { margin-block-start: var(--space-xs); }
.merge-empty { margin: 0; }

/* Video-sequentie (captain inbox-001): de actieve tegel draagt een gouden ring. */
.gallery .tile.seq-active { outline: 3px solid var(--color-gold); outline-offset: -3px; box-shadow: var(--shadow-lift); }

/* ---------- motion parity: reduced motion heeft VOORRANG op alles hierboven ---------- */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .gallery .tile, .album-block, .post-card, .mypost, .wish, .gallery.stagger .tile, .badge-new, .status-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .btn:active:not(:disabled), .chip:active, .tabbar a:active, .head-link:active { transform: none; }
}
