/* ============================================================
   LGNDS Moments: only what style.css lacks.
   Measurements follow design/moments/ (390px mockups).
   Motion: transform and opacity only, site easing, off under reduced motion.
   ============================================================ */

:root {
  --cream-body: rgba(245,240,232,.72);
  --cream-soft: rgba(245,240,232,.8);
  --m-bar-pad-bottom: max(16px, calc(10px + env(safe-area-inset-bottom)));
}

/* ---------- Page frame ---------- */
.m-body { font-size: 16px; line-height: 1.5; -webkit-tap-highlight-color: transparent; }
.m-body [hidden] { display: none !important; }
.m-page { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; position: relative; }
.m-page.has-bar { padding-bottom: 260px; }
#view-main.has-bar { padding-bottom: 200px; }
.m-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Small header row: logo left, label right */
.m-top { height: 52px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; }
.m-top img { width: 54px; height: 26px; object-fit: contain; }
.m-top-label { font-family: var(--font-label); font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--cream-dim); }

/* Type */
.m-eyebrows { display: flex; flex-direction: column; gap: 4px; }
.m-eyebrow { font-family: var(--font-label); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-body); line-height: 1.5; }
.m-eyebrow.is-gold { color: var(--gold); font-weight: 700; }
.m-eyebrow.is-strong { color: var(--cream); font-weight: 700; }
.m-h1 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: .92; text-transform: uppercase; letter-spacing: 0; }
.m-lede { margin: 0; color: var(--cream-body); font-size: 15px; line-height: 1.45; }
.m-label { font-family: var(--font-label); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.m-meta { font-size: 13px; color: var(--cream-dim); }

/* ---------- Buttons ---------- */
.m-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; height: 56px; padding: 0 16px; border-radius: var(--radius);
  font-family: var(--font-label); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cream); background: transparent; border: 1.5px solid var(--cream); text-decoration: none;
  cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation;
  transition: transform .12s var(--ease-out), opacity .18s var(--ease-out);
}
.m-btn svg { width: 20px; height: 20px; flex: 0 0 20px; }
.m-btn.is-crimson { background: var(--crimson); border-color: var(--crimson); }
.m-btn.is-black { background: var(--black); border-color: var(--black); }
.m-btn.is-quiet { border-color: var(--cream-faint); }
.m-btn.is-small { height: 44px; font-size: 12px; letter-spacing: .1em; }
.m-btn:active:not(:disabled) { transform: scale(.97); }
.m-btn:disabled { opacity: .4; cursor: not-allowed; }
/* Waiting on the terms box: still readable and tappable, the tap explains what is missing. */
.m-btn[aria-disabled="true"] { opacity: .72; }
.m-btn:focus-visible, .m-link:focus-visible, .m-tile:focus-visible, .m-check input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (hover: hover) {
  .m-btn.is-crimson:hover:not(:disabled) { background: var(--crimson-deep); border-color: var(--crimson-deep); }
}

.m-link {
  min-height: 44px; display: inline-flex; align-items: center; color: var(--cream);
  font-family: var(--font-label); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 4px; background: none; border: 0; padding: 0; cursor: pointer;
  transition: transform .12s var(--ease-out);
}
.m-link:active { transform: scale(.97); }
.m-link.is-plain { font-family: var(--font-body); font-weight: 400; font-size: 15px; letter-spacing: 0; text-transform: none; }

/* ---------- Sticky bottom bar ---------- */
.m-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 14px 16px var(--m-bar-pad-bottom); background: var(--charcoal); border-top: 1px solid var(--cream-hair);
  display: flex; flex-direction: column; gap: 10px;
}
.m-bar-inner { max-width: 528px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.m-bar.is-clear { background: transparent; border-top: 0; }
.m-bar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.m-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.m-why { font-size: 13px; color: var(--cream); transition: opacity .18s var(--ease-out); }

/* ---------- Guest: main screen ---------- */
.m-hero { position: relative; height: 120px; border-bottom: 4px solid var(--crimson); overflow: hidden; background: var(--charcoal); }
.m-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m-hero-top { position: absolute; top: 0; left: 0; right: 0; height: 56px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; }
.m-hero-top img { width: 58px; height: 28px; object-fit: contain; }
.m-chip { padding: 6px 10px; background: rgba(10,10,10,.72); border-radius: var(--radius); font-family: var(--font-label); font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; line-height: 1.5; }

.m-main-head { padding: 22px 20px 0; }
.m-main-title { padding: 14px 20px 0; display: flex; flex-direction: column; gap: 12px; }
.m-main-title .m-h1 { font-size: 64px; }
.m-main-title .m-lede { font-size: 16px; line-height: 1.5; }

.m-limits { margin: 20px 20px 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-top: 1px solid var(--cream-faint); border-bottom: 1px solid var(--cream-faint); }
.m-limits > div { padding: 12px 0; display: flex; flex-direction: column; gap: 2px; }
.m-limits > div + div { padding-left: 12px; border-left: 1px solid var(--cream-faint); }
.m-limits b { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1; text-transform: uppercase; }
.m-limits-note { padding: 4px 20px 0; }
.m-limits span { font-family: var(--font-label); font-weight: 500; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-dim); line-height: 1.5; }

