:root {
    --bg: #050405;
    --panel: rgba(18, 16, 17, .72);
    --panel-strong: rgba(29, 24, 24, .88);
    --text: #fff7ed;
    --muted: #c5b8b2;
    --red: #ff352f;
    --red-soft: rgba(255, 53, 47, .2);
    --cream: #ffe8c9;
    --line: rgba(255, 232, 201, .1);
    --ok: #77e8a4;
    --warn: #ffcf66;
    --shadow: 0 24px 80px rgba(0,0,0,.34);
    --radius: 8px;
    color-scheme: dark;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
    max-width: 100%;
    overflow-x: hidden;
}

.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;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.stage-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(118deg, rgba(255, 53, 47, .16), transparent 32%),
        linear-gradient(252deg, rgba(255, 207, 102, .09), transparent 36%),
        linear-gradient(180deg, #030303 0%, #120808 46%, #050405 100%);
}

.stage-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(105deg, rgba(255,255,255,.025) 0 1px, transparent 1px 22px),
        linear-gradient(90deg, transparent, rgba(255, 232, 201, .05), transparent);
    opacity: .36;
    animation: lightSweep 9s linear infinite;
}

.stage-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.78)),
        linear-gradient(90deg, rgba(0,0,0,.44), transparent 44%, rgba(0,0,0,.38));
}

body.theme-school {
    --bg: #06100c;
    --panel: rgba(11, 35, 27, .84);
    --panel-strong: rgba(17, 47, 36, .94);
    --text: #fff8e6;
    --muted: #d8d2be;
    --red: #e84d37;
    --red-soft: rgba(232, 77, 55, .2);
    --cream: #fff0c8;
    --line: rgba(255, 240, 200, .18);
    --warn: #f5c84b;
    --ok: #7be2a0;
}

body.theme-september3 {
    --bg: #080304;
    --panel: rgba(32, 10, 11, .88);
    --panel-strong: rgba(51, 14, 14, .95);
    --text: #fff6e5;
    --muted: #dcc8ad;
    --red: #d8332a;
    --red-soft: rgba(216, 51, 42, .22);
    --cream: #ffe7b4;
    --line: rgba(255, 231, 180, .18);
    --warn: #f6c15f;
    --ok: #ffd98b;
}

body.theme-halloween {
    --bg: #080605;
    --panel: rgba(19, 12, 11, .84);
    --panel-strong: rgba(29, 16, 14, .95);
    --text: #fff2e7;
    --muted: #d1beb1;
    --red: #ec543d;
    --red-soft: rgba(236, 84, 61, .2);
    --cream: #ffe4c3;
    --line: rgba(255, 174, 91, .18);
    --ok: #81e7a9;
    --warn: #ffb34e;
}

body.theme-halloween .stage-bg {
    background:
        linear-gradient(180deg, rgba(6, 4, 4, .38), rgba(6, 4, 4, .76)),
        url("/assets/halloween-night-wide.png") center 40% / cover no-repeat,
        #080605;
}

body.theme-halloween .stage-bg::after {
    background:
        radial-gradient(ellipse at 8% 72%, rgba(255, 104, 39, .18), transparent 28%),
        radial-gradient(ellipse at 94% 18%, rgba(190, 42, 35, .12), transparent 26%);
    opacity: .5;
    animation: halloween-glow 8s ease-in-out infinite alternate;
}

body.theme-halloween .stage-bg::before {
    background: linear-gradient(180deg, rgba(5, 3, 3, .24), rgba(5, 3, 3, .74)), linear-gradient(90deg, rgba(5, 3, 3, .46), transparent 50%, rgba(5, 3, 3, .4));
}

body.theme-halloween .school-decor,
body.theme-halloween .september3-decor { display: none; }

body.theme-halloween .topbar,
body.theme-halloween .mobile-bottom-nav {
    background: rgba(11, 7, 6, .96);
    border-color: rgba(255, 174, 91, .2);
}

body.theme-halloween .main-menu { background: rgba(17, 9, 8, .98); }

body.theme-halloween .panel,
body.theme-halloween .queue-mini,
body.theme-halloween .list-section,
body.theme-halloween .login-panel {
    border-color: rgba(255, 174, 91, .16);
    background: linear-gradient(180deg, rgba(255, 174, 91, .035), rgba(255,255,255,.012)), var(--panel);
}

body.theme-halloween .primary,
body.theme-halloween .queue-shortcut,
body.theme-halloween .mobile-bottom-nav a.active {
    border-color: #ff8c46;
    background: linear-gradient(130deg, #ffd27e 0%, #ff9b4a 54%, #ef593d 100%);
    color: #1b0a08;
    box-shadow: 0 12px 32px rgba(234, 77, 37, .19);
}

body.theme-halloween .brand img,
body.theme-halloween .hero-logo img,
body.theme-halloween .screen-brand img {
    box-shadow: 0 0 32px rgba(255, 127, 55, .24), 0 0 54px rgba(177, 34, 31, .16);
}

body.theme-halloween .hero h1 { text-shadow: 0 7px 36px rgba(235, 80, 39, .2); }
body.theme-halloween .now-card { border-color: rgba(255, 174, 91, .3); }
body.theme-halloween .now-card.pause { color: #ffd36f; }
body.theme-halloween .song-row.status-singing { border-color: rgba(129, 231, 169, .55); }
body.theme-halloween .next-event-poster { border-color: rgba(255, 174, 91, .35); }

body.theme-halloween.page-screen .guest-tv {
    background:
        linear-gradient(180deg, rgba(6, 4, 4, .2), rgba(6, 4, 4, .52)),
        url("/assets/halloween-night-wide.png") center / cover no-repeat,
        #050505;
}

body.theme-halloween.page-screen .guest-tv-header,
body.theme-halloween.page-screen .guest-tv-rail { background-color: rgba(10, 6, 6, .94); }
body.theme-halloween.page-screen .guest-tv-header { border-color: rgba(255, 174, 91, .24); }
body.theme-halloween.page-screen .guest-tv-player-panel {
    background:
        linear-gradient(180deg, rgba(7, 4, 4, .24), rgba(5, 3, 3, .5)),
        url("/assets/halloween-night-wide.png") center / cover no-repeat,
        #0b090a;
}
body.theme-halloween.page-screen .guest-tv-overlay { background: radial-gradient(ellipse at center, rgba(13, 7, 6, .42), rgba(0,0,0,.58)); }
body.theme-halloween.page-screen .guest-tv-queue-item { border-color: rgba(255, 174, 91, .17); background: rgba(25, 12, 10, .65); }
body.theme-halloween.page-screen .guest-tv-queue-item.is-priority { border-color: rgba(255, 197, 85, .8); background: rgba(255, 184, 44, .14); }
body.theme-halloween.page-screen .guest-tv-fullscreen { border-color: rgba(255, 174, 91, .36); }

@keyframes halloween-glow { from { opacity: .36; } to { opacity: .62; } }

body.theme-school .stage-bg {
    background:
        radial-gradient(circle at 12% 18%, rgba(232, 77, 55, .2), transparent 20%),
        linear-gradient(180deg, rgba(4, 20, 15, .96), rgba(10, 50, 38, .9) 42%, #070706 100%);
}

body.theme-september3 .stage-bg {
    background:
        linear-gradient(112deg, rgba(216, 51, 42, .18), transparent 33%),
        linear-gradient(252deg, rgba(246, 193, 95, .12), transparent 38%),
        linear-gradient(180deg, #090304 0%, #2a0809 46%, #060303 100%);
}

body.theme-school .stage-bg::after {
    background:
        repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 44px);
    opacity: .62;
    animation: chalkDust 12s ease-in-out infinite;
}

body.theme-september3 .stage-bg::after {
    background:
        repeating-linear-gradient(108deg, rgba(255, 231, 180, .035) 0 1px, transparent 1px 24px),
        linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.54));
    opacity: .7;
    animation: lightSweep 10s ease-in-out infinite alternate;
}

body.theme-school .stage-bg::before {
    background:
        linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.68)),
        radial-gradient(circle at 50% 0, rgba(255, 240, 200, .08), transparent 42%);
}

body.theme-september3 .stage-bg::before {
    background:
        linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.72)),
        linear-gradient(90deg, rgba(255, 231, 180, .04), transparent 35%, rgba(216, 51, 42, .08));
}

.school-decor {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.school-balloon {
    position: absolute;
    width: clamp(54px, 8vw, 104px);
    aspect-ratio: .78;
    border-radius: 54% 54% 48% 48%;
    opacity: .78;
    filter: drop-shadow(0 20px 34px rgba(0,0,0,.24));
    animation: schoolFloat 6.5s ease-in-out infinite;
}

.school-balloon::before {
    content: "";
    position: absolute;
    inset: 14% 20% auto auto;
    width: 22%;
    height: 28%;
    border-radius: 50%;
    background: rgba(255,255,255,.55);
    filter: blur(1px);
}

.school-balloon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 98%;
    width: 1px;
    height: 118px;
    background: linear-gradient(rgba(255,255,255,.6), transparent);
    transform: translateX(-50%);
}

.balloon-red {
    top: 96px;
    right: 5vw;
    background:
        radial-gradient(circle at 68% 20%, rgba(255,255,255,.62), transparent 18%),
        linear-gradient(135deg, #ff7b62, #c91f22 72%, #821315);
}

.balloon-gold {
    top: 28vh;
    left: 4vw;
    width: clamp(46px, 7vw, 86px);
    background:
        radial-gradient(circle at 70% 20%, rgba(255,255,255,.72), transparent 18%),
        linear-gradient(135deg, #ffe58a, #d79918 72%, #8f5b0a);
    animation-delay: -2.4s;
}

.school-ruler {
    position: absolute;
    width: clamp(190px, 24vw, 360px);
    height: 38px;
    border: 1px solid rgba(103, 72, 24, .72);
    border-radius: 5px;
    background:
        repeating-linear-gradient(90deg, rgba(76, 49, 17, .76) 0 1px, transparent 1px 16px),
        repeating-linear-gradient(90deg, transparent 0 7px, rgba(76, 49, 17, .38) 7px 8px, transparent 8px 16px),
        linear-gradient(180deg, #f9d982, #d49b3f 52%, #9b6420);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 22px 42px rgba(0,0,0,.28);
    opacity: .72;
}

.school-ruler::after {
    content: "";
    position: absolute;
    inset: 5px 10px auto;
    height: 7px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
}

.ruler-left {
    left: -56px;
    top: 62vh;
    transform: rotate(-19deg);
}

.ruler-right {
    right: -70px;
    top: 17vh;
    transform: rotate(23deg);
}

.school-chalk {
    position: absolute;
    width: 92px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #e8f2ec, #b9cfc5 52%, #f8fff9);
    box-shadow: 0 10px 22px rgba(0,0,0,.2);
    opacity: .48;
}

.chalk-one {
    left: 16vw;
    top: 17vh;
    transform: rotate(-12deg);
}

.chalk-two {
    right: 18vw;
    bottom: 19vh;
    transform: rotate(9deg);
}

.school-desk {
    position: absolute;
    bottom: -12px;
    width: clamp(160px, 23vw, 340px);
    height: clamp(70px, 9vw, 128px);
    border-radius: 10px 10px 0 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,.16), transparent 18% 76%, rgba(0,0,0,.2)),
        repeating-linear-gradient(0deg, rgba(83, 41, 13, .18) 0 2px, transparent 2px 12px),
        linear-gradient(180deg, #a7602f, #6e3519);
    box-shadow: inset 0 3px 0 rgba(255,255,255,.18), 0 -18px 50px rgba(0,0,0,.22);
    opacity: .66;
}

.school-desk::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: -34px;
    height: 46px;
    border-left: 12px solid rgba(78, 40, 18, .9);
    border-right: 12px solid rgba(78, 40, 18, .9);
}

.desk-left {
    left: 3vw;
    transform: perspective(480px) rotateX(18deg) rotateZ(-1deg);
}

.desk-right {
    right: 5vw;
    transform: perspective(480px) rotateX(18deg) rotateZ(1deg);
}

.september3-decor {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.calendar-page {
    position: absolute;
    display: grid;
    place-items: center;
    align-content: center;
    width: clamp(82px, 10vw, 148px);
    aspect-ratio: .78;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 8px;
    background:
        linear-gradient(180deg, #efe4ca 0 24%, #fff6e6 24% 100%);
    color: #3c1714;
    box-shadow: 0 26px 55px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.72);
    opacity: .76;
}

.calendar-page::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    top: 14px;
    height: 8px;
    border-radius: 999px;
    background: repeating-linear-gradient(90deg, #7f1010 0 8px, transparent 8px 15px);
}

.calendar-page b {
    margin-top: 14px;
    font-size: clamp(40px, 6vw, 82px);
    line-height: .8;
}

.calendar-page small {
    margin-top: 8px;
    color: #8b241d;
    text-transform: uppercase;
    font-size: clamp(10px, 1.1vw, 13px);
    font-weight: 900;
}

.calendar-main {
    top: 104px;
    right: 5vw;
    transform: rotate(7deg);
}

.calendar-left {
    left: 4vw;
    top: 42vh;
    width: clamp(70px, 8vw, 116px);
    transform: rotate(-13deg);
}

.calendar-right {
    right: 12vw;
    bottom: 10vh;
    width: clamp(64px, 7vw, 108px);
    transform: rotate(15deg);
}

.falling-page {
    position: absolute;
    width: clamp(54px, 5vw, 78px);
    aspect-ratio: .75;
    border-radius: 5px;
    background:
        repeating-linear-gradient(0deg, transparent 0 9px, rgba(70, 34, 24, .22) 9px 10px),
        linear-gradient(180deg, #fff4dc, #d9be8d);
    box-shadow: 0 18px 34px rgba(0,0,0,.22);
    opacity: .44;
    animation: pageDrift 8s ease-in-out infinite;
}

.page-one {
    left: 22vw;
    top: 16vh;
}

.page-two {
    right: 28vw;
    top: 24vh;
    animation-delay: -2s;
}

.page-three {
    left: 60vw;
    bottom: 18vh;
    animation-delay: -4s;
}

.september3-portrait {
    position: absolute;
    right: -4vw;
    bottom: -9vh;
    width: clamp(260px, 32vw, 480px);
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    opacity: .28;
    box-shadow: 0 0 90px rgba(246, 193, 95, .18);
}

.september3-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.golden-toast {
    position: absolute;
    left: 8vw;
    bottom: 8vh;
    width: 74px;
    height: 120px;
    border-radius: 48% 48% 8px 8px;
    border: 2px solid rgba(255, 231, 180, .34);
    background:
        linear-gradient(180deg, rgba(255,255,255,.28), transparent 34%),
        linear-gradient(180deg, rgba(255, 218, 129, .5), rgba(154, 82, 18, .24));
    opacity: .42;
    transform: rotate(-12deg);
}

.golden-toast::after {
    content: "";
    position: absolute;
    left: 32px;
    bottom: -62px;
    width: 8px;
    height: 64px;
    border-radius: 999px;
    background: rgba(255, 231, 180, .32);
    box-shadow: -16px 62px 0 8px rgba(255, 231, 180, .2);
}

@keyframes lightSweep {
    from { transform: translateX(-4%); }
    to { transform: translateX(4%); }
}

@keyframes chalkDust {
    0%, 100% { transform: translateX(-1%) translateY(0); opacity: .5; }
    50% { transform: translateX(1%) translateY(-1%); opacity: .7; }
}

@keyframes schoolFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-16px) rotate(2deg); }
}

@keyframes pageDrift {
    0%, 100% { transform: translateY(0) rotate(-8deg); }
    50% { transform: translateY(-18px) rotate(6deg); }
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100vw;
    max-width: 100vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px clamp(14px, 4vw, 42px);
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: rgba(5, 4, 5, .9);
    backdrop-filter: blur(22px);
    box-shadow: 0 10px 40px rgba(0,0,0,.24);
}

