:root {
  --night: #080c1c; --card: #121a32; --card-light: #19223e;
  --pink: #ef3995; --pink-hover: #ff60ad; --gold: #f7c75b;
  --white: #f8f9ff; --muted: #abb4d0; --border: #27304a;
  --radius: 24px;
  color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--night); color: var(--white);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 85% 0, #39163244, transparent 40%), var(--night); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--pink-hover); }
button, input, select, textarea { font: inherit; }
button, .button { display: inline-flex; justify-content: center; align-items: center; gap: .8rem; min-height: 48px; padding: .8rem 1.3rem; border-radius: 15px; border: 1px solid transparent; font-weight: 750; cursor: pointer; text-align: center; transition: background .15s, transform .15s; }
button:hover, .button:hover { transform: translateY(-1px); }
button:disabled { opacity: .5; cursor: wait; transform: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.primary { background: var(--pink); color: white; box-shadow: 0 8px 26px #ef399523; }
.primary:hover { background: var(--pink-hover); color: white; }
.secondary { background: var(--card-light); border-color: var(--border); color: white; }
.text-button { min-height: 44px; padding: .5rem; background: transparent; color: var(--muted); font-size: .85rem; }
.danger { color: #ff9bac; }
.large { min-height: 60px; padding: 1rem 1.8rem; }
.full { width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.08; letter-spacing: -.045em; margin-bottom: 1.5rem; }
h2 { font-size: 1.35rem; letter-spacing: -.025em; }
h3 { font-size: 1rem; }
p { line-height: 1.65; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.gold-text { color: var(--gold); }
.pink-text { color: var(--pink-hover); }
.lead { color: #d5daed; font-size: 1.2rem; line-height: 1.7; }
.eyebrow { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .16em; margin-bottom: 1rem; }
.quiet-link { color: var(--muted); font-size: .88rem; }
.topbar { max-width: 1180px; margin: auto; height: 96px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; font-size: 1.65rem; font-weight: 800; letter-spacing: -.065em; }
.brand-sub { display: block; color: var(--muted); font-size: .55rem; letter-spacing: .27em; margin-top: -.15rem; }
.brand-icon { display: grid; place-items: center; background: var(--pink); width: 43px; height: 43px; border-radius: 15px; font-size: 1.8rem; color: white; box-shadow: 0 0 28px #ef399526; }
.landing { max-width: 1180px; margin: 3rem auto; padding: 2rem 28px; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 3rem; }
.landing h1 { font-size: clamp(3rem, 5.5vw, 5rem); line-height: 1.07; }
.landing h1 em { color: var(--pink); font-style: normal; }
.landing .button { margin: 1rem 0; min-width: 285px; justify-content: space-between; }
.pulse-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px #f7c75b66; margin-right: .5rem; }
.steps { display: flex; gap: 2rem; margin-top: 3rem; color: var(--muted); font-size: .8rem; }
.steps b { display: block; color: var(--gold); font-size: 1.15rem; margin-bottom: .5rem; }
.workspace { max-width: 1120px; padding: 36px 24px 90px; margin: auto; }
.narrow, .form-page { max-width: 540px; }
.narrow { margin: 3rem auto; padding: 0 24px; }
.form-page { margin: 1rem auto 2rem; }
.card { background: var(--card); border: 1px solid var(--border); padding: 24px; border-radius: var(--radius); margin-bottom: 1rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 1rem; margin-bottom: 2rem; }
.card-grid .card { margin: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1rem 0; }
.section-heading h2 { margin: 0; }
.button-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.button-row.equal > * { flex: 1; }
.artist-nav { max-width: 1120px; margin: auto; padding: 1rem 24px; display: flex; gap: 1.8rem; border-bottom: 1px solid var(--border); overflow-x: auto; white-space: nowrap; font-size: .88rem; }
.artist-nav a { padding: .4rem 0; }
.card-bottom { display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 1rem; font-size: .8rem; }
.session-card h2 { margin: 1.3rem 0 .6rem; }
.badge { display: inline-flex; align-items: center; padding: .4rem .7rem; border-radius: 9px; background: #abb4d012; font-size: .68rem; font-weight: 800; color: var(--muted); }
.badge.gold { color: var(--gold); background: #f7c75b13; }
label { display: block; margin: .8rem 0 .5rem; color: #e2e7f7; font-weight: 650; font-size: .86rem; }
input, select, textarea { width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid #34405f; background: #0c1226; color: white; padding: .85rem 1rem; margin-bottom: .7rem; }
textarea { min-height: 110px; resize: vertical; }
input[type=checkbox] { width: 22px; min-height: 22px; vertical-align: middle; accent-color: var(--pink); }
input[type=file] { font-size: .82rem; }
form ul { color: #ffa6b7; font-size: .8rem; padding-left: 1.3rem; }
.form-stack { display: flex; flex-direction: column; }
.form-stack label { margin-top: .3rem; }
form button { margin-top: .4rem; }
.form-stack p { margin: .5rem 0 1.2rem; }
.compact { padding: 16px 22px; }
summary { cursor: pointer; }
.table-scroll { overflow: auto; }
table { border-collapse: collapse; width: 100%; white-space: nowrap; font-size: .85rem; }
th, td { text-align: left; padding: .8rem; border-bottom: 1px solid var(--border); }
th { color: var(--muted); }
.confirm-import { margin: 2rem 0; }
.break-word { overflow-wrap: anywhere; }
.flash-area { max-width: 800px; margin: auto; padding: 0 20px; }
.flash { border-radius: 12px; padding: 1rem; background: #192f32; border: 1px solid #305f57; font-size: .9rem; }
.flash.error { background: #361b31; border-color: #673149; color: #ffd2df; }
.empty { text-align: center; padding: 2.5rem 1.5rem; color: var(--muted); }
.empty h2 { color: white; }
.music-tile { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: #ef39951a; border: 1px solid #ef399535; color: var(--pink-hover); font-size: 2rem; margin-bottom: 1.4rem; }
.join-page { text-align: center; }
.join-page .card { text-align: left; }
.code-input { font-size: 2.4rem; text-align: center; letter-spacing: .25em; font-variant-numeric: tabular-nums; padding: .7rem .2rem .7rem .7rem; }
.stage-shell { max-width: 520px; padding: 12px 18px 60px; margin: auto; }
.stage-title { font-size: 1.5rem; margin: 0; }
.stage-shell .eyebrow { margin-bottom: .55rem; }
.connection { color: var(--muted); font-size: .65rem; white-space: nowrap; }
.connection.online { color: #9bdfc5; }
.stage-meta { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; margin: 1rem 0; }
.code-inline { letter-spacing: .13em; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border: 1px solid var(--border); border-radius: 17px; padding: .9rem .3rem; margin-bottom: 1rem; text-align: center; }
.stats b { display: block; font-size: 1.25rem; }
.stats span { font-size: .6rem; color: var(--muted); }
.current-card { background: radial-gradient(ellipse at right top, #f7c75b0e, transparent 80%), var(--card); border-color: #f7c75b44; padding: 22px; }
.current-card h2 { font-size: clamp(1.65rem, 5vw, 2.2rem); margin: .7rem 0 .4rem; line-height: 1.1; }
.current-card p { color: var(--muted); margin: 0; }
.finish-song { min-height: 76px; font-size: 1.05rem; margin: 0 0 1rem; border-radius: 20px; }
.next-card h3 { margin: .7rem 0 .2rem; font-size: 1.25rem; }
.next-card p { margin: .3rem 0 0; font-size: .85rem; }
.up-next { margin: 1.5rem 0; }
.up-next h2 { display: flex; justify-content: space-between; align-items: center; }
.compact-song { display: flex; gap: 1rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid #27304a88; font-size: .8rem; }
.compact-song > div { flex: 1; }
.compact-song small { display: block; color: var(--muted); margin-top: .15rem; }
.stage-footer { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-top: 1.5rem; flex-wrap: wrap; }
.stage-footer .button { font-size: .8rem; }
.qr-screen { max-width: 800px; margin: 1rem auto 4rem; text-align: center; padding: 16px 24px; }
.qr-screen:fullscreen { background: var(--night); max-width: none; overflow: auto; margin: 0; }
.qr-screen h1 { margin-bottom: .6rem; }
.qr-frame { background: white; display: inline-block; padding: 10px; border-radius: 24px; box-shadow: 0 0 70px #ef399522; margin-bottom: 1rem; }
.qr-frame img { display: block; max-width: 66vw; height: auto; }
.join-code { color: var(--gold); font-size: clamp(2.8rem, 8vw, 4.5rem); letter-spacing: .18em; font-weight: 800; margin: -.7rem 0 .6rem; }
.qr-current { margin: 2rem 0 1rem; }
.qr-current h2 { font-size: 1.3rem; }
.public-shell { max-width: 760px; margin: auto; padding: 16px 22px 110px; }
.concert-heading { display: flex; align-items: center; gap: 1rem; margin: .5rem 0 2rem; }
.artist-avatar { width: 66px; height: 66px; border-radius: 22px; background: linear-gradient(140deg, #ef3995, #8c308a); display: grid; place-items: center; font-size: 2rem; font-weight: 800; }
.concert-heading h1 { margin: .3rem 0; font-size: 2rem; }
.concert-heading .eyebrow { margin: 0; }
.concert-heading p { font-size: .8rem; margin: 0; }
.filters { display: flex; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.filters input { flex: 1 1 250px; }
.filters select { flex: 1 1 160px; width: auto; }
.filters button { margin: 0 0 .7rem; }
.vote-meter { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; font-size: .8rem; }
.vote-meter b { color: var(--pink-hover); font-size: 1.1rem; }
.song-row { display: flex; align-items: center; gap: .85rem; padding: 14px; border-radius: 18px; margin-bottom: .65rem; }
.song-row.is-voted { border-color: #ef399570; background: #211b36; }
.song-cover { width: 48px; height: 52px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: linear-gradient(145deg, #283a5a, #3b254c); color: var(--gold); font-size: 1.6rem; }
.song-info { flex: 1; min-width: 0; }
.song-info h3 { margin: 0 0 .2rem; font-size: .94rem; line-height: 1.3; }
.song-info p { margin: 0; color: var(--muted); font-size: .77rem; line-height: 1.4; }
.song-tags { display: flex; gap: .3rem; margin-top: .4rem; flex-wrap: wrap; }
.song-tags span { font-size: .56rem; border-radius: 5px; padding: .2rem .4rem; background: #abb4d00e; color: var(--muted); }
.vote-button { min-width: 53px; min-height: 55px; padding: .4rem .55rem; margin: 0; flex-direction: column; gap: 0; color: var(--pink-hover); background: #ef399511; border-color: #ef399530; border-radius: 14px; }
.vote-button span { font-size: 1.25rem; line-height: 1.2; }
.vote-button b { font-size: .72rem; }
.vote-button small { font-size: .55rem; }
.vote-button.selected { background: var(--pink); color: white; }
.song-number { width: 24px; text-align: center; color: var(--gold); font-weight: 800; flex-shrink: 0; }
.bottom-nav { position: fixed; z-index: 20; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 760px); display: grid; grid-template-columns: repeat(4, 1fr); background: #0f152af7; border: 1px solid var(--border); border-bottom: 0; border-radius: 22px 22px 0 0; padding: .7rem .3rem max(.7rem, env(safe-area-inset-bottom)); backdrop-filter: blur(15px); }
.bottom-nav a { text-align: center; color: var(--muted); font-size: .62rem; padding: .2rem; }
.bottom-nav span { display: block; font-size: 1.45rem; margin-bottom: .25rem; }
.bottom-nav a.active { color: var(--pink-hover); }
.notice { padding: .8rem 1rem; border-radius: 12px; background: #f7c75b13; color: var(--gold); font-size: .8rem; }
.public-current { text-align: center; padding: 2.5rem 1rem; }
.sound-bars { height: 55px; display: flex; align-items: center; justify-content: center; gap: 6px; margin: 1.5rem; }
.sound-bars i { width: 7px; border-radius: 10px; height: 30px; background: var(--gold); }
.sound-bars i:nth-child(2n) { height: 50px; }.sound-bars i:nth-child(3n) { height: 20px; }
.end-screen { text-align: center; padding: 2rem 1.5rem; }
.end-screen h1 { font-size: clamp(2rem, 7vw, 3rem); }
.social-buttons { display: grid; gap: .8rem; margin: 2rem 0; }
.toast { position: fixed; z-index: 100; top: 12px; left: 50%; transform: translateX(-50%); width: min(90%, 500px); padding: 1rem; background: #361b31; border: 1px solid #ef399580; border-radius: 16px; box-shadow: 0 8px 40px #0008; font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* Flexible content must shrink inside cards, flex rows and live columns. */
img, svg { max-width: 100%; }
input, select, textarea { min-width: 0; font-size: 1rem; }
h1, h2, h3, p, .badge, .quiet-link, .compact-song b { overflow-wrap: anywhere; }
.topbar > *, .section-heading > *, .concert-heading > *, .card-grid > *,
.button-row > *, .stage-footer > *, .compact-song > div { min-width: 0; }
.brand, .brand-icon, .artist-avatar { flex-shrink: 0; }
.topbar > .quiet-link { text-align: right; }
.artist-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.table-scroll { max-width: 100%; }
.card-bottom, .stage-meta, .vote-meter { gap: .75rem; flex-wrap: wrap; }
.button-row.equal > * { flex: 1 1 140px; }
.stage-shell { max-width: 1120px; padding: 24px 24px max(40px, env(safe-area-inset-bottom)); }
.stage-title { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.stage-shell .section-heading { align-items: flex-start; }
.stage-shell .connection { padding-top: .3rem; flex-shrink: 0; }
.stage-performance { min-width: 0; }
.stage-shell .stats b { font-size: clamp(1.25rem, 3vw, 1.8rem); overflow-wrap: anywhere; }
.stage-shell .stats span { font-size: .75rem; }
.stage-shell .current-card h2 { font-size: clamp(1.75rem, 3.5vw, 2.8rem); }
.stage-shell .next-card h3 { font-size: clamp(1.25rem, 2.5vw, 1.65rem); }
.stage-shell .compact-song { min-height: 64px; font-size: 1rem; }
.stage-shell .compact-song > b { flex-shrink: 0; }
.stage-shell .compact-song small { font-size: .85rem; }
.up-next h2 { gap: .75rem; flex-wrap: wrap; }
.stage-footer > a, .stage-footer > form { flex: 1 1 200px; }
.stage-footer button { width: 100%; }
.stage-shell .finish-song { min-height: 76px; }
.stage-shell .button-row button { min-height: 56px; }
.stage-performance > form > button { width: 100%; }
.qr-screen .quiet-link { overflow-wrap: anywhere; }
@media (min-width: 768px) {
 .stage-shell #live-panel { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: 24px; align-items: start; }
 .stage-shell .stage-meta, .stage-shell .stats, .stage-shell .stage-footer, .stage-shell .stage-performance { grid-column: 1 / -1; }
 .stage-shell #live-panel:has(.up-next) .stage-performance { grid-column: auto; }
 .stage-shell .up-next { margin: 0; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); min-width: 0; }
 .stage-shell .up-next h2 { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 767px) {
 .topbar { min-height: 78px; height: auto; padding: 16px 18px; }
 .workspace { padding: 20px 18px 60px; }
 .artist-nav { padding: .4rem 18px; gap: 1.25rem; }
 .section-heading { align-items: flex-start; flex-wrap: wrap; }
 .section-heading h1 { font-size: clamp(2rem, 6vw, 2.75rem); }
 .card { padding: 20px; }
 .stage-shell { padding: 12px 18px max(32px, env(safe-area-inset-bottom)); }
 .stage-shell .section-heading { gap: .6rem; }
 .stage-shell .section-heading > div { flex: 1 1 200px; }
 .stage-shell .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem .5rem; padding: 1rem; }
 .stage-shell .stats span { font-size: .8rem; }
 .stage-footer { align-items: stretch; }
 .stage-footer > a, .stage-footer > form { flex-basis: 100%; }
 .narrow { margin-top: 1.5rem; padding-inline: 18px; }
 .landing { margin: 1rem auto; grid-template-columns: minmax(0, 1fr); padding: 1rem 18px 3rem; gap: 1rem; }
 .landing h1 { font-size: clamp(2.5rem, 8vw, 3.5rem); }
 .landing .lead { font-size: 1rem; }
 .landing .button { min-width: 0; width: 100%; }
 .steps { gap: 1rem; flex-wrap: wrap; }
 .steps > div { flex: 1 1 80px; }
 .public-shell { padding: 12px 16px calc(110px + env(safe-area-inset-bottom)); }
 .concert-heading { gap: .75rem; margin-bottom: 1.25rem; }
 .concert-heading h1 { font-size: clamp(1.65rem, 6vw, 2.25rem); }
 .artist-avatar { width: 56px; height: 56px; border-radius: 18px; }
 .public-shell .filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: .25rem; }
 .public-shell .filters select { width: 100%; }
 .public-shell .filters input, .public-shell .filters select, .public-shell .filters button { min-height: 52px; }
 .public-shell .song-row { gap: .65rem; padding: 14px 10px; }
 .public-shell .song-info h3 { font-size: 1.0625rem; }
 .public-shell .song-info p { font-size: .9375rem; }
 .public-shell .song-tags span { font-size: .7rem; }
 .public-shell .vote-button { min-width: 62px; min-height: 66px; }
 .public-shell .vote-button b { font-size: .9rem; }
 .public-shell .vote-button small { font-size: .7rem; }
 .bottom-nav a { display: flex; flex-direction: column; justify-content: center; min-height: 56px; font-size: .75rem; }
 .bottom-nav span { font-size: 1.5rem; }
 .join-page h1 { font-size: clamp(2rem, 8vw, 3rem); }
 .join-page .eyebrow { font-size: .8rem; }
 .join-page button { width: 100%; min-height: 56px; }
 .qr-screen { padding-inline: 18px; }
}
@media (max-width: 360px) {
 .topbar { padding-inline: 12px; gap: .5rem; }
 .topbar .quiet-link { font-size: .8rem; }
 .brand { font-size: 1.4rem; gap: .5rem; }
 .workspace, .stage-shell, .public-shell, .narrow { padding-inline: 12px; }
 .card { padding: 16px; }
 .song-row { flex-wrap: wrap; }
 .song-info { flex-basis: 100px; }
 .public-shell .song-cover { width: 32px; height: 44px; }
 .public-shell .song-row { gap: .5rem; }
 .code-input { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* The artist keeps the full catalogue and the audience's suggestions side by side. */
.stage-shell { max-width: 1560px; }
.stage-shell #live-panel { display: block; }
.song-columns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; min-width: 0; margin-top: 1.5rem; }
.song-column { min-width: 0; padding: 20px; margin: 0; display: flex; flex-direction: column; }
.song-column header { flex-shrink: 0; }
.song-column h2 { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem; }
.song-column header p { line-height: 1.5; }
.song-column-scroll { overflow-y: auto; overflow-x: hidden; max-height: 55vh; max-height: 55dvh; min-height: 160px; overscroll-behavior-y: contain; scrollbar-gutter: stable; padding-right: .5rem; }
.song-column-scroll:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.library-song { display: flex; align-items: flex-start; gap: .75rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.library-song .song-number { font-size: .85rem; padding-top: .15rem; }
.library-song .badge { margin-top: .5rem; }
.library-song.is-unavailable { color: var(--muted); }
.liked-song { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.liked-song form, .liked-song button { width: 100%; }
.liked-song button { min-height: 48px; margin-top: .75rem; font-size: .85rem; }
.liked-column { border-color: #ef399550; }
@media (min-width: 768px) {
 .song-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
 .stage-performance { max-width: 720px; margin-inline: auto; }
 .stage-shell .stage-footer { margin-top: 1.5rem; }
}
@media (min-width: 1200px) {
 .stage-shell #live-panel { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 2fr); gap: 0 24px; align-items: start; }
 .stage-shell .stage-performance { grid-column: 1; max-width: none; width: 100%; }
 .song-columns { grid-column: 2; margin-top: 0; }
 .song-column-scroll { max-height: 64vh; max-height: 64dvh; }
}

.profile-page { max-width: 680px; }
.passkey-list { list-style: none; padding: 0; margin: 1rem 0; }
.passkey-list li { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.passkey-list li > div { min-width: 0; flex: 1 1 200px; overflow-wrap: anywhere; }
.passkey-list li p { margin: .4rem 0 0; }
.passkey-message:empty { display: none; }

.library-song, .liked-song { display: block; padding: 0; border: 0; }
.library-song form, .liked-song form { width: 100%; }
.song-column .song-choice { display: flex; align-items: flex-start; justify-content: flex-start; gap: .75rem; width: 100%; min-height: 72px; margin: 0; padding: 1rem .25rem; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; color: var(--white); text-align: left; font-weight: 400; }
.song-column .song-choice:hover { background: #ef399510; transform: none; }
.song-column .song-choice:focus-visible { outline-offset: -3px; }
.song-choice .song-info { display: block; }
.song-choice .song-title { display: block; font-size: 1rem; font-weight: 750; line-height: 1.4; overflow-wrap: anywhere; }
.song-choice .song-artist { display: block; margin: .3rem 0; color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }

/* Display preferences keep the familiar layout available while defaulting to a denser stage. */
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; min-width: 0; }
.header-actions > form { margin: 0; }
.icon-button { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--card-light); color: var(--white); }
.icon-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.icon-button[aria-pressed=true] { border-color: var(--pink); color: var(--pink-hover); background: #ef399518; }
.theme-moon { display: none; }
[data-theme=light] .theme-sun { display: none; }
[data-theme=light] .theme-moon { display: block; }
.stage-toolbar { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .6rem; }
.density-controls { display: inline-flex; gap: .25rem; }
.stage-shell .stage-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .5rem; }
.stage-meta > .badge { justify-self: start; }
.stage-meta > span:last-child { justify-self: end; text-align: right; }
.session-clock { text-align: center; font-variant-numeric: tabular-nums; }
.session-clock > span { display: block; color: var(--muted); font-size: .7rem; margin-bottom: .2rem; }
.session-clock time { display: block; font-size: clamp(1.3rem, 3vw, 1.9rem); letter-spacing: .06em; font-weight: 750; color: var(--gold); }
.skip-hint { margin: .6rem 0 0; line-height: 1.4; }
.next-card form { margin-top: .8rem; }

[data-theme=light] {
 --night: #f4f6fb; --card: #ffffff; --card-light: #e9edf6;
 --pink: #b51d64; --pink-hover: #96154f; --gold: #805400;
 --white: #17233d; --muted: #506079; --border: #cbd4e3;
 color-scheme: light;
}
[data-theme=light] body { background: radial-gradient(ellipse at 85% 0, #f1d8e666, transparent 40%), var(--night); }
[data-theme=light] .secondary, [data-theme=light] .empty h2, [data-theme=light] label { color: var(--white); }
[data-theme=light] .lead { color: var(--muted); }
[data-theme=light] input, [data-theme=light] select, [data-theme=light] textarea { color: var(--white); background: var(--card); border-color: var(--border); }
[data-theme=light] .notice { background: #fff2cd; }
[data-theme=light] .danger { color: #a3153e; }
[data-theme=light] .flash { background: #e1f4e9; border-color: #80bd9c; color: #19452f; }
[data-theme=light] .flash.error, [data-theme=light] .toast { background: #fce7ee; border-color: #cf8ba0; color: #7f183b; }
[data-theme=light] .bottom-nav { background: #fffffff5; }
[data-theme=light] .song-row.is-voted { background: #fce8f2; }
[data-theme=light] .artist-avatar { color: white; }
[data-theme=light] .gold-text { color: var(--gold); }
[data-theme=light] .current-card { border-color: #c0a365; }
[data-theme=light] .connection.online { color: #176347; }

[data-density=compact] .topbar { height: auto; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
[data-density=compact] .stage-shell { padding-top: 8px; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
[data-density=compact] .stage-shell .section-heading { margin: .3rem 0 .5rem; align-items: center; }
[data-density=compact] .stage-shell .stage-title { font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
[data-density=compact] .stage-shell .eyebrow { margin-bottom: .35rem; font-size: .65rem; }
[data-density=compact] .stage-shell .stage-meta { margin: .35rem 0 .6rem; }
[data-density=compact] .stage-shell .stats { padding: .45rem .3rem; margin-bottom: .6rem; gap: .35rem; }
[data-density=compact] .stage-shell .stats b { font-size: 1.2rem; }
[data-density=compact] .stage-shell .stats span { font-size: .7rem; }
[data-density=compact] .stage-shell .card { padding: 12px; border-radius: 14px; margin-bottom: .6rem; }
[data-density=compact] .stage-shell .song-column { margin-bottom: 0; }
[data-density=compact] .stage-shell .current-card h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); margin: .4rem 0 .25rem; }
[data-density=compact] .stage-shell .next-card h3 { font-size: 1.1rem; margin: .35rem 0 .2rem; }
[data-density=compact] .stage-shell .next-card p { font-size: .8rem; }
[data-density=compact] .stage-shell .finish-song { min-height: 50px; padding: .6rem .8rem; margin-bottom: .6rem; border-radius: 12px; font-size: .95rem; }
[data-density=compact] .stage-shell .stage-performance > form > button { min-height: 44px; }
[data-density=compact] .stage-shell .next-card form { margin-top: .4rem; }
[data-density=compact] .stage-shell .next-card button { min-height: 44px; padding: .5rem .75rem; }
[data-density=compact] .stage-shell .skip-hint { margin-top: .35rem; font-size: .72rem; }
[data-density=compact] .stage-shell #live-panel { column-gap: 12px; }
[data-density=compact] .song-columns { gap: 10px; margin-top: .7rem; }
[data-density=compact] .song-column h2 { font-size: 1.05rem; margin-bottom: .4rem; }
[data-density=compact] .song-column header p { font-size: .75rem; margin-bottom: .5rem; line-height: 1.35; }
[data-density=compact] .song-column .song-choice { padding: .4rem .2rem; min-height: 48px; gap: .45rem; }
[data-density=compact] .song-choice .song-title { font-size: .9rem; line-height: 1.3; }
[data-density=compact] .song-choice .song-artist { margin: .15rem 0; font-size: .75rem; line-height: 1.3; }
[data-density=compact] .song-choice .small { font-size: .72rem; }
[data-density=compact] .song-column-scroll { max-height: 60vh; max-height: 60dvh; min-height: 100px; }
[data-density=compact] .stage-shell .stage-footer { margin-top: .7rem; gap: .5rem; }
[data-density=compact] .stage-footer .button, [data-density=compact] .stage-footer button { min-height: 44px; padding: .5rem .75rem; }
@media (min-width: 1200px) {
 [data-density=compact] .song-columns { margin-top: 0; }
 [data-density=compact] .song-column-scroll { max-height: 70vh; max-height: 70dvh; }
}
@media (max-width: 767px) {
 .stage-toolbar { justify-content: flex-start; }
 [data-density=compact] .stage-shell .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
 .stage-shell .stage-meta > .badge { font-size: .6rem; padding: .35rem .45rem; }
 .stage-meta > span:last-child { font-size: .75rem; }
 .code-inline { letter-spacing: .06em; }
 .session-clock time { font-size: 1.15rem; }
}
@media (max-width: 360px) {
 .header-actions { gap: .35rem; }
 .header-actions .quiet-link { font-size: .75rem; }
 .header-actions .icon-button { width: 44px; min-height: 44px; height: 44px; padding: 10px; }
 [data-density=compact] .stage-shell .stats span { font-size: .62rem; }
 .stage-meta > .badge { max-width: 85px; }
}

[data-theme=light] .song-cover { background: #f2e8d0; }

/* A larger clock stays in the existing metadata row; the blocks below retain their position. */
.session-clock { position: relative; container-type: inline-size; width: clamp(150px, 38vw, 430px); height: 49px; --clock-controls: 0px; --clock-divisor: 4.7; }
.session-clock > span { display: none; }
.session-clock:has(.clock-toggle) { --clock-controls: 54px; }
.session-clock:has([data-long-clock="1"]) { --clock-divisor: 6; }
.clock-display { position: absolute; inset-inline: 0; top: -10px; height: 60px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.session-clock .clock-display time { font-size: clamp(1rem, calc((100cqw - var(--clock-controls)) / var(--clock-divisor)), 3.8rem); line-height: 1; letter-spacing: .025em; white-space: nowrap; }
.clock-display form { flex: 0 0 auto; margin: 0; }
.clock-display .clock-toggle { margin: 0; min-width: 44px; width: 44px; }
body { display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
.site-footer { width: 100%; max-width: 1180px; margin: auto auto 0; padding: 14px 18px 18px; color: var(--muted); font-size: .7rem; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1rem; }
.site-footer a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: underline; text-underline-offset: 3px; }
body:has(.bottom-nav) .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (max-width: 767px) {
 .stage-meta > .badge { max-width: 100%; }
 .stage-meta > span:last-child { overflow-wrap: normal; }
 .session-clock { width: clamp(140px, 38vw, 240px); }
}

.topbar, .artist-nav, .flash-area { width: 100%; }

.catalog-filters { display: flex; flex-wrap: wrap; align-items: start; gap: .5rem; margin: 1rem 0; }
.catalog-filters input { flex: 1 1 220px; width: auto; margin: 0; }
.catalog-filters select { flex: 0 1 180px; width: auto; margin: 0; }
.catalog-filters button { margin: 0; }
.catalog-list, .playlist-entries { list-style: none; padding: 0 12px; margin: 0 0 1rem; }
.catalog-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: .5rem; border-bottom: 1px solid var(--border); }
.catalog-row:last-child, .playlist-entry:last-child { border-bottom: 0; }
.catalog-main { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: center; gap: .75rem; min-height: 60px; padding: 8px 0; }
.catalog-identity, .catalog-identity > span, .entry-info, .entry-info > span { display: block; min-width: 0; }
.catalog-identity strong, .entry-info strong { display: block; overflow-wrap: anywhere; font-size: .95rem; line-height: 1.35; }
.catalog-identity > span, .entry-info > .muted, .catalog-meta { font-size: .8rem; line-height: 1.4; }
.catalog-row form, .catalog-row form button { margin: 0; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .75rem; margin: 1rem 0; }
.playlist-entries { position: relative; }
.playlist-entry { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: .5rem; min-height: 60px; padding: 6px 0; border-bottom: 1px solid var(--border); background: var(--card); }
.drag-handle { cursor: grab; touch-action: none; margin: 0; font-size: 1.7rem; padding: 4px; background: transparent; }
.drag-handle:active { cursor: grabbing; }
.entry-main { display: flex; align-items: center; min-width: 0; min-height: 48px; gap: .7rem; }
.entry-position { flex: 0 0 24px; color: var(--gold); text-align: center; font-size: .85rem; }
.entry-disabled .entry-info { opacity: .6; }
.row-menu { position: relative; }
.row-menu > summary { display: flex; justify-content: center; align-items: center; width: 44px; height: 44px; font-size: 1.4rem; list-style: none; border: 1px solid var(--border); border-radius: 10px; }
.row-menu > summary::-webkit-details-marker { display: none; }
.row-menu-panel { position: absolute; z-index: 40; right: 0; top: calc(100% + 4px); min-width: 200px; padding: 6px; border: 1px solid var(--border); border-radius: 12px; background: var(--card-light); box-shadow: 0 8px 24px #0004; }
.row-menu-panel form { margin: 0; }
.row-menu-panel a, .row-menu-panel button { display: flex; justify-content: flex-start; align-items: center; min-height: 44px; width: 100%; margin: 0; padding: .5rem .7rem; font-size: .85rem; text-align: left; }
.row-menu-panel button:disabled { cursor: default; }
.playlist-message:empty { display: none; }
.playlist-message { font-size: .9rem; color: var(--gold); }
.is-saving .playlist-entries { opacity: .7; pointer-events: none; }
.drag-ghost { opacity: .3; }
.drag-chosen { outline: 2px solid var(--pink); outline-offset: -2px; }
.song-picker { width: min(640px, calc(100vw - 24px)); max-height: min(85vh, 900px); max-height: min(85dvh, 900px); margin: auto; padding: 20px; border: 1px solid var(--border); border-radius: 20px; color: var(--white); background: var(--card); box-shadow: 0 15px 80px #0007; }
.song-picker::backdrop { background: #030716b8; backdrop-filter: blur(3px); }
.picker-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .5rem; }
.picker-heading h2 { margin: 0; }
.picker-results { list-style: none; padding: 0; margin: 0; max-height: 45vh; max-height: 45dvh; overflow-y: auto; overscroll-behavior: contain; }
.picker-song { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .15rem; min-height: 60px; width: 100%; padding: 8px 6px; margin: 0; text-align: left; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; color: var(--white); }
.picker-song:hover { background: #ef399510; transform: none; }
.picker-song strong { font-size: .95rem; overflow-wrap: anywhere; }
.picker-song span, .picker-song small { color: var(--muted); font-size: .8rem; font-weight: 400; overflow-wrap: anywhere; }
.picker-song small:empty { display: none; }
@media (max-width: 600px) {
 .catalog-main { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
 .catalog-actions { width: 100%; }
 .catalog-actions > * { flex: 1 1 130px; }
 .catalog-filters select { flex: 1 1 140px; }
 .catalog-filters button { flex: 1 1 120px; }
 .playlist-entries, .catalog-list { padding-inline: 8px; }
 .playlist-entry { gap: .25rem; }
 .entry-main { gap: .25rem; }
 .entry-position { flex-basis: 20px; }
 .song-picker { padding: 14px; }
}
.song-picker[open] { display: flex; flex-direction: column; }
.song-picker .picker-heading, .song-picker > p, .song-picker > input, .song-picker > .pagination, .song-picker > a { flex-shrink: 0; }
.song-picker .picker-results { flex: 1 1 auto; min-height: 60px; }
.song-picker .pagination { flex-wrap: nowrap; gap: .4rem; }
.song-picker .pagination button { min-width: 0; padding: .55rem .65rem; font-size: .8rem; white-space: nowrap; }
.song-picker .pagination span { white-space: nowrap; }

.site-footer .footer-credit { margin: 8px 0 0; text-align: center; line-height: 1.6; }
.site-footer .footer-credit a { display: inline; min-height: 0; }
/* Upcoming concerts: ten dates per page in chronological order. */
.landing:has(.concert-panel) { align-items: start; }
.landing-copy { padding-top: 20px; min-width: 0; }
.concert-panel { min-width: 0; scroll-margin-top: 20px; }
.concert-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.concert-heading h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.12; margin: 8px 0 12px; }
.concert-heading h2 em { color: var(--gold); font-style: normal; }
.concert-total { flex-shrink: 0; font-size: .7rem; border: 1px solid var(--border); border-radius: 999px; padding: 7px 10px; color: var(--muted); margin-bottom: 16px; }
.concert-intro { margin: 0 0 18px; line-height: 1.6; }
.concert-artists { display: grid; gap: 18px; }
.concert-artist { min-width: 0; border: 1px solid var(--border); border-radius: 22px; background: linear-gradient(135deg, #ef39950b, transparent 55%), var(--card); overflow: hidden; box-shadow: 0 10px 35px #0000000f; }
.concert-artist-heading { display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px; border-bottom: 1px solid var(--border); }
.concert-artist-heading > div:last-child { min-width: 0; }
.concert-artist-heading .eyebrow { font-size: .58rem; letter-spacing: .15em; }
.concert-artist-heading h3 { font-size: 1.2rem; margin: 3px 0 0; overflow-wrap: anywhere; }
.concert-avatar { flex: 0 0 48px; width: 48px; height: 48px; display: grid; place-items: center; background: linear-gradient(130deg, var(--pink), #862d89); border-radius: 15px; color: white; font-size: 1.5rem; font-weight: 800; overflow: hidden; }
.concert-avatar img { width: 100%; height: 100%; object-fit: cover; }
.concert-dates { list-style: none; padding: 0 18px; margin: 0; }
.concert-date { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); align-items: start; }
.concert-date:last-child { border-bottom: 0; }
.concert-date-badge { display: flex; flex-direction: column; align-items: center; border: 1px solid #f7c75b40; background: #f7c75b0c; color: var(--gold); border-radius: 13px; padding: 8px 3px; }
.concert-date-badge strong { font-size: 1.8rem; line-height: 1.15; }
.concert-date-badge span { font-size: .6rem; letter-spacing: .04em; margin-top: 3px; }
.concert-date-badge b { font-size: .78rem; margin-top: 7px; color: var(--white); }
.concert-date-info { min-width: 0; }
.concert-date h4 { margin: 2px 0 7px; font-size: .98rem; line-height: 1.35; overflow-wrap: anywhere; }
.concert-venue { display: flex; align-items: flex-start; gap: 6px; color: var(--muted); font-size: .8rem; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.concert-venue svg { width: 15px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; margin-top: 1px; }
.concert-socials { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 8px 18px; border-top: 1px solid var(--border); background: #ef399505; }
.concert-socials a, .concert-join { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: .76rem; color: var(--pink); overflow-wrap: anywhere; }
.concert-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; font-size: .8rem; }
.concert-pagination a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.concert-page-note { text-align: center; margin-top: 8px; }
.concert-empty { border: 1px dashed var(--border); padding: 34px 24px; border-radius: 22px; text-align: center; background: var(--card); }
.concert-empty > span { display: inline-flex; align-items: center; justify-content: center; width: 55px; height: 55px; border-radius: 18px; background: #ef399510; color: var(--pink); font-size: 1.8rem; }
.concert-empty h3 { font-size: 1.05rem; }
.concert-empty p { font-size: .85rem; line-height: 1.6; margin-bottom: 0; }
.session-main { display: block; }
.session-appointment { font-size: .85rem; line-height: 1.6; overflow-wrap: anywhere; }
.session-appointment time { color: var(--gold); }
.session-schedule-action { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; }
@media (max-width: 767px) {
 .concert-panel { margin-top: 20px; }
 .concert-date { grid-template-columns: 66px minmax(0,1fr); gap: 10px; }
 .concert-artist-heading { padding: 14px; }
 .concert-dates { padding-inline: 12px; }
 .concert-total { padding: 6px 8px; font-size: .65rem; }
 .concert-heading h2 { font-size: 1.9rem; }
}

.concert-panel { touch-action: pan-y pinch-zoom; }
.concert-swipe-hint { display: none; text-align: center; margin: 8px 0; }
@media (max-width: 767px) { .concert-swipe-hint { display: block; } }
.concert-artist { touch-action: pan-y pinch-zoom; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
@media (min-width: 768px) and (max-width: 1024px) { .concert-swipe-hint { display: block; } }
.catalog-row { grid-template-columns: minmax(0,1fr) auto; }
.catalog-row-actions, .concert-admin-actions, .concert-admin-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.catalog-row-actions .icon-button { display: inline-flex; align-items: center; justify-content: center; }
.concert-admin-actions { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 10px; }
.concert-admin-actions form, .concert-admin-actions button { margin: 0; }
.concert-admin-tabs { margin-bottom: 18px; }
.concert-admin-tabs [aria-current=page] { border-color: var(--pink); }

.concert-ticket{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 14px;margin-top:8px;border:1px solid currentColor;border-radius:12px;color:var(--gold);font-weight:700;max-width:100%}
.concert-ticket:hover{text-decoration:underline}

[data-song-pages],.picker-results{touch-action:pan-y pinch-zoom;scroll-margin-top:16px}
[data-song-pages] .catalog-main,.picker-song{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.song-swipe-hint{display:none}
@media(max-width:1024px){.song-swipe-hint{display:block;text-align:center}}
