/* B+B Club Portal: black surfaces, white type, brand yellow pills. No pink anywhere. */
:root {
  --bg: #0b0b0b;
  --surface: #141416;
  --surface-2: #1c1c1f;
  --surface-3: #26262a;
  --line: #2e2e33;
  --text: #ffffff;
  --muted: #a6a6ad;
  --faint: #75757d;
  --yellow: #ffcc00;
  --yellow-press: #e5b800;
  --ok: #3ccf7a;
  --warn: #ffcc00;
  --bad: #ff5a4e;
  --info: #5aa9ff;
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --t-xs: 0.75rem; --t-sm: 0.875rem; --t-base: 1rem; --t-lg: 1.25rem; --t-xl: 1.6rem; --t-2xl: clamp(1.9rem, 1.2rem + 3vw, 2.8rem);
  --gap: 16px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: var(--t-base); line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
img { max-width: 100%; display: block; }
a { color: var(--yellow); text-underline-offset: 3px; }
a:hover { color: #ffe066; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.4em; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--t-2xl); font-weight: 800; }
h2 { font-size: var(--t-xl); font-weight: 750; }
h3 { font-size: var(--t-lg); font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: var(--t-sm); }
.xs { font-size: var(--t-xs); }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(11, 11, 11, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-width: 0; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); color: #000; display: grid; place-items: center; font-weight: 900; font-size: 13px; letter-spacing: -0.04em; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-text b { font-size: 15px; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; }
.brand-text span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.nav { display: flex; gap: 8px; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-size: var(--t-sm); font-weight: 600; padding: 8px 10px; border-radius: 999px; }
.nav a:hover { background: var(--surface-2); color: var(--text); }

main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 24px 16px 64px; }
main.narrow { max-width: 620px; }
.foot { border-top: 1px solid var(--line); color: var(--faint); font-size: var(--t-xs); }
.foot-in { max-width: 1120px; margin: 0 auto; padding: 18px 16px 28px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
.foot a { color: var(--muted); }

/* buttons */
.btn { appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: var(--t-base); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; background: var(--yellow); color: #000; text-decoration: none; transition: background 0.15s, transform 0.05s; white-space: nowrap; }
.btn:hover { background: #ffd633; color: #000; }
.btn:active { background: var(--yellow-press); transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1.5px #44444a; }
.btn.danger { background: transparent; color: var(--bad); box-shadow: inset 0 0 0 1.5px rgba(255, 90, 78, 0.45); }
.btn.danger:hover { background: rgba(255, 90, 78, 0.1); }
.btn.sm { min-height: 38px; padding: 8px 16px; font-size: var(--t-sm); }
.btn.block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card + .card { margin-top: 16px; }
.stack > * + * { margin-top: 16px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > label, .label { font-weight: 650; font-size: var(--t-sm); }
.hint { color: var(--muted); font-size: var(--t-xs); }
.err { color: var(--bad); font-size: var(--t-xs); min-height: 0; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=password], input[type=search], input[type=date], input[type=time], select, textarea {
  font: inherit; font-size: 16px; color: var(--text); background: var(--surface-2); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; width: 100%; min-height: 48px; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--yellow); }
input[aria-invalid=true], select[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--bad); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
input[type=time] { min-width: 0; }
::placeholder { color: var(--faint); }
.choices { display: grid; gap: 8px; }
.choice { display: flex; align-items: flex-start; gap: 12px; padding: 14px; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--yellow); background: #1f1c10; }
.choice input { accent-color: var(--yellow); width: 20px; height: 20px; margin: 1px 0 0; flex: none; }
.choice b { display: block; font-size: var(--t-sm); }
.choice span { color: var(--muted); font-size: var(--t-xs); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 9px 14px; border-radius: 999px; background: var(--surface-2); border: 1.5px solid var(--line); font-size: var(--t-sm); font-weight: 600; user-select: none; }
.chip input:checked + span { background: var(--yellow); color: #000; border-color: var(--yellow); }
.chip input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }
.counter { text-align: right; color: var(--faint); font-size: var(--t-xs); }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface-3); color: var(--text); white-space: nowrap; letter-spacing: 0.01em; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.pending { color: var(--yellow); background: rgba(255, 204, 0, 0.12); }
.badge.live, .badge.approved, .badge.synced { color: var(--ok); background: rgba(60, 207, 122, 0.12); }
.badge.rejected, .badge.error { color: var(--bad); background: rgba(255, 90, 78, 0.12); }
.badge.info, .badge.waiting { color: var(--info); background: rgba(90, 169, 255, 0.12); }
.badge.plain::before { display: none; }

/* notices */
.notice { border-radius: var(--radius-sm); padding: 12px 14px; font-size: var(--t-sm); background: var(--surface-2); border: 1px solid var(--line); }
.notice.ok { border-color: rgba(60, 207, 122, 0.4); background: rgba(60, 207, 122, 0.08); }
.notice.bad { border-color: rgba(255, 90, 78, 0.45); background: rgba(255, 90, 78, 0.08); }
.notice.warn { border-color: rgba(255, 204, 0, 0.4); background: rgba(255, 204, 0, 0.07); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60; background: #fff; color: #000; font-weight: 650; font-size: var(--t-sm); padding: 12px 18px; border-radius: 999px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); max-width: calc(100vw - 32px); text-align: center; }

/* hero */
.hero { padding: 28px 0 8px; }
.hero .eyebrow { color: var(--yellow); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: var(--t-xs); margin-bottom: 10px; }
.hero p.lead { color: var(--muted); font-size: 1.08rem; max-width: 56ch; }
.steps { counter-reset: s; display: grid; gap: 12px; margin: 24px 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: #000; font-weight: 800; margin-bottom: 10px; }
.steps b { display: block; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: var(--t-sm); }

/* typeahead */
.ta { position: relative; }
.ta-list { list-style: none; margin: 6px 0 0; padding: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); max-height: 340px; overflow: auto; }
.ta-list li { padding: 10px 12px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.ta-list li[aria-selected=true], .ta-list li:hover { background: var(--surface-3); }
.ta-list .nm { font-weight: 650; }
.ta-list .loc { color: var(--muted); font-size: var(--t-xs); }
.picked { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--yellow); background: #1f1c10; }
.picked b { display: block; }

/* editor layout */
.ed-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ed-head h1 { font-size: var(--t-xl); margin: 0; }
.tabs { position: sticky; top: 58px; z-index: 20; background: var(--bg); display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; margin: 0 -16px 16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; appearance: none; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 650; font-size: var(--t-sm); padding: 9px 15px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.tab[aria-selected=true] { background: var(--yellow); color: #000; border-color: var(--yellow); }
.tab .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }
.tab[aria-selected=true] .dot { background: #000; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.savebar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.source-note { font-size: var(--t-xs); color: var(--muted); }

/* hours */
.day { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.day:last-child { border-bottom: 0; }
.day-name { font-weight: 750; padding-top: 12px; }
.ranges { display: flex; flex-direction: column; gap: 8px; }
.range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 40px; gap: 6px; align-items: center; }
.range input[type=time] { padding: 10px 8px; }
@media (max-width: 560px) {
  .day { grid-template-columns: 1fr; gap: 4px; }
  .day-name { padding-top: 0; }
}
.range .to { color: var(--muted); font-size: var(--t-xs); }
.range .x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-3); color: var(--text); font-size: 18px; cursor: pointer; }
.range-note { grid-column: 1 / -1; font-size: var(--t-xs); color: var(--yellow); margin-top: -2px; }
.day-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.closed-label { color: var(--faint); font-size: var(--t-sm); padding: 10px 0; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-sm); cursor: pointer; }
.toggle input { accent-color: var(--yellow); width: 18px; height: 18px; }

/* photos */
.dropzone { display: block; border: 2px dashed #3a3a40; border-radius: var(--radius); padding: 24px 16px; text-align: center; background: var(--surface-2); cursor: pointer; }
.dropzone.over { border-color: var(--yellow); background: #1f1c10; }
.dropzone b { display: block; font-size: var(--t-lg); margin-bottom: 4px; }
.photo-grid { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 16px; }
@media (min-width: 560px) { .photo-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
.ph { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; touch-action: pan-y; }
.ph.dragging { opacity: 0.4; }
.ph.drop-target { outline: 2px solid var(--yellow); }
.ph-img { position: relative; aspect-ratio: 4 / 3; background: #000; }
.ph-img img { width: 100%; height: 100%; object-fit: cover; }
.ph-img .badge { position: absolute; top: 10px; left: 10px; background: rgba(0, 0, 0, 0.78); }
.handle { position: absolute; top: 8px; right: 8px; width: 42px; height: 42px; border-radius: 50%; background: rgba(0, 0, 0, 0.78); color: #fff; display: grid; place-items: center; cursor: grab; touch-action: none; border: 0; }
.handle svg { width: 20px; height: 20px; }
.ph-body { padding: 12px; display: grid; gap: 8px; }
.ph-body input, .ph-body select { min-height: 42px; padding: 9px 12px; font-size: 15px; }
.ph-actions { display: flex; justify-content: space-between; gap: 6px; }
.icon-btn { appearance: none; border: 1.5px solid var(--line); background: transparent; color: var(--text); border-radius: 999px; min-height: 38px; padding: 6px 12px; font: inherit; font-size: var(--t-xs); font-weight: 650; cursor: pointer; }
.icon-btn:hover { background: var(--surface-3); }
.icon-btn.del { color: var(--bad); border-color: rgba(255, 90, 78, 0.4); }
.progress { height: 6px; background: var(--surface-3); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.progress i { display: block; height: 100%; background: var(--yellow); width: 0; transition: width 0.2s; }

/* tour */
.embed { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.helper { background: var(--surface-2); border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); }
.helper ul { margin: 0.5em 0 0; padding-left: 1.2em; }
.helper li { margin-bottom: 8px; }
.perk { border: 1.5px solid var(--yellow); background: #1f1c10; border-radius: var(--radius); padding: 18px; }
.perk .eyebrow { color: var(--yellow); font-weight: 800; letter-spacing: 0.12em; font-size: var(--t-xs); text-transform: uppercase; }
.tracker { display: flex; gap: 6px; margin: 14px 0; flex-wrap: wrap; }
.tracker span { flex: 1 1 0; min-width: 84px; text-align: center; font-size: var(--t-xs); font-weight: 700; padding: 8px 6px; border-radius: 999px; background: var(--surface-3); color: var(--muted); }
.tracker span.on { background: var(--yellow); color: #000; }

/* instagram */
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 12px; border-radius: var(--radius-sm); overflow: hidden; }
.ig-grid img { aspect-ratio: 1; object-fit: cover; width: 100%; }

/* public preview */
.pv-hero { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.pv-cover { aspect-ratio: 16 / 9; background: #000; }
.pv-cover img { width: 100%; height: 100%; object-fit: cover; }
.pv-body { padding: 18px; }
.pv-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.pv-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pv-tags span { background: var(--surface-3); border-radius: 999px; font-size: var(--t-xs); font-weight: 650; padding: 5px 11px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; font-size: var(--t-sm); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.hours-table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.hours-table td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours-table td:first-child { color: var(--muted); width: 64px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; }
.thumbs figure { margin: 0; position: relative; }
.thumbs img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; width: 100%; }
.thumbs .badge { position: absolute; left: 6px; bottom: 6px; background: rgba(0, 0, 0, 0.8); font-size: 10px; padding: 3px 7px; }

/* admin */
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-tabs .tab .n { background: var(--surface-3); color: var(--text); border-radius: 999px; padding: 0 7px; font-size: 11px; min-width: 20px; text-align: center; }
.admin-tabs .tab[aria-selected=true] .n { background: #000; color: var(--yellow); }
.q-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.q-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: baseline; margin-bottom: 10px; }
.q-head h3 { margin: 0; font-size: var(--t-base); }
.diff { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .diff { grid-template-columns: 1fr 1fr; } }
.diff > div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px; border: 1px solid var(--line); min-width: 0; }
.diff h4 { margin: 0 0 8px; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.diff .row { font-size: var(--t-sm); padding: 6px 0; border-bottom: 1px solid var(--line); word-break: break-word; }
.diff .row:last-child { border-bottom: 0; }
.diff .row b { display: block; font-size: var(--t-xs); color: var(--muted); font-weight: 650; }
.diff .row.changed { background: rgba(255, 204, 0, 0.08); margin: 0 -8px; padding: 6px 8px; border-radius: 6px; }
.diff .row.changed b { color: var(--yellow); }
.q-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.q-photo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.q-photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: #000; }
.q-photo .in { padding: 12px; }
.copybox { background: #000; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; white-space: pre-wrap; word-break: break-all; max-height: 320px; overflow: auto; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.list { width: 100%; border-collapse: collapse; font-size: var(--t-sm); min-width: 720px; }
table.list th, table.list td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { color: var(--muted); font-weight: 650; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.06em; background: var(--surface); position: sticky; top: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.toolbar input, .toolbar select { flex: 1 1 200px; width: auto; }
.empty { text-align: center; color: var(--muted); padding: 32px 16px; border: 1px dashed var(--line); border-radius: var(--radius); }
dialog { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 40px); overflow: auto; }
dialog::backdrop { background: rgba(0, 0, 0, 0.7); }
.legal h2 { margin-top: 1.6em; font-size: var(--t-lg); }
.legal li { margin-bottom: 6px; }
@media (max-width: 420px) {
  .brand-text span { display: none; }
  .card { padding: 16px; }
  .nav a { padding: 8px; }
}
/* utilities (CSP forbids inline styles) */
[data-u~=mt12] { margin-top: 12px; }
[data-u~=mt16] { margin-top: 16px; }
[data-u~=mb12] { margin-bottom: 12px; }
[data-u~=end] { justify-content: flex-end; }
[data-u~=narrow-box] { max-width: 440px; margin: 0 auto; }
.mt12 { margin-top: 12px; }
.mt16 { margin-top: 16px; }
.mb12 { margin-bottom: 12px; }
.row-between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.pre { white-space: pre-wrap; }

/* sign-in page: guidance stacked on phones, beside the box on desktop */
main.auth { max-width: 1180px; }
.auth-grid { display: grid; gap: 16px; grid-template-columns: 1fr; grid-template-areas: "box" "how" "side"; }
.auth-how { grid-area: how; }
.auth-box { grid-area: box; }
.auth-side { grid-area: side; display: grid; gap: 16px; align-content: start; }
.auth-side .card + .card, .auth-box .card + .card { margin-top: 0; }
.auth-box { display: grid; gap: 16px; align-content: start; }
.auth-box h1 { margin-bottom: 0; }
.auth-box > p { margin: -8px 0 0; }
@media (min-width: 760px) and (max-width: 1099px) {
  .auth-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "box how" "box side"; align-items: start; }
}
@media (min-width: 1100px) {
  .auth-grid { grid-template-columns: 1fr minmax(360px, 420px) 1fr; grid-template-areas: "how box side"; align-items: start; }
  .auth-box { position: sticky; top: 84px; }
}
.auth-how h2, .auth-side h2 { font-size: var(--t-lg); }
.numbered { counter-reset: n; list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 14px; }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; }
.numbered li::before { content: counter(n); grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: #000; font-weight: 800; display: grid; place-items: center; font-size: var(--t-sm); }
.numbered b { font-size: var(--t-sm); }
.numbered span { color: var(--muted); font-size: var(--t-sm); }
.ticks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; font-size: var(--t-sm); }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 12px; height: 7px; border-left: 2.5px solid var(--yellow); border-bottom: 2.5px solid var(--yellow); transform: rotate(-45deg); }
.faq { border-top: 1px solid var(--line); padding: 10px 0; }
.faq:first-of-type { border-top: 0; padding-top: 4px; }
.faq summary { cursor: pointer; font-weight: 650; font-size: var(--t-sm); list-style: none; display: flex; justify-content: space-between; gap: 10px; align-items: center; min-height: 32px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--yellow); font-size: 20px; font-weight: 700; line-height: 1; }
.faq[open] summary::after { content: "\2013"; }
.faq p { margin: 6px 0 0; }
.help-card h3 { font-size: var(--t-base); margin-bottom: 4px; }
.help-card p { margin: 0; }

/* events */
.ev-list { display: grid; gap: 12px; margin-top: 12px; }
.ev-card { display: grid; grid-template-columns: 1fr; gap: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
@media (min-width: 620px) { .ev-card { grid-template-columns: 150px minmax(0, 1fr); } }
.ev-flyer { background: var(--surface-3); }
.ev-flyer img { width: 100%; height: 220px; object-fit: cover; display: block; }
@media (min-width: 620px) { .ev-flyer img { height: 100%; min-height: 180px; } }
.ev-noflyer { display: grid; place-items: center; min-height: 90px; height: 100%; background: var(--surface-3); color: var(--muted); font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.ev-body { padding: 14px; display: grid; gap: 6px; min-width: 0; }
.ev-body h3, .ev-body h4 { margin: 0; overflow-wrap: anywhere; }
.ev-body p { margin: 0; overflow-wrap: anywhere; }
.ev-badges { gap: 6px; }
.ev-actions { margin-top: 6px; gap: 8px; }
.ev-form { margin-top: 12px; display: grid; gap: 14px; border-color: #3a3a40; }
.ev-flyer-prev { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.ev-flyer-prev:empty { display: none; }
.ev-flyer-prev img { width: 120px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.dropzone.sm { padding: 16px; min-height: 0; }
.ev-custom { display: grid; gap: 14px; }
.ev-club .chips { align-items: center; }
.link-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.link-row:last-of-type { border-bottom: 0; }
.link-row > div:first-child { min-width: 0; overflow-wrap: anywhere; }
/* producer header */
.pr-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pr-head h1 { margin: 0; overflow-wrap: anywhere; }
.pr-logo { width: 52px; height: 52px; border-radius: 50%; background: var(--yellow); color: #000; font-weight: 900; display: grid; place-items: center; overflow: hidden; flex: none; }
.pr-logo img { width: 100%; height: 100%; object-fit: cover; }
.pr-logo.lg { width: 96px; height: 96px; font-size: 1.4rem; }
.logo-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.logo-row p { margin: 0 0 10px; }
.h-sub { font-size: 1rem; margin: 8px 0 0; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.ev-q-in { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .ev-q-in { grid-template-columns: 180px minmax(0, 1fr); } }
.ev-q-flyer { align-self: start; display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-3); min-height: 120px; }
.ev-q-flyer img { width: 100%; max-height: 320px; object-fit: cover; display: block; }
.ev-q-body { min-width: 0; overflow-wrap: anywhere; }
a.card, a.card:hover { text-decoration: none; color: var(--text); }
a.card .muted { color: var(--muted); }
a.card:hover { border-color: var(--yellow-press, #E5B800); }

/* ---- Verification steps, codes ---- */
.steps-bar { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 18px; counter-reset: st; }
.steps-bar li { flex: 1; font-size: var(--t-xs); color: var(--muted); padding-top: 8px; border-top: 3px solid var(--surface-3); counter-increment: st; }
.steps-bar li::before { content: counter(st) ". "; }
.steps-bar li.on { color: var(--text); border-top-color: var(--yellow); }
.steps-bar li.done { color: var(--muted); border-top-color: var(--yellow-press); }
.code-input { font-size: 1.6rem; letter-spacing: 0.35em; text-align: center; font-variant-numeric: tabular-nums; max-width: 260px; }
.copy-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.code-block, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.code-block { display: block; flex: 1 1 260px; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; font-size: var(--t-sm); overflow-wrap: anywhere; }
.live-note { display: flex; align-items: center; gap: 8px; color: var(--muted); margin: 6px 0 14px; }
.live-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; box-shadow: 0 0 0 3px rgba(60, 207, 122, 0.18); }
ul.flags { margin: 8px 0; padding-left: 18px; font-size: var(--t-sm); color: var(--warn); }
.form-error:empty { display: none; }

/* ---- Logo ---- */
.logo-rules { margin: 0 0 14px; padding-left: 18px; font-size: var(--t-sm); color: var(--muted); }
.logo-rules li { margin: 4px 0; }
.logo-rules b { color: var(--text); }
.logo-previews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
@media (max-width: 560px) { .logo-previews { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lp.mobile { grid-column: 1 / -1; } }
.lp { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.lp figcaption { font-size: var(--t-xs); color: var(--muted); padding: 6px 10px; background: var(--surface); }
.lp-img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 14px; }
.lp.light .lp-img { background: #ffffff; }
.lp.night .lp-img { background: #000000; }
.lp.mobile { display: flex; flex-direction: column; }
.lp-phone { flex: 1; display: flex; align-items: center; gap: 10px; padding: 18px 12px; background: var(--bg); min-height: 120px; }
.lp-64 { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; background: #000; flex: none; }
.lp-name { font-weight: 600; font-size: var(--t-sm); min-width: 0; overflow-wrap: break-word; }

/* ---- History ---- */
ol.history { list-style: none; padding: 0; margin: 0; }
ol.history li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
ol.history li:last-child { border-bottom: 0; }
dialog.sheet { width: min(560px, calc(100vw - 16px)); }
@media (max-width: 560px) { dialog.sheet { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: var(--radius) var(--radius) 0 0; } }

/* ---- Partner tab, credit page, assisted Snapchat page */
.mt8 { margin-top: 8px; }
.lead { font-size: var(--t-lg); font-weight: 600; margin: 6px 0 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-sm); margin: 8px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; min-height: 0; flex: none; margin-top: 1px; accent-color: var(--yellow); }
.badge.partner { color: #000; background: var(--yellow); }
.badge.partner::before { background: #000; }
.promo-hero { border-color: rgba(255, 204, 0, 0.35); }
.vgrid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
@media (min-width: 760px) { .vgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.vtile { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; min-width: 0; }
.vtile.hl { border-color: rgba(255, 204, 0, 0.45); }
.vtile.bad .vnum { color: var(--bad); }
.vnum { font-size: var(--t-xl); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.vlabel { font-size: var(--t-sm); color: var(--text); overflow-wrap: anywhere; }
.conn-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.conn-row > div:first-child { min-width: 0; flex: 1 1 260px; }
.post-row { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.post-thumb { width: 88px; height: 110px; object-fit: cover; border-radius: 10px; background: var(--surface-3); flex: none; }
.post-thumb.tall { height: 156px; }
.post-thumb.empty { display: grid; place-items: center; color: var(--muted); font-size: var(--t-xs); }
.post-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.post-title { overflow-wrap: anywhere; }
.pv-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.pv-strip img { height: 260px; width: auto; border-radius: 10px; flex: none; }
.pv-strip img.tall { height: 340px; }
.pv-video { width: 100%; max-height: 60vh; border-radius: 12px; background: #000; }
pre.caption { white-space: pre-wrap; font: inherit; font-size: var(--t-sm); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; margin: 4px 0; overflow-wrap: anywhere; }
.prod-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.prod-pick { appearance: none; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); padding: 8px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 4px; font: inherit; }
.prod-pick:hover, .prod-pick:focus-visible { border-color: var(--yellow); }
.prod-pick img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; width: 100%; }
table.list.compact { min-width: 0; }
.narrow-box { max-width: 520px; }
.ledger { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.ledger td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.ledger td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.code-box { font-size: var(--t-xl); font-weight: 800; letter-spacing: 0.08em; background: var(--surface-2); border: 1.5px dashed var(--yellow); border-radius: var(--radius-sm); padding: 12px; text-align: center; overflow-wrap: anywhere; }
.order-by { color: var(--yellow); font-weight: 600; margin-top: 2px; }

/* music picker + party colors (2026-11-30). No pink in the UI: the Trans chip shows light blue and white only. */
.mu-list { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.mu-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 8px 12px; border-radius: var(--radius-sm); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.mu-row:has(input:checked) { box-shadow: inset 0 0 0 2px var(--yellow); }
.mu-pick { display: flex; align-items: center; gap: 10px; min-height: 44px; flex: 1; min-width: 0; cursor: pointer; }
.mu-pick input { width: 20px; height: 20px; min-height: 0; flex: none; accent-color: var(--yellow); margin: 0; }
.mu-text { min-width: 0; line-height: 1.3; }
.mu-text b { font-weight: 700; display: block; }
.mu-style { display: block; margin-top: 1px; }
.mu-play { flex: none; min-width: 112px; }
.btn.ghost.mu-play.on, .btn.ghost.mu-play.on:hover, .btn.ghost.mu-play.on:active { background: var(--yellow); color: #000; box-shadow: none; }
.pc-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.pc-chip { appearance: none; font: inherit; font-size: var(--t-sm); font-weight: 600; color: var(--text); background: var(--surface-2); border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 999px; min-height: 40px; padding: 6px 12px 6px 6px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.pc-chip.on { box-shadow: inset 0 0 0 2px var(--yellow); }
.pc-sw { width: 26px; height: 26px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.pc-n { background: var(--yellow); color: #000; border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 800; }

.pc-sw.sw-red { background: #E5383B; }
.pc-sw.sw-orange { background: #FF8A1F; }
.pc-sw.sw-yellow { background: #FFCC00; }
.pc-sw.sw-green { background: #22C55E; }
.pc-sw.sw-blue { background: #2563EB; }
.pc-sw.sw-purple { background: #8B3DF0; }
.pc-sw.sw-light_blue { background: #5BCEFA; }
.pc-sw.sw-black { background: #0A0A0A; }
.pc-sw.sw-white { background: #FFFFFF; }
.pc-sw.sw-gold { background: #D4A72C; }
.pc-sw.sw-silver { background: #C0C4CC; }
.pc-sw.sw-camo { background: linear-gradient(135deg,#4B5320 0 35%,#6B5B3A 35% 60%,#2F3A1C 60%); }
.pc-sw.sw-neon { background: #8A2BFF; }
.pc-sw.sw-rainbow { background: linear-gradient(90deg,#E5383B,#FF8A1F,#FFCC00,#22C55E,#2563EB,#8B3DF0); }
.pc-sw.sw-trans { background: linear-gradient(180deg,#5BCEFA 0 40%,#FFFFFF 40% 60%,#5BCEFA 60%); }

/* make a card (club-made cards, 2026-11-30) */
.cm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cm-two .field { min-width: 0; }
.cm-two input { width: 100%; min-width: 0; }
.cm-thumb { display: block; width: 120px; height: 120px; object-fit: cover; border-radius: var(--radius-sm); margin: 8px 0; box-shadow: inset 0 0 0 1px var(--line); }
.cm-more summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.btn.busy { opacity: .85; cursor: progress; white-space: normal; }
#cm-errors ul { margin: 6px 0 0 18px; padding: 0; }
#cm-errors li { margin: 2px 0; }
.cm-list h3 { margin-bottom: 8px; }
.cm-card { padding: 12px; border-radius: var(--radius-sm); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 12px; }
.cm-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.cm-thumbs img { width: 100%; aspect-ratio: 1080 / 1350; object-fit: cover; border-radius: 8px; display: block; }
.cm-dl { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-style { margin: 10px 0 4px; font-weight: 600; }
.cm-dl .btn { flex: 1 1 0; min-width: 0; justify-content: center; text-align: center; white-space: normal; }
input[aria-invalid="true"] { box-shadow: 0 0 0 2px var(--red, #ff4d4d); }
.brand-logo { height: 34px; width: auto; display: block; flex: none; }
.brand-text span { border-left: 1px solid var(--line, #333); padding-left: 10px; }
@media (max-width: 420px) { .brand-logo { height: 28px; } }
