/* The Floor. Design read: mobile-first booking app and outreach deck for LA dance
   instructors and the dancers who pay to be filmed; club-flyer language, leaning
   cinematic stage-gel editorial. Signature: the magenta-into-amber stage gel laid
   over every photo and echoed on the ticket stub. */
[hidden] { display: none !important; }
:root {
  --ink: #0F0B12;
  --stage: #1B1520;
  --stage-2: #251C2B;
  --line: #382C3F;
  --bone: #F3EDE6;
  --dust: #B4A9B9;
  --magenta: #F0428C;
  --amber: #FFB04A;
  --ok: #6BD9A3;
  --bad: #FF7A7A;
  --gel: linear-gradient(118deg, rgba(240, 66, 140, .62) 0%, rgba(240, 66, 140, .18) 38%, rgba(255, 176, 74, .30) 72%, rgba(255, 176, 74, .05) 100%);
  --display: 'Archivo', 'Helvetica Neue', Helvetica, sans-serif;
  --body: 'Figtree', 'Avenir Next', 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --pad: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--bone); font: 400 16px/1.5 var(--body);
  min-height: 100dvh; display: flex; flex-direction: column;
  padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px);
}
main { flex: 1; width: 100%; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--bone); text-decoration-color: rgba(240, 66, 140, .7); text-underline-offset: 3px; }
a:hover { color: #fff8f0; text-decoration-color: var(--amber); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--ink); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; }
h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -.02em; line-height: 1.02; }
p { margin: 0 0 .75em; }
.muted { color: var(--dust); }
.small { font-size: 14px; }

/* ---- masthead / footer ---- */
.mast {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) var(--pad) 14px;
  position: sticky; top: 0; z-index: 20; background: rgba(15, 11, 18, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(56, 44, 63, .6);
}
.mark { font: 900 22px/1 var(--display); text-decoration: none; letter-spacing: -.03em; display: inline-flex; align-items: baseline; gap: 5px; min-height: 44px; align-items: center; }
.mark-the { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--magenta); }
.mast-nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.mast-nav a { text-decoration: none; color: var(--dust); font-weight: 600; font-size: 15px; padding: 10px 10px; min-height: 44px; display: inline-flex; align-items: center; border-radius: var(--r-sm); }
.mast-nav a:hover, .mast-nav a[aria-current="page"] { color: var(--bone); background: var(--stage); }
.foot { padding: 32px var(--pad) calc(env(safe-area-inset-bottom, 0px) + 32px); color: var(--dust); font-size: 14px; border-top: 1px solid var(--line); margin-top: 48px; }
.foot p { margin: 0 0 6px; }
.foot a { color: var(--dust); }
.has-dock .foot { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 112px); }

/* ---- type ---- */
.display { font: 900 clamp(44px, 10vw, 104px)/.92 var(--display); letter-spacing: -.035em; max-width: 14ch; }
.display-sm { font: 800 clamp(30px, 6vw, 52px)/1 var(--display); letter-spacing: -.03em; }
.lede { font-size: clamp(18px, 2.3vw, 22px); color: var(--dust); max-width: 46ch; margin-top: 18px; }
.label { font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--amber); margin-bottom: 16px; }
.prose { max-width: 60ch; color: #E3DBE4; }

/* ---- buttons, pills, chips ---- */
.btn {
  appearance: none; border: 0; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px; font: 700 16px/1.1 var(--body);
  background: var(--magenta); color: var(--ink); transition: transform .15s ease, background-color .15s ease, opacity .15s ease;
}
.btn:hover { background: #FF5A9C; color: var(--ink); }
.btn:active { transform: scale(.98); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .55; cursor: progress; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--stage); color: var(--bone); }
.btn-quiet { background: var(--stage-2); color: var(--bone); }
.btn-quiet:hover { background: var(--line); color: var(--bone); }
.btn-danger { background: transparent; color: var(--bad); box-shadow: inset 0 0 0 1.5px rgba(255, 122, 122, .5); }
.btn-danger:hover { background: rgba(255, 122, 122, .12); color: var(--bad); }
.btn-danger.armed { background: var(--bad); color: var(--ink); }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font: 600 13px/1.2 var(--body); background: var(--stage-2); color: var(--bone); white-space: nowrap; }
.pill-ok { background: rgba(107, 217, 163, .16); color: var(--ok); }
.pill-warn { background: rgba(255, 176, 74, .16); color: var(--amber); }
.pill-bad { background: rgba(255, 122, 122, .14); color: var(--bad); }
.chip { display: inline-block; padding: 4px 10px; margin: 0 4px 6px 0; border-radius: var(--r-sm); background: var(--stage-2); font-size: 14px; box-shadow: inset 3px 0 0 var(--magenta); }
.price { font: 700 18px/1 var(--mono); font-variant-numeric: tabular-nums; }
.handle { color: var(--dust); }

