/* =====================================================================
   Gargoyle Studios: depth. Loaded last, after the palettes.
   Everything here is built from the colour tokens, so every palette and
   both themes get the same stone-and-stage-light depth: layered shadows,
   edge light on every raised surface, recessed inputs, real footswitches,
   a glass top bar, and 3D lift on the cards that tilt.
   Looping motion stays compositor-only (transform and opacity).
   ===================================================================== */

/* ---- Depth tokens: a key light above and slightly left, soft ambient shade ---- */
:root {
    --shade: color-mix(in srgb, var(--amp) 22%, transparent);
    --shade-deep: color-mix(in srgb, var(--amp) 38%, transparent);
    --edge-hi: rgba(255, 255, 255, .75);
    --edge-lo: color-mix(in srgb, var(--amp) 9%, transparent);
    --rim: color-mix(in srgb, var(--accent) 10%, transparent);
    --glass: color-mix(in srgb, var(--surface) 86%, transparent);
    --elev-1:
        inset 0 1px 0 var(--edge-hi),
        inset 0 -1px 0 var(--edge-lo),
        0 1px 2px color-mix(in srgb, var(--amp) 10%, transparent),
        0 10px 24px -14px var(--shade),
        0 26px 48px -30px var(--shade-deep);
    --elev-2:
        inset 0 1px 0 var(--edge-hi),
        inset 0 -1px 0 var(--edge-lo),
        0 2px 4px color-mix(in srgb, var(--amp) 12%, transparent),
        0 18px 36px -16px var(--shade),
        0 40px 70px -36px var(--shade-deep);
    --elev-3:
        inset 0 1px 0 var(--edge-hi),
        0 4px 8px color-mix(in srgb, var(--amp) 14%, transparent),
        0 30px 60px -20px var(--shade-deep),
        0 60px 120px -40px var(--shade-deep);
    --well: inset 0 2px 5px color-mix(in srgb, var(--amp) 12%, transparent), inset 0 1px 0 color-mix(in srgb, var(--amp) 4%, transparent);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --shade: rgba(0, 0, 0, .55);
        --shade-deep: rgba(0, 0, 0, .8);
        --edge-hi: rgba(255, 255, 255, .07);
        --edge-lo: rgba(0, 0, 0, .35);
        --rim: color-mix(in srgb, var(--accent) 14%, transparent);
        --well: inset 0 2px 6px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(0, 0, 0, .3);
    }
}
:root[data-theme="dark"] {
    --shade: rgba(0, 0, 0, .55);
    --shade-deep: rgba(0, 0, 0, .8);
    --edge-hi: rgba(255, 255, 255, .07);
    --edge-lo: rgba(0, 0, 0, .35);
    --rim: color-mix(in srgb, var(--accent) 14%, transparent);
    --well: inset 0 2px 6px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(0, 0, 0, .3);
}

/* ---- The room: two stage lights from above, the staves, a darker floor ---- */
body {
    background:
        radial-gradient(900px 600px at 18% -10%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%),
        radial-gradient(900px 600px at 82% -10%, color-mix(in srgb, var(--teal) 10%, transparent), transparent 70%),
        radial-gradient(1100px 520px at 50% -160px, var(--bg-glow), transparent 70%),
        linear-gradient(to bottom, transparent 55%, color-mix(in srgb, var(--amp) 16%, transparent)),
        repeating-linear-gradient(to bottom,
            transparent 0 64px,
            var(--staff) 64px 65px, transparent 65px 72px,
            var(--staff) 72px 73px, transparent 73px 80px,
            var(--staff) 80px 81px, transparent 81px 88px,
            var(--staff) 88px 89px, transparent 89px 96px,
            var(--staff) 96px 97px, transparent 97px 150px),
        var(--bg);
    background-attachment: fixed;
}