.topbar-actions {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--cream);
    font-weight: 900;
    letter-spacing: 0;
}

.brand img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 24px rgba(255, 53, 47, .28);
}

.main-menu {
    position: fixed;
    top: 66px;
    right: clamp(12px, 4vw, 44px);
    z-index: 39;
    display: none;
    min-width: 210px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    background: rgba(10, 8, 8, .98);
    box-shadow: 0 18px 60px rgba(0,0,0,.42);
    backdrop-filter: blur(16px);
    color: var(--muted);
    font-size: 14px;
}

.mobile-bottom-nav {
    display: none;
}

.menu-toggle {
    display: inline-flex;
    width: auto;
    min-width: 94px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.06);
    color: var(--text);
    padding: 0;
}

.main-menu.open { display: grid; gap: 8px; }

.main-menu a {
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,.05);
}

.queue-shortcut {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 8px;
    padding: 10px 15px;
    background: linear-gradient(135deg, var(--red), #ff9b54);
    color: #140606;
    font-weight: 900;
    box-shadow: 0 10px 28px rgba(255, 53, 47, .22);
    white-space: nowrap;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.menu-lines {
    position: relative;
}

.menu-lines::before,
.menu-lines::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-lines::before { top: -6px; }
.menu-lines::after { top: 6px; }

.language-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.05);
}

.language-switcher a {
    min-width: 38px;
    border-radius: 999px;
    padding: 7px 9px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.language-switcher a.active {
    background: var(--cream);
    color: #160707;
}

.language-switcher-flags {
    margin-top: 18px;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px;
    border-radius: 8px;
    background: rgba(255,255,255,.06);
}

.language-switcher-flags a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 112px;
    min-height: 44px;
    padding: 9px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,.055);
}

.language-switcher-flags a.active {
    box-shadow: 0 0 0 1px rgba(255,232,201,.24) inset;
}

.language-switcher-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255,255,255,.045);
}

.language-switcher-menu a {
    min-width: 0;
    padding: 9px 8px;
    border-radius: 8px;
    background: rgba(255,255,255,.05);
}

.language-switcher-circles {
    gap: 6px;
    border: 0;
    padding: 0;
    background: transparent;
}

.language-switcher-circles a {
    display: grid;
    place-items: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%;
    background: rgba(255,255,255,.055);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.language-switcher-circles a.active {
    background: var(--cream);
    box-shadow: 0 10px 24px rgba(255, 232, 201, .14);
}

.language-switcher-circles .language-flag {
    font-size: 18px;
}

.language-flag {
    font-size: 20px;
    line-height: 1;
}

main {
    width: min(1120px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 24px 0 56px;
}

main > * {
    max-width: 100%;
}

body.page-admin main,
body.page-archive main {
    width: min(1520px, calc(100% - 24px));
    margin-left: 12px;
    margin-right: auto;
}

body.page-home main {
    width: min(780px, calc(100vw - 32px));
}

.hero {
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    align-items: center;
    justify-items: start;
    gap: 8px;
    text-align: center;
    padding: 12px 0 6px;
}

.hero > div {
    min-width: 0;
}

.hero-logo img {
    width: min(88px, 24vw);
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 42px rgba(255, 53, 47, .42);
    animation: logoFloat 5s ease-in-out infinite;
}

body.page-home .hero-logo {
    display: none;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.02); }
}

.eyebrow {
    margin: 18px 0 8px;
    color: var(--warn);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
}

h1, h2, p { margin-top: 0; }
h1 {
    max-width: 100%;
    font-size: clamp(34px, 7vw, 78px);
    line-height: .95;
    margin-bottom: 14px;
    overflow-wrap: anywhere;
    word-break: break-word;
}
h2 { font-size: clamp(22px, 3vw, 34px); margin-bottom: 16px; }
.lead { color: var(--muted); font-size: 18px; max-width: 620px; }

.hero h1 {
    font-size: clamp(30px, 7vw, 58px);
    margin-bottom: 6px;
}

.hero .lead {
    font-size: 16px;
}

.hero h1,
.hero .lead {
    width: 100%;
    min-width: 0;
    white-space: normal;
}

.hero .language-switcher-flags {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(520px, 100%);
}

.school-form-card {
    display: grid;
    gap: 5px;
    width: min(430px, 100%);
    margin-top: 14px;
    padding: 13px 15px;
    border: 1px solid rgba(245, 200, 75, .38);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(245, 200, 75, .14), rgba(255,255,255,.055)),
        rgba(4, 19, 14, .54);
    box-shadow: inset 4px 0 0 var(--warn), 0 16px 42px rgba(0,0,0,.18);
}

.school-form-card span {
    color: var(--warn);
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 900;
}

.school-form-card strong {
    font-size: 18px;
}

.school-form-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.4;
}

.september3-hero-card {
    position: relative;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    width: min(560px, 100%);
    margin-top: 14px;
    padding: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 218, 139, .38);
    border-radius: 8px;
    background:
        radial-gradient(circle at 12% 14%, rgba(255, 218, 139, .18), transparent 34%),
        linear-gradient(135deg, rgba(216, 51, 42, .2), rgba(255,255,255,.055)),
        rgba(31, 9, 10, .64);
    box-shadow: inset 4px 0 0 var(--warn), 0 18px 52px rgba(0,0,0,.28);
}

.september3-hero-card::after {
    content: "3";
    position: absolute;
    right: 12px;
    bottom: -20px;
    color: rgba(255, 231, 180, .08);
    font-size: 112px;
    font-weight: 950;
    line-height: 1;
    pointer-events: none;
}

.september3-hero-card > img {
    width: 92px;
    height: 92px;
    border: 2px solid rgba(255, 231, 180, .32);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 34px rgba(246, 193, 95, .24);
}

.september3-hero-card > div {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.september3-hero-card span {
    color: var(--warn);
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 950;
}

.september3-hero-card strong {
    display: block;
    margin-top: 4px;
    color: var(--cream);
    font-size: 20px;
    line-height: 1.1;
}

.september3-hero-card p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.4;
}

.september3-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.september3-tags em {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border: 1px solid rgba(255, 231, 180, .2);
    border-radius: 999px;
    padding: 5px 9px;
    background: rgba(255, 231, 180, .08);
    color: var(--cream);
    font-size: 11px;
    font-style: normal;
    font-weight: 850;
}

body.theme-school .topbar,
body.theme-school .mobile-bottom-nav {
    background:
        linear-gradient(180deg, rgba(5, 18, 14, .96), rgba(5, 18, 14, .84));
}

body.theme-september3 .topbar,
body.theme-september3 .mobile-bottom-nav {
    background:
        linear-gradient(180deg, rgba(26, 7, 8, .98), rgba(15, 4, 5, .95));
}

body.theme-september3 .main-menu {
    background: rgba(20, 6, 7, .98);
}

body.theme-school .brand img,
body.theme-school .hero-logo img,
body.theme-school .screen-brand img {
    box-shadow: 0 0 42px rgba(245, 200, 75, .25), 0 0 28px rgba(232, 77, 55, .24);
}

body.theme-september3 .brand img,
body.theme-september3 .hero-logo img,
body.theme-september3 .screen-brand img {
    box-shadow: 0 0 42px rgba(246, 193, 95, .24), 0 0 30px rgba(216, 51, 42, .24);
}

body.theme-school .panel,
body.theme-school .queue-mini,
body.theme-school .list-section,
body.theme-school .login-panel {
    background:
        linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)),
        var(--panel);
}

body.theme-september3 .panel,
body.theme-september3 .queue-mini,
body.theme-september3 .list-section,
body.theme-september3 .login-panel {
    background:
        linear-gradient(180deg, rgba(255, 231, 180, .04), rgba(255,255,255,.014)),
        var(--panel);
}

body.theme-school .primary,
body.theme-school .queue-shortcut,
body.theme-school .mobile-bottom-nav a.active {
    background: linear-gradient(135deg, #f5c84b, #ffefad 52%, #e84d37);
    color: #172017;
    box-shadow: 0 14px 36px rgba(245, 200, 75, .22);
}

body.theme-september3 .primary,
body.theme-september3 .queue-shortcut,
body.theme-september3 .mobile-bottom-nav a.active {
    background: linear-gradient(135deg, #ffe2a6, #f6c15f 50%, #d8332a);
    color: #230708;
    box-shadow: 0 14px 36px rgba(246, 193, 95, .2);
}

body.theme-september3 .language-switcher-flags a.active {
    background: linear-gradient(135deg, #fff1cc, #f6c15f);
    color: #230708;
}

.panel, .queue-mini, .list-section, .login-panel {
    background:
        linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)),
        var(--panel);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: var(--radius);
    padding: clamp(18px, 4vw, 28px);
    box-shadow: 0 22px 70px rgba(0,0,0,.28);
    backdrop-filter: blur(24px);
}

.order-panel {
    margin-top: 12px;
}

.queue-status-module {
    margin: 0 0 22px;
    padding: 0 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.led-status {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 9px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
        rgba(5, 7, 6, .76);
    box-shadow: inset 0 0 24px rgba(119, 232, 164, .035), 0 14px 38px rgba(0,0,0,.25);
}

.led-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    min-height: 34px;
    border-radius: 6px;
    padding: 0 14px;
    background: rgba(255,255,255,.075);
    color: var(--cream);
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    white-space: nowrap;
}

.led-window {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: 6px;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 5px),
        #020403;
}

.led-window::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(0,0,0,.34) 3px 4px);
    pointer-events: none;
}

.led-track {
    display: flex;
    width: max-content;
    animation: ledMarquee 20s linear infinite;
}

.led-track span {
    padding: 9px 42px 9px 0;
    color: var(--ok);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: clamp(13px, 2.4vw, 15px);
    font-weight: 850;
    line-height: 1.25;
    text-shadow: 0 0 12px currentColor;
    white-space: nowrap;
}

.queue-status-line {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: clamp(12px, 3vw, 13px);
    font-weight: 750;
    line-height: 1.35;
    text-align: center;
}

.queue-status-line span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 34px;
    padding: 7px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .045);
}

.queue-status-line .queue-out-of-queue-count {
    grid-column: 1 / -1;
    border: 1px solid rgba(109, 255, 143, .24);
    color: #bfffd0;
    background: rgba(109, 255, 143, .08);
}

.queue-status-line span + span::before {
    content: none;
}

.queue-status-line strong {
    color: var(--cream);
    font-weight: 950;
}

.queue-status-line.tone-ok strong {
    color: var(--ok);
}

.queue-status-line.tone-warn strong {
    color: var(--warn);
}

.queue-status-line.tone-danger strong {
    color: #ff7b72;
}

@keyframes ledMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.order-estimate.tone-ok article {
    border-color: rgba(119, 232, 164, .36);
    background:
        linear-gradient(135deg, rgba(119, 232, 164, .14), rgba(255,255,255,.045)),
        rgba(119, 232, 164, .06);
}

.tone-ok .led-track span,
.order-estimate.tone-ok strong {
    color: var(--ok);
}

.order-estimate.tone-warn article {
    border-color: rgba(255, 207, 102, .42);
    background:
        linear-gradient(135deg, rgba(255, 207, 102, .16), rgba(255,255,255,.045)),
        rgba(255, 207, 102, .07);
}

.tone-warn .led-track span,
.order-estimate.tone-warn strong {
    color: var(--warn);
}

.order-estimate.tone-danger article {
    border-color: rgba(255, 53, 47, .48);
    background:
        linear-gradient(135deg, rgba(255, 53, 47, .18), rgba(255,255,255,.045)),
        rgba(255, 53, 47, .08);
}

.tone-danger .led-track span,
.order-estimate.tone-danger strong {
    color: #ff7b72;
}

.profile-promo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin: 18px 0;
    padding: clamp(18px, 4vw, 26px);
    border: 1px solid rgba(119, 232, 164, .28);
    border-radius: 8px;
    background:
        radial-gradient(circle at top right, rgba(119, 232, 164, .14), transparent 34%),
        rgba(255,255,255,.055);
    box-shadow: 0 18px 60px rgba(0,0,0,.24);
}

.inline-profile-promo {
    margin: 0 0 18px;
    padding: 16px;
    box-shadow: none;
}

.inline-profile-promo h2 {
    font-size: clamp(21px, 3vw, 30px);
}

.profile-promo h2 {
    margin-bottom: 8px;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.02;
}

.profile-promo p {
    margin: 0;
    color: var(--muted);
}

.install-notice {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 18px;
    align-items: start;
    margin-top: 0;
    padding: clamp(16px, 4vw, 22px);
    border: 1px solid rgba(119, 232, 164, .42);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(119, 232, 164, .16), rgba(255,255,255,.055)),
        rgba(119, 232, 164, .08);
    box-shadow: 0 20px 70px rgba(119, 232, 164, .1), 0 18px 60px rgba(0,0,0,.24);
}

.install-strip {
    display: block;
    margin: 12px 0 14px;
    padding: 0;
    overflow: hidden;
}

.install-strip summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 14px 16px;
    color: var(--ok);
    cursor: pointer;
    font-weight: 900;
    list-style: none;
}

.install-strip summary::-webkit-details-marker {
    display: none;
}

.install-strip summary::after {
    content: "+";
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(119, 232, 164, .32);
    border-radius: 50%;
    color: var(--ok);
    background: rgba(119, 232, 164, .08);
}

.install-strip[open] summary::after {
    content: "-";
}

.install-strip-body {
    display: grid;
    gap: 10px;
    padding: 0 16px 16px;
}

.install-strip-body p {
    margin: 0;
}

.install-notice h2 {
    margin: 0 0 8px;
    font-size: clamp(20px, 3vw, 28px);
}

.install-notice p {
    margin: 0;
    color: var(--muted);
}

.install-notice ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
    color: var(--cream);
    font-size: 14px;
}

.push-denied-note {
    color: var(--warn);
}

body.theme-september3 .install-notice {
    border-color: rgba(246, 193, 95, .36);
    background:
        radial-gradient(circle at 92% 20%, rgba(246, 193, 95, .14), transparent 32%),
        linear-gradient(135deg, rgba(246, 193, 95, .13), rgba(216, 51, 42, .08)),
        rgba(35, 10, 11, .7);
    box-shadow: 0 20px 70px rgba(246, 193, 95, .08), 0 18px 60px rgba(0,0,0,.24);
}

body.theme-september3 .install-strip summary {
    color: #ffe2a6;
}

body.theme-september3 .install-strip summary::after {
    border-color: rgba(246, 193, 95, .32);
    color: #ffe2a6;
    background: rgba(246, 193, 95, .08);
}

.form-grid, .admin-grid {
    display: grid;
    gap: 14px;
}

.admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
}

label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

input {
    width: 100%;
    min-height: 48px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255, 255, 255, .055);
    color: var(--text);
    padding: 12px 14px;
    font: inherit;
    min-width: 0;
}

select {
    width: 100%;
    min-height: 48px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.08);
    background:
        linear-gradient(45deg, transparent 50%, var(--cream) 50%) calc(100% - 18px) 19px / 7px 7px no-repeat,
        linear-gradient(135deg, var(--cream) 50%, transparent 50%) calc(100% - 13px) 19px / 7px 7px no-repeat,
        rgba(255, 255, 255, .055);
    color: var(--text);
    padding: 12px 38px 12px 14px;
    font: inherit;
    appearance: none;
    min-width: 0;
}

select option {
    color: #160707;
    background: #fff6e5;
}

input:focus,
select:focus {
    outline: 2px solid rgba(255, 207, 102, .45);
    border-color: transparent;
}

