:root {
  color-scheme: dark;
  font-family: "Segoe UI", system-ui, sans-serif;
  --bg: #101612;
  --panel: #19231c;
  --panel-raised: #1e2b22;
  --line: #344438;
  --ink: #f5f0e3;
  --muted: #b7c3b7;
  --accent: #f2c98d;
  --green: #a8e6ab;
  background: var(--bg);
  color: var(--ink);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: var(--accent); text-underline-offset: .22em; }
p { line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, .button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--accent);
  color: #231b12;
  cursor: pointer;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
}
button:hover, .button:hover { filter: brightness(1.09); }
button:disabled { cursor: default; opacity: .5; }
.secondary { background: transparent; border-color: var(--line); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

.bar {
  display: flex;
  max-width: 1220px;
  min-height: 75px;
  padding: 14px clamp(16px, 5vw, 38px);
  margin: auto;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -.09em;
  text-decoration: none;
}
.brand span, .eyebrow { color: var(--accent); }
#switch { color: var(--muted); font-size: .9rem; font-weight: 650; }
main {
  width: min(calc(100% - 32px), 1060px);
  min-height: 68vh;
  margin: clamp(21px, 5vw, 46px) auto 32px;
}
.stage-page main { width: min(calc(100% - 32px), 1130px); }
footer { padding: 10px 16px 24px; color: var(--muted); font-size: .8rem; text-align: center; }

h1, h2, h3, p { margin-top: 0; }
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5rem);
  letter-spacing: -.065em;
  line-height: 1;
  margin-bottom: .2em;
  overflow-wrap: anywhere;
}
h2 { font-size: 1.16rem; letter-spacing: -.025em; }
h3 { font-size: 1rem; letter-spacing: -.01em; }
.eyebrow {
  margin-bottom: 9px;
  font-size: .73rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  width: fit-content;
  background: #273329;
  color: var(--muted);
  padding: 6px 10px;
  border: 1px solid #3c4e40;
  border-radius: 999px;
  font-size: .77rem;
  font-weight: 700;
}
.status-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.status-tag[data-state="live"] { color: var(--green); }
.status-tag[data-state="paused"] { color: var(--accent); }
.muted, small, .empty, .hero-copy { color: var(--muted); }
.empty { margin: 12px 0 0; }
small { display: block; margin-top: 3px; font-size: .84rem; }