/* ---- Top bar: brushed steel under glass, a gloss line, screws at both ends ---- */
.topbar {
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02) 46%, transparent 52%),
        radial-gradient(circle at 11px 50%, #c9ced2 0 2.2px, #5f666b 2.4px 3.4px, transparent 3.7px),
        radial-gradient(circle at calc(100% - 11px) 50%, #c9ced2 0 2.2px, #5f666b 2.4px 3.4px, transparent 3.7px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px),
        linear-gradient(to bottom, var(--amp-hi), var(--amp));
    border-bottom: 2px solid var(--brass);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .12),
        inset 0 -1px 0 rgba(0, 0, 0, .5),
        0 1px 0 color-mix(in srgb, var(--brass) 45%, transparent),
        0 14px 34px -14px rgba(0, 0, 0, .75);
}
.brand svg { width: 30px; height: 30px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .6)) drop-shadow(0 0 8px color-mix(in srgb, var(--mark) 55%, transparent)); }
.brand:hover svg { transform: translateY(-2px) scale(1.08); }
.topbar .brand { text-shadow: 0 1px 0 rgba(0, 0, 0, .6), 0 0 18px color-mix(in srgb, var(--spark) 25%, transparent); }
/* Nav links: pressed into the panel when current, with a little LED underneath. */
.nav-main a { position: relative; transition: color .15s, background-color .15s, box-shadow .15s; }
.nav-main a[aria-current="page"] {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, .5), inset 0 -1px 0 rgba(255, 255, 255, .06);
}
.nav-main a[aria-current="page"]::after {
    content: ""; position: absolute; left: 50%; bottom: 2px; width: 14px; height: 2px; margin-left: -7px; border-radius: 2px;
    background: var(--spark); box-shadow: 0 0 8px var(--spark);
}
.theme-toggle, .palette-toggle {
    background: linear-gradient(to bottom, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 2px 4px rgba(0, 0, 0, .5);
}
.topbar .ghost { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 2px 4px rgba(0, 0, 0, .4); }
.nav-user .me { border-radius: 999px; }
.nav-user > a { white-space: nowrap; }

/* ---- Raised surfaces: every card is a slab with a lit top edge ---- */
.card, .form-card, .feature, .role, .steps-section .steps li, .world-facts li, .spot-card, .musician-card,
.goal-list li, .faq details, .medal, .event, .attn, .people-list li, .takes-list li, .viewas-card, .group-list a, .latency-item, .crew-list li {
    box-shadow: var(--elev-1);
}
.card, .form-card, .feature, .role, .steps-section .steps li, .group-list a {
    background-image: linear-gradient(180deg, var(--card-hi), transparent 110px), radial-gradient(120% 80% at 50% -20%, var(--rim), transparent 60%);
}
.card.wide, .form-card, .manifesto, .cta-band, .fan-hero, dialog.modal, .palette-menu { box-shadow: var(--elev-2); }
dialog.studio, .toast, .viewas-bar { box-shadow: var(--elev-3); }
.form-card { border-top: 3px solid var(--accent); }
/* The amp panels (manifesto, the mixer, the call to action) get gold piping and a glossy top. */
.manifesto, .cta-band, .mixer {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .12),
        inset 0 0 0 1px rgba(0, 0, 0, .4),
        inset 0 0 0 2px color-mix(in srgb, var(--brass) 30%, transparent),
        0 30px 60px -24px rgba(0, 0, 0, .8);
}

/* Section headings on the home page: a short lit bar underneath. */
.section-title { position: relative; padding-bottom: 10px; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--teal)); box-shadow: 0 0 12px var(--glow-soft); }

/* ---- 3D: the tilting cards carry a glare that follows the pointer, and their contents lift ---- */
.tilting { box-shadow: var(--elev-2), 0 0 0 1px var(--rim), 0 28px 60px -24px var(--glow); }
.tilting::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .13), transparent 60%);
}
.role.tilting::before { z-index: 0; }
:is(.dash-grid > .card, .steps-section .steps li, .world-facts li, .medal, .role) { position: relative; }
.tilting :is(h2, h3, .role-icon, .monogram, .ring, .medal-disc, .step-n) { transform: translateZ(22px); }
:is(.dash-grid > .card, .steps-section .steps li, .world-facts li, .medal, .role) :is(h2, h3, .role-icon, .monogram, .ring, .medal-disc, .step-n) { transition: transform .35s cubic-bezier(.2, .8, .3, 1); }

/* ---- Buttons: real footswitches. A lit top, a shadowed base, and a press that sinks ---- */
button, .button {
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, .06));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 3px color-mix(in srgb, var(--amp) 18%, transparent);
    text-shadow: 0 1px 0 rgba(255, 255, 255, .25);
}
button:not(:disabled):hover, .button:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 14px -4px color-mix(in srgb, var(--amp) 30%, transparent); }
button:active:not(:disabled), .button:active { box-shadow: inset 0 2px 4px rgba(0, 0, 0, .25); background-image: none; }
button.primary, .button.primary {
    text-shadow: 0 1px 0 rgba(0, 0, 0, .18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(0, 0, 0, .15), 0 3px 6px -1px color-mix(in srgb, var(--accent) 40%, transparent);
}
button.primary:hover:not(:disabled), .button.primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 0 0 4px var(--glow-soft), 0 12px 28px -8px var(--glow); }
button.record { text-shadow: 0 1px 0 rgba(0, 0, 0, .25); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 3px 6px -1px rgba(200, 40, 40, .4); }
button.ghost, .button.ghost { background-image: none; box-shadow: none; text-shadow: none; }
button.ghost:not(:disabled):hover, .button.ghost:hover { background: color-mix(in srgb, var(--text) 5%, transparent); box-shadow: none; }
button:disabled { box-shadow: none; }
.footswitch, .mix-btn, .mix-nudge button, .t-close, .tuner-close, .palette-option { text-shadow: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) button:not(.primary):not(.record):not(.ghost), :root:not([data-theme="light"]) .button:not(.primary):not(.ghost) { text-shadow: 0 1px 0 rgba(0, 0, 0, .5); }
}
:root[data-theme="dark"] button:not(.primary):not(.record):not(.ghost), :root[data-theme="dark"] .button:not(.primary):not(.ghost) { text-shadow: 0 1px 0 rgba(0, 0, 0, .5); }

/* ---- Inputs sit in wells ---- */
input[type=text], input[type=email], input[type=password], input[type=number], input:not([type]), select, textarea {
    box-shadow: var(--well);
    background-image: linear-gradient(to bottom, color-mix(in srgb, var(--amp) 3%, transparent), transparent 40%);
}
input:focus, select:focus, textarea:focus { box-shadow: var(--well), 0 0 0 3px var(--accent-soft), 0 0 18px -4px var(--glow); }
input[type=range] { height: 22px; }
.pill { box-shadow: inset 0 1px 0 var(--edge-hi), 0 1px 2px color-mix(in srgb, var(--amp) 10%, transparent); }
.chip { box-shadow: inset 0 1px 0 var(--edge-hi), 0 1px 2px color-mix(in srgb, var(--amp) 10%, transparent); }
.empty { box-shadow: var(--well); }

