h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ShowclubVIP legacy look (docs/UI_BASELINE.md): dark stage, grey menu buttons, light titles. */
html, body {
    margin: 0;
    background: #000;
    color: #fff;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.page-title {
    margin: 32px 0 12px;
    font-size: 36px;
    font-weight: 300;
    color: #ddd;
}

.page-rule {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin: 0 0 24px;
}

.page-sub {
    font-size: 20px;
    color: #ddd;
    margin: 0 0 12px;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 92px;
    border-radius: 4px;
    border: 1px solid #5b6068;
    background: linear-gradient(#90959c, #7c8189);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
    color: #fff;
    font-family: inherit;
    font-size: 22px;
    text-decoration: none;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.menu-button:hover {
    background: linear-gradient(#9ca1a8, #858a92);
}

.menu-button:active {
    background: linear-gradient(#7c8189, #90959c);
}

.menu-button.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.menu-button.sys-admin {
    border-color: #8a3a3a;
    background: linear-gradient(#9a5a5a, #7e4545);
}

.keypad {
    max-width: 520px;
    margin: 0 auto;
}

.keypad-entry {
    display: grid;
    grid-template-columns: 72px 1fr 72px;
    align-items: center;
    margin-bottom: 12px;
}

.keypad-display {
    grid-column: 2;
    height: 64px;
    font-size: 44px;
    letter-spacing: 12px;
    text-align: center;
}

/* Backspace (Joe, 2026-10-01): beside the display, hidden until something has been typed. */
.keypad-backspace {
    grid-column: 3;
    height: 64px;
    border-radius: 4px;
    border: 1px solid #5b6068;
    background: linear-gradient(#90959c, #7c8189);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

.keypad-backspace.empty {
    visibility: hidden;
}

.keypad-message {
    margin: -4px 0 12px;
    color: #ff6b6b;
    font-size: 20px;
    text-align: center;
}

.keypad-keys {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.keypad-key {
    height: 96px;
    border-radius: 4px;
    border: 1px solid #5b6068;
    background: linear-gradient(#90959c, #7c8189);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 36px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

/* Grey like the menu buttons, not legacy's blue (the boss, 2026-09-30). */
.keypad-key:hover {
    background: linear-gradient(#9ca1a8, #858a92);
}

.keypad-key:active {
    background: linear-gradient(#7c8189, #90959c);
}

.keypad-key:disabled {
    opacity: 0.6;
}

/* IPE List (legacy EntertainerList.json). Bootstrap-3 button colours as the legacy page used them. */
.now-playing {
    margin: 8px 0 12px;
    font-size: 24px;
}

.ipe-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ipe-heading {
    font-size: 36px;
    font-weight: 300;
    margin-right: 6px;
}

.spacer {
    flex: 1;
}

.btn-view, .btn-danger, .btn-warning, .btn-info, .letter {
    min-height: 40px;
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.35);
    color: #fff;
    font: inherit;
    font-size: 15px;
    cursor: pointer;
}

.btn-view { background: linear-gradient(#8a8f96, #6f747b); }
.btn-view.active { background: linear-gradient(#5f646b, #4d5157); }
.btn-danger { background: linear-gradient(#e0645f, #c9302c); }
.btn-warning { background: linear-gradient(#f5b865, #ec971f); }
.btn-info { background: linear-gradient(#72c9e2, #31b0d5); }

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 16px 0;
    font-size: 20px;
}

.alphabet {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.letter {
    min-width: 42px;
    border-radius: 0;
    background: linear-gradient(#6b7077, #55595f);
}

.letter.active {
    background: linear-gradient(#428bca, #3071a9);
}

.ipe-rows, .names {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 40px;
}

.names {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ipe-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ipe-name, .name-cell {
    font-size: 24px;
}

.ipe-actions {
    display: flex;
    gap: 0;
}

.ipe-actions button {
    border-radius: 0;
    min-width: 60px;
}

.ipe-actions button:first-child { border-radius: 4px 0 0 4px; }
.ipe-actions button:last-child { border-radius: 0 4px 4px 0; }
.ipe-actions button:only-child { border-radius: 4px; }

.ipe-icon {
    width: 16px;
    height: 16px;
    margin-left: 5px;
    vertical-align: -1px;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ipe-icon.checked-in { stroke: #5cb85c; }
.ipe-icon.in-rotation { stroke: #d9534f; }
.ipe-icon.has-intro { stroke: #5bc0de; }
.ipe-icon.has-outro { stroke: #f0ad4e; }
.ipe-icon.unread-sms { stroke: #fff; }

.confirm-bar, .error-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 18px;
}

.confirm-bar { background: rgba(40, 40, 40, 0.9); }
.error-bar { background: rgba(160, 30, 30, 0.85); }

/* IPE fee panel (legacy ipe-list-expanded.png). */
.ipe-name-toggle {
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.ipe-name-toggle:hover {
    text-decoration: underline;
}

.ipe-cell {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fee-panel {
    max-width: 600px;
    padding: 8px 0 16px;
    font-size: 16px;
}

.fee-panel-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.fee-panel-actions a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.shift-times {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 2px 10px;
    margin: 0 0 12px;
}

.shift-times dt {
    font-weight: 700;
}

.shift-times dt::after {
    content: " :";
}

.shift-times dd {
    margin: 0;
}

.in-rotation-long { color: #62c462; }
.in-rotation-short { color: #ef6e6a; }

.fee-sheet {
    background: #2b2e33;
    border: 1px solid #3c4046;
    border-radius: 4px;
}

.fee-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 54px;
    padding: 6px 14px;
    border-bottom: 1px solid #3c4046;
    font-weight: 700;
}

.fee-row:last-child {
    border-bottom: 0;
}

.fee-misc .fee-label { color: #f0ad4e; }
.fee-credit .fee-label { color: #5cb85c; }

.fee-buttons {
    display: flex;
    gap: 8px;
}

.fee-buttons button {
    min-width: 40px;
}

.fee-input {
    min-height: 36px;
    padding: 4px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font: inherit;
}

.fee-note {
    flex: 1;
}

/* Legacy form pages (Edit Entertainer, Add IPE, Edit Administrator, Add Dance Tracker): two columns of labelled inputs, read-only ones grey. */
.edit-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 120px;
    max-width: 1100px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    font-weight: bold;
}

.field input:not([type="checkbox"]) {
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    color: #222;
    font: inherit;
    font-size: 26px;
    font-weight: normal;
}

.field input[readonly] {
    background: #999;
    border-color: #999;
    color: #fff;
}

.field small {
    font-weight: normal;
    font-size: 13px;
}

.switch {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    font-size: 20px;
    font-weight: normal;
    cursor: pointer;
}

.switch input {
    width: 28px;
    height: 28px;
}

.edit-actions {
    display: flex;
    gap: 8px;
    margin-top: 28px;
}

/* Administrator List and Edit Administrator. */
.admin-list {
    width: 100%;
    max-width: 1100px;
    border-collapse: collapse;
    font-size: 18px;
}

.admin-list th, .admin-list td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    text-align: left;
}

.admin-list a.btn-view {
    display: inline-block;
    text-decoration: none;
}

.access-head {
    margin: 28px 0 8px;
    font-size: 20px;
    font-weight: 400;
}

.access {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 420px));
    gap: 4px 40px;
}

/* Club Configuration (legacy config-*.png): one dark panel, big tabs, small music tabs, Save Settings at the bottom. */
.config {
    background: rgba(40, 42, 46, 0.95);
    border: 1px solid #1a1a1a;
    border-radius: 4px;
}

.config-tabs {
    display: flex;
    gap: 6px;
    padding: 14px 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.config-tab, .music-tab {
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
    background: none;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.config-tab {
    padding: 10px 16px;
    font-size: 24px;
}

.music-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.music-tab {
    padding: 10px 14px;
    font-size: 14px;
}

.config-tab.active, .music-tab.active {
    background: #3a3d42;
    border-color: rgba(255, 255, 255, 0.12);
}

.config-body {
    min-height: 380px;
    padding: 16px 30px;
}

.config-body .switch {
    margin: 6px 0;
}

.config-body .field.narrow {
    max-width: 480px;
    margin: 10px 0;
}

.config-body select {
    min-height: 44px;
    padding: 0 10px;
    border-radius: 3px;
    font: inherit;
    font-size: 18px;
}

.config-note {
    color: #bbb;
}

.config-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding: 14px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: #3a3d42;
}

.config-footer .error-bar {
    flex: 1;
    margin: 0;
}

.config-footer .notice {
    flex: 1;
    color: #8fe388;
}

.config-footer .save {
    min-height: 48px;
    padding: 0 20px;
    font-size: 18px;
}

.config .tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.config .tile {
    width: 130px;
    height: 96px;
    border: 1px solid #1a1a1a;
    border-radius: 3px;
    background: linear-gradient(#4a4d52, #34373b);
    color: #fff;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.config .tile.selected {
    background: #111;
    box-shadow: inset 0 0 0 2px #5bc0de;
}

.blocks-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 18px;
}

.blocks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.block {
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    background: #303236;
}

.block-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #4a4d52;
}

.block-head span:first-child {
    flex: 1;
}

.block-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    padding: 12px;
}

.block-fields input {
    font-size: 20px !important;
}

.change-log {
    font-size: 15px;
}

/* System Configuration › Genres: typo fixes. */
.typo-fix {
    display: block;
    margin: 6px 0;
    text-align: left;
}

.merge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    font-size: 18px;
}

/* System Configuration › License. */
.license-state {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 20px;
}

.license-pill {
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 16px;
}

.license-pill.ok { background: rgba(63, 174, 90, 0.2); color: #6fd88a; }
.license-pill.warn { background: rgba(224, 165, 38, 0.2); color: #f0c45a; }
.license-pill.bad { background: rgba(216, 38, 47, 0.25); color: #ff7b80; }

.license-club,
.license-machine {
    font-size: 16px;
    word-break: break-all;
}

.license-error { color: #ff7b80; }

/* Login selector: the vertical ShowclubVIP side logos (the legacy shell had them on every screen). */
.side-logo {
    position: fixed;
    top: 80px;
    height: min(560px, 60vh);
    pointer-events: none;
}

.side-logo.left {
    left: 60px;
}

.side-logo.right {
    right: 60px;
}

/* Keeps the login content clear of the side logos on screens narrower than a 1920 kiosk: no extra room needed at
   1920, up to 70 px a side at 1400. */
.beside-side-logos {
    padding: 0 max(0px, calc(220px - (100vw - 1300px) / 2));
}

@media (max-width: 1400px) {
    .side-logo {
        display: none;
    }

    .beside-side-logos {
        padding: 0;
    }
}

/* ======================================================================================================================
   Fresh look (Joe, 2026-10-01; docs/PLAN.md, Approved changes): same layout, restyled to tie in with the stage
   background. Mockup: https://claude.ai/artifact/Y1rVzzcYjpUtpbSNm2BvjQ. This layer sits last so it wins over the legacy
   styles above. Fonts are bundled because club servers can be offline: Barlow, SIL Open Font License (fonts/OFL.txt).
   ====================================================================================================================== */
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 500; font-display: swap; src: url("fonts/barlow-semi-condensed-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-display: swap; src: url("fonts/barlow-semi-condensed-600.woff2") format("woff2"); }

:root {
    --font: "Barlow", "Helvetica Neue", Arial, sans-serif;
    --font-condensed: "Barlow Semi Condensed", "Barlow", "Helvetica Neue", Arial, sans-serif;
    --red: #ff3b3b;
    --red-glow: rgba(255, 59, 59, 0.85);
    --red-fill: linear-gradient(180deg, #e0353a, #a3161b);
    --gunmetal: linear-gradient(180deg, #6a6f78 0%, #52565e 49%, #44474e 51%, #4e525a 100%);
    --gunmetal-pressed: linear-gradient(180deg, #44474e 0%, #52565e 100%);
    --edge: rgba(255, 255, 255, 0.16);
    --gloss: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.45), 0 12px 26px rgba(0, 0, 0, 0.55);
    --glow-ring: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 0 1px rgba(255, 59, 59, 0.4), 0 0 26px rgba(255, 40, 40, 0.4);
    --glass: linear-gradient(180deg, rgba(26, 26, 31, 0.84), rgba(11, 11, 14, 0.88));
    --glass-edge: rgba(255, 255, 255, 0.09);
    --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 20px 50px rgba(0, 0, 0, 0.55);
}

html, body {
    font-family: var(--font);
    color: #f2f2f4;
}

/* Titles: condensed, with a short glowing red underline instead of a full-width grey rule. */
.page-title, .ipe-heading {
    font-family: var(--font-condensed);
    font-weight: 500;
    color: #f2f2f4;
    letter-spacing: 0.01em;
}

.page-title {
    font-size: 42px;
}

/* The tablet app (Joe, 2026-10-09: "move everything on the page itself up a little"), either way up. */
:root.tablet-app .page-title {
    margin-top: 8px;
}

.page-rule {
    width: 56px;
    height: 3px;
    margin: 0 0 26px;
    border: 0;
    border-radius: 2px;
    background: var(--red);
    box-shadow: 0 0 12px var(--red-glow);
}

.page-sub {
    color: #c4c4cc;
    font-size: 19px;
}

/* Big menu buttons: glossy gunmetal, still grey; a red glow on touch. Plain labels, no icons. */
.menu {
    gap: 18px;
}

.menu-button {
    min-height: 96px;
    border-radius: 10px;
    border: 1px solid var(--edge);
    background: var(--gunmetal);
    box-shadow: var(--gloss);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.menu-button:hover {
    background: var(--gunmetal);
    border-color: rgba(255, 92, 92, 0.8);
    box-shadow: var(--glow-ring);
}

.menu-button:active {
    background: var(--gunmetal-pressed);
}

.menu-button.sys-admin {
    border-color: rgba(255, 92, 92, 0.55);
    background: linear-gradient(180deg, #8a3d40 0%, #6f2f32 49%, #5f2629 51%, #6a2c2f 100%);
}

/* PIN keypad: dots that light red, glossy keys. */
.keypad-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    letter-spacing: 0;
}

.pin-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.55);
}

.pin-dot.on {
    background: var(--red);
    border-color: #ff6b6b;
    box-shadow: 0 0 14px rgba(255, 59, 59, 0.9);
}

.keypad-key, .keypad-backspace {
    border-radius: 12px;
    border: 1px solid var(--edge);
    background: var(--gunmetal);
    box-shadow: var(--gloss);
    font-family: var(--font);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.keypad-key {
    font-size: 40px;
}

.keypad-key:hover, .keypad-backspace:hover {
    background: var(--gunmetal);
    border-color: rgba(255, 92, 92, 0.8);
}

.keypad-key:active, .keypad-backspace:active {
    background: var(--gunmetal-pressed);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 22px rgba(255, 40, 40, 0.45);
}

.keypad-message {
    color: #ff7b7b;
}

/* Buttons: gunmetal for views, glossy colour for PULL / SKIP / TOP (same colours as today). */
.btn-view, .btn-danger, .btn-warning, .btn-info, .letter {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 16px rgba(0, 0, 0, 0.45);
    font-family: var(--font);
    font-weight: 500;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
}

.btn-view { background: var(--gunmetal); }
.btn-view:hover { border-color: rgba(255, 92, 92, 0.8); }
.btn-view.active { background: var(--red-fill); border-color: rgba(255, 92, 92, 0.8); }
.btn-danger { background: linear-gradient(180deg, #e04545, #a51d1d); }
.btn-warning { background: linear-gradient(180deg, #eea03a, #b4650b); }
.btn-info { background: linear-gradient(180deg, #3d9ad9, #1c5f94); }

.ipe-actions {
    border-radius: 9px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.ipe-actions button {
    font-family: var(--font-condensed);
    font-weight: 600;
    letter-spacing: 0.08em;
    box-shadow: none;
}

/* A-Z bar: one rounded strip. */
.alphabet {
    flex-wrap: nowrap;
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.letter {
    flex: 1;
    min-width: 0;
    border: 0;
    border-right: 1px solid rgba(0, 0, 0, 0.35);
    border-radius: 0;
    box-shadow: none;
    background: linear-gradient(180deg, #4f535b, #3a3d43);
}

.letter:last-child {
    border-right: 0;
}

.letter:hover, .letter.active {
    background: var(--red-fill);
}

/* IPE lists on a dark glass panel; names in condensed capitals. */
.ipe-rows, .names {
    padding: 10px 22px 18px;
    border-radius: 14px;
    border: 1px solid var(--glass-edge);
    background: var(--glass);
    box-shadow: var(--glass-shadow);
    gap: 0 34px;
}

.ipe-row, .names > * {
    min-height: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.names > * {
    display: flex;
    align-items: center;
}

.ipe-name, .name-cell, .ipe-name-toggle {
    font-family: var(--font-condensed);
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ipe-name-toggle:hover {
    color: #ff7b7b;
    text-decoration: none;
}

.legend {
    color: #cfcfd6;
    font-size: 17px;
}

.ipe-icon.checked-in { stroke: #4cd06a; }
.ipe-icon.in-rotation { stroke: #ff5252; }
.ipe-icon.has-intro { stroke: #4fb0f0; }
.ipe-icon.has-outro { stroke: #f5a63a; }

.now-playing {
    font-size: 20px;
}

/* Fee panel: grouped, with a clear total. */
.fee-sheet {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.fee-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-weight: 600;
}

.fee-misc .fee-label { color: #f5a63a; }
.fee-credit .fee-label { color: #4cd06a; }

.fee-input, .field input:not([type="checkbox"]), .config-body select {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: #f2f2f4;
}

.field input[readonly] {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
    color: #b9b9c2;
}

.field {
    color: #c9c9d0;
    font-weight: 500;
}

.confirm-bar {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(20, 20, 24, 0.92);
}

.confirm-bar, .error-bar {
    border-radius: 10px;
}

/* Club Configuration: a glass panel, red-underlined tabs, glossy genre tiles that light red when on. */
.config {
    border-radius: 14px;
    border: 1px solid var(--glass-edge);
    background: var(--glass);
    box-shadow: var(--glass-shadow);
}

.config-tabs {
    gap: 4px;
    padding: 0 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.config-tab {
    height: 58px;
    padding: 0 18px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: #b9b9c2;
    font-family: var(--font-condensed);
    font-size: 21px;
    font-weight: 500;
}

.music-tab {
    border: 0;
    border-radius: 8px 8px 0 0;
    color: #b0b0b9;
    font-family: var(--font-condensed);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.config-tab:hover, .music-tab:hover {
    color: #fff;
}

.config-tab.active {
    background: linear-gradient(180deg, rgba(255, 59, 59, 0), rgba(255, 59, 59, 0.1));
    border-bottom-color: var(--red);
    color: #fff;
}

.music-tab.active {
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 -2px 0 var(--red);
    color: #fff;
}

.music-tabs {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.config-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: none;
}

.config-footer .save, .btn-danger.save {
    border-color: rgba(255, 92, 92, 0.8);
    background: var(--red-fill);
    box-shadow: 0 0 24px rgba(255, 40, 40, 0.4);
    font-weight: 600;
}

.config .tile {
    height: 84px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, #5e636b 0%, #4a4e55 49%, #3e4147 51%, #474a51 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 18px rgba(0, 0, 0, 0.45);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
}

.config .tile.selected {
    border-color: rgba(255, 110, 110, 0.9);
    background: linear-gradient(180deg, #e0353a 0%, #b91d22 49%, #a3161b 51%, #b31d22 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 22px rgba(255, 40, 40, 0.45);
}

.block {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.32);
}

/* Menus with more than a few buttons sit in two columns, as in legacy, so nothing needs scrolling (Joe, 2026-10-01). */
.menu.two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 26px;
}

.menu.two-columns .menu-button.sys-admin {
    grid-column: 1 / -1;
}

/* Touch time picker (Joe, 2026-10-01): big arrows instead of typing. */
.time-picker {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tp-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.tp-step, .tp-half {
    min-width: 64px;
    min-height: 44px;
    border-radius: 8px;
    border: 1px solid var(--edge);
    background: var(--gunmetal);
    box-shadow: var(--gloss);
    color: #fff;
    font: inherit;
    font-size: 18px;
    cursor: pointer;
}

.tp-step:active, .tp-half:active {
    background: var(--gunmetal-pressed);
}

.tp-value {
    min-width: 64px;
    padding: 4px 0;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.5);
    font-size: 30px;
    font-weight: 600;
    text-align: center;
}

.tp-colon {
    font-size: 30px;
    font-weight: 600;
}

.tp-ampm {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-left: 8px;
}

.tp-half.on {
    border-color: rgba(255, 92, 92, 0.8);
    background: var(--red-fill);
}

/* ---- Dance tracker (legacy dancetracker.html): a button per dance, in legacy's colours ---- */
.tracker-ipe {
    margin: 0 0 18px;
    padding: 12px 16px 16px;
    border: 1px solid var(--glass-edge);
    border-radius: 10px;
    background: var(--glass);
    box-shadow: var(--glass-shadow);
}

.tracker-name {
    margin: 0 0 10px;
    font-family: var(--font-condensed);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.tracker-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.tracker-button {
    min-height: 60px;
    border: 1px solid var(--edge);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font);
    font-size: 1.15rem;
    font-weight: 600;
    box-shadow: var(--gloss);
    cursor: pointer;
}

.tracker-button:active { filter: brightness(0.85); }
.tracker-button:disabled { opacity: 0.6; cursor: default; }
.tracker-button.dance-chair { background: linear-gradient(180deg, #3d7fe0, #2457a8); }
.tracker-button.dance-couch { background: linear-gradient(180deg, #34b6d6, #1d7f99); }
.tracker-button.dance-vip { background: var(--gunmetal); }
.tracker-button.dance-private { background: var(--red-fill); }
.tracker-button.dance-misc { background: linear-gradient(180deg, #f0a03a, #b8691a); }
.tracker-total { margin-left: 6px; }

.tracker-misc-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
}

.tracker-misc {
    width: min(720px, 94vw);
    padding: 20px 24px;
    border: 1px solid var(--glass-edge);
    border-radius: 12px;
    background: var(--glass);
    box-shadow: var(--glass-shadow);
    text-align: center;
}

.tracker-misc-title { margin: 0 0 8px; font-family: var(--font-condensed); font-size: 1.5rem; }
.tracker-misc-amount { margin: 6px 0 14px; font-size: 3rem; font-weight: 700; }
.tracker-misc-row { display: flex; justify-content: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }

.tracker-step {
    min-width: 76px;
    min-height: 52px;
    border: 1px solid var(--edge);
    border-radius: 8px;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    box-shadow: var(--gloss);
}

.tracker-step.up { background: linear-gradient(180deg, #3fae5a, #23753a); }
.tracker-step.down { background: var(--red-fill); }
.tracker-misc-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

/* ---- The IPE's Rent screen at the bill collector (legacy BillCollector Home/Pay) ---- */
.rent {
    max-width: 760px;
    margin: 0 auto;
    padding: 18px 24px 22px;
    border: 1px solid var(--glass-edge);
    border-radius: 12px;
    background: var(--glass);
    box-shadow: var(--glass-shadow);
    text-align: center;
}

.rent-intro { margin: 0 0 14px; font-size: 1.15rem; }
.rent-options { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 1.6rem; }
.rent-owed, .rent-credit { margin: 14px 0; font-family: var(--font-condensed); font-size: 3rem; font-weight: 600; }
.rent-owed span { color: #ee5f5b; }
.rent-credit { color: #62c462; }
.rent-status { font-size: 1.2rem; color: var(--red); }
.rent-actions { display: flex; justify-content: center; gap: 14px; margin: 14px 0 20px; flex-wrap: wrap; }
.rent-actions button { min-width: 260px; min-height: 64px; font-size: 1.4rem; }
.rent-list-head { margin: 8px 0 6px; text-align: left; }
.rent-fees { margin: 0; padding: 0; list-style: none; text-align: left; }

.rent-fees li {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    border: 1px solid var(--glass-edge);
    border-radius: 6px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.04);
    font-weight: 600;
}

.rent-fees li.rent-none { font-weight: 400; }

/* Club Configuration › Change Log: scrolls inside the tab, headings stay put (touch-friendly). */
.change-log-scroll {
    max-height: 56vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    border: 1px solid var(--glass-edge);
    border-radius: 8px;
}

.change-log-scroll .change-log { margin: 0; }

.change-log-scroll .change-log thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #1c1c21;
}

/* Club Configuration › About: legacy's version box. */
.about-box {
    min-height: 200px;
    padding: 14px 16px;
    border: 1px solid var(--glass-edge);
    border-radius: 8px;
}
.change-log-scroll .change-log { width: 100%; }
.change-log-scroll .change-log td:first-child, .change-log-scroll .change-log td:nth-child(2) { white-space: nowrap; }

/* ---- Scrip Coupon (legacy ClubMoney Home/Print) ---- */
.scrip { max-width: 640px; margin: 0 auto; text-align: center; }
.scrip-logs { width: 100%; min-height: 56px; margin-bottom: 14px; font-size: 1.2rem; }
.scrip-head { font-size: 1.3rem; margin: 8px 0 16px; }
.scrip-row { display: grid; grid-template-columns: 110px 64px 1fr 64px; gap: 10px; align-items: center; margin-bottom: 10px; }
.scrip-label { font-size: 1.6rem; font-weight: 700; text-align: right; padding-right: 8px; }
.scrip-quantity { min-height: 56px; font-size: 1.5rem; text-align: center; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(0, 0, 0, 0.5); color: #f2f2f4; }
.scrip-total { margin: 18px 0; font-family: var(--font-condensed); font-size: 2.6rem; }
.scrip-request, .scrip-print { width: 100%; min-height: 60px; margin-top: 10px; font-size: 1.3rem; }
.scrip-rid { font-family: var(--font-condensed); font-size: 2rem; }
.scrip-clear { background: none; border: none; color: var(--red); font-size: 1.8rem; cursor: pointer; }
.scrip-dialog input { width: 100%; min-height: 60px; margin: 10px 0 16px; font-size: 1.8rem; text-align: center; letter-spacing: 0.3em; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(0, 0, 0, 0.5); color: #f2f2f4; }
.scrip-dialog-note { margin: 4px 0; color: var(--bs-secondary-color, #c8c8d0); }
.scrip-actions { display: flex; justify-content: flex-end; margin-bottom: 10px; }

.redeem-credit-word { color: #e31f19; font-weight: 700; }

/* ---- SMS (legacy SMS.json: IPE and Guest lists, message dialog, Message Board) ---- */
.sms-search { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.sms-search .field { flex: 1 1 220px; }
.sms-clear, .sms-add { min-width: 60px; min-height: 48px; font-size: 1.4rem; }
.sms-create { display: block; width: min(560px, 100%); min-height: 56px; margin: 6px auto 12px; font-size: 1.3rem; }
.sms-list { max-height: calc(100vh - 330px); }
.sms-pick { width: 56px; text-align: center; }
.sms-pick input { width: 26px; height: 26px; }
.sms-row { cursor: pointer; }
.sms-row.picked { background: rgba(227, 31, 25, 0.18); }
.sms-dialog { text-align: left; }
.sms-to { max-height: 150px; overflow-y: auto; margin-bottom: 10px; }
.sms-to-label { display: block; margin-bottom: 6px; font-weight: 600; }
.sms-chip { display: inline-flex; align-items: center; gap: 6px; margin: 0 6px 6px 0; padding: 4px 10px; border-radius: 6px; background: var(--gunmetal); font-size: 1.15rem; }
.sms-chip-remove { background: none; border: none; color: #fff; font-size: 1rem; cursor: pointer; }
.sms-help { margin: 0; color: #ee5f5b; font-size: 0.95rem; }
.sms-message-label { display: block; margin-bottom: 6px; font-weight: 600; }
.sms-message { width: 100%; box-sizing: border-box; padding: 10px; resize: none; font: inherit; font-size: 1.15rem; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(0, 0, 0, 0.5); color: #f2f2f4; }
.sms-results { margin-bottom: 8px; }
.sms-results .sms-failed td:last-child { color: #ee5f5b; }
.sms-results .sms-sent td:last-child { color: #62c462; }
.sms-guest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-bottom: 12px; }
.sms-board { max-width: 1100px; margin: 0 auto; border: 1px solid var(--glass-edge); border-radius: 12px; background: var(--glass); box-shadow: var(--glass-shadow); overflow: hidden; }
.sms-board-head { margin: 0; padding: 12px 18px; font-size: 1.3rem; border-bottom: 1px solid var(--glass-edge); }
.sms-board .change-log-scroll { max-height: calc(100vh - 290px); }
.sms-board-list { margin: 0; padding: 0; list-style: none; }
.sms-board-row { display: flex; gap: 14px; padding: 12px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.sms-unread-dot { width: 22px; color: #5bc0de; font-size: 1.2rem; }
.sms-board-name { margin: 0 0 4px; font-size: 1.4rem; font-weight: 400; }
.sms-board-row.unread .sms-board-name { font-weight: 700; }
.sms-board-name a { color: #fff; }
.sms-board-meta { color: #b9b9c2; margin-bottom: 4px; }
.sms-board-meta u { color: #fff; }
.sms-conversation-head { display: flex; justify-content: space-between; align-items: center; }
.sms-conversation-head h2 { margin: 0; font-size: 1.3rem; }
.sms-back { color: #fff; font-weight: 600; }
.sms-bubbles { display: flex; flex-direction: column; gap: 10px; padding: 14px 18px; max-height: calc(100vh - 330px); }
.sms-bubble { max-width: 75%; padding: 10px 14px; border-radius: 12px; }
.sms-bubble p { margin: 0 0 6px; white-space: pre-wrap; font-size: 1.1rem; }
.sms-bubble time { font-size: 0.85rem; color: #d0d0d8; }
.sms-bubble.sent { align-self: flex-end; background: rgba(227, 31, 25, 0.35); }
.sms-bubble.received { align-self: flex-start; background: rgba(255, 255, 255, 0.1); }
.sms-reply { display: flex; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--glass-edge); }
.sms-reply-input { flex: 1; min-height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(0, 0, 0, 0.5); color: #f2f2f4; cursor: pointer; }
.sms-open { min-width: 110px; }
.sms-list .admin-list { max-width: none; }

/* ---- Music (legacy TrackManagement.html / SpecialManagement.html) ---- */
.music-scroll { max-height: calc(100vh - 300px); }
.music-grid { max-width: none; font-size: 15px; }
.music-grid th, .music-grid td { padding: 7px 8px; }
.music-sort { cursor: pointer; white-space: nowrap; user-select: none; }
.music-sort.sorted { color: #ff6b6b; }
.music-filters th { padding-top: 0; }
.music-filter, .music-grid input:not([type="checkbox"]), .music-grid select { width: 100%; box-sizing: border-box; min-height: 36px; padding: 0 6px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(0, 0, 0, 0.5); color: #f2f2f4; font: inherit; }
.music-grid input[type="checkbox"] { width: 22px; height: 22px; }
.music-row { cursor: pointer; }
.music-row.editing { background: rgba(227, 31, 25, 0.15); }
.music-actions { white-space: nowrap; }
.music-actions button { min-width: 44px; min-height: 36px; }
.music-pager { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.music-pager button { min-width: 52px; min-height: 40px; }
.music-count { margin-left: 10px; color: #c9c9d0; }
.menu .music-tracks, .menu .music-initialize { font: inherit; cursor: pointer; }
.music-notice, .scrip-notice { margin-bottom: 10px; padding: 10px 14px; border-radius: 6px; background: rgba(40, 120, 60, 0.85); }
.music-grid td:nth-last-child(2), .music-grid td:nth-last-child(3) { white-space: nowrap; }

/* ---- Reports (legacy Reports area) ---- */
.report-form { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin: 30px auto; }
.report-form input { min-height: 52px; font-size: 1.3rem; }
.report-form button { min-height: 80px; font-size: 1.4rem; }
.report-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, 0.15); margin-bottom: 8px; }
.report-title { margin: 6px 0; font-size: 1.6rem; }
.report-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.report-actions button { min-height: 70px; font-size: 1.2rem; }
.report-body { max-width: 1100px; margin: 0 auto; padding-bottom: 30px; }
.report-body h4 { margin: 6px 0; font-weight: 500; }
.report-times { display: flex; gap: 30px; flex-wrap: wrap; }
.report-table { margin: 6px 0 12px; }
.report-table caption { text-align: left; padding: 6px 0; }
.report-ipe { margin: 10px 0 18px; }
.report-rent { text-align: right; font-weight: 600; margin-bottom: 14px; }
@media print {
    .noprint, .topbar, header, nav { display: none !important; }
    body, .report-body { background: #fff !important; color: #000 !important; }
    .report-body * { color: #000 !important; }
}

/* ---- Easy Button (legacy easybutton.html) ---- */
.easy { display: flex; flex-direction: column; align-items: center; justify-content: space-between; min-height: calc(100vh - 140px); text-align: center; }
.easy-name { margin: 20px 0; font-family: var(--font-condensed); font-size: 4rem; }
.easy-button { width: min(60vh, 80vw); aspect-ratio: 1; border-radius: 50%; border: 6px solid rgba(255, 255, 255, 0.25); background: radial-gradient(circle at 35% 30%, #ff6b6b, #c9302c 55%, #7d1512); color: #fff; font-size: 3rem; font-weight: 700; box-shadow: 0 0 40px rgba(227, 31, 25, 0.6); cursor: pointer; }
.easy-button:active { transform: scale(0.97); }
.easy-next { font-size: 2.4rem; }
.player-time { margin-left: 10px; font-variant-numeric: tabular-nums; color: #ff8080; }

/* ---- Restart controls (admin menu) ---- */
.restart-top { position: relative; }
.restart-strip { display: flex; align-items: center; justify-content: center; gap: 10px; }
.restart-strip button {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 110px; min-height: 48px; padding: 3px 14px; font-size: 15px; line-height: 1.15;
}
/* Under the Android app's window handle (MainLayout.razor.css): shorter, so the top bar keeps its height. */
:root.tablet-app .restart-strip button { min-height: min(48px, calc(56px - var(--app-handle, 0px))); }
.restart-word { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
/* The confirm (and the note after) drops down under the top-bar buttons, over the page. */
.restart-top .restart-pop {
    position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: 10px; width: max-content; max-width: 90vw; margin: 0;
    padding: 12px 16px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); font-size: 16px; z-index: 20;
}
.restart-top .confirm-bar.restart-pop { background: rgba(28, 28, 32, 0.98); border: 1px solid rgba(255, 59, 59, 0.6); }
.restart-top .restart-pop button { min-width: 80px; min-height: 42px; }

/* Report dates: tap anywhere in the box for the calendar; the calendar button shows on the dark theme and is big enough to touch. */
.report-picker { color-scheme: dark; cursor: pointer; }
.report-picker::-webkit-calendar-picker-indicator { display: none; }
.report-picker-row { display: flex; gap: 8px; }
.report-picker-row .report-picker { flex: 1; }
.report-calendar { min-width: 64px; border: 1px solid rgba(255, 92, 92, 0.6); border-radius: 8px; background: var(--red-fill); color: #fff; font-size: 2rem; cursor: pointer; }

/* ---- IPE List › Full List (legacy: names in columns; tap one for EDIT INFO / CHECK IN) ---- */
.full-names { gap: 4px 40px; align-items: start; }
.full-name .name-cell { gap: 6px; }
.full-name-toggle { background: none; border: none; padding: 6px 0; color: #f2f2f4; cursor: pointer; text-align: left; font: inherit; text-transform: inherit; letter-spacing: inherit; }
.full-name.open .full-name-toggle { text-decoration: underline; }
.full-name-actions { display: flex; gap: 8px; margin: 2px 0 8px; }
.full-name-actions .btn-view { text-decoration: none; display: inline-block; min-height: 34px; padding: 6px 12px; font-size: 13px; }
.names > .full-name { display: block; }
.full-name-actions .btn-view { display: inline-flex; align-items: center; justify-content: center; height: 36px; min-height: 0; line-height: 1; padding: 0 14px; box-sizing: border-box; }

/* ---- Specials & Rotation: drag whole rows (mouse: move; touch: hold, then drag), a big drop zone ---- */
.rows .row:not(.end-zone):not(.empty) { cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.rows .row.dragging { opacity: 0.45; }
/* The whole playlist box takes a drop (Joe, 2026-10-02, "like dragging into VirtualDJ"): a red line shows where it lands. */
.rows.queue.drop-armed { box-shadow: inset 0 0 0 2px rgba(255, 77, 77, 0.55); }
.drop-line { position: fixed; z-index: 99; height: 3px; pointer-events: none; border-radius: 2px; background: #ff3b3b; box-shadow: 0 0 10px rgba(255, 59, 59, 0.9); }
.drop-line::before { content: ""; position: absolute; left: -5px; top: -4px; width: 11px; height: 11px; border-radius: 50%; background: #ff3b3b; }
body.playlist-dragging, body.playlist-dragging * { cursor: grabbing !important; }
.drag-ghost { position: fixed; z-index: 100; pointer-events: none; padding: 8px 14px; border-radius: 8px; background: rgba(20, 20, 24, 0.92); border: 1px solid #ff4d4d; color: #fff; font-weight: 600; max-width: 420px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5); }

/* Scrollbars in the club look (Joe, 2026-10-02): a slim red thumb on a dark track, everywhere. */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.04); border-radius: 6px; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #e0353a, #a3161b); border-radius: 6px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #ff4d4d, #c4161c); border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }
@supports not selector(::-webkit-scrollbar) {
    * { scrollbar-color: #c4161c rgba(255, 255, 255, 0.04); scrollbar-width: thin; }
}

/* System Configuration › Duplicates (Joe, 2026-10-02). */
.dup-group { margin: 14px 0; padding: 10px 14px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; background: rgba(0, 0, 0, 0.25); }
.dup-group.skipped { opacity: 0.45; }
.dup-group header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; color: #c9c9d0; }
.dup-table { width: 100%; border-collapse: collapse; }
.dup-table th { padding: 6px 8px; text-align: left; color: #9a9aa4; font-size: 13px; font-weight: 500; }
.dup-table td { padding: 8px; border-top: 1px solid rgba(255, 255, 255, 0.06); vertical-align: middle; }
.dup-table tr.keep td { background: rgba(47, 179, 79, 0.1); }
.dup-table tr.clean td { background: rgba(255, 59, 59, 0.08); }
.dup-table input[type="radio"], .dup-table input[type="checkbox"] { width: 22px; height: 22px; accent-color: #e0353a; }
.dup-name { color: #fff; }
.dup-path { color: #8a8a94; font-size: 12px; word-break: break-all; }
.dup-tags .tag { display: inline-block; margin: 2px 4px 2px 0; padding: 1px 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.12); font-size: 12px; }
.dup-tags .tag.off { background: rgba(255, 59, 59, 0.25); }
.dup-tags .tag.similar { background: rgba(255, 196, 0, 0.22); }
.dup-footer { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 12px; padding: 12px 0; background: linear-gradient(180deg, rgba(16, 16, 20, 0), rgba(16, 16, 20, 0.95) 30%); }
.dup-review { margin: 10px 0 14px; padding-left: 20px; line-height: 1.7; }
.dup-actions { display: flex; gap: 12px; }
.dup-problem { margin-top: 4px; color: #ffd0d0; }
.link-button { border: 0; background: none; color: #ff6b6b; font: inherit; text-decoration: underline; cursor: pointer; }
.dup-footer input[type="radio"] { width: 22px; height: 22px; accent-color: #e0353a; }

/* Club Configuration › Rent (Joe, 2026-10-04): the shows table takes typed amounts like the other fields. */
.rent-shows input {
    width: 100%;
    max-width: 140px;
    padding: 8px 10px;
    font-size: 18px;
    background: #0f0f11;
    color: #fff;
    border: 1px solid #44474d;
    border-radius: 4px;
}

.config-body .blocks-head { margin-top: 22px; }
.rent-shows td:first-child { font-weight: 600; white-space: nowrap; }
.rent-slot .block-fields { align-items: end; }


/* Portrait tablets (Joe, 2026-10-09): nothing runs off the side. Landscape and the kiosk are unchanged. */
/* Below a 1280-wide landscape tablet too (own audit round 31: at 1024 x 768 tabs and fields ran off): */
@media (max-width: 1279px) {
    .config-tabs { flex-wrap: wrap; }
    .config-tab { height: 48px; padding: 0 12px; font-size: 19px; }
    .config-body { padding: 16px; }
    .config-body input:not([type="checkbox"]):not([type="radio"]), .config-body select, .config-body textarea { max-width: 100%; box-sizing: border-box; }
    .music-grid { display: block; overflow-x: auto; }
    .letter { padding-left: 0; padding-right: 0; font-size: 15px; }
    /* Restart sits in the top bar's first row: its confirm stays on the screen. */
    .restart-top .restart-pop { flex-wrap: wrap; max-width: calc(100vw - 32px); }
    /* Two-column forms (Club Configuration, Add IPE...): the 120 px gap was for wide screens; the boxes fit their column. */
    .edit-form { column-gap: 28px; }
    .edit-form > *, .field { min-width: 0; }
    .field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea { width: 100%; min-width: 0; box-sizing: border-box; }
    .panel select, .panel input:not([type="checkbox"]):not([type="radio"]) { min-width: 0; max-width: 100%; box-sizing: border-box; }
}

/* A short landscape screen in the tablet app (Joe, 2026-10-10: on a 16:9 tablet the Main Menu ran off the bottom): menu
   buttons a little lower so a whole menu fits without scrolling. The site and the kiosk are unchanged. */
@media (orientation: landscape) and (max-height: 820px) {
    :root.tablet-app .menu { gap: 12px; }
    :root.tablet-app .menu-button { min-height: 76px; }
}

/* A tablet held upright (Joe, 2026-10-09: "use more of the screen real-estate vertically"): bigger menu buttons, keypads,
   boxes and tabs fill the height and are easier to tap. Portrait under 1000 px only: never landscape, the kiosk or the
   1080-wide Rotation TVs. */
@media (orientation: portrait) and (max-width: 1000px) {
    .page-title { margin-top: 20px; }
    .menu { gap: 22px; }
    .menu-button { min-height: clamp(120px, 13vh, 170px); font-size: 28px; }
    .keypad { max-width: 640px; }
    .keypad-key { height: clamp(110px, 12vh, 150px); font-size: 50px; }
    .keypad-display, .keypad-backspace { height: 84px; }
    .pin-dot { width: 28px; height: 28px; }
    .field { gap: 6px; font-size: 17px; }
    .field input:not([type="checkbox"]):not([type="radio"]), .field select { min-height: 60px; font-size: 28px; }
    .config-tab { height: 58px; font-size: 21px; }
    .music-tab { padding: 14px 16px; font-size: 17px; }
    .tp-step, .tp-half { min-width: 80px; min-height: 58px; font-size: 22px; }
    .tp-value { min-width: 80px; font-size: 38px; }
    .tp-colon { font-size: 38px; }
}

/* Specials & Rotation rows: the browser scrolls them up and down only, so a sideways finger is always a drag
   (playlist-drag.js; Joe, 2026-10-09). */
.rows .row:not(.end-zone) { touch-action: pan-y; }
