@font-face { font-family: "Montserrat"; font-weight: 400; src: url(/booth/fonts/montserrat-400.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Montserrat"; font-weight: 600; src: url(/booth/fonts/montserrat-600.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Montserrat"; font-weight: 800; src: url(/booth/fonts/montserrat-800.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Playfair Display"; font-weight: 400; src: url(/booth/fonts/playfair-400.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Playfair Display"; font-weight: 700; src: url(/booth/fonts/playfair-700.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Great Vibes"; font-weight: 400; src: url(/booth/fonts/great-vibes.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; src: url(/booth/fonts/cormorant-600.woff2) format("woff2"); }
@font-face { font-family: "Pacifico"; font-weight: 400; src: url(/booth/fonts/pacifico.woff2) format("woff2"); }
@font-face { font-family: "Bebas Neue"; font-weight: 400; src: url(/booth/fonts/bebas-neue.woff2) format("woff2"); }
@font-face { font-family: "Mountains of Christmas"; font-weight: 700; src: url(/booth/fonts/mountains-of-christmas-700.woff2) format("woff2"); }
@font-face { font-family: "Creepster"; font-weight: 400; src: url(/booth/fonts/creepster.woff2) format("woff2"); }

:root {
  --bg: #0c0c0f; --panel: #15151a; --panel-2: #1c1c23; --line: rgba(255,255,255,.1); --line-2: rgba(255,255,255,.18);
  --text: #f3efe6; --muted: #9d978d; --faint: #6f6a62; --accent: #ffc857; --accent-ink: #1a1408;
  --good: #3ddc97; --warn: #ffb547; --bad: #ff6b6b;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif; --display: "Playfair Display", Georgia, serif;
  --r: 14px; color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--sans); }
a { color: var(--accent); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
.display { font-family: var(--display); }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* ---------- top bar */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 0 28px; height: 60px;
  background: rgba(12,12,15,.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .02em; font-size: 15px; color: var(--text); }
.brand img { width: 30px; height: 30px; border-radius: 8px; display: block; flex: none; }
.brand span { color: var(--muted); font-weight: 600; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--muted); padding: 8px 14px; border-radius: 10px; font-weight: 600; }
.nav a.on, .nav a:hover { color: var(--text); background: var(--panel-2); }
.top .spacer { flex: 1; }

main { max-width: 1240px; margin: 0 auto; padding: 28px 28px 48px; min-height: calc(100vh - 60px - 120px); }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--display); font-size: 34px; line-height: 1.1; }
.page-head .spacer { flex: 1; }
.crumb { color: var(--muted); font-weight: 600; font-size: 13px; display: inline-flex; gap: 6px; margin-bottom: 6px; }

/* ---------- buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 11px; border: 0;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; cursor: pointer; white-space: nowrap; transition: transform .06s, filter .15s; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: default; filter: none; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); font-weight: 600; }
.btn.ghost:hover { background: var(--panel-2); }
.btn.danger { background: transparent; color: var(--bad); border: 1px solid rgba(255,107,107,.4); font-weight: 600; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn.lg { height: 48px; padding: 0 24px; font-size: 15px; }
.icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; }
.icon-btn:hover { color: var(--text); background: var(--panel-2); }

label.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 12px; color: var(--muted); letter-spacing: .02em; }
input[type=text], input[type=search], input[type=email], input[type=tel], input[type=url], input[type=date], input[type=time], input[type=password], input[type=number], select, textarea {
  width: 100%; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text);
  font-size: 14px; font-weight: 400; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,200,87,.15); }
input[type=date]::-webkit-calendar-picker-indicator, input[type=time]::-webkit-calendar-picker-indicator { filter: invert(.8); }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: 1fr 1fr 1fr; }
.g4 { grid-template-columns: 2fr 1fr 1fr 1fr; }
.help { color: var(--faint); font-size: 12px; font-weight: 400; letter-spacing: 0; }

.switch { position: relative; width: 42px; height: 24px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line-2); cursor: pointer; flex: none; padding: 0; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #cfcac0; transition: transform .2s; }
.switch.on { background: var(--accent); border-color: var(--accent); }
.switch.on::after { transform: translateX(18px); background: var(--accent-ink); }
.toggle-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.toggle-row .txt { flex: 1; }
.toggle-row b { display: block; font-weight: 600; }
.toggle-row small { color: var(--muted); }
.seg { display: inline-flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 8px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--accent); color: var(--accent-ink); }

/* ---------- cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.card + .card { margin-top: 18px; }
.card h2 { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.card h2 .n { width: 22px; height: 22px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text); display: grid; place-items: center; font-size: 11px; letter-spacing: 0; }
.card .sub { color: var(--muted); margin: -8px 0 16px; }

/* ---------- events list */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.ev { display: flex; gap: 16px; padding: 18px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; transition: border-color .15s, transform .15s; color: var(--text); }
.ev:hover { border-color: var(--line-2); transform: translateY(-1px); }
.datebox { width: 58px; flex: none; text-align: center; border-radius: 12px; background: var(--panel-2); padding: 8px 0; height: max-content; }
.datebox .m { font-size: 11px; font-weight: 800; color: var(--accent); letter-spacing: .12em; text-transform: uppercase; }
.datebox .d { font-family: var(--display); font-size: 26px; line-height: 1.1; }
.ev .body { flex: 1; min-width: 0; }
.ev .title { font-family: var(--display); font-size: 21px; line-height: 1.2; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ev .meta { color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.ev .foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.chip.live { color: #0d0d0d; background: var(--good); border-color: transparent; }
.chip.today { color: var(--accent-ink); background: var(--accent); border-color: transparent; }
.chip.up { color: var(--text); }
.chip.closed { color: var(--bad); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); display: inline-block; }
.dot.on { background: var(--good); box-shadow: 0 0 0 3px rgba(61,220,151,.18); }
.thumbs { display: flex; gap: 4px; }
.thumbs img { width: 34px; height: 34px; object-fit: cover; border-radius: 6px; }
.empty { text-align: center; padding: 70px 20px; border: 1px dashed var(--line-2); border-radius: 22px; color: var(--muted); }
.empty h2 { font-family: var(--display); font-size: 28px; color: var(--text); margin-bottom: 8px; }

/* ---------- event editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.side { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 16px; }
.side .card { padding: 18px; }
.side .card + .card { margin-top: 0; }
.qrbox { background: #fff; border-radius: 12px; padding: 10px; width: 150px; height: 150px; margin: 0 auto 14px; }
.qrbox svg { width: 100%; height: 100%; display: block; }
.linkline { display: flex; gap: 6px; }
.linkline input { font-size: 12px; height: 36px; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 8px; }
.status-line { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.kv span { color: var(--muted); }
.kv:first-of-type { border-top: 0; }

.formats { display: grid; gap: 14px; }
.fmt { border: 1px solid var(--line); border-radius: 16px; background: var(--panel-2); overflow: hidden; }
.fmt.off { opacity: .62; }
.fmt-head { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.fmt-head .shape { width: 30px; height: 30px; display: grid; place-items: center; }
.fmt-head .shape i { display: block; border: 2px solid var(--accent); border-radius: 3px; }
.fmt-head b { font-size: 15px; }
.fmt-head .txt { flex: 1; }
.fmt-head small { color: var(--muted); display: block; }
.fmt-body { padding: 0 16px 16px; display: grid; grid-template-columns: 200px 1fr; gap: 18px; }
.fmt-prev { background: #0a0a0c; border-radius: 12px; display: grid; place-items: center; min-height: 200px; padding: 10px; position: relative; }
.fmt-prev canvas, .fmt-prev img { max-width: 100%; max-height: 260px; display: block; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.fmt-opts { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.drop { border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 22px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: rgba(255,200,87,.05); color: var(--text); }
.drop b { color: var(--text); display: block; margin-bottom: 4px; }
.note { padding: 10px 12px; border-radius: 10px; background: rgba(255,200,87,.08); border: 1px solid rgba(255,200,87,.2); font-size: 13px; color: #f1dfb6; }
.note.good { background: rgba(61,220,151,.08); border-color: rgba(61,220,151,.25); color: #bdf0d7; }
.note.bad { background: rgba(255,107,107,.08); border-color: rgba(255,107,107,.3); color: #ffc9c9; }
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.theme { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 6px; cursor: pointer; text-align: left; }
.theme.on { border: 2px solid var(--accent); padding: 5px; }
.theme canvas { width: 100%; display: block; border-radius: 6px; }
.theme b { display: block; font-size: 12px; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); cursor: pointer; font-size: 10px; font-weight: 800; }
.swatches button.on { outline: 2px solid var(--accent); outline-offset: 2px; }
.bgpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.bgpick button { position: relative; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: #222; aspect-ratio: 3/2; }
.bgpick button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bgpick button.on { border-color: var(--accent); }
.bgpick button:not(.on) img { opacity: .4; }
.bgpick button.on::after { content: "✓"; position: absolute; top: 5px; right: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; }

.savebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; padding: 14px; pointer-events: none; }
.savebar > div { pointer-events: auto; display: flex; align-items: center; gap: 14px; background: #24232b; border: 1px solid var(--line-2); border-radius: 16px; padding: 10px 10px 10px 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,.6); animation: up .2s ease; }
@keyframes up { from { transform: translateY(20px); opacity: 0; } }

/* ---------- photos */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.ph { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; }
.ph .img { aspect-ratio: 1; background: #08080a; display: flex; align-items: center; justify-content: center; overflow: hidden; min-height: 0; padding: 6px; }
.ph .img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ph .cap { padding: 8px 10px; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(5,5,7,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; }
.lightbox img { max-width: 92vw; max-height: 78vh; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox .bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }

/* ---------- modal / toast / auth */
.modal-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(5,5,7,.75); display: grid; place-items: center; padding: 20px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(520px, 100%); background: var(--panel); border: 1px solid var(--line-2); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
/* Long dialogs scroll inside themselves; the title and buttons stay in view. */
.modal { max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); min-height: 0; }
.modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 14px; margin: 0 -8px; padding: 2px 8px; }
.modal .actions { flex: none; }
.modal h3 { font-family: var(--display); font-size: 24px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 70; background: #2a2931; border: 1px solid var(--line-2); padding: 10px 18px; border-radius: 12px; font-weight: 600; box-shadow: 0 12px 30px rgba(0,0,0,.5); max-width: 90vw; }
.toast.bad { border-color: rgba(255,107,107,.5); color: #ffd3d3; }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(90% 60% at 50% 0%, #26222c, var(--bg) 65%); }
.auth .box { width: min(400px, 100%); display: flex; flex-direction: column; gap: 14px; }
.auth h1 { font-family: var(--display); font-size: 40px; text-align: center; }
.auth p { text-align: center; color: var(--muted); margin: 0 0 6px; }
.err { color: var(--bad); font-size: 13px; min-height: 18px; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--accent); animation: spin 1s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

@media (max-width: 980px) {
  .editor { grid-template-columns: 1fr; }
  .side { position: static; }
  .fmt-body { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .top { padding: 0 10px; gap: 6px; }
  .brand span, .brand b { display: none; }
  .brand { font-size: 0; gap: 0; }
  .nav { overflow-x: auto; scrollbar-width: none; flex: 1; }
  .nav a { padding: 8px 9px; font-size: 13px; white-space: nowrap; }
  .top .spacer { display: none; }
  .top .btn.sm { padding: 0 9px; font-size: 12px; }
  main { padding: 18px 14px 120px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .events { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 28px; }
}

/* ---------- frame picker (event) */
.frame-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.ftile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; text-align: left; color: var(--text); }
.ftile:hover { border-color: var(--line-2); }
.ftile.on { border: 2px solid var(--accent); padding: 5px; box-shadow: 0 0 0 3px rgba(255,200,87,.12); }
.ftile.on::after { content: "Active"; position: absolute; top: 10px; left: 10px; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 99px; }
.ftile b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fthumb { height: 120px; border-radius: 8px; background: #08080a; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fthumb canvas { max-width: 100%; max-height: 100%; display: block; }
.fthumb.plus { font-size: 34px; color: var(--muted); border: 1.5px dashed var(--line-2); background: transparent; }
.ftile.add:hover .fthumb.plus, .ftile.add.over .fthumb.plus { color: var(--accent); border-color: var(--accent); }
.badge { align-self: flex-start; font-size: 10px; font-weight: 800; letter-spacing: .04em; padding: 2px 7px; border-radius: 99px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.badge.event { color: #bdf0d7; border-color: rgba(61,220,151,.35); }
.fdel { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; display: grid; place-items: center; font-size: 15px; line-height: 1; opacity: 0; transition: opacity .15s; }
.ftile:hover .fdel { opacity: 1; }
@media (hover: none) { .fdel { opacity: 1; } }

/* ---------- upload dialog */
.upload-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 720px) { .upload-grid { grid-template-columns: 1fr; } }

/* ---------- frame library page */
.section-title { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 26px 0 12px; }
.flib { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; }
.flib-item { display: flex; gap: 12px; padding: 12px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.flib-thumb { width: 96px; height: 140px; flex: none; border-radius: 10px; background: #08080a; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.flib-thumb canvas { max-width: 100%; max-height: 100%; display: block; }
.flib-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.flib-meta b { font-size: 15px; }
.help.used { color: var(--good); }

.stack-row { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 4px 0; }
.stack-row b { font-weight: 600; }
.flib-meta .row-actions .btn { height: 30px; }
@media (max-width: 640px) { .flib { grid-template-columns: 1fr; } }

/* ---------- footer */
.site-foot { max-width: 1240px; margin: 0 auto; padding: 22px 28px 90px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--faint); font-size: 12px; border-top: 1px solid var(--line); }
.site-foot .ver { font-variant-numeric: tabular-nums; }
.auth { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 28px; }
.auth-foot { color: var(--faint); font-size: 12px; text-align: center; }

/* Facebook & gallery (2.2.0) */
.fbbox { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); }
.fbbox h3 { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; font-weight: 700; }
.fbbox .steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--text); font-size: 14px; }
.fbbox .steps li::marker { color: var(--faint); }
.btn.fbbtn { background: #1877f2; color: #fff; border-color: #1877f2; }
.btn.fbbtn:hover { background: #2a84f5; }
.postprev { white-space: pre-wrap; font: 13px/1.5 inherit; font-family: inherit; color: var(--muted); background: #0c0c0f; border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; margin: 10px 0 0; }
.ph .img { position: relative; }
.ph.is-hidden .img img { opacity: .35; }
.hid-badge { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.75); color: var(--warn); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }

/* Booth devices (2.2.2) */
.booths .device { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 10px; background: rgba(255,255,255,.015); }
.booths .device.on { border-color: rgba(61,220,151,.35); }
.booths .device-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.booths .device-head .grow { flex: 1; min-width: 0; }
.booths .device-head b { display: block; font-size: 14px; }
.booths .device-head small { display: block; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.booths details { margin: 4px 0 8px; }
.booths summary { cursor: pointer; color: var(--muted); font-size: 12px; padding: 4px 0; }
.booths .row-actions { gap: 6px; flex-wrap: wrap; }
.booths .disc { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.booths .disc .label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.booths .disc-row { display: flex; align-items: center; gap: 6px; padding: 4px 0; }
.booths .disc-row > span { flex: 1; min-width: 0; font-size: 13px; }
.btn.danger.sm { height: 32px; }
.booths .kv b { text-align: right; overflow-wrap: anywhere; max-width: 65%; }
.auth-logo { width: 72px; height: 72px; display: block; margin: 0 auto 6px; border-radius: 18px; box-shadow: 0 10px 30px rgba(255,200,87,.18); }

/* Two-step sign-in (2.2.4) */
.otp { font-size: 26px !important; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.linkbtn { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; padding: 6px; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--text); }
.mfa-setup .steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 14px; }
.mfa-qr { width: 180px; height: 180px; margin: 10px 0; padding: 10px; background: #fff; border-radius: 12px; }
.mfa-qr svg { width: 100%; height: 100%; }
.key { display: inline-block; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; background: #0c0c0f; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; margin-top: 4px; user-select: all; word-break: break-all; }
.codes { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 16px; line-height: 1.8; columns: 2; background: #0c0c0f; border: 1px dashed var(--line); border-radius: 10px; padding: 12px 16px; margin: 10px 0; user-select: all; }

/* Operators (2.3.0) */
.ro .card:not(.keep) { pointer-events: none; opacity: .55; }
.ro .keep .field, .ro .keep .toggle-row { pointer-events: none; opacity: .55; }
.card.locked .grid:first-of-type { pointer-events: none; opacity: .55; }
.card.notice { border-color: rgba(255,200,87,.4); background: rgba(255,200,87,.06); }
.who { color: var(--muted); font-size: 13px; margin-right: 10px; }
.ops { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.op-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.op-head .grow { flex: 1; min-width: 0; }
.op-head b { display: block; font-size: 15px; }
.op-head small { color: var(--muted); font-size: 12px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; }
.chip.good { color: var(--good); } .chip.warn { color: var(--warn); }
.evpick { display: grid; gap: 6px; max-height: 220px; overflow: auto; margin: 8px 0 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.evpick label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.checkline { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.steps.enroll { text-align: left; margin: 4px 0 8px; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
.steps.enroll .mfa-qr { margin: 4px auto; }

/* Operator plans (2.3.1) */
.p-digital { --pc: #6fb7ff; } .p-print { --pc: #3ddc97; } .p-pro { --pc: #ffc857; } .p-fleet { --pc: #c792ff; }
.plan-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  color: var(--pc); background: color-mix(in srgb, var(--pc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--pc) 40%, transparent); }
.planbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.plan-pill { display: inline-flex; gap: 6px; align-items: center; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.plan-pill b { color: var(--pc, var(--text)); }
.plan-pill.on { border-color: var(--pc, var(--accent)); color: var(--text); background: color-mix(in srgb, var(--pc, #ffc857) 10%, var(--panel)); }
.planpick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.plan-opt { text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; cursor: pointer; }
.plan-opt b { display: block; font-size: 14px; color: var(--pc); }
.plan-opt small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; line-height: 1.35; }
.plan-opt.on { border-color: var(--pc); box-shadow: 0 0 0 1px var(--pc) inset; background: color-mix(in srgb, var(--pc) 8%, var(--panel)); }
@media (max-width: 560px) { .planpick { grid-template-columns: 1fr; } }

/* Photo storage & retention (2.4.0) */
.storage-box { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.storage-box.warn { border-color: rgba(255,181,71,.5); background: rgba(255,181,71,.06); }
.storage-box .btn { margin-top: 6px; }
.chip.bad { color: var(--bad); }
.sub-h { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 20px 0 8px; font-weight: 700; }

/* live slideshow */
.card.slideshow.live { border-color: color-mix(in srgb, var(--accent, #ffc857) 45%, var(--line)); }
.card.slideshow .seg { width: 100%; margin: 6px 0 2px; }
.card.slideshow .seg button { flex: 1; }
.card.slideshow .label { margin-top: 12px; }
.card.slideshow .review-btn { display: block; text-align: center; margin: 8px 0 4px; }
.card.slideshow details { margin-top: 10px; }
.card.slideshow details summary { cursor: pointer; }
.photo-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: -4px 0 16px; }
.hid-badge.wait { color: #1b1406; background: var(--warn); }
.hid-badge.live { color: var(--good, #5ad19a); }
.ph.ss-pending { border-color: var(--warn); }
.ph.ss-off .img img { opacity: .5; }
.ph-actions { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 6px; }
.ph-actions button { width: 38px; height: 38px; border-radius: 50%; border: 0; font-size: 18px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.5); }
.ph-actions .ok { background: var(--good, #5ad19a); color: #06210f; }
.ph-actions .no { background: rgba(20,20,24,.85); color: #fff; }
.ph-actions button:hover { transform: scale(1.08); }

.photographers .device-head small { display: block; }
.src-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; width: 100%; }
.src-row select { width: auto; padding: 8px 10px; }
.card.slideshow .review-btn { padding: 12px; line-height: 1.3; }
.photographers .device-head { display: flex; align-items: center; gap: 10px; }
.ph .cap .hd { display: inline-block; margin-left: 5px; padding: 0 4px; border: 1px solid var(--line); border-radius: 4px; font-size: 9px; font-weight: 800; color: var(--accent); vertical-align: 1px; }
.update-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 14px;
  background: var(--panel); border: 1px solid var(--accent); border-radius: 14px; padding: 10px 12px 10px 18px; box-shadow: 0 12px 40px rgba(0,0,0,.55); max-width: calc(100% - 32px); }

.card.slideshow .layouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 6px 0 2px; }
.card.slideshow .lay { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 7px; border-radius: 10px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.card.slideshow .lay .ico svg { width: 44px; height: 30px; display: block; }
.card.slideshow .lay:hover { color: var(--text); border-color: var(--faint); }
.card.slideshow .lay.on { color: var(--accent); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.card.slideshow details.more { margin-top: 10px; }
.card.slideshow details.more summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.card.slideshow details.more .seg { width: auto; }
.card.slideshow details.more .seg button { flex: none; }

/* music */
.songs { display: flex; flex-direction: column; gap: 0; padding: 6px 18px; }
.song { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.song:first-child { border-top: 0; }
.song-main { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; }
.song-main b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song audio, .pick-song audio { height: 34px; max-width: 260px; }
.card.slideshow .music { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 4px; }
.playlist { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 6px; }
.pl-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: color-mix(in srgb, var(--text) 4%, transparent); font-size: 13px; }
.pl-row .n { color: var(--faint); width: 16px; text-align: right; font-variant-numeric: tabular-nums; }
.pl-row .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-song { display: flex; align-items: center; gap: 10px; padding: 6px 0; flex-wrap: wrap; }
.pick-song span { flex: 1 1 160px; }
.vol-row { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; font-size: 13px; }
.vol-row .vol { flex: 1; accent-color: var(--accent); }

.card.slideshow .screens { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 4px; }
.scr { display: flex; align-items: center; gap: 2px; padding: 7px 8px; border-radius: 8px; background: color-mix(in srgb, var(--text) 4%, transparent); margin-top: 4px; font-size: 13px; }
.scr .grow { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr .icon-btn { font-size: 12px; padding: 5px 6px; text-decoration: none; }
.screen-form .layouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.screen-form .lay { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 7px; border-radius: 10px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.screen-form .lay .ico svg { width: 44px; height: 30px; display: block; }
.screen-form .lay.on { color: var(--accent); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }

.song-picker { gap: 2px; }
.song-picker .label { margin-top: 10px; }
.pick-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; position: sticky; top: -2px; background: var(--panel); padding: 2px 0 8px; z-index: 1; }
.pick-top input[type=search] { flex: 1 1 180px; }
.pick-song { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; flex-wrap: nowrap; }
.pick-song:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.pick-song input { flex: none; width: 18px; height: 18px; accent-color: var(--accent); }
.pick-song .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-song .play { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; font-size: 11px; }
.pick-song .play:hover { border-color: var(--accent); color: var(--accent); }

.song-picker { display: flex; flex-direction: column; min-width: 0; }
.song-picker > * { min-width: 0; }
.pick-song { width: 100%; }
.pick-top { flex-wrap: wrap; }
.pick-top input[type=search] { flex: 1 1 100%; width: 100%; }
.pick-top .muted { margin-right: auto; }

/* sign-ups & payments */
.signups .su { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.signups .su .grow { flex: 1 1 260px; min-width: 0; }
.price-table { display: flex; flex-direction: column; gap: 6px; overflow-x: auto; }
.pt-head, .pt-row { display: grid; grid-template-columns: 138px 78px 104px 62px 56px 56px 70px 54px 62px; gap: 7px; align-items: center; min-width: 730px; }
.pt-head span { line-height: 1.2; }
.pt-row .plan-badge { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-head span { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.pt-row input[type=number], .pt-row select { padding: 7px 8px; font-size: 13px; }
.pt-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); justify-self: center; }
.passes-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.pass-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pass-stats > div { background: color-mix(in srgb, var(--text) 4%, transparent); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.pass-stats b { font-size: 20px; }
.pass-stats small { color: var(--muted); font-size: 11px; }
.pass-card.ended { border-color: color-mix(in srgb, var(--bad) 50%, var(--line)); }
.card.signups { margin-bottom: 26px; }

.price-plans { display: flex; flex-direction: column; gap: 10px; }
.pplan { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.pplan-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pplan-head select { width: auto; padding: 7px 10px; font-size: 13px; }
.pchk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.pchk input { width: 16px; height: 16px; accent-color: var(--accent); }
.pplan-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.pf { display: flex; flex-direction: column; gap: 4px; }
.pf span { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.pf input { padding: 7px 8px; font-size: 13px; }
.pplan .only-month { display: none; }
.pplan.is-month .only-month { display: flex; }
.pplan.is-month .only-pass { display: none; }
.terms-edit { min-height: 320px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; line-height: 1.5; }
.card.warnbox { border-left: 4px solid var(--warn); padding: 14px 18px; }
.btn.danger-text { color: var(--bad, #e5484d); }

/* ---------- light theme (Settings ▸ Display, or the theme button in the top bar) */
html[data-theme=light] {
  --bg: #f6f5f1; --panel: #ffffff; --panel-2: #efede7; --line: rgba(24,20,30,.11); --line-2: rgba(24,20,30,.2);
  --text: #1e1b22; --muted: #67625a; --faint: #8b867c; --accent: #ffc246; --accent-ink: #1a1408; --accent-text: #8a5d00;
  --good: #0f8a52; --warn: #a86400; --bad: #cf3434; color-scheme: light;
}
:where(html[data-theme=light]) a { color: var(--accent-text); }
html[data-theme=light] .datebox .m, html[data-theme=light] .ph .cap .hd,
html[data-theme=light] .card.slideshow .lay.on, html[data-theme=light] .screen-form .lay.on, html[data-theme=light] .pick-song .play:hover,
html[data-theme=light] .ftile.add:hover .fthumb.plus { color: var(--accent-text); }
html[data-theme=light] .top { background: rgba(246,245,241,.88); }
html[data-theme=light] .fmt-prev, html[data-theme=light] .ph .img, html[data-theme=light] .fthumb, html[data-theme=light] .flib-thumb { background: #e9e7e1; }
html[data-theme=light] .fmt-prev canvas, html[data-theme=light] .fmt-prev img { box-shadow: 0 6px 18px rgba(0,0,0,.18); }
html[data-theme=light] .toast { background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.15); }
html[data-theme=light] .toast.bad { color: #a32020; }
html[data-theme=light] .spin { border-color: rgba(0,0,0,.12); border-top-color: var(--accent-text); }
html[data-theme=light] .postprev, html[data-theme=light] .key, html[data-theme=light] .codes { background: #f3f2ee; }
html[data-theme=light] .note { color: #6a4b00; background: rgba(255,194,70,.16); border-color: rgba(200,140,0,.3); }
html[data-theme=light] .note.good { color: #0b6b40; background: rgba(15,138,82,.08); border-color: rgba(15,138,82,.25); }
html[data-theme=light] .note.bad { color: #9e2626; background: rgba(207,52,52,.07); border-color: rgba(207,52,52,.3); }
html[data-theme=light] .badge.event { color: #0b6b40; }
html[data-theme=light] .fbbox, html[data-theme=light] .booths .device { background: rgba(0,0,0,.02); }
html[data-theme=light] .switch::after { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
html[data-theme=light] .modal { box-shadow: 0 20px 50px rgba(0,0,0,.18); }
html[data-theme=light] input:focus, html[data-theme=light] select:focus, html[data-theme=light] textarea:focus { box-shadow: 0 0 0 3px rgba(255,194,70,.35); }
.theme-btn { min-width: 84px; }
html[data-theme=light] .btn.danger { border-color: rgba(207,52,52,.4); }

.ftile { position: relative; }
.rot-num { position: absolute; top: 96px; left: 12px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 13px; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.3); }

.contest-status { font-weight: 600; margin: 4px 0 6px; } .contest-status .dot { display: inline-block; vertical-align: middle; margin-right: 6px; }
.lb-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.lb-row img { width: 40px; height: 52px; object-fit: cover; border-radius: 6px; flex: none; background: var(--panel-2); }
.lb-row .grow { flex: 1; min-width: 0; } .lb-row .grow small { display: block; color: var(--muted); font-size: 12px; }
.lb-rank { width: 30px; text-align: center; font-weight: 800; font-size: 15px; }
.lb-row.win .lb-votes { color: var(--accent-text, var(--accent)); }
.award-row { display: flex; gap: 8px; flex-wrap: wrap; } .award-row img { height: 84px; border-radius: 8px; display: block; border: 1px solid var(--line); }

/* ---------- event page: tabs, live dashboard, checklist, auto-save (v2.14) */
.ev-tabs { display: flex; gap: 4px; margin: -6px 0 18px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; width: max-content; max-width: 100%; position: sticky; top: 68px; z-index: 15; }
.ev-tabs a { display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.ev-tabs a .ico { font-size: 13px; opacity: .8; }
.ev-tabs a.on { background: var(--accent); color: var(--accent-ink); }
.ev-tabs a:not(.on):hover { background: var(--panel-2); color: var(--text); }
.pane[hidden] { display: none !important; }
.pane-live { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.pane-live > .glance, .pane-live > .contest-live { grid-column: 1 / -1; }
.live-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.live-col > .card { margin: 0; }
.pane-live > .card, .pane-share .card { margin: 0; }
.pane-setup { max-width: 920px; display: flex; flex-direction: column; gap: 16px; }
.pane-setup > .card { margin: 0; }
.pane-share { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.share-dyn { display: flex; flex-direction: column; gap: 16px; }
.pane .card { padding: 20px; }
.save-state { font-size: 13px; color: var(--muted); align-self: center; }
.save-state.ok::before { content: "✓ "; color: var(--good); }
.save-state.bad { color: var(--bad); }
.card.flash { animation: flash 1.4s ease; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: none; } }
/* live: at a glance */
.glance .gl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.gl-tile { text-align: left; background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; color: var(--text); display: flex; flex-direction: column; gap: 2px; min-height: 96px; }
.gl-tile:hover { border-color: var(--line-2); }
.gl-tile small { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.gl-tile b { font-size: 24px; line-height: 1.15; font-weight: 800; }
.gl-tile span { color: var(--muted); font-size: 12.5px; }
.gl-tile.good b { color: var(--good); } .gl-tile.warn b { color: var(--warn); }
.gl-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
/* setup: checklist */
.checklist .cl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.checklist .cl-head h2 { margin: 0; }
.cl-bar { height: 6px; background: var(--panel-2); border-radius: 99px; overflow: hidden; margin: 10px 0 6px; }
.cl-bar i { display: block; height: 100%; background: var(--good); border-radius: 99px; transition: width .3s; }
.cl-list { list-style: none; margin: 0; padding: 0; }
.cl-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); min-height: 48px; }
.cl-list li:first-child { border-top: 0; }
.cl-list .grow { flex: 1; }
.cl-mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.cl-list li.ok .cl-mark { background: var(--good); border-color: var(--good); color: #06210f; }
.cl-list li.ok .grow { color: var(--muted); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }
.nav-theme { display: none; }
@media (max-width: 980px) {
  .pane-live, .pane-share { grid-template-columns: minmax(0, 1fr); }
}
/* ---------- phones */
@media (max-width: 760px) {
  main { padding-bottom: 96px; }
  .top { gap: 8px; padding: 0 12px; }
  .top .brand-name { max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .top > .theme-btn { display: none; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; gap: 2px; padding: 8px 10px 12px; background: var(--panel); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(0,0,0,.35); overflow: visible; }
  .nav.open { display: flex; }
  .nav a { padding: 13px 14px; font-size: 16px; }
  .nav .nav-theme { display: block; text-align: left; background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; font-size: 16px; padding: 13px 14px; cursor: pointer; }
  /* event tabs become a bottom bar */
  .ev-tabs { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: 100%; max-width: 100vw; box-sizing: border-box; margin: 0; border-radius: 0; border: 0; border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); z-index: 40; justify-content: space-around; background: var(--panel); box-shadow: 0 -8px 24px rgba(0,0,0,.25); }
  .ev-tabs a { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 2px; padding: 7px 2px; font-size: 12px; justify-content: center; border-radius: 12px; }
  .ev-tabs a .ico { font-size: 17px; }
  .ev-tabs a .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
  .savebar { bottom: 70px; }
  .pane .card { padding: 16px; }
  .page-head { margin-bottom: 14px; }
  .save-state { order: 5; width: 100%; }
  /* everything fits the screen; long choice rows wrap */
  .seg { flex-wrap: wrap; max-width: 100%; }
  .toggle-row { flex-wrap: wrap; }
  .toggle-row .seg { margin-left: 0; }
  .linkline { flex-wrap: wrap; } .linkline input { min-width: 0; flex: 1 1 100%; }
  .grid.g2, .grid.g3, .grid.g4 { grid-template-columns: 1fr 1fr; }
  .btn.sm { min-height: 40px; }
  .seg button { padding: 9px 14px; min-height: 40px; }
  /* tall picker grids become swipeable rows */
  .themes, .bgpick, .frame-pick { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .themes > *, .frame-pick > * { flex: 0 0 120px; scroll-snap-align: start; }
  .bgpick > * { flex: 0 0 120px; scroll-snap-align: start; }
}
@media (max-width: 420px) { .grid.g2, .grid.g3, .grid.g4 { grid-template-columns: 1fr; } }
.postprev, .fbbox, .help { overflow-wrap: anywhere; }
main { min-width: 0; }
@media (max-width: 760px) {
  .top > .btn.ghost.sm:not(.theme-btn) { display: none; } /* sign out moves into the menu */
  .nav .nav-signout { display: block; }
}
.nav-signout { display: none; text-align: left; background: none; border: 0; color: var(--bad); font: inherit; font-weight: 600; font-size: 16px; padding: 13px 14px; cursor: pointer; }
@media (max-width: 760px) { .menu-btn { margin-left: auto; } }

/* ---------- events list (v2.15) */
.ev-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: -6px 0 16px; }
.ev-filters input[type=search] { flex: 1 1 200px; max-width: 320px; min-height: 40px; }
.ev-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ev-card .ev { border: 0; border-radius: 0; background: none; }
.ev-card.attn { border-color: color-mix(in srgb, var(--warn) 55%, transparent); }
.ev-quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 14px 14px; }
.attn-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.attn-list li { color: var(--warn); font-size: 12.5px; font-weight: 600; }
.attn-list li::before { content: "! "; font-weight: 800; }
.small-empty { padding: 28px 10px; }
/* ---------- new-event wizard */
.wizard { max-width: 760px; }
.wz-steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: -6px 0 16px; flex-wrap: wrap; }
.wz-steps li { display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 14px; }
.wz-steps .num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); font-size: 12px; }
.wz-steps li.on { color: var(--text); border-color: var(--accent); } .wz-steps li.on .num { background: var(--accent); color: var(--accent-ink); }
.wz-steps li.done .num { background: var(--good); color: #06210f; }
.wz-body h2 { margin: 0 0 14px; }
.wz-body .field { margin-bottom: 12px; }
.wz-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wz-choice { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--panel-2); color: var(--text); cursor: pointer; min-height: 64px; }
.wz-choice .box { flex: none; width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--line-2); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.wz-choice.on { border-color: var(--accent); } .wz-choice.on .box { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.wz-choice b { display: block; } .wz-choice small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.wz-err { color: var(--bad); font-weight: 600; min-height: 1.2em; margin: 10px 0 0; }
.wz-actions { display: flex; gap: 10px; margin-top: 10px; } .wz-actions .spacer { flex: 1; }
.wz-actions .btn { min-width: 130px; }
@media (max-width: 760px) {
  .wz-grid3 { grid-template-columns: 1fr; }
  .wz-actions { position: sticky; bottom: 0; background: var(--bg); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); margin: 0; z-index: 5; }
  .wz-actions .btn { flex: 1; min-width: 0; }
  .ev-filters .seg { width: 100%; }
  .ev-filters input[type=search] { max-width: none; }
}

/* ---------- release history */
.cl-releases { max-width: 860px; display: flex; flex-direction: column; gap: 12px; }
.cl-date { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-family: var(--sans); font-weight: 700; margin: 14px 0 0; }
.cl-rel { margin: 0; padding: 18px 20px; }
.cl-rel.current { border-color: var(--accent); }
.cl-rel-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.cl-v { font-size: 18px; font-weight: 800; }
.cl-rel ul { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; line-height: 1.55; }
.cl-rel code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; background: var(--panel-2); border-radius: 5px; padding: 1px 5px; }
.site-foot .whatsnew { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.site-foot .whatsnew.unseen::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 5px; border-radius: 50%; background: var(--accent); vertical-align: 2px; }

/* ---------- occasion categories (frames, backgrounds, music) */
.cat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--panel); color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.cat-chip:hover { color: var(--text); border-color: var(--muted); }
.cat-chip .n { font-size: 11px; font-weight: 700; color: var(--faint); }
.cat-chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cat-chip.on .n { color: var(--accent-ink); opacity: .7; }
.cat-chip.pref:not(.on) { border-color: color-mix(in srgb, var(--accent) 60%, transparent); color: var(--text); }
.cat-chip.pref::before { content: "★"; font-size: 11px; }
.cat-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.cat-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.cat-tag.none { font-weight: 500; font-style: italic; color: var(--faint); }
.lib-filters { flex-direction: column; align-items: stretch; gap: 10px; }
.lib-filter-top { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.lib-filter-top:empty { display: none; }
.pick-filter { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 10px; }
.pick-filter input[type=search] { max-width: 280px; min-height: 36px; }
.cat-edit { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow: auto; }
.cat-row { display: flex; gap: 6px; align-items: center; }
.cat-row input { flex: 1; min-width: 0; }
.cat-row .icon-btn:disabled { opacity: .3; cursor: default; }
.sel-bar { position: sticky; top: 8px; z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin: 0 0 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--accent); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.sel-bar .spacer { flex: 1; }
.sel-box { position: absolute; top: 8px; left: 8px; z-index: 2; width: 24px; height: 24px; border-radius: 7px; border: 2px solid #fff; background: rgba(0,0,0,.45); color: var(--accent-ink); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.picked .sel-box { background: var(--accent); border-color: var(--accent); }
.selecting { cursor: pointer; position: relative; user-select: none; }
.flib-item.selecting.picked, .ph.selecting.picked, .song.selecting.picked { outline: 2px solid var(--accent); outline-offset: -1px; }
.song.selecting { display: flex; gap: 12px; align-items: center; padding-left: 44px; }
.song.selecting .sel-box { top: 50%; transform: translateY(-50%); border-color: var(--line-2); }
.ph .img { position: relative; }
.shape-tag { position: absolute; left: 8px; bottom: 8px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; }
.bg-cap { display: flex; flex-direction: column; gap: 2px; }
.bg-cap-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.bg-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bg-acts { display: flex; gap: 2px; flex: none; }
.ftile.more .fthumb.plus { font-size: 20px; }
.bgpick.preview button { cursor: default; }
.bgpick.preview button:not(.on) img, .bgpick.preview button img { opacity: 1; }
.bgpick.preview button::after { display: none; }
#sec-bg .cat-chips { margin-bottom: 10px; }
.song-picker .cat-chips { margin: 2px 0 6px; }
@media (max-width: 760px) {
  .lib-filter-top .seg { max-width: 100%; overflow-x: auto; }
  .lib-filter-top input[type=search] { flex: 1 1 100%; max-width: none; }
  .cat-chips:not(.pick) { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .cat-chip { flex: none; }
  .page-head .btn.ghost { padding-left: 12px; padding-right: 12px; }
}
.ph .cap.bg-cap { white-space: normal; overflow: visible; }
.photos.bglib { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.photos.bglib .ph .img { padding: 0; }
.photos.bglib .ph { cursor: default; }
.photos.bglib .ph.selecting { cursor: pointer; }
.lib-filters > *, .pick-filter > *, #sec-bg > * { min-width: 0; max-width: 100%; }
.lib-filters, .pick-filter { min-width: 0; max-width: 100%; }
.lib-filter-top input[type=search] { min-width: 0; }
/* glance tiles: where each shortcut goes; "Back to Live" after a jump */
.gl-tile { position: relative; }
.gl-go { position: absolute; top: 14px; right: 14px; font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--muted); opacity: .75; transition: opacity .15s, color .15s; }
.gl-tile:hover .gl-go, .gl-tile:focus-visible .gl-go { opacity: 1; color: var(--accent); }
html[data-theme=light] .gl-tile:hover .gl-go { color: var(--accent-text); }
.back-live { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; padding: 12px 22px; border-radius: 99px; border: 0; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 800; box-shadow: 0 10px 30px rgba(0,0,0,.35); cursor: pointer; animation: fadeIn .2s ease; }
@media (max-width: 760px) { .back-live { bottom: 84px; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.pin-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.pin-row .pin-val { font-size: 18px; letter-spacing: .18em; font-variant-numeric: tabular-nums; min-width: 4.5em; }
.pin-row .help { flex-basis: 100%; margin: 0; }
.pin-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.pin-row .pin-val { font-size: 18px; letter-spacing: .18em; font-variant-numeric: tabular-nums; min-width: 4.5em; }
.pin-row .help { flex-basis: 100%; margin: 0; }
.ev-filters .owner-sel { width: auto; min-height: 40px; padding: 0 34px 0 12px; max-width: 240px; }
@media (max-width: 760px) { .ev-filters .owner-sel { max-width: none; flex: 1 1 100%; } }

/* ---------- tech support */
.sup-badge { display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 99px; background: #6d5dfc; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; }
.sup-banner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border-color: #6d5dfc; background: color-mix(in srgb, #6d5dfc 10%, var(--panel)); }
.sup-banner.open { border-color: var(--good); background: color-mix(in srgb, var(--good) 10%, var(--panel)); }
.sup-banner .grow { flex: 1 1 260px; }
.support-card { margin-top: 22px; }
.support-card .sec-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.support-card .sec-row h2 { margin: 0; }
.support-card .sec-row .spacer { flex: 1; }
.sup-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
.sup-row .grow { flex: 1 1 220px; min-width: 0; }
.log-card { padding: 6px 18px; }
.log-row { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.log-row:last-child { border-bottom: 0; }
.log-row.quiet { opacity: .62; }
.log-when { flex: none; width: 128px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.log-reason { margin-top: 4px; font-size: 13px; color: var(--text); background: var(--panel-2); border-radius: 8px; padding: 6px 10px; display: inline-block; }
@media (max-width: 760px) { .log-row { flex-direction: column; gap: 4px; } .log-when { width: auto; } }
.ev-filters > select { width: auto; min-width: 200px; min-height: 40px; flex: 0 0 auto; }

/* ---------- support tickets */
.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); text-decoration: none; margin-right: 6px; }
.bell-ico { font-size: 17px; filter: grayscale(1); opacity: .75; }
.bell.ring .bell-ico { filter: none; opacity: 1; animation: bellshake 1.6s ease-in-out infinite; }
@keyframes bellshake { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 85% { transform: rotate(-12deg); } 95% { transform: rotate(6deg); } }
.bell-n { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.bell-n:empty { display: none; }
.avail { margin-right: 8px; height: 36px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.avail.on { color: var(--good); border-color: color-mix(in srgb, var(--good) 50%, transparent); }
.nav-badge { margin-left: 6px; display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 800; vertical-align: 1px; }
.tk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
@media (max-width: 960px) { .tk-layout { grid-template-columns: 1fr; } }
.tk-aside { display: flex; flex-direction: column; gap: 14px; }
.tk-aside .card { margin: 0; }
.tk-list { display: flex; flex-direction: column; gap: 10px; }
.tk-row { display: flex; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.tk-row:hover { border-color: var(--line-2); }
.tk-row.unread { border-color: var(--accent); }
.tk-main { flex: 1; min-width: 0; }
.tk-top { display: flex; align-items: center; gap: 8px; }
.tk-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-num { color: var(--muted); font-weight: 800; font-variant-numeric: tabular-nums; }
.tk-num.big { font-size: .7em; vertical-align: middle; }
.tk-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.tk-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 12.5px; margin-top: 3px; align-items: center; }
.tk-last { color: var(--muted); font-size: 13px; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-typing { color: var(--accent-text, var(--accent)); font-size: 12.5px; font-weight: 600; min-height: 1em; margin: 6px 2px; }
.tk-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.tk-who { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.tk-note-tag { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 99px; background: #6d5dfc; color: #fff; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 640px) { .tk-row { flex-direction: column; } .tk-side { flex-direction: row; align-items: center; flex-wrap: wrap; } }
.tk-thread { display: flex; flex-direction: column; gap: 10px; max-height: 62vh; overflow-y: auto; padding: 4px 2px 8px; }
.tk-msg { max-width: 82%; align-self: flex-start; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--panel); border: 1px solid var(--line); }
.tk-msg.me { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: color-mix(in srgb, var(--accent) 16%, var(--panel)); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.tk-msg.note { background: color-mix(in srgb, #6d5dfc 12%, var(--panel)); border-color: color-mix(in srgb, #6d5dfc 45%, transparent); border-style: dashed; }
.tk-msg-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 4px; font-size: 13px; }
.tk-msg-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.tk-img { margin-top: 8px; max-width: 100%; max-height: 320px; border-radius: 10px; border: 1px solid var(--line); display: block; }
.tk-sys { align-self: center; font-size: 12px; color: var(--muted); padding: 2px 10px; }
.tk-composer { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.tk-composer.note { border-color: #6d5dfc; }
.tk-composer textarea { width: 100%; resize: vertical; }
.tk-comp-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tk-comp-row .spacer { flex: 1; }
.shot-pick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tk-team .tm-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.tk-team .tm-row .grow { flex: 1; display: flex; flex-direction: column; }
.tk-team .tm-load { display: flex; flex-direction: column; align-items: flex-end; }
.tk-grabbed { border-color: var(--warn); display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 760px) { .avail { display: none; } }
.top .brand-name, .top .who { white-space: nowrap; }
@media (max-width: 1400px) and (min-width: 761px) { .top .brand-name { display: none; } }
/* tickets phase 2 */
.shot-prev { max-height: 56px; border-radius: 8px; border: 1px solid var(--line); }
.shot-hint { font-size: 12px; }
.tk-guest { padding: 1px 7px; border-radius: 99px; background: #0ea5e9; color: #fff; font-size: 10.5px; font-weight: 800; text-transform: uppercase; flex: none; }
.tk-sla { padding: 1px 7px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 800; flex: none; white-space: nowrap; }
.tk-rate { color: var(--accent-text, var(--accent)); font-size: 12px; font-weight: 800; flex: none; }
.stars-ro { font-size: 22px; letter-spacing: 3px; color: #f5b301; }
.stars-pick { display: flex; gap: 6px; margin: 4px 0 10px; }
.stars-pick button { font-size: 30px; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--line-2); padding: 0; }
.stars-pick button.on { color: #f5b301; }
.canned-list { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow-y: auto; }
.canned-item { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; cursor: pointer; }
.canned-item:hover { border-color: var(--accent); }
.canned-item span { font-size: 12.5px; }
.canned-edit { display: flex; flex-direction: column; gap: 12px; max-height: 55vh; overflow-y: auto; }
.canned-row { display: flex; gap: 8px; align-items: flex-start; }
.canned-row .grow { flex: 1; gap: 6px; }
.rp-tile.good b { color: var(--good); } .rp-tile.warn b { color: var(--warn); } .rp-tile.bad b { color: var(--bad); }
.rp-chart { display: flex; align-items: flex-end; gap: 3px; height: 160px; padding-top: 6px; border-bottom: 1px solid var(--line); }
.rp-day { flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: flex-end; gap: 1px; }
.rp-day i { flex: 1; min-height: 1px; border-radius: 3px 3px 0 0; }
.rp-day i.o, .rp-legend i.o { background: var(--accent); }
.rp-day i.r, .rp-legend i.r { background: var(--good); }
.rp-legend { display: flex; gap: 16px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.rp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rp-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.rp-line { display: block; padding: 8px 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.rp-line:first-of-type { border-top: 0; }
.rp-table-wrap { overflow-x: auto; }
.rp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rp-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 6px 10px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rp-table td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* ---------- marketing: promo codes */
.promo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 14px; }
@media (max-width: 760px) { .promo-list { grid-template-columns: 1fr; } }
.promo-card { margin: 0; }
.promo-head { display: flex; gap: 14px; align-items: flex-start; }
.promo-head .grow { flex: 1; min-width: 0; }
.promo-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 19px; letter-spacing: .06em; margin-right: 10px; }
.promo-offer { font-size: 16px; font-weight: 700; margin-top: 6px; color: var(--accent-text, var(--accent)); }
.promo-uses { display: flex; flex-direction: column; align-items: flex-end; }
.promo-uses b { font-size: 22px; font-weight: 800; }
.promo-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.promo-meta span { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); }
.promo-reds { margin-top: 12px; }
.promo-plans { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; font-weight: 500; }
.promo-plans .check { display: flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); }
.promo-form .field { text-transform: none; }
/* touch-screen pictures (dual-screen booths) */
.screen-media { margin: 0 0 8px; }
.sm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.sm-item { position: relative; margin: 0; background: var(--panel-2, #00000008); border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.sm-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sm-item figcaption { font-size: 12px; padding: 4px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-item .icon-btn { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.6); color: #fff; }
/* photo stamp */
.stamp-panel { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 6px; }
.stamp-sample { margin-top: 10px; display: inline-flex; padding: 14px 18px; border-radius: 10px; background: linear-gradient(135deg, #3b4a5a, #1d2630); }
.stamp-sample span { font: 700 18px "Courier New", ui-monospace, monospace; color: #ff9b2f; text-shadow: 0 0 8px rgba(255, 110, 0, .85); white-space: pre; }
.stamp-sample.clean span { font: 600 16px Montserrat, Arial, sans-serif; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .65); white-space: normal; }
.mfa-nag { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff4d6; color: #5b4300; border: 1px solid #f0d58a; border-radius: 12px; padding: 10px 14px; margin: 0 0 16px; font-size: 14px; }
.mfa-nag span { flex: 1 1 260px; }
.mfa-nag .icon-btn { color: inherit; }
:root[data-theme="dark"] .mfa-nag { background: #3a2f12; color: #f6e2a8; border-color: #6b5520; }
.mfa-overview .mfa-lbl { align-self: center; font-weight: 600; margin-right: 4px; }
.mfa-st.on { color: var(--good); }
.mfa-st.off, .mfa-st.warn { color: #b7791f; }
.plan-pill.mfa-off b { color: #b7791f; }
.plan-pill.mfa-on b { color: var(--good); }
.mfa-overview .sec-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .mfa-overview .sec-row h2 { margin: 0; } .mfa-overview .sec-row .spacer { flex: 1; }
.chip.role-admin { background: #ffe7a8; color: #6b4b00; }
.chip.role-support { background: #dbe8ff; color: #1f4b99; }
.chip.role-operator { background: #e3f4e8; color: #1d6b3a; }
.bill-nag { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff4d6; color: #5b4300; border: 1px solid #f0d58a; border-radius: 12px; padding: 10px 14px; margin: 0 0 16px; font-size: 14px; }
.bill-nag span { flex: 1 1 260px; }
.bill-nag.bad { background: #fde8e8; color: #8a1c1c; border-color: #f3b4b4; }
:root[data-theme="dark"] .bill-nag { background: #3a2f12; color: #f6e2a8; border-color: #6b5520; }
:root[data-theme="dark"] .bill-nag.bad { background: #3d1717; color: #ffc9c9; border-color: #7a2c2c; }
.plan-pill.bill-pill b { color: var(--bad); }
/* roles & audit log */
.role-pick { display: grid; gap: 8px; margin-top: 6px; }
.role-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.role-opt span { display: flex; flex-direction: column; gap: 2px; }
.role-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0; }
.chip.role-marketing { background: #f3e1ff; color: #6b2a91; }
.sup-badge.r-marketing { background: #f3e1ff; color: #6b2a91; }
.chip.role-mktspec, .sup-badge.r-mktspec { background: #fbeaf6; color: #8a2a6b; }
:root[data-theme="dark"] .chip.role-mktspec, :root[data-theme="dark"] .sup-badge.r-mktspec { background: #3d1a33; color: #f4b3df; }
.audit-filters { flex-wrap: wrap; gap: 8px; }
.audit-filters input[type=search] { min-width: 200px; }
.audit-row .chip { font-size: 11px; }
.audit-det { white-space: pre-wrap; word-break: break-word; font-size: 12px; background: var(--panel-2, #00000008); padding: 10px; border-radius: 8px; margin: 8px 0 0; max-height: 360px; overflow: auto; }
.note.bad { background: #fde8e8; color: #8a1c1c; border-color: #f3b4b4; }
.chip.cat-roles, .chip.cat-access { background: #dbe8ff; color: #1f4b99; }
.chip.cat-moderation, .chip.cat-contest { background: #ffe1ec; color: #9b1b4b; }
.chip.cat-leads, .chip.cat-export { background: #e3f4e8; color: #1d6b3a; }
.audit-filters input[type=date], .audit-filters select { width: auto; flex: 0 0 auto; max-width: 220px; }
/* leads */
.lead-stats { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.lead-stat { background: var(--card, #fff); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; display: flex; flex-direction: column; min-width: 120px; }
.lead-stat b { font-size: 22px; } .lead-stat span { font-size: 13px; color: var(--muted, #777); }
.lead-filters { flex-wrap: wrap; gap: 8px; }
.lead-filters select, .lead-filters input[type=date] { width: auto; flex: 0 0 auto; max-width: 220px; }
.lead-bulk { display: flex; gap: 10px; align-items: center; margin: 10px 0; flex-wrap: wrap; }
.lead-bulk input { max-width: 260px; }
.lead-table td { white-space: nowrap; }

/* ---- contest: name, gate, prize delivery, moderation feed */
.contest-title { font-family: Georgia, serif; font-size: 1.25rem; color: var(--accent); margin: 2px 0 8px; }
.contest-gate { display: grid; gap: 8px; margin: 10px 0; }
.contest-gate.on { border-color: var(--accent); }
.gate-counts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gate-counts .btn { margin-left: auto; }
.prize-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 12px; }
.prize-list { display: grid; }
.prize-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.prize-row img { width: 40px; height: 52px; object-fit: cover; border-radius: 6px; flex: none; background: var(--panel-2); }
.prize-row small { display: block; color: var(--muted); }
.prize-row.done small { color: var(--good); } .prize-row.bad small { color: var(--bad); }
.mod-bar { align-items: center; }
.mod-live { margin-left: auto; color: var(--good); }
.mod-tabs { flex-wrap: wrap; margin: 4px 0 10px; }
.mod-title { margin: 0 0 4px; grid-column: 1 / -1; }
.mod-all { grid-column: 1 / -1; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.mod-tile { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.mod-tile.new { animation: modNew 2.4s ease; }
@keyframes modNew { 0% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 0 transparent; } }
.mod-tile.st-waiting { border-color: var(--warn); }
.mod-tile.st-dq, .mod-tile.st-hidden { opacity: .72; }
.mod-img { display: block; aspect-ratio: 3 / 4; background: var(--panel-2); }
.mod-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mod-cb { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.55); border-radius: 6px; padding: 4px 6px; line-height: 0; }
.mod-cb input { width: 18px; height: 18px; margin: 0; }
.mod-info { padding: 8px 10px 0; display: grid; gap: 3px; }
.mod-info small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.mod-line { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.chip.st-waiting { color: var(--warn); } .chip.st-approved, .chip.st-live { color: var(--good); } .chip.st-dq { color: var(--bad); }
.mod-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px 10px; margin-top: auto; }
.mod-actions .btn { flex: 1 1 auto; }
@media (max-width: 520px) { .mod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .mod-live { margin-left: 0; } }
.mod-grid > p, .mod-grid > .empty { grid-column: 1 / -1; }

/* ---- grouped navigation: sub-tabs under the top menu */
.subnav { display: flex; gap: 4px; flex-wrap: wrap; margin: -6px 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.subnav a { padding: 7px 14px; border-radius: 99px; color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: none; }
.subnav a:hover { color: var(--text); background: var(--panel-2); }
.subnav a.on { color: var(--accent-ink); background: var(--accent); }

/* ---- Users page */
.users-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 14px; }
.users-tabs { flex-wrap: wrap; }
.users-tabs a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: inherit; }
.users-tabs .n { font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--panel-2); color: var(--muted); }
.users-tabs a.on .n { background: rgba(0,0,0,.12); color: inherit; }
.users-tabs .n.warn { color: var(--warn); }
.users-q { margin-left: auto; min-width: 220px; max-width: 320px; }
.user-card .role-chips { margin-top: 4px; }
.user-card.off { opacity: .8; }
.offboard-note { margin: 6px 0 4px; font-size: 13px; }
.onboard-steps ol { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 3px; }
.onboard-steps { margin-bottom: 14px; }
@media (max-width: 700px) { .users-q { margin-left: 0; min-width: 0; width: 100%; max-width: none; } }
.users-tabs a { padding: 7px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--muted); }
.users-tabs a.on { background: var(--accent); color: var(--accent-ink); }
.users-list { align-items: start; }
.users-list > .card { margin: 0; }
.cl-top { display: flex; gap: 10px; margin: 8px 0 4px; }
.cl-item { display: grid; gap: 4px; justify-items: center; font-size: 13px; font-weight: 700; }
.cl-item img { width: 64px; height: 84px; object-fit: cover; border-radius: 8px; background: var(--panel-2); }
.ph-actions .gal { background: rgba(20,20,24,.85); color: #fff; font-size: 17px; }
.ph-actions .gal.off { background: var(--warn, #e0a33a); }
.filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-lbl { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); min-width: 74px; }
.filter-row .seg { flex-wrap: wrap; }
.gal-tag { color: var(--muted); } .gal-tag.pub { color: var(--good); }
.photo-tools .filter-row { flex-basis: 100%; }
.ph .img { position: relative; }
.gal-badge { position: absolute; top: 8px; right: 8px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: rgba(20,20,24,.78); color: #fff; }
.gal-badge.pub { background: rgba(30, 140, 80, .9); }
.gal-badge.hid { background: rgba(160, 100, 20, .92); }
.ph-actions .gal { width: auto; padding: 0 12px; border-radius: 99px; font-size: 13px; }
.ent-badge { position: absolute; top: 34px; right: 8px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: rgba(255, 79, 139, .92); color: #fff; }
.entrant-line { font-size: 14px; color: #ffd6e5; }
.chip.role-ops, .sup-badge.r-ops { background: #ffe2cc; color: #8a3d00; }
.chip.role-admin, .sup-badge.r-admin { background: #1d2433; color: #ffd36b; }
.role-opt.role-admin { border-color: #d9a400; }
.role-opt.dim { opacity: .45; cursor: default; }
.chip.type-inhouse { background: #e3f4e8; color: #1d6b3a; }
.chip.type-partner { background: #e6ecff; color: #2a3f91; }
:root[data-theme="dark"] .chip.role-ops, :root[data-theme="dark"] .sup-badge.r-ops { background: #4a2a12; color: #ffc08a; }
:root[data-theme="dark"] .chip.role-admin, :root[data-theme="dark"] .sup-badge.r-admin { background: #3a2f0a; color: #ffd36b; }
.op-assign { display: grid; gap: 6px; }
.op-pick { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.op-pick input { width: 18px; height: 18px; }
.avatar.sm { width: 28px; height: 28px; font-size: 13px; }
.op-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; } .op-row input { width: 18px; height: 18px; }
/* Sponsor logos: show the whole logo on a checkerboard so transparency is visible */
.logo-item img { object-fit: contain; padding: 8px; background: repeating-conic-gradient(#e9e9ee 0% 25%, #fff 0% 50%) 50% / 16px 16px; }
:root[data-theme="dark"] .logo-item img { background: repeating-conic-gradient(#2a2a33 0% 25%, #1c1c22 0% 50%) 50% / 16px 16px; }
.sponsor-panel { margin-top: 14px; }
/* Phone bookings */
.quote-box .kv b.due { font-size: 1.25rem; color: var(--accent, #c98a00); }
.paycard { border: 2px solid var(--accent, #f5b82e); margin-top: 16px; }
.paycard .row-actions { flex-wrap: wrap; }
/* Text messages */
.sms-log { display: grid; gap: 6px; margin-top: 8px; }
.sms-row { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.sms-row.bad { border-color: #e0a0a0; }
.sms-help summary { cursor: pointer; font-weight: 700; margin-top: 12px; }
/* Users page: compact rows that expand on click */
.users-list.rows { display: grid; gap: 8px; }
.user-row { background: var(--card, #fff); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.user-row.off { opacity: .8; }
.user-head { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: auto minmax(160px, 1.3fr) minmax(0, 1.2fr) minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; }
.user-head:hover { background: color-mix(in srgb, var(--accent, #f5b82e) 7%, transparent); }
.user-head:focus-visible { outline: 2px solid var(--accent, #f5b82e); outline-offset: -2px; }
.user-head .who-col { min-width: 0; }
.user-head .who-col b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-head .who-col small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-head .role-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
.user-head .facts { color: var(--muted); font-size: 12.5px; }
.user-head .chev { font-size: 22px; color: var(--muted); transition: transform .15s; line-height: 1; }
.user-row.open .chev { transform: rotate(90deg); }
.warn-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--warn, #c98a00); color: #fff; font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.user-body { display: none; padding: 4px 16px 14px 60px; border-top: 1px solid var(--line); }
.user-row.open .user-body { display: block; }
@media (max-width: 900px) {
  .user-head { grid-template-columns: auto 1fr auto auto auto; row-gap: 6px; }
  .user-head .role-chips { grid-column: 2 / -1; grid-row: 2; }
  .user-head .facts { grid-column: 2 / -1; grid-row: 3; }
  .user-body { padding-left: 16px; }
}
/* Batch frame upload: carry choices to the rest */
.batch-box { display: grid; gap: 8px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; }
.batch-box .check { display: flex; gap: 8px; align-items: flex-start; }
.batch-box input { margin-top: 3px; }
/* Sharing ▸ Who is this event for? */
.aud-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.aud-opt { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 2px solid var(--line); border-radius: 12px; }
.aud-opt b { font-size: 16px; }
.aud-opt small { color: var(--muted); line-height: 1.4; }
.aud-opt.on { border-color: var(--accent, #f5b82e); background: color-mix(in srgb, var(--accent, #f5b82e) 10%, transparent); }
.aud-opt[disabled] { opacity: .5; cursor: not-allowed; }
.aud-adv summary { cursor: pointer; font-weight: 700; margin-top: 14px; }
@media (max-width: 700px) { .aud-pick { grid-template-columns: 1fr; } }

/* booking text conversation */
.sms-thread{display:flex;flex-direction:column;gap:8px;max-height:340px;overflow:auto;padding:4px 2px 8px}
.sms-b{max-width:85%;padding:8px 11px;border-radius:14px;font-size:14px;line-height:1.35;white-space:pre-wrap;word-break:break-word}
.sms-b.in{align-self:flex-start;background:rgba(127,127,127,.14);border-bottom-left-radius:4px}
.sms-b.out{align-self:flex-end;background:var(--accent);color:var(--accent-ink);border-bottom-right-radius:4px}
.sms-b.out.bad{background:#b3261e;color:#fff}
.sms-b .meta{font-size:11px;opacity:.75;margin-top:3px}
.sms-reply{display:flex;gap:8px;align-items:flex-end;margin-top:6px}
.sms-reply textarea{flex:1;resize:vertical}

/* settings tabs */
.set-tabs { margin-top: 0; }
.set-tabs .lbl-s { display: none; }
@media (max-width: 760px) { .set-tabs .lbl { display: none; } .set-tabs .lbl-s { display: inline; } }
.card > .status-line + .sub { margin-top: 8px; }

/* console search (header) */
.gsearch { position: relative; flex: 0 1 300px; min-width: 160px; }
.gsearch .gsearch-in { width: 100%; height: 38px; padding: 0 34px 0 36px; border-radius: 11px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-size: 14px; }
.gsearch .gsearch-in:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.gsearch-in::-webkit-search-cancel-button { display: none; }
.gsearch-ico { position: absolute; z-index: 1; left: 13px; top: 50%; transform: translateY(-52%); color: var(--muted); font-size: 17px; pointer-events: none; }
.gsearch-kbd { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font: 600 11px/1 inherit; color: var(--faint); border: 1px solid var(--line); border-radius: 5px; padding: 3px 6px; pointer-events: none; }
.gsearch-in:focus ~ .gsearch-kbd { display: none; }
.gsearch-list { position: absolute; top: calc(100% + 6px); left: 0; width: max(100%, 380px); max-height: min(70vh, 520px); overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.18); padding: 6px; z-index: 40; }
.gsearch-group { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 8px 10px 4px; }
.gsearch-item { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: 9px; background: none; color: var(--text); font: inherit; cursor: pointer; }
.gsearch-item.on { background: var(--panel-2); }
.gi-title { font-weight: 700; font-size: 14px; }
.gi-sub { font-size: 12px; color: var(--muted); }
.gsearch-empty { padding: 12px; color: var(--muted); font-size: 13px; }
@keyframes gflash { 0%, 30% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 3px transparent; } }
.flash { animation: gflash 1.8s ease-out; }
@media (max-width: 900px) { .gsearch-kbd { display: none; } }
@media (max-width: 760px) { .gsearch { flex: 1 1 auto; min-width: 0; } .gsearch-list { width: calc(100vw - 24px); left: auto; right: -50px; } }

/* contest winners archive */
.win-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.win-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; display: block; }
.win-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.win-row .grow b { overflow: hidden; text-overflow: ellipsis; }
.win-row small { color: var(--muted); }
.danger-t { color: var(--bad, #c0392b); }
@media (max-width: 640px) { .win-row { flex-wrap: wrap; } .win-row .row-actions { width: 100%; } }
.win-card .sec-row { display: flex; align-items: center; gap: 12px; }
.win-card .sec-row h2 { margin: 0; }

/* kiosk booth code on the Live tab */
.kiosk-row { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line, #e5e1d8); border-radius: 12px; }
.kiosk-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kiosk-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 26px; font-weight: 800; letter-spacing: 5px; line-height: 1.2; }

/* hi-res copies on the Live tab's booth card */
.hires-panel { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }

/* set up a booth from a phone */
.pair-card { max-width: 640px; }
.pair-in { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 28px; letter-spacing: .3em; text-transform: uppercase; text-align: center; width: 100%; }
.pair-found { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); margin-bottom: 12px; }
.pair-found .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--good, #2bb673); flex: none; }
.pair-search { width: 100%; margin-bottom: 10px; }
.pair-list { display: flex; flex-direction: column; gap: 8px; }
.pair-ev { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: inherit; cursor: pointer; font: inherit; }
.pair-ev:hover { border-color: var(--accent); }
.pair-ev .grow { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pair-ev small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pair-go { color: var(--accent-ink, var(--accent)); font-weight: 700; white-space: nowrap; font-size: 14px; }
.pair-done { text-align: center; padding: 10px 0; }
.pair-tick { width: 56px; height: 56px; border-radius: 50%; background: var(--good, #2bb673); color: #fff; font-size: 30px; display: grid; place-items: center; margin: 0 auto 8px; }
.pair-tick.bad { background: var(--warn, #d9822b); }
.pair-wait { display: grid; place-items: center; height: 56px; margin-bottom: 8px; }
.modal .pair-in { margin-top: 6px; }

/* scan a booth's QR code from the Live tab */
.scan-frame { position: relative; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; }
.scan-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-aim { position: absolute; inset: 18%; border: 3px solid rgba(255,255,255,.85); border-radius: 14px; box-shadow: 0 0 0 9999px rgba(0,0,0,.28); pointer-events: none; }
.scan-status { margin: 10px 0 0; }

.live-col > #card-photos { order: 1; } .live-col > .pass-card { order: 2; }
/* compact booth list */
.booths details.device { padding: 0; }
.booths details.device > summary { list-style: none; cursor: pointer; padding: 10px 12px; margin: 0; color: inherit; font-size: inherit; }
.booths details.device > summary::-webkit-details-marker { display: none; }
.booths details.device[open] > summary { border-bottom: 1px solid var(--line); }
.booths details.device > :not(summary) { padding: 0 12px; }
.booths details.device > .row-actions { padding-bottom: 12px; }
.booths .dev-state { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.booths .dev-flags { font-size: 11px; color: var(--warn); white-space: nowrap; }
.booths .dev-flags.muted { color: var(--muted); }
.booths .old-booths { margin-top: 12px; }
.booths .old-booths > summary { font-size: 13px; color: var(--muted); padding: 6px 0; }
.pair-alt { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin: -2px 4px 6px; font-size: 13px; }

/* Sign in with Tooly */
.tooly-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; }
.tooly-mark { width: 24px; height: 24px; border-radius: 7px; background: #111; color: #fff; font-weight: 900; display: grid; place-items: center; font-size: 14px; }
.or-line { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 6px 0; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.pw-form { display: flex; flex-direction: column; gap: 10px; width: 100%; }

/* design orders */
.d-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; flex-wrap: wrap; }
.d-row:last-child { border-bottom: 0; }
.d-row:hover { background: var(--panel-2, rgba(0,0,0,.03)); }
.d-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.d-thumbs figure { margin: 0; width: 120px; }
.d-thumbs img { width: 120px; height: 90px; object-fit: contain; border-radius: 8px; background: repeating-conic-gradient(#ccc 0 25%, #fff 0 50%) 0 0 / 12px 12px; display: block; }