input[readonly] {
    color: var(--cream);
    background: rgba(255, 232, 201, .08);
}

.field-hint {
    color: var(--warn);
    font-size: 12px;
    line-height: 1.35;
}

.order-consent {
    margin: -2px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.order-consent a {
    color: var(--cream);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 800;
}

.push-hint {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid rgba(119, 232, 164, .22);
    border-radius: 8px;
    background: rgba(119, 232, 164, .08);
    color: var(--cream);
}

.priority-order-toggle {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 13px 14px;
    border: 1px solid rgba(255, 207, 102, .34);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 207, 102, .13), rgba(255, 53, 47, .08)),
        rgba(255,255,255,.045);
    color: var(--text);
    cursor: pointer;
}

.priority-order-toggle input {
    width: 22px;
    min-width: 22px;
    height: 22px;
    min-height: 22px;
    accent-color: var(--warn);
}

.priority-order-toggle span {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.priority-order-toggle strong {
    color: var(--cream);
    font-size: 16px;
    line-height: 1.15;
}

.priority-order-toggle em {
    color: var(--warn);
    font-style: normal;
    font-weight: 950;
}

.priority-order-toggle small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.consecutive-order-toggle {
    border-color: rgba(119, 232, 164, .42);
    background:
        linear-gradient(135deg, rgba(119, 232, 164, .13), rgba(255, 207, 102, .08)),
        rgba(255,255,255,.045);
}

.consecutive-order-toggle em {
    color: var(--ok);
}

button, .link-btn {
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    padding: 12px 18px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.primary {
    background: linear-gradient(135deg, #fff0d1, #ffcf66 46%, #ff563f);
    color: #120606;
    box-shadow: 0 18px 42px rgba(255, 91, 63, .22), inset 0 1px 0 rgba(255,255,255,.5);
}

.ghost, .ghost-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.045);
    color: var(--text);
}

.ghost-link {
    min-height: 42px;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 14px;
}

.notice {
    border: 1px solid var(--line);
    background: rgba(255,255,255,.07);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 14px;
    color: var(--cream);
}

.notice.error {
    background: rgba(255,53,47,.16);
    border-color: rgba(255,53,47,.38);
}

.cooldown-under-button {
    margin: 0;
    border-color: rgba(255, 207, 102, .32);
    background: rgba(255, 207, 102, .08);
    color: var(--cream);
    text-align: center;
}

.cooldown-under-button strong {
    color: var(--warn);
    font-size: 1.08em;
}

.queue-mini, .list-section { margin-top: 22px; }

.next-event-poster {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-rows: auto minmax(180px, 1fr) auto auto auto;
    justify-items: center;
    gap: 18px;
    min-height: clamp(620px, 72vw, 760px);
    margin-bottom: 18px;
    padding: clamp(28px, 5vw, 54px);
    overflow: hidden;
    border: 1px solid rgba(255, 224, 169, .34);
    border-radius: 8px;
    background: #1a0305 url('/assets/next-event-theatre.png') center / cover no-repeat;
    color: #fff1d5;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5), inset 0 0 90px rgba(0, 0, 0, .22);
}

.next-event-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(11, 0, 2, .08), rgba(11, 0, 2, .16) 38%, rgba(11, 0, 2, .42)),
        linear-gradient(90deg, rgba(5, 0, 1, .24), transparent 23%, transparent 77%, rgba(5, 0, 1, .24));
}

.next-event-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: repeating-linear-gradient(112deg, rgba(255, 242, 213, .025) 0 1px, transparent 1px 9px);
    mix-blend-mode: soft-light;
    opacity: .55;
}

.next-event-poster > * {
    position: relative;
    z-index: 1;
}

.poster-brandline,
.poster-footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: rgba(255, 241, 213, .78);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.poster-brandline {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 224, 169, .24);
}

.poster-brandline strong {
    color: #fff1d5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 500;
    text-transform: lowercase;
}

.poster-copy {
    align-self: start;
    width: min(100%, 700px);
    margin-top: clamp(18px, 5vw, 48px);
    text-align: center;
}

.poster-kicker {
    margin: 0 0 14px;
    color: #e8bd78;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.next-event-poster h2 {
    margin: 0;
    color: #fff1d5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(40px, 7vw, 76px);
    font-weight: 500;
    line-height: .98;
    text-wrap: balance;
    text-shadow: 0 5px 30px rgba(0, 0, 0, .65);
}

.next-event-poster .lead {
    width: min(100%, 540px);
    margin: 18px auto 0;
    color: rgba(255, 241, 213, .84);
    font-size: clamp(16px, 2.3vw, 21px);
    line-height: 1.45;
    text-wrap: balance;
}

.poster-event {
    display: grid;
    justify-items: center;
    gap: 7px;
    width: min(100%, 620px);
    text-align: center;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .7);
}

.poster-date {
    margin: 0;
    color: #f2ca87;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1;
}

.poster-event strong {
    color: #fff1d5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 4vw, 38px);
    font-weight: 500;
    line-height: 1.08;
    text-wrap: balance;
}

.poster-event span {
    color: rgba(255, 241, 213, .86);
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 800;
    text-transform: uppercase;
}

.next-event-countdown {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 8px 16px;
    width: min(100%, 620px);
    padding: 14px 0;
    border-top: 1px solid rgba(255, 224, 169, .24);
    border-bottom: 1px solid rgba(255, 224, 169, .24);
    text-align: center;
}

.next-event-countdown span {
    color: #f2ca87;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.next-event-countdown strong {
    font-size: clamp(26px, 5vw, 40px);
    line-height: 1;
    color: #6dff8f;
    text-shadow: 0 0 22px rgba(109, 255, 143, .34), 0 4px 20px rgba(0, 0, 0, .7);
    letter-spacing: 0;
}

.poster-footer {
    align-self: end;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 224, 169, .2);
}

.instagram-showcase {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.respect-notice {
    display: grid;
    gap: 10px;
    margin-top: 22px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 232, 201, .14);
    border-radius: 8px;
    background: rgba(255,255,255,.04);
}

.respect-notice h2 {
    margin-bottom: 2px;
    font-size: clamp(18px, 2.5vw, 24px);
    line-height: 1.15;
}

.respect-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.respect-list li + li {
    margin-top: 6px;
}

.rules-head {
    max-width: 760px;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.rules-section {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)),
        var(--panel);
    box-shadow: 0 16px 46px rgba(0,0,0,.22);
}

.rules-section h2 {
    margin-bottom: 12px;
    color: var(--cream);
    font-size: clamp(20px, 3vw, 28px);
}

.rules-section ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.55;
}

.rules-back {
    width: fit-content;
    margin-top: 18px;
}

.instagram-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: clamp(18px, 4vw, 26px);
    border: 1px solid rgba(255, 53, 47, .28);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at top right, rgba(255, 53, 47, .22), transparent 32%),
        linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,138,66,.08));
    box-shadow: 0 24px 80px rgba(0,0,0,.32);
}

.instagram-copy h2 {
    margin-bottom: 10px;
}

.instagram-copy .lead {
    margin-bottom: 16px;
}

.instagram-meta {
    display: grid;
    gap: 6px;
}

.instagram-meta strong {
    font-size: 18px;
}

.instagram-url {
    color: var(--cream);
    word-break: break-all;
}

.instagram-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 200px;
    min-height: 56px;
    padding: 14px 22px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff4b6e, #ff8a42 58%, #ffd36a);
    color: #180707;
    font-weight: 900;
    box-shadow: 0 16px 36px rgba(255, 75, 110, .24);
}

.instagram-cta-icon {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(24, 7, 7, .12);
    font-size: 15px;
}

.instagram-reels-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.instagram-reels-head h3 {
    margin: 0;
    font-size: 20px;
}

.instagram-reels-controls {
    display: flex;
    gap: 8px;
}

.insta-carousel-btn {
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    font-size: 24px;
}

.instagram-reels {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 280px);
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
}

.instagram-reels::-webkit-scrollbar {
    height: 8px;
}

.instagram-reels::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.14);
    border-radius: 999px;
}

.reel-card {
    display: grid;
    gap: 12px;
    align-content: start;
    min-height: 280px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.055);
    scroll-snap-align: start;
}

.reel-kicker {
    margin: 0;
    color: var(--warn);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 900;
}

.reel-art {
    position: relative;
    height: 132px;
    border-radius: 8px;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 211, 106, .85), transparent 30%),
        radial-gradient(circle at 80% 25%, rgba(255, 75, 110, .82), transparent 32%),
        linear-gradient(145deg, #451117, #13090a 55%, #1d1211);
}

.reel-art span {
    position: absolute;
    bottom: 18px;
    width: 10px;
    border-radius: 999px;
    background: rgba(255,248,237,.9);
    box-shadow: 0 0 18px rgba(255,255,255,.18);
    animation: reelBars 1.6s ease-in-out infinite;
}

.reel-art span:nth-child(1) {
    left: 22px;
    height: 34px;
}

.reel-art span:nth-child(2) {
    left: 40px;
    height: 66px;
    animation-delay: .15s;
}

.reel-art span:nth-child(3) {
    left: 58px;
    height: 46px;
    animation-delay: .3s;
}

@keyframes reelBars {
    0%, 100% { transform: scaleY(.8); opacity: .7; }
    50% { transform: scaleY(1.15); opacity: 1; }
}

.now-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 53, 47, .5);
    background: linear-gradient(135deg, rgba(255,53,47,.26), rgba(255,232,201,.08));
    padding: clamp(20px, 4vw, 34px);
    box-shadow: 0 0 48px rgba(255, 53, 47, .22);
}

.now-card::after {
    content: "";
    position: absolute;
    inset: auto -20% 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--cream), var(--red), transparent);
    animation: equalizer 1.7s ease-in-out infinite;
}

@keyframes equalizer {
    0%, 100% { transform: translateX(-20%) scaleX(.7); opacity: .55; }
    50% { transform: translateX(20%) scaleX(1); opacity: 1; }
}

.now-card span, .ticket span, .screen-next h2 {
    color: var(--warn);
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 900;
}

.now-card strong {
    display: block;
    margin: 8px 0;
    font-size: clamp(28px, 6vw, 64px);
    line-height: 1;
}

.now-card p {
    color: var(--cream);
    font-size: clamp(18px, 3vw, 30px);
    margin-bottom: 0;
}

.now-card.pause {
    border-color: var(--line);
    background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,53,47,.10));
}

.now-card.paid-out-of-queue {
    border-color: rgba(109, 255, 143, .78);
    background:
        radial-gradient(circle at 86% 18%, rgba(109, 255, 143, .2), transparent 28%),
        linear-gradient(135deg, rgba(109, 255, 143, .16), rgba(255, 207, 102, .12)),
        rgba(18, 16, 17, .9);
    box-shadow: 0 0 54px rgba(109, 255, 143, .16), inset 5px 0 0 #6dff8f;
}

.now-card.paid-out-of-queue::after {
    background: linear-gradient(90deg, transparent, #6dff8f, var(--cream), transparent);
}

.paid-queue-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 26px;
    border: 1px solid rgba(109, 255, 143, .42);
    border-radius: 999px;
    padding: 5px 9px;
    background: rgba(109, 255, 143, .12);
    color: #bfffd0;
    font-size: 11px;
    font-style: normal;
    font-weight: 950;
    text-transform: uppercase;
}

.now-card .paid-queue-pill {
    margin-bottom: 10px;
}

body.theme-school .now-card {
    border-color: rgba(245, 200, 75, .52);
    background:
        radial-gradient(circle at 88% 16%, rgba(245, 200, 75, .14), transparent 24%),
        linear-gradient(135deg, rgba(15, 76, 55, .76), rgba(6, 25, 18, .92));
    box-shadow: 0 0 50px rgba(245, 200, 75, .14), inset 0 0 0 1px rgba(255,255,255,.045);
}

body.theme-school .now-card::after {
    height: 4px;
    background:
        linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent),
        linear-gradient(90deg, transparent, var(--warn), var(--red), transparent);
    filter: blur(.2px);
}

body.theme-school .now-card span {
    color: #ffde72;
}

body.theme-school .now-card strong {
    text-shadow: 0 2px 0 rgba(0,0,0,.18), 0 0 20px rgba(255,255,255,.08);
}

body.theme-school .now-card.pause {
    border-color: rgba(255, 240, 200, .24);
    background:
        linear-gradient(135deg, rgba(255,255,255,.08), rgba(245, 200, 75, .08)),
        rgba(7, 35, 25, .78);
}

body.theme-september3 .now-card {
    border-color: rgba(246, 193, 95, .54);
    background:
        radial-gradient(circle at 88% 14%, rgba(246, 193, 95, .2), transparent 24%),
        linear-gradient(135deg, rgba(216, 51, 42, .3), rgba(255, 231, 180, .08)),
        rgba(42, 9, 10, .78);
    box-shadow: 0 0 52px rgba(246, 193, 95, .16), inset 0 0 0 1px rgba(255,255,255,.045);
}

body.theme-september3 .now-card::after {
    height: 4px;
    background:
        linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent),
        linear-gradient(90deg, transparent, var(--warn), var(--red), transparent);
}

body.theme-september3 .now-card span {
    color: #ffe2a6;
}

body.theme-september3 .now-card strong {
    text-shadow: 0 0 24px rgba(246, 193, 95, .18);
}

body.theme-september3 .now-card.pause {
    border-color: rgba(255, 231, 180, .24);
    background:
        linear-gradient(135deg, rgba(255,255,255,.08), rgba(246, 193, 95, .08)),
        rgba(31, 9, 10, .78);
}

body.theme-school .now-card.paid-out-of-queue,
body.theme-september3 .now-card.paid-out-of-queue {
    border-color: rgba(109, 255, 143, .8);
    background:
        radial-gradient(circle at 86% 18%, rgba(109, 255, 143, .22), transparent 28%),
        linear-gradient(135deg, rgba(109, 255, 143, .16), rgba(255, 207, 102, .12)),
        rgba(18, 16, 17, .9);
    box-shadow: 0 0 54px rgba(109, 255, 143, .16), inset 5px 0 0 #6dff8f;
}

.song-list {
    display: grid;
    gap: 10px;
}

.song-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.052), rgba(255,255,255,.03)),
        rgba(255,255,255,.03);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.song-row:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 232, 201, .14);
}

.song-row.status-singing {
    border-color: rgba(255,53,47,.58);
    background: var(--red-soft);
}

.song-row.is-paid-out-of-queue {
    border-color: rgba(109, 255, 143, .42);
    background:
        linear-gradient(90deg, rgba(109, 255, 143, .14), rgba(255,255,255,.055)),
        rgba(255,255,255,.055);
    box-shadow: inset 3px 0 0 #6dff8f, 0 0 24px rgba(109, 255, 143, .08);
}

.song-row.status-singing.is-paid-out-of-queue {
    border-color: rgba(109, 255, 143, .88);
    background:
        radial-gradient(circle at 86% 20%, rgba(109, 255, 143, .2), transparent 26%),
        linear-gradient(90deg, rgba(109, 255, 143, .18), rgba(255, 207, 102, .11));
}

body.theme-school .song-row {
    background:
        linear-gradient(90deg, rgba(255, 240, 200, .045), transparent 46%),
        repeating-linear-gradient(0deg, transparent 0 33px, rgba(255,255,255,.035) 33px 34px),
        rgba(8, 34, 25, .66);
}

body.theme-school .song-row.status-singing {
    border-color: rgba(245, 200, 75, .64);
    background:
        radial-gradient(circle at 86% 20%, rgba(245, 200, 75, .2), transparent 28%),
        linear-gradient(90deg, rgba(232, 77, 55, .18), rgba(255,255,255,.055));
    box-shadow: inset 4px 0 0 var(--warn), 0 0 30px rgba(245, 200, 75, .1);
}