.m-form { padding: 18px 20px 0; display: flex; flex-direction: column; gap: 4px; }
.m-check { min-height: 48px; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.m-check.is-dim { color: var(--cream-body); }
.m-check input { width: 24px; height: 24px; margin: 0; flex: 0 0 24px; accent-color: var(--crimson); }
.m-check a { color: var(--cream); text-decoration: underline; text-decoration-color: var(--crimson); text-underline-offset: 3px; }
.m-toggle {
  min-height: 48px; padding: 0; border: 0; border-top: 1px solid var(--cream-hair); background: transparent; color: var(--cream);
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  font-family: var(--font-label); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
}
.m-toggle svg { width: 18px; height: 18px; transition: transform .2s var(--ease-out); }
.m-toggle[aria-expanded="true"] svg { transform: rotate(45deg); }
.m-fields { display: grid; gap: 14px; padding: 4px 0 16px; }
.m-field { display: grid; gap: 6px; }
.m-field label { font-family: var(--font-label); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-dim); }
.m-field input {
  height: 48px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--cream-faint);
  background: var(--black); color: var(--cream); font-size: 16px; font-family: var(--font-body); width: 100%;
}
.m-field input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.m-help { font-size: 13px; color: var(--cream-dim); line-height: 1.45; }
.m-error { font-size: 13px; color: var(--gold); line-height: 1.45; }
.m-code input { text-transform: uppercase; letter-spacing: .3em; font-family: var(--font-label); font-weight: 700; }
.m-turnstile { min-height: 0; }
.m-turnstile:not(:empty) { padding-top: 8px; }
.m-pickers .m-btn { width: 100%; }
.m-done-note { font-size: 15px; line-height: 1.45; }

/* State screens (not found, not open, paused, closed) */
.m-state { padding: 64px 20px 0; display: flex; flex-direction: column; gap: 16px; }
.m-state .m-h1 { font-size: 48px; }
.m-state .m-lede { font-size: 16px; line-height: 1.5; }

/* ---------- Guest: progress screen ---------- */
.m-progress-title { padding: 10px 16px 0; display: flex; flex-direction: column; gap: 10px; }
.m-progress-title .m-h1 { font-size: 48px; }
.m-rows { margin-top: 22px; border-top: 1px solid var(--cream-hair); }
.m-row {
  min-height: 96px; padding: 10px 16px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--cream-hair);
}
.m-row.is-entering { opacity: 0; transform: translateY(8px); }
.m-row { transition: opacity .22s var(--ease-out), transform .22s var(--ease-out); }
.m-check.is-shake, .m-row.is-shake { animation: m-shake .24s var(--ease-out); }
.m-row-thumb { width: 56px; height: 56px; flex: 0 0 56px; border-radius: var(--radius); background: var(--charcoal); overflow: hidden; }
.m-row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-row.is-waiting .m-row-thumb { opacity: .6; }
.m-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.m-row-name { font-size: 15px; font-weight: 600; line-height: 1.2; }
.m-row-sub { font-size: 13px; color: var(--cream-dim); line-height: 1.2; }
.m-row-sub.is-gold { color: var(--gold); }
.m-row-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.m-row-status { display: flex; align-items: center; gap: 6px; font-family: var(--font-label); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; font-variant-numeric: tabular-nums; }
.m-row-status.is-dim { color: var(--cream-dim); }
.m-row-status svg { width: 18px; height: 18px; }
.m-row.is-uploading .m-row-main { gap: 8px; }
.m-row .m-btn { height: 44px; padding: 0 16px; font-size: 12px; letter-spacing: .1em; flex: 0 0 auto; }

