:root {
  --bg: #0b0b10;
  --surface: #15151d;
  --surface-2: #1d1d28;
  --border: #2a2a38;
  --text: #f4f4f8;
  --muted: #9b9bb0;
  --accent: #ff3d81;
  --accent-2: #8b5cf6;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --radius: 14px;
  --gradient: linear-gradient(135deg, var(--accent), var(--accent-2));
  /* Under white text: 20 % darker, so the text stays readable (contrast above 4.5:1) */
  --gradient-strong: linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .2)), var(--gradient);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
}

[hidden] { display: none !important; }

a { color: var(--accent); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
h2 { font-size: 1.05rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-top: 2rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

main { max-width: 640px; margin: 0 auto; padding: 0 16px 6rem; }

/* -- form elements -------------------------------------------------------- */

input, textarea, select {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .75rem .9rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .25);
}
textarea { resize: vertical; min-height: 4.5rem; }
input[type="checkbox"], input[type="radio"] { width: auto; flex: none; accent-color: var(--accent); transform: scale(1.2); }
/* The -2..2 sliders (guests' mood, host genres) look the same in every browser: no field
   box around them, the knob reaches both ends, and the bar fills from the middle ("Egal")
   to the knob in the row's colour. --from/--to (0..1) come from Songrequest.stepRange. */
:root { --knob: 22px; }
.step-range {
  --range-color: var(--accent); --range-rest: rgba(255, 255, 255, .16); --from: .5; --to: .5;
  --bar: linear-gradient(to right,
    var(--range-rest) calc(var(--knob) / 2 + (100% - var(--knob)) * var(--from)),
    var(--range-color) 0, var(--range-color) calc(var(--knob) / 2 + (100% - var(--knob)) * var(--to)),
    var(--range-rest) 0);
  -webkit-appearance: none; appearance: none; display: block; box-sizing: border-box;
  width: 100%; height: calc(var(--knob) + 6px); padding: 0; margin: .4rem 0 0;
  border: 0; border-radius: 0; background: none; box-shadow: none; cursor: pointer;
}
.step-range:focus { box-shadow: none; }
.step-range:disabled { cursor: default; opacity: .55; }
.step-range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: var(--bar); }
.step-range::-moz-range-track { height: 6px; border-radius: 999px; background: var(--bar); }
.step-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; box-sizing: border-box;
  width: var(--knob); height: var(--knob); margin-top: calc((6px - var(--knob)) / 2);
  border-radius: 50%; background: var(--range-color); border: 3px solid var(--text);
  box-shadow: 0 1px 5px rgba(0, 0, 0, .5); transition: background .15s;
}
.step-range::-moz-range-thumb {
  box-sizing: border-box; width: var(--knob); height: var(--knob);
  border-radius: 50%; background: var(--range-color); border: 3px solid var(--text);
  box-shadow: 0 1px 5px rgba(0, 0, 0, .5);
}
.step-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(139, 92, 246, .55); }
.step-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(139, 92, 246, .55); }

label { display: block; font-size: .9rem; color: var(--muted); margin: .9rem 0 .35rem; }
label.check { display: flex; gap: .7rem; align-items: center; color: var(--text); font-size: 1rem; cursor: pointer; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  font: inherit; font-weight: 600; font-size: .92rem;
  color: #fff; background: var(--gradient-strong);
  border: 0; border-radius: 999px;
  padding: .55rem 1rem; min-height: 2.5rem;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: transform .1s, opacity .15s, filter .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.secondary { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn.ok { background: #065f46; color: #d1fae5; }
.btn.bad { background: #7f1d1d; color: #fee2e2; }
.btn.small { min-height: 2rem; padding: .3rem .75rem; font-size: .85rem; }
.btn.icon { width: 2.5rem; padding: 0; }
/* The guest's own vote in the queue: tap to take it back */
.btn.icon.voted { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn.block { width: 100%; min-height: 3rem; font-size: 1rem; }

.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .8rem; font-weight: 600;
  padding: .3rem .65rem; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--border);
  white-space: nowrap;
}
.badge.ok { color: var(--ok); border-color: rgba(52, 211, 153, .35); }
.badge.warn { color: var(--warn); border-color: rgba(251, 191, 36, .35); }
.badge.bad { color: #f87171; border-color: rgba(248, 113, 113, .4); }
.badge.bad { color: var(--bad); border-color: rgba(248, 113, 113, .35); }
.badge.accent { color: #fff; background: var(--gradient-strong); border-color: transparent; }

.notice {
  background: rgba(251, 191, 36, .1);
  border: 1px solid rgba(251, 191, 36, .35);
  color: var(--warn);
  border-radius: var(--radius);
  padding: .8rem 1rem;
  margin: 1rem 0;
}
.notice.error { background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .35); color: var(--bad); }

.hint { color: var(--muted); font-size: .9rem; margin: -.25rem 0 .75rem; }
.muted { color: var(--muted); }
.empty { color: var(--muted); text-align: center; padding: 1.5rem 0; }

/* -- track lists ---------------------------------------------------------- */

.list { display: flex; flex-direction: column; gap: .5rem; }

.track {
  display: flex; align-items: center; gap: .75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .7rem .75rem .7rem 1rem;
}
.track-main { flex: 1; min-width: 0; }
.track-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track.wish-row { border-style: dashed; background: transparent; }
/* A wish made without network, waiting to be sent */
.track.pending { border-style: dashed; opacity: .8; }
.track.pending .track-sub { white-space: normal; }
/* Funkloch-Modus: waiting for reception, or just sent after waiting */
.track-pending { color: var(--warn); font-size: .85rem; margin-top: .2rem; white-space: normal; }
.track-sent { color: var(--ok); font-size: .85rem; font-weight: 600; margin-top: .2rem; }
.offline-banner { margin: 0 0 1rem; font-size: .92rem; }
.offline-hint { margin: 0 0 .75rem; font-size: .9rem; }
.offline-top { margin: 1rem 0 .5rem; font-weight: 600; }
.dialog-offline { margin: 0 0 .4rem; color: var(--warn); font-size: .9rem; }
.mood-status { font-size: .8rem; min-height: 0; }
.mood-status:empty { display: none; }
.mood-status.waiting { color: var(--warn); margin: .1rem 0 .3rem; }
.mood-status.sent { color: var(--ok); font-weight: 600; margin: .1rem 0 .3rem; }
.did-you-mean { margin: .2rem 0 .6rem; }
.track-sub { color: var(--muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-actions { display: flex; gap: .4rem; align-items: center; flex-shrink: 0; }
.votes {
  min-width: 2.2rem; text-align: center; font-weight: 700; font-size: 1.05rem;
  background: var(--surface-2); border-radius: 10px; padding: .3rem .4rem;
}

/* -- guest page ----------------------------------------------------------- */

.hero {
  text-align: center;
  padding: 2.5rem 16px 1.5rem;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(139, 92, 246, .35), transparent 60%),
    radial-gradient(80% 60% at 85% 10%, rgba(255, 61, 129, .25), transparent 60%);
}
.eyebrow {
  margin: 0 0 .4rem; font-size: .8rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent);
}
.brand-logo { display: inline-block; margin-bottom: 1.1rem; }
.brand-logo img { display: block; width: auto; height: auto; max-width: 200px; max-height: 72px; }
.legal { max-width: 40rem; line-height: 1.55; }
.legal h2 { text-transform: none; letter-spacing: 0; color: var(--text); font-size: 1.05rem; margin: 1.6rem 0 .4rem; }
.legal p, .legal li { color: #d4d4e0; }
.legal ul { padding-left: 1.2rem; }
.legal-text { white-space: pre-line; color: #d4d4e0; }
.legal-address { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem 1rem; }
.legal a { color: var(--muted); }
.hero h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); margin: 0; }
.lead { color: #d4d4e0; max-width: 34rem; margin: .7rem auto 0; white-space: pre-line; }

.search-box {
  position: sticky; top: 0; z-index: 5;
  padding: .75rem 0;
  background: linear-gradient(var(--bg) 75%, transparent);
}
.search-box input {
  font-size: 1.05rem; padding: .95rem 1.1rem; border-radius: 999px;
  background: var(--surface-2);
}

#results:not(:empty) { margin-bottom: 1rem; }

.limit-info { color: var(--muted); font-size: .9rem; margin: 0 0 1rem; }

dialog {
  width: min(92vw, 440px);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.4rem;
}
dialog::backdrop { background: rgba(0, 0, 0, .65); backdrop-filter: blur(3px); }
dialog h3 { font-size: 1.2rem; }
/* What's new after logging in */
.news-dialog { width: min(92vw, 34rem); }
.news-body { max-height: 60vh; overflow-y: auto; padding: 0 .2rem .4rem 0; margin-bottom: .6rem; }
.news-body:focus:not(:focus-visible) { outline: none; }
.news-entry h4 { margin: 1rem 0 .3rem; font-size: 1rem; }
.news-entry:first-child h4 { margin-top: .3rem; }
.news-entry ul { margin: 0; padding-left: 1.2rem; }
.news-entry li { margin: .3rem 0; line-height: 1.45; }
.news-date { color: var(--muted); font-weight: 400; font-size: .9rem; }
.dialog-track { background: var(--surface-2); border-radius: 12px; padding: .75rem .9rem; margin: .5rem 0; }
.dialog-actions { display: flex; gap: .6rem; margin-top: 1.2rem; }
.dialog-actions .btn { flex: 1; min-height: 2.9rem; }

#toast {
  position: fixed; left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom));
  transform: translate(-50%, 150%);
  background: var(--surface-2); border: 1px solid var(--border);
  padding: .75rem 1.1rem; border-radius: 12px; /* a box, not a pill: several lines stay readable */
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  opacity: 0; visibility: hidden;
  transition: transform .25s ease, opacity .25s, visibility .25s;
  z-index: 50; max-width: calc(100vw - 32px); text-align: center;
}
#toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
#toast.error { border-color: rgba(248, 113, 113, .5); color: var(--bad); }
#toast .toast-action {
  margin-left: .6rem; font: inherit; font-weight: 700; color: var(--accent); background: none; border: 0;
  padding: .2rem .4rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}

footer { text-align: center; color: #8a8aa0; font-size: .78rem; padding: 2rem 16px 3rem; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.guest-tabs { margin: 1.25rem 0 1rem; }
.tab-panel > .hint:first-child { margin: 0 0 1rem; }
.tab-panel h2 { margin-top: 0; }
.tab-panel > section:not([hidden]) ~ section:not([hidden]) { margin-top: 2rem; }
.dialog-note { color: var(--muted); font-size: .85rem; margin: .9rem 0 0; text-align: center; }
.dialog-step { margin: .2rem 0 .4rem; color: var(--accent); font-weight: 700; font-size: .95rem; }
.name-field { border-color: var(--accent); }
.guest-tabs { gap: .3rem; }
.guest-tabs .tab { flex: 1 1 auto; text-align: center; padding: .45rem .55rem; font-size: .86rem; }
.mood-list { display: grid; gap: .6rem; }
.mood-row { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .6rem .9rem .35rem; }
.mood-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.mood-name { font-weight: 600; }
.mood-value { color: var(--muted); font-size: .85rem; }
.mood-value.more { color: var(--ok); }
.mood-value.less { color: var(--bad); }
/* The bar takes the colour of the word next to it */
.mood-row:has(.mood-value.more) .step-range { --range-color: var(--ok); }
.mood-row:has(.mood-value.less) .step-range { --range-color: var(--bad); }
.mood-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: .72rem; }
.mood-board { display: grid; gap: .9rem; margin: .5rem 0 1rem; }
.mood-track { position: relative; height: .7rem; background: var(--surface-2); border-radius: 999px; margin: .35rem 0 .2rem; overflow: hidden; }
.mood-mid { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--border); }
.mood-bar { position: absolute; top: 0; bottom: 0; }
.mood-bar.more { background: var(--ok); border-radius: 0 999px 999px 0; }
.mood-bar.less { background: var(--bad); border-radius: 999px 0 0 999px; }
.track-note { color: var(--muted); font-size: .85rem; margin-top: .2rem; font-style: italic; }
.note-form { display: flex; gap: .5rem; flex-wrap: wrap; width: 100%; }
.note-form input { flex: 1 1 14rem; }