body.theme-september3 .song-row {
    background:
        linear-gradient(90deg, rgba(255, 231, 180, .05), transparent 46%),
        repeating-linear-gradient(0deg, transparent 0 32px, rgba(255, 231, 180, .035) 32px 33px),
        rgba(35, 10, 11, .66);
}

body.theme-september3 .song-row.status-singing {
    border-color: rgba(246, 193, 95, .66);
    background:
        radial-gradient(circle at 86% 20%, rgba(246, 193, 95, .22), transparent 28%),
        linear-gradient(90deg, rgba(216, 51, 42, .2), rgba(255,255,255,.055));
    box-shadow: inset 4px 0 0 var(--warn), 0 0 30px rgba(246, 193, 95, .12);
}

body.theme-school .song-row.is-paid-out-of-queue,
body.theme-september3 .song-row.is-paid-out-of-queue {
    border-color: rgba(109, 255, 143, .78);
    background:
        radial-gradient(circle at 86% 20%, rgba(109, 255, 143, .18), transparent 28%),
        linear-gradient(90deg, rgba(109, 255, 143, .14), rgba(255,255,255,.055));
    box-shadow: inset 4px 0 0 #6dff8f, 0 0 28px rgba(109, 255, 143, .12);
}

.song-row.status-sung {
    opacity: .72;
}

.song-row.status-sung p,
.song-row.status-sung strong {
    text-decoration: line-through;
}

.song-row.status-skipped {
    opacity: .82;
    border-style: dashed;
}

.song-row.is-mine {
    border-color: color-mix(in srgb, var(--song-color, var(--ok)) 42%, transparent);
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--song-color, var(--ok)) 13%, transparent), rgba(255,255,255,.035));
    box-shadow: inset 3px 0 0 var(--song-color, var(--ok));
}

.num, .admin-num {
    color: var(--warn);
    font-weight: 900;
}

.admin-num {
    display: grid;
    gap: 7px;
    justify-items: start;
}

.admin-num strong {
    color: var(--cream);
    font-size: 13px;
}

.admin-num small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.admin-num .paid-queue-pill {
    font-size: 10px;
    white-space: normal;
}

.admin-num .pending-payment-pill {
    border-color: rgba(255, 207, 102, .44);
    background: rgba(255, 207, 102, .12);
    color: var(--warn);
}

.position-form {
    display: grid;
    grid-template-columns: 78px auto;
    gap: 6px;
    align-items: end;
    margin: 0;
}

.position-form label {
    gap: 4px;
    font-size: 11px;
}

.position-form input {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 13px;
}

.song-num {
    display: grid;
    justify-items: center;
    gap: 7px;
    min-width: 52px;
}

.song-avatar {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    overflow: hidden;
    border: 2px solid var(--song-color, var(--line));
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,.3), transparent 34%),
        color-mix(in srgb, var(--song-color, var(--red)) 35%, rgba(255,255,255,.08));
    color: var(--text);
    font-size: 18px;
}

.song-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.song-row p {
    margin: 3px 0 0;
    color: var(--muted);
}

.song-person {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.student-label {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border: 1px solid rgba(245, 200, 75, .35);
    border-radius: 999px;
    padding: 4px 8px;
    background: rgba(245, 200, 75, .1);
    color: var(--warn);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

body.theme-school .queue-achievements span {
    border-color: rgba(245, 200, 75, .46);
    background: rgba(245, 200, 75, .13);
}

body.theme-september3 .student-label {
    border-color: rgba(246, 193, 95, .38);
    background: rgba(246, 193, 95, .12);
    color: #ffe2a6;
}

body.theme-september3 .queue-achievements span {
    border-color: rgba(246, 193, 95, .46);
    background: rgba(246, 193, 95, .13);
}

.queue-achievements {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.queue-achievements span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 207, 102, .35);
    border-radius: 50%;
    background: rgba(255, 207, 102, .1);
    color: var(--warn);
    font-size: 13px;
    line-height: 1;
}

.youtube-song-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--song-color, var(--warn)) 55%, transparent);
    text-underline-offset: 3px;
}

.youtube-song-link:hover {
    color: var(--cream);
}

.youtube-picker {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(255, 207, 102, .22);
    border-radius: 8px;
    background: rgba(255, 207, 102, .06);
}

.youtube-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.youtube-picker-head strong {
    color: var(--cream);
}

.youtube-picker-head span {
    color: var(--warn);
    font-size: 12px;
    font-weight: 900;
}

.youtube-picker p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.youtube-picker .youtube-optional-note {
    margin-top: -4px;
    color: var(--cream);
    opacity: .78;
}

.youtube-results {
    display: grid;
    gap: 8px;
}

.youtube-result {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    min-height: 74px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.055);
    color: var(--text);
    text-align: left;
    padding: 8px;
}

.youtube-result:hover {
    border-color: rgba(255, 207, 102, .42);
    background: rgba(255, 207, 102, .08);
}

.youtube-thumb {
    width: 96px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 6px;
    background: rgba(0,0,0,.28);
}

.youtube-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.youtube-result-copy {
    display: grid;
    gap: 3px;
    align-content: center;
    min-width: 0;
}

.youtube-result-copy strong,
.youtube-result-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.youtube-result-copy small {
    color: var(--muted);
}

.youtube-result-copy em {
    color: var(--warn);
    font-style: normal;
    font-size: 12px;
    font-weight: 900;
}

.youtube-selected {
    display: grid;
    gap: 8px;
    padding-top: 4px;
}

.youtube-selected span {
    color: var(--warn);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.youtube-selected strong {
    color: var(--cream);
}

.youtube-selected iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 8px;
    background: #000;
}

.inline-edit-link {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin-top: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px 10px;
    color: var(--cream);
    font-size: 12px;
    font-weight: 900;
    background: rgba(255,255,255,.06);
}

.mine-pill {
    display: inline-flex;
    width: fit-content;
    margin-top: 8px;
    border-radius: 999px;
    padding: 5px 9px;
    color: #08140c;
    background: var(--song-color, var(--ok));
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.inline-boost-options {
    display: grid;
    gap: 7px;
    margin-top: 8px;
}

.inline-boost-details {
    margin-top: 10px;
}

.inline-boost-details summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    border: 0;
    border-radius: 999px;
    padding: 7px 11px;
    background: rgba(255, 207, 102, .11);
    color: var(--warn);
    cursor: pointer;
    font-size: 12px;
    font-weight: 950;
    list-style: none;
}

.inline-boost-details summary::-webkit-details-marker {
    display: none;
}

.inline-boost-details summary::after {
    content: "+";
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
}

.inline-boost-details[open] summary::after {
    content: "-";
}

.boost-choice-mini {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px;
    align-items: center;
    padding: 7px;
    border: 1px solid rgba(119, 232, 164, .2);
    border-radius: 8px;
    background: rgba(119, 232, 164, .055);
}

.boost-choice-mini > span {
    color: var(--ok);
    font-size: 11px;
    font-weight: 900;
}

.inline-boost-options form,
.boost-payment-actions form,
.boost-admin-meta form {
    margin: 0;
}

.boost-mini {
    min-height: 32px;
    border: 1px solid rgba(119, 232, 164, .32);
    background: rgba(119, 232, 164, .1);
    color: var(--ok);
    padding: 6px 9px;
    font-size: 11px;
}

.boost-mini.cash {
    border-color: rgba(255, 207, 102, .32);
    background: rgba(255, 207, 102, .1);
    color: var(--warn);
}

.badge, .wait {
    white-space: nowrap;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    border: 1px solid var(--line);
    color: var(--cream);
}

.wait { color: var(--ok); }
.empty { color: var(--muted); }

.thanks {
    min-height: 72vh;
    display: grid;
    justify-items: center;
    align-content: center;
    text-align: center;
}

.success-pulse {
    width: 94px;
    height: 94px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--cream), var(--red));
    box-shadow: 0 0 70px rgba(255,53,47,.55);
    animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(.92); opacity: .8; }
    50% { transform: scale(1.06); opacity: 1; }
}

.ticket {
    width: min(440px, 100%);
    margin: 22px 0;
    padding: 20px;
    border: 1px dashed rgba(255,232,201,.35);
    border-radius: 8px;
    background: var(--panel);
}

.ticket strong {
    display: block;
    font-size: 58px;
}

.order-estimate {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: min(520px, 100%);
    margin: 0 0 18px;
}

.order-estimate article {
    padding: 14px;
    border: 1px solid rgba(119, 232, 164, .26);
    border-radius: 8px;
    background: rgba(119, 232, 164, .08);
}

.order-estimate span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.order-estimate strong {
    display: block;
    margin-top: 6px;
    color: var(--ok);
    font-size: clamp(20px, 5vw, 32px);
    line-height: 1.05;
}

.boost-box {
    width: min(620px, 100%);
    margin: 8px 0 18px;
    padding: 18px;
    border: 1px solid rgba(119, 232, 164, .28);
    border-radius: 8px;
    background:
        radial-gradient(circle at top right, rgba(119, 232, 164, .12), transparent 34%),
        rgba(255,255,255,.045);
    text-align: left;
}

.boost-box h2 {
    margin-bottom: 6px;
    font-size: 22px;
}

.boost-box p {
    color: var(--muted);
    font-size: 14px;
}

.boost-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.boost-options-single {
    grid-template-columns: minmax(0, 1fr);
}

.boost-option-card {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 14px;
    border: 1px solid rgba(119, 232, 164, .28);
    border-radius: 8px;
    background: rgba(119, 232, 164, .075);
}

.boost-option-card > span {
    color: var(--cream);
    font-size: 13px;
    font-weight: 900;
}

.boost-option-card > strong {
    color: var(--ok);
    font-size: 16px;
    line-height: 1.12;
}

.boost-options-single .boost-option-card {
    border-color: rgba(255, 207, 102, .42);
    background:
        linear-gradient(135deg, rgba(255, 207, 102, .15), rgba(255, 53, 47, .08)),
        rgba(255,255,255,.05);
}

.boost-options-single .boost-option-card > strong {
    color: var(--warn);
    font-size: clamp(20px, 5vw, 30px);
}

.boost-payment-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 2px;
}

.boost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(119, 232, 164, .32);
    background: rgba(119, 232, 164, .09);
    color: var(--text);
    text-align: center;
    padding: 10px;
}

.boost-button strong {
    color: var(--ok);
    font-size: 13px;
}

.thanks-install,
.thanks-profile-promo {
    width: min(620px, 100%);
    text-align: left;
}

.thanks-profile-promo {
    margin-top: 0;
}

.profile-head {
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-avatar {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    flex: 0 0 auto;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,.35), transparent 32%),
        var(--avatar-color, var(--red));
    box-shadow: 0 0 46px color-mix(in srgb, var(--avatar-color, var(--red)) 45%, transparent);
    font-size: 44px;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-head h1 {
    margin-bottom: 6px;
}

.profile-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px minmax(160px, .8fr) 96px auto;
    gap: 12px;
    align-items: end;
}

.profile-reset-form {
    display: grid;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.profile-reset-form p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.profile-reset-form .ghost {
    width: fit-content;
    color: var(--warn);
}

.profile-form input[type="color"] {
    padding: 6px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.profile-stats article {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.profile-stats span {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 900;
}

.profile-stats strong {
    display: block;
    margin-top: 6px;
    color: var(--cream);
    font-size: 34px;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.achievement {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.045);
}

.achievement > span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: var(--warn);
    font-size: 24px;
    font-weight: 900;
}

.achievement.unlocked {
    border-color: rgba(255, 207, 102, .42);
    background: rgba(255, 207, 102, .09);
}

.achievement.locked {
    opacity: .52;
}

.achievement p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.profile-history {
    display: grid;
    gap: 10px;
}

.profile-song {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.045);
}

.profile-song span {
    color: var(--warn);
    font-size: 12px;
    font-weight: 900;
}

.profile-song strong {
    display: block;
    margin-top: 5px;
}

.profile-song p {
    margin: 4px 0 0;
    color: var(--muted);
}

.profile-song em {
    font-style: normal;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 10px;
    color: var(--cream);
    font-size: 12px;
    white-space: nowrap;
}

.page-head { padding: 18px 0; }

.queue-live-head {
    display: grid;
    gap: 6px;
}

.live-indicator {
    width: fit-content;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--ok);
    font-size: 12px;
    font-weight: 900;
    background: rgba(119, 232, 164, .08);
}

.live-indicator::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 12px var(--ok);
}

.queue-out-of-queue-summary {
    margin: 0;
}

body.theme-september3 .live-indicator {
    border-color: rgba(246, 193, 95, .28);
    color: #ffe2a6;
    background: rgba(246, 193, 95, .08);
}

body.theme-september3 .live-indicator::before {
    background: #ffe2a6;
    box-shadow: 0 0 12px #ffe2a6;
}

.screen-wrap {
    width: min(1280px, calc(100vw - 64px));
    min-height: 100vh;
    margin: -28px auto 0;
    padding: clamp(24px, 4vw, 56px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    grid-template-rows: auto auto 1fr;
    gap: 24px;
}

.screen-brand {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 24px;
}

.screen-brand img {
    width: clamp(86px, 10vw, 150px);
    border-radius: 50%;
    box-shadow: 0 0 46px rgba(255,53,47,.45);
}

.screen-brand h1 { margin: 0 0 8px; }
.screen-brand p { color: var(--muted); margin: 0; font-size: 22px; }
.screen-wrap .now-card { grid-column: 1 / 2; }
.screen-next { grid-column: 1 / 2; }

.qr-box {
    grid-column: 2 / 3;
    grid-row: 2 / 4;
    align-self: start;
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 18px;
    border-radius: 8px;
    background: rgba(255,255,255,.9);
    color: #160707;
    font-weight: 900;
    overflow: hidden;
    text-align: center;
}

.qr-box img { width: 150px; height: 150px; }

.print-qr {
    min-height: 100vh;
    display: grid;
    justify-items: center;
    align-content: center;
    text-align: center;
    gap: 16px;
    color: var(--text);
}

.print-logo {
    width: 170px;
    border-radius: 50%;
}

.big-qr {
    width: min(420px, 82vw);
    background: #fff;
    padding: 14px;
    border-radius: 8px;
}

.table-qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    width: min(980px, 100%);
}

.table-qr-grid.is-single {
    width: min(460px, 100%);
}

.table-qr-card {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.table-qr-card strong {
    font-size: 28px;
}

.table-qr-card .big-qr {
    width: min(300px, 72vw);
}

.login-panel {
    width: min(480px, 100%);
    margin: 8vh auto;
}

.admin-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    width: 100%;
    margin: 0;
}

.admin-side {
    position: sticky;
    top: 86px;
    align-self: start;
    display: grid;
    gap: 12px;
    padding-right: 4px;
}

.admin-side h1 {
    font-size: 36px;
}

.admin-main {
    display: grid;
    gap: 18px;
}

.admin-queue-shortcut {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-right: 10px;
    border-color: rgba(255, 179, 78, .42);
    background: linear-gradient(105deg, rgba(255, 163, 67, .16), rgba(255,255,255,.035));
    color: var(--cream);
    font-weight: 850;
}

.admin-queue-shortcut strong {
    display: grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(255, 179, 78, .18);
    color: #ffd28a;
    font-size: 12px;
}

.admin-queue-panel {
    scroll-margin-top: 16px;
    border-color: rgba(255, 179, 78, .25);
    box-shadow: 0 18px 58px rgba(0,0,0,.24), 0 0 34px rgba(255, 140, 60, .045);
}