/* Progress bars: the fill scales, never resizes, so only transform animates. */
.m-meter { height: 6px; background: rgba(245,240,232,.12); border-radius: 3px; overflow: hidden; position: relative; }
.m-meter.is-row { height: 3px; background: var(--cream); border-radius: 2px; }
.m-meter i { position: absolute; inset: 0; background: var(--crimson); transform-origin: left center; transform: scaleX(0); transition: transform .3s linear; }
.m-check-draw path { stroke-dasharray: 24; stroke-dashoffset: 0; }
.m-check-draw.is-new path { animation: m-draw .3s var(--ease-out) both; }

/* ---------- Guest: pick screen ---------- */
.m-pick-top { height: 52px; padding: 0 8px; display: flex; align-items: center; justify-content: space-between; }
.m-back { min-height: 44px; padding: 0 8px; display: flex; align-items: center; gap: 4px; color: var(--cream); background: none; border: 0; font-size: 16px; font-family: var(--font-body); cursor: pointer; transition: transform .12s var(--ease-out); }
.m-back:active { transform: scale(.97); }
.m-back svg { width: 20px; height: 20px; }
.m-pick-title { padding: 8px 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.m-pick-title .m-h1 { font-size: 48px; }
.m-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.m-tile { position: relative; aspect-ratio: 1; padding: 0; border: 0; background: var(--charcoal); cursor: pointer; overflow: hidden; display: block; width: 100%; color: var(--cream); touch-action: manipulation; }
.m-tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.m-tile .m-dim { position: absolute; inset: 0; background: rgba(10,10,10,.42); transition: opacity .2s var(--ease-out); }
.m-tile .m-keyline { position: absolute; inset: 0; border: 3px solid var(--cream); opacity: 0; transition: opacity .15s var(--ease-out); }
.m-tile .m-tick { position: absolute; top: 7px; right: 7px; width: 26px; height: 26px; border-radius: var(--radius); background: var(--crimson); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.6); transition: transform .2s var(--ease-out), opacity .2s var(--ease-out); }
.m-tile .m-tick svg { width: 16px; height: 16px; }
.m-tile.is-on .m-dim { opacity: 0; }
.m-tile.is-on .m-keyline { opacity: 1; }
.m-tile.is-on .m-tick { opacity: 1; transform: scale(1); }
.m-tile.is-shake { animation: m-shake .24s var(--ease-out); }
.m-tag { position: absolute; left: 6px; bottom: 6px; padding: 3px 6px; border-radius: 3px; background: rgba(10,10,10,.86); font-family: var(--font-label); font-weight: 700; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.5; color: var(--cream); }
.m-tag.is-crimson { background: var(--crimson); }
.m-tag.is-top { top: 6px; bottom: auto; }
.m-limit-line { font-size: 13px; color: var(--gold); transition: opacity .18s var(--ease-out); }
.m-scan { padding: 0 16px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--cream-dim); }

