/* The Ritz Ybor guest list · v2.4 "Modern Ritz"
   Dark and clean. One typeface (Inter / Inter Display). The ceiling sits behind the header and drifts
   through club colors; the diamond floor fades up softly from the bottom. */

:root {
  --bg: #0b0a0c;
  --card: #151316;
  --card2: #1c191d;
  --field: #0f0d10;
  --line: rgba(255,255,255,.08);
  --line2: rgba(255,255,255,.14);
  --text: #f4efe8;
  --muted: #9b938d;
  --faint: #5f5853;
  --red: #c4161f;
  --red2: #e0323b;
  --redtext: #ff6b6f;             /* errors and warnings only */
  --accent: #d9c29a;              /* v2.8: champagne, the one accent (no red in controls) */
  --primary: #f4efe8;             /* main buttons */
  --green: #3fcf83;
  --amber: #f2b84b;
  /* report series (validated for colorblind separation on the dark cards) */
  --c-employee: #3b8fd6;
  --c-promoter: #d9528f;
  --c-artist: #b88a26;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Inter Display', 'Inter', system-ui, -apple-system, sans-serif;
  --tabbar: 0px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 400 15px/1.45 var(--font);
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; position: relative; overflow-x: hidden; }
body.with-tabbar { --tabbar: calc(76px + env(safe-area-inset-bottom)); }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.015em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ========== the room ========== */
.room { position: absolute; inset: 0 0 auto 0; height: 100%; pointer-events: none; z-index: 0; }
.ceiling { position: absolute; left: 0; right: 0; top: 0; height: 300px; overflow: hidden; }
.ceiling .tex { position: absolute; inset: 0; background: url(/img/ceiling-tile.jpg) center top / 420px;
  filter: grayscale(1) contrast(1.2) brightness(.7); opacity: .75; }
.ceiling .hue { position: absolute; inset: 0; mix-blend-mode: color; opacity: .85; background: #c0267e;
  animation: hue 60s linear infinite; }
@keyframes hue {
  0%, 100% { background-color: #c0267e; }   /* magenta */
  20% { background-color: #7a35d6; }        /* violet */
  40% { background-color: #1f8fb3; }        /* teal */
  60% { background-color: #d18a1e; }        /* amber */
  80% { background-color: #c4161f; }        /* Ritz red */
}
.ceiling .tint { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,10,12,.1), rgba(11,10,12,.6) 55%, var(--bg)); }

.floor { position: fixed; left: 0; right: 0; bottom: 0; height: 52vh; overflow: hidden; perspective: 420px; perspective-origin: 50% 0;
  -webkit-mask: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.35) 30%, transparent 80%);
  mask: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.35) 30%, transparent 80%); opacity: .12; }