.check {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.check input {
    width: 20px;
    min-height: 20px;
}

.admin-table-wrap {
    display: grid;
    gap: 12px;
}

.admin-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-table-head h2 {
    margin: 0;
}

.admin-table-head .eyebrow {
    margin-bottom: 4px;
}

.admin-table-head form {
    margin: 0;
}

.admin-table-head .primary {
    min-height: 42px;
    padding-inline: 18px;
}

.admin-table {
    display: grid;
    gap: 10px;
}

.admin-switch-form {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.admin-switch-form .check {
    width: fit-content;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    background: rgba(255,255,255,.045);
    color: var(--cream);
}

.admin-history-accordion {
    display: grid;
    gap: 10px;
    margin-top: 4px;
    border: 1px solid rgba(255, 232, 201, .16);
    border-radius: 8px;
    background: rgba(255,255,255,.035);
    overflow: hidden;
}

.admin-history-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 12px 14px;
    color: var(--cream);
    cursor: pointer;
    font-weight: 900;
    list-style: none;
}

.admin-history-accordion summary::-webkit-details-marker {
    display: none;
}

.admin-history-accordion summary::before {
    content: "+";
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 232, 201, .2);
    border-radius: 50%;
    color: var(--warn);
    background: rgba(255,255,255,.06);
}

.admin-history-accordion[open] summary::before {
    content: "-";
}

.admin-history-accordion summary span {
    margin-right: auto;
}

.admin-history-accordion summary strong {
    min-width: 34px;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 207, 102, .12);
    color: var(--warn);
    text-align: center;
    font-size: 13px;
}

.admin-history-list {
    display: grid;
    gap: 10px;
    padding: 0 10px 10px;
}

.boost-admin-list {
    display: grid;
    gap: 10px;
}

.boost-admin-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.045);
}

.boost-admin-row.status-applied {
    border-color: rgba(119, 232, 164, .42);
    box-shadow: inset 4px 0 0 var(--ok);
}

.boost-admin-row.status-pending,
.boost-admin-row.status-approved {
    border-color: rgba(255, 207, 102, .38);
}

.boost-admin-row p {
    margin: 4px 0;
    color: var(--muted);
}

.boost-admin-row span,
.boost-admin-row small {
    color: var(--cream);
    font-size: 12px;
}

.boost-admin-meta {
    display: grid;
    gap: 6px;
    justify-items: end;
    text-align: right;
}

.archive-list {
    display: grid;
    gap: 12px;
}

.archive-view-link {
    min-height: 42px;
    padding: 10px 14px;
    white-space: nowrap;
}

.archive-event-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.archive-event-overview article {
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.045);
}

.archive-event-overview span,
.archive-event-overview strong {
    display: block;
}

.archive-event-overview span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.archive-event-overview strong {
    margin-top: 7px;
    color: var(--cream);
    font-size: 28px;
}

.archive-guests-wrap {
    margin-bottom: 18px;
}

.archive-guest-list,
.archive-guest-songs {
    display: grid;
    gap: 8px;
}

.archive-guest-row {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.04);
}

.archive-guest-row summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 26px;
    gap: 14px;
    align-items: center;
    padding: 14px;
    cursor: pointer;
    list-style: none;
}

.archive-guest-row summary::-webkit-details-marker {
    display: none;
}

.archive-guest-row summary::after {
    content: "+";
    grid-column: 3;
    color: var(--warn);
    font-size: 22px;
    font-weight: 800;
}

.archive-guest-row[open] summary::after {
    content: "−";
}

.archive-guest-name strong,
.archive-guest-name small {
    display: block;
}

.archive-guest-name small {
    margin-top: 4px;
    color: var(--muted);
}

.archive-guest-songs {
    padding: 0 14px 14px;
}

.archive-guest-songs article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 11px 0;
    border-top: 1px solid var(--line);
}

.archive-guest-songs strong,
.archive-guest-songs span {
    display: block;
}

.archive-guest-songs span,
.archive-guest-songs time {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.archive-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.055);
}

.archive-row strong {
    display: block;
    font-size: 20px;
}

.archive-row p {
    margin: 5px 0 0;
    color: var(--muted);
}

.archive-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--cream);
    font-size: 13px;
}

.archive-stats span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 10px;
    white-space: nowrap;
}

.archive-month-panel,
.archive-song-list,
.archive-identity-list {
    display: grid;
    gap: 12px;
}

.archive-month-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.archive-month-form input {
    min-height: 42px;
}

.archive-identity-row,
.archive-song-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.045);
}

.archive-identity-row p,
.archive-song-main p {
    margin: 5px 0 0;
    color: var(--muted);
}

.archive-song-main span {
    display: block;
    margin-bottom: 5px;
    color: var(--warn);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.archive-device-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 6px;
    min-width: min(520px, 100%);
    color: var(--muted);
    font-size: 12px;
}

.archive-device-grid span,
.archive-count {
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(0,0,0,.16);
}

.archive-song-row.status-singing {
    border-color: var(--red);
}

.archive-song-row.status-sung .archive-song-main strong,
.archive-song-row.status-sung .archive-song-main p {
    text-decoration: line-through;
}

.admin-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px;
    align-items: start;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.admin-row.status-singing {
    border-color: var(--red);
    box-shadow: inset 4px 0 0 var(--red);
}

.admin-row.is-paid-out-of-queue {
    border-color: rgba(109, 255, 143, .72);
    box-shadow: inset 4px 0 0 #6dff8f, 0 0 28px rgba(109, 255, 143, .1);
}

.admin-row.status-singing.is-paid-out-of-queue {
    border-color: rgba(109, 255, 143, .88);
    box-shadow: inset 5px 0 0 #6dff8f, 0 0 34px rgba(109, 255, 143, .14);
}

.admin-row.status-sung {
    opacity: .72;
}

.admin-row.status-sung input {
    text-decoration: line-through;
}

.edit-song {
    display: grid;
    grid-template-columns: minmax(120px, .5fr) 1fr auto;
    gap: 8px;
}

.edit-song.is-table-mode {
    grid-template-columns: minmax(130px, .48fr) 86px minmax(210px, 1fr) auto;
}

.admin-mini-field {
    gap: 4px;
}

.admin-mini-field span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
}

.admin-mini-field input,
.admin-mini-field select {
    min-height: 48px;
}

.admin-song-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.admin-song-field a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 1px solid rgba(255, 207, 102, .3);
    border-radius: 8px;
    padding: 0 12px;
    color: var(--warn);
    background: rgba(255, 207, 102, .08);
    font-size: 12px;
    font-weight: 900;
}

.row-actions {
    grid-column: 2 / 3;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.row-actions form { display: inline; }

.tiny {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
    background: rgba(255,255,255,.08);
    color: var(--text);
    border: 1px solid var(--line);
}

.tiny.danger {
    color: #ffd4d1;
    border-color: rgba(255,53,47,.42);
}

.tiny.subtle-danger {
    opacity: .72;
}

.boost-apply {
    border-color: rgba(109, 255, 143, .46);
    background: rgba(109, 255, 143, .12);
    color: #bfffd0;
}

.table-round-notice {
    margin: 0;
    padding: 11px 13px;
    border-left: 3px solid var(--ok);
    background: rgba(119, 232, 164, .07);
    color: var(--cream);
    font-size: 13px;
    line-height: 1.4;
}

.table-round-notice.is-full {
    border-left-color: var(--warn);
    background: rgba(255, 207, 102, .08);
}

.table-round-choice {
    display: grid;
    gap: 9px;
    margin: 0;
    border: 0;
    padding: 0;
}

.table-round-choice[hidden] {
    display: none;
}

.table-round-choice legend {
    margin-bottom: 8px;
    color: var(--warn);
    font-size: 13px;
    font-weight: 850;
}

.table-round-choice label {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    padding: 12px 13px;
    border: 1px solid rgba(255, 232, 201, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
    color: var(--cream);
    cursor: pointer;
}

.table-round-choice input {
    width: 21px;
    min-width: 21px;
    height: 21px;
    min-height: 21px;
    accent-color: var(--warn);
}

.table-round-choice label span,
.table-round-choice label small {
    display: block;
}

.table-round-choice label small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.queue-round-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 0;
    color: var(--warn);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.queue-round-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, rgba(255, 207, 102, .38), transparent);
}

.round-pill,
.table-round-admin-pill,
.venue-mode-badge,
.song-context {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 4px 8px;
    background: rgba(255, 207, 102, .1);
    color: var(--warn);
    font-size: 11px;
    font-style: normal;
    font-weight: 850;
}

.song-context {
    margin: 7px auto 0;
}

.table-extra-pill {
    border-color: rgba(91, 196, 255, .46);
    color: #a7dcff;
    background: rgba(91, 196, 255, .1);
}

.song-row.is-paid-table-extra,
.admin-row.is-paid-table-extra,
.now-card.paid-table-extra {
    border-color: rgba(91, 196, 255, .62);
    box-shadow: inset 4px 0 0 #5bc4ff, 0 0 26px rgba(91, 196, 255, .08);
}

.venue-mode-badge {
    margin-top: 8px;
    letter-spacing: 0;
}

.venue-mode-badge.is-ochobar {
    background: rgba(91, 196, 255, .12);
    color: #a7dcff;
}

.venue-mode-badge.is-chismeria {
    background: rgba(119, 232, 164, .1);
    color: var(--ok);
}

.table-control-panel,
.table-admin-toolbar,
.table-chip-list {
    display: grid;
    gap: 12px;
}

.table-admin-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-admin-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
}

.table-chip-list {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.table-admin-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(119, 232, 164, .24);
    border-radius: 8px;
    background: rgba(119, 232, 164, .06);
}

.table-admin-chip.is-full {
    border-color: rgba(255, 207, 102, .34);
    background: rgba(255, 207, 102, .07);
}

.table-admin-chip strong,
.table-admin-chip span {
    display: block;
}

.table-admin-chip-main {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.table-rename-form {
    display: grid;
    grid-template-columns: minmax(74px, 1fr) auto;
    gap: 6px;
    align-items: end;
}

.table-rename-form label {
    display: grid;
    grid-template-columns: auto minmax(42px, 1fr);
    align-items: center;
    gap: 5px;
}

.table-rename-form label span {
    margin: 0;
    color: var(--cream);
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.table-rename-form input {
    min-height: 34px;
    padding: 6px 8px;
}

.table-settings-form,
.table-settings-fields,
.table-code-actions {
    display: grid;
    gap: 7px;
}

.table-settings-fields {
    grid-template-columns: minmax(90px, 1fr) minmax(100px, .8fr);
}

.table-settings-form label {
    display: grid;
    gap: 4px;
}

.table-settings-form label span {
    margin: 0;
    color: var(--cream);
    font-size: 12px;
    font-weight: 850;
}

.table-settings-form input {
    min-height: 36px;
    padding: 6px 8px;
}

.table-code-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.table-code-actions .tiny,
.table-qr-link {
    width: 100%;
    text-align: center;
}

.table-qr-link {
    display: inline-grid;
    place-items: center;
    text-decoration: none;
}

.ochobar-paid-options {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 2px;
}

.ochobar-paid-options summary {
    padding: 10px 0;
    color: var(--warn);
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
}

.ochobar-paid-options .priority-order-toggle {
    margin-top: 4px;
}

.ochobar-order-step {
    display: grid;
    gap: 13px;
    padding: 5px 0 19px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.ochobar-order-step + .ochobar-order-step {
    padding-top: 4px;
}

.qr-selected-table {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 62px;
    padding: 12px 14px;
    border-left: 3px solid var(--ok);
    background: rgba(119, 232, 164, .07);
}

.qr-selected-table span {
    color: var(--muted);
    font-size: 12px;
}

.qr-selected-table strong {
    color: #bfffd0;
    font-size: 20px;
    white-space: nowrap;
}

.table-code-step input {
    text-align: center;
    font-size: 24px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.ochobar-step-head {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--cream);
    font-size: 16px;
}

.ochobar-step-head span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #06130f;
    background: var(--ok);
    font-size: 13px;
    font-weight: 950;
}

.ochobar-song-entry,
.youtube-picker-group {
    display: grid;
    gap: 10px;
}

.second-song-entry {
    padding-top: 15px;
    border-top: 1px dashed rgba(119, 232, 164, .28);
}

.second-song-entry[hidden] {
    display: none;
}

.second-song-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--cream);
}

.second-song-title button {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    color: var(--muted);
    font-size: 22px;
}

.add-second-song {
    width: 100%;
    min-height: 47px;
    border: 1px dashed rgba(119, 232, 164, .44);
    border-radius: 8px;
    background: rgba(119, 232, 164, .06);
    color: #bfffd0;
    font-weight: 850;
}

.add-second-song[hidden] {
    display: none;
}