/* ---- Glass: dialogs, toasts, menus and the practice transport bar ---- */
dialog.modal, .toast, .palette-menu, .viewas-bar, details.propose[open] > form {
    background-color: var(--glass);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
dialog.modal::backdrop { background: color-mix(in srgb, var(--amp) 70%, transparent); backdrop-filter: blur(6px); }
.transport-bar { box-shadow: var(--elev-1); border: 1px solid var(--border); }

/* ---- Monograms and avatars: coins with a bevel ---- */
.monogram {
    background-image: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 40%, var(--teal)));
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(0, 0, 0, .22), 0 4px 10px -3px color-mix(in srgb, var(--accent) 55%, transparent);
    text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
}
.avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--border-strong), 0 4px 10px -3px var(--shade); }
.ring { box-shadow: inset 0 0 0 1px var(--border), 0 0 22px var(--glow-soft), 0 8px 18px -8px var(--shade); }
.feature .icon, .role-icon, .tab-icon, .nudge-icon, .goal-icon {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 6px 14px -6px var(--shade);
}
.step-n { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(0, 0, 0, .22), 0 0 0 5px var(--accent-soft), 0 8px 16px -6px var(--glow); }

/* ---- The score sheet: paper on a desk ---- */
.score-wrap { box-shadow: inset 0 2px 8px rgba(0, 0, 0, .12), 0 1px 0 #fff inset, var(--elev-1); }

/* ---- Tables: a stone lintel for the header, zebra rows ---- */
table.audit th, .tracks th, .history th { position: sticky; top: 0; background: var(--surface-2); box-shadow: inset 0 -1px 0 var(--border-strong); }
table.audit tr:nth-child(even) td, .history tr:nth-child(even) td { background: color-mix(in srgb, var(--text) 3%, transparent); }

/* ---- The hero: the score sits on a lit glass console, turned a little towards you ---- */
.hero-art {
    padding: 22px 18px 10px;
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, var(--card-hi), transparent 40%),
        radial-gradient(120% 90% at 50% 0%, var(--rim), transparent 60%),
        color-mix(in srgb, var(--surface) 72%, transparent);
    border: 1px solid var(--border);
    box-shadow: var(--elev-2);
    transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
    transform-origin: 60% 50%;
    transition: transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .6s;
}
.hero-art:hover { transform: perspective(1400px) rotateY(-2deg) rotateX(0deg) translateY(-4px); box-shadow: var(--elev-3), 0 0 0 1px var(--rim); }
.hero-art::before { inset: 0; border-radius: inherit; filter: blur(28px); z-index: -1; opacity: .9; }
/* Its reflection on the floor. */
.hero-art::after {
    content: ""; position: absolute; left: 10%; right: 10%; bottom: -26px; height: 26px; border-radius: 50%;
    background: radial-gradient(closest-side, var(--shade-deep), transparent);
    filter: blur(6px);
    opacity: .7;
}
/* The gargoyle itself, perched on the corner of the console. */
.hero-gargoyle {
    position: absolute; top: -34px; right: 18px; width: 72px; height: 72px;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)) drop-shadow(0 0 14px color-mix(in srgb, var(--mark) 50%, transparent));
    animation: perch 6s ease-in-out infinite;
    transform-origin: 50% 100%;
}
@keyframes perch { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-3px) scale(1.015); } }
@media (max-width: 760px) {
    .hero-art, .hero-art:hover { transform: none; }
    .hero-gargoyle { width: 56px; height: 56px; top: -28px; right: 12px; }
}

/* ---- Dashboard: your path ---- */
.path-card { margin-bottom: 18px; }
.path-card .card-head h2 { margin-bottom: 4px; }
.path { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.path li { position: relative; display: grid; gap: 4px; align-content: start; padding: 14px 14px 14px 50px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); box-shadow: inset 0 1px 0 var(--edge-hi); color: var(--muted); font-size: 14px; }
.path li b { color: var(--text); font-size: 15px; }
.path li .step-n { left: 12px; top: 13px; width: 28px; height: 28px; font-size: 14px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -2px 0 rgba(0, 0, 0, .2); }
.path li.done { border-color: color-mix(in srgb, var(--ok) 45%, var(--border)); }
.path li.done .step-n { background: var(--ok); color: #fff; font-size: 0; }
.path li.done .step-n::before { content: "✓"; font-size: 14px; }
.path li.now { border-color: var(--accent); box-shadow: inset 0 1px 0 var(--edge-hi), 0 0 0 3px var(--accent-soft), 0 10px 24px -14px var(--glow); color: var(--text); }
.path li a.button { justify-self: start; margin-top: 4px; }
.path .bar { margin-top: 4px; }
.quick-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.quick-links a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--elev-1); transition: transform .2s, border-color .2s, box-shadow .2s; }
.quick-links a:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--elev-2); color: var(--text); }
.quick-links a span { font-size: 17px; }