.floor .pl { position: absolute; left: -80%; right: -80%; top: 0; height: 300%; transform-origin: 50% 0; transform: rotateX(62deg); }
.floor .tl { position: absolute; inset: -40%; transform: rotate(45deg);
  background: conic-gradient(#050405 0 25%, #cfc6b3 0 50%, #050405 0 75%, #cfc6b3 0) 0 0 / 62px 62px; }

#app { position: relative; z-index: 1; min-height: 100vh; padding-bottom: var(--tabbar); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px 40px; }
.narrow { max-width: 640px; }
.boot { color: var(--muted); padding: 40px 20px; text-align: center; }

/* ========== top bar + header ========== */
.demo-banner { position: relative; z-index: 2; background: #1d1810; color: #f6d58f; font-size: 13px; padding: 8px 16px; text-align: center;
  border-bottom: 1px solid rgba(242,184,75,.2); }
.demo-banner button { background: none; border: 0; color: var(--text); text-decoration: underline; padding: 0 0 0 6px; font-weight: 600; }
.topbar { max-width: 1040px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: calc(12px + env(safe-area-inset-top)) 20px 10px; }
.topbar .crest { width: 30px; height: 30px; object-fit: contain; }
.wordmark { font: 700 15px/1 var(--display); letter-spacing: .32em; }
.av { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; background: #2a2428; display: grid; place-items: center;
  font: 600 13px var(--font); color: #d9cfc7; border: 1px solid var(--line); padding: 0; }
.av[aria-current] { border-color: var(--accent); }
.hello { padding: 14px 4px 0; }
.hello small { color: var(--muted); font-size: 13px; }
.hello h1, .page-title { margin: 4px 0 0; font: 700 28px/1.1 var(--display); letter-spacing: -.015em; }
.title-row { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.title-row .hello { flex: 1; min-width: 200px; }
.title-row .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* manager pill tabs */
.tabs { display: flex; gap: 6px; padding: 14px 0 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 8px 14px; border-radius: 999px; font: 600 13px var(--font); color: var(--muted); background: var(--card); border: 1px solid var(--line); }
.tab[aria-current] { background: var(--text); color: #111; border-color: transparent; }
.count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--accent); color: #0b0a0c; font-size: 11px; font-weight: 700; }

/* staff bottom tab bar */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: var(--tabbar); padding: 10px 0 env(safe-area-inset-bottom);
  background: rgba(15,13,16,.92); border-top: 1px solid var(--line); display: flex; justify-content: space-around; align-items: flex-start;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.tabbar button { background: none; border: 0; display: grid; justify-items: center; gap: 4px; font: 600 11px var(--font); color: var(--muted); padding: 2px 18px; }
.tabbar svg { width: 22px; height: 22px; }
.tabbar button[aria-current] { color: var(--text); }
.tabbar button[aria-current] svg { color: var(--text); }

/* ========== this week strip ========== */
.strip { margin: 16px 0 0; border-radius: 14px; background: var(--card); border: 1px solid var(--line);
  padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.strip .lbl { font: 600 11px var(--font); color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.strip .it { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 600 15px var(--font); background: none; border: 0; padding: 2px 0; text-align: left; width: 100%; }
.strip .it .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip .it b { flex: none; font: 700 15px var(--display); color: var(--text); font-variant-numeric: tabular-nums; }
.strip .it b span { color: var(--muted); font: 500 13px var(--font); margin-right: 4px; }
.strip .empty-line { color: var(--muted); font-size: 14px; }

/* ========== show grid ========== */
.sec { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 22px 4px 10px; }
.sec h2, .sec h3 { margin: 0; font: 700 18px var(--display); }
.sec .muted, .sec a { font-size: 13px; }
.shows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
@media (min-width: 700px) { .shows { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px) { .shows { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.show { display: block; width: 100%; background: none; border: 0; padding: 0; text-align: left; }
.show .flyer { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; display: block; background: var(--card); transition: transform .2s; }
.show:hover .flyer { transform: translateY(-2px); }
.show .n { font: 600 14px/1.25 var(--font); margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.show .d { color: var(--muted); font-size: 12px; margin-top: 2px; }
.flyer-none, .poster-none { display: grid; place-items: center; aspect-ratio: 1; border-radius: 14px; padding: 12px; text-align: center;
  background: radial-gradient(circle at 30% 20%, #2a1418, #120f11 70%); border: 1px solid var(--line);
  font: 700 18px/1.15 var(--display); color: #e9dfd6; }

/* status: a small dot plus text */
.chip { display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--font); margin-top: 6px; }
.chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.chip.green { color: var(--green); }
.chip.yellow { color: var(--amber); }
.chip.red { color: var(--redtext); }
.chip.grey { color: var(--muted); }

/* ========== show page ========== */
.ev-page { max-width: 760px; margin: 0 auto; padding-bottom: 40px; }
.hero { position: relative; height: clamp(260px, 78vw, 420px); overflow: hidden; background: var(--card); }
.hero > img, .hero > .flyer-none { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; aspect-ratio: auto; border: 0; }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.45), transparent 30%, transparent 70%, var(--bg)); }
@media (min-width: 760px) { .hero { border-radius: 0 0 22px 22px; } }
.circ { position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 16px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.5); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.circ.share { left: auto; right: 16px; }
.circ svg { width: 18px; height: 18px; }
.ht { position: relative; z-index: 2; margin-top: -6px; padding: 0 20px; }
.ht h1 { margin: 0; font: 700 30px/1.05 var(--display); letter-spacing: -.02em; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 13px; margin-top: 8px; }
.meta b { color: var(--text); font-weight: 600; }
.ht .chip { margin-top: 10px; }
.ev-body { padding: 0 16px; }
.ev-body > .card:first-child { margin-top: 16px; }

.card, .panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin: 0 0 14px; }
.tight-panel { padding: 4px 16px; }
.spots-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.spots-row b { font: 700 20px var(--display); }
.spots-row span { color: var(--muted); font-size: 13px; }
.spots-row .over-text { color: var(--redtext); }
.segbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; margin: 10px 0 14px; }
.segbar i { height: 6px; border-radius: 3px; background: #2b2629; }
.segbar i.on { background: var(--accent); }
.segbar i.over { background: var(--amber); }
.segbar.solid { display: block; height: 6px; border-radius: 3px; background: #2b2629; overflow: hidden; }
.segbar.solid i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.meter-text { margin: 0 0 14px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.meter-text strong { font: 700 18px var(--display); }
.meter-text span { color: var(--muted); font-size: 13px; }

/* forms */
.field { display: block; margin: 0 0 12px; }
.field > span, .field > .label, .label { display: block; font-size: 12px; color: var(--muted); margin: 0 0 6px; }
.input { width: 100%; background: var(--field); border: 1px solid var(--line); border-radius: 12px; min-height: 44px; padding: 10px 12px; font-size: 15px; color: var(--text); }
.input:focus { outline: none; border-color: rgba(217,194,154,.55); box-shadow: 0 0 0 3px rgba(217,194,154,.12); }
.input::placeholder { color: var(--faint); }
.input.big { min-height: 48px; font-size: 16px; }
.input.code { letter-spacing: .4em; font-size: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.input.mono, .mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13px; }
textarea.input { resize: vertical; line-height: 1.45; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 32px;
  background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239b938d' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
input[type=date].input, input[type=time].input { color-scheme: dark; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.hint { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.err { color: var(--redtext); font-size: 14px; margin: 10px 0 0; }
.warn { color: var(--amber); }
.hint.warn { color: var(--amber); }

/* plus-one pill */
.seg { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--field); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.seg-btn { border: 0; background: none; padding: 9px 4px; border-radius: 9px; font: 600 13px var(--font); color: var(--muted); }
.seg-btn.on { background: #2a2427; color: var(--text); }
.seg-btn:disabled { opacity: .3; cursor: not-allowed; }
.plus-field { margin: 2px 0 14px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 12px;
  border: 1px solid var(--line2); background: var(--card2); color: var(--text); font: 600 14px var(--font); text-decoration: none; white-space: nowrap; }
.btn:hover { background: #241f23; }
.btn.red { background: var(--primary); border-color: transparent; color: #0b0a0c; }
.btn.red:hover { background: #fff; }
/* small "red" buttons (Edit, Add event…) are quiet secondary buttons */
.btn.sm.red { background: rgba(255,255,255,.08); border-color: var(--line2); color: var(--text); }
.btn.sm.red:hover { background: rgba(255,255,255,.14); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: rgba(255,255,255,.05); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.block { display: flex; width: 100%; min-height: 50px; border-radius: 14px; font-size: 15px; }
.btn.danger, .btn.ghost.danger { color: var(--muted); }
.btn.danger:hover, .btn.ghost.danger:hover { color: var(--redtext); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.iconbtn { background: none; border: 0; color: var(--muted); }
.file-label { position: relative; overflow: hidden; cursor: pointer; }
.file-label input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 12px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.notice { border-radius: 12px; padding: 12px 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: 14px; }
.notice.red-note { background: rgba(196,22,31,.1); border-color: rgba(224,50,59,.3); color: #ffb3b5; }
.notice.yellow-note { background: rgba(242,184,75,.08); border-color: rgba(242,184,75,.25); color: #f6d58f; }
.over-warn { font-size: 13px; color: var(--amber); background: rgba(242,184,75,.08); border-radius: 10px; padding: 8px 12px; margin: 0 0 12px; }
.over-text { color: var(--redtext); }

/* guest rows */
.gl-head { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 4px 4px; }
.gl-head h2 { margin: 0; font: 700 17px var(--display); }
.gl-head span { color: var(--muted); font-size: 13px; }
.guests { list-style: none; margin: 0; padding: 0; }
.guest, .person { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.guest:last-child, .person:last-child { border-bottom: 0; }
.ini { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #221d20; display: grid; place-items: center; font: 600 12px var(--font); color: #cbbfb7; }
.guest-main, .person-main { flex: 1; min-width: 0; }
.guest-name { font: 600 15px var(--font); display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
.guest-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.guest-actions { display: flex; gap: 2px; flex: none; }
.guest-actions .btn { padding: 0 8px; }
.guest form.guest-main { width: 100%; }
.plus { color: var(--accent); font-weight: 700; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font: 600 11px var(--font); background: rgba(255,255,255,.07); color: #d6ccc4; }
.pill.over { background: rgba(242,184,75,.14); color: var(--amber); }
.pill.in { background: rgba(63,207,131,.14); color: var(--green); }
.pill.noshow { background: rgba(255,255,255,.06); color: var(--muted); }
.empty { color: var(--muted); text-align: center; padding: 26px 10px; margin: 0; }

/* manager sections on the show page */
.head-band { margin: 30px 0 12px; }
.head-band h2, .head-band h3 { margin: 0; }
.head-band p { margin: 4px 0 0; }
.section-title { font: 700 18px var(--display); margin: 26px 0 10px; }
.section-title .muted { font: 500 13px var(--font); }
.mgr-zone { margin-top: 30px; border-top: 1px solid var(--line); }
.searchbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.searchbar .input[type=search] { flex: 1; min-width: 180px; }
.searchbar select { width: auto; }

/* stat tiles */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.stat b { display: block; font: 700 30px/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat b .of { font-size: 18px; color: var(--muted); font-weight: 600; }
.stat span { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.stat-over b { color: var(--amber); }
.note { color: var(--muted); font-size: 12px; margin: 10px 2px 0; }

/* artist lists */
.acc { display: inline-block; padding: 2px 7px; border-radius: 6px; font: 700 11px var(--font); letter-spacing: .04em; }
.acc.AA { background: rgba(217,194,154,.16); color: var(--accent); }
.acc.GA { background: rgba(255,255,255,.08); color: #d6ccc4; }
.acc-group { margin-top: 12px; }
.artist-block h3 { margin: 0; font: 700 16px var(--display); }
.artist-paste { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.artist-paste label.field > span .acc { margin-right: 6px; }
.preview { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.issues { margin: 0 0 10px; padding: 10px 14px 10px 28px; border-radius: 10px; background: rgba(242,184,75,.08); color: #f6d58f; font-size: 13px; }

/* tables */
table.tight { width: 100%; border-collapse: collapse; font-size: 14px; }
.tight th { text-align: left; font: 600 11px var(--font); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.tight td { padding: 10px 6px; border-bottom: 1px solid var(--line); }
.tight tr:last-child td { border-bottom: 0; }
.tight .num { text-align: right; font-variant-numeric: tabular-nums; }
.tight tr.skipped td { color: var(--faint); text-decoration: line-through; }
.tight tr.skipped td.small { text-decoration: none; }
.panel > table.tight { margin: -4px 0; }
@media (max-width: 640px) { .tight .hide-sm { display: none; } }

details.help summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.small { font-size: 13px; }
.muted { color: var(--muted); }

/* ========== event management ========== */
.sync { font-size: 13px; margin: 10px 2px 0; }
.sync.ok { color: var(--muted); }
.sync.ok::before { content: '● '; color: var(--green); }
.sync.bad { color: var(--redtext); }
.mgmt-list { list-style: none; margin: 0; padding: 0; }
.mgmt-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mgmt-item:last-child { border-bottom: 0; }
.mgmt-img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; display: block; }
.mgmt-img.flyer-none { font-size: 10px; padding: 4px; border-radius: 12px; }
.ev-name { font: 600 15px var(--font); }
.mgmt-main .small { margin-top: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { padding: 3px 9px; border-radius: 999px; font: 600 11px var(--font); background: rgba(255,255,255,.06); color: #cfc5bd; border: 1px solid transparent; }
.tag-ok { color: var(--green); border-color: rgba(63,207,131,.3); background: rgba(63,207,131,.08); }
.tag-warn { color: var(--amber); border-color: rgba(242,184,75,.3); background: rgba(242,184,75,.08); }
.tag-bad { color: var(--redtext); border-color: rgba(224,50,59,.35); background: rgba(224,50,59,.08); }
.mgmt-actions { display: flex; gap: 6px; }
@media (max-width: 640px) {
  .mgmt-item { grid-template-columns: 56px 1fr; }
  .mgmt-img { width: 56px; height: 56px; }
  .mgmt-actions { grid-column: 1 / -1; }
}
.site-note { margin: 0 0 14px; }
.flyer-edit { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.flyer-edit img, .flyer-edit .flyer-none { width: 110px; height: 110px; object-fit: cover; border-radius: 12px; font-size: 12px; }
details.dropdown { position: relative; }
details.dropdown summary { list-style: none; cursor: pointer; background: var(--field); border: 1px solid var(--line); border-radius: 12px; min-height: 44px; padding: 11px 36px 11px 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239b938d' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
details.dropdown summary::-webkit-details-marker { display: none; }
.dropdown-menu { margin-top: 6px; background: var(--card2); border: 1px solid var(--line2); border-radius: 12px; padding: 12px; display: grid; gap: 10px; }

/* ========== reports ========== */
.filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.filters .input { min-height: 40px; padding-top: 8px; padding-bottom: 8px; font-size: 13px; border-radius: 10px; background-color: #121013; }
.filters .btn { grid-column: 1 / -1; }
.filters .spacer { display: none; }
@media (min-width: 760px) { .filters { display: flex; flex-wrap: wrap; } .filters .input { width: auto; min-width: 170px; } .filters .spacer { display: block; } .filters .btn { grid-column: auto; } }
.bars { list-style: none; margin: 0; padding: 0; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 32%) 1fr auto; gap: 12px; align-items: center; padding: 9px 0; font-size: 13px; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.bar-label small { display: block; color: var(--muted); font-weight: 400; font-size: 11px; }
.bar-track { height: 8px; border-radius: 4px; background: #221e21; position: relative; overflow: hidden; }
.bar-fill { position: absolute; inset: 0 auto 0 0; background: #5a1116; border-radius: 4px; }
.bar-showed { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 4px; }
.bar-val { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-val b { color: var(--text); }
.bar-val small { font-size: 11px; }
.legend { display: flex; gap: 14px; color: var(--muted); font-size: 12px; margin-top: 10px; }
.key { display: inline-block; width: 10px; height: 6px; border-radius: 3px; vertical-align: middle; margin-right: 6px; }
.key-added { background: #5a1116; }
.key-showed { background: var(--accent); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.tooltip { position: fixed; z-index: 40; pointer-events: none; background: var(--text); color: #111; font-size: 13px; padding: 7px 10px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.4); max-width: 240px; }

/* stacked employee / promoter / artist bars */
.stack { display: flex; gap: 2px; height: 10px; min-width: 0; }
.stack i { display: block; height: 100%; min-width: 3px; border-radius: 2px; }
.stack i:first-child { border-radius: 4px 2px 2px 4px; }
.stack i:last-child { border-radius: 2px 4px 4px 2px; }
.stack i:only-child { border-radius: 4px; }
.s-employee { background: var(--c-employee); }
.s-promoter { background: var(--c-promoter); }
.s-artist { background: var(--c-artist); }
.legend .key { width: 10px; height: 10px; border-radius: 3px; }
.stack-none { color: var(--faint); font-size: 12px; }
.month-label { font: 600 11px var(--font); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; padding: 12px 0 2px; }
.month-label:first-child { padding-top: 0; }
.seg.mini { grid-template-columns: repeat(2, auto); padding: 2px; border-radius: 10px; }
.seg.mini .seg-btn { padding: 6px 12px; font-size: 12px; border-radius: 8px; }

/* promoter shows */
.flyer-wrap { position: relative; }
.promo-badge { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 999px; font: 700 10px var(--font); letter-spacing: .06em; text-transform: uppercase;
  background: rgba(11,10,12,.78); color: #f3a6c9; border: 1px solid rgba(217,82,143,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.promo-badge.inline { position: static; display: inline-block; margin: 0 0 8px; }
.tag-promo { color: #f3a6c9; border-color: rgba(217,82,143,.45); background: rgba(217,82,143,.1); }
.promo-field { background: rgba(217,82,143,.06); border: 1px solid rgba(217,82,143,.25); border-radius: 12px; padding: 12px; }

/* promoter entry + free-show reward */
.pill.promo { background: rgba(217,82,143,.14); color: #f3a6c9; }
.reward-card { margin-top: 16px; border-color: rgba(217,82,143,.45); background: linear-gradient(180deg, #1d1219, var(--card)); }
.reward-card .lbl { font: 600 11px var(--font); color: #f3a6c9; letter-spacing: .14em; text-transform: uppercase; }
.reward-card h2 { margin: 4px 0 6px; font: 700 22px var(--display); }
.reward-card.done { border-color: var(--line); background: var(--card); }
.pick-list { display: grid; gap: 8px; }
.pick { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 8px 12px 8px 8px; border-radius: 12px; background: var(--field); border: 1px solid var(--line); }
.pick.on { border-color: #d9528f; background: rgba(217,82,143,.08); }
.pick:disabled { opacity: .45; cursor: not-allowed; }
.pick .thumb, .pick .flyer-none { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; font-size: 8px; padding: 2px; }
.pick-main { flex: 1; min-width: 0; display: grid; }
.pick-main .n { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-main .d { color: var(--muted); font-size: 12px; }
.pick .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line2); flex: none; }
.pick.on .radio { border-color: #d9528f; box-shadow: inset 0 0 0 4px var(--field); background: #d9528f; }
.entry-card { border-color: rgba(217,82,143,.35); }
.entry-card .row { flex-wrap: nowrap; }
.goal { font-size: 13px; color: #d6ccc4; background: rgba(217,82,143,.07); border: 1px solid rgba(217,82,143,.22); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; }
.goal.ok { color: var(--green); background: rgba(63,207,131,.08); border-color: rgba(63,207,131,.3); }
.goal .ok { color: var(--green); }
.mine-show > .goal { margin: 10px 0 0; }
.mine-head.static { cursor: default; }
.ok-text { color: var(--green); }
.hist-total { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hist-total b { display: block; font: 700 28px/1 var(--display); white-space: nowrap; }
.hist-total b .of { font-size: 16px; color: var(--muted); }
.hist-total span { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }

/* promoter posts */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin: 0 0 14px; }
.promo-grid.sm { grid-template-columns: repeat(auto-fill, minmax(72px, 88px)); margin: 10px 0 4px; }
.promo-tile { position: relative; min-width: 0; }
.promo-img { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--field); padding: 0; }
.promo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-linkonly { display: grid; place-items: center; text-decoration: none; color: var(--accent); font-weight: 600; font-size: 13px; }
.promo-meta { display: flex; justify-content: space-between; gap: 4px; font-size: 11px; color: var(--muted); margin-top: 4px; }
.promo-meta a { color: var(--accent); text-decoration: none; white-space: nowrap; }
.promo-note { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.promo-x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 16px; line-height: 1; display: grid; place-items: center; padding: 0; }
.guest.promoter-row { align-items: flex-start; }
label.btn[aria-disabled] { opacity: .6; pointer-events: none; }

/* ========== employees ========== */
.subtabs { display: flex; gap: 4px; margin: 18px 0 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 3px; overflow-x: auto; }
.subtab { flex: 1; white-space: nowrap; border: 0; background: none; padding: 8px 12px; border-radius: 9px; font: 600 13px var(--font); color: var(--muted); }
.subtab[aria-current] { background: #2a2427; color: var(--text); }
.person-form h3, .panel > h3.section-title { margin-top: 0; }

/* ========== my guests + account ========== */
.mine-show { padding: 12px 16px 4px; }
.mine-head { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: 0; padding: 4px 0 10px; text-align: left; border-bottom: 1px solid var(--line); }
.mine-head img, .mine-head .flyer-none { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; font-size: 9px; padding: 2px; }
.mine-head .n { font: 600 15px var(--font); }
.mine-head .d { color: var(--muted); font-size: 12px; }
.mine-head .chip { margin-top: 2px; }
.mine-head .go { margin-left: auto; color: var(--muted); }
.acct-card { display: flex; align-items: center; gap: 14px; }
.acct-card .ini { width: 56px; height: 56px; font-size: 18px; background: #2a2428; }
.acct-card .name { font: 700 20px var(--display); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 16px 0 0; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* ========== sign in ========== */
.door { max-width: 420px; margin: 0 auto; padding: calc(60px + env(safe-area-inset-top)) 16px 40px; }
.door-brand { text-align: center; margin-bottom: 26px; }
.door-brand img { width: 64px; height: 64px; object-fit: contain; }
.door-brand .wordmark { margin-top: 12px; font-size: 14px; }
.door-brand h1 { margin: 22px 0 6px; font: 700 30px/1.1 var(--display); }
.door-brand p { color: var(--muted); margin: 0; }
.door .card { padding: 20px; }
.door .card p { margin-top: 0; }
.acct { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; width: 100%; min-height: 56px; margin-bottom: 8px; padding: 8px 14px; text-align: left; }
.acct small { color: var(--muted); font-weight: 400; font-size: 12px; }

/* ========== flyer modal ========== */
.modal { position: fixed; inset: 0; z-index: 45; background: rgba(5,4,6,.86); display: grid; place-items: center; padding: 20px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal-in { max-width: 460px; width: 100%; display: grid; gap: 14px; }
.modal-in img { width: 100%; border-radius: 16px; display: block; }
.modal-in .row .btn { flex: 1; }

/* ========== version footer ========== */
.ver { position: relative; z-index: 1; text-align: center; color: var(--faint); font-size: 11px; padding: 18px 0 22px; }
.btn.back { margin: 14px 0 0 -8px; color: var(--muted); }

/* ========== toast ========== */
#toast { position: fixed; left: 50%; bottom: calc(20px + var(--tabbar) + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 60;
  background: var(--text); color: #111; padding: 11px 16px; border-radius: 12px; font-weight: 500; font-size: 14px; opacity: 0; pointer-events: none;
  transition: opacity .18s, transform .18s; max-width: calc(100% - 32px); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
#toast.is-on { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { background: #ffb3b5; }

/* ========== disco ball (guest list full) ========== */
.disco { position: fixed; inset: 0; z-index: 50; display: grid; justify-items: center; align-content: start; cursor: pointer; overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, rgba(40,10,60,.55), rgba(0,0,0,.86) 70%); transition: opacity .35s; }
.disco.leaving { opacity: 0; }
.disco-beams { position: absolute; left: 50%; top: calc(26vh + min(23vw, 105px)); width: 260vmax; height: 260vmax; transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg, rgba(255,45,117,.20) 0deg 3deg, transparent 3deg 17deg, rgba(52,225,255,.18) 17deg 20deg, transparent 20deg 33deg, rgba(255,225,74,.16) 33deg 35deg, transparent 35deg 51deg, rgba(180,91,255,.18) 51deg 54deg, transparent 54deg 72deg);
  -webkit-mask: radial-gradient(circle, #000 0, rgba(0,0,0,.7) 18%, transparent 55%); mask: radial-gradient(circle, #000 0, rgba(0,0,0,.7) 18%, transparent 55%);
  mix-blend-mode: screen; animation: beams 14s linear infinite; opacity: 0; animation-delay: 1.1s; animation-fill-mode: both; }
.disco-beams.b2 { animation-direction: reverse; animation-duration: 21s; filter: hue-rotate(120deg); }
@keyframes beams { 0% { opacity: 0; transform: translate(-50%,-50%) rotate(0); } 8% { opacity: 1; } 100% { opacity: 1; transform: translate(-50%,-50%) rotate(360deg); } }
.disco-lights { position: absolute; inset: -50%; animation: whirl 9s linear infinite; pointer-events: none; }
.disco-lights i { position: absolute; border-radius: 50%; filter: blur(1px); opacity: .9; animation: twinkle 1.2s ease-in-out infinite alternate; }
@keyframes whirl { to { transform: rotate(360deg); } }
@keyframes twinkle { from { opacity: .25; transform: scale(.7); } to { opacity: 1; transform: scale(1.15); } }
.disco-drop { position: relative; z-index: 2; display: grid; justify-items: center; animation: drop 1.4s cubic-bezier(.3,1.35,.5,1) both; }
@keyframes drop { from { transform: translateY(-110vh); } to { transform: translateY(0); } }
.disco-swing { display: grid; justify-items: center; transform-origin: 50% 0; animation: sway 3.6s 1.4s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
.disco-string { width: 2px; height: 26vh; background: linear-gradient(#444, #ddd); }
.disco-cap { width: 22px; height: 12px; margin-bottom: -3px; border-radius: 4px 4px 2px 2px; background: linear-gradient(90deg, #6d6f75, #e6e8ec 45%, #7a7c82); box-shadow: 0 1px 0 #0006; position: relative; z-index: 2; }
.disco-ball { width: min(46vw, 210px); aspect-ratio: 1; border-radius: 50%; position: relative; overflow: hidden;
  background: #23252b; box-shadow: 0 0 70px rgba(255,255,255,.35), 0 0 160px rgba(180,91,255,.35), inset 0 0 0 1px rgba(255,255,255,.15); }
.disco-facets { position: absolute; top: 0; left: 0; width: 200%; height: 100%; background-repeat: repeat-x; background-size: 50% 100%; animation: facets 5s linear infinite; }
@keyframes facets { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.disco-shade { position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, rgba(255,255,255,.75) 0, rgba(255,255,255,.18) 14%, transparent 30%),
    radial-gradient(circle at 50% 50%, transparent 46%, rgba(0,0,0,.35) 70%, rgba(0,0,0,.85) 100%); }
.spark { position: absolute; width: 26px; height: 26px; margin: -13px; pointer-events: none; animation: spark 2.4s ease-in-out infinite; opacity: 0; }
.spark::before, .spark::after { content: ''; position: absolute; left: 50%; top: 50%; background: #fff; border-radius: 2px; box-shadow: 0 0 10px 2px #fff; transform: translate(-50%, -50%); }
.spark::before { width: 26px; height: 2px; }
.spark::after { width: 2px; height: 26px; }
@keyframes spark { 0%, 70%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 82% { opacity: 1; transform: scale(1) rotate(45deg); } }
.disco-glow { width: min(46vw, 210px); height: 24px; margin-top: 18px; border-radius: 50%; background: radial-gradient(ellipse, rgba(255,255,255,.25), transparent 70%); filter: blur(4px); }
.disco-text { position: relative; z-index: 2; margin-top: 28px; padding: 0 16px; text-align: center; color: #fff;
  font: 800 clamp(40px, 12vw, 76px)/1 var(--display); letter-spacing: .04em; text-transform: uppercase;
  text-shadow: 0 0 10px #d9528f, 0 0 30px #d9528f, 0 0 60px #d9528f; animation: pop .5s 1.1s both, neonflick 3s 1.6s infinite; }
.disco-sub { position: relative; z-index: 2; color: var(--muted); animation: pop .5s 1.4s both; margin-top: 10px; font-size: 14px; }
@keyframes pop { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
@keyframes neonflick { 0%, 100% { opacity: 1; } 92% { opacity: 1; } 93% { opacity: .55; } 94% { opacity: 1; } 96% { opacity: .7; } 97% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .ceiling .hue { animation: none; }
  .disco-beams, .disco-swing, .disco-facets, .spark, .disco-text, .disco-drop, .disco-sub, .disco-lights, .disco-lights i { animation: none !important; opacity: 1; }
  .spark { opacity: 0; }
  #toast, .show .flyer { transition: none; }
}

/* ========== printing ========== */
#print { display: none; }
@media print {
  @page { margin: 14mm; }
  html, body { background: #fff !important; }
  body.printing > *:not(#print) { display: none !important; }
  body.printing #print { display: block; color: #111; font: 11pt/1.4 'Inter', Helvetica, Arial, sans-serif; }
  #print .p-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 3px solid #b8141d; padding-bottom: 8px; margin-bottom: 12px; }
  #print .p-brand { font: 700 10pt/1 'Inter', Arial, sans-serif; letter-spacing: .3em; color: #b8141d; }
  #print h1 { font: 700 20pt/1.1 'Inter Display', 'Inter', Arial, sans-serif; letter-spacing: -.01em; margin: 6px 0 2px; }
  #print .p-sub, #print .p-when { color: #555; font-size: 10pt; }
  #print .p-when { text-align: right; }
  #print .p-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 6px; }
  #print .p-box { border: 1px solid #ccc; border-radius: 6px; padding: 8px 10px; }
  #print .p-box b { display: block; font: 700 18pt/1 'Inter Display', 'Inter', Arial, sans-serif; }
  #print .p-box span { font-size: 9pt; color: #555; }
  #print .p-note { font-size: 9pt; color: #555; margin: 4px 0 10px; }
  #print h2 { font-size: 12pt; margin: 16px 0 6px; border-bottom: 1px solid #ddd; padding-bottom: 3px; }
  #print table { width: 100%; border-collapse: collapse; font-size: 10pt; page-break-inside: auto; }
  #print th { text-align: left; font-weight: 600; color: #444; border-bottom: 1.5px solid #999; padding: 4px 6px; }
  #print td { border-bottom: 1px solid #e3e3e3; padding: 4px 6px; }
  #print tr { page-break-inside: avoid; }
  #print .n { text-align: right; font-variant-numeric: tabular-nums; }
  #print tr.in td:last-child { font-weight: 700; color: #136b38; }
}

/* v2.8: table booking link card on a show */
.table-link .tl-top { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.table-link .tl-top > svg { width: 22px; height: 22px; flex: none; color: var(--amber); margin-top: 1px; }
.table-link .tl-top p { margin: 2px 0 0; }
.table-link .tl-url { font-size: 13px; color: #d6ccc4; text-overflow: ellipsis; }
.table-link .tl-btns { margin-top: 10px; flex-wrap: wrap; }
.table-link .tl-btns svg { width: 15px; height: 15px; margin-right: 6px; vertical-align: -2px; }
.pill.tl { background: rgba(242,184,75,.12); color: var(--amber); }

/* v2.8: Edit show, in sections */
.ef .ef-sec { padding: 18px; }
.ef .ef-h { margin: 0 0 14px; font: 650 15px var(--display); letter-spacing: -.01em; }
.ef .ef-src { margin: 2px 0 0; font-size: 12px; color: var(--faint); }
.ef .ef-src a { color: var(--muted); }
.ef .ef-foot { margin: 12px 0 0; font-size: 12px; color: var(--faint); }
.ef .ef-spots { width: 110px; }
.ef .ef-sub { margin: 10px 0 0; font-size: 12px; color: var(--promo, #f08bb8); }
.ef .ef-actions { margin: 4px 0 24px; }
.rchips { display: flex; flex-wrap: wrap; gap: 8px; }
.rchip { position: relative; cursor: pointer; }
.rchip input { position: absolute; opacity: 0; pointer-events: none; }
.rchip span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line2); color: var(--muted); font: 600 13px var(--font); transition: background .15s, color .15s, border-color .15s; }
.rchip span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); transition: background .15s; }
.rchip input:checked + span { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); color: var(--text); }
.rchip input:checked + span::before { background: var(--green); }
.rchip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ef-links { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.ef-links li { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); }
.ef-link-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.ef-link-main .input.sm { padding: 7px 10px; font-size: 13px; }
.ef-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* v2.8: post platform badges + Share these posts card */
.plat { flex: none; display: inline-block; padding: 3px 8px; border-radius: 6px; font: 700 10px var(--font); letter-spacing: .04em; text-transform: uppercase; background: rgba(255,255,255,.08); color: #d6ccc4; margin-top: 2px; }
.plat-instagram { background: rgba(217,82,143,.16); color: #f08bb8; }
.plat-tiktok { background: rgba(80,220,230,.12); color: #7fe3ea; }
.plat-facebook { background: rgba(59,143,214,.16); color: #8cc0ef; }
.plat-youtube { background: rgba(224,50,59,.16); color: #ff8a8e; }
.plat-x, .plat-threads { background: rgba(255,255,255,.1); color: var(--text); }
.plat-spotify { background: rgba(63,207,131,.14); color: var(--green); }
.share-card .sc-h { margin: 0 0 10px; font: 650 15px var(--display); }
.sc-list { list-style: none; margin: 0; padding: 0; }
.sc-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.sc-list li:first-child { border-top: 0; padding-top: 2px; }
.sc-list .plat { margin-top: 0; }
.sc-name { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-name:hover { text-decoration: underline; }
.sc-name small { display: block; font-weight: 400; color: var(--faint); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.ef-link-main .input.sm { min-height: 36px; }

/* v2.8: Save pinned at the top of Edit show */
.ef .ef-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; margin: 6px -16px 12px; padding: 10px 16px;
  background: linear-gradient(180deg, rgba(11,10,12,.96) 70%, rgba(11,10,12,.0)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ef .ef-bar .page-title { margin: 0; }

/* v2.8: show flyer at about its real size (website flyers are 350px), so it stays sharp */
.hero { height: auto; overflow: visible; background: none; display: flex; justify-content: center; padding: calc(14px + env(safe-area-inset-top)) 16px 4px; }
.hero::after { display: none; }
.hero > img, .hero > .flyer-none { width: min(300px, calc(100vw - 128px)); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 18px;
  border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0,0,0,.55); }
@media (min-width: 760px) { .hero { border-radius: 0; } }
.ht { margin-top: 14px; }

/* v3.0: support contact */
.support { margin: 18px auto 0; max-width: 420px; text-align: center; font-size: 13px; line-height: 1.6; color: var(--muted); }
.support b { color: var(--text); font-weight: 600; }
.support a { color: var(--accent); text-decoration: none; }
.support a:hover { text-decoration: underline; }
/* v3.2: "Need help?" link that opens the contact box */
.support-link { background: none; border: 0; padding: 4px 6px; font: inherit; color: var(--accent); cursor: pointer; }
.support-link:hover { text-decoration: underline; }
.help-dlg { text-align: center; }
.help-dlg .help-title { font: 700 20px/1.2 var(--display); margin-bottom: 10px; }
.help-dlg p { margin: 0 0 10px; }
.help-dlg .help-lines a { color: var(--accent); text-decoration: none; }
.help-dlg .help-lines a:hover { text-decoration: underline; }
.help-dlg .dlg-btns { justify-content: center; margin-top: 16px; }

/* v3.0: in-app confirm box */
.dlg-back { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 20px; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.dlg { width: min(420px, 100%); background: var(--card); border: 1px solid var(--line2); border-radius: 18px; padding: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.dlg p { margin: 0 0 16px; font-size: 15px; line-height: 1.5; }
.dlg-btns { justify-content: flex-end; }
.btn.dlg-danger { background: #8f1d22; color: #fff; border-color: transparent; }
.btn.dlg-danger:hover { background: #a8242a; }

/* v3.0: profile photos */
img.ini.has-photo { object-fit: cover; padding: 0; border: 1px solid var(--line); }
.av { overflow: hidden; padding: 0; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acct-card { align-items: center; }
.acct-card .photo-btns { margin-top: 8px; gap: 6px; }

/* v3.3: VIP Manager status */
.pill.vip-ok { background: rgba(63,207,131,.12); color: var(--green); }
.pill.vip-fail { background: rgba(242,184,75,.14); color: var(--amber); }
.vip-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 14px 0; }
.vip-bar p { margin: 2px 0 0; }
.vip-bar.warn { border-color: rgba(242,184,75,.35); }
.rchip.locked { opacity: .75; cursor: default; }