.two-songs-hint {
    margin: -3px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.batch-ticket-list {
    display: grid;
    gap: 10px;
}

body.mode-ochobar.page-home main {
    width: min(680px, calc(100vw - 24px));
}

body.mode-ochobar.page-home .hero {
    padding: 5px 0 2px;
}

body.mode-ochobar.page-home .hero .eyebrow {
    margin: 8px 0 4px;
}

body.mode-ochobar.page-home .hero h1 {
    margin-bottom: 3px;
    font-size: clamp(27px, 6vw, 42px);
}

body.mode-ochobar.page-home .hero .lead {
    display: none;
}

body.mode-ochobar .order-panel {
    padding: clamp(16px, 4vw, 24px);
}

body.mode-ochobar .queue-status-module {
    margin-bottom: 15px;
    padding-bottom: 13px;
}

body.mode-ochobar .youtube-picker {
    border: 0;
    padding: 0;
    background: transparent;
}

body.mode-ochobar .youtube-picker-head,
body.mode-ochobar .youtube-optional-note {
    display: none;
}

body.mode-ochobar .youtube-picker > p:not(.youtube-optional-note) {
    font-size: 12px;
}

.table-admin-chip span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 820px) {
    body {
        padding-bottom: calc(86px + env(safe-area-inset-bottom));
        -webkit-font-smoothing: antialiased;
    }

    main {
        width: min(calc(100vw - 22px), 720px);
        padding: 12px 0 28px;
    }

    body.page-admin main,
    body.page-archive main {
        width: min(calc(100vw - 16px), 720px);
        margin: 0 auto;
    }

    .table-admin-toolbar,
    .compact-admin-form {
        grid-template-columns: 1fr;
    }

    .table-chip-list {
        grid-template-columns: 1fr;
    }

    .table-control-panel .admin-table-head {
        align-items: stretch;
        flex-direction: column;
    }

    .table-control-panel .admin-table-head .primary {
        width: 100%;
    }

    .song-person {
        flex-wrap: wrap;
    }

    .topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 64px;
        align-items: center;
        padding: 10px 12px;
        border-bottom-color: rgba(255, 232, 201, .1);
        background: linear-gradient(180deg, rgba(6, 5, 5, .96), rgba(6, 5, 5, .78));
    }

    .brand {
        min-width: 0;
        gap: 9px;
    }

    .brand img {
        width: 38px;
        height: 38px;
    }

    .brand span {
        max-width: 112px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 17px;
    }

    .topbar-actions {
        position: relative;
        min-width: 0;
        gap: 7px;
    }

    .language-switcher-circles {
        gap: 5px;
    }

    .language-switcher-circles a {
        width: 34px;
        min-width: 34px;
        height: 34px;
    }

    .language-switcher-circles .language-flag {
        font-size: 16px;
    }

    .menu-toggle {
        min-width: 82px;
        min-height: 40px;
        padding: 0 11px;
        justify-content: center;
        border-color: rgba(255, 232, 201, .22);
        background: rgba(255,255,255,.1);
        box-shadow: 0 10px 26px rgba(0,0,0,.26);
    }

    .queue-shortcut {
        display: none;
    }

    .main-menu {
        top: 62px;
        right: 12px;
        left: 12px;
        min-width: 0;
        padding: 12px;
        border-color: rgba(255, 232, 201, .18);
        background: rgba(12, 10, 10, .98);
    }

    .main-menu a {
        min-height: 46px;
        display: flex;
        align-items: center;
        font-weight: 850;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 38;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 5px;
        padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
        border: 1px solid rgba(255, 255, 255, .08);
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 0;
        background: #050405;
        box-shadow: 0 -14px 40px rgba(0,0,0,.54);
        backdrop-filter: none;
    }

    .mobile-bottom-nav a {
        display: grid;
        justify-items: center;
        align-content: center;
        gap: 4px;
        min-width: 0;
        min-height: 48px;
        border-radius: 8px;
        color: var(--muted);
        font-size: 11px;
        line-height: 1.1;
        text-align: center;
    }

    .mobile-bottom-nav a.active {
        background: linear-gradient(135deg, #fff0d1, #ffcf66 46%, #ff563f);
        color: #160707;
        box-shadow: 0 10px 28px rgba(255, 91, 63, .2);
    }

    .mobile-bottom-nav strong {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nav-dot {
        width: 18px;
        height: 3px;
        border-radius: 999px;
        background: currentColor;
        opacity: .58;
    }

    .mobile-bottom-nav a.active .nav-dot {
        opacity: 1;
    }

    .language-switcher {
        position: static;
        justify-content: center;
        background: rgba(12, 10, 10, .96);
    }

    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 10px 12px;
        padding: 12px 0 8px;
        text-align: center;
        overflow: hidden;
    }

    .hero > div:not(.hero-logo) {
        width: 100%;
    }

    .hero-logo img {
        width: 74px;
        box-shadow: 0 0 34px rgba(255, 53, 47, .36);
    }

    .eyebrow {
        margin: 14px 0 7px;
        font-size: 11px;
    }

    h1 {
        font-size: clamp(24px, 7vw, 31px);
        line-height: 1.02;
        margin-bottom: 6px;
    }

    h2 {
        font-size: clamp(22px, 7vw, 28px);
        line-height: 1.08;
    }

    .lead {
        font-size: 16px;
        line-height: 1.45;
    }

    .hero h1 {
        width: min(100%, calc(100vw - 28px));
        max-width: calc(100vw - 28px);
        margin-left: 0;
        margin-right: 0;
        overflow-wrap: anywhere;
        word-break: break-word;
        text-wrap: balance;
    }

    .hero .lead {
        width: min(100%, calc(100vw - 28px));
        max-width: calc(100vw - 28px);
        margin-left: 0;
        margin-right: 0;
        font-size: 14px;
    }

    .school-form-card {
        width: 100%;
        margin-top: 10px;
        padding: 12px;
    }

    .school-form-card strong {
        font-size: 16px;
    }

    .september3-hero-card {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 11px;
        width: 100%;
        margin-top: 10px;
        padding: 12px;
        text-align: left;
    }

    .september3-hero-card::after {
        right: 8px;
        bottom: -14px;
        font-size: 78px;
    }

    .september3-hero-card > img {
        width: 68px;
        height: 68px;
    }

    .september3-hero-card strong {
        font-size: 17px;
    }

    .september3-hero-card p {
        font-size: 13px;
    }

    .september3-tags {
        gap: 5px;
        margin-top: 8px;
    }

    .september3-tags em {
        min-height: 24px;
        padding: 4px 7px;
        font-size: 10px;
    }

    .language-switcher-flags {
        width: 100%;
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 16px;
        padding: 5px;
        gap: 5px;
    }

    .language-switcher-flags a {
        min-width: 0;
        min-height: 48px;
        justify-content: center;
        gap: 6px;
        padding: 8px 6px;
        font-size: 12px;
        overflow: hidden;
    }

    .language-switcher-flags a span:last-child {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .language-flag {
        font-size: 18px;
    }

    .panel,
    .queue-mini,
    .list-section,
    .login-panel {
        max-width: 100%;
        overflow: hidden;
        padding: 16px;
        border-color: rgba(255, 232, 201, .13);
        background: rgba(17, 14, 15, .88);
        box-shadow: 0 18px 54px rgba(0,0,0,.3);
    }

    .order-panel {
        margin-top: 8px;
    }

    .queue-status-module {
        margin-bottom: 18px;
        padding-bottom: 16px;
    }

    .led-status {
        grid-template-columns: 1fr;
        gap: 7px;
        margin: 0;
        padding: 8px;
    }

    .led-kicker {
        width: fit-content;
        min-height: 28px;
        padding-inline: 9px;
        font-size: 10px;
    }

    .led-track span {
        padding: 8px 36px 8px 0;
        font-size: 12px;
    }

    .queue-status-line {
        gap: 6px;
    }

    .queue-status-line span {
        min-height: 32px;
        padding-inline: 6px;
    }

    .priority-order-toggle {
        padding: 12px;
    }

    .order-consent {
        font-size: 11px;
    }

    input,
    button,
    .link-btn {
        min-height: 52px;
        font-size: 16px;
    }

    button,
    .link-btn {
        width: 100%;
        padding-inline: 14px;
    }

    .primary {
        box-shadow: 0 14px 34px rgba(255, 53, 47, .24);
    }

    .install-notice,
    .profile-promo,
    .instagram-card {
        grid-template-columns: 1fr;
        gap: 13px;
        padding: 16px;
    }

    .next-event-poster {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto minmax(48px, 1fr) auto;
        gap: 14px;
        min-height: 600px;
        padding: 20px 16px 18px;
        background-image: url('/assets/next-event-theatre-mobile.png');
        background-position: center top;
    }

    .next-event-poster.is-today {
        grid-template-rows: auto auto auto auto minmax(48px, 1fr) auto;
        min-height: 620px;
    }

    .next-event-poster.is-today .next-event-countdown {
        grid-row: 3;
    }

    .next-event-poster.is-today .poster-event {
        grid-row: 4;
        align-self: start;
    }

    .next-event-poster.is-today .poster-footer {
        grid-row: 6;
    }

    .next-event-poster.is-upcoming.has-countdown {
        grid-template-rows: auto auto auto auto minmax(48px, 1fr) auto;
    }

    .next-event-poster.is-upcoming.has-countdown .next-event-countdown {
        grid-row: 4;
        align-self: start;
    }

    .next-event-poster.is-upcoming.has-countdown .poster-footer {
        grid-row: 6;
    }

    .install-notice {
        margin-top: 8px;
        border-color: rgba(119, 232, 164, .5);
        background:
            linear-gradient(135deg, rgba(119, 232, 164, .2), rgba(255,255,255,.06)),
            rgba(119, 232, 164, .09);
    }

    .install-notice ul {
        padding-left: 16px;
        font-size: 13px;
        line-height: 1.45;
    }

    .profile-promo h2 {
        font-size: clamp(25px, 8vw, 34px);
    }

    .next-event-poster h2 {
        font-size: clamp(31px, 9vw, 40px);
    }

    .poster-brandline {
        padding-bottom: 9px;
    }

    .poster-brandline strong {
        font-size: 22px;
    }

    .poster-copy {
        width: min(100%, 430px);
        margin-top: 21px;
    }

    .poster-kicker {
        margin-bottom: 10px;
        font-size: 10px;
    }

    .next-event-poster .lead {
        margin-top: 12px;
        font-size: 15px;
    }

    .poster-event {
        width: min(88%, 360px);
    }

    .poster-date {
        font-size: clamp(32px, 9.5vw, 40px);
    }

    .poster-event strong {
        font-size: clamp(21px, 6.4vw, 26px);
    }

    .poster-event span {
        font-size: 12px;
    }

    .next-event-countdown {
        width: min(88%, 360px);
        padding: 11px 0;
    }

    .next-event-countdown strong {
        font-size: clamp(28px, 9vw, 36px);
    }

    .poster-footer {
        font-size: 9px;
    }

    .inline-profile-promo {
        margin-bottom: 14px;
        padding: 14px;
    }

    .inline-profile-promo h2 {
        font-size: 22px;
    }

    .profile-promo .link-btn,
    .instagram-cta {
        width: 100%;
    }

    .push-hint {
        font-size: 13px;
        line-height: 1.45;
    }

    .youtube-picker {
        padding: 12px;
    }

    .youtube-picker-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .youtube-picker-head span {
        display: inline-flex;
        align-items: center;
        min-height: 34px;
        border: 1px solid rgba(255, 207, 102, .24);
        border-radius: 8px;
        padding: 0 10px;
        background: rgba(255, 207, 102, .08);
    }

    .youtube-result {
        grid-template-columns: 94px minmax(0, 1fr);
        min-height: 76px;
        padding: 8px;
    }

    .youtube-thumb {
        width: 94px;
    }

    .queue-mini,
    .list-section,
    .instagram-showcase,
    .respect-notice {
        margin-top: 14px;
    }

    .now-card {
        padding: 18px;
    }

    .now-card strong {
        font-size: clamp(30px, 10vw, 42px);
    }

    .now-card p {
        font-size: clamp(17px, 5vw, 22px);
        line-height: 1.22;
    }

    .song-list {
        gap: 8px;
    }

    .song-row {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "num body"
            "meta meta";
        align-items: start;
        gap: 10px 12px;
        padding: 12px;
    }

    .song-row:hover {
        transform: none;
    }

    .song-num {
        grid-area: num;
        min-width: 46px;
    }

    .song-row > div:nth-child(2) {
        grid-area: body;
        min-width: 0;
    }

    .song-row > .badge,
    .song-row > .wait {
        grid-area: meta;
        justify-self: start;
        width: auto;
    }

    .song-row > .wait {
        justify-self: end;
    }

    .song-person {
        gap: 6px;
    }

    .student-label {
        min-height: 22px;
        padding: 3px 7px;
        font-size: 10px;
    }

    .song-person strong {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .song-row p {
        font-size: 15px;
        line-height: 1.35;
    }

    .badge,
    .wait,
    .mine-pill,
    .inline-edit-link,
    .boost-mini {
        font-size: 11px;
    }

    .inline-boost-options {
        display: grid;
        grid-template-columns: 1fr;
    }

    .boost-choice-mini {
        grid-template-columns: 1fr;
    }

    .inline-boost-options .tiny {
        width: 100%;
        min-height: 38px;
    }

    .thanks {
        min-height: calc(100vh - 160px);
        align-content: start;
        padding-top: 28px;
    }

    .success-pulse {
        width: 78px;
        height: 78px;
    }

    .ticket strong {
        font-size: 46px;
    }

    .admin-table-head {
        align-items: stretch;
        flex-direction: column;
    }
    .admin-table-head .primary {
        width: 100%;
    }

    .profile-head {
        align-items: flex-start;
        flex-direction: row;
    }

    .profile-avatar {
        width: 72px;
        height: 72px;
        font-size: 34px;
    }

    .profile-form,
    .profile-stats,
    .achievement-grid,
    .profile-song,
    .order-estimate,
    .boost-options,
    .rules-grid,
    .boost-admin-row,
    .admin-grid,
    .admin-layout,
    .screen-wrap {
        grid-template-columns: 1fr;
    }

    .boost-button {
        min-height: 44px;
    }

    .profile-stats article {
        padding: 14px;
    }

    .achievement {
        grid-template-columns: 38px 1fr;
        padding: 12px;
    }

    .achievement > span {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .page-head {
        padding: 10px 0 12px;
    }

    .queue-live-head {
        gap: 5px;
    }

    .live-indicator {
        font-size: 11px;
        padding: 6px 9px;
    }

    .screen-wrap {
        width: min(100% - 24px, 720px);
        min-height: auto;
        padding: 18px 0;
    }

    .screen-wrap .now-card,
    .screen-next,
    .qr-box,
    .screen-brand {
        grid-column: auto;
        grid-row: auto;
    }

    .screen-brand {
        align-items: center;
        gap: 14px;
    }

    .screen-brand img {
        width: 74px;
    }

    .screen-brand p {
        font-size: 15px;
    }

    .qr-box img {
        width: 132px;
        height: 132px;
    }

    .admin-side {
        position: sticky;
        top: 64px;
        z-index: 6;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px 0;
        background: linear-gradient(180deg, rgba(7,6,7,.98), rgba(7,6,7,.82));
        backdrop-filter: blur(14px);
    }

    .admin-side h1 {
        margin: 0;
        font-size: 25px;
    }

    .admin-side .ghost,
    .admin-side .ghost-link {
        min-height: 38px;
        margin: 0;
        padding: 8px 10px;
        font-size: 12px;
    }

    .admin-side .ghost-link {
        display: none;
    }

    .admin-side .ghost-link[href="#admin-queue"],
    .admin-side .ghost-link[href="#admin-settings"],
    .admin-side .ghost-link[href="#admin-theme"] {
        display: inline-flex;
    }

    .admin-row {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .admin-num {
        width: fit-content;
        border: 1px solid rgba(255, 207, 102, .28);
        border-radius: 999px;
        padding: 6px 9px;
        background: rgba(255, 207, 102, .08);
    }

    .edit-song,
    .admin-song-field {
        grid-template-columns: 1fr;
    }

    .edit-song.is-table-mode {
        grid-template-columns: minmax(0, 1fr) 92px;
    }

    .edit-song.is-table-mode .admin-song-field,
    .edit-song.is-table-mode > button {
        grid-column: 1 / -1;
    }

    .admin-song-field a {
        min-height: 42px;
    }

    .row-actions {
        grid-column: auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .position-form {
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .row-actions form,
    .row-actions .tiny {
        width: 100%;
    }

    .tiny {
        min-height: 38px;
    }

    .archive-row,
    .archive-identity-row,
    .archive-song-row {
        grid-template-columns: 1fr;
    }
    .archive-event-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .archive-guest-row summary {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .archive-guest-row summary .archive-stats {
        grid-column: 1 / -1;
    }
    .archive-guest-row summary::after {
        grid-column: 2;
        grid-row: 1;
    }
    .archive-guest-songs article {
        grid-template-columns: 1fr;
    }
    .archive-device-grid {
        grid-template-columns: 1fr;
        min-width: 0;
    }
    .archive-month-form {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .school-balloon {
        width: 48px;
        opacity: .48;
    }

    .balloon-red {
        top: 78px;
        right: -12px;
    }

    .balloon-gold {
        top: 44vh;
        left: -14px;
    }

    .school-ruler {
        width: 178px;
        height: 30px;
        opacity: .36;
    }

    .ruler-left {
        left: -92px;
        top: 68vh;
    }

    .ruler-right {
        right: -100px;
        top: 20vh;
    }

    .school-chalk {
        display: none;
    }

    .school-desk {
        width: 150px;
        height: 58px;
        opacity: .3;
    }

    .desk-left {
        left: -54px;
    }

    .desk-right {
        right: -58px;
    }

    .calendar-page {
        width: 62px;
        opacity: .38;
    }

    .calendar-page b {
        font-size: 34px;
    }

    .calendar-page small {
        margin-top: 5px;
        font-size: 8px;
    }

    .calendar-main {
        top: 82px;
        right: -28px;
        transform: rotate(11deg);
    }

    .calendar-left {
        left: -34px;
        top: 49vh;
        transform: rotate(-16deg);
    }

    .calendar-right {
        display: none;
    }

    .falling-page {
        width: 42px;
        opacity: .22;
    }

    .page-one {
        left: 16vw;
        top: 20vh;
    }

    .page-two {
        right: 18vw;
        top: 31vh;
    }

    .page-three {
        left: 62vw;
        bottom: 25vh;
    }

    .september3-portrait {
        right: -92px;
        bottom: 82px;
        width: 220px;
        opacity: .16;
    }

    .golden-toast {
        display: none;
    }

    .boost-admin-meta {
        justify-items: start;
        text-align: left;
    }

    .instagram-reels-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .instagram-reels {
        grid-auto-columns: minmax(82vw, 82vw);
    }

    .respect-list {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .brand span { display: none; }

    .menu-toggle {
        min-width: 76px;
        padding-inline: 9px;
    }

    .menu-toggle span:first-child {
        font-size: 13px;
    }

    .language-switcher-circles a {
        width: 31px;
        min-width: 31px;
        height: 31px;
    }

    .language-switcher-flags a {
        font-size: 12px;
    }

    .row-actions {
        grid-template-columns: 1fr;
    }

    .mobile-bottom-nav {
        padding-inline: 6px;
    }

    body.mode-ochobar .mobile-bottom-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    body.mode-ochobar .mobile-bottom-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.music-pause-admin-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.music-pause-admin-actions form {
    margin: 0;
}

.music-pause-admin-actions button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

body.page-pause {
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background: #090708;
}

body.page-pause .stage-bg {
    display: none;
}

body.page-pause .school-decor,
body.page-pause .september3-decor {
    display: none;
}

body.page-pause main {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
}

body.page-pause main > .music-pause-screen {
    width: 100%;
    max-width: none;
    margin: 0;
}

.music-pause-screen {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 88px 28px 66px;
    overflow: hidden;
    color: #fff5e6;
    text-align: center;
    background:
        linear-gradient(112deg, transparent 16%, rgba(115, 18, 33, .16) 42%, transparent 56%),
        linear-gradient(248deg, transparent 26%, rgba(193, 137, 68, .08) 48%, transparent 58%),
        #090708;
}

.music-pause-screen::before,
.music-pause-screen::after {
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: 0;
    width: 10%;
    content: "";
    opacity: .52;
    background: repeating-linear-gradient(90deg, #170a0d 0, #42121b 13px, #24090f 25px, #310c13 37px);
    mask-image: linear-gradient(90deg, #000 0%, transparent 100%);
}

.music-pause-screen::before {
    left: 0;
}

.music-pause-screen::after {
    right: 0;
    transform: scaleX(-1);
}

.music-pause-topline {
    position: absolute;
    z-index: 1;
    top: 28px;
    left: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e9d6bd;
    font-size: 14px;
    font-weight: 700;
}

.music-pause-topline img {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(213, 180, 119, .45);
    border-radius: 50%;
    object-fit: cover;
}

.music-pause-topline span {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.music-pause-fullscreen {
    position: absolute;
    z-index: 2;
    top: 28px;
    right: 32px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(213, 180, 119, .42);
    border-radius: 6px;
    color: #fff2dc;
    background: rgba(12, 9, 10, .92);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.music-pause-content {
    position: relative;
    z-index: 1;
    width: min(100%, 900px);
    margin: auto;
}

.music-pause-kicker {
    margin: 0 0 18px;
    color: #d5b477;
    font-size: 13px;
    font-weight: 800;
}

.music-pause-equalizer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(3px, .8vw, 9px);
    width: min(88vw, 820px);
    height: clamp(100px, 22vh, 188px);
    margin: 0 auto 24px;
    padding: 0 6px;
    filter: drop-shadow(0 0 22px rgba(221, 55, 47, .2));
}

.music-pause-equalizer span {
    flex: 1 1 0;
    max-width: 18px;
    height: var(--bar-height, 50%);
    min-height: 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffe6ae 0%, #ee9d55 42%, #d63836 100%);
    box-shadow: 0 0 12px rgba(255, 130, 75, .28);
    transform: scaleY(.2);
    transform-origin: center;
    animation: pause-equalize var(--bar-duration, .8s) ease-in-out var(--bar-delay, 0s) infinite alternate;
}

@keyframes pause-equalize {
    from { transform: scaleY(.16); opacity: .52; }
    to { transform: scaleY(1); opacity: 1; }
}

.music-pause-content h1 {
    margin: 0;
    color: #fff5e6;
    font-size: 48px;
    line-height: 1.12;
}

.music-pause-spanish {
    margin: 12px 0 34px;
    color: #d6c5b7;
    font-size: 22px;
}

.music-pause-clock {
    display: inline-block;
    min-width: 4.8ch;
    padding: 10px 24px 16px;
    border-top: 1px solid rgba(213, 180, 119, .35);
    border-bottom: 1px solid rgba(213, 180, 119, .35);
    color: #ffe5a9;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 144px;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    line-height: 1;
    text-shadow: 0 0 30px rgba(255, 208, 124, .22);
}

.music-pause-state {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 24px 0 0;
    color: #d5b477;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.music-pause-screen.is-running .music-pause-state {
    color: #93e3b0;
}

.music-pause-screen.is-ended .music-pause-state {
    color: #f0a48c;
}

.music-pause-footer {
    position: absolute;
    z-index: 1;
    bottom: 24px;
    color: rgba(233, 214, 189, .58);
    font-size: 11px;
    font-weight: 700;
}

.music-pause-screen.is-fullscreen-fallback {
    position: fixed;
    z-index: 10000;
    inset: 0;
}

@media (max-width: 600px) {
    .music-pause-admin-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .music-pause-admin-actions form,
    .music-pause-admin-actions a,
    .music-pause-admin-actions button {
        width: 100%;
    }

    .music-pause-screen {
        padding: 94px 20px 58px;
    }

    .music-pause-screen::before,
    .music-pause-screen::after {
        width: 7%;
    }

    .music-pause-topline {
        top: 18px;
        left: 18px;
        gap: 8px;
        font-size: 12px;
    }

    .music-pause-topline img {
        width: 34px;
        height: 34px;
    }

    .music-pause-topline span {
        max-width: 110px;
    }

    .music-pause-fullscreen {
        top: 18px;
        right: 18px;
        min-height: 38px;
        padding-inline: 10px;
        font-size: 11px;
    }

    .music-pause-content h1 {
        font-size: 32px;
    }

    .music-pause-equalizer {
        width: min(92vw, 620px);
        height: clamp(82px, 14vh, 122px);
        gap: 3px;
        margin-bottom: 20px;
    }

    .music-pause-equalizer span {
        max-width: 11px;
    }

    .music-pause-spanish {
        margin: 10px 0 28px;
        font-size: 18px;
    }

    .music-pause-clock {
        padding: 10px 12px 14px;
        font-size: 78px;
    }

    .music-pause-state {
        flex-direction: column;
        gap: 4px;
        margin-top: 20px;
        font-size: 11px;
    }

    .music-pause-state-separator {
        display: none;
    }
}

@media (max-height: 520px) and (orientation: landscape) {
    .music-pause-screen {
        padding-block: 58px 40px;
    }

    .music-pause-content h1 {
        font-size: 30px;
    }

    .music-pause-spanish {
        margin: 6px 0 10px;
        font-size: 16px;
    }

    .music-pause-kicker {
        margin-bottom: 8px;
    }

    .music-pause-equalizer {
        height: 60px;
        margin-bottom: 8px;
    }

    .music-pause-clock {
        padding-block: 4px 8px;
        font-size: 72px;
    }

    .music-pause-state {
        margin-top: 10px;
    }

    .music-pause-footer {
        bottom: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .music-pause-equalizer span {
        animation: none;
    }
}

@media print {
    body { background: #fff; color: #111; }
    .stage-bg, .school-decor, .september3-decor, .topbar, .no-print { display: none; }
    .print-qr { color: #111; }
    .table-qr-card { background: #fff; color: #111; border-color: #bbb; break-inside: avoid; }
}

/* OCHOBAR operator workstation */
body.page-workstation {
    padding: 0;
}

body.page-workstation main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 14px clamp(14px, 2vw, 30px) 28px;
}

.workstation-shell {
    width: min(1800px, 100%);
    margin: 0 auto;
}

.workstation-header {
    display: grid;
    grid-template-columns: minmax(180px, .7fr) minmax(240px, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 4px 0 16px;
    border-bottom: 1px solid var(--line);
}

.workstation-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
}

.workstation-brand img { width: 42px; height: 42px; border-radius: 50%; }
.workstation-brand span { display: grid; gap: 2px; }
.workstation-brand strong { font-size: 16px; }
.workstation-brand small { color: var(--muted); font-size: 10px; letter-spacing: 1px; }
.workstation-event { display: grid; justify-items: center; gap: 3px; }
.workstation-event strong { font-size: 18px; }
.workstation-event span { color: var(--warn); font-size: 12px; font-weight: 800; }
.workstation-header-actions { display: flex; align-items: center; justify-content: end; gap: 14px; }
.workstation-header-actions form { margin: 0; }
.workstation-header-actions .ghost { min-height: 38px; }
.workstation-notice { margin: 12px 0 0; }

.priority-console {
    margin: 16px 0;
    padding: 16px 18px;
    border: 1px solid rgba(255, 200, 95, .32);
    border-radius: 8px;
    background: linear-gradient(110deg, rgba(255, 196, 82, .1), rgba(255, 255, 255, .035) 48%, rgba(255, 93, 61, .06));
}

.priority-console-heading,
.priority-form-actions,
.workstation-section-head,
.workstation-video-controls,
.screen-cue-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.priority-console-heading h1 { margin: 0; font-size: 25px; }
.priority-console-heading .eyebrow { margin: 0 0 4px; color: var(--warn); font-size: 10px; }
.priority-price-tag { color: #ffe0a0; font-size: 16px; font-weight: 900; white-space: nowrap; }
.priority-console-note { margin: 7px 0 12px; color: var(--muted); font-size: 13px; }
.priority-request-list { display: grid; gap: 7px; }

.priority-request-row {
    display: grid;
    grid-template-columns: 112px minmax(220px, 1.2fr) minmax(220px, 1fr) 34px;
    align-items: end;
    gap: 10px;
}

.priority-request-row label,
.workstation-video-form label { display: grid; gap: 4px; color: var(--muted); font-size: 11px; }
.priority-request-row label span { color: var(--muted); font-weight: 400; }
.priority-request-row input,
.priority-request-row select { min-height: 40px; padding: 8px 10px; font-size: 13px; }
.priority-remove-row { width: 34px; min-height: 40px; padding: 0; font-size: 19px; }
.priority-form-actions { justify-content: flex-end; margin-top: 10px; }
.priority-form-actions .ghost { margin-right: auto; }

.workstation-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 20%);
    gap: 16px;
    align-items: start;
}

.workstation-main-column { display: grid; gap: 12px; min-width: 0; }
.workstation-current,
.workstation-queue,
.workstation-settings {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(20, 17, 18, .88);
}

.workstation-current { padding: 18px; }
.workstation-current.is-priority { border-color: rgba(255, 197, 85, .72); box-shadow: inset 4px 0 0 #f3bd53; }
.workstation-section-head { align-items: start; }
.workstation-section-head .eyebrow { margin: 0 0 3px; color: var(--muted); font-size: 10px; }
.workstation-section-head h2 { margin: 0; font-size: 21px; }
.workstation-section-head h2 span { color: var(--muted); font-size: 14px; }
.workstation-no-current { display: grid; gap: 5px; padding: 22px 4px 8px; }
.workstation-no-current strong { color: var(--warn); font-size: clamp(25px, 3vw, 42px); }
.workstation-no-current span { color: var(--muted); }
.workstation-current-song { padding: 16px 0 10px; }
.workstation-current-table { color: #ffce70; font-size: 14px; font-weight: 900; }
.workstation-current-song .paid-queue-pill { margin-left: 8px; }
.workstation-current-song h3 { margin: 7px 0 0; color: var(--cream); font-size: clamp(27px, 3.3vw, 48px); line-height: 1.12; }
.workstation-video-controls { justify-content: start; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }
.workstation-video-form { display: flex; min-width: min(540px, 100%); gap: 7px; }
.workstation-video-form input { min-height: 40px; font-size: 12px; }
.workstation-video-form .tiny { min-width: 116px; }

.workstation-settings { overflow: hidden; }
.workstation-settings summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; cursor: pointer; list-style: none; }
.workstation-settings summary::-webkit-details-marker { display: none; }
.workstation-settings summary::after { content: '+'; color: var(--warn); font-size: 22px; }
.workstation-settings[open] summary::after { content: '−'; }
.workstation-settings summary span { font-weight: 850; }
.workstation-settings summary small { margin-left: auto; color: var(--muted); font-size: 12px; text-align: right; }
.workstation-settings-body { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 0 16px 15px; }
.workstation-settings-body .field-hint { flex-basis: 100%; margin: 0; }
.screen-cue-form { justify-content: start; }
.screen-cue-form label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.screen-cue-form select { min-height: 40px; }
.workstation-tools-links { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 15px; }

.workstation-queue { padding: 15px; }
.workstation-queue .workstation-section-head { align-items: center; margin-bottom: 10px; }
.workstation-queue .icon-link { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: var(--cream); text-decoration: none; }
.workstation-queue-list { display: grid; gap: 8px; }
.workstation-queue-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px 8px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.035); }
.workstation-queue-item.is-priority { border-color: rgba(255, 197, 85, .65); background: rgba(255, 190, 70, .1); box-shadow: inset 3px 0 #f3bd53; }
.workstation-queue-number { color: var(--muted); font-size: 12px; font-weight: 900; }
.workstation-queue-copy { display: grid; gap: 3px; min-width: 0; }
.workstation-queue-copy strong { color: var(--cream); font-size: 13px; }
.workstation-queue-copy span { overflow-wrap: anywhere; font-size: 13px; }
.workstation-queue-copy em { color: #ffcf70; font-size: 9px; font-style: normal; font-weight: 950; }
.workstation-queue-copy a { color: var(--muted); font-size: 11px; }
.workstation-queue-item form { margin: 0; }
.workstation-play-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 76px; min-height: 36px; padding: 0 9px; color: #160e06; background: var(--warn); border-color: var(--warn); font-size: 11px; font-weight: 900; }
.workstation-full-queue { display: block; margin-top: 12px; font-size: 12px; }

/* Separate public TV screen; ordinary guest phone pages are not affected. */
body.page-screen { min-height: 100vh; min-height: 100svh; padding: 0; overflow: hidden; background: #050505; }
body.page-screen .stage-bg,
body.page-screen .school-decor,
body.page-screen .september3-decor { display: none; }
body.page-screen main { display: block; width: 100%; max-width: none; margin: 0; padding: 0; }
.guest-tv { position: fixed; inset: 0; display: grid; grid-template-rows: 68px minmax(0, 1fr); color: #fff7e7; background: #050505; overflow: hidden; }
.guest-tv-header { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(320px, 2fr) auto; align-items: center; gap: 20px; padding: 8px 22px; border-bottom: 1px solid rgba(255,255,255,.11); background: #090809; }
.guest-tv-brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.guest-tv-brand img { width: 38px; height: 38px; border-radius: 50%; }
.guest-tv-brand strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guest-tv-status { display: flex; justify-content: center; align-items: center; gap: 9px; min-width: 0; font-size: 13px; letter-spacing: .4px; }
.guest-tv-status strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8af0ae; }
.guest-tv-live-dot { width: 9px; height: 9px; border-radius: 50%; background: #6de29a; box-shadow: 0 0 14px #6de29a; animation: guest-tv-pulse 1.3s ease-in-out infinite; }
.guest-tv-priority, .guest-tv.is-priority .guest-tv-status strong { color: #ffd36f; }
.guest-tv.is-priority .guest-tv-live-dot { background: #f7bd52; box-shadow: 0 0 14px #f7bd52; }
.guest-tv.is-closed .guest-tv-status strong { color: #ff6962; }
.guest-tv.is-closed .guest-tv-live-dot { background: #ff6962; box-shadow: 0 0 14px #ff6962; }
.guest-tv-priority { font-size: 11px; font-weight: 900; white-space: nowrap; }
.guest-tv-fullscreen { min-height: 38px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.17); border-radius: 6px; color: #eee2cf; background: #171416; font-size: 12px; }
.guest-tv-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 18vw); gap: 14px; min-height: 0; align-items: center; padding: 14px; transition: grid-template-columns .55s cubic-bezier(.2,.8,.2,1); }
.guest-tv-stage[data-queue-expanded="false"] { grid-template-columns: minmax(0, 1fr) 0px; gap: 0; }
.guest-tv-player-panel { position: relative; display: grid; place-items: center; min-width: 0; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #0b090a; }
.guest-tv-player, .guest-tv-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.guest-tv-overlay { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; padding: 28px; text-align: center; background: radial-gradient(ellipse at center, rgba(16,10,10,.72), rgba(0,0,0,.94)); }
.guest-tv.has-video .guest-tv-overlay { display: none; }
.guest-tv.has-player-error .guest-tv-overlay { display: none; }
.guest-tv-overlay .eyebrow { margin: 0; color: #d4ad67; font-size: 11px; }
.guest-tv-overlay h1 { max-width: 900px; margin: 0; font-size: clamp(30px, 5vw, 72px); line-height: 1.05; overflow-wrap: anywhere; }
.guest-tv-overlay p:not(.eyebrow) { margin: 0; color: #d5cbbc; font-size: clamp(16px, 2vw, 25px); }
.guest-tv-overlay .primary { margin-top: 10px; }
.guest-tv-youtube-link { color: #ffcf77; font-size: 13px; }
.guest-tv-next-cue { position: absolute; z-index: 3; right: 22px; bottom: 20px; left: 22px; display: grid; gap: 3px; padding: 14px 18px; border: 1px solid rgba(255,196,83,.7); border-radius: 8px; color: #fff7e7; background: rgba(21,14,8,.92); box-shadow: 0 8px 36px rgba(0,0,0,.5); animation: guest-tv-cue-in .5s cubic-bezier(.2,.9,.2,1) both; }
.guest-tv-next-cue[hidden] { display: none; }
.guest-tv-next-cue span { color: #ffd36f; font-size: 10px; font-weight: 950; letter-spacing: 1px; }
.guest-tv-next-cue strong { font-size: clamp(18px, 2.2vw, 30px); }
.guest-tv-next-cue small { color: #e3c991; font-size: 15px; }
.guest-tv-player-error { position: absolute; z-index: 4; inset: auto 18px 18px; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 14px 18px; border: 1px solid rgba(255,120,100,.5); border-radius: 8px; color: #fff; background: rgba(100,25,22,.96); text-align: left; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.guest-tv-player-error p { margin: 0; max-width: 760px; font-size: 14px; line-height: 1.4; }
.guest-tv-error-link { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 14px; border-radius: 6px; color: #180f0b; background: #ffd36f; font-size: 13px; font-weight: 900; text-decoration: none; }
.guest-tv-error-link:hover { background: #ffe09d; }
.guest-tv-player-error[hidden] { display: none; }
.guest-tv-rail { align-self: stretch; min-width: 0; min-height: 0; padding: 16px 12px; overflow: auto; border-left: 1px solid rgba(255,255,255,.1); background: #100e0f; opacity: 1; transform: translateX(0); transition: opacity .35s ease, transform .55s cubic-bezier(.2,.8,.2,1); }
.guest-tv-stage[data-queue-expanded="false"] .guest-tv-rail { width: 0; padding: 0; border: 0; overflow: hidden; opacity: 0; pointer-events: none; transform: translateX(28px); }
.guest-tv-rail-head { display: grid; gap: 4px; margin-bottom: 14px; }
.guest-tv-rail-head .eyebrow { margin: 0; color: #bea06b; font-size: 10px; }
.guest-tv-rail-head strong { font-size: 18px; }
.guest-tv-queue { display: grid; gap: 8px; }
.guest-tv-queue-item { display: grid; grid-template-columns: 27px minmax(0, 1fr); gap: 8px; padding: 10px 8px; border: 1px solid rgba(255,255,255,.11); border-radius: 6px; background: rgba(255,255,255,.035); }
.guest-tv-queue-item.is-priority { border-color: rgba(255,194,76,.7); background: rgba(255,184,44,.12); box-shadow: inset 3px 0 #f3bd53; }
.guest-tv-queue-number { color: #b29a72; font-size: 11px; font-weight: 900; }
.guest-tv-queue-copy { display: grid; gap: 4px; min-width: 0; }
.guest-tv-queue-copy strong { color: #f2d390; font-size: 12px; }
.guest-tv-queue-copy span { font-size: 13px; overflow-wrap: anywhere; }
.guest-tv-queue-copy em { color: #ffd36f; font-size: 9px; font-style: normal; font-weight: 900; }

@keyframes guest-tv-pulse { 50% { opacity: .45; box-shadow: 0 0 4px currentColor; } }
@keyframes guest-tv-cue-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* Priority-song identity is gold on guest queue cards and status pills. */
body .song-row.is-paid-out-of-queue,
body .song-row.status-singing.is-paid-out-of-queue,
body.theme-school .song-row.is-paid-out-of-queue,
body.theme-september3 .song-row.is-paid-out-of-queue,
body.theme-school .song-row.status-singing.is-paid-out-of-queue,
body.theme-september3 .song-row.status-singing.is-paid-out-of-queue {
    border-color: rgba(255, 199, 92, .82);
    background: radial-gradient(circle at 86% 20%, rgba(255, 191, 75, .17), transparent 28%), linear-gradient(90deg, rgba(255, 188, 58, .15), rgba(255,255,255,.045));
    box-shadow: inset 4px 0 #f3bd53, 0 0 24px rgba(255, 186, 53, .1);
}

body .song-row.is-paid-out-of-queue .paid-queue-pill,
body .now-card.paid-out-of-queue .paid-queue-pill,
body .admin-row.is-paid-out-of-queue .paid-queue-pill {
    border-color: rgba(255, 199, 92, .55);
    background: rgba(255, 188, 58, .13);
    color: #ffdc91;
}

.now-card.paid-out-of-queue,
body.theme-school .now-card.paid-out-of-queue,
body.theme-september3 .now-card.paid-out-of-queue {
    border-color: rgba(255, 199, 92, .82);
    background: radial-gradient(circle at 86% 18%, rgba(255, 191, 75, .17), transparent 28%), linear-gradient(135deg, rgba(255,188,58,.15), rgba(255,207,102,.08)), rgba(18,16,17,.9);
    box-shadow: 0 0 40px rgba(255, 186, 53, .12), inset 5px 0 0 #f3bd53;
}

.admin-row.is-paid-out-of-queue,
.admin-row.status-singing.is-paid-out-of-queue {
    border-color: rgba(255, 199, 92, .76);
    box-shadow: inset 5px 0 #f3bd53, 0 0 28px rgba(255, 186, 53, .11);
}

@media (max-width: 900px) {
    .workstation-header { grid-template-columns: 1fr auto; }
    .workstation-event { grid-column: 1 / -1; grid-row: 2; justify-items: start; }
    .workstation-header-actions { grid-column: 2; grid-row: 1; flex-wrap: wrap; }
    .workstation-grid { grid-template-columns: minmax(0, 1fr) minmax(250px, 34%); }
    .priority-request-row { grid-template-columns: 82px minmax(150px, 1fr) minmax(160px, .8fr) 32px; }
}

@media (max-width: 680px) {
    body.theme-halloween .stage-bg {
        background:
            linear-gradient(180deg, rgba(6, 4, 4, .3), rgba(6, 4, 4, .78)),
            url("/assets/halloween-night.png") center 36% / cover no-repeat,
            #080605;
    }

    body.page-workstation main { padding-inline: 10px; }
    .workstation-header { grid-template-columns: 1fr; gap: 8px; }
    .workstation-event { grid-column: auto; grid-row: auto; justify-items: start; }
    .workstation-header-actions { grid-column: auto; grid-row: auto; justify-content: start; gap: 8px; }
    .workstation-header-actions .ghost-link { font-size: 12px; }
    .priority-console { padding: 13px; }
    .priority-console-heading h1 { font-size: 21px; }
    .priority-console-note { font-size: 12px; }
    .priority-request-row { grid-template-columns: 76px minmax(0, 1fr) 32px; gap: 7px; }
    .priority-song-title { grid-column: 2; grid-row: 1; }
    .priority-youtube-url { grid-column: 1 / -1; }
    .priority-remove-row { grid-column: 3; grid-row: 1; }
    .priority-form-actions { align-items: stretch; flex-direction: column; }
    .priority-form-actions > * { width: 100%; }
    .priority-form-actions .ghost { margin: 0; }
    .workstation-grid { grid-template-columns: 1fr; }
    .workstation-queue { grid-row: 1; }
    .workstation-queue-list { grid-template-columns: 1fr; }
    .workstation-settings summary { align-items: start; flex-wrap: wrap; }
    .workstation-settings summary small { width: 100%; margin: 0; text-align: left; }
    .screen-cue-form { align-items: stretch; flex-direction: column; }
    .screen-cue-form label { align-items: stretch; flex-direction: column; }

    body.page-screen { overflow: auto; }
    .guest-tv { position: relative; min-height: 100svh; grid-template-rows: 56px minmax(0, 1fr); }
    .guest-tv-header { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 6px 10px; }
    .guest-tv-brand img { width: 32px; height: 32px; }
    .guest-tv-brand strong { font-size: 12px; }
    .guest-tv-status { grid-column: 1 / -1; grid-row: 2; justify-content: start; font-size: 10px; }
    .guest-tv-header { grid-template-rows: auto auto; height: 82px; }
    .guest-tv { grid-template-rows: 82px minmax(0, 1fr); }
    .guest-tv-stage,
    .guest-tv-stage[data-queue-expanded="false"] { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; gap: 8px; align-content: start; padding: 8px; }
    .guest-tv-player-panel { grid-row: 1; aspect-ratio: 16 / 9; }
    .guest-tv-player-error { inset: auto 8px 8px; flex-direction: column; gap: 8px; padding: 10px; text-align: center; }
    .guest-tv-player-error p { font-size: 12px; }
    .guest-tv-error-link { min-height: 38px; width: 100%; }
    .guest-tv-rail,
    .guest-tv-stage[data-queue-expanded="false"] .guest-tv-rail { grid-row: 2; width: auto; max-height: 30svh; padding: 10px; border: 1px solid rgba(255,255,255,.1); opacity: 1; overflow: auto; transform: none; }
    .guest-tv-stage[data-queue-expanded="false"] .guest-tv-rail { max-height: 0; min-height: 0; padding-block: 0; border-color: transparent; visibility: hidden; }
    .guest-tv-queue { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .guest-tv-fullscreen { min-height: 34px; padding: 5px 8px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .guest-tv-live-dot { animation: none; }
    .guest-tv-stage, .guest-tv-rail, .guest-tv-next-cue { transition: none; animation: none; }
    body.theme-halloween .stage-bg::after { animation: none; }
}

.poster-carousel { min-width: 0; margin-bottom: 18px; }
.poster-carousel-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 3px;
}
.poster-carousel-track::-webkit-scrollbar { display: none; }
.poster-carousel .next-event-poster {
    flex: 0 0 min(100%, 820px);
    width: auto;
    margin: 0;
    scroll-snap-align: start;
}
.poster-carousel-controls { display: flex; justify-content: center; align-items: center; gap: 14px; padding-top: 12px; }
.poster-carousel-arrow {
    display: grid;
    place-items: center;
    width: 42px !important;
    min-height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--text);
    background: var(--panel-strong);
    font-size: 26px;
    line-height: 1;
}
.poster-carousel-dots { display: flex; align-items: center; justify-content: center; gap: 7px; }
.poster-carousel-dots button {
    width: 9px !important;
    min-height: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: var(--muted);
    opacity: .55;
}
.poster-carousel-dots button[aria-current="true"] { width: 24px !important; background: var(--warn); opacity: 1; }
.poster-place { color: #f2ca87; }
.poster-admin-list { display: grid; gap: 12px; margin-block: 16px; }
.poster-admin-item { display: grid; grid-template-columns: minmax(190px, 1.5fr) minmax(160px, 1fr) minmax(150px, .8fr) minmax(120px, .6fr) auto; align-items: end; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.poster-admin-item label { min-width: 0; }
.poster-admin-actions { display: flex; gap: 8px; }
.poster-admin-actions button { white-space: nowrap; }
.poster-admin-add { padding-top: 14px; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
    .poster-admin-item { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .poster-admin-actions { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    .poster-carousel-track { gap: 10px; }
    .poster-carousel .next-event-poster { flex-basis: 90%; }
    .poster-carousel-controls { padding-top: 9px; }
    .poster-admin-item { grid-template-columns: 1fr; gap: 8px; }
    .poster-admin-actions { grid-column: auto; }
    .poster-admin-actions button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .poster-carousel-track { scroll-behavior: auto; }
}

.venue-profile-settings {
    margin: 18px 0;
    padding: 14px 0;
    border-block: 1px solid var(--line);
}
.venue-profile-settings > summary {
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
}
.venue-profile-settings > .field-hint { max-width: 760px; }
.venue-profile-form { display: grid; gap: 14px; }
.venue-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.venue-profile-fields { display: grid; align-content: start; gap: 12px; min-width: 0; }
.venue-profile-fields + .venue-profile-fields { padding-left: 22px; border-left: 1px solid var(--line); }
.venue-profile-fields h3 { margin: 0; color: var(--warn); font-size: 16px; }
.poster-admin-item { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.poster-admin-actions { grid-column: 1 / -1; }
.poster-venue-link {
    display: inline-flex;
    align-self: center;
    width: fit-content;
    margin-top: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(242, 202, 135, .45);
    border-radius: 999px;
    color: #ffe2a6;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.poster-venue-link:hover { background: rgba(242, 202, 135, .12); }

@media (max-width: 680px) {
    .venue-profile-grid { grid-template-columns: 1fr; gap: 16px; }
    .venue-profile-fields + .venue-profile-fields { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}

.next-date-glance {
    width: min(calc(100% - 32px), 1040px);
    margin: 0 auto 16px;
    padding: 12px 16px 10px;
    border: 1px solid rgba(242, 202, 135, .24);
    border-radius: 8px;
    background: rgba(24, 12, 12, .82);
}
.next-date-glance-heading {
    margin-bottom: 8px;
    color: #f2ca87;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}
.next-date-glance-track {
    display: flex;
    gap: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(242, 202, 135, .4) transparent;
}
.next-date-glance-item {
    display: grid;
    flex: 0 0 min(100%, 380px);
    grid-template-columns: minmax(96px, auto) minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 14px;
    align-content: center;
    min-width: 0;
    min-height: 76px;
    padding: 5px 18px 7px 4px;
    scroll-snap-align: start;
}
.next-date-glance-item + .next-date-glance-item { border-left: 1px solid rgba(255, 255, 255, .12); padding-left: 18px; }
.next-date-glance-item time {
    grid-column: 1;
    grid-row: 1 / 4;
    align-self: center;
    color: #f2ca87;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    white-space: nowrap;
}
.next-date-venue { color: rgba(255, 241, 213, .7); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.next-date-glance-item strong { overflow: hidden; color: var(--text); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.next-date-details { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 680px) {
    .next-date-glance { width: calc(100% - 24px); margin-bottom: 12px; padding: 10px 12px 8px; }
    .next-date-glance-item { flex-basis: min(100%, 340px); grid-template-columns: minmax(90px, auto) minmax(0, 1fr); column-gap: 10px; min-height: 72px; padding-right: 12px; }
    .next-date-glance-item + .next-date-glance-item { padding-left: 12px; }
    .next-date-glance-item time { font-size: 22px; }
    .next-date-glance-item strong { font-size: 14px; }
}