/* ---- Footer: the edge of the stage, with a sitemap ---- */
.footer { display: grid; grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(140px, 1fr)); gap: 22px 28px; margin-top: 64px; padding: 28px 0 0; border-top: 0; position: relative; }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--brass), transparent); opacity: .7; }
.footer-brand { display: grid; gap: 8px; align-content: start; justify-items: start; }
.footer-brand .brand { color: var(--text); font-size: 19px; }
.footer-brand .brand svg { filter: drop-shadow(0 2px 3px var(--shade)); }
.footer-brand p { margin: 0; color: var(--muted); font-size: 14px; max-width: 34em; }
.footer-col h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.footer-col a { display: block; padding: 3px 0; color: var(--text); text-decoration: none; font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.footer-note { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding-top: 14px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
@media (max-width: 760px) { .footer { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---- Phones: the main nav scrolls sideways instead of squeezing ---- */
@media (max-width: 640px) {
    .topbar { gap: 6px 8px; }
    .topbar .brand { font-size: 18px; white-space: nowrap; gap: 7px; }
    .topbar .brand svg { width: 26px; height: 26px; }
    .topbar .nav-user { gap: 4px; }
    .topbar .nav-user .me { padding: 2px !important; }
    .topbar .nav-main { display: flex; flex-wrap: nowrap; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
    .topbar .nav-main::-webkit-scrollbar { display: none; }
    .topbar .nav-main a { flex: 0 0 auto; scroll-snap-align: start; padding: 6px 12px; }
}
@media (max-width: 480px) {
    /* Narrow phones: the brand, the theme switch and the account controls fit on one row; the palette picker waits for a wider screen. */
    .topbar .brand { font-size: 16px; }
    .topbar .palette-wrap { display: none; }
    .topbar .nav-user > a:not(.button) { padding: 6px 8px; }
}

/* ---- Skip link: the first thing a keyboard reaches ---- */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 14px; border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; box-shadow: var(--elev-2); transition: top .15s; }
.skip-link:focus { top: 12px; outline: 2px solid var(--accent-ink); }

/* ---- Reduced motion: no perch, no tilt glare transitions ---- */
@media (prefers-reduced-motion: reduce) {
    .hero-gargoyle { animation: none; }
    .hero-art, .hero-art:hover { transform: none; transition: none; }
    .tilting :is(h2, h3, .role-icon, .monogram, .ring, .medal-disc, .step-n) { transform: none; }
}

/* Buttons in a stacked form keep their own width. */
.stack > button, .stack > .button { justify-self: start; }

/* =====================================================================
   v13: smoother pages, the full-screen sheet, a bigger stage tuner,
   stompboxes with real depth, and engraved music glyphs (Bravura).
   ===================================================================== */

/* ---- Bravura (SMuFL, SIL OFL), shipped with alphaTab: real engraving glyphs for the decorations ---- */
@font-face {
    font-family: "Bravura";
    src: url("/lib/alphatab/font/Bravura.woff2") format("woff2");
    font-display: swap;
}

/* ---- Performance: the room's background is one fixed layer, not repainted on every scroll ---- */
body { background: var(--bg); background-attachment: scroll; }
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(900px 600px at 18% -10%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%),
        radial-gradient(900px 600px at 82% -10%, color-mix(in srgb, var(--teal) 10%, transparent), transparent 70%),
        radial-gradient(1100px 520px at 50% -160px, var(--bg-glow), transparent 70%),
        linear-gradient(to bottom, transparent 55%, color-mix(in srgb, var(--amp) 16%, transparent)),
        repeating-linear-gradient(to bottom,
            transparent 0 64px,
            var(--staff) 64px 65px, transparent 65px 72px,
            var(--staff) 72px 73px, transparent 73px 80px,
            var(--staff) 80px 81px, transparent 81px 88px,
            var(--staff) 88px 89px, transparent 89px 96px,
            var(--staff) 96px 97px, transparent 97px 150px);
}
/* The practice transport bar stays sticky but no longer blurs what scrolls under it (costly every frame). */
.transport-bar { backdrop-filter: none; -webkit-backdrop-filter: none; background: color-mix(in srgb, var(--surface) 96%, transparent); }

/* ---- Drifting notes: engraved glyphs, three colours, depth by size and opacity (no blur filters) ---- */
.note-field span {
    font-family: "Bravura", serif;
    line-height: 1;
    filter: none;
    text-shadow: 0 0 10px color-mix(in srgb, currentColor 55%, transparent);
    will-change: transform;
}

/* ---- The heading staff: clef, time signature, flags, a final bar line; the shine stays inside ---- */
.h1-staff { width: 170px; }
.h1-staff .glyph { font-family: "Bravura", serif; fill: currentColor; opacity: .85; }
.h1-staff .clef { font-size: 16px; }
.h1-staff .sig { font-size: 8px; }
.h1-staff .flag { fill: currentColor; }
.h1-staff .bar-end { fill: currentColor; opacity: .7; }
.h1-staff .n5 { fill: var(--brass); color: var(--brass); animation-delay: 3.2s; }
.h1-staff .spark { font-family: "Bravura", serif; font-size: 9px; }
@keyframes staff-head { 0% { transform: translateX(0); opacity: 0; } 5% { opacity: 1; } 80% { opacity: 1; } 90%, 100% { transform: translateX(112px); opacity: 0; } }

/* ---- The sheet: double-click (or ⛶) for full screen ---- */
.score-fs {
    position: sticky;
    top: 8px;
    float: right;
    z-index: 4;
    width: 34px;
    height: 34px;
    margin: 8px 8px -42px 0;
    padding: 0;
    border-radius: 8px;
    font-size: 17px;
    line-height: 1;
    color: #111;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(0, 0, 0, .18);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .22);
    opacity: .5;
    text-shadow: none;
}
.score-wrap:hover .score-fs, .score-fs:focus-visible { opacity: 1; }
.score-wrap:fullscreen { height: 100vh !important; min-height: 0; border: 0; border-radius: 0; background: #fdfaf3; }
.score-wrap:fullscreen .score-fs { opacity: .85; }

/* ---- The stage tuner, bigger, with a bezel, glass, tick marks and a needle ---- */
.tuner-unit {
    gap: 16px;
    padding: 20px 22px 24px;
    border-radius: 20px;
    border-top-width: 4px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .08),
        inset 0 -14px 40px rgba(0, 0, 0, .5),
        0 10px 0 #0a0b0c,
        0 11px 0 #000,
        0 30px 50px -20px rgba(0, 0, 0, .9);
}
.tuner-brand b { font-size: 18px; }
.tuner-screen {
    width: min(100%, 720px);
    padding: 26px 20px 16px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        inset 0 3px 14px rgba(0, 0, 0, .9),
        inset 0 0 0 1px rgba(255, 255, 255, .05),
        0 0 0 5px #15181b,
        0 0 0 7px #3b4248,
        0 0 0 8px #0b0d0f,
        0 4px 10px 9px rgba(0, 0, 0, .5);
    margin: 8px auto 10px;
}
.tuner-screen::before { content: ""; position: absolute; inset: 0 0 55% 0; background: linear-gradient(to bottom, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0)); pointer-events: none; z-index: 2; }
.tuner-screen::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .03) 0 1px, transparent 1px 3px); pointer-events: none; z-index: 2; }
.tuner-arc { width: 400px; height: 200px; }
.tuner-arc .seg { width: 12px; left: calc(50% - 6px); height: 198px; }
.tuner-arc .seg::before { height: 30px; }
.tuner-arc .seg.c::before { height: 40px; width: 16px; left: -2px; }
.tuner-arc .ticks {
    position: absolute; inset: 0; pointer-events: none;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200'><g stroke='%23aab3b9' stroke-linecap='round' opacity='.7'><line x1='70.1' y1='125.0' x2='58.0' y2='118.0' stroke-width='1.6'/><line x1='85.6' y1='97.0' x2='78.1' y2='90.3' stroke-width='1.1'/><line x1='109.5' y1='75.4' x2='103.6' y2='67.3' stroke-width='1.1'/><line x1='137.4' y1='59.3' x2='133.3' y2='50.2' stroke-width='1.1'/><line x1='168.0' y1='49.4' x2='165.9' y2='39.6' stroke-width='1.1'/><line x1='200.0' y1='50.0' x2='200.0' y2='36.0' stroke-width='1.6'/><line x1='232.0' y1='49.4' x2='234.1' y2='39.6' stroke-width='1.1'/><line x1='262.6' y1='59.3' x2='266.7' y2='50.2' stroke-width='1.1'/><line x1='290.5' y1='75.4' x2='296.4' y2='67.3' stroke-width='1.1'/><line x1='314.4' y1='97.0' x2='321.9' y2='90.3' stroke-width='1.1'/><line x1='329.9' y1='125.0' x2='342.0' y2='118.0' stroke-width='1.6'/></g></svg>") center / 100% 100% no-repeat;
}
/* The needle: a pointer riding the outer ring, so the note underneath stays readable. */
.tuner-arc .needle {
    position: absolute; left: calc(50% - 2px); bottom: 0; width: 4px; height: 186px;
    transform-origin: 50% 100%;
    transform: rotate(var(--needle, 0deg));
    border-radius: 2px;
    background: linear-gradient(to top, transparent 0 58%, #f4f6f7 58% 72%, var(--warn) 72% 100%);
    box-shadow: 0 0 10px color-mix(in srgb, var(--warn) 60%, transparent);
    opacity: .22;
    transition: transform .09s cubic-bezier(.2, .7, .3, 1), opacity .2s;
}
.tuner-arc .hub { display: none; }
.tuner.hearing .tuner-arc .needle { opacity: 1; }
.tuner.in-tune .tuner-arc .needle { background: linear-gradient(to top, transparent 0 58%, #f4f6f7 58% 72%, var(--ok) 72% 100%); box-shadow: 0 0 14px var(--ok); }
.tuner-readout { bottom: 34px; }
.tuner-note { font-size: clamp(64px, 10vw, 92px); }
.tuner-cents { font-size: 15px; }
.tuner-hz { font-size: 13px; }
.tuner-arrow { bottom: 76px; font-size: 30px; }
.tuner-arrow.flat { left: max(16px, calc(50% - 250px)); }
.tuner-arrow.sharp { right: max(16px, calc(50% - 250px)); }
.tuner-scale { width: min(100%, 430px); font-size: 11px; }
.tuner-strings { gap: 12px; }
.tuner-strings .string { min-width: 66px; padding: 8px 14px 8px 10px; font-size: 15px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 3px 0 #000, 0 6px 10px -4px rgba(0, 0, 0, .8); }
.tuner-strings .peg { width: 11px; height: 11px; }
@media (max-width: 560px) {
    .tuner-arc { width: 260px; height: 130px; }
    .tuner-arc .seg { height: 128px; }
    .tuner-arc .needle { height: 120px; }
    .tuner-arrow { bottom: 50px; }
    .tuner-note { font-size: 54px; }
    .tuner-screen { padding: 18px 10px 12px; }
}

/* ---- Stompboxes v3: cast enclosures with a visible wall, chrome, lenses and engraved plates ---- */
.pedalboard {
    perspective: 1300px;
    perspective-origin: 50% -30%;
    padding: 30px 22px 34px;
    background:
        linear-gradient(to bottom, transparent 20px, #40464c 20px 23px, #1b1e22 23px 26px, transparent 26px calc(100% - 26px), #40464c calc(100% - 26px) calc(100% - 23px), #1b1e22 calc(100% - 23px) calc(100% - 20px), transparent calc(100% - 20px)),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 4px),
        repeating-linear-gradient(-45deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 4px),
        radial-gradient(120% 140% at 50% 0%, #2c2f34, #0f1114);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .06), inset 0 -12px 34px rgba(0, 0, 0, .55), 0 10px 0 #050607, 0 28px 50px -22px rgba(0, 0, 0, .9);
}
.pedal, .pedal.on {
    border: 1px solid rgba(0, 0, 0, .6);
    border-radius: 11px 11px 15px 15px;
    background:
        radial-gradient(circle at 9px 9px, #e8ebee 0 2.2px, #8b9298 2.4px 3.4px, transparent 3.7px),
        radial-gradient(circle at calc(100% - 9px) 9px, #e8ebee 0 2.2px, #8b9298 2.4px 3.4px, transparent 3.7px),
        radial-gradient(circle at 9px calc(100% - 9px), #e8ebee 0 2.2px, #8b9298 2.4px 3.4px, transparent 3.7px),
        radial-gradient(circle at calc(100% - 9px) calc(100% - 9px), #e8ebee 0 2.2px, #8b9298 2.4px 3.4px, transparent 3.7px),
        linear-gradient(165deg, rgba(255, 255, 255, .38) 0%, rgba(255, 255, 255, .1) 20%, rgba(255, 255, 255, 0) 46%, rgba(0, 0, 0, .22) 100%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px),
        var(--pedal);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .5),
        inset 1px 0 0 rgba(255, 255, 255, .14),
        inset -1px 0 0 rgba(0, 0, 0, .25),
        inset 0 -2px 0 rgba(0, 0, 0, .3),
        0 7px 0 var(--pedal-dark),
        0 8px 0 #000,
        0 16px 24px -6px rgba(0, 0, 0, .85),
        0 28px 44px -16px rgba(0, 0, 0, .6);
    transform: rotateX(9deg);
}
.pedal:hover { transform: rotateX(5deg) translateY(-5px); }
.pedal.on {
    filter: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .55),
        inset 1px 0 0 rgba(255, 255, 255, .16),
        inset -1px 0 0 rgba(0, 0, 0, .25),
        inset 0 -2px 0 rgba(0, 0, 0, .3),
        0 7px 0 var(--pedal-dark),
        0 8px 0 #000,
        0 16px 30px -6px color-mix(in srgb, var(--pedal) 55%, #000),
        0 0 36px -6px color-mix(in srgb, var(--pedal) 60%, transparent);
}
.pedal:not(.on) { filter: saturate(.7) brightness(.82); }
.pedal.stomp { animation: stomp3 .26s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes stomp3 { 0% { transform: rotateX(9deg); } 35% { transform: rotateX(14deg) translateY(4px) scale(.985); } 100% { transform: rotateX(9deg); } }
/* The amp head and the cabinet keep their own finishes (tolex, grille cloth) but get the same wall. */
.pedal-drive, .pedal-drive.on {
    border-radius: 10px;
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, .08), transparent 40%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 3px),
        repeating-linear-gradient(45deg, rgba(0, 0, 0, .25) 0 1px, transparent 1px 3px),
        var(--pedal);
}
.pedal-cab, .pedal-cab.on {
    background:
        radial-gradient(circle at 9px 9px, #e8ebee 0 2.2px, #8b9298 2.4px 3.4px, transparent 3.7px),
        radial-gradient(circle at calc(100% - 9px) 9px, #e8ebee 0 2.2px, #8b9298 2.4px 3.4px, transparent 3.7px),
        radial-gradient(circle at 9px calc(100% - 9px), #e8ebee 0 2.2px, #8b9298 2.4px 3.4px, transparent 3.7px),
        radial-gradient(circle at calc(100% - 9px) calc(100% - 9px), #e8ebee 0 2.2px, #8b9298 2.4px 3.4px, transparent 3.7px),
        linear-gradient(165deg, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, 0) 40%, rgba(0, 0, 0, .25) 100%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 5px),
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 5px),
        #26282b;
}
/* The LED: a domed lens with a highlight, lit red when on. */
.pedal-led {
    width: 12px; height: 12px;
    background: radial-gradient(circle at 35% 30%, #7a2b2b, #3a0c0c 55%, #1c0505);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .8), 0 0 0 2px #0a0b0c, 0 0 0 3px #4a5056, 0 1px 0 3px rgba(255, 255, 255, .08);
}
.pedal.on .pedal-led {
    background: radial-gradient(circle at 35% 30%, #ffd0d0, #ff3b3b 45%, #9c0000);
    box-shadow: 0 0 12px 3px rgba(255, 59, 59, .85), inset 0 -1px 2px rgba(0, 0, 0, .3), 0 0 0 2px #0a0b0c, 0 0 0 3px #4a5056;
}
/* Knobs: a chrome skirt around a black cap, the pointer lit. */
.dial {
    width: 34px; height: 34px;
    background:
        radial-gradient(circle at 38% 30%, #70777e, #2b2f34 50%, #141619 68%, transparent 69%),
        repeating-conic-gradient(from 0deg, #3a3e43 0 5deg, #15171a 5deg 10deg);
    box-shadow: 0 0 0 2px #0b0c0e, 0 0 0 3px #7c848b, 0 0 0 4px #0b0c0e, 0 5px 7px rgba(0, 0, 0, .75), inset 0 1px 1px rgba(255, 255, 255, .3);
}
.dial::before { background: #fafafa; box-shadow: 0 0 4px rgba(255, 255, 255, .7), 0 0 8px color-mix(in srgb, var(--accent) 60%, transparent); }
.knob-name { font-weight: 800; text-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.pedal-eq .knob-name, .pedal-trem .knob-name { text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }
/* The nameplate: a brushed metal plate, the name engraved. */
.pedal-plate {
    padding: 6px 8px 5px;
    border-radius: 7px;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 2px),
        linear-gradient(to bottom, rgba(0, 0, 0, .3), rgba(0, 0, 0, .16));
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .55), inset 0 -1px 0 rgba(255, 255, 255, .12), 0 1px 0 rgba(255, 255, 255, .18);
}
.pedal-plate .pedal-name { text-shadow: 0 -1px 0 rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 255, 255, .22); }
.pedal-eq .pedal-plate, .pedal-trem .pedal-plate { background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .04) 0 1px, transparent 1px 2px), linear-gradient(to bottom, rgba(255, 255, 255, .45), rgba(255, 255, 255, .25)); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25), 0 1px 0 rgba(255, 255, 255, .5); }
.pedal-eq .pedal-plate .pedal-name, .pedal-trem .pedal-plate .pedal-name { text-shadow: 0 1px 0 rgba(255, 255, 255, .7); }
/* The footswitch: a chrome button in a knurled nut. */
.footswitch, .footswitch:hover:not(:disabled) {
    width: 48px; height: 48px;
    border: 3px solid #1d2124;
    outline: 0;
    background: radial-gradient(circle at 40% 28%, #ffffff, #d4d9dd 24%, #8f979d 56%, #4b5257 100%);
    box-shadow:
        0 0 0 3px #30353a,
        0 0 0 6px #a3abb1,
        0 0 0 7px #0a0b0c,
        0 7px 0 #262b2f,
        0 7px 0 7px #000,
        0 12px 16px rgba(0, 0, 0, .8);
    transform: none;
}
.footswitch::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 60%); }
.footswitch:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 0 0 3px #30353a, 0 0 0 6px #a3abb1, 0 0 0 7px #0a0b0c, 0 2px 0 #262b2f, 0 2px 0 7px #000, 0 4px 6px rgba(0, 0, 0, .8); }
.footswitch:focus-visible { outline: 2px solid var(--accent); outline-offset: 10px; }
/* Patch cables: a short lead looping between neighbours. */
.pedal + .pedal::before {
    left: -28px; top: 58px; width: 34px; height: 16px;
    border-radius: 0 0 14px 14px / 0 0 18px 18px;
    background: none;
    border: 3px solid #1b1d20;
    border-top: 0;
    box-shadow: 0 2px 0 rgba(255, 255, 255, .06), inset 0 -1px 0 rgba(255, 255, 255, .08);
}
.pedalboard.live .pedal + .pedal::before { border-color: color-mix(in srgb, var(--accent) 60%, #1b1d20); box-shadow: 0 0 calc(var(--sig, 0) * 12px) color-mix(in srgb, var(--accent) 80%, transparent); }
/* Switched on, the floor under a pedal glows in its colour. */
.pedal.on::after { opacity: .7; }
.pedal-cab .cab-grille { box-shadow: inset 0 0 14px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .06), 0 1px 0 rgba(255, 255, 255, .12), 0 3px 6px rgba(0, 0, 0, .6); }
@media (prefers-reduced-motion: reduce) {
    .pedal, .pedal.on, .pedal:hover { transform: none; }
    .pedal.stomp { animation: none; }
}
@media (max-width: 560px) {
    .pedal, .pedal.on, .pedal-drive, .pedal-cab { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(0, 0, 0, .3), 0 5px 0 var(--pedal-dark), 0 6px 0 #000, 0 12px 18px -6px rgba(0, 0, 0, .85); }
    .footswitch, .footswitch:hover:not(:disabled) { width: 42px; height: 42px; }
}

/* The maker's name on the plate stays on one line. */
.pedal-plate small { font-size: 7px; letter-spacing: .16em; margin-right: -.16em; white-space: nowrap; }

/* The click mute beside the metronome slider: a small bell that goes quiet when pressed. */
.click-row { display: inline-flex; align-items: center; gap: 8px; }
.click-mute { width: 26px; height: 24px; padding: 0; font-size: 13px; line-height: 1; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border-strong); box-shadow: inset 0 1px 0 var(--edge-hi); text-shadow: none; }
.click-mute[aria-pressed="true"] { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 50%, var(--border-strong)); background: color-mix(in srgb, var(--bad) 10%, var(--surface-2)); }

/* =====================================================================
   v14: patch cables drawn from the pedals, keeper takes, song notes,
   who's-ready tables, your songs, the setup check and QR invites.
   ===================================================================== */

/* ---- Patch cables: an SVG overlay on the board, redrawn from the pedals' real positions ---- */
.pedal + .pedal::before { content: none; }
.pedalboard { position: relative; }
.pedalboard .cables { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.pedalboard .pedal { z-index: 1; }
.cables .shadow { fill: none; stroke: rgba(0, 0, 0, .75); stroke-width: 10; stroke-linecap: round; transform: translateY(3px); }
.cables .lead { fill: none; stroke: #474d54; stroke-width: 6.5; stroke-linecap: round; }
.cables .sheen { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 1.6; stroke-linecap: round; transform: translateY(-1.2px); }
.cables .plug { fill: #d5dade; stroke: #0a0b0c; stroke-width: 1; }
.cables .live .lead { stroke: color-mix(in srgb, var(--accent) 25%, #474d54); }
.cables .live .sheen { stroke: color-mix(in srgb, var(--accent) 60%, transparent); }
.pedalboard.live .cables .live .lead { filter: drop-shadow(0 0 calc(var(--sig, 0) * 6px) color-mix(in srgb, var(--accent) 80%, transparent)); }

/* ---- Keeper takes ---- */
.takes-list .keeper.on { color: var(--brass); border-color: color-mix(in srgb, var(--brass) 55%, var(--border)); background: color-mix(in srgb, var(--brass) 12%, transparent); font-weight: 800; }

/* ---- Song notes beside the tab, and the editor on the band page ---- */
.song-notes-text { margin: 6px 0 2px; padding: 8px 12px 8px 36px; position: relative; font-size: 14px; line-height: 1.45; white-space: pre-wrap; color: var(--text); background: color-mix(in srgb, var(--brass) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brass) 35%, var(--border)); border-radius: var(--radius-sm); box-shadow: inset 0 1px 0 var(--edge-hi); }
.song-notes-text::before { content: "📝"; position: absolute; left: 10px; top: 7px; }
details.song-notes { display: inline-block; }
details.song-notes > summary { list-style: none; }
details.song-notes > summary::-webkit-details-marker { display: none; }
details.song-notes[open] > summary { border-color: var(--accent); }
.song-notes-form { flex-basis: 100%; width: 100%; display: grid; gap: 8px; margin-top: 8px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); }
.song-notes-form textarea { width: 100%; }
.song-notes-form button { justify-self: start; }
.tab-list li { position: relative; }
.tab-list li details.song-notes[open] { flex-basis: 100%; }

/* ---- Who's ready on what ---- */
.readiness-wrap { overflow-x: auto; margin: 6px 0 14px; }
table.readiness { border-collapse: collapse; width: 100%; font-size: 14px; }
table.readiness th, table.readiness td { padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: center; }
table.readiness thead th { font-size: 12px; color: var(--muted); font-weight: 600; vertical-align: bottom; }
table.readiness thead th span { display: block; max-width: 72px; margin: 4px auto 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.readiness thead th .avatar { display: inline-block; }
table.readiness tbody th { text-align: left; font-weight: 600; min-width: 170px; max-width: 260px; line-height: 1.25; }
table.readiness td.ready { color: var(--ok); font-weight: 800; font-size: 16px; background: color-mix(in srgb, var(--ok) 8%, transparent); }
table.readiness td.working { color: var(--text); font-family: var(--mono); font-size: 12px; }
table.readiness td.working small { display: block; color: var(--muted); font-size: 10px; }
table.readiness td.none { color: var(--muted); }

/* ---- Your songs (profile) ---- */
.songs-card .page-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.song-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.song-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); box-shadow: inset 0 1px 0 var(--edge-hi); }
.song-list li.ready { border-color: color-mix(in srgb, var(--ok) 45%, var(--border)); }
.song-mark { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; font-weight: 800; background: var(--surface-3); color: var(--muted); }
.song-list li.ready .song-mark { background: var(--ok); color: #fff; box-shadow: 0 0 10px color-mix(in srgb, var(--ok) 60%, transparent); }
.song-best { display: grid; text-align: center; line-height: 1.1; min-width: 64px; }
.song-best b { font-family: var(--font-display); font-size: 18px; }
.song-best small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 560px) { .song-list li { flex-wrap: wrap; } .song-best { min-width: 50px; } }

/* ---- The setup check on the dashboard ---- */
.setup-check { margin: 10px 0 4px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); box-shadow: inset 0 1px 0 var(--edge-hi); }
.setup-check.bad { border-color: color-mix(in srgb, var(--bad) 50%, var(--border)); }
.setup-check.warn { border-color: color-mix(in srgb, var(--warn) 50%, var(--border)); }
.setup-check.ok { border-color: color-mix(in srgb, var(--ok) 40%, var(--border)); }
.setup-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.setup-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.setup-list li { display: flex; gap: 8px; align-items: baseline; }
.setup-list li::before { content: "✓"; color: var(--ok); font-weight: 800; }
.setup-list li.warn::before { content: "!"; color: var(--warn); }
.setup-list li.bad::before { content: "✕"; color: var(--bad); }
.setup-list li a { margin-left: 4px; }

/* ---- QR invite ---- */
.invite-qr { width: 164px; height: 164px; margin: 10px 0 6px; padding: 6px; border-radius: 10px; background: #fff; box-shadow: var(--elev-1); }
.invite-qr svg { width: 100%; height: 100%; display: block; }