.panel {
  min-width: 0;
  margin-bottom: 15px;
  padding: clamp(16px, 3vw, 22px);
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
}
.panel h2 { margin: 0 0 14px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.section-heading h2 { margin: 0; }
.count { color: var(--green); font-size: .9rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

label {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  font-size: .89rem;
  font-weight: 650;
}
label > span { color: var(--muted); }
input, select, textarea {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 8px 11px;
  background: #111914;
  color: var(--ink);
  border: 1px solid #465749;
  border-radius: 8px;
}
input::placeholder, textarea::placeholder { color: #a5b1a6; }
input[type="file"] { padding: 9px; }
textarea { min-height: 94px; resize: vertical; }
fieldset { min-width: 0; padding: 0; border: 0; margin: 0; }
legend { margin-bottom: 8px; font-size: .9rem; font-weight: 700; }
.check { display: flex; gap: 9px; align-items: center; }
.check input { width: 1rem; min-height: auto; accent-color: var(--accent); }
.notice { padding: 10px 12px; border-radius: 8px; line-height: 1.4; }
.notice:empty { display: none; }
.error { color: #ffd0be; background: #42302b; }
.success { color: var(--green); background: #25392a; }

.guest-hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  margin-bottom: clamp(18px, 4vw, 29px);
  padding: clamp(24px, 6vw, 58px);
  border: 1px solid var(--line);
  border-radius: 17px;
  background: radial-gradient(ellipse at 94% 30%, #314836 0, #223328 42%, #1a271f 78%);
}
.guest-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: repeating-radial-gradient(circle at 94% 72%, transparent 0 19px, #add3ab16 20px 21px, transparent 23px 29px);
  mask-image: linear-gradient(90deg, transparent 39%, #0009);
}
.guest-hero h1 { color: var(--ink); font-size: clamp(2.65rem, 8vw, 5.9rem); line-height: .99; }
.guest-hero h1 em { color: var(--accent); font-weight: inherit; }
.guest-hero p:last-child { max-width: 51ch; margin-bottom: 0; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 12px; margin-bottom: 15px; }
.hero-meta .eyebrow { margin-bottom: 0; }
.stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.guest-activity:empty { display: none; }
.live-set {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 16px;
}
.live-set .section-heading { grid-column: 1 / -1; margin-bottom: 0; }
.live-set .activity-section { margin-top: 0; }
.song {
  display: flex;
  width: 100%;
  min-height: 60px;
  padding: 10px 2px;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.song:last-child { border-bottom: 0; }
button.song:hover { color: var(--accent); background: #ffffff08; }
.song-copy { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.song-icon {
  display: grid;
  place-items: center;
  flex: 0 0 39px;
  height: 39px;
  color: var(--accent);
  border-radius: 7px;
  background: #314035;
}
.song-meta { color: var(--muted); }
.song-arrow { padding: 0 7px; color: var(--accent); }
.guest-request { padding: clamp(19px, 4vw, 32px); }
.guest-request h1 { font-size: clamp(2.1rem, 7.5vw, 4rem); }
.guest-back { margin-bottom: 13px; }
.guest-form { max-width: 680px; }
.guest-form .muted { margin-bottom: 12px; font-size: .9rem; }
.pills { display: flex; flex-wrap: wrap; gap: 7px; }
.pills label { position: relative; display: block; }
.pills input { position: absolute; opacity: 0; width: 1px; min-height: 0; }
.pills span { display: block; padding: 10px 13px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.pills input:checked + span { background: var(--accent); color: #231b12; }
.pills input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
#request-state { color: var(--accent); }
.now { background: #233429; padding: 13px; border-radius: 9px; }
.now h3, .activity-section h3 { color: var(--green); margin-bottom: 6px; font-size: .85rem; }
.now .empty, .activity-section .empty { margin-top: 0; font-size: .9rem; }
.activity-section { margin-top: 14px; }
.activity-list { list-style: none; margin: 0; padding: 0; }
.activity-item { padding: 7px 0; border-bottom: 1px solid var(--line); }
.activity-item:last-child { border-bottom: 0; }
.payment-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.payment-method { padding: 14px; border: 1px solid var(--line); border-radius: 8px; }
.payment-method p { margin: 10px 0; }
.payment-method h3 { margin-bottom: 10px; }

.login-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  align-items: center;
  max-width: 790px;
  min-height: 45vh;
  margin: auto;
}
.login-copy > p:last-child { color: var(--muted); }
.auth-help { margin-top: -9px; font-size: .86rem; }
.auth-actions { margin-top: 18px; }
.stage-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 15px; margin-bottom: 18px; }
.stage-intro h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); }
.stage-intro .hero-copy { margin: 0; }
.stage-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
}
.tabs button { flex: 1; border: 0; background: transparent; color: var(--muted); white-space: nowrap; }
.tabs button[aria-current="page"] { background: #34473a; color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.stats > div { min-width: 0; padding: 12px 15px; border: 1px solid var(--line); border-radius: 10px; background: #17221a; }
.stats span { display: block; margin-bottom: 4px; color: var(--muted); font-size: .82rem; }
.stats strong { color: var(--ink); font-size: clamp(1rem, 4vw, 1.52rem); overflow-wrap: anywhere; }
.request { padding: 13px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.request:last-child { padding-bottom: 0; }
.request-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.request h3 { margin: 0 0 2px; font-size: 1.13rem; }
.request p { margin: 3px 0 7px; }
.request-byline, .tip-label { color: var(--muted); font-size: .84rem; }
.reference { font-family: ui-monospace, monospace; font-size: .78rem; }
.request .message { white-space: pre-wrap; padding: 8px 10px; margin: 9px 0; border-left: 2px solid var(--accent); background: #111814; }
.request .paid { color: var(--green); font-weight: 650; }
.icon-button { min-width: 40px; padding-inline: 9px; }
.queue-order { flex-wrap: nowrap; }
.tip-actions, .now-panel form, #schedule { margin-top: 12px; }
.tip-actions summary, .history-row summary { cursor: pointer; }
.tip-actions form { padding: 10px 0 0; }
.now-panel { background: var(--panel-raised); }
.playing-waves { color: var(--green); letter-spacing: .13em; }
.catalog-song { justify-content: space-between; align-items: flex-start; overflow-wrap: anywhere; }
.gig-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.history-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.history-row:last-child { border: 0; }
.history-songs { padding: 0; list-style: none; }
.history-songs li { display: flex; flex-wrap: wrap; gap: 3px 8px; justify-content: space-between; padding: 5px 0; }
.history-songs span { color: var(--muted); }
.settings-panel { max-width: 680px; }
.preset-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.qr { display: block; width: min(100%, 272px); height: auto; padding: 8px; border-radius: 8px; background: white; }
.qr.small { width: 125px; margin-bottom: 10px; }
.share-url { overflow-wrap: anywhere; }
.local-note { color: var(--muted); font-size: .88rem; }
.print-card { border-color: #536b55; }

@media (max-width: 720px) {
  .stage-grid, .login-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .live-set { grid-template-columns: minmax(0, 1fr); }
  .stage-intro { align-items: flex-start; flex-direction: column; }
  .tabs button { flex: 1 1 calc(50% - 7px); }
}
@media (max-width: 395px) {
  .stats { gap: 6px; }
  .stats > div { padding: 9px 7px; }
  .stats span { font-size: .73rem; }
  .catalog-song { flex-wrap: wrap; }
}
@media print {
  :root, body { background: white; color: black; }
  body * { visibility: hidden; }
  .print-card, .print-card * { visibility: visible; }
  .print-card { position: absolute; top: 0; left: 0; border: 0; color: black; background: white; }
  .print-card a, .print-card .eyebrow { color: black; }
  .print-card button, .print-card .local-note { display: none; }
}