/* -- admin ---------------------------------------------------------------- */

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 16px; border-bottom: 1px solid var(--border);
  background: rgba(11, 11, 16, .9); position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(8px);
}
.topbar { flex-wrap: wrap; row-gap: .5rem; }
.topnav { display: flex; gap: .2rem; margin-left: auto; margin-right: .5rem; }
@media (max-width: 560px) {
  /* Wraps instead of scrolling sideways (the operator has seven entries) */
  .topnav { order: 3; width: 100%; margin: 0; flex-wrap: wrap; row-gap: .2rem; }
  .topbar .topnav a { padding: .35rem .5rem; }
}
.topnav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; padding: .35rem .6rem; border-radius: 999px; }
.topnav a.active { color: var(--text); background: var(--surface-2); }
/* Switches between the DJ tools: Lieder wünschen (the dashboard) and Playlist Übertrag */
/* margin-right: auto keeps it next to the logo on every tool page; the rest goes right */
.toolswitch { display: flex; gap: .15rem; padding: .2rem; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; margin-right: auto; }
.toolswitch a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .86rem; padding: .3rem .8rem; border-radius: 999px; white-space: nowrap; }
.toolswitch a:hover { color: var(--text); }
.toolswitch a[aria-current="page"] { color: #fff; background: var(--gradient-strong); }
@media (max-width: 560px) {
  /* Three tools: the switcher gets its own row and scrolls sideways if it must */
  .toolswitch { order: 2; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .toolswitch::-webkit-scrollbar { display: none; }
  .toolswitch a { padding: .3rem .55rem; font-size: .82rem; }
}
.logo-preview { display: flex; align-items: center; justify-content: center; min-height: 90px; background: var(--bg); border: 1px dashed var(--border); border-radius: var(--radius); padding: 1rem; margin: .5rem 0 .75rem; }
.logo-preview img { max-width: 220px; max-height: 80px; }
.color-row { display: flex; gap: .6rem; align-items: center; }
.color-row input[type=color] { width: 3rem; height: 2.6rem; padding: .15rem; flex: none; }
.dj-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .75rem 0; border-top: 1px solid var(--border); }
.dj-row:first-child { border-top: 0; }
.dj-row .grow { flex: 1 1 12rem; min-width: 0; }
.dj-row .track-sub { white-space: normal; }
.brand { font-weight: 800; letter-spacing: .02em; text-decoration: none; color: var(--text); font-size: 1.1rem; }
.brand span { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

body.admin main { max-width: 960px; padding-top: 1.25rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: .75rem; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .75rem; }
.stat { background: var(--surface-2); border-radius: 12px; padding: .8rem 1rem; }
.stat-value { font-size: 1.5rem; font-weight: 700; }
.stat-label { color: var(--muted); font-size: .82rem; }

.event-row {
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem 1rem; border-radius: 12px; background: var(--surface-2);
  text-decoration: none; color: var(--text); margin-bottom: .5rem;
}
.event-row:hover { outline: 1px solid var(--accent-2); }
.event-row .grow { flex: 1; min-width: 0; }

.row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.row.spread { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

.tabs { display: flex; gap: .35rem; overflow-x: auto; margin: 1rem 0; padding-bottom: .25rem; }
.tab {
  font: inherit; font-weight: 600; font-size: .92rem;
  background: transparent; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px;
  padding: .45rem .95rem; cursor: pointer; white-space: nowrap;
}
.tab.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.tab .count { opacity: .7; margin-left: .25rem; }

.request {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .85rem 1rem; margin-bottom: .6rem;
}
.request-head { display: flex; gap: .85rem; align-items: center; }
.request-when { flex: none; align-self: flex-start; color: var(--muted); font-size: .78rem; white-space: nowrap; }
.track-main.copy { font: inherit; color: inherit; text-align: left; background: none; border: 0; padding: .15rem .3rem; margin: -.15rem -.3rem; border-radius: 8px; cursor: copy; flex: 1; min-width: 0; }
.track-main.copy:hover { background: var(--surface-2); }
.request-where { margin-top: .3rem; color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-summary.ok { border-color: rgba(52, 211, 153, .5); }
.status-summary.warn { border-color: rgba(251, 191, 36, .6); }
.status-summary ul, .problems { margin: .4rem 0; padding-left: 1.1rem; }
.problems li { margin: .3rem 0; font-size: .88rem; overflow-wrap: anywhere; }
.status-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.status-table th { text-align: left; color: var(--muted); font-weight: 500; padding: .35rem .8rem .35rem 0; vertical-align: top; width: 40%; }
.status-table td { padding: .35rem 0; overflow-wrap: anywhere; }
/* Event list: a row with an action beside it (archive / restore) */
.event-line { display: flex; align-items: center; gap: .5rem; }
.event-line .event-row { flex: 1; min-width: 0; }
.event-line .btn { flex: none; }
details.archive { margin-top: 1rem; }
details.archive summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.request-facts { margin-top: .45rem; color: var(--muted); font-size: .84rem; }
.request-flag { margin-top: .45rem; }
.voters { margin-top: .45rem; font-size: .88rem; color: #cfcfdc; }
.voters .msg { color: var(--muted); font-style: italic; }
/* One guest: name, message, marks of the word filter and what the DJ can do */
.voter { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .45rem; }
.voter + .voter { margin-top: .15rem; }
.badge.mini { font-size: .7rem; padding: .05rem .45rem; font-weight: 600; }
/* Caught by the word filter or hidden by the DJ: blurred until tapped */
.filtered { filter: blur(5px); cursor: pointer; border-radius: 4px; user-select: none; transition: filter .15s; }
.filtered.revealed { filter: none; user-select: auto; }
.filtered:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vote-action { font: inherit; font-size: .75rem; color: var(--muted); background: none; border: 0; padding: .1rem .25rem; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.vote-action:hover { color: var(--text); }
/* The word filter's test field in the profile */
.word-test { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.word-test input { flex: 1; min-width: 12rem; }
.word-test-result { margin: .5rem 0 0; font-size: .9rem; }
.word-test-result.ok { color: var(--ok); }
.word-test-result.bad { color: var(--bad); }
.request-actions { display: flex; gap: .4rem; margin-top: .7rem; flex-wrap: wrap; }

.url-box {
  display: flex; gap: .5rem; align-items: center;
  background: var(--surface-2); border-radius: 12px; padding: .5rem .5rem .5rem .9rem;
  overflow: hidden; margin-top: .75rem;
}
/* The address gives way on narrow screens, the buttons stay whole */
.url-box span, .url-box code {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88rem;
}

.qr-preview { background: #fff; border-radius: 16px; padding: 1rem; width: min(100%, 320px); }
.qr-preview img { display: block; width: 100%; height: auto; }

.playlist-picker { max-height: 320px; overflow-y: auto; border: 1px solid var(--border); border-radius: 12px; padding: .25rem .75rem; margin-top: .5rem; }
.playlist-picker label.check { margin: .55rem 0; font-size: .95rem; }
.playlist-picker .count { color: var(--muted); font-size: .82rem; margin-left: auto; }


.login { max-width: 380px; margin: 12vh auto 0; }

.live-dot {
  display: inline-block; width: .55rem; height: .55rem; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6);
  animation: pulse 2s infinite;
}
.live-dot.off { background: var(--bad); animation: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); }
  70% { box-shadow: 0 0 0 .5rem rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* -- poster (printed A4, drawn from its design by poster-render.js) -------- */

body.poster { background: #1b1b1f; color: #f4f4f4; padding: 24px 16px; }
.poster-stage { width: min(100%, 1200px); margin: 0 auto; }
.poster-portrait .poster-stage { width: min(100%, 820px, calc((100vh - 140px) * 210 / 297)); min-width: min(100%, 320px); }
.poster-sheet { box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.poster-toolbar { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.poster-toolbar [aria-current="page"] { border-color: var(--accent); }

@media print {
  html, body.poster { margin: 0; padding: 0; background: none; }
  .poster-stage, .poster-portrait .poster-stage { width: 297mm; min-width: 0; margin: 0; }
  .poster-portrait .poster-stage { width: 210mm; }
  .poster-sheet { width: 297mm; height: 210mm; aspect-ratio: auto; box-shadow: none; }
  .poster-portrait .poster-sheet { width: 210mm; height: 297mm; }
  .poster-toolbar { display: none; }
}

.spacer { margin-top: 1.1rem; }

/* -- contract (printable, light) ------------------------------------------- */

body.paper { background: #fff; color: #111; max-width: 52rem; margin: 0 auto; padding: 1.5rem 16px 3rem; }
.paper-toolbar { display: flex; gap: .6rem; margin-bottom: 1.5rem; }
.contract { line-height: 1.5; font-size: .95rem; }
.contract h1 { font-size: 1.45rem; margin-bottom: .2rem; overflow-wrap: anywhere; hyphens: auto; }
.contract-box .contract h1 { font-size: 1.15rem; }
.contract h2 { text-transform: none; letter-spacing: 0; color: #111; font-size: 1.05rem; margin: 1.5rem 0 .4rem; }
.contract-version { color: #555; margin-top: 0; }
.contract-party { border-left: 3px solid #999; padding-left: .8rem; }
.contract table { width: 100%; border-collapse: collapse; margin: .5rem 0; font-size: .88rem; }
.contract th, .contract td { border: 1px solid #ccc; padding: .4rem .5rem; text-align: left; vertical-align: top; }
.contract th { background: #f2f2f2; }
.contract ol { padding-left: 1.3rem; }
.contract-proof { color: #555; font-size: .78rem; word-break: break-all; margin-top: 2rem; border-top: 1px solid #ccc; padding-top: .6rem; }
.contract-box { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; max-height: 60vh; overflow: auto; }
.contract-box .contract h2, .contract-box .contract-proof, .contract-box .contract-version { color: var(--text); }
.contract-box .contract th { background: var(--surface-2); }
.contract-box .contract th, .contract-box .contract td { border-color: var(--border); }
/* On a phone the tables fit the box: long words break (with a hyphen where the browser can) */
.contract-box .contract th, .contract-box .contract td { overflow-wrap: anywhere; hyphens: auto; }
@media print {
  .paper-toolbar { display: none; }
  body.paper { padding: 0; }
}

details { margin: .5rem 0; }
details summary { cursor: pointer; color: var(--muted); font-weight: 600; }
details ul { margin: .5rem 0 0; padding-left: 1.2rem; color: var(--muted); font-size: .9rem; }
details li { margin-bottom: .35rem; }
.pre { white-space: pre-line; }
.radios { display: grid; gap: .1rem; margin-bottom: .25rem; }
.progress { height: 8px; border-radius: 99px; background: var(--border); overflow: hidden; margin-top: .75rem; }
.progress-bar { height: 100%; width: 0; background: var(--gradient); transition: width .2s; }
.steps { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .75rem; }
.steps li { display: flex; gap: .75rem; align-items: flex-start; }
.steps li p { margin: .15rem 0 0; }
.step-mark { flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); font-weight: 700; font-size: .9rem; }
.steps li.done .step-mark { background: var(--gradient-strong); border-color: transparent; color: #fff; }
.steps li.done strong, .steps li.done strong a { color: var(--muted); }
details.faq { border-top: 1px solid var(--border); padding: .6rem 0; }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { margin: .5rem 0 0; color: var(--muted); }
.hero { position: relative; }
.lang-switch {
  position: absolute; top: max(12px, env(safe-area-inset-top)); right: 16px;
  font: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .05em;
  color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: 99px; padding: .3rem .7rem; cursor: pointer; text-decoration: none;
}
.lang-switch:hover { border-color: var(--muted); }
select.lang-switch { width: auto; appearance: none; -webkit-appearance: none; text-align: center; padding: .3rem .7rem; }
input[type="radio"] { border-radius: 50%; }
.playlist-picker label.folder { font-weight: 600; }
/* Event tabs: all visible at once, no sideways scrolling; three per row on phones */
.event-tabs { flex-wrap: wrap; overflow: visible; }
@media (max-width: 640px) {
  .event-tabs { display: grid; grid-template-columns: repeat(3, 1fr); }
  .event-tabs .tab { padding: .5rem .3rem; font-size: .84rem; text-align: center; overflow: hidden; text-overflow: ellipsis; }
}
.label-short { display: none; }
@media (max-width: 640px) {
  .label-long { display: none; }
  .label-short { display: inline; }
}

/* -- event head: open/closed switch ---------------------------------------- */
.event-head { display: flex; gap: 1rem; align-items: flex-start; }
.event-head .grow { flex: 1; min-width: 0; }
.event-head > .btn { flex: none; }
.event-head h1 { margin: .2rem 0 0; }
.back-link { font-size: .9rem; }
.event-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1rem; }
.open-switch {
  display: flex; align-items: center; gap: .8rem; flex: 1 1 260px; text-align: left;
  font: inherit; color: var(--text); cursor: pointer;
  background: rgba(248, 113, 113, .08); border: 1px solid rgba(248, 113, 113, .35);
  border-radius: 16px; padding: .7rem .9rem;
}
.open-switch.on { background: rgba(52, 211, 153, .08); border-color: rgba(52, 211, 153, .35); }
.switch-track {
  flex: none; position: relative; width: 3rem; height: 1.7rem; border-radius: 99px;
  background: #3a3a46; transition: background .2s;
}
.switch-knob {
  position: absolute; top: .2rem; left: .2rem; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: #fff; transition: transform .2s;
}
.open-switch.on .switch-track { background: var(--ok); }
.open-switch.on .switch-knob { transform: translateX(1.3rem); }
.switch-text { display: grid; gap: .1rem; }
.switch-text strong { font-size: 1rem; }
.switch-text small { color: var(--muted); font-size: .8rem; }
.awake-badge { color: var(--muted); font-size: .8rem; }

/* -- booth mode: big and only what matters at the decks --------------------- */
body.booth .topbar, body.booth .back-link, body.booth .request-facts,
body.booth .request-when, body.booth > footer { display: none; }
body.booth main, body.booth #app { max-width: none; }
body.booth .event-head h1 { font-size: 1.4rem; }
body.booth .request { padding: 1.1rem 1.2rem; }
body.booth .request .track-title { font-size: 1.45rem; white-space: normal; }
body.booth .request .track-sub { font-size: 1.1rem; }
body.booth .request .votes { font-size: 1.4rem; min-width: 3rem; height: 3rem; }
body.booth .voters { font-size: 1rem; }
body.booth .request-actions .btn { font-size: 1.05rem; padding: .75rem 1.3rem; }

/* -- events list and create form ------------------------------------------- */
.create-row { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; }
.create-row .grow { flex: 1 1 220px; }
.create-row > div:not(.grow) { flex: 0 1 170px; }
.create-row label { margin-top: 0; }
.list-label { color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin: 1rem 0 .4rem; }
.list-label:first-of-type { margin-top: .25rem; }
.chevron { color: var(--muted); font-size: 1.4rem; line-height: 1; }
.logo-row { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
.logo-row .logo-preview { margin: 0; flex: 1 1 220px; }

/* settings: grouped sections */
.settings-group { border-top: 1px solid var(--border); margin-top: 1.4rem; padding-top: .4rem; }
.settings-group > h4 { margin: .6rem 0 .1rem; font-size: 1rem; }
.settings-group > .hint:first-of-type { margin-top: .2rem; }
.sticky-save { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--surface) 35%); padding: 1rem 0 .25rem; }

/* -- report after an event (printable, light) ------------------------------- */
.report h1 { margin: .2rem 0; }
.report h2 { color: #111; font-size: 1.1rem; margin: 2rem 0 .75rem; text-transform: none; letter-spacing: 0; }
.report .muted { color: #666; }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; border-bottom: 3px solid #111; padding-bottom: 1rem; }
.report-eyebrow { margin: 0; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #666; }
.report-logo { max-height: 56px; max-width: 200px; background: #111; padding: .5rem .8rem; border-radius: 8px; }
.report-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin-top: 1.5rem; }
.report-stat { border: 1px solid #ddd; border-radius: 12px; padding: .9rem 1rem; display: grid; gap: .15rem; }
.report-stat strong { font-size: 1.8rem; }
.report-stat span { color: #555; font-size: .85rem; }
.report-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.report-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: #666; border-bottom: 1px solid #ccc; padding: .4rem .5rem; }
.report-table td { border-bottom: 1px solid #eee; padding: .5rem; vertical-align: top; }
.report-table td:first-child { width: 2rem; color: #666; }
.report-chart { display: flex; align-items: flex-end; gap: 4px; height: 160px; border-bottom: 1px solid #ccc; }
.report-bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; padding-bottom: 1.2rem; }
.report-bar { width: 100%; max-width: 40px; background: #111; border-radius: 4px 4px 0 0; }
.report-bar-value { font-size: .72rem; color: #444; }
.report-bar-label { position: absolute; bottom: 0; font-size: .72rem; color: #666; }
.report-played { padding-left: 1.4rem; font-size: .92rem; }
.report-played li { margin: .2rem 0; }
.report-foot { margin-top: 2.5rem; font-size: .82rem; }
@media print { .report h2 { break-after: avoid; } .report-table tr { break-inside: avoid; } }

/* Guest: news about the guest's own wish */
.wish-news {
  position: sticky; top: max(8px, env(safe-area-inset-top)); z-index: 5; cursor: pointer;
  margin: 0 0 1rem; padding: .9rem 1rem; border-radius: 14px; font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .4); animation: news-in .35s ease-out;
  white-space: pre-line; /* several sent wishes at once, one per line */
}
.wish-news.ok { background: var(--gradient-strong); color: #fff; }
.wish-news.bad { background: var(--surface-2); border: 1px solid rgba(248, 113, 113, .45); }
.wish-news.info { background: var(--surface-2); border: 1px solid var(--accent); }
@keyframes news-in { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
.report-head > div { min-width: 0; }
@media (max-width: 520px) { .report-head { flex-direction: column-reverse; } }
.install-steps { padding-left: 1.2rem; font-size: .88rem; color: var(--muted); }
.install-steps li { margin: .35rem 0; }
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .75rem; margin-top: .75rem; }
.download-box { border: 1px solid var(--border); border-radius: 14px; padding: .9rem; }
.download-box .install-steps { margin: .75rem 0 0; }

/* Subscription */
#billing-banner { max-width: 960px; margin: 1.25rem auto 0; padding: 0 16px; }
#billing-banner .notice { margin-bottom: 0; }
.abo-list { margin: .5rem 0 0; padding-left: 1.2rem; color: var(--muted); }
.abo-list li { margin: .2rem 0; }
.install-card { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.install-card[hidden] { display: none; }

/* Login, sign-up, forgotten password */
.login .hint a, .login-links a { color: var(--text); }
.login-links { display: flex; flex-direction: column; align-items: center; gap: .45rem; margin: 1.1rem 0 0; color: var(--muted); font-size: .92rem; text-align: center; }
.login-signup { display: flex; flex-direction: column; align-items: center; gap: .3rem; margin: 1.25rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--border); text-align: center; color: var(--muted); font-size: .92rem; }
.login-signup strong { color: var(--text); font-size: 1rem; }
.login-signup .btn { margin-top: .5rem; text-decoration: none; }
.login label.check { margin-top: 1rem; font-size: .92rem; }
.login label.check a { color: var(--text); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.login .hint { margin-top: .9rem; }
.mail-tech { margin: .5rem 0 0; font-size: .85rem; word-break: break-word; }
.mail-tech code { font-family: ui-monospace, monospace; }

/* Tablet display: preview and settings */
.display-preview { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); background: #000; margin: .75rem 0; }
.display-frame { position: absolute; top: 0; left: 0; width: 1280px; height: 800px; border: 0; transform-origin: 0 0; pointer-events: none; }
.display-qr { display: flex; align-items: center; gap: 1rem; margin-top: .75rem; }
.display-qr img { width: 140px; height: 140px; background: #fff; padding: 8px; border-radius: 10px; flex: none; }
.display-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin-top: .75rem; }
.display-grid input[type="color"] { width: 100%; height: 2.4rem; padding: .15rem; margin-top: .4rem; }
.num-input { max-width: 7rem; }

/* -- host page (e.g. the bridal couple's list) ------------------------------ */

.host-intro { margin: 0 0 1rem; color: var(--muted); }
.host-section h2 { margin-top: 0; color: var(--text); font-size: 1.15rem; text-transform: none; letter-spacing: 0; }
.host-results { margin: .4rem 0 .2rem; }
.host-results:empty { display: none; }
/* Search results on the host lists: long titles wrap instead of being cut off */
.host-results .track-title, .host-results .track-sub { white-space: normal; overflow-wrap: anywhere; }
.host-results .track-main { min-width: 0; }
.host-list + .hint { margin-top: .6rem; }
.host-free { margin: .6rem 0 .2rem; }
.host-free summary { cursor: pointer; color: var(--accent); font-size: .92rem; }
.host-free-form { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.host-free-form input { flex: 1 1 12rem; }
.host-list { margin-top: .8rem; }
.host-item { flex-wrap: wrap; }
.host-item .track-main { flex: 1 1 13rem; min-width: 0; }
.host-item .track-title, .host-item .track-sub { white-space: normal; }
.host-item-extra { display: flex; gap: .4rem; align-items: center; flex: 1 1 13rem; justify-content: flex-end; }
.host-note { flex: 1 1 10rem; padding: .45rem .7rem; font-size: .88rem; border-radius: 10px; }
.host-note-wide { min-height: 0; resize: vertical; line-height: 1.35; }
.host-item.is-played .track-title { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .35); }
/* Guided mode of the host page: welcome, progress, one step at a time, summary */
.host-modebar { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 0 .25rem; margin: -.4rem 0 .3rem; }
.host-link-btn {
  font: inherit; font-weight: 600; font-size: .92rem; color: var(--accent); background: none; border: 0;
  min-height: 2.75rem; padding: .5rem .65rem; border-radius: 10px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.host-link-btn:hover { background: var(--surface-2); }
body.host :is(.btn, .host-link-btn, .chip-toggle, summary):focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }
/* Headings take the focus on every step: for screen readers, no ring needed */
body.host h2[tabindex="-1"]:focus { outline: none; }
.host-welcome { border-left: 3px solid var(--accent); padding-top: 1.3rem; padding-bottom: 1.3rem; }
.host-welcome h2, .host-done h2, .host-summary-card h2 { margin: 0 0 .5rem; color: var(--text); font-size: 1.3rem; text-transform: none; letter-spacing: 0; }
.host-welcome-lead { margin: 0 0 1.1rem; color: #d4d4e0; font-size: 1.05rem; }
.host-welcome-steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1.1rem; display: grid; gap: .65rem; }
.host-welcome-steps li { counter-increment: step; display: grid; grid-template-columns: 2rem 1fr; column-gap: .7rem; align-items: center; }
.host-welcome-steps li::before {
  content: counter(step); grid-row: span 2; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: .9rem; color: var(--accent); background: var(--surface-2); border: 1px solid var(--border);
}
.host-welcome-steps strong { line-height: 1.25; }
.host-welcome-steps span { color: var(--muted); font-size: .88rem; line-height: 1.3; }
/* Each step of the welcome list leads right to it */
.host-welcome-step {
  display: grid; grid-template-columns: 1fr auto; column-gap: .5rem; align-items: center; width: 100%;
  margin: -.2rem -.35rem; padding: .2rem .35rem; font: inherit; color: inherit; text-align: left;
  background: none; border: 0; border-radius: 10px; cursor: pointer;
}
.host-welcome-step > :not(.host-welcome-go) { grid-column: 1; }
.host-welcome-step .host-welcome-go { grid-column: 2; grid-row: 1 / span 2; color: var(--muted); font-size: 1.3rem; line-height: 1; }
.host-welcome-step:hover { background: var(--surface-2); }
.host-welcome-step:hover strong { text-decoration: underline; text-underline-offset: 3px; }
body.host .host-welcome-step:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.host-welcome-actions { display: grid; gap: .6rem; justify-items: center; margin-top: 1.2rem; }
.host-welcome-actions .btn.block, .host-step-buttons .btn { min-height: 3rem; font-size: 1rem; }
.host-progress { margin: 0 0 .9rem; scroll-margin-top: .5rem; }
.host-progress-label { margin: 0 0 .45rem; font-weight: 700; font-size: .92rem; }
.host-progress-bar { display: flex; gap: 5px; }
.host-progress-bar i { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.host-progress-bar i.done { background: var(--accent); box-shadow: none; opacity: .6; }
.host-progress-bar i.current { background: var(--gradient); box-shadow: none; }
.host-step-nav { margin: 1.2rem 0 0; }
.host-step-buttons { display: grid; grid-template-columns: 1fr 2fr; gap: .6rem; margin-top: 1rem; }
.host-skip { display: block; margin: .35rem auto 0; color: var(--muted); }
.host-done { text-align: center; padding: 1.4rem 1.2rem; border-color: rgba(52, 211, 153, .45); scroll-margin-top: .5rem;
  background: linear-gradient(rgba(52, 211, 153, .1), rgba(52, 211, 153, .02)), var(--surface); }
.host-done p { margin: 0 auto; max-width: 30rem; color: #d4d4e0; }
.host-done-icon {
  width: 3.2rem; height: 3.2rem; margin: 0 auto .8rem; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.6rem; font-weight: 700; color: #052e1f; background: var(--ok);
}
.host-done.is-empty { border-color: var(--border); background: var(--surface); }
.host-done.is-empty .host-done-icon { color: var(--accent); background: var(--surface-2); }
.host-summary { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; gap: .5rem; }
/* Mark, step and button in one row; what was entered below, as wide as it gets */
.host-summary-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .15rem .7rem;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: .6rem .6rem .7rem .85rem;
}
.host-summary-mark {
  grid-column: 1; grid-row: 1; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center;
  font-size: .85rem; font-weight: 700; color: var(--ok); background: rgba(52, 211, 153, .14); border: 1px solid rgba(52, 211, 153, .45);
}
.host-summary-item.is-empty .host-summary-mark { background: transparent; border: 1px dashed var(--muted); }
.host-summary-item h3 { grid-column: 2; grid-row: 1; margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.host-summary-item .btn { grid-column: 3; grid-row: 1; }
.host-summary-lines { grid-column: 2 / 4; grid-row: 2; }
.host-summary-lines p { margin: .1rem 0 0; color: #d4d4e0; font-size: .9rem; overflow-wrap: anywhere; }
.host-summary-item.is-empty .host-summary-lines p { color: var(--muted); }
/* Big enough to hit with a thumb: most hosts are on their phone */
body.host .btn.small:not(.icon) { min-height: 2.75rem; padding: .45rem 1rem; }
body.host .btn.icon, body.host .genre-tags .btn.icon { width: 2.75rem; min-height: 2.75rem; padding: 0; }
body.host .chip-toggle { min-height: 2.75rem; padding: .5rem .9rem; }
body.host .host-free summary { padding: .7rem 0; }
body.host .host-free { margin: .2rem 0 0; }
body.host .host-moods label.check { min-height: 2.75rem; margin: 0; }
body.host .host-note { min-height: 2.75rem; }
/* Genre sliders (host link and the DJ's "Gastgeber" tab): five steps, colour follows the step */
.genre-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .5rem; }
.genre-row { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: .6rem .8rem .4rem; }
/* A long name keeps its words; the small labels next to it move to the next line instead */
.genre-head { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .45rem; }
.genre-head strong { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; }
.genre-tags { display: inline-flex; align-items: center; gap: .4rem; margin-left: auto; }
.genre-tags .btn.icon { width: 2rem; min-height: 2rem; }
.genre-value { flex: none; font-size: .82rem; font-weight: 700; color: var(--muted); }
.genre-examples { color: var(--muted); font-size: .82rem; margin-top: .15rem; }
.genre-row .step-range { --range-color: var(--muted); }
/* Five dots under the slider: one per step, right under the knob's stops (half a knob in) */
.genre-ticks { display: flex; justify-content: space-between; padding: 0 calc(var(--knob) / 2 - 2px); margin: .1rem 0 .15rem; }
.genre-ticks i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); opacity: .7; }
.genre-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: .74rem; }
.genre-row[data-level="-2"] { border-color: rgba(248, 113, 113, .55); }
.genre-row[data-level="-2"] .genre-value { color: var(--bad); }
.genre-row[data-level="-2"] .step-range, .genre-row[data-level="-1"] .step-range { --range-color: var(--bad); }
.genre-row[data-level="-1"] .genre-value { color: #fca5a5; }
.genre-row[data-level="1"] .genre-value { color: #6ee7b7; }
.genre-row[data-level="2"] { border-color: rgba(52, 211, 153, .55); }
.genre-row[data-level="2"] .genre-value { color: var(--ok); }
.genre-row[data-level="1"] .step-range, .genre-row[data-level="2"] .step-range { --range-color: var(--ok); }
.genre-add { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.genre-add input { flex: 1 1 12rem; }
.genre-sliders + .hint { margin-top: .7rem; }
/* The DJ's overview: the steps as rows of chips */
.genre-groups { display: grid; gap: .45rem; margin: .3rem 0 .6rem; }
.genre-group { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.genre-group > span:first-child { flex: none; min-width: 7.5rem; font-size: .85rem; font-weight: 700; }
.genre-group.l-2 > span:first-child { color: var(--bad); }
.genre-group.l-1 > span:first-child { color: #fca5a5; }
.genre-group.l1 > span:first-child { color: #6ee7b7; }
.genre-group.l2 > span:first-child { color: var(--ok); }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip-toggle {
  font: 600 .82rem/1 inherit; padding: .45rem .7rem; border-radius: 999px; cursor: pointer;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--border);
}
.chip-toggle.on { color: var(--text); border-color: var(--bad); background: rgba(248, 113, 113, .12); }
/* A choice the hosts like (dinner styles): the accent instead of red */
.chip-toggle.pick.on { border-color: var(--accent); background: rgba(255, 61, 129, .14); }
.chip-toggle:disabled { opacity: .6; cursor: default; }
.host-fieldset { border: 0; padding: 0; margin: .5rem 0 .9rem; min-width: 0; }
.host-fieldset > legend { padding: 0; margin-bottom: .45rem; font-weight: 600; font-size: .92rem; color: var(--text); }
.host-moods { display: grid; gap: .1rem; }
.host-moods label.check { margin: .2rem 0; color: var(--text); }
.host-label { margin-top: 1rem; color: var(--text); font-weight: 600; }
.host-sections { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.2rem; margin: .8rem 0 .4rem; }
.host-sections .hint { margin: 0; }
.host-sections label.check { margin: 0; font-size: .95rem; }
.dinner-summary { display: grid; gap: .5rem; margin-bottom: .6rem; }
.dinner-summary p { margin: 0; }
.host-check { display: flex; align-items: center; margin: 0; padding: 0 .3rem; cursor: pointer; }
.host-check input { transform: scale(1.5); }
.host-moment { font-size: .85rem; color: var(--accent); margin-top: .15rem; }
.host-badges:empty { display: none; }
.host-badges { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: .25rem; }
.demo-note { margin: .6rem 0 0; font-size: .88rem; }
/* The display card's full-screen help (same text as on the display itself) */
.display-help { margin: .9rem 0 .2rem; border: 1px solid var(--border); border-radius: 12px; padding: .7rem .9rem; background: var(--surface-2); }
.display-help > summary { cursor: pointer; font-weight: 700; color: var(--accent); }
.display-help[open] > summary { margin-bottom: .7rem; }
.dh-tabs { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .7rem; }
.dh-tab {
  font: 600 .85rem/1 inherit; padding: .5rem .85rem; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted); border: 1px solid var(--border);
}
.dh-tab[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.dh-panel[hidden] { display: none; }
.dh-title { margin: 0 0 .2rem; font-size: .98rem; }
.dh-intro, .dh-note { color: var(--muted); font-size: .9rem; margin: 0 0 .5rem; }
.dh-steps { margin: 0 0 .6rem; padding-left: 1.3rem; display: grid; gap: .4rem; font-size: .92rem; line-height: 1.45; }
.demo-note .demo-fresh { margin-left: .2rem; vertical-align: middle; }

/* -- setup assistant ------------------------------------------------------ */

.wizard { max-width: 640px; margin: 0 auto; }
.wizard h2 { color: var(--text); text-transform: none; letter-spacing: 0; font-size: 1.35rem; margin-top: 1.2rem; }
.wizard-steps { display: flex; gap: .4rem; list-style: none; padding: 0; margin: .4rem 0 0; flex-wrap: wrap; }
.wizard-steps li { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--muted); padding: .3rem .6rem .3rem .3rem; border-radius: 999px; background: var(--surface-2); }
.wizard-steps li span { display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--border); color: var(--text); font-weight: 700; font-size: .75rem; }
.wizard-steps li.current { color: var(--text); }
.wizard-steps li.current span { background: var(--gradient); }
.wizard-steps li.done span { background: var(--ok); color: #062; }
.wizard-choices { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 1rem 0; }
.wizard-choice { display: block; padding: 1rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-2); color: var(--text); text-decoration: none; }
.wizard-choice:hover { border-color: var(--accent-2); }
.wizard-choice strong { display: block; margin-bottom: .3rem; }
.wizard-choice span { color: var(--muted); font-size: .9rem; }
.wizard-list { padding-left: 1.2rem; line-height: 1.6; }
.wizard input[type="color"] { width: 4rem; height: 2.6rem; padding: .2rem; }

/* Guest page: first-visit explanation, bigger buttons on small phones */
.intro-card { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: .9rem 1rem; margin-bottom: 1rem; }
.intro-card h2 { margin: 0 0 .4rem; color: var(--text); text-transform: none; letter-spacing: 0; font-size: 1rem; }
.intro-card ol { margin: 0 0 .7rem; padding-left: 1.2rem; line-height: 1.5; font-size: .95rem; }
.intro-card li { margin: .15rem 0; }
@media (max-width: 480px) {
  body.guest .track-actions .btn, body.guest .dialog-actions .btn { min-height: 2.9rem; padding-left: 1.05rem; padding-right: 1.05rem; }
  body.guest .tab { min-height: 2.6rem; }
}
.free-box { margin-top: .5rem; }
.free-box summary { cursor: pointer; color: var(--accent); font-size: .88rem; }
.free-box input[type="date"] { width: auto; padding: .4rem .6rem; }

/* -- feedback button on DJ pages -------------------------------------------- */
.fb-button {
  position: fixed; right: 14px; bottom: 14px; z-index: 30; cursor: pointer;
  font: 600 .82rem/1 system-ui, sans-serif; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 999px; padding: .55rem .85rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .4); opacity: .85;
}
.fb-button:hover { opacity: 1; border-color: var(--accent-2); }
/* Phones: only the bubble, so it covers less */
@media (max-width: 600px) { .fb-button { padding: .6rem; font-size: 1.05rem; } .fb-label { display: none; } }
.fb-dialog { width: min(92vw, 30rem); }
.fb-dialog h3 { margin-top: 0; }
.fb-hint { color: var(--muted); font-size: .88rem; margin: 0 0 .8rem; }
.fb-kinds { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.fb-kind { font: 600 .85rem/1 inherit; padding: .5rem .75rem; border-radius: 999px; cursor: pointer; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.fb-kind[aria-pressed="true"] { color: var(--text); border-color: var(--accent); }
.fb-status { min-height: 1.2em; font-size: .88rem; color: var(--muted); margin: .4rem 0 0; }
.fb-actions { display: flex; gap: .6rem; justify-content: flex-end; margin-top: .8rem; }
@media print { .fb-button { display: none; } }
.feedback-item { border-top: 1px solid var(--border); padding: .8rem 0; }
.feedback-item:first-child { border-top: 0; }
.feedback-text { white-space: pre-wrap; margin: .5rem 0 .2rem; }

/* "Wird gleich gespielt": dashboard, guest page */
.request.is-next { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.btn.next-toggle { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.btn.next-toggle[aria-pressed="true"] { background: var(--gradient-strong); border-color: transparent; color: #fff; }
.badge.next { color: #fff; background: var(--gradient-strong); border-color: transparent; }
.track.is-next { border-color: var(--accent); }
.track-next { margin-top: .2rem; font-size: .82rem; font-weight: 700; color: var(--accent); }

/* Merging two wishes */
.merge-dialog { width: min(92vw, 34rem); }
.merge-dialog h3 { margin-top: 0; overflow-wrap: anywhere; }
.merge-list { display: grid; gap: .4rem; max-height: 55vh; overflow-y: auto; margin: .5rem 0 .75rem; }
.merge-option {
  display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left; font: inherit; color: inherit;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: .55rem .7rem; cursor: pointer;
}
.merge-option:hover, .merge-option.is-suggested { border-color: var(--accent); }
.merge-option .votes { flex: none; background: var(--surface); }
.merge-text { flex: 1; min-width: 0; display: grid; }
.merge-text strong, .merge-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.merge-text small { color: var(--muted); }
.merge-option .badge { flex: none; }
button.merge-hint { cursor: pointer; font: inherit; font-size: .8rem; font-weight: 600; white-space: normal; text-align: left; }

/* "DJ für deine Feier?" above the guest page footer */
.dj-promo { max-width: 640px; margin: 1.5rem auto 0; padding: 0 16px; text-align: center; }
.dj-promo-title { margin: 0; font-weight: 700; }
.dj-promo-links { margin: .35rem 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem .9rem; }
.dj-promo-links a { color: var(--accent); text-decoration: none; font-weight: 600; }
.dj-promo-links a:hover { text-decoration: underline; }
.promo-example { background: var(--surface-2); border-radius: 12px; padding: .7rem .9rem; text-align: center; line-height: 1.6; color: var(--accent); }
.promo-example strong { color: var(--text); }
.promo-example.off { opacity: .45; }

/* Invoices */
.invoice-list { display: grid; gap: .4rem; margin-top: .6rem; }
.invoice-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; background: var(--surface-2); border-radius: 12px; padding: .55rem .75rem; }
.invoice-main { flex: 1 1 12rem; min-width: 0; display: grid; }
.invoice-sub { color: var(--muted); font-size: .85rem; }
.invoice-settings { display: grid; gap: .8rem; margin: .8rem 0 1.2rem; }

/* Empfehlen */
.ref-url span { font-size: .95rem; color: var(--text); white-space: normal; overflow-wrap: anywhere; }
.ref-card .ref-actions + .hint { margin-top: 1rem; }
.ref-actions { flex-wrap: wrap; margin-top: .8rem; }
.ref-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: .4rem 0 .8rem; }
.ref-stat { background: var(--surface-2); border-radius: 12px; padding: .7rem .8rem; display: grid; gap: .15rem; }
.ref-stat strong { font-size: 1.6rem; line-height: 1.1; }
.ref-stat span { color: var(--muted); font-size: .85rem; }
@media (max-width: 560px) { .ref-stats { grid-template-columns: 1fr; } .ref-stat { grid-template-columns: auto 1fr; align-items: baseline; gap: .6rem; } }
.ref-teaser { border-color: var(--accent); }
.invite-note { font-weight: 600; }

/* Stripe check (status page) */
.stripe-head { font-weight: 700; margin: .2rem 0 .8rem; }
.stripe-head.ok, .stripe-head.info { color: var(--ok); }
.stripe-head.warn { color: var(--warn); }
.stripe-head.error { color: var(--bad); }
.stripe-list { display: grid; gap: .5rem; margin-bottom: .8rem; }
.stripe-item { background: var(--surface-2); border-radius: 12px; padding: .65rem .8rem; border-left: 3px solid var(--border); }
.stripe-item.ok { border-left-color: var(--ok); }
.stripe-item.warn { border-left-color: var(--warn); }
.stripe-item.error { border-left-color: var(--bad); }
.stripe-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.stripe-item p { margin: .3rem 0 0; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.stripe-item a { display: inline-block; margin-top: .35rem; font-size: .88rem; color: var(--text); }

/* The host's things among the guests' wishes: gold, so they stand apart */
.badge.host { color: #fbbf24; border-color: rgba(251, 191, 36, .55); background: rgba(251, 191, 36, .08); font-weight: 700; }
.host-flags { display: flex; flex-wrap: wrap; gap: .35rem; }
.host-banner {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap;
  margin: 0 0 .7rem; padding: .7rem 1rem; border-radius: var(--radius); text-decoration: none;
  font-weight: 700; color: #fbbf24; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .45);
}
.host-banner:hover { background: rgba(251, 191, 36, .16); }
.host-banner-go { font-weight: 600; }

/* -- Statistik: tiles, ranked bars, columns by hour (single series: the accent, no legend) -- */
.stats-years { margin: .2rem 0 1rem; }
.stats-years .chip-toggle { text-decoration: none; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.stat-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem 1rem; }
.stat-label { color: var(--muted); font-size: .85rem; }
.stat-value { font-size: 1.7rem; font-weight: 700; line-height: 1.2; margin-top: .15rem; }
.stat-sub { color: var(--muted); font-size: .8rem; margin-top: .1rem; }
.stat-card h3 { margin-bottom: .2rem; }
.stat-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 0 1rem; }
.stat-pair > .card { margin-top: 0; }
.stat-bars { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .7rem; counter-reset: rank; }
.stat-bars li { counter-increment: rank; display: grid; gap: .25rem; }
.stat-bar-label { display: flex; flex-wrap: wrap; gap: 0 .5rem; align-items: baseline; font-size: .92rem; }
.stat-bar-name::before { content: counter(rank) ". "; color: var(--muted); }
.stat-bar-name { font-weight: 600; overflow-wrap: anywhere; }
.stat-bar-sub { color: var(--muted); font-size: .8rem; }
.stat-bar-track { display: flex; align-items: center; gap: .5rem; }
.stat-bar { display: block; height: 12px; background: var(--accent); border-radius: 0 4px 4px 0; flex: none; max-width: calc(100% - 3.5rem); }
.stat-bar-value { color: var(--text); font-size: .85rem; font-variant-numeric: tabular-nums; }
.stat-columns { display: flex; align-items: flex-end; gap: 2px; height: 12rem; margin: 1.2rem 0 .3rem; padding-top: 1.2rem; border-bottom: 1px solid var(--border); }
.stat-col { position: relative; flex: 1 1 0; height: 100%; display: flex; flex-direction: column; align-items: center; outline: none; }
.stat-col-plot { flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.stat-col-bar { display: block; width: min(24px, 70%); background: var(--accent); border-radius: 4px 4px 0 0; }
.stat-col-value { font-size: .8rem; color: var(--text); margin-bottom: .2rem; font-variant-numeric: tabular-nums; }
.stat-col-label { position: absolute; bottom: -1.4rem; font-size: .75rem; color: var(--muted); }
.stat-col:hover .stat-col-bar, .stat-col:focus-visible .stat-col-bar { filter: brightness(1.2); }
.stat-tip {
  position: absolute; bottom: calc(100% + .3rem); left: 50%; transform: translateX(-50%); white-space: nowrap; z-index: 3;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-size: .8rem;
  padding: .3rem .55rem; border-radius: 8px; pointer-events: none; display: none;
}
/* Only there while shown: a hidden tip at the edge would widen the page on a phone */
.stat-col:hover .stat-tip, .stat-col:focus-visible .stat-tip { display: block; }
.stat-col:nth-child(-n+3) .stat-tip { left: 0; transform: none; }
.stat-col:nth-last-child(-n+3) .stat-tip { left: auto; right: 0; transform: none; }
.stat-table-toggle { margin-top: 1.8rem; }
.stat-table-toggle > summary { cursor: pointer; color: var(--muted); font-size: .88rem; }
.table-scroll { overflow-x: auto; margin-top: .6rem; }
.stat-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.stat-table th, .stat-table td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.stat-table th { color: var(--muted); font-weight: 600; font-size: .82rem; }
.stat-table td.num { font-variant-numeric: tabular-nums; }
.stat-list { margin: .6rem 0 0; padding-left: 1.3rem; display: grid; gap: .3rem; }
.missing-list { gap: .7rem; }
.missing-hit { overflow-wrap: anywhere; }
.missing-shops { display: flex; flex-wrap: wrap; gap: .2rem .9rem; font-size: .85rem; margin-top: .15rem; }
.missing-actions { margin-top: .8rem; gap: .5rem; flex-wrap: wrap; }
.software-info { margin-top: .7rem; }
.software-ask { border-color: var(--accent); }
.software-ask .chips { margin: .7rem 0 .2rem; }
/* Event list: long names and the counts wrap instead of being cut off (phones) */
.event-row .track-title, .event-row .track-sub { white-space: normal; overflow-wrap: anywhere; }
.pair-box { margin: .4rem 0 1rem; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.pair-box > p { margin: 0 0 .6rem; }
.pair-code { font: 700 2rem/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .12em; margin: .8rem 0 .3rem; color: var(--text); }
.pair-out .hint { margin: .2rem 0; }
.host-reminder { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.host-reminder .row { margin: 0; }
/* Status page: search peaks per customer and event */
.status-table.peaks .peak-customer th { padding-top: .8rem; text-align: left; color: var(--text); }
.status-table.peaks td.num { white-space: nowrap; font-weight: 700; }
.table-wrap { overflow-x: auto; }
/* Profile: two-factor login (authenticator app) */
.notice.ok { background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .35); color: var(--ok); }
.totp-steps { margin: 0; padding-left: 1.3rem; display: grid; gap: 1.1rem; }
.totp-steps li::marker { font-weight: 700; color: var(--muted); }
.totp-steps li > strong { display: block; margin-bottom: .35rem; }
.totp-steps .hint { margin: 0 0 .6rem; }
.totp-qr { width: min(100%, 220px); padding: .6rem; margin: .2rem 0 .8rem; }
.totp-link { margin: .2rem 0 .8rem; }
.totp-secret {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem;
  background: var(--surface-2); border-radius: 12px; padding: .6rem .6rem .6rem .9rem;
}
.totp-secret code {
  flex: 1 1 15rem; min-width: 0; overflow-wrap: anywhere; user-select: all;
  font: 600 1rem/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .03em; word-spacing: .2em;
}
.totp-state { display: flex; align-items: center; gap: .4rem; margin: 0 0 .6rem; color: var(--muted); }
.totp-change { margin-top: .8rem; }
.totp-change form { margin-top: .6rem; }
.recovery-sheet { background: var(--surface-2); border-radius: 12px; padding: .8rem 1rem; }
.recovery-title { margin: 0 0 .5rem; color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.recovery-codes {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem 1.5rem;
  font: 600 1.05rem/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .04em; user-select: all;
}
/* "Drucken" on the recovery codes: only their copy in <body> goes on paper, in black */
.recovery-print { display: none; }
@media print {
  html.print-codes body { background: #fff; color: #000; }
  html.print-codes body > * { display: none !important; }
  html.print-codes body > .recovery-print { display: block !important; padding: 1cm; }
  .recovery-print h1 { font-size: 1.3rem; margin: 0 0 .3rem; }
  .recovery-print ul { list-style: none; padding: 0; margin: 1rem 0; columns: 2; font: 600 1.1rem/2 ui-monospace, Menlo, Consolas, monospace; }
}

/* -- small "?" explanations next to settings (dashboard) --------------------------- */
.tip-row { display: flex; align-items: flex-start; gap: .45rem; margin: .9rem 0 .35rem; }
.tip-row > label { margin: 0; flex: 0 1 auto; min-width: 0; }
.tip-row > .tip-wrap { margin-top: .05rem; }
.tip-wrap { position: relative; display: inline-block; vertical-align: middle; line-height: 1; flex: none; }
.tip {
  position: relative; display: inline-grid; place-items: center;
  width: 1.45rem; height: 1.45rem; padding: 0; border-radius: 50%; cursor: pointer;
  font: 700 .8rem/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--muted); background: var(--surface-2); border: 1px solid var(--border);
}
/* A bigger area to tap than the circle shows */
.tip::after { content: ""; position: absolute; inset: -.3rem; border-radius: 50%; }
.tip:hover, .tip[aria-expanded="true"] { color: var(--text); border-color: var(--accent-2); }
.tip:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.tip-bubble {
  position: absolute; top: calc(100% + .6rem); left: 0; z-index: 30; display: block;
  width: 18rem; max-width: calc(100vw - 32px); padding: .7rem .85rem .55rem;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--accent-2); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .55);
  font: 400 .88rem/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-align: left; text-transform: none; letter-spacing: 0; white-space: normal;
}
.tip-bubble::before {
  content: ""; position: absolute; top: -.4rem; left: calc(var(--tip-arrow, 1rem) - .4rem);
  width: .7rem; height: .7rem; background: var(--surface-2);
  border-left: 1px solid var(--accent-2); border-top: 1px solid var(--accent-2); transform: rotate(45deg);
}
.tip-bubble.above { top: auto; bottom: calc(100% + .6rem); }
.tip-bubble.above::before { top: auto; bottom: -.4rem; transform: rotate(225deg); }
.tip-bubble > span { display: block; }
.tip-off {
  display: block; margin: .45rem 0 0 auto; padding: .15rem 0; font: inherit; font-size: .8rem;
  color: var(--muted); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.tip-off:hover { color: var(--text); }
h3 .tip-wrap, h4 .tip-wrap { margin-left: .15rem; vertical-align: .1em; }
.hint .tip-wrap { vertical-align: -.3em; }

/* -- event assistant ("Neues Event") -------------------------------------------- */
.kind-choices { display: grid; gap: .55rem; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); margin: .4rem 0 .9rem; }
.kind-choice {
  display: flex; align-items: center; gap: .6rem; min-height: 3.4rem; padding: .7rem .9rem;
  font: inherit; font-weight: 700; font-size: 1rem; text-align: left; color: var(--text); cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .15s, transform .1s;
}
.kind-choice:hover { border-color: var(--accent-2); }
.kind-choice:active { transform: scale(.98); }
.kind-choice:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.kind-icon { font-size: 1.5rem; line-height: 1; }
.wizard .kind-choices { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); margin: 1rem 0; }
.wizard .kind-choice { min-height: 4.2rem; font-size: 1.05rem; }
.quick-create { margin-top: .2rem; }
.quick-create > summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: .95rem; padding: .3rem 0; }
.quick-create[open] > summary { margin-bottom: .5rem; }
.quick-create .hint { margin: .1rem 0 .2rem; }
.event-wizard h2:focus { outline: none; }
.event-wizard .field-hint { margin: .45rem 0 0; }
.event-wizard-what { margin: -.2rem 0 .6rem; font-size: 1.05rem; overflow-wrap: anywhere; }
.preset-group { border-top: 1px solid var(--border); margin-top: 1rem; padding-top: .3rem; }
.preset-group > h3 { font-size: 1rem; margin: .7rem 0 .2rem; }
.preset-line { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; padding: .6rem 0; }
.preset-line + .preset-line { border-top: 1px dashed var(--border); }
.preset-line.sub { margin-left: 1.1rem; padding-left: .8rem; border-left: 2px solid var(--border); border-top: 0; }
.preset-text { flex: 1 1 13rem; min-width: 0; }
.preset-text label { margin: 0; color: var(--text); font-size: 1rem; font-weight: 600; cursor: pointer; }
.preset-text p { margin: .15rem 0 0; color: var(--muted); font-size: .88rem; }
.preset-mark {
  display: inline-block; margin-left: .45rem; padding: .1rem .5rem; border-radius: 999px; vertical-align: .1em;
  font-size: .72rem; font-weight: 700; color: var(--accent); border: 1px solid rgba(255, 61, 129, .45);
}
.preset-actions { margin-top: 1rem; }
.preset-actions + .hint { margin-top: .7rem; }
/* Yes/no as a switch: a native checkbox (role=switch), drawn with gradients only */
input.switch {
  -webkit-appearance: none; appearance: none; flex: none; margin: 0 0 0 auto; padding: 0; cursor: pointer;
  width: 3rem; height: 1.75rem; border-radius: 999px; border: 1px solid var(--border); transform: none;
  background: var(--border) radial-gradient(circle, #fff 0 .62rem, transparent .66rem) no-repeat;
  background-size: 1.5rem 1.5rem; background-position: .1rem center;
  transition: background-color .15s, background-position .15s;
}
input.switch:checked { background-color: var(--ok); border-color: var(--ok); background-position: calc(100% - .1rem) center; }
input.switch:focus-visible { box-shadow: 0 0 0 3px rgba(139, 92, 246, .55); }
.stepper { display: flex; align-items: center; gap: .35rem; margin-left: auto; flex: none; }
.stepper .btn.icon { width: 2.4rem; min-height: 2.4rem; font-size: 1.15rem; }
.stepper-input { width: 4rem; text-align: center; padding: .45rem .3rem; -moz-appearance: textfield; }
.stepper-input::-webkit-inner-spin-button, .stepper-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.next-steps .wizard-choices { margin-top: .6rem; }
.next-slot:empty { display: none; }
.next-step { width: 100%; height: 100%; font: inherit; text-align: left; cursor: pointer; }
.next-step:disabled { opacity: .6; cursor: progress; }
.next-step strong { font-size: 1rem; }
.test-link:empty { display: none; }
.test-link { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .4rem; }
.test-link .qr-preview { width: 9.5rem; padding: .5rem; }
.test-link .hint { flex: 1 1 14rem; margin: 0; }
/* Own presets of the event assistant in the profile */
.own-presets .hint { margin: 1rem 0 .4rem; }
.own-preset { gap: .4rem; color: var(--text); }
.chip-remove { font: inherit; font-size: .8rem; line-height: 1; padding: .1rem .2rem; color: var(--muted); background: none; border: 0; cursor: pointer; }
.chip-remove:hover { color: var(--bad); }

/* -- test link ("Als Gast ausprobieren") and Probe-Abend ------------------ */

/* The guest page opened with a test link: always in view, so nobody takes it for the real one */
.test-banner {
  position: sticky; top: .5rem; z-index: 5; margin: 0 0 1rem; font-weight: 600;
  background: #241b3d; border-color: rgba(139, 92, 246, .6); color: #ddd6fe;
}
.badge.test { color: #ddd6fe; border-color: rgba(139, 92, 246, .6); background: rgba(139, 92, 246, .16); font-weight: 700; }
.request.is-test { border-style: dashed; border-color: rgba(139, 92, 246, .6); }
.test-try .row { margin-top: .6rem; }
.test-try-result { margin-top: .9rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; }
.test-try-result .qr-preview { width: min(100%, 200px); padding: .7rem; }
.test-try-result .test-try-text { flex: 1 1 14rem; min-width: 0; }
.test-try-result .url-box span { font-size: .8rem; }
.empty-try .empty { padding-bottom: .5rem; }
.demo-note { margin: .8rem 0 0; }
.rehearsal-box { margin: .6rem 0 0; }
/* At the decks only the Probe-Abend's state and its button */
body.booth .demo-note .demo-intro, body.booth .rehearsal-text { display: none; }
body.booth .demo-note .rehearsal-box { margin-top: 0; }
.rehearsal-box .row { margin-top: .5rem; gap: .5rem; }
.rehearsal-progress { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: .5rem; }
.rehearsal-progress span { display: block; height: 100%; background: var(--gradient); transition: width .6s ease; }

/* -- Packliste: the event's tab, templates in the profile, reminder on the dashboard -- */

.pack-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .5rem .75rem; }
.pack-head .grow { flex: 1 1 12rem; min-width: 0; }
.pack-head h3 { margin-bottom: .2rem; }
.pack-source { margin: 0 0 .2rem; }
.pack-mode { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; margin: .8rem 0; }
.pack-mode-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem;
  min-height: 3.1rem; padding: .45rem .5rem; font: inherit; color: var(--muted); cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
}
.pack-mode-btn small { font-size: .78rem; }
.pack-mode-btn.on { color: var(--text); border-color: var(--accent); background: rgba(255, 61, 129, .14); }
.pack-mode-btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.pack-progress { margin: .2rem 0 .7rem; }
.pack-progress-text { font-size: 1.05rem; }
.pack-progress-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: .4rem; }
.pack-progress-bar span { display: block; height: 100%; background: var(--gradient); transition: width .3s ease; }
.pack-progress.complete .pack-progress-bar span { background: var(--ok); }
.pack-all { color: var(--ok); font-weight: 600; margin: 0 0 .6rem; }
.pack-group { margin-top: 1.1rem; }
.pack-group-title {
  display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin: 0 0 .45rem;
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
}
.pack-group-count { font-variant-numeric: tabular-nums; }
.pack-group-count.complete { color: var(--ok); }
.pack-items { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
/* Big rows for the thumb: the whole row ticks */
.pack-item {
  display: flex; align-items: center; gap: .85rem; min-height: 3.2rem; margin: 0; padding: .55rem .85rem;
  font-size: 1.02rem; color: var(--text); cursor: pointer; -webkit-tap-highlight-color: transparent;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
}
.pack-item input[type="checkbox"] { width: 1.65rem; height: 1.65rem; margin: 0; transform: none; cursor: pointer; }
.pack-item span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pack-item.ticked { background: transparent; border-color: rgba(52, 211, 153, .35); }
.pack-item.ticked span { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(155, 155, 176, .7); }
.pack-edit-line { display: flex; gap: .35rem; align-items: center; }
.pack-edit-line :is(input, textarea) { flex: 1; min-width: 0; padding: .55rem .7rem; }
.pack-edit-line textarea { min-height: 0; resize: none; overflow: hidden; line-height: 1.35; display: block; }
.btn.pack-icon { flex: none; width: 2.4rem; min-height: 2.4rem; font-size: 1rem; }
.pack-edit-hint { margin: .6rem 0 0; }
.pack-add { margin-top: 1.3rem; }
.pack-add label { margin-top: 0; }
.pack-add-row { display: grid; grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr) auto; gap: .5rem; }
@media (max-width: 560px) {
  .pack-add-row { grid-template-columns: minmax(0, 1fr) auto; }
  .pack-add-row select { grid-column: 1 / -1; }
}
.pack-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.pack-actions .btn { white-space: normal; text-align: center; }
.pack-other { margin-top: 1.1rem; }
.pack-other > summary { cursor: pointer; color: var(--muted); font-weight: 600; font-size: .92rem; }
.pack-other[open] > summary { margin-bottom: .5rem; }
.pack-templates-hint { margin: 1rem 0 0; }
.pack-reminder { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.pack-reminder.done { background: rgba(52, 211, 153, .08); border-color: rgba(52, 211, 153, .35); color: var(--ok); }
/* Templates in the profile */
.pack-kinds { margin: .2rem 0 .7rem; }
.pack-kinds .chip-toggle { min-height: 2.4rem; }
.pack-template-state { margin: 0 0 .7rem; color: var(--muted); font-size: .9rem; }
.pack-edit-group { border: 1px solid var(--border); border-radius: 12px; padding: .6rem; margin: 0 0 .7rem; min-width: 0; }
.pack-edit-name input { font-weight: 700; }
.pack-edit-items { list-style: none; margin: .45rem 0; padding: 0 0 0 .7rem; display: grid; gap: .3rem; }
@media (max-width: 560px) {
  .pack-edit-group { padding: .5rem; }
  .pack-edit-items { padding-left: 0; }
  .pack-edit-line { gap: .25rem; }
  .btn.pack-icon { width: 2.2rem; min-height: 2.2rem; }
}

/* -- on-site contacts ("Kontakte vor Ort"): the dashboard's tab and the host link's step -- */
.contact-list { display: grid; gap: .5rem; }
.contact-list + .hint { margin-top: .8rem; }
.contact-item {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: .75rem .9rem;
}
.contact-main { flex: 1 1 14rem; min-width: 0; }
.contact-name { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; overflow-wrap: anywhere; }
.contact-phone { display: inline-block; margin-top: .25rem; font-size: 1.05rem; font-variant-numeric: tabular-nums; color: var(--text); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.contact-add > summary { cursor: pointer; font-weight: 700; color: var(--accent); }
.contact-add[open] > summary { margin-bottom: .3rem; }
.contact-roles, .host-contact-roles { margin-top: .5rem; }
/* At the decks: big names and buttons, nothing to read around them */
body.booth .contact-extra { display: none; }
body.booth .contact-name strong { font-size: 1.3rem; }
body.booth .contact-phone { font-size: 1.2rem; }
body.booth .contact-actions { flex: 1 1 100%; }
body.booth .contact-actions a.btn { flex: 1 1 8rem; font-size: 1.05rem; padding: .7rem 1.2rem; min-height: 3rem; }
.host-contacts-consent { margin: .6rem 0 .2rem; font-size: .92rem; }
.host-contact-form { margin-top: 1rem; border-top: 1px solid var(--border); padding-top: .4rem; }
.host-contact-form h3 { margin: .6rem 0 0; font-size: 1rem; }
.host-contact-form .host-label { display: block; margin: .8rem 0 .35rem; }
.host-contact .track-sub { overflow-wrap: anywhere; }

/* -- run of show ("Ablauf", timeline.js): the DJ's tab, the hosts' step, the bar on top ----- */
.tl-list { margin-top: .4rem; }
.tl-item { align-items: flex-start; flex-wrap: wrap; }
.tl-item .host-check { align-self: center; }
.tl-when { flex: none; width: 3.4rem; display: grid; line-height: 1.15; padding-top: .1rem; }
.tl-clock { font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.tl-night { color: var(--muted); font-size: .72rem; }
.tl-item .track-main { flex: 1 1 9rem; }
.tl-title { font-weight: 600; overflow-wrap: anywhere; }
.tl-song { color: var(--accent); font-size: .9rem; overflow-wrap: anywhere; }
.tl-song .badge { margin-left: .4rem; vertical-align: middle; }
.tl-note { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .88rem; color: #d4d4e0; background: var(--surface-2);
  border-radius: 10px; padding: .45rem .65rem; margin-top: .35rem; }
.tl-note-label { display: block; color: var(--muted); font-size: .75rem; font-weight: 700; margin-bottom: .1rem; }
.tl-suggest { font-size: .86rem; color: var(--warn); margin: .35rem 0 0; overflow-wrap: anywhere; }
.tl-suggest .btn { margin-left: .2rem; }
.tl-actions { display: flex; gap: .3rem; align-items: center; margin-left: auto; }
.tl-item.is-done { opacity: .6; }
.tl-item.is-done .tl-title { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .35); }
.tl-form { display: block; }
.tl-form.tl-edit { background: var(--surface); border: 1px solid var(--accent-2); border-radius: var(--radius); padding: .4rem 1rem 1rem; }
.tl-form-row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0 .7rem; }
.tl-form-row label { margin-top: .6rem; }
.tl-time-input { min-height: 2.9rem; }
.tl-night-hint { margin: .35rem 0 0; color: var(--warn); }
.tl-moments { margin-top: .5rem; }
.tl-chosen { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; }
.tl-chosen .tl-song { font-size: .95rem; font-weight: 600; }
.tl-picker .host-results { margin-top: .4rem; }
.tl-picker .host-results .track-title, .tl-picker .host-results .track-sub { white-space: normal; overflow-wrap: anywhere; }
.tl-add { margin-top: 1rem; }
.tl-add > summary { font-weight: 600; }
.tl-add-title { margin: 1.2rem 0 0; font-size: 1rem; }
.tl-venue { margin: 0 0 .6rem; color: var(--text); font-size: .92rem; background: var(--surface-2); border-radius: 10px; padding: .5rem .75rem; }
.tl-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.tl-settings-wide { grid-column: 1 / -1; }
@media (max-width: 420px) { .tl-form-row { grid-template-columns: 7rem minmax(0, 1fr); } }

/* The bar at the top of the event: what comes next, Leise ab and Musik-Ende */
.tl-now {
  margin: 1rem 0 0; padding: .8rem 1rem; border-radius: var(--radius);
  background: rgba(139, 92, 246, .1); border: 1px solid rgba(139, 92, 246, .45);
}
.tl-now-main { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.tl-now-text { flex: 1 1 16rem; min-width: 0; overflow-wrap: anywhere; }
.tl-now-label { color: #ddd6fe; font-weight: 700; }
.tl-now-title { font-size: 1.1rem; }
.tl-now-when { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-now-song { color: var(--accent); }
.tl-now-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.tl-now-note { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: .6rem; padding: .6rem .8rem; border-radius: 10px;
  background: var(--surface-2); color: var(--text); font-size: 1rem; }
.tl-now-after { margin: .45rem 0 0; color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.tl-limits { display: flex; flex-wrap: wrap; gap: .3rem .8rem; margin-top: .5rem; font-size: .9rem; font-variant-numeric: tabular-nums; }
.tl-limit { font-weight: 600; }
.tl-limit.is-on { color: var(--warn); }
.tl-limit-note { color: var(--muted); }
.tl-now-go { display: inline-block; margin-top: .4rem; font-size: .85rem; }
/* "⏱ Zeit": ab hier verschieben or a new time for one point */
.tl-with-panel { display: grid; gap: .4rem; }
.tl-shift { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: .7rem .9rem; }
.tl-now .tl-shift { margin-top: .6rem; background: var(--surface); }
.tl-shift-label { margin: 0 0 .5rem; font-weight: 600; font-size: .9rem; overflow-wrap: anywhere; }
.tl-shift-quick { display: flex; flex-wrap: wrap; gap: .4rem; }
.tl-shift-custom, .tl-shift-one { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin-top: .6rem; }
.tl-shift-min { width: 6.5rem; }
.tl-shift-time { width: 8.5rem; }
.tl-shift-one label { margin: 0; color: var(--text); }
.tl-shift .hint { margin: .6rem 0 0; }
body.booth .tl-shift-quick .btn { font-size: 1.05rem; min-height: 3rem; padding: .6rem 1rem; }
body.booth .tl-now { padding: 1rem 1.2rem; }
body.booth .tl-now-text { font-size: 1.25rem; }
body.booth .tl-now-title { font-size: 1.45rem; }
body.booth .tl-now-actions .btn { font-size: 1.05rem; padding: .7rem 1.2rem; min-height: 3rem; }
body.booth .tl-now-note { font-size: 1.2rem; }
body.booth .tl-limits { font-size: 1.1rem; }

/* -- audio guestbook (guestbook.js, guestbook-host.js, guestbook-admin.js) ----------------- */

/* The entry on the guest page while it is open */
.gb-entry {
  display: flex; align-items: center; gap: .8rem; width: 100%; margin: 1rem 0 .25rem;
  padding: .85rem 1rem; text-align: left; font: inherit; color: var(--text); cursor: pointer;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gradient) border-box;
  border: 2px solid transparent; border-radius: var(--radius);
}
.gb-entry:hover { filter: brightness(1.1); }
.gb-entry-icon { font-size: 1.8rem; line-height: 1; flex: none; }
.gb-entry-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.gb-entry-text strong { font-size: 1.02rem; overflow-wrap: anywhere; }
.gb-entry-text small { color: var(--muted); font-size: .85rem; }
.gb-entry-go { color: var(--accent); font-size: 1.6rem; line-height: 1; flex: none; }

/* Its own view: intro, greeting, recording, listening back, thanks */
.gb-view { margin-top: 1rem; }
.gb-view h2 { margin: .75rem 0 .5rem; text-transform: none; letter-spacing: 0; color: var(--text); font-size: 1.35rem; }
.gb-view h2:focus { outline: none; }
.gb-lead { margin: .25rem 0 1rem; }
.gb-subtitle { font-size: .95rem; color: var(--muted); margin: 1rem 0 .5rem; }
.gb-mine { margin-bottom: 1rem; }
.gb-privacy { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem 1rem; margin: 1rem 0 .25rem; font-size: .92rem; }
.gb-privacy p { margin: 0 0 .4rem; }
label.check.gb-consent { align-items: flex-start; margin: 1rem 0 1.2rem; line-height: 1.4; font-size: .95rem; }
.gb-consent input { margin-top: .25rem; }
.gb-start, .gb-stop { min-height: 3.4rem; font-size: 1.1rem; white-space: normal; }
.gb-label { color: var(--muted); font-weight: 600; margin: 1rem 0 .4rem; }
.gb-greeting { margin: 0 0 1rem; padding: 1rem 1.1rem; background: var(--surface); border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.1rem; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.gb-status { color: var(--muted); min-height: 1.4em; }
/* Before the beep: what comes next, big enough to read from arm's length, and the countdown */
.gb-soon { margin: 1.4rem 0 .2rem; text-align: center; font-size: clamp(1.5rem, 7vw, 2.1rem); font-weight: 800; line-height: 1.2; color: var(--text); }
.gb-count.gb-countdown { font-size: clamp(6rem, 42vw, 11rem); color: var(--accent); margin: 0 0 1rem; }
.gb-countdown:empty { display: none; }
.gb-rec { display: flex; align-items: center; justify-content: center; gap: .5rem; color: var(--bad); font-weight: 700;
  margin: 1.2rem 0 0; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; text-align: center; }
.gb-rec-dot { width: .8rem; height: .8rem; border-radius: 50%; background: var(--bad); flex: none; animation: gb-blink 1s infinite; }
@keyframes gb-blink { 50% { opacity: .25; } }
.gb-count { font-size: clamp(4.5rem, 30vw, 8rem); font-weight: 800; text-align: center; line-height: 1.05; margin: .5rem 0 0;
  font-variant-numeric: tabular-nums; }
.gb-count.gb-count-small { font-size: 3rem; }
.gb-count-label { text-align: center; color: var(--muted); margin: .2rem 0 1rem; }
.gb-meter, .gb-progress { height: 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border);
  overflow: hidden; margin: .6rem 0 1.2rem; }
.gb-meter span, .gb-progress span { display: block; height: 100%; background: var(--gradient); transform-origin: left center;
  transform: scaleX(0); transition: transform .08s linear; }
.gb-review { margin: .5rem 0 1rem; }
.gb-done { width: 4.5rem; height: 4.5rem; border-radius: 50%; margin: 1.5rem auto .5rem; display: grid; place-items: center;
  font-size: 2.4rem; color: #fff; background: var(--gradient-strong); }
.gb-thanks { text-align: center; font-size: 1.15rem; color: var(--text); }
.gb-after { justify-content: center; margin-top: 1rem; }
/* Emojis from the guests in the DJ's event view (also in the Pult-Modus): counts above the
   tabs, a tap lists who sent them; new ones flash up over the whole page */
.dj-emoji { margin: .5rem 0; background: var(--surface); border: 1px solid rgba(139, 92, 246, .45); border-radius: var(--radius); }
.dj-emoji[hidden] { display: none; }
.dj-emoji-toggle {
  display: flex; align-items: center; gap: .6rem; width: 100%; padding: .55rem .8rem; font: inherit; color: var(--text);
  background: none; border: 0; cursor: pointer; text-align: left;
}
.dj-emoji-label { flex: none; font-weight: 700; color: #c4b5fd; }
.dj-emoji-counts { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: 1.05rem; }
.dj-emoji-count { display: inline-flex; align-items: baseline; gap: .2rem; white-space: nowrap; }
.dj-emoji-count b { font-variant-numeric: tabular-nums; }
.dj-emoji-count.zero { opacity: .4; }
.dj-emoji-caret { flex: none; color: var(--muted); }
.dj-emoji-panel { padding: .2rem .8rem .8rem; border-top: 1px solid var(--border); }
.dj-emoji-panel .hint { margin: .5rem 0 0; }
.dj-emoji-senders { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .45rem; }
.dj-emoji-sender {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who btn" "what btn" "reply reply"; gap: .1rem .6rem;
  align-items: center; padding: .45rem .6rem; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border);
}
/* The label on its own line, the seven emojis in one row that shrinks with the width */
.dj-emoji-reply { grid-area: reply; display: grid; grid-template-columns: repeat(7, minmax(0, 2.9rem)); gap: .3rem; margin-top: .35rem; }
.dj-emoji-reply-label { grid-column: 1 / -1; color: var(--muted); font-size: .85rem; }
.dj-emoji-reply-btn {
  font: inherit; font-size: 1.3rem; line-height: 1; min-width: 0; min-height: 2.6rem; padding: .3rem 0; cursor: pointer;
  color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; transition: transform .12s ease;
}
.dj-emoji-reply-btn:hover { border-color: var(--accent-2); }
.dj-emoji-reply-btn:active { transform: scale(.88); }
.dj-emoji-replied { grid-area: reply; margin-top: .25rem; font-size: .85rem; font-weight: 600; color: var(--ok); }
.dj-emoji-sender.blocked { border-color: rgba(248, 113, 113, .5); }
.dj-emoji-sender .who { grid-area: who; font-weight: 700; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; overflow-wrap: anywhere; }
.dj-emoji-sender .what { grid-area: what; overflow-wrap: anywhere; }
.dj-emoji-sender .btn { grid-area: btn; }
.dj-emoji-sender .btn.bad { background: transparent; color: #f87171; border: 1px solid rgba(248, 113, 113, .5); }
body.booth .dj-emoji-counts { font-size: 1.2rem; gap: .25rem .7rem; }
/* "Takt hören" for the Lichtermeer on the DJ's phone (light-ear.js): a bar like the emojis, the panel under it */
.dj-light { margin: .5rem 0; background: var(--surface); border: 1px solid rgba(250, 204, 21, .35); border-radius: var(--radius); }
.dj-light.live { border-color: rgba(250, 204, 21, .8); box-shadow: 0 0 18px rgba(250, 204, 21, .18); }
.dj-light-toggle {
  display: flex; align-items: center; gap: .6rem; width: 100%; padding: .55rem .8rem; font: inherit; color: var(--text);
  background: none; border: 0; border-radius: var(--radius); cursor: pointer; text-align: left;
}
.dj-light-toggle:focus-visible { outline: 2px solid var(--accent-2); outline-offset: -2px; }
.dj-light-label { flex: none; font-weight: 700; color: #fde68a; }
.dj-light-state { flex: 1; min-width: 0; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.dj-light.live .dj-light-state { color: #fde68a; font-weight: 600; }
.dj-light-caret { flex: none; color: var(--muted); }
.dj-light-panel { display: grid; gap: .6rem; padding: .35rem .8rem .85rem; border-top: 1px solid var(--border); }
.dj-light-panel p { margin: 0; }
.dj-light-intro { font-size: .92rem; }
.dj-light-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.dj-light-status { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .35rem .6rem; align-items: center; font-size: .92rem; }
.dj-light-dot { width: 1rem; height: 1rem; border-radius: 50%; background: #facc15; box-shadow: 0 0 12px #facc15; opacity: .15; }
.dj-light-level { grid-column: 1 / -1; height: .35rem; border-radius: 3px; background: var(--bg); overflow: hidden; }
.dj-light-level span { display: block; height: 100%; width: 0; background: var(--gradient); }
.dj-light-show { font-size: .9rem; color: #fde68a; }
.dj-light-show:empty { display: none; }
.dj-light-tap { min-height: 3.4rem; font-size: 1.15rem; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.dj-light-tap:active { transform: scale(.97); }
body.booth .dj-light-toggle { font-size: 1.1rem; }
.dj-emoji-overlay { position: fixed; inset: 0; z-index: 1000; pointer-events: none; overflow: hidden; display: none; }
.dj-emoji-overlay.show { display: block; }
.dj-emoji-overlay::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 61, 129, .30), rgba(139, 92, 246, .14) 45%, transparent 75%);
}
.dj-emoji-overlay.show::before { animation: dj-emoji-glow 1.8s ease-out forwards; }
.dj-emoji-pop {
  position: absolute; left: var(--x, 50%); top: var(--y, 50%); font-size: min(34vw, 40vh); line-height: 1; opacity: 0;
  transform: translate(-50%, -50%) scale(.2); filter: drop-shadow(0 6px 22px rgba(0, 0, 0, .5));
  animation: dj-emoji-pop 1.7s cubic-bezier(.2, .8, .3, 1.15) var(--delay, 0ms) forwards;
}
.dj-emoji-overlay.many .dj-emoji-pop { font-size: min(20vw, 26vh); }
.dj-emoji-more { position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%); font-size: 1.6rem; font-weight: 800; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .7); opacity: 0; animation: dj-emoji-glow 1.8s ease-out forwards; }
@keyframes dj-emoji-glow { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
@keyframes dj-emoji-pop {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(.2) rotate(0deg); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1.15) rotate(var(--tilt, 0deg)); }
  34% { transform: translate(-50%, -50%) scale(1) rotate(var(--tilt, 0deg)); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -80%) scale(.92) rotate(var(--tilt, 0deg)); }
}
@media (prefers-reduced-motion: reduce) {
  .dj-emoji-pop { transform: translate(-50%, -50%); animation: dj-emoji-glow 1.6s ease-out var(--delay, 0ms) forwards; }
}

/* Handy-Lichtermeer (guest-light.js): the invitation, and the phone as a light */
.light-invite { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 1.2rem; background: rgba(5, 5, 10, .78); backdrop-filter: blur(4px); }
.light-invite[hidden] { display: none; }
.light-invite-box { width: min(420px, 100%); padding: 1.4rem 1.2rem 1.2rem; text-align: center; background: var(--surface); border: 2px solid transparent; border-radius: 22px; background-clip: padding-box; box-shadow: 0 0 0 2px rgba(139, 92, 246, .55), 0 20px 60px rgba(0, 0, 0, .6); }
.light-invite-icon { font-size: 3.2rem; line-height: 1; animation: light-glow 1.4s ease-in-out infinite alternate; }
.light-invite h2 { margin: .5rem 0 .4rem; font-size: 1.6rem; color: var(--text); text-transform: none; letter-spacing: 0; }
.light-invite p { margin: .35rem 0; }
.light-invite-tip { color: var(--muted); font-size: .92rem; }
.light-invite-warn { color: var(--warn); font-size: .85rem; }
.light-invite-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1rem; }
.light-invite-buttons .btn { min-height: 3rem; padding-inline: 1.4rem; font-size: 1.05rem; }
@keyframes light-glow { from { filter: drop-shadow(0 0 4px rgba(250, 204, 21, .3)); } to { filter: drop-shadow(0 0 22px rgba(250, 204, 21, .9)); } }
.light-card {
  display: flex; align-items: center; gap: .5rem; width: 100%; margin: .9rem 0 .25rem; padding: .8rem 1rem; font: inherit; font-weight: 700;
  color: var(--text); cursor: pointer; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gradient) border-box;
  border: 2px solid transparent; border-radius: var(--radius);
}
.light-card[hidden] { display: none; }
.light-show { position: fixed; inset: 0; z-index: 2000; background: #000; touch-action: none; }
.light-show[hidden] { display: none; }
/* "❤️ Herz": centred, as big as the screen allows */
.light-heart { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; transform-origin: 50% 52%; will-change: transform; }
.light-heart[hidden] { display: none; }
.light-heart svg { width: min(82vw, 72vh); height: min(82vw, 72vh); }
body.light-on { overflow: hidden; }
.light-close {
  position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; border-radius: 50%;
  font: inherit; font-size: 1.2rem; color: rgba(255, 255, 255, .85); background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .35); cursor: pointer;
}
.light-thanks { position: absolute; inset: 0; display: grid; place-items: center; padding: 2rem; text-align: center; font-size: 1.8rem; font-weight: 800; color: #fff; background: #111; }
.light-thanks[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .light-invite-icon { animation: none; } }

/* Emojis to the DJ on the guest page: five big buttons, the tapped one flies up */
.emoji-bar { margin: .9rem 0 .25rem; padding: .7rem .8rem .75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.emoji-title { margin: 0 0 .5rem; font-size: .9rem; color: var(--muted); }
.emoji-buttons { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .45rem; }
.emoji-btn {
  font: inherit; font-size: 1.75rem; line-height: 1; min-height: 3rem; padding: .5rem 0; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; transition: transform .12s ease;
}
.emoji-btn:hover:not(:disabled) { border-color: var(--accent-2); }
.emoji-btn:active:not(:disabled) { transform: scale(.88); }
.emoji-btn:disabled { opacity: .35; cursor: default; filter: grayscale(.7); }
.emoji-status { margin: .55rem 0 0; font-size: .9rem; color: var(--muted); }
.emoji-bar.waiting .emoji-status { color: var(--text); font-variant-numeric: tabular-nums; }
.emoji-fly {
  position: fixed; z-index: 60; font-size: 2.6rem; line-height: 1; pointer-events: none;
  transform: translate(-50%, 0); animation: emoji-fly 1.4s cubic-bezier(.2, .7, .3, 1) forwards;
}
@keyframes emoji-fly {
  0% { opacity: 0; transform: translate(-50%, 0) scale(.6); }
  15% { opacity: 1; transform: translate(-50%, -20px) scale(1.2); }
  100% { opacity: 0; transform: translate(-50%, -180px) scale(1.9); }
}
/* The DJ's answer: big in the middle for a few seconds (a tap closes it), then a line under the buttons */
.emoji-bar.answered .emoji-status { color: var(--text); font-weight: 600; }
.emoji-reply {
  position: fixed; left: 50%; top: 42%; z-index: 80; transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: .6rem; width: min(86vw, 22rem); padding: 1.4rem 1.2rem 1.25rem;
  text-align: center; color: var(--text); background: var(--surface); border: 1px solid var(--accent-2); border-radius: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55); cursor: pointer; animation: emoji-reply 5s ease forwards;
}
.emoji-reply-emoji { font-size: 5rem; line-height: 1; animation: emoji-reply-pop .7s cubic-bezier(.2, .8, .3, 1.3) both; }
.emoji-reply-text { font-size: 1.15rem; font-weight: 800; overflow-wrap: anywhere; }
@keyframes emoji-reply {
  0% { opacity: 0; transform: translate(-50%, -40%) scale(.9); }
  8%, 86% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(.98); }
}
@keyframes emoji-reply-pop {
  0% { transform: scale(.3) rotate(-12deg); }
  60% { transform: scale(1.18) rotate(4deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes emoji-reply-fade { 0%, 90% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .emoji-reply { animation: emoji-reply-fade 5s linear forwards; }
  .emoji-reply-emoji { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .gb-rec-dot { animation: none; }
  .gb-meter span, .gb-progress span { transition: none; }
}

/* Host link and dashboard: greeting, figures, downloads, QR code */
.gb-greeting-editor { margin: .4rem 0 1rem; }
.gb-editor-state { margin: 0 0 .6rem; overflow-wrap: anywhere; }
.gb-greeting-editor .gb-rec { justify-content: flex-start; }
.gb-greeting-editor .gb-count { text-align: left; }
.gb-figures { font-size: 1.05rem; margin: .3rem 0 .6rem; }
.gb-downloads { display: flex; flex-wrap: wrap; gap: .6rem; margin: .8rem 0; }
.gb-downloads .btn { white-space: normal; text-align: center; }
.gb-sub { margin: 0; font-size: .9rem; color: var(--muted); font-weight: 600; }
.gb-host-sub { margin: 1.2rem 0 .3rem; font-size: 1rem; }
.gb-qr { width: min(100%, 220px); margin: .8rem 0; }

/* The card to print for the tables (/admin/events/<id>/gaestebuch-karte) */
.gb-card { text-align: center; max-width: 30rem; margin: 0 auto; padding: 2rem 1.5rem; border: 2px solid #111; border-radius: 18px; }
.gb-card-kicker { font-size: 1.1rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 .4rem; }
.gb-card h1 { font-size: 2rem; margin: 0; overflow-wrap: anywhere; }
.gb-card-date { color: #555; margin: .3rem 0 1.2rem; }
.gb-card-qr { width: min(70%, 16rem); margin: 0 auto 1.2rem; }
.gb-card-qr svg { display: block; width: 100%; height: auto; }
.gb-card-steps { text-align: left; display: inline-block; margin: 0 auto 1rem; padding-left: 1.4rem; font-size: 1.1rem; line-height: 1.6; }
.gb-card-en { color: #555; font-size: .9rem; margin: 0 0 .6rem; }
.gb-card-link { font-size: .85rem; color: #333; word-break: break-all; margin: 0; }

/* DJ tab "Gästebuch": the hosts' own link to record the greeting */
.gb-host-invite { margin: 12px 0 4px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.gb-host-invite > p { margin: 0 0 8px; font-size: .92rem; }
.gb-host-invite .url-box { margin: 8px 0; background: var(--surface); }
.gb-host-invite .row { margin-top: 8px; }
