[hidden] { display: none !important; }
/* FotoSpinBooth dashboard — app shell + views. Builds on the site's tokens and components
   (/assets/css/site.css): colours, fonts, .btn, .field, .consent, .form-status. */

/* Own copy of the dark sidebar colours, so the dashboard never depends on a cached site.css for them. */
body.dash { --night: #131118; --night-2: #1d1a24; --night-line: #2e2a37; --night-text: #f3efe9; --night-muted: #a9a2b2; }
body.dash { display: block; padding: 0; gap: 0; grid-template-columns: none; background: #f4f1ec; color: var(--ink-2); font-size: 15px; line-height: 1.55; overflow-x: hidden; }
body.dash .i { width: 18px; height: 18px; }
.dash h1, .dash h2, .dash h3 { font-family: var(--sans); color: var(--ink); letter-spacing: -.015em; line-height: 1.2; margin: 0; }
.dash a:not(.btn) { color: inherit; }
.dash .muted { color: var(--muted); }
.dash .hint { color: var(--muted); font-size: 13px; }
.dash .btn { min-height: 40px; padding: 0 16px; font-size: 14px; gap: 8px; }
.dash .btn .i { width: 16px; height: 16px; }
.dash .btn:hover .i { transform: none; }
.dash .btn-lg { min-height: 48px; padding: 0 22px; font-size: 15px; }
.dash .btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.dash .btn-ghost { border-color: #ddd6cb; background: #fff; }
.dash .btn-ghost:hover { border-color: var(--ink); }
.dash .btn.danger, .dash .danger { color: #c62d4a; }
.dash .btn.danger:hover { border-color: #c62d4a; }
.dash .btn:disabled { opacity: .5; pointer-events: none; }
.dash .btn-danger { background: #c62d4a; border-color: #c62d4a; color: #fff; }
.dash .btn-danger:hover { background: #a8213b; border-color: #a8213b; }
.dash .field input, .dash .field select, .dash .field textarea { min-height: 44px; font-size: 15px; background: #fff; border-color: #dcd5ca; }
.dash .field label { font-size: 13px; }
.dash .form { display: grid; gap: 14px; }
.dash .form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dash .form .row-3 { grid-template-columns: 1fr 1fr 1fr; }
.dash .consent { font-size: 14px; color: var(--ink-2); }
.dash .form-status { font-size: 14px; min-height: 0; }
.dash .form-status:empty { display: none; }
.dash input[type=color] { padding: 4px; height: 44px; }
.skip:focus { left: 8px; z-index: 300; }

/* ---------- App shell ---------- */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.app.no-shell { grid-template-columns: 1fr; }
.app.no-shell .sidebar, .app.no-shell .topbar { display: none; }
.app.no-shell .content { padding: 0; max-width: none; }

.sidebar { position: sticky; top: 0; height: 100vh; background: var(--night); color: var(--night-muted); display: flex; flex-direction: column; padding: 18px 14px; overflow-y: auto; z-index: 40; }
.sb-brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; text-decoration: none; color: var(--night-text); }
.sb-brand .brand-mark { width: 32px; height: 32px; }
.sb-brand .brand-word { font: 700 17px/1 var(--sans); letter-spacing: -.02em; color: var(--night-text); }
.sb-brand .brand-word b { color: var(--accent); font-weight: 700; }
.sb-biz { display: flex; align-items: center; gap: 10px; padding: 10px; margin-bottom: 18px; border: 1px solid var(--night-line); border-radius: 12px; background: var(--night-2); }
.sb-biz .av { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font: 700 14px var(--sans); color: #fff; background: linear-gradient(135deg, #ff4d6d, #7c5cff); flex: none; }
.sb-biz .bn { min-width: 0; flex: 1; }
.sb-biz strong { display: block; color: var(--night-text); font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-biz small { font-size: 12px; color: var(--night-muted); }
.sb-biz select { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sb-biz.multi { position: relative; cursor: pointer; }
.sb-biz.multi::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--night-muted); border-bottom: 1.5px solid var(--night-muted); transform: rotate(45deg) translate(-2px, -2px); flex: none; }
.sb-label { font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #6f6878; padding: 0 10px; margin: 6px 0 8px; }
.sb-nav { display: grid; gap: 2px; }
.sb-nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: #cfc9d6; font-weight: 500; font-size: 14px; transition: background .15s, color .15s; }
.sb-nav a:hover { background: var(--night-2); color: var(--night-text); }
.sb-nav a[aria-current="page"] { background: #2a2633; color: #fff; box-shadow: inset 2px 0 0 var(--accent); }
.sb-nav a .i { color: #8f879a; }
.sb-nav a[aria-current="page"] .i, .sb-nav a:hover .i { color: #fff; }
.sb-nav .count { margin-left: auto; font-size: 12px; color: #8f879a; }
.sb-foot { margin-top: auto; display: grid; gap: 12px; padding-top: 18px; }
.sb-booth { padding: 14px; border-radius: 12px; background: linear-gradient(160deg, #2a1f3b, #1d1a24); border: 1px solid var(--night-line); }
.sb-booth strong { display: block; color: var(--night-text); font-size: 13.5px; margin-bottom: 4px; }
.sb-booth p { font-size: 12.5px; margin: 0 0 10px; line-height: 1.45; }
.sb-booth a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #fff; text-decoration: none; }
.sb-booth a .i { width: 14px; height: 14px; }
.sb-user { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-top: 1px solid var(--night-line); padding-top: 14px; }
.sb-user .av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #3a3444; color: #fff; font: 600 13px var(--sans); flex: none; }
.sb-user .un { min-width: 0; flex: 1; }
.sb-user strong { display: block; color: var(--night-text); font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user small { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user button { background: none; border: 0; color: #8f879a; cursor: pointer; padding: 6px; border-radius: 8px; }
.sb-user button:hover { color: #fff; background: var(--night-2); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 32px; background: rgba(244, 241, 236, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid #e6e0d6; }
.topbar .crumbs { margin: 0; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; min-width: 0; }
.topbar .crumbs a { text-decoration: none; color: var(--muted); }
.topbar .crumbs a:hover { color: var(--ink); }
.topbar .crumbs strong { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid #ddd6cb; background: #fff; cursor: pointer; place-items: center; }
.content { padding: 32px; width: 100%; max-width: 1280px; flex: 1; }
.dash-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 20px 32px 28px; font-size: 13px; color: var(--muted); }
.dash-foot > * { white-space: nowrap; }
.dash-foot a { color: var(--muted); text-decoration: none; }
.dash-foot a:hover { color: var(--ink); }
.scrim { display: none; }

/* ---------- Page header ---------- */
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.page-h h1 { font-size: 28px; font-weight: 700; }
.page-h .serif { font: 400 38px/1.05 var(--serif); letter-spacing: -.01em; }
.page-h .serif em { color: var(--accent); }
.page-h p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.page-h .btn-row { gap: 8px; }

/* ---------- Panels ---------- */
.panel { background: #fff; border: 1px solid #e8e2d8; border-radius: 16px; padding: 22px; box-shadow: 0 1px 2px rgba(23, 21, 28, .03); }
.panel + .panel { margin-top: 16px; }
.cols > .panel, .cols-2 > .panel, .stack > .panel, .alt-start > .panel, .tpl-grid > .panel { margin-top: 0; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-h h2 { font-size: 16px; font-weight: 650; }
.panel-h a, .panel-h .link { font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; cursor: pointer; padding: 0; }
.panel-h a .i { width: 14px; height: 14px; }
.panel-h a:hover { text-decoration: underline; }
.panel .card-title { font-size: 16px; font-weight: 650; margin-bottom: 14px; }
.cols { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; align-items: start; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.stack { display: grid; gap: 16px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid #e8e2d8; border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.stat .top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; font-weight: 500; }
.stat .top .i { width: 16px; height: 16px; color: #9a93a3; }
.stat b { font: 600 30px/1 var(--sans); color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat small { font-size: 12.5px; color: var(--muted); }
.stat.live b { color: var(--green); }
.stat.live .top::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(31, 157, 99, .18); order: 2; }

/* ---------- Pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--sans); padding: 5px 9px; border-radius: 999px; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.live { color: #12784b; background: #e2f5eb; }
.pill.up { color: #2453d6; background: #e7edfc; }
.pill.past { color: #6d6774; background: #efece7; }
.pill.role { color: #5b3fd6; background: #efeafe; }
.pill.role::before { display: none; }

/* ---------- Latest captures ---------- */
.latest { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; }
.latest-main { position: relative; border-radius: 12px; overflow: hidden; background: #111; aspect-ratio: 3 / 4; }
.latest-main img, .latest-main video { width: 100%; height: 100%; object-fit: cover; }
.latest-main figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: #fff; font-size: 13px; }
.latest-main figcaption strong { display: block; font-size: 14.5px; }
.latest-side { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.latest-side a { display: block; position: relative; border-radius: 10px; overflow: hidden; background: #111; aspect-ratio: 1; }
.latest-side img, .latest-side video { width: 100%; height: 100%; object-fit: cover; }
.latest-side .k { position: absolute; left: 6px; top: 6px; font: 600 10.5px var(--sans); color: #fff; background: rgba(0, 0, 0, .5); padding: 3px 7px; border-radius: 999px; }
.empty-latest { display: grid; place-items: center; text-align: center; padding: 34px 18px; border: 1.5px dashed #ddd6cb; border-radius: 12px; color: var(--muted); }
.empty-latest .i { width: 30px; height: 30px; margin: 0 auto 10px; color: #b9b2c0; }

/* ---------- Calendar ---------- */
.cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-h strong { font-size: 15px; font-weight: 650; color: var(--ink); }
.cal-h .nav { display: flex; gap: 4px; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; border: 1px solid #e3ddd3; background: #fff; cursor: pointer; color: var(--ink); }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn .i { width: 16px; height: 16px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { font: 600 11px var(--sans); color: #9a93a3; text-align: center; padding: 4px 0 8px; text-transform: uppercase; letter-spacing: .04em; }
.cal .d { position: relative; height: 46px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 7px; font-size: 13px; color: var(--ink-2); text-decoration: none; border: 1px solid transparent; }
.cal .d.out { color: #c5bfcb; }
.cal .d.today { border-color: var(--ink); font-weight: 700; color: var(--ink); }
.cal .d.has { background: #f6f3ee; cursor: pointer; }
.cal .d.has:hover { background: #efeae3; }
.cal .dots { display: flex; gap: 3px; margin-top: auto; margin-bottom: 7px; }
.cal .dots i { width: 6px; height: 6px; border-radius: 50%; }
.upc { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid #eee8df; display: grid; gap: 4px; }
.upc a { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; padding: 8px; margin: 0 -8px; border-radius: 10px; text-decoration: none; }
.upc a:hover { background: #f6f3ee; }
.upc .date { text-align: center; border: 1px solid #e8e2d8; border-radius: 9px; padding: 4px 0; background: #fff; }
.upc .date b { display: block; font-size: 16px; color: var(--ink); line-height: 1.1; }
.upc .date small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.upc strong { font-size: 14px; color: var(--ink); font-weight: 600; display: block; }
.upc span.m { font-size: 12.5px; color: var(--muted); }
.upc .none { font-size: 13.5px; color: var(--muted); padding: 4px 0; }
.upc .none a { display: inline; padding: 0; margin: 0; color: var(--ink); text-decoration: underline; }

/* ---------- Get started ---------- */
.start { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: s; }
.start li { list-style: none; counter-increment: s; padding: 18px; border-radius: 12px; background: #f8f6f2; border: 1px solid #ece6dc; }
.start li::before { content: counter(s); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 13px var(--sans); margin-bottom: 12px; }
.start li.done::before { content: "✓"; background: var(--green); }
.start strong { display: block; color: var(--ink); margin-bottom: 4px; font-size: 14.5px; }
.start p { margin: 0; font-size: 13.5px; color: var(--muted); }
.start { padding: 0; margin: 0 0 16px; }

/* ---------- Events table ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.search { position: relative; flex: 1; max-width: 340px; }
.search .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: #9a93a3; }
.search input { width: 100%; min-height: 40px; padding: 0 12px 0 36px; border: 1px solid #ddd6cb; border-radius: 10px; background: #fff; font: 14px var(--sans); color: var(--ink); }
.search input:focus { outline: none; border-color: var(--ink); }
.tabs { display: inline-flex; gap: 2px; padding: 3px; background: #ebe6de; border-radius: 10px; }
.tabs button { border: 0; background: transparent; padding: 7px 12px; border-radius: 8px; font: 600 13px var(--sans); color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.tabs button .n { color: #9a93a3; font-weight: 500; margin-left: 4px; }
.etable { width: 100%; border-collapse: collapse; }
.etable th { text-align: left; font: 600 12px var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 0 14px 10px; border-bottom: 1px solid #eee8df; }
.etable td { padding: 12px 14px; border-bottom: 1px solid #f1ece4; vertical-align: middle; font-size: 14px; }
.etable tr:last-child td { border-bottom: 0; }
.etable tbody tr { cursor: pointer; transition: background .12s; }
.etable tbody tr:hover { background: #faf8f4; }
.ev-name { display: flex; align-items: center; gap: 12px; }
.ev-thumb { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--acc, #ddd); color: #fff; font: 700 15px var(--sans); }
.ev-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ev-name strong { display: block; color: var(--ink); font-weight: 600; }
.ev-name small { color: var(--muted); font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }

/* ---------- Event page ---------- */
.ev-hero { display: flex; align-items: center; gap: 18px; }
.ev-hero .ev-thumb { width: 64px; height: 64px; border-radius: 14px; font-size: 22px; }
.ev-hero h1 { font-size: 26px; }
.ev-hero .meta { display: flex; gap: 10px; align-items: center; margin-top: 6px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.stats.mini { grid-template-columns: repeat(5, 1fr); }
.gal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.live-dot { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 50% { opacity: .35; } }
.cap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cap { margin: 0; }
.cap-media { display: block; width: 100%; padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 3 / 4; background: #1b1922; cursor: zoom-in; position: relative; }
.cap-media img, .cap-media video { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.cap-media:hover img, .cap-media:hover video { transform: scale(1.03); }
.cap-kind { position: absolute; left: 8px; top: 8px; font: 600 11px var(--sans); color: #fff; background: rgba(0, 0, 0, .55); padding: 3px 8px; border-radius: 999px; }
.cap figcaption { display: flex; justify-content: space-between; align-items: center; padding: 7px 2px 0; font-size: 12.5px; color: var(--muted); }
.cap-dl { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; color: var(--ink); text-decoration: none; }
.cap-dl:hover { background: #efeae3; }
.cap-dl .i { width: 15px; height: 15px; }
.cap-acts { display: flex; gap: 2px; }
.cap-del { border: 0; background: none; padding: 0; cursor: pointer; color: var(--muted); }
.cap-del:hover { background: #fbe9ec; color: #c62d4a; }
.cap.selecting .cap-media { cursor: pointer; }
.cap.selecting .cap-media img, .cap.selecting .cap-media video { transition: transform .15s, opacity .15s; }
.cap.picked .cap-media { box-shadow: 0 0 0 3px var(--accent); }
.cap.picked .cap-media img, .cap.picked .cap-media video { transform: scale(.94); }
.cap-check { position: absolute; right: 8px; top: 8px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .35); border: 2px solid #fff; color: transparent; }
.cap-check .i { width: 14px; height: 14px; }
.cap.picked .cap-check { background: var(--accent); border-color: var(--accent); color: #fff; }
.gal-right { display: flex; align-items: center; gap: 14px; }
.sel-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -4px 0 14px; padding: 10px 12px; border-radius: 12px; background: #f6f3ee; border: 1px solid #ebe5dc; }
.sel-bar strong { font-size: 14px; color: var(--ink); margin-right: 4px; }
.sel-bar .sp { flex: 1; }
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty .i { width: 34px; height: 34px; color: #b9b2c0; margin: 0 auto 12px; }
.empty h2 { font-size: 17px; margin-bottom: 6px; }
.empty p { margin: 0 auto 16px; max-width: 420px; }
.booth-tip { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: #f6f3ee; border: 1px solid #ece6dc; font-size: 13.5px; margin-top: 16px; }
.booth-tip .i { color: var(--accent); margin-top: 2px; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: #0d0c11; color: #f3efe9; width: min(1000px, calc(100vw - 24px)); max-width: none; max-height: none; border-radius: 18px; overflow: hidden; }
/* Fixed to the screen height; the media area takes what the top bar and buttons leave, and photos/videos scale to fit inside it. */
.lightbox[open] { display: flex; flex-direction: column; height: min(calc(100vh - 24px), 920px); height: min(calc(100dvh - 24px), 920px); }
.lightbox::backdrop { background: rgba(10, 9, 14, .75); backdrop-filter: blur(4px); }
.lb-top { flex: none; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 12px 18px; font-size: 13.5px; color: #b9b2c3; }
.lb-top .btn { background: transparent; color: #fff; border-color: #2e2a37; }
.lb-media { position: relative; flex: 1 1 auto; min-height: 0; background: #000; }
.lb-media img, .lb-media video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.lb-nav { position: absolute; z-index: 1; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 26px; cursor: pointer; }
.lb-nav:hover { background: rgba(255, 255, 255, .26); }
.lb-nav.prev { left: 12px; } .lb-nav.next { right: 12px; }
.lb-actions { flex: none; padding: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.lb-actions .btn { background: transparent; color: #fff; border-color: #3a3644; }
.lb-actions .btn-primary { background: #fff; color: #111; border-color: #fff; }

/* ---------- Templates ---------- */
.tpl-tabs { display: flex; gap: 4px; border-bottom: 1px solid #e6e0d6; margin-bottom: 20px; overflow-x: auto; }
.tpl-tabs button { border: 0; background: none; padding: 10px 14px 12px; font: 600 14px var(--sans); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tpl-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tpl-tabs button .n { font-weight: 500; color: #9a93a3; margin-left: 4px; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.tpl-card { display: block; padding: 0; border: 1px solid #e8e2d8; background: #fff; border-radius: 14px; overflow: hidden; cursor: pointer; text-align: left; font: inherit; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
.tpl-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -18px rgba(23, 21, 28, .35); border-color: #d5cdc0; }
.tpl-card canvas, .tpl-card .tpl-img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tpl-card .tb { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; }
.tpl-card strong { font-size: 14px; color: var(--ink); font-weight: 600; }
.tpl-card small { font-size: 12px; color: var(--muted); }
.tpl-card .tags { display: flex; gap: 6px; }
.tpl-card .tag { font: 600 11px var(--sans); color: var(--muted); background: #f3efe9; padding: 3px 7px; border-radius: 6px;; white-space: nowrap; }
.alt-start { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.alt-start .panel { display: flex; flex-direction: column; gap: 10px; }
.alt-start h2 { font-size: 16px; font-weight: 650; }
.alt-start p { margin: 0; font-size: 14px; color: var(--muted); }
.code-row { display: flex; gap: 8px; margin-top: auto; }
.code-row input { flex: 1; min-height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid #ddd6cb; font: 600 15px var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.code-row input:focus { outline: none; border-color: var(--ink); }
.or-line { display: flex; align-items: center; gap: 14px; margin: 32px 0 0; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: #e2dbd1; }
.mytpl-actions { display: flex; gap: 6px; padding: 0 14px 14px; align-items: center; }
.mytpl-actions .btn-primary { flex: 1; }
.mytpl-actions .icon-btn.danger:hover { border-color: #c62d4a; }
.mytpl-code { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 14px 12px; padding-top: 12px; border-top: 1px solid #f0ebe3; font-size: 12.5px; color: var(--muted); }
.code-chip { display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px var(--sans); letter-spacing: .08em; color: var(--ink); background: #f3efe9; border: 1px dashed #d5cdc0; padding: 5px 9px; border-radius: 8px; cursor: pointer; }
.code-chip .i { width: 13px; height: 13px; }

/* Template sheet (dialog) */
.sheet { border: 0; padding: 0; width: min(980px, calc(100vw - 24px)); max-height: calc(100vh - 24px); border-radius: 20px; background: #fff; color: var(--ink-2); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .5); }
.sheet::backdrop { background: rgba(19, 17, 24, .55); backdrop-filter: blur(3px); }
.sheet-in { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 520px; }
.sheet-art { background: #f4f1ec; padding: 28px; display: grid; gap: 16px; align-content: start; }
.sheet-art .big { width: 100%; border-radius: 14px; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .3); }
.sheet-art .row { display: flex; gap: 14px; align-items: flex-start; justify-content: center; }
.sheet-art .strip { width: 92px; border-radius: 3px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); }
.sheet-art .vid { position: relative; width: 108px; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); background: radial-gradient(45% 30% at 50% 38%, rgba(255, 214, 170, .9), transparent 65%), linear-gradient(160deg, #2b1d3d, #44203a 55%, #1c2236); }
.sheet-art .vid canvas, .sheet-art .vid img { position: absolute; inset: 0; width: 100%; height: 100%; }
.sheet-art .cap { font-size: 12px; color: var(--muted); text-align: center; margin-top: 6px; }
.sheet-form { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.sheet-form .x { position: absolute; top: 14px; right: 14px; }
.sheet-form h2 { font-size: 22px; padding-right: 40px; }
.sheet-form .sub { margin: -8px 0 0; color: var(--muted); font-size: 14px; }
.incl { list-style: none; margin: 0; padding: 14px 16px; border-radius: 12px; background: #f8f6f2; border: 1px solid #ece6dc; display: grid; gap: 8px; font-size: 13.5px; }
.incl li { display: flex; gap: 10px; align-items: center; }
.incl li .i { width: 16px; height: 16px; color: var(--green); }
.sheet-form .go { margin-top: auto; display: grid; gap: 8px; }
.progress { font-size: 13.5px; color: var(--muted); min-height: 20px; }
.prompt { border: 0; padding: 24px; width: min(440px, calc(100vw - 24px)); border-radius: 18px; background: #fff; }
.prompt::backdrop { background: rgba(19, 17, 24, .55); }
.prompt h2 { font-size: 19px; margin-bottom: 6px; }
.prompt p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.prompt .btn-row { justify-content: flex-end; margin-top: 18px; gap: 8px; }

/* ---------- Event editor ---------- */
.ev-form { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; align-items: start; }
.ev-form-main { display: grid; gap: 16px; }
.ev-form-side { position: sticky; top: 84px; }
.ev-form .panel.is-off { opacity: .5; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.check-inline { align-self: end; min-height: 44px; display: flex; align-items: center; }
.strip-preview { --bg: #0f0f12; --fg: #fff; --sub: #b9b9c4; --acc: #f5c542; --tag: #f5c542; position: relative; width: 100%; max-width: 220px; margin: 0 auto; aspect-ratio: 1 / 3; background: var(--bg); padding: 6%; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .4); border-radius: 3px; display: flex; flex-direction: column; gap: 3%; overflow: hidden; }
/* Booth geometry: 600×1800 strip, four 528×352 windows at x 36, y 36…1146 (18 apart), footer from y 1498. */
.sp-photos { position: absolute; left: 6%; top: 2%; width: 88%; height: 81.22%; display: grid; grid-template-rows: repeat(4, 1fr); row-gap: 1.23%; }
.sp-photos i { display: block; border-radius: 1px; background: linear-gradient(135deg, #d9b9a0, #8a5d4a); }
.sp-photos i:nth-child(2) { background: linear-gradient(135deg, #b9c4d9, #4a5a8a); }
.sp-photos i:nth-child(3) { background: linear-gradient(135deg, #e0cfa8, #8a744a); }
.sp-photos i:nth-child(4) { background: linear-gradient(135deg, #c9b3d9, #5f4a8a); }
.sp-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sp-foot { position: absolute; left: 6%; right: 6%; top: 83.22%; bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; text-align: center; }
.sp-logo { max-width: 60%; max-height: 34px; object-fit: contain; }
.sp-bar { width: 26px; height: 2px; background: var(--acc); }
.sp-title { color: var(--fg); font-size: 15px; line-height: 1.1; max-width: 100%; overflow: hidden; }
.sp-sub { color: var(--sub); font-size: 9px; }
.sp-tag { color: var(--tag); font-size: 9px; font-weight: 600; }
.asset-list { display: grid; gap: 8px; margin: 12px 0 4px; }
.asset-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 10px; border: 1px solid #ece6dc; border-radius: 12px; background: #fcfbf9; }
.asset-thumb { width: 52px; height: 52px; border-radius: 9px; background: repeating-conic-gradient(#ece7df 0 25%, #fff 0 50%) 0 0 / 12px 12px; display: grid; place-items: center; overflow: hidden; color: var(--muted); font-size: 20px; }
.asset-thumb img { max-width: 100%; max-height: 100%; }
.asset-info { display: grid; gap: 2px; min-width: 0; }
.asset-info strong { font-size: 14px; color: var(--ink); }
.asset-info .hint { font-size: 12.5px; }
.asset-file { font-size: 12.5px; color: var(--ink-2); }
.asset-info audio { margin-top: 6px; height: 32px; width: 100%; max-width: 320px; }
.asset-btns { display: flex; gap: 6px; }
.danger-zone { border-color: #f1d3d9; }
.danger-zone .card-title { color: #c62d4a; }

/* ---------- Team & account ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #f1ece4; font-size: 14px; }
.list li:last-child { border-bottom: 0; }
.list strong { color: var(--ink); font-weight: 600; }
.sub-title { font-size: 14px; margin: 18px 0 4px; }
.role-pick { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.role-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid #e3ddd3; border-radius: 12px; cursor: pointer; }
.role-opt:has(input:checked) { border-color: var(--ink); background: #faf8f4; }
.role-opt input { margin-top: 3px; accent-color: var(--ink); }
.role-opt strong { display: block; color: var(--ink); font-size: 14px; }
.role-opt small { color: var(--muted); font-size: 13px; }
.notice { padding: 14px 16px; border-radius: 12px; background: #f8f6f2; border: 1px solid #ece6dc; font-size: 14px; margin-top: 12px; }
.copy-row { display: flex; gap: 8px; margin-top: 8px; }
.copy-row input { flex: 1; min-height: 38px; padding: 0 12px; border-radius: 9px; border: 1px solid #ddd6cb; font: 13px var(--sans); }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--night); color: var(--night-muted); padding: 44px clamp(28px, 5vw, 64px); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; right: -20%; bottom: -25%; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 77, 109, .28), rgba(124, 92, 255, .14) 60%, transparent); }
.auth-side > * { position: relative; z-index: 1; }
.auth-side .brand { color: var(--night-text); }
.auth-side .brand-word { color: var(--night-text); font-size: 19px; }
.auth-side h2 { font: 400 clamp(36px, 4vw, 54px)/1.02 var(--serif); color: var(--night-text); margin: auto 0 18px; letter-spacing: -.015em; }
.auth-side h2 em { color: var(--accent); }
.auth-side ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; font-size: 15px; }
.auth-side li { display: flex; gap: 10px; align-items: center; }
.auth-side li .i { color: var(--night-text); width: 18px; height: 18px; }
.auth-side small { font-size: 13px; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; background: #f4f1ec; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 28px; font-weight: 700; margin-bottom: 6px; }
.auth-card > p.muted { margin: 0 0 24px; }
.auth-card .eyebrow { margin-bottom: 12px; color: var(--accent); }
.auth-card .btn-primary { width: 100%; min-height: 48px; font-size: 15px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; margin-top: 20px; color: var(--muted); }
.auth-links a { color: var(--ink); font-weight: 600; }
.invite-box { display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; border: 1px solid #e3ddd3; background: #fff; margin-bottom: 18px; }

/* ---------- Misc ---------- */
.dash-loading { height: 3px; width: 160px; margin: 60px auto; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 200% 100%; animation: load 1s linear infinite; }
@keyframes load { to { background-position: -200% 0; } }
.dash-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 200; max-width: calc(100vw - 32px); }
.dash-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1080px) {
  .cols, .cols-2 { grid-template-columns: 1fr; }
  .stats.mini { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; transform: translateX(-100%); transition: transform .25s ease; }
  .sidebar.open { transform: none; box-shadow: 30px 0 60px -30px rgba(0, 0, 0, .5); }
  .scrim.show { display: block; position: fixed; inset: 0; background: rgba(19, 17, 24, .45); z-index: 35; }
  .menu-btn { display: grid; }
  .topbar { padding: 0 16px; }
  .content { padding: 22px 16px; }
  .dash-foot { padding: 16px; }
  .ev-form { grid-template-columns: 1fr; }
  .ev-form-side { position: static; order: -1; }
  .strip-preview { max-width: 150px; }
  .sheet-in { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .start, .alt-start { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .stats, .stats.mini { grid-template-columns: 1fr 1fr; }
  .latest { grid-template-columns: 1fr; }
  .dash .form .row, .dash .form .row-3 { grid-template-columns: 1fr; }
  .etable .hide-sm { display: none; }
  .page-h .serif { font-size: 30px; }
  .topbar .actions .btn span.lbl { display: none; }
}

@media (max-width: 560px) {
  .tpl-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tpl-card .tb { padding: 10px; }
  .tpl-card strong { font-size: 13px; }
  .tpl-card .tags { display: none; }
  .tpl-grid:has(.mytpl-actions) { grid-template-columns: 1fr; }
}

/* ---------- Resources ---------- */
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.res-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; min-height: 190px; background: #fff; border: 1px solid #e8e2d8; border-radius: 16px; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
.res-card:hover { border-color: #d5cdc0; box-shadow: 0 14px 30px -20px rgba(23, 21, 28, .35); transform: translateY(-2px); }
.res-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: #fdecef; color: #d6334f; margin-bottom: 10px; }
.res-ic .i { width: 20px; height: 20px; }
.res-card strong { font-size: 15.5px; color: var(--ink); font-weight: 650; }
.res-card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.res-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.res-foot small { font-size: 12px; color: #9a93a3; }
.res-go { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink); letter-spacing: .02em; }
.res-go .i { width: 14px; height: 14px; }
.res-card:hover .res-go { color: #d6334f; }

.changelog { display: grid; gap: 16px; max-width: 860px; }
.release .rel-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.release .rel-h h2 { font-size: 17px; font-weight: 650; }
.changelog > .panel { margin-top: 0; }
.release .rel-h small { color: var(--muted); font-size: 13px; margin-left: auto; }
.release ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.release li { display: grid; grid-template-columns: 82px 1fr; gap: 12px; align-items: baseline; font-size: 14.5px; color: var(--ink-2); }
.tag { font: 600 11px var(--sans); padding: 3px 8px; border-radius: 6px; text-align: center; background: #f3efe9; color: var(--muted); }
.tag-new { background: #e7f6ee; color: #187a4c; }
.tag-improved { background: #eceafe; color: #5a43d6; }

.tool-tips ul { margin: 0; padding-left: 18px; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.tool-tips p { font-size: 14px; margin: 0 0 10px; }
.cmd { display: block; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #f6f3ee; border: 1px solid #ebe5dc; border-radius: 10px; padding: 10px 12px; margin: 0 0 14px; word-break: break-all; color: var(--ink); }
.station-status { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: #f6f3ee; border: 1px solid #ebe5dc; margin-bottom: 18px; }
.station-status .dot { width: 10px; height: 10px; border-radius: 50%; background: #b7b0bf; flex: none; }
.station-status strong { display: block; font-size: 14.5px; color: var(--ink); }
.station-status small { font-size: 13px; color: var(--muted); }
.station-status.on { background: #eef8f2; border-color: #cfead9; }
.station-status.on .dot { background: var(--green); box-shadow: 0 0 0 4px rgba(31, 157, 99, .18); animation: pulse 1.6s ease-in-out infinite; }
.station-status.warn { background: #fff6e6; border-color: #f3dfb5; }
.station-status.warn .dot { background: #e0a020; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(31, 157, 99, 0); } }
.print-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.print-log li { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 8px; border: 1px solid #eee8df; border-radius: 12px; }
.print-log li.muted { display: block; border: 0; padding: 4px 0; font-size: 13.5px; }
.print-log img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; background: #f3efe9; }
.print-log strong { display: block; font-size: 13.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.print-log small { font-size: 12.5px; color: var(--muted); }
.file-ic { width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; background: #f3efe9; color: var(--muted); }
.folder-pick { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1px dashed #d5cdc0; border-radius: 12px; }
.folder-pick strong { display: block; font-size: 14px; color: var(--ink); }
.folder-pick small { font-size: 12.5px; color: var(--muted); }
.folder-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #fdecef; color: #d6334f; }
.print-area { display: none; }
#log { margin-top: 0; }
.panel .sub-title { margin: 22px 0 10px; font-size: 14px; font-weight: 650; color: var(--ink); }

/* Print Station output: exactly one 4×6 inch sheet, two 2×6 strips side by side. */
@media print {
  @page { size: 4in 6in; margin: 0; }
  html, body.dash { background: #fff !important; }
  body.dash > *:not(.app), .app > *:not(.main), .main > *:not(.content), .content > *:not(.print-area) { display: none !important; }
  .content { padding: 0 !important; }
  .print-area { display: flex !important; width: 4in; height: 6in; overflow: hidden; }
  .print-area img { width: 2in; height: 6in; object-fit: cover; display: block; }
  .print-area img.full { width: 4in; }
}

/* Slideshow (opened full screen in its own window) */
body.show-mode { background: #000; overflow: hidden; }
body.show-mode.idle-cursor { cursor: none; }
.show { position: fixed; inset: 0; background: #000; color: #fff; }
.show-stage, .show-slide { position: absolute; inset: 0; }
.show-slide { opacity: 0; transition: opacity .8s ease; display: grid; place-items: center; overflow: hidden; }
.show-slide.in { opacity: 1; }
.show-slide img, .show-slide video { position: relative; max-width: 100%; max-height: 100%; width: auto; height: 100%; object-fit: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.show-slide video { width: 100%; }
.show-bg { position: absolute; inset: -40px; background: center / cover no-repeat; filter: blur(40px) brightness(.45) saturate(1.2); }
.show-title { position: absolute; left: 32px; bottom: 28px; display: grid; gap: 2px; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.show-title strong { font: 400 clamp(26px, 3vw, 44px)/1.05 var(--serif); }
.show-title span { font-size: 14px; color: rgba(255, 255, 255, .75); }
.show-bar { position: absolute; top: 20px; right: 20px; display: flex; gap: 8px; opacity: 0; transition: opacity .3s; }
.show-bar.on { opacity: 1; }
.show-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(8px); }
.show-btn:hover { background: rgba(255, 255, 255, .26); }
.show-btn .i { width: 18px; height: 18px; }
.show-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: rgba(255, 255, 255, .6); font-size: 18px; }
.show-empty .i { width: 40px; height: 40px; }