/* ---------- Guest: done screen ---------- */
.m-done { background: var(--crimson); min-height: 100vh; min-height: 100dvh; }
.m-done .m-top-label { color: var(--cream); }
.m-logo-chip { padding: 6px 8px; background: var(--black); border-radius: var(--radius); display: flex; }
.m-done-body { padding: 64px 20px 0; display: flex; flex-direction: column; gap: 16px; }
.m-done-body .m-h1 { font-size: 76px; line-height: .9; }
.m-done-body p { margin: 0; font-size: 17px; line-height: 1.5; }
.m-done-thumbs { margin: 28px 20px 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.m-done-thumbs img, .m-done-thumbs span { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: rgba(10,10,10,.24); }
.m-done-foot { margin: 24px 20px 0; padding-top: 16px; border-top: 1px solid rgba(245,240,232,.4); display: flex; flex-direction: column; gap: 6px; }
.m-done-foot p { margin: 0; font-size: 15px; line-height: 1.45; }
.m-done-foot p.is-soft { color: var(--cream-soft); }
.m-call { margin-top: 14px; display: flex; flex-direction: column; }
.m-call span { font-family: var(--font-display); font-size: 32px; line-height: 1; text-transform: uppercase; }
.m-call span + span { color: var(--cream-soft); }
.m-done .m-bar .m-link.is-plain { justify-content: center; min-height: 48px; }

/* Screen changes and entrances */
.m-view { transition: opacity .3s var(--ease-out); }
.m-view.is-out { opacity: 0; }
.m-rise { opacity: 0; transform: translateY(12px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
.m-rise.is-in { opacity: 1; transform: none; }
.m-fade { opacity: 0; transition: opacity .25s var(--ease-out); }
.m-fade.is-in { opacity: 1; }

/* ---------- Album ---------- */
.m-album-head { padding: 12px 16px 0; display: flex; flex-direction: column; gap: 4px; }
.m-album-head .m-h1 { margin-top: 8px; font-size: 56px; }
.m-album-head .m-lede { margin-top: 10px; font-size: 16px; }
.m-tabs { margin: 18px 16px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--cream-faint); }
.m-tab { height: 44px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--cream-dim); font-family: var(--font-label); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; margin-bottom: -1px; }
.m-tab[aria-selected="true"] { color: var(--cream); border-bottom-color: var(--cream); }
.m-masonry { display: flex; gap: 3px; align-items: flex-start; }
.m-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.m-album .photo-item { margin: 0; cursor: zoom-in; background-size: cover; background-position: center; }
.m-album .photo-item img { filter: none; opacity: 0; transition: opacity .25s var(--ease-out), transform .5s var(--ease-out); }
.m-album .photo-item img.is-loaded { opacity: 1; }
.m-album .m-hero-item { margin-top: 14px; margin-bottom: 3px; }
.m-credit { position: absolute; left: 8px; bottom: 8px; padding: 3px 7px; border-radius: 3px; background: rgba(10,10,10,.82); font-size: 11px; line-height: 1.5; max-width: calc(100% - 64px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-hero-item .m-credit { left: 12px; bottom: 12px; font-size: 12px; padding: 4px 8px; }
.m-recap { position: absolute; left: 12px; top: 12px; padding: 4px 8px; border-radius: 3px; background: var(--crimson); font-family: var(--font-label); font-weight: 700; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.5; }
.m-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.m-play svg { width: 40px; height: 40px; }
.m-dur { position: absolute; right: 8px; bottom: 8px; font-family: var(--font-label); font-weight: 700; font-size: 11px; line-height: 1.5; }
.m-album-foot { padding: 28px 16px 40px; display: flex; flex-direction: column; gap: 14px; }
.m-album-foot p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--cream-body); }
.m-album-foot p a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.m-album-foot span { font-size: 13px; color: rgba(245,240,232,.5); }
.m-share { height: 40px; padding: 0 14px; font-size: 12px; letter-spacing: .1em; }
.m-empty { padding: 32px 16px; color: var(--cream-dim); font-size: 15px; }
.pswp__m-video { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.pswp__m-video video { max-width: 100%; max-height: 100%; }
.pswp__m-caption { position: absolute; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); font-size: 14px; color: var(--cream); text-shadow: 0 1px 2px rgba(0,0,0,.8); pointer-events: none; }

/* ---------- Staff ---------- */
.m-staff-top { height: 56px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--cream-hair); }
.m-staff-top > div { display: flex; align-items: center; gap: 10px; }
.m-switch { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--cream); display: flex; align-items: center; gap: 10px; font-size: 14px; font-family: var(--font-body); cursor: pointer; }
.m-switch .m-knob { width: 46px; height: 28px; border-radius: 14px; background: rgba(245,240,232,.2); position: relative; display: block; flex: 0 0 46px; }
.m-switch .m-knob::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 11px; background: var(--cream); transition: transform .2s var(--ease-out); }
.m-switch[aria-checked="true"] .m-knob { background: var(--crimson); }
.m-switch[aria-checked="true"] .m-knob::after { transform: translateX(18px); }
.m-switch.is-large .m-knob { width: 52px; height: 32px; border-radius: 16px; flex-basis: 52px; }
.m-switch.is-large .m-knob::after { top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 12px; }
.m-switch.is-large[aria-checked="true"] .m-knob::after { transform: translateX(20px); }
.m-staff-head { padding: 18px 16px 0; display: flex; flex-direction: column; gap: 14px; }
.m-staff-head .m-h1 { font-size: 44px; }
.m-seg { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); border: 1px solid var(--cream-faint); border-radius: var(--radius); overflow: hidden; }
.m-seg button { height: 44px; border: 0; background: transparent; color: var(--cream); font-family: var(--font-label); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; font-variant-numeric: tabular-nums; }
.m-seg button + button { border-left: 1px solid var(--cream-faint); }
.m-seg button[aria-pressed="true"] { background: var(--cream); color: var(--black); }
.m-preselect { display: flex; flex-direction: column; gap: 8px; }
.m-preselect > span { font-family: var(--font-label); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-dim); }
.m-chooser { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.m-chooser button { height: 44px; border: 1px solid var(--cream-faint); border-radius: var(--radius); background: transparent; color: var(--cream); font-family: var(--font-label); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: transform .12s var(--ease-out); }
.m-chooser button:active { transform: scale(.97); }
.m-chooser button[aria-pressed="true"] { background: var(--crimson); border-color: var(--crimson); }
.m-groups { margin-top: 20px; display: flex; flex-direction: column; }
.m-group { padding: 16px 0 18px; border-top: 1px solid var(--cream-hair); display: flex; flex-direction: column; gap: 10px; }
.m-group-head { padding: 0 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.m-group-head > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.2; }
.m-group-head .m-meta { line-height: 1.2; }
.m-group-name { font-family: var(--font-label); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.m-strip { padding: 0 16px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.m-strip::-webkit-scrollbar { display: none; }
.m-qtile { position: relative; width: 104px; height: 104px; flex: 0 0 104px; background: var(--charcoal); overflow: hidden; padding: 0; border: 0; color: var(--cream); cursor: pointer; transition: opacity .2s var(--ease-out), transform .2s var(--ease-out); }
.m-qtile > img { width: 104px; height: 104px; object-fit: cover; display: block; }
.m-qtile .m-dim { position: absolute; inset: 0; background: rgba(10,10,10,.5); transition: opacity .15s var(--ease-out); }
.m-qtile .m-keyline { position: absolute; inset: 0; border: 3px solid var(--cream); opacity: 0; transition: opacity .15s var(--ease-out); }
.m-qtile.is-on .m-dim { opacity: 0; }
.m-qtile.is-on .m-keyline { opacity: 1; }
.m-qtile .m-tag.is-sel { opacity: 0; transition: opacity .15s var(--ease-out); }
.m-qtile.is-on .m-tag.is-sel { opacity: 1; }
.m-qtile.is-on .m-tag.is-weak { opacity: 0; }
.m-qtile.is-leaving { opacity: 0; transform: scale(.85); }
.m-qtile .m-play svg { width: 30px; height: 30px; }
.m-qtile .m-dur { right: 6px; bottom: 6px; }
.m-qtile .m-tag.is-video { max-width: 64px; white-space: normal; }
.m-qtile .m-credit-mini { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 4px; font-size: 10px; line-height: 1.3; background: linear-gradient(to top, rgba(10,10,10,.85), transparent); text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-mixrow { margin: 0 16px; padding: 14px 0; border-top: 1px solid var(--cream-hair); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.m-mixrow > div { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.m-mixrow strong { font-size: 15px; font-weight: 600; }
.m-staff-bar { flex-direction: row; align-items: center; gap: 10px; padding-top: 12px; }
.m-staff-bar .m-bar-inner { flex-direction: row; align-items: center; gap: 10px; }
.m-staff-bar .m-count { flex: 1; font-family: var(--font-label); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.m-staff-bar .m-btn { height: 52px; font-size: 13px; padding: 0 16px; }
.m-staff-bar .m-btn.is-crimson { padding: 0 18px; }
.m-toast { position: fixed; left: 16px; right: 16px; bottom: calc(var(--m-bar-pad-bottom) + 80px); z-index: 70; max-width: 528px; margin: 0 auto; padding: 0 8px 0 16px; min-height: 52px; background: var(--cream); color: var(--black); border-radius: var(--radius); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--font-label); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: 0; transform: translateY(12px); transition: opacity .2s var(--ease-out), transform .2s var(--ease-out); pointer-events: none; }
.m-toast.is-in { opacity: 1; transform: none; pointer-events: auto; }
.m-toast button { min-height: 44px; padding: 0 12px; border: 0; background: transparent; color: var(--crimson); font: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.m-sheet { position: fixed; inset: 0; z-index: 60; padding: 0; background: var(--black); overflow-y: auto; opacity: 0; transform: translateY(16px); transition: opacity .2s var(--ease-out), transform .2s var(--ease-out); }
.m-sheet.is-in { opacity: 1; transform: none; }
.m-sheet-media { background: var(--charcoal); display: flex; align-items: center; justify-content: center; min-height: 240px; }
.m-sheet-media img, .m-sheet-media video { width: 100%; max-height: 60vh; object-fit: contain; display: block; }
.m-sheet-body { padding: 16px 16px 140px; display: flex; flex-direction: column; gap: 16px; max-width: 560px; margin: 0 auto; }
.m-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 14px; }
.m-dl dt { color: var(--cream-dim); }
.m-dl dd { margin: 0; overflow-wrap: anywhere; }
.m-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.m-actions .m-btn { height: 48px; font-size: 12px; }
.m-select { height: 48px; padding: 0 12px; border-radius: var(--radius); border: 1px solid var(--cream-faint); background: var(--black); color: var(--cream); font-size: 16px; width: 100%; }
.m-history { font-size: 13px; color: var(--cream-dim); display: grid; gap: 4px; }
.m-menu { position: fixed; left: 16px; right: 16px; bottom: calc(var(--m-bar-pad-bottom) + 8px); z-index: 65; max-width: 528px; margin: 0 auto; background: var(--charcoal); border: 1px solid var(--cream-faint); border-radius: var(--radius); display: flex; flex-direction: column; }
.m-menu button { min-height: 52px; border: 0; background: transparent; color: var(--cream); font-family: var(--font-label); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; text-align: left; padding: 0 16px; cursor: pointer; }
.m-menu button + button { border-top: 1px solid var(--cream-hair); }
.m-signin { padding: 64px 16px; display: flex; flex-direction: column; gap: 16px; max-width: 420px; }
.m-signin .m-h1 { font-size: 44px; }
.m-held-list { padding: 0 16px; display: grid; gap: 8px; font-size: 14px; }
.m-link.is-alert { color: var(--gold); }
.m-rr-list { padding: 8px 16px 32px; display: grid; gap: 12px; }
.m-rr { border: 1px solid var(--cream-faint); border-radius: var(--radius); padding: 14px; display: grid; gap: 12px; font-size: 14px; }
.m-rr.is-done { opacity: .6; }
.m-rr-due { color: var(--cream); line-height: 1.45; }
.m-badge { display: inline-block; margin-right: 6px; padding: 3px 6px; border-radius: 3px; background: var(--crimson); font-family: var(--font-label); font-weight: 700; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; vertical-align: 1px; }
.m-rr-item { display: flex; gap: 12px; align-items: center; min-height: 72px; padding: 0; border: 0; background: none; color: var(--cream); text-align: left; cursor: pointer; font: inherit; }
.m-rr-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; flex: 0 0 72px; background: var(--charcoal); }
.m-rr-item strong { display: block; }
.m-rr .m-btn { height: 48px; }
.m-rform { display: grid; gap: 16px; }
.m-field textarea { min-height: 96px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--cream-faint); background: var(--black); color: var(--cream); font-size: 16px; font-family: var(--font-body); width: 100%; resize: vertical; }
.m-field textarea:focus, .m-field select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.m-rr-thumb { display: flex; gap: 12px; align-items: center; }
.m-rr-thumb img { width: 88px; height: 88px; object-fit: cover; border-radius: 4px; background: var(--charcoal); }
.pswp__m-remove { position: absolute; right: 16px; top: max(64px, calc(env(safe-area-inset-top) + 56px)); font-size: 13px; color: var(--cream); text-decoration: underline; text-underline-offset: 3px; text-shadow: 0 1px 2px rgba(0,0,0,.8); padding: 8px 0; }

/* ---------- Wider screens ---------- */
@media (min-width: 768px) {
  .m-hero { height: 180px; }
  .m-page.is-wide { max-width: 1280px; }
  .m-album-head, .m-tabs { max-width: 720px; }
}

/* ---------- Motion ---------- */
@keyframes m-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes m-draw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .m-body *, .m-body *::before, .m-body *::after { transition: none !important; animation: none !important; }
  .m-rise, .m-fade, .m-row.is-entering { opacity: 1; transform: none; }
}

/* Inline text control inside a row (Remove while Waiting). Hit area grows without moving layout. */
.m-row-side:empty { display: none; }
.m-inline { position: relative; margin-left: 10px; font-size: 13px; font-weight: 400; padding: 0; border: 0; background: none; color: var(--cream-dim); font-family: var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.m-inline::after { content: ''; position: absolute; inset: -14px -10px; }
.m-inline:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Small modifiers used by the guest page */
.m-pick-count { padding-right: 12px; }
.m-bar-inner.is-tight { gap: 8px; }
.m-bar-row.is-baseline { align-items: baseline; }
.m-label.is-13 { font-size: 13px; }
.m-btn.is-52 { height: 52px; }
.m-btn.is-wide { padding: 0 22px; }
.m-note { padding: 12px 16px 0; font-size: 13px; color: var(--gold); line-height: 1.45; }
.m-hero-item img { object-fit: cover; }
.m-staff-links { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.m-staff-links select { height: 44px; max-width: 60%; }
.m-held-note { padding: 0 16px; font-size: 14px; color: var(--cream-body); }
.m-sheet-close { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; height: 56px; padding: 0 8px 0 16px; background: var(--black); border-bottom: 1px solid var(--cream-hair); }
.m-gsi { min-height: 44px; }

/* Terms and removal pages */
.m-doc-body { padding: 24px 20px 64px; display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.m-doc-body .m-h1 { font-size: 48px; margin-bottom: 4px; }
.m-doc-body h2 { font-family: var(--font-label); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4; margin-top: 10px; }
.m-doc-body p { color: var(--cream-body); font-size: 16px; line-height: 1.6; }
.m-doc-body a { color: var(--cream); text-decoration: underline; text-decoration-color: var(--crimson); text-underline-offset: 3px; }

.m-admin-row { margin: 0 16px; padding: 4px 0 14px; display: flex; gap: 20px; }

/* Required box in the bottom bar, right above the button (Cam, Oct 3) */
.m-bar-check { min-height: 0; font-size: 14px; line-height: 1.4; gap: 10px; align-items: center; }
.m-bar-check input { width: 26px; height: 26px; flex: 0 0 26px; }
.m-pickers .m-btn { width: 100%; }
/* Done screen: buttons follow the content, so Safari's toolbar never covers the text */
.m-done.has-bar { padding-bottom: 0; }
.m-done .m-bar { position: static; padding-top: 32px; }
.m-thumb-empty { display: flex !important; align-items: center; justify-content: center; }
.m-thumb-empty svg { width: 40%; height: 40%; }

/* Staff: corner circle selects; the rest of the tile opens the item */
.m-qtile .m-pick { position: absolute; top: 0; right: 0; width: 44px; height: 44px; display: flex; align-items: flex-start; justify-content: flex-end; padding: 6px; }
.m-qtile .m-pick i { width: 24px; height: 24px; border-radius: 12px; border: 2px solid var(--cream); background: rgba(10,10,10,.35); display: flex; align-items: center; justify-content: center; transition: transform .15s var(--ease-out); }
.m-qtile .m-pick svg { width: 14px; height: 14px; opacity: 0; }
.m-qtile.is-on .m-pick i { background: var(--crimson); border-color: var(--crimson); transform: scale(1.05); }
.m-qtile.is-on .m-pick svg { opacity: 1; }
.m-sheet-nav { display: flex; gap: 6px; }
.m-sheet-nav .m-btn { min-width: 44px; padding: 0 12px; }
.m-sheet-bar { position: sticky; bottom: 0; z-index: 2; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; padding: 12px 16px var(--m-bar-pad-bottom); background: var(--charcoal); border-top: 1px solid var(--cream-hair); }
.m-sheet-bar .m-btn { height: 56px; }
.m-sheet-body { padding-bottom: 32px; }
.m-qtile .m-pick.needs-play svg:first-child { opacity: 1; width: 12px; height: 12px; margin-left: 2px; }

/* ---------- Staff: Team screen (admins) ---------- */
.m-team-note { padding: 0; }
.m-team-add { margin: 20px 16px 0; padding: 16px; border: 1px solid var(--cream-faint); border-radius: var(--radius); display: grid; gap: 14px; }
.m-team-add .m-btn { width: 100%; }
.m-team-list { padding: 20px 16px 48px; display: grid; gap: 10px; }
.m-team-row { padding: 14px; border: 1px solid var(--cream-hair); border-radius: var(--radius); display: grid; gap: 12px; font-size: 15px; }
.m-team-row > div:first-child { display: grid; gap: 2px; min-width: 0; }
.m-team-row .m-meta { overflow-wrap: anywhere; }
.m-team-row.is-off { opacity: .6; }
.m-team-role { font-family: var(--font-label); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }
.m-team-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.m-team-actions .m-btn { flex: 1 1 auto; }