/* ---- the gel (signature) ---- */
.gel { position: absolute; inset: 0; background: var(--gel); mix-blend-mode: screen; pointer-events: none; }

/* ---- home ---- */
.intro { padding: clamp(36px, 8vw, 96px) var(--pad) 28px; }
.upcoming { padding: 12px var(--pad) 0; }
.posters { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.poster {
  position: relative; display: flex; flex-direction: column; text-decoration: none; border-radius: var(--r-lg); overflow: hidden;
  background: var(--stage); transition: transform .2s ease;
}
.poster:hover { transform: translateY(-3px); color: var(--bone); }
.poster-art { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--stage-2); }
.poster-art img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1) contrast(1.05); }
.poster .stamp { position: absolute; top: 14px; left: 14px; }
.poster-body { padding: 16px 18px 18px; display: grid; gap: 6px; }
.poster-title { font: 800 26px/1.02 var(--display); letter-spacing: -.025em; }
.poster-host { color: var(--dust); margin: 0; }
.poster-meta { display: flex; align-items: center; gap: 12px; margin: 6px 0 0; flex-wrap: wrap; }
.stamp {
  display: inline-grid; justify-items: center; gap: 2px; padding: 10px 12px 9px; border-radius: var(--r-md);
  background: rgba(15, 11, 18, .82); backdrop-filter: blur(6px); font-family: var(--mono); line-height: 1; min-width: 72px;
  box-shadow: inset 0 3px 0 var(--magenta);
}
.stamp-m { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--amber); }
.stamp-d { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stamp-t { font-size: 12px; color: var(--dust); }
.stamp-lg .stamp-d { font-size: 48px; }
.empty { padding: 56px var(--pad); text-align: left; max-width: 640px; display: grid; gap: 10px; justify-items: start; }
.empty h2, .empty h1 { font: 800 30px/1.05 var(--display); }
.empty p { color: var(--dust); }

/* ---- class flyer ---- */
.flyer { padding-bottom: 24px; }
.flyer-art { position: relative; min-height: min(78vh, 680px); display: flex; align-items: flex-end; overflow: hidden; background: var(--stage); }
.flyer-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1) contrast(1.05); }
.flyer-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 11, 18, 0) 30%, rgba(15, 11, 18, .9) 88%, var(--ink)); }
.flyer-head { position: relative; z-index: 1; padding: 0 var(--pad) 28px; display: grid; gap: 14px; justify-items: start; width: 100%; }
.flyer-title { font: 900 clamp(44px, 11vw, 112px)/.9 var(--display); letter-spacing: -.04em; max-width: 13ch; text-wrap: balance; }
.flyer-host { font-size: 18px; color: #E3DBE4; margin: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1px; background: var(--line); margin: 0 var(--pad); border-radius: var(--r-md); overflow: hidden; }
.facts > div { background: var(--stage); padding: 16px 18px; }
.facts dt { font: 700 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 8px; }
.facts dd { margin: 0; line-height: 1.5; }
.facts dd a { text-decoration: none; }
.block { padding: 32px var(--pad) 0; }
.expect { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border-radius: var(--r-md); overflow: hidden; max-width: 760px; }
.expect li { background: var(--stage); padding: 14px 18px; display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: baseline; }
.expect strong { font: 700 13px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--dust); }
.policy { padding: 28px var(--pad) 0; color: var(--dust); font-size: 15px; }
.policy.small { padding: 12px 0 0; font-size: 13px; }
.note { margin: 16px var(--pad) 0; padding: 12px 16px; border-radius: var(--r-md); background: rgba(255, 176, 74, .12); color: var(--amber); }
.clips { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.clip { margin: 0; background: var(--stage); border-radius: var(--r-md); overflow: hidden; }
.clip video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; }
.clip figcaption { padding: 10px 14px; display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.clip-link { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; text-decoration: none; min-height: 64px; }
.clip-n { font: 700 28px/1 var(--mono); color: var(--magenta); }
.arrow { color: var(--amber); font-weight: 700; }

/* sticky book dock: the CTA stays in reach at every scroll position */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px var(--pad) calc(env(safe-area-inset-bottom, 0px) + 10px); background: rgba(15, 11, 18, .92); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.dock-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; max-width: 1200px; margin: 0 auto; }
.dock-info { display: grid; min-width: 0; }
.dock-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-sub { color: var(--dust); font: 500 13px/1.3 var(--mono); }
.dock .btn { flex-shrink: 0; }

