@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url(/fonts/bricolage.woff2) format("woff2-variations");
}

:root {
  --ink: #1d1838;
  --ink-2: #2b2550;
  --ink-3: #4a4378;
  --paper: #f5f3fa;
  --paper-2: #ebe7f5;
  --line: #d9d3ea;
  --muted: #6b6590;
  --lilac: #b9a9ff;
  --glow: #ffd23f;
  --ok: #23875c;
  --bad: #c93a4f;
  --radius-s: 6px;
  --radius-l: 18px;
  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  font-optical-sizing: auto;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); font-stretch: 85%; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 2px; border-radius: var(--radius-s); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(560px, 100% - 32px); margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }

.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 44px; padding: .55em 1.1em;
  font: inherit; font-weight: 600; line-height: 1.2;
  color: var(--fg); background: var(--bg);
  border: 2px solid var(--bg); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background-color .12s ease;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn.ghost { --fg: var(--ink); background: transparent; }
.btn.glow { --bg: var(--glow); --fg: var(--ink); }
.btn.danger { --bg: var(--bad); --fg: #fff; }
.btn.sm { min-height: 34px; padding: .3em .8em; font-size: .875rem; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

label { display: block; font-weight: 600; margin-bottom: .3rem; }
.hint { display: block; font-weight: 400; font-size: .875rem; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: .6em .8em;
  font: inherit; color: inherit; background: #fff;
  border: 2px solid var(--line); border-radius: var(--radius-s);
}
input:focus, select:focus, textarea:focus { border-color: var(--ink-3); outline: none; }
input[type=color] { width: 56px; height: 46px; padding: 2px; border: 2px solid var(--line); border-radius: var(--radius-s); background: #fff; }
.field { margin-bottom: 1.25rem; }
.check { display: flex; gap: .75rem; align-items: flex-start; font-weight: 400; margin-bottom: 1rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.check strong { display: block; }

.flash { padding: .8rem 1rem; border-radius: var(--radius-s); margin-bottom: 1.5rem; border-left: 5px solid; background: #fff; }
.flash.ok { border-color: var(--ok); }
.flash.error { border-color: var(--bad); }
.error-text { color: var(--bad); font-weight: 600; }

.pill { display: inline-block; padding: .1em .6em; border-radius: 999px; font-size: .8125rem; font-weight: 600; background: var(--paper-2); color: var(--ink-3); }
.pill.on { background: #d8f1e5; color: var(--ok); }
.pill.off { background: #f8dde1; color: var(--bad); }

/* site chrome */
.topbar { border-bottom: 1px solid var(--line); background: var(--paper); }
.topbar .wrap { display: flex; align-items: center; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.2rem; text-decoration: none; font-stretch: 80%; }
.brand svg { width: 28px; height: 28px; }
.topbar nav { margin-left: auto; display: flex; gap: 1rem; align-items: center; }
.topbar nav a { text-decoration: none; font-weight: 600; }
.foot { padding: 3rem 0; color: var(--muted); font-size: .875rem; }
.foot .wrap { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* landing */
.hero { background: var(--ink); color: var(--paper); padding: clamp(3rem, 8vw, 6rem) 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.75rem); font-stretch: 75%; font-weight: 800; line-height: .95; }
.hero p { font-size: 1.2rem; max-width: 34ch; color: #d6d0ef; }
.hero .btn.ghost { --fg: var(--paper); --bg: var(--paper); }
.demo { background: var(--ink-2); border-radius: 24px; padding: 1.25rem 1.25rem .5rem; border: 1px solid var(--ink-3); max-width: 420px; width: 100%; justify-self: end; color: var(--paper); }
.demo .now { background: var(--ink); margin: 0 0 1.25rem; }
.demo .track span { color: #a9a2cf; }
.demo .now .label { color: var(--accent); }
.demo.guest .cover { display: grid; place-items: center; font-weight: 800; font-stretch: 75%; font-size: 1.6rem; color: var(--ink); border-radius: 6px; }
.demo.guest .now .cover { width: 56px; height: 56px; font-size: 2rem; }
.demo.guest .cover.c1 { background: var(--glow); }
.demo.guest .cover.c2 { background: #ff8fb8; }
.demo.guest .cover.c3 { background: var(--lilac); }
.demo.guest .cover.c4 { background: #7fd8be; }
.demo-progress { width: 62% !important; }
.demo-title { font-weight: 700; margin: 0 0 .25rem; }
.demo .setlist li { grid-template-columns: 1.6rem 48px 1fr auto; border-color: var(--ink-3); }
.demo .setlist li:last-child { border-bottom: 0; }
.demo .setlist .rank { color: var(--accent); }
.demo .vote { cursor: default; }
.steps { padding: 4rem 0; }
.steps ol { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: block; font-size: 3.5rem; font-weight: 800; font-stretch: 75%; line-height: 1; color: var(--lilac); margin-bottom: .5rem; }
.legal { padding: 3rem 0; max-width: 70ch; }

/* setlist (shared) */
.setlist { list-style: none; margin: 0; padding: 0; }
.setlist li { display: grid; grid-template-columns: 2.6rem 48px 1fr auto; gap: .75rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.setlist .rank { font-size: 1.9rem; font-weight: 800; font-stretch: 75%; line-height: 1; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.setlist li:nth-child(-n+3) .rank { color: inherit; }
.setlist img, .setlist .cover { display: block; width: 48px; height: 48px; border-radius: 4px; object-fit: cover; background: var(--paper-2); }
.track { min-width: 0; }
.track b, .track span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track span { font-size: .875rem; color: var(--muted); }
.track .e { display: inline-block; font-size: .65rem; font-weight: 700; padding: 0 .3em; margin-right: .35em; border-radius: 2px; background: var(--muted); color: var(--paper); vertical-align: 1px; }

/* guest */
.guest { --accent: var(--glow); }
body.guest { background: var(--ink); color: var(--paper); color-scheme: dark; }
.guest .muted, .guest .track span { color: #a9a2cf; }
.guest-head { padding: 2rem 0 1rem; }
.guest-head .logo { max-height: 72px; width: auto; margin-bottom: 1rem; }
.guest-head h1 { font-stretch: 75%; font-weight: 800; margin-bottom: .25rem; }
.guest .closed { border: 2px dashed var(--ink-3); border-radius: var(--radius-l); padding: 1rem 1.25rem; margin: 1rem 0; }
.now { display: grid; grid-template-columns: 56px 1fr; gap: .9rem; align-items: center; padding: .9rem; border-radius: var(--radius-l); background: var(--ink-2); margin: 1rem 0 1.5rem; }
.now img, .now .cover { display: block; width: 56px; height: 56px; border-radius: 6px; background: var(--ink-3); object-fit: cover; }
.now .label { font-size: .8125rem; color: var(--accent); font-weight: 700; }
.now .bar { grid-column: 1 / -1; height: 3px; background: var(--ink-3); border-radius: 2px; overflow: hidden; }
.now .bar i { display: block; height: 100%; background: var(--accent); width: 0; transition: width 1s linear; }
.searchbox { position: sticky; top: 0; z-index: 5; background: var(--ink); padding: .75rem 0; }
.searchbox input { min-height: 56px; font-size: 1.125rem; background: var(--ink-2); color: var(--paper); border-color: var(--ink-3); border-radius: 999px; padding-inline: 1.25rem; }
.searchbox input::placeholder { color: #8f88b8; }
.searchbox input:focus { border-color: var(--accent); }
.guest .setlist li { border-color: var(--ink-2); }
.guest .setlist .rank { color: var(--ink-3); }
.guest .setlist li:nth-child(-n+3) .rank { color: var(--accent); }
.guest .setlist img, .guest .setlist .cover { background: var(--ink-2); }
.guest .track .e { background: #a9a2cf; color: var(--ink); }
.results li { grid-template-columns: 48px 1fr auto; }
.vote { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 56px; min-height: 52px; padding: .25rem .6rem; border-radius: 14px; border: 2px solid var(--ink-3); background: transparent; color: inherit; font: inherit; cursor: pointer; line-height: 1.05; }
.vote b { font-size: 1.25rem; font-stretch: 80%; font-variant-numeric: tabular-nums; }
.vote small { font-size: .6875rem; color: #a9a2cf; }
.vote.mine { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.vote.mine small { color: var(--ink); }
.vote:disabled { cursor: default; }
.wish-btn { min-height: 44px; padding: .4em 1em; border-radius: 999px; border: 2px solid var(--accent); background: transparent; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; }
.wish-btn.done { background: var(--accent); color: var(--ink); }
.wish-btn:disabled { opacity: .7; cursor: default; }
.queued-tag { font-size: .75rem; font-weight: 700; color: var(--accent); }
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 1.75rem 0 .25rem; }
.section-title h2 { margin: 0; font-size: 1.25rem; }
.empty { padding: 2rem 0; color: #a9a2cf; }
.toast { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translate(-50%, 120%); background: var(--paper); color: var(--ink); padding: .8rem 1.2rem; border-radius: 999px; font-weight: 600; box-shadow: 0 8px 30px rgba(10, 6, 30, .45); transition: transform .25s ease, visibility .25s; visibility: hidden; max-width: calc(100% - 32px); z-index: 20; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast.error { background: var(--bad); color: #fff; }
.guest .foot { color: #8f88b8; }

/* dashboard */
.dash-nav { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.dash-nav a { padding: .8rem 1rem; text-decoration: none; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.dash-nav a[aria-current=page] { color: var(--ink); border-color: var(--ink); }
.dash-title { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; padding-top: 2rem; }
.dash-title h1 { margin: 0; font-size: clamp(1.75rem, 4vw, 2.5rem); }
.dash-title .row { margin-left: auto; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.5rem; }
.panel + .panel { margin-top: 1.5rem; }
.grid-queue { display: grid; grid-template-columns: 340px 1fr; gap: 1.5rem; align-items: start; padding-bottom: 3rem; }
.player { background: var(--ink); color: var(--paper); border-radius: var(--radius-l); padding: 1.25rem; position: sticky; top: 1rem; }
.player .muted, .player .track span { color: #a9a2cf; }
.player .cover-lg { width: 100%; aspect-ratio: 1; border-radius: 10px; background: var(--ink-2); object-fit: cover; margin-bottom: 1rem; }
.player .bar { height: 4px; background: var(--ink-3); border-radius: 2px; overflow: hidden; margin: .75rem 0 1rem; }
.player .bar i { display: block; height: 100%; background: var(--glow); width: 0; }
.player .setlist li { grid-template-columns: 40px 1fr; border-color: var(--ink-2); padding: .4rem 0; }
.player .setlist img { width: 40px; height: 40px; background: var(--ink-2); }
.switch { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--ink-2); font-weight: 600; }
.switch input { appearance: none; width: 46px; height: 28px; border-radius: 999px; background: var(--ink-3); position: relative; cursor: pointer; flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); transition: transform .15s ease; }
.switch input:checked { background: var(--glow); }
.switch input:checked::after { transform: translateX(18px); background: var(--ink); }
.switch input:disabled { opacity: .4; cursor: not-allowed; }
.switch small { display: block; font-weight: 400; color: #a9a2cf; }
.tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tabs button { font: inherit; font-weight: 600; border: 2px solid var(--line); background: #fff; color: var(--ink); padding: .35em .9em; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected=true] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tabs .count { font-variant-numeric: tabular-nums; opacity: .7; margin-left: .25em; }
.wishlist li { grid-template-columns: 22px 2.2rem 48px 1fr auto auto; border-radius: var(--radius-s); padding-inline: .4rem; }
.wishlist li.focus { background: var(--paper-2); box-shadow: inset 3px 0 0 var(--ink); }
.wishlist li.selected { background: #fff6cf; }
.wishlist li.pinned .rank { color: var(--ink-3); cursor: grab; font-size: 1rem; letter-spacing: -.2em; }
.wishlist li.dragging { opacity: .4; }
.wishlist .pick input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.icon-btn.active { background: var(--glow); border-color: var(--glow); }
.icon-btn.dark { background: var(--ink-2); border-color: var(--ink-3); color: var(--paper); }
.bulk { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; padding: .75rem 1rem; margin-bottom: 1rem; border-radius: var(--radius-s); background: var(--ink); color: var(--paper); position: sticky; top: .5rem; z-index: 3; }
.bulk .btn { --fg: var(--paper); }
.bulk .btn.ghost { --bg: var(--paper); }
.bulk .btn:not(.ghost):not(.danger) { --bg: var(--glow); --fg: var(--ink); }
.help { background: var(--paper-2); border-radius: var(--radius-s); padding: 1rem; margin-bottom: 1rem; }
.help dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 0; font-size: .875rem; }
.help dt { font-weight: 700; }
.help dd { margin: 0; }
.event-box { display: grid; gap: .2rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--ink-2); }
.event-box b { font-size: 1.125rem; }
.event-box .muted, .event-box .hint, .manual .muted { color: #a9a2cf; }
.event-start input { flex: 1; min-width: 0; min-height: 38px; background: var(--ink-2); border-color: var(--ink-3); color: var(--paper); }
.event-start label { color: var(--paper); }
.manual { padding-bottom: .5rem; }
.manual a { color: var(--glow); }
.player label.device { font-size: .8125rem; color: #a9a2cf; font-weight: 600; margin: 0 0 .3rem; }
.device-row { flex-wrap: nowrap; margin-bottom: .75rem; }
.device-row select { min-height: 38px; padding: .3em .6em; background: var(--ink-2); color: var(--paper); border-color: var(--ink-3); font-size: .875rem; }
.setlist.compact li { grid-template-columns: 2rem 40px 1fr auto; padding: .4rem 0; }
.setlist.compact img, .setlist.compact .cover { width: 40px; height: 40px; }
.event-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; }
.event-list .panel + .panel { margin-top: 0; }
.stats-line { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.stats-line b { font-size: 1.5rem; font-stretch: 80%; }

.qr-tools { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.qr-tools .panel + .panel { margin-top: 0; }
.series { align-items: flex-end; }
.series label { font-size: .8125rem; margin: 0; }
.series input { width: 80px; min-height: 42px; }
.series input[name=prefix] { width: 120px; }
.series select { width: auto; min-height: 42px; }
.print-select { margin-bottom: 1.25rem; }
.qr-card h3 { margin: .25rem 0; }
.qr-card h3 a { text-decoration: none; }
.qr-card .qr-img { display: block; padding: 0; margin: .75rem 0; background: transparent; }
.check-inline input { width: 20px; height: 20px; accent-color: var(--ink); }
.qr-editor { display: grid; grid-template-columns: 1fr 380px; gap: 1.5rem; align-items: start; padding-bottom: 3rem; }
.qr-editor h2 { margin-top: 1.5rem; }
.qr-side .panel + .panel { margin-top: 1.5rem; }
.preview-panel { position: sticky; top: 1rem; }
.qr-preview { max-width: 320px; margin: 0 auto 1rem; }
.colors { margin-bottom: 1rem; }
.color { display: flex; align-items: center; gap: .5rem; margin: 0; }
fieldset.choice { border: 0; padding: 0; margin: 0 0 1rem; display: flex; gap: .5rem; flex-wrap: wrap; }
fieldset.choice legend { font-weight: 600; margin-bottom: .4rem; padding: 0; }
fieldset.choice label { display: inline-flex; gap: .4rem; align-items: center; margin: 0; padding: .35em .8em; border: 2px solid var(--line); border-radius: 999px; font-weight: 600; cursor: pointer; }
fieldset.choice label:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--paper); }
fieldset.choice input { position: absolute; opacity: 0; pointer-events: none; }
fieldset.choice label:has(input:focus-visible) { outline: 3px solid var(--lilac); outline-offset: 2px; }
.dates { margin-bottom: 1rem; }
.dates label { margin: 0; flex: 1; min-width: 200px; }
.dates input { width: 100%; min-height: 46px; padding: .5em; font: inherit; border: 2px solid var(--line); border-radius: var(--radius-s); background: #fff; color: inherit; }
.bars rect { fill: var(--ink-3); }
.bars rect:last-of-type { fill: var(--ink); }
.bars text { font-size: 9px; fill: var(--muted); font-family: var(--font); }

/* beamer */
body.screen { overflow: hidden; background: var(--screen-bg); color: var(--screen-fg); }
.screen .muted, .screen .track span, .screen .screen-url, .screen .votes small, .screen .empty { color: var(--screen-muted); }
.screen-light { --accent-text: var(--ink); }
.screen-grid { display: grid; grid-template-columns: minmax(300px, 38vw) 1fr; gap: 4vw; min-height: 100vh; padding: 4vw; align-items: center; }
.screen-qr { text-align: center; }
.qr-frame { background: #fff; padding: 1.5vw; border-radius: 2vw; }
.screen-light .qr-frame { box-shadow: 0 0 0 1px var(--screen-line); }
.screen-call { font-size: clamp(1.5rem, 2.6vw, 3rem); font-weight: 800; font-stretch: 80%; line-height: 1.05; margin: 1.5vw 0 .5vw; }
.screen-url { font-size: clamp(1rem, 1.3vw, 1.5rem); }
.screen-head { display: flex; align-items: center; gap: 2vw; }
.screen-logo { max-height: 8vw; max-width: 16vw; width: auto; }
.screen-list h1 { font-size: clamp(2.5rem, 5vw, 6rem); font-stretch: 75%; font-weight: 800; margin: 0; }
.screen-list h2 { font-size: clamp(1.25rem, 1.8vw, 2rem); color: var(--accent); margin-top: 2vw; }
.screen-light .screen-list h2, .screen-light .screen-setlist .votes b { color: var(--screen-fg); }
.screen-message { display: inline-block; margin: 1.5vw 0 0; padding: .6vw 1.4vw; border-radius: 999px; background: var(--screen-fg); color: var(--screen-bg); font-weight: 700; font-size: clamp(1rem, 1.6vw, 2rem); }
.screen-now { display: grid; grid-template-columns: 7vw 1fr; gap: 1.5vw; align-items: center; padding: 1.2vw; margin-top: 2vw; border-radius: 1.5vw; background: var(--screen-card); }
.screen-now img { width: 7vw; height: 7vw; border-radius: .6vw; object-fit: cover; }
.screen-now .label { color: var(--accent); font-weight: 700; font-size: clamp(.875rem, 1vw, 1.25rem); }
.screen-light .screen-now .label { color: var(--screen-muted); }
.screen-now .track b { font-size: clamp(1.5rem, 2.4vw, 3rem); }
.screen-now .track span { font-size: clamp(1rem, 1.3vw, 1.6rem); }
.screen-now .bar { grid-column: 1 / -1; height: 4px; background: var(--screen-line); border-radius: 2px; overflow: hidden; }
.screen-now .bar i { display: block; height: 100%; background: var(--accent); width: 0; transition: width 1s linear; }
.screen-closed { font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.screen .setlist li { border-color: var(--screen-line); }
.screen-setlist li { grid-template-columns: 4vw 72px 1fr auto; gap: 1.2vw; padding: .9vw 0; }
.screen-setlist .rank, .screen .setlist li:nth-child(-n+3) .rank { font-size: clamp(2rem, 3.4vw, 4.5rem); color: var(--accent); }
.screen.screen-light .setlist li:nth-child(n) .rank { color: var(--screen-fg); }
.screen .setlist .rank { color: var(--screen-muted); }
.screen-setlist img, .screen-setlist .cover { width: 72px; height: 72px; background: var(--screen-card); }
.screen-setlist .track b { font-size: clamp(1.25rem, 1.9vw, 2.4rem); }
.screen-setlist .track span { font-size: clamp(1rem, 1.2vw, 1.5rem); }
.screen-setlist .votes b { font-size: clamp(1.5rem, 2.2vw, 2.8rem); color: var(--accent); }
.screen-setlist .votes small { font-size: .875rem; }
.btn.screen-fs { position: fixed; right: 16px; bottom: 16px; --fg: var(--screen-fg); --bg: var(--screen-line); }

.layout-list .screen-grid { grid-template-columns: 1fr; align-items: start; padding-right: 26vw; }
.layout-list .screen-qr { position: fixed; right: 3vw; bottom: 3vw; width: 20vw; }
.layout-list .qr-frame { padding: 1vw; border-radius: 1.2vw; }
.layout-list .screen-call { font-size: clamp(1rem, 1.4vw, 1.75rem); }
.layout-list .screen-url { font-size: clamp(.875rem, 1vw, 1.25rem); }
.layout-list .screen-grid { padding-top: 3vh; padding-bottom: 3vh; }
.layout-list .screen-list h2 { margin-top: 2vh; }
.layout-list .screen-setlist li { grid-template-columns: min(5vw, 7vh) min(6vw, 8vh) 1fr auto; gap: 1.5vw; padding: min(.9vw, 1.3vh) 0; }
.layout-list .screen-setlist img, .layout-list .screen-setlist .cover { width: min(6vw, 8vh); height: min(6vw, 8vh); }
.layout-list .screen-setlist .rank, .layout-list.screen .setlist li:nth-child(-n+3) .rank { font-size: min(4.5vw, 6.5vh); }
.layout-list .screen-setlist .track b { font-size: min(2.6vw, 3.8vh); }
.layout-list .screen-setlist .track span { font-size: min(1.5vw, 2.2vh); }
.layout-list .screen-setlist .votes b { font-size: min(2.8vw, 4vh); }
.layout-qr .screen-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; align-content: center; gap: 2vw; }
.layout-qr .screen-qr { width: min(46vh, 40vw); }
.layout-qr .screen-list { order: -1; width: min(90vw, 1400px); }
.layout-qr .screen-head { justify-content: center; }
.layout-qr .screen-list h1 { font-size: clamp(2rem, 4vw, 5rem); }
.layout-qr .screen-list h2 { display: none; }
.layout-qr .screen-now { max-width: 60vw; margin: 1.5vw auto 0; text-align: left; }
.layout-qr .screen-setlist { display: flex; gap: 2vw; justify-content: center; position: fixed; left: 0; right: 0; bottom: 2vw; }
.layout-qr .screen-setlist li { grid-template-columns: auto 56px auto; border: 0; text-align: left; padding: 0; }
.layout-qr .screen-setlist li .votes { display: none; }
.layout-qr .screen-setlist li:nth-child(n+4) { display: none; }
.layout-qr .screen-setlist img, .layout-qr .screen-setlist .cover { width: 56px; height: 56px; }
.layout-qr .screen-setlist .rank { font-size: clamp(1.5rem, 2.4vw, 3rem); }
.layout-qr .screen-setlist .track b { font-size: clamp(1rem, 1.3vw, 1.6rem); }

.screen-editor { display: grid; grid-template-columns: 420px 1fr; gap: 1.5rem; align-items: start; padding-bottom: 3rem; }
.screen-preview-wrap { position: sticky; top: 1rem; display: grid; gap: 1rem; }
.screen-preview { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--ink); position: relative; }
.screen-preview iframe { position: absolute; top: 0; left: 0; width: 1600px; height: 900px; border: 0; transform-origin: 0 0; transform: scale(var(--scale, .5)); }

/* print sheets */
body.print { background: var(--paper-2); }
.print-bar { width: min(210mm, 100% - 32px); margin: 1rem auto; }
.page { background: #fff; width: 210mm; height: 297mm; margin: 0 auto 1rem; overflow: hidden; position: relative; color: var(--ink); }
.page .tag { display: inline-block; background: var(--accent, var(--glow)); color: var(--ink); padding: .15em .7em; border-radius: 999px; font-weight: 700; }
.page .url { color: var(--muted); word-break: break-all; margin: 0; }
.page .where { font-weight: 700; margin: 0; }
.poster-page { padding: 22mm 18mm; text-align: center; display: flex; flex-direction: column; align-items: center; }
.poster-page .tag { font-size: 16pt; margin-bottom: 8mm; }
.poster-page h1 { font-size: 44pt; font-stretch: 75%; font-weight: 800; line-height: .95; margin: 0; }
.poster-page .qr { width: 125mm; margin: 12mm auto 10mm; }
.poster-page .where { font-size: 20pt; }
.poster-page .url { font-size: 12pt; margin-top: 3mm; }
.tent-page { display: grid; grid-template-rows: 1fr 1fr; }
.tent-half { display: grid; grid-template-columns: 95mm 1fr; gap: 10mm; align-items: center; padding: 18mm 14mm; }
.tent-half.back { transform: rotate(180deg); border-bottom: 0.3mm dashed var(--line); }
.tent-half h2 { font-size: 28pt; font-stretch: 75%; font-weight: 800; line-height: .95; margin: 4mm 0; }
.tent-half .where { font-size: 16pt; }
.tent-half .url { font-size: 9pt; margin-top: 2mm; }
.cards-page { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.card { padding: 10mm; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; outline: 0.2mm dashed var(--line); }
.card h2 { font-size: 18pt; font-stretch: 75%; font-weight: 800; margin: 0 0 5mm; }
.card .qr { width: 68mm; }
.card .where { font-size: 14pt; margin-top: 4mm; }
.card .url { font-size: 8pt; margin-top: 1mm; }
.stickers-page { padding: 15.15mm 7.2mm 0; display: grid; grid-template-columns: repeat(3, 63.5mm); grid-auto-rows: 38.1mm; column-gap: 2.5mm; }
.sticker { display: grid; grid-template-columns: 32mm 1fr; gap: 2.5mm; align-items: center; padding: 2.5mm 3mm; }
.sticker b { display: block; font-size: 11pt; font-stretch: 80%; }
.sticker span { font-size: 9pt; color: var(--muted); }
.page .qr svg { width: 100%; height: auto; }

.votes { text-align: center; min-width: 3rem; line-height: 1.05; }
.votes b { display: block; font-size: 1.35rem; font-stretch: 80%; font-variant-numeric: tabular-nums; }
.votes small { font-size: .6875rem; color: var(--muted); }
.actions { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.icon-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 50%; border: 2px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; font: inherit; font-size: 1rem; }
.icon-btn:hover { border-color: var(--ink-3); }
.icon-btn.primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.icon-btn svg { width: 18px; height: 18px; }
.tenant-list { list-style: none; padding: 0; margin: 0; }
.tenant-list li { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tenant-list a.name { font-weight: 700; font-size: 1.125rem; text-decoration: none; }
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.qr-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.25rem; }
.qr-card.inactive .qr-img { opacity: .25; }
.qr-img { background: #fff; padding: .5rem; margin-bottom: 1rem; }
.qr-card form.rename { display: flex; gap: .5rem; margin-bottom: .5rem; }
.qr-card form.rename input { min-height: 38px; font-weight: 700; border-color: transparent; padding-inline: .4em; }
.qr-card form.rename input:hover, .qr-card form.rename input:focus { border-color: var(--line); }
.copy-url { font-size: .8125rem; word-break: break-all; color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; padding-bottom: 3rem; }
.members { list-style: none; padding: 0; margin: 0; }
.members li { display: flex; gap: 1rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.members li > div { flex: 1; min-width: 0; }
.code-line { font-family: ui-monospace, Menlo, monospace; font-size: .875rem; background: var(--paper-2); padding: .5rem .75rem; border-radius: var(--radius-s); word-break: break-all; }
.danger-zone { border-color: #efc2c9; }

/* auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth .side { background: var(--ink); color: var(--paper); padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.auth .side blockquote { margin: 0; font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 800; font-stretch: 75%; line-height: 1; max-width: 14ch; }
.auth .form { padding: 3rem 1rem; display: grid; place-items: center; }
.auth form { width: min(380px, 100%); }

@media (max-width: 900px) {
  .hero .wrap, .grid-queue, .two-col, .auth, .qr-tools, .qr-editor, .screen-editor { grid-template-columns: 1fr; }
  .screen-preview-wrap { position: static; }
  .layout-split .screen-grid { grid-template-columns: 1fr; }
  body.screen { overflow: auto; }
  .preview-panel { position: static; }
  body.screen { overflow: auto; }
  .demo { justify-self: start; }
  .player { position: static; }
  .auth .side { padding: 2rem 1rem; min-height: auto; }
  .auth .side .foot-note { display: none; }
}
@media (max-width: 640px) {
  .steps ol { grid-template-columns: 1fr; }
  .wishlist li { grid-template-columns: 22px 1.8rem 44px 1fr auto; }
  .wishlist .actions { grid-column: 3 / -1; justify-content: flex-start; }
  .setlist .rank { font-size: 1.5rem; }
  .dash-title .row { margin-left: 0; }
}
@page { size: A4; margin: 0; }
@media print {
  body.print { background: #fff; }
  .print-bar { display: none; }
  .page { margin: 0; break-after: page; }
  .card { outline: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* platform admin */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.1rem 1.25rem; display: grid; gap: .1rem; }
.kpi b { font-size: 2.25rem; font-stretch: 75%; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi span { font-weight: 600; }
.kpi small { color: var(--muted); }
.ok-text { color: var(--ok); }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.admin-search { margin-bottom: 1rem; }
.admin-search input { max-width: 320px; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); margin-bottom: 3rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.admin-table th { text-align: left; font-size: .8125rem; color: var(--muted); font-weight: 600; padding: .75rem 1rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table td a { text-decoration: none; }
.admin-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.compact-table td { padding: .4rem 0; }
.is-disabled td { opacity: .6; }
.pill.pro-pill { background: var(--glow); color: var(--ink); }
.row-menu { position: relative; }
.row-menu summary { list-style: none; }
.row-menu summary::-webkit-details-marker { display: none; }
.row-menu .menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: 0 10px 30px rgba(29, 24, 56, .15); padding: .75rem 1rem; display: grid; gap: .6rem; min-width: 240px; }
.row-menu .menu a, .row-menu .menu .linkish { text-align: left; }
.delete-form { border-top: 1px solid var(--line); padding-top: .6rem; }
.delete-form input { min-height: 34px; flex: 1; min-width: 0; }
.danger-link { color: var(--bad); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; margin: 0 0 1rem; }
.kv dt { font-weight: 600; }
.kv dd { margin: 0; word-break: break-all; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