/* ---- sheet (dialog) ---- */
.sheet { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 560px; max-height: 92dvh; background: transparent; color: var(--bone); }
.sheet::backdrop { background: rgba(8, 6, 10, .72); }
.sheet-inner { background: var(--stage); border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 22px 20px calc(env(safe-area-inset-bottom, 0px) + 22px); overflow-y: auto; max-height: 92dvh; overscroll-behavior: contain; box-shadow: inset 0 3px 0 var(--magenta); }
@media (min-width: 640px) { .sheet { margin: auto; } .sheet-inner { border-radius: var(--r-lg); } }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sheet-head h2 { font: 800 26px/1.05 var(--display); }
.sheet-sub { color: var(--dust); margin: 8px 0 18px; font-family: var(--mono); font-size: 14px; }
.x { background: var(--stage-2); color: var(--bone); border: 0; border-radius: 999px; min-height: 44px; padding: 0 16px; font: 600 14px var(--body); cursor: pointer; }

/* ---- forms ---- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .field .lbl { font-weight: 600; font-size: 15px; }
.opt { color: var(--dust); font-weight: 400; font-size: 13px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line);
  background: var(--ink); color: var(--bone); font: 400 16px/1.3 var(--body);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8E8394; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--amber); outline: none; box-shadow: 0 0 0 3px rgba(255, 176, 74, .25); }
.field [aria-invalid="true"] { border-color: var(--bad); }
.field .ferr { color: var(--bad); font-size: 14px; margin: 0; }
.hint { color: var(--dust); font-size: 14px; margin: 0; }
.err { color: var(--bad); background: rgba(255, 122, 122, .1); padding: 10px 14px; border-radius: var(--r-sm); font-size: 15px; }
.row2 { display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.checks { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.check { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--ink); border: 1.5px solid var(--line); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--magenta); flex-shrink: 0; }
.check:has(input:checked) { border-color: var(--magenta); background: rgba(240, 66, 140, .1); }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg label { flex: 1 1 auto; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }

/* ---- ticket ---- */
.ticket-wrap { padding: 28px var(--pad) 0; display: grid; gap: 22px; max-width: 980px; }
.ticket { display: grid; grid-template-columns: 1fr; border-radius: var(--r-lg); overflow: hidden; background: var(--stage); position: relative; }
@media (min-width: 760px) { .ticket { grid-template-columns: 1.4fr 1fr; } }
.ticket-top { padding: 24px 22px; position: relative; }
.ticket-top::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--magenta), var(--amber)); }
.ticket-title { font: 900 clamp(34px, 7vw, 56px)/.95 var(--display); letter-spacing: -.035em; margin-top: 4px; }
.ticket-host { color: var(--dust); margin: 8px 0 18px; }
.ticket-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 0; }
.ticket-facts dt { font: 700 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dust); margin-bottom: 6px; }
.ticket-facts dd { margin: 0; font: 600 18px/1.25 var(--body); }
.ticket-stub {
  padding: 24px 22px; display: grid; justify-items: center; align-content: center; gap: 10px; text-align: center; position: relative;
  border-top: 2px dashed var(--line); background: linear-gradient(160deg, rgba(240, 66, 140, .14), rgba(255, 176, 74, .08));
}
@media (min-width: 760px) { .ticket-stub { border-top: 0; border-left: 2px dashed var(--line); } }
.qr { width: min(240px, 70vw); aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; }
.qr svg { width: 100%; height: 100%; display: block; }
.code { font: 700 28px/1 var(--mono); letter-spacing: .2em; margin: 4px 0 0; }
.big { font: 800 28px/1.05 var(--display); margin: 0; }
.ticket-after { display: grid; gap: 4px; }
.ticket-after .btn { margin: 4px 6px 4px 0; }
.cancel { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.cancel summary { cursor: pointer; color: var(--dust); min-height: 44px; display: flex; align-items: center; width: fit-content; }
.cancel p { color: var(--dust); margin: 6px 0 12px; }

/* ---- deck (/dancers) ---- */
.deck-hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; overflow: hidden; }
.deck-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.deck-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 11, 18, .2) 0%, rgba(15, 11, 18, .35) 40%, rgba(15, 11, 18, .94) 86%, var(--ink)); }
.deck-hero-copy { position: relative; z-index: 1; padding: 0 var(--pad) clamp(28px, 6vw, 64px); display: grid; gap: 4px; justify-items: start; }
.deck-hero-copy .btn { margin-top: 22px; }
.deck-grid { display: grid; gap: 1px; background: var(--line); margin: clamp(28px, 5vw, 56px) var(--pad) 0; border-radius: var(--r-lg); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.deck-item { background: var(--stage); padding: 24px 22px; }
.deck-item h2 { font: 800 28px/1 var(--display); margin-bottom: 10px; }
.deck-item h2::before { content: ''; display: block; width: 34px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--magenta), var(--amber)); margin-bottom: 14px; }
.deck-item p { color: #DCD3DE; margin: 0; }
.deck-photos { display: grid; gap: 12px; padding: 12px var(--pad) 0; grid-template-columns: 1fr; }
@media (min-width: 820px) { .deck-photos { grid-template-columns: 1fr 1.3fr; grid-template-rows: 1fr 1fr; } .ph-tall { grid-row: span 2; } }
.ph { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--stage); }
.ph img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.ph-tall img { aspect-ratio: 4 / 5; }
.ph-floor img { aspect-ratio: 27 / 40; object-position: 50% 85%; }
@media (min-width: 820px) { .ph img, .ph-tall img { aspect-ratio: auto; min-height: 260px; } }
.ph figcaption { position: absolute; left: 14px; bottom: 12px; font: 700 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; background: rgba(15, 11, 18, .78); padding: 8px 10px; border-radius: var(--r-sm); }
.deck-leave, .deck-money { padding: clamp(40px, 7vw, 80px) var(--pad) 0; display: grid; gap: 22px; justify-items: start; }
.leave { list-style: none; counter-reset: l; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 760px; }
.leave li { counter-increment: l; display: grid; grid-template-columns: 56px 1fr; gap: 4px 14px; align-items: baseline; }
.leave li::before { content: counter(l); grid-row: span 2; font: 700 44px/1 var(--mono); color: var(--magenta); }
.leave strong { font: 800 22px/1.1 var(--display); }
.leave span { color: var(--dust); }
.money-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; max-width: 700px; }
.money-list li { padding-left: 18px; border-left: 3px solid var(--amber); color: #DCD3DE; }
.money-list strong { color: var(--bone); }

/* ---- app shells (host, admin, me) ---- */
.app { padding: 24px var(--pad) 0; }
.app h1 { font: 900 clamp(34px, 7vw, 60px)/.95 var(--display); letter-spacing: -.035em; margin-bottom: 14px; }
.app h2 { font: 800 24px/1.1 var(--display); margin: 26px 0 12px; }
.app h3 { font: 700 19px/1.2 var(--display); }
.tabs { display: flex; gap: 4px; overflow-x: auto; margin: 0 calc(var(--pad) * -1) 18px; padding: 0 var(--pad) 2px; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tabs a { flex-shrink: 0; text-decoration: none; padding: 12px 14px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; color: var(--dust); font-weight: 600; border-bottom: 3px solid transparent; }
.tabs a[aria-current="page"] { color: var(--bone); border-bottom-color: var(--magenta); }
.tabs .count { font: 700 12px/1 var(--mono); background: var(--magenta); color: var(--ink); padding: 3px 6px; border-radius: 999px; }
.panel { background: var(--stage); border-radius: var(--r-md); padding: 18px; margin-bottom: 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.stat { background: var(--stage); border-radius: var(--r-md); padding: 16px 18px; display: grid; gap: 4px; text-decoration: none; }
.stat b { font: 700 32px/1 var(--mono); font-variant-numeric: tabular-nums; }
.stat span { color: var(--dust); font-size: 14px; }
.stat-main b { color: var(--magenta); }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); margin-bottom: 18px; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border-radius: var(--r-md); overflow: hidden; }
.list > li { background: var(--stage); padding: 14px 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; min-width: 0; }
.list .grow { flex: 1 1 220px; min-width: 0; }
.list .sub { color: var(--dust); font-size: 14px; margin: 2px 0 0; overflow-wrap: anywhere; }
.list .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.tablewrap { overflow-x: auto; border-radius: var(--r-md); background: var(--stage); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 700 11px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dust); white-space: nowrap; position: sticky; top: 0; background: var(--stage); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); }
tr.due td:first-child { box-shadow: inset 3px 0 0 var(--amber); }
.tag-sheet { font: 500 16px/1.6 var(--mono); background: var(--ink); border: 1.5px dashed var(--line); padding: 14px; border-radius: var(--r-sm); overflow-wrap: anywhere; user-select: all; }
.share-qr { width: 180px; border-radius: var(--r-md); overflow: hidden; }
.share-qr svg { width: 100%; height: auto; display: block; }
.ros { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ros label { display: grid; grid-template-columns: 24px 64px 1fr; gap: 10px; align-items: center; min-height: 44px; padding: 6px 10px; background: var(--ink); border-radius: var(--r-sm); cursor: pointer; }
.ros input { width: 20px; height: 20px; accent-color: var(--ok); }
.ros .at { font: 600 13px var(--mono); color: var(--dust); }
.ros input:checked ~ .what { color: var(--dust); text-decoration: line-through; }
.scan { position: relative; border-radius: var(--r-md); overflow: hidden; background: #000; aspect-ratio: 1; max-width: 420px; }
.scan video { width: 100%; height: 100%; object-fit: cover; }
.scan::after { content: ''; position: absolute; inset: 18%; border: 3px solid var(--amber); border-radius: var(--r-md); pointer-events: none; }
.scan-result { margin-top: 12px; padding: 14px 16px; border-radius: var(--r-md); font-weight: 600; }
.scan-ok { background: rgba(107, 217, 163, .16); color: var(--ok); }
.scan-bad { background: rgba(255, 122, 122, .14); color: var(--bad); }
.cover-prev { width: 100%; max-width: 420px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-md); background: var(--stage-2); }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.inline-form .field { margin: 0; flex: 1 1 160px; }
.back { display: inline-flex; min-height: 44px; align-items: center; color: var(--dust); text-decoration: none; }
.gate { max-width: 460px; }
.gate h1 { margin-bottom: 8px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; }
.kv dt { color: var(--dust); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

.acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.thumb { width: 96px; height: 64px; object-fit: cover; border-radius: var(--r-sm); background: var(--stage-2); flex-shrink: 0; }
@media (max-width: 420px) { .thumb { display: none; } }
.check:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.app .note { margin: 0 0 14px; }
.pipe-stage { min-height: 44px; }
.grid-2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }

/* ---- toast, skeleton ---- */
.toast { pointer-events: none; position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 92px); transform: translateX(-50%); z-index: 60; background: var(--bone); color: var(--ink); padding: 12px 18px; border-radius: 999px; font-weight: 600; max-width: calc(100vw - 32px); box-shadow: 0 6px 24px rgba(0, 0, 0, .4); }
.toast.bad { background: var(--bad); }
.skel { display: grid; gap: 12px; }
.skel div { height: 72px; border-radius: var(--r-md); background: linear-gradient(90deg, var(--stage) 0%, var(--stage-2) 50%, var(--stage) 100%); background-size: 200% 100%; animation: sk 1.4s linear infinite; }
.skel div:first-child { height: 48px; width: 60%; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media (max-width: 420px) {
  .mast-nav a { padding: 10px 7px; font-size: 14px; }
  .mark { font-size: 20px; }
  .expect li { grid-template-columns: 1fr; gap: 4px; }
  .ticket-facts dd { font-size: 16px; }
}
input[type=file]::file-selector-button { font: 600 14px var(--body, inherit); background: var(--stage-2); color: var(--bone); border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px; margin-right: 10px; cursor: pointer; }
input[type=file]::file-selector-button:hover { border-color: var(--magenta); }
.legal { max-width: calc(68ch + 2 * var(--pad)); padding: 24px var(--pad) 48px; }
.legal h2 { font-size: 20px; margin: 28px 0 8px; }
.legal p { line-height: 1.6; margin: 0 0 12px; }
.legal a { color: var(--amber); }
.danger-zone { border-color: var(--bad); }
body.deck .mast-nav, body.deck .foot-links { display: none; }
.deck-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.deck-hero-copy .deck-cta .btn { margin-top: 0; }
.deck-cta-sub { color: var(--dust); font-size: 15px; margin: 4px 0 0; }
.empty-photo { width: 100%; max-width: 640px; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 60%; border-radius: var(--r-lg); margin-bottom: 14px; }
.dock-acts { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 420px) { .dock-acts .btn { padding-inline: 14px; } .dock-info { display: none; } .dock-acts { width: 100%; } .dock-acts #book-open { flex: 1; } }
body.has-dock main { padding-bottom: 72px; }
