:root {
    color-scheme: dark;
    --bg: #07131b;
    --bg-soft: #0d1e29;
    --panel: rgba(9, 24, 34, 0.82);
    --panel-strong: rgba(10, 29, 42, 0.95);
    --line: rgba(151, 201, 221, 0.16);
    --text: #f3f7f8;
    --muted: #9bb3bf;
    --accent: #6be3d7;
    --accent-strong: #33d1bd;
    --accent-warm: #ff965d;
    --accent-soft: rgba(107, 227, 215, 0.12);
    --danger: #ff7b7b;
    --success: #8beb93;
    --shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --font-display: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
    --font-body: "Avenir Next", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 150, 93, 0.2), transparent 32%),
        radial-gradient(circle at top right, rgba(107, 227, 215, 0.14), transparent 24%),
        radial-gradient(circle at bottom, rgba(34, 90, 120, 0.32), transparent 30%),
        linear-gradient(180deg, #08141d 0%, #050c11 100%);
}

body.has-setlist-player .site-shell {
    padding-bottom: 132px;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.02) 50%, rgba(255, 255, 255, 0.02) 75%, transparent 75%),
        linear-gradient(transparent, transparent);
    background-size: 44px 44px;
    opacity: 0.12;
    pointer-events: none;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.icon {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
}

.icon-sm {
    width: 0.95rem;
    height: 0.95rem;
}

.icon-md {
    width: 1.1rem;
    height: 1.1rem;
}

.icon-lg {
    width: 1.35rem;
    height: 1.35rem;
}

.button-state-icons {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 1rem;
    height: 1rem;
}

.button-state-icon {
    grid-area: 1 / 1;
}

.button-state-icon-pause {
    display: none;
}

.play-button[data-state="pause"] .button-state-icon-play {
    display: none;
}

.play-button[data-state="pause"] .button-state-icon-pause {
    display: inline-flex;
}

.player-main-button[data-state="pause"] .button-state-icon-play {
    display: none;
}

.player-main-button[data-state="pause"] .button-state-icon-pause {
    display: inline-flex;
}

.site-shell {
    position: relative;
    width: min(100%, 1200px);
    margin: 0 auto;
    padding: 18px 16px 48px;
}

.page {
    display: block;
}

.site-header {
    position: sticky;
    top: 10px;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(8, 20, 29, 0.72);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background:
        linear-gradient(160deg, rgba(255, 150, 93, 0.92), rgba(107, 227, 215, 0.92));
    color: #041019;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(107, 227, 215, 0.28);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1;
}

.brand-copy strong {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: lowercase;
}

.brand-copy small {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.72rem;
    overflow-wrap: anywhere;
}

.header-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

.header-actions form {
    display: flex;
}

.ghost-link,
.ghost-button,
.secondary-button,
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.ghost-link {
    color: var(--muted);
}

.ghost-button,
.secondary-button {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.primary-button {
    border: 1px solid rgba(107, 227, 215, 0.4);
    background: linear-gradient(135deg, var(--accent), var(--accent-warm));
    color: #07131b;
    box-shadow: 0 18px 36px rgba(107, 227, 215, 0.28);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.ghost-link:hover {
    transform: translateY(-1px);
}

.flash-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.flash {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(7, 20, 29, 0.78);
}

.flash-success {
    border-color: rgba(139, 235, 147, 0.35);
    color: #cbffd0;
}

.flash-error {
    border-color: rgba(255, 123, 123, 0.35);
    color: #ffd0d0;
}

.flash-info {
    border-color: rgba(107, 227, 215, 0.35);
}

.hero {
    display: grid;
    gap: 20px;
    align-items: center;
    padding: 12px 0 24px;
}

.hero-copy,
.panel,
.hero-stage {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-copy {
    padding: 28px 22px;
    border-radius: var(--radius-xl);
}

.eyebrow,
.card-tag,
.feature-index {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.auth-intro h1,
.dashboard-hero h1 {
    margin: 14px 0 14px;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 8vw, 4.7rem);
    line-height: 0.97;
    letter-spacing: -0.04em;
}

.hero-copy h1 span {
    color: var(--accent-warm);
}

.hero-copy p,
.auth-intro p,
.preview-card p,
.feature-card p,
.dashboard-hero p,
.dashboard-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.hero-actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
    min-width: 0;
}

.hero-points {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.point-card,
.mini-panel,
.signal-card,
.status-card {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
}

.point-card strong,
.mini-panel strong,
.signal-card strong,
.status-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
}

.point-card span,
.mini-panel span,
.signal-card span,
.status-card span {
    color: var(--muted);
    line-height: 1.45;
    font-size: 0.95rem;
}

.hero-art {
    position: relative;
    min-height: 500px;
    padding: 18px 0 0;
}

.spotlight,
.pulse-orbit {
    position: absolute;
    border-radius: 999px;
    filter: blur(8px);
}

.spotlight {
    top: 12px;
    width: 190px;
    height: 190px;
    opacity: 0.32;
}

.spotlight-left {
    left: 8px;
    background: radial-gradient(circle, rgba(255, 150, 93, 0.7), transparent 70%);
    animation: floatSpotlight 4.6s ease-in-out infinite;
}

.spotlight-right {
    right: 4px;
    background: radial-gradient(circle, rgba(107, 227, 215, 0.68), transparent 70%);
    animation: floatSpotlight 5.4s ease-in-out infinite reverse;
}

.pulse-orbit {
    inset: auto 50% 18px auto;
    width: 170px;
    height: 170px;
    border: 1px solid rgba(107, 227, 215, 0.18);
    transform: translateX(50%);
    animation: pulseOrbit 3.2s ease-out infinite;
}

.hero-stage {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 16px;
    padding: 22px;
    border-radius: 34px;
    min-height: 460px;
}

.hero-stage::before {
    content: "";
    position: absolute;
    inset: auto -20% -35% -20%;
    height: 56%;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 150, 93, 0.16), transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.03));
}

.signal-card {
    position: relative;
    width: fit-content;
    z-index: 1;
}

.signal-card span,
.mini-panel small,
.status-card small {
    display: block;
    margin-bottom: 6px;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.eq-bars {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: end;
    gap: 8px;
    height: 120px;
}

.eq-bars span {
    display: block;
    width: 100%;
    border-radius: 999px 999px 12px 12px;
    background: linear-gradient(180deg, rgba(107, 227, 215, 0.95), rgba(255, 150, 93, 0.7));
    transform-origin: bottom;
    animation: eqBounce 1.7s ease-in-out infinite;
    animation-delay: calc(var(--bar) * -1.6s);
}

.eq-bars span:nth-child(1) { height: 38%; }
.eq-bars span:nth-child(2) { height: 80%; }
.eq-bars span:nth-child(3) { height: 58%; }
.eq-bars span:nth-child(4) { height: 94%; }
.eq-bars span:nth-child(5) { height: 67%; }
.eq-bars span:nth-child(6) { height: 44%; }

.player-shell {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.04);
}

.vinyl {
    position: relative;
    flex: 0 0 92px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(6, 17, 23, 1) 0 11px, rgba(255, 150, 93, 0.88) 11px 16px, rgba(9, 25, 34, 1) 16px 100%);
    box-shadow:
        inset 0 0 0 8px rgba(255, 255, 255, 0.03),
        inset 0 0 0 24px rgba(255, 255, 255, 0.02);
    animation: spin 6.4s linear infinite;
}

.player-meta {
    display: grid;
    gap: 5px;
}

.player-meta small {
    color: var(--muted);
}

.player-meta strong {
    font-size: 1.18rem;
}

.player-meta span {
    color: var(--accent);
    font-size: 0.95rem;
}

.stage-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
}

.mini-panel.accent {
    background: linear-gradient(135deg, rgba(255, 150, 93, 0.16), rgba(107, 227, 215, 0.08));
}

.chat-bubbles {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    margin-top: auto;
}

.chat-bubbles span {
    width: fit-content;
    max-width: 84%;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(107, 227, 215, 0.1);
    color: #d8f5f0;
    line-height: 1.45;
}

.chat-bubbles span:last-child {
    justify-self: end;
    background: rgba(255, 150, 93, 0.14);
    color: #ffe3d4;
}

.content-section {
    margin-top: 26px;
}

.section-head {
    margin-bottom: 18px;
}

.section-head h2,
.preview-card h2,
.dashboard-card h2,
.form-panel h2 {
    margin: 12px 0 0;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 5.5vw, 2.5rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.feature-grid,
.dashboard-grid {
    display: grid;
    gap: 16px;
}

.feature-card,
.dashboard-card,
.preview-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.feature-card h3 {
    margin: 14px 0 10px;
    font-size: 1.18rem;
}

.preview-section {
    padding-bottom: 28px;
}

.preview-card {
    background:
        radial-gradient(circle at top right, rgba(107, 227, 215, 0.12), transparent 32%),
        radial-gradient(circle at bottom left, rgba(255, 150, 93, 0.18), transparent 28%),
        var(--panel-strong);
}

.auth-page,
.dashboard-page {
    padding-top: 8px;
}

.auth-shell {
    display: grid;
    gap: 16px;
}

.auth-shell.single-column {
    max-width: 620px;
    margin: 0 auto;
    grid-template-columns: minmax(0, 1fr);
}

.auth-shell.single-column .auth-intro h1 {
    max-width: 10ch;
    font-size: clamp(2.2rem, 7vw, 3.6rem);
}

.panel {
    padding: 24px 20px;
    border-radius: var(--radius-xl);
}

.form-panel {
    display: grid;
    gap: 20px;
}

.section-title-row {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.section-title-row h2 {
    margin: 0;
    font-size: 1.18rem;
}

.section-title-row span,
.field-label,
.muted-block {
    color: var(--muted);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

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

.form-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field,
.choice-field {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.field span,
.choice-field legend {
    color: #d7e4ea;
    font-size: 0.93rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.field input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.field select,
.field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    font-size: 16px;
    outline: 0;
    transition: border-color 180ms ease, background-color 180ms ease;
}

.field input:not([type="radio"]):not([type="checkbox"]):not([type="file"]):focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(107, 227, 215, 0.42);
    background: rgba(255, 255, 255, 0.07);
}

.field input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px dashed rgba(107, 227, 215, 0.28);
    border-radius: 18px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
}

.field input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 10px 14px;
    border: 0;
    border-radius: 12px;
    background: rgba(107, 227, 215, 0.18);
    color: var(--text);
    font: inherit;
    font-weight: 700;
}

.field select:disabled {
    opacity: 0.6;
}

.field textarea {
    resize: vertical;
    min-height: 120px;
}

.field-group {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.chip-group,
.token-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip-option {
    position: relative;
    max-width: 100%;
}

.chip-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.chip-option span,
.token-list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    color: #e6f0f3;
    font-size: 0.92rem;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}

.chip-option input:checked + span {
    border-color: rgba(107, 227, 215, 0.34);
    background: rgba(107, 227, 215, 0.16);
    color: #d8fcf8;
    box-shadow: 0 12px 24px rgba(107, 227, 215, 0.12);
}

.choice-field {
    padding: 0;
    margin: 0;
    border: 0;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    line-height: 1.35;
    white-space: normal;
}

.radio-group input[type="radio"] {
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    accent-color: var(--accent-strong);
    box-shadow: none;
}

.compact-form {
    gap: 18px;
}

.dashboard-hero {
    display: grid;
    gap: 18px;
}

.split-layout,
.content-stack,
.stack-list,
.stat-grid {
    display: grid;
    gap: 16px;
}

.tab-shell {
    display: grid;
    gap: 18px;
}

.tabbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-weight: 700;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.tab-button.is-active {
    border-color: rgba(107, 227, 215, 0.32);
    background: rgba(107, 227, 215, 0.14);
    color: #d8fcf8;
}

.tab-panel[hidden] {
    display: none !important;
}

.section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 6px;
}

.compact-grid {
    grid-template-columns: 1fr;
}

.content-stack {
    align-content: start;
}

.status-card {
    align-self: start;
}

.stat-card strong {
    display: block;
    margin: 8px 0 4px;
    font-size: clamp(1.8rem, 5vw, 2.6rem);
}

.stat-card span {
    color: var(--muted);
}

.check-list {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 18px 0 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.5;
}

.check-list li::before {
    content: "";
    position: absolute;
    top: 0.5em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.empty-card,
.list-card {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
}

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

.list-card p,
.empty-card {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.list-card-head,
.meta-row,
.inline-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.list-card-head strong {
    font-size: 1rem;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(107, 227, 215, 0.12);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
}

.meta-row {
    justify-content: flex-start;
    color: var(--muted);
    font-size: 0.9rem;
}

.inline-form {
    margin: 0;
}

.small-button {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.92rem;
}

.inline-link {
    padding: 0;
    min-height: auto;
}

.inset-card {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
}

.inset-card h3 {
    margin: 0 0 14px;
    font-size: 1.05rem;
}

.song-card {
    display: grid;
    gap: 0;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.035);
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.song-card.is-open,
.song-card.is-current {
    border-color: rgba(107, 227, 215, 0.24);
    background: rgba(255, 255, 255, 0.05);
}

.song-card.is-current {
    box-shadow: 0 18px 36px rgba(6, 16, 24, 0.34);
}

.song-card-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
}

.song-toggle {
    display: grid;
    gap: 10px;
    width: 100%;
    padding: 0;
    color: inherit;
    text-align: left;
}

.song-toggle:focus-visible {
    outline: 2px solid rgba(107, 227, 215, 0.42);
    outline-offset: 6px;
    border-radius: 18px;
}

.song-title-block,
.song-title-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.song-title-line strong {
    font-size: 1.04rem;
}

.song-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 150, 93, 0.14);
    color: #ffd8c2;
    font-size: 0.78rem;
    font-weight: 800;
}

.song-card.is-current .song-order {
    background: rgba(107, 227, 215, 0.2);
    color: #d8fcf8;
}

.song-caret {
    margin-left: auto;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1;
    transition: transform 180ms ease, color 180ms ease;
}

.song-card.is-open .song-caret {
    transform: rotate(180deg);
    color: var(--accent);
}

.song-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    color: var(--muted);
    font-size: 0.9rem;
}

.song-actions {
    justify-content: flex-end;
    align-items: flex-start;
}

.song-panel {
    display: grid;
    gap: 14px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.song-panel[hidden] {
    display: none !important;
}

.info-stack {
    display: grid;
    gap: 12px;
}

.info-strip {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
}

.info-strip strong {
    font-size: 0.88rem;
}

.info-strip span {
    color: var(--muted);
    line-height: 1.55;
    white-space: pre-wrap;
}

.info-strip-empty strong {
    color: var(--muted);
}

.code-block-field textarea {
    font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
    font-size: 0.9rem;
    line-height: 1.55;
}

.compact-actions {
    align-items: center;
    justify-content: space-between;
}

.muted-inline {
    color: var(--muted);
    line-height: 1.45;
}

.ghost-button[disabled],
.primary-button[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.inline-actions form {
    margin: 0;
}

.song-edit-form {
    gap: 14px;
}

.song-comment-shell {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.song-comment-thread {
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.song-comment-thread::-webkit-scrollbar {
    width: 8px;
}

.song-comment-thread::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.song-comment-form {
    display: grid;
    gap: 12px;
}

.song-comment-field textarea {
    min-height: 92px;
}

.setlist-player {
    position: fixed;
    left: 50%;
    bottom: 12px;
    z-index: 70;
    display: grid;
    gap: 14px;
    width: min(calc(100% - 24px), 1168px);
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 26px;
    background: rgba(8, 20, 29, 0.95);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    transform: translateX(-50%);
}

.setlist-player[hidden] {
    display: none !important;
}

.setlist-player-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.setlist-player-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.setlist-player-copy strong {
    font-size: 1rem;
}

.setlist-player-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.setlist-player-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.setlist-player-actions .ghost-button.is-active {
    border-color: rgba(107, 227, 215, 0.32);
    background: rgba(107, 227, 215, 0.14);
    color: #d8fcf8;
}

.setlist-player-audio {
    width: 100%;
    min-width: 0;
}

.ghost-link .icon,
.ghost-button .icon,
.secondary-button .icon,
.primary-button .icon,
.tab-button .icon,
.eyebrow .icon,
.card-tag .icon {
    opacity: 0.95;
}

.group-page {
    display: grid;
    gap: 20px;
}

.dashboard-hero {
    gap: 24px;
    background:
        radial-gradient(circle at top right, rgba(107, 227, 215, 0.1), transparent 30%),
        radial-gradient(circle at bottom left, rgba(255, 150, 93, 0.12), transparent 32%),
        var(--panel);
}

.status-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(107, 227, 215, 0.08), transparent 44%),
        rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.status-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.status-icon,
.stat-icon,
.player-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(107, 227, 215, 0.12);
    color: var(--accent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.stat-grid {
    gap: 20px;
}

.stat-card {
    padding: 20px 18px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

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

.stat-card-head small {
    margin: 0;
}

.tab-shell {
    gap: 24px;
    background:
        radial-gradient(circle at top right, rgba(107, 227, 215, 0.06), transparent 28%),
        var(--panel);
}

.tabbar {
    gap: 12px;
    padding-bottom: 4px;
}

.tab-button {
    gap: 10px;
    padding: 0 18px;
}

.group-page .section-header {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.song-card {
    padding: 20px;
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
}

.song-card.is-current {
    box-shadow:
        0 18px 36px rgba(6, 16, 24, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.song-card-top {
    gap: 18px;
}

.song-toggle {
    gap: 12px;
    padding: 2px 0;
}

.song-title-line strong {
    font-size: 1.08rem;
}

.song-meta-line {
    gap: 8px 12px;
}

.song-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
}

.song-actions {
    gap: 10px;
    align-items: center;
}

.song-actions .small-button {
    min-width: 44px;
}

.song-panel {
    gap: 16px;
    margin-top: 20px;
    padding-top: 18px;
}

.info-strip {
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.info-strip-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.rehearsal-card {
    gap: 16px;
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
}

.rehearsal-head,
.rehearsal-title-block,
.rehearsal-comment-head,
.comment-bubble-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rehearsal-title-block {
    align-items: flex-start;
    flex-wrap: wrap;
}

.rehearsal-datetime {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.rehearsal-datetime strong,
.rehearsal-comment-head strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.rehearsal-datetime > div {
    display: grid;
    gap: 4px;
}

.rehearsal-datetime > div span {
    color: var(--muted);
    line-height: 1.4;
}

.rehearsal-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(107, 227, 215, 0.16);
    border-radius: 10px;
    background: rgba(107, 227, 215, 0.09);
    color: var(--accent);
}

.rehearsal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    color: var(--muted);
    font-size: 0.88rem;
}

.rehearsal-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.rehearsal-badge.is-today {
    background: rgba(255, 150, 93, 0.16);
    color: #ffd7c2;
}

.rehearsal-badge.is-upcoming {
    background: rgba(107, 227, 215, 0.12);
    color: var(--accent);
}

.rehearsal-badge.is-past {
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
}

.rehearsal-detail-grid,
.rehearsal-comments,
.comment-thread {
    display: grid;
    gap: 12px;
}

.comment-bubble {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.comment-bubble-head {
    align-items: baseline;
}

.comment-bubble-head span {
    color: var(--muted);
    font-size: 0.8rem;
}

.comment-bubble p {
    margin: 0;
    color: #e4edf0;
    line-height: 1.5;
    white-space: pre-wrap;
}

.rehearsal-comment-form {
    display: grid;
    gap: 12px;
    padding-top: 4px;
}

.rehearsal-comment-field textarea {
    min-height: 92px;
}

.rehearsal-empty-card {
    padding: 14px;
}

.group-chat-shell {
    display: grid;
    gap: 16px;
}

.group-chat-intro {
    background: rgba(255, 255, 255, 0.04);
}

.group-chat-thread {
    display: grid;
    gap: 12px;
    max-height: 560px;
    overflow-y: auto;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background:
        radial-gradient(circle at top right, rgba(107, 227, 215, 0.08), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.group-chat-thread::-webkit-scrollbar {
    width: 8px;
}

.group-chat-thread::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(107, 227, 215, 0.2);
}

.group-chat-message {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: flex-start;
}

.group-chat-message.is-own {
    grid-template-columns: minmax(0, 1fr) auto;
}

.group-chat-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(107, 227, 215, 0.18);
    border-radius: 10px;
    background: rgba(107, 227, 215, 0.12);
    color: #d8fcf8;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.group-chat-message.is-own .group-chat-avatar {
    order: 2;
    border-color: rgba(255, 150, 93, 0.18);
    background: rgba(255, 150, 93, 0.14);
    color: #ffe2d3;
}

.group-chat-bubble {
    display: grid;
    gap: 8px;
    max-width: min(100%, 580px);
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.group-chat-message.is-own .group-chat-bubble {
    order: 1;
    justify-self: end;
    border-color: rgba(255, 150, 93, 0.16);
    background: rgba(255, 150, 93, 0.08);
}

.group-chat-bubble-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.group-chat-bubble-head strong {
    font-size: 0.95rem;
}

.group-chat-bubble-head span {
    color: var(--muted);
    font-size: 0.8rem;
    white-space: nowrap;
}

.group-chat-bubble p {
    margin: 0;
    color: #e8f1f4;
    line-height: 1.6;
    white-space: pre-wrap;
}

.group-chat-empty {
    padding: 18px;
}

.group-chat-composer {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.group-chat-field textarea {
    min-height: 108px;
}

.group-chat-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.setlist-player {
    overflow: hidden;
    width: min(calc(100% - 24px), 920px);
    padding: 10px 12px;
    border-radius: 14px;
    border-color: rgba(107, 227, 215, 0.18);
    background:
        radial-gradient(circle at top left, rgba(255, 150, 93, 0.14), transparent 24%),
        radial-gradient(circle at top right, rgba(107, 227, 215, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(9, 22, 31, 0.96), rgba(4, 11, 16, 0.98));
    box-shadow:
        0 22px 50px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.setlist-player::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, rgba(107, 227, 215, 0.9), rgba(255, 150, 93, 0.88));
}

.setlist-player-main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.setlist-player-audio {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.player-main-button,
.player-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 38px;
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    transition: background-color 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.player-main-button {
    min-width: 44px;
    min-height: 44px;
    background: linear-gradient(135deg, rgba(107, 227, 215, 0.94), rgba(255, 150, 93, 0.9));
    color: #041019;
    box-shadow: 0 12px 24px rgba(107, 227, 215, 0.18);
}

.player-main-button[data-state="pause"] {
    background: rgba(107, 227, 215, 0.14);
    color: #d8fcf8;
    border-color: rgba(107, 227, 215, 0.26);
    box-shadow: none;
}

.player-icon-button[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

.player-close-button {
    border-color: rgba(255, 123, 123, 0.18);
    color: #ffd0d0;
}

.setlist-player-track {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.setlist-player-track-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.setlist-player-track strong {
    min-width: 0;
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.setlist-player-track p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.setlist-player-mini-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.player-icon-button.is-active {
    border-color: rgba(107, 227, 215, 0.3);
    background: rgba(107, 227, 215, 0.14);
    color: #d8fcf8;
}

.setlist-player-progress {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 0.74rem;
}

.player-seek {
    width: 100%;
    margin: 0;
    appearance: none;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    outline: 0;
}

.player-seek::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-warm));
}

.player-seek::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-warm));
}

.player-seek::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.player-seek::-moz-range-track {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.panel,
.hero-copy,
.hero-stage,
.point-card,
.mini-panel,
.signal-card,
.player-shell,
.empty-card,
.list-card,
.inset-card,
.song-card,
.status-card,
.stat-card,
.info-strip,
.modal-card {
    border-radius: 16px;
}

.site-header {
    border-radius: 16px;
}

.ghost-link,
.ghost-button,
.secondary-button,
.primary-button,
.tab-button,
.eyebrow,
.card-tag,
.feature-index,
.card-badge,
.song-order {
    border-radius: 10px;
}

.brand-mark,
.status-icon,
.stat-icon {
    border-radius: 8px;
}

.field input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.field select,
.field textarea,
.field input[type="file"],
.radio-group label,
.chip-option span,
.token-list span {
    border-radius: 12px;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: end center;
    padding: 16px;
    background: rgba(4, 10, 15, 0.72);
    backdrop-filter: blur(10px);
}

.modal-backdrop[hidden] {
    display: none !important;
}

.modal-card {
    width: min(100%, 760px);
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(8, 20, 29, 0.96);
    box-shadow: var(--shadow);
}

.modal-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.modal-head h2 {
    margin: 10px 0 0;
    font-size: clamp(1.4rem, 5vw, 2rem);
    line-height: 1.08;
}

body.modal-open {
    overflow: hidden;
}

@keyframes eqBounce {
    0%,
    100% {
        transform: scaleY(0.72);
        opacity: 0.7;
    }
    50% {
        transform: scaleY(1.08);
        opacity: 1;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes floatSpotlight {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(18px) scale(1.05);
    }
}

@keyframes pulseOrbit {
    0% {
        transform: translateX(50%) scale(0.9);
        opacity: 0.2;
    }
    60% {
        opacity: 0.4;
    }
    100% {
        transform: translateX(50%) scale(1.2);
        opacity: 0;
    }
}

@media (max-width: 719px) {
    body.has-setlist-player .site-shell {
        padding-bottom: 156px;
    }

    .group-chat-thread {
        max-height: none;
        padding: 14px;
    }

    .group-chat-message,
    .group-chat-message.is-own {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .group-chat-message.is-own .group-chat-avatar,
    .group-chat-message.is-own .group-chat-bubble {
        order: initial;
    }

    .group-chat-bubble,
    .group-chat-message.is-own .group-chat-bubble {
        max-width: 100%;
        justify-self: stretch;
    }

    .group-chat-bubble-head,
    .group-chat-actions,
    .rehearsal-head,
    .rehearsal-title-block,
    .rehearsal-comment-head,
    .comment-bubble-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .song-card-top {
        grid-template-columns: 1fr;
    }

    .song-actions {
        justify-content: flex-start;
    }

    .song-comment-thread {
        max-height: none;
    }

    .setlist-player {
        width: min(calc(100% - 16px), 920px);
        bottom: 8px;
        padding: 10px;
        border-radius: 12px;
    }

    .setlist-player-main {
        width: 100%;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .player-main-button {
        width: 100%;
    }

    .setlist-player-track-head {
        width: 100%;
        align-items: flex-start;
        flex-direction: column;
    }

    .setlist-player-mini-actions {
        width: 100%;
        justify-content: space-between;
    }

    .player-icon-button {
        flex: 1 1 25%;
    }

    .setlist-player-progress {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
    }
}

@media (min-width: 720px) {
    .site-shell {
        padding: 22px 24px 72px;
    }

    .hero {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: 24px;
        min-height: calc(100vh - 140px);
    }

    .feature-grid,
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
    }

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

    .stat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

    .auth-shell {
        grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
        align-items: start;
    }

    .dashboard-hero {
        grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
        align-items: center;
    }

    .modal-backdrop {
        place-items: center;
    }
}

@media (max-width: 520px) {
    .site-shell {
        padding: 14px 12px 40px;
    }

    .site-header {
        align-items: flex-start;
        padding: 14px;
        border-radius: 16px;
    }

    .brand {
        width: 100%;
    }

    .header-actions {
        width: 100%;
    }

    .header-actions > a,
    .header-actions > form {
        flex: 1 1 calc(50% - 5px);
    }

    .header-actions .ghost-link,
    .header-actions .ghost-button {
        width: 100%;
        min-height: 42px;
        padding-inline: 14px;
    }

    .panel,
    .hero-copy,
    .hero-stage {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .auth-intro h1 {
        font-size: clamp(1.9rem, 8vw, 2.8rem);
    }

    .section-title-row h2 {
        line-height: 1.2;
    }

    .form-actions > * {
        flex: 1 1 100%;
    }
}

/* Light Minimal Refresh */

:root {
    color-scheme: light;
    --bg: #f3f6fb;
    --bg-soft: #ecf1f7;
    --panel: rgba(255, 255, 255, 0.96);
    --panel-strong: rgba(255, 255, 255, 0.98);
    --line: #dbe4ee;
    --text: #122033;
    --muted: #66758b;
    --accent: #2563eb;
    --accent-strong: #1d4ed8;
    --accent-warm: #0f9d8a;
    --accent-soft: #eef4ff;
    --danger: #dc2626;
    --success: #059669;
    --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

html {
    background: var(--bg);
}

body {
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%),
        radial-gradient(circle at bottom right, rgba(15, 157, 138, 0.08), transparent 24%),
        linear-gradient(180deg, #f7f9fd 0%, #eef3f9 100%);
}

body::before {
    background:
        radial-gradient(circle, rgba(37, 99, 235, 0.08) 1px, transparent 1px),
        linear-gradient(transparent, transparent);
    background-size: 24px 24px;
    opacity: 0.55;
}

body.has-setlist-player .site-shell {
    padding-bottom: 118px;
}

a {
    color: inherit;
}

.site-shell {
    width: min(100%, 1280px);
    padding: 20px 16px 56px;
}

.site-header {
    top: 14px;
    gap: 14px;
    margin-bottom: 24px;
    padding: 12px 14px;
    border: 1px solid rgba(219, 228, 238, 0.9);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #172033, #2563eb);
    color: #fff;
    box-shadow: none;
}

.brand-copy strong {
    font-size: 1.02rem;
    letter-spacing: -0.03em;
    text-transform: none;
}

.brand-copy small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.74rem;
}

.header-actions {
    gap: 10px;
}

.site-menu,
.action-menu {
    position: relative;
}

.site-menu summary,
.action-menu summary {
    list-style: none;
}

.site-menu summary::-webkit-details-marker,
.action-menu summary::-webkit-details-marker {
    display: none;
}

.menu-toggle {
    min-width: 0;
}

.menu-caret {
    transition: transform 180ms ease;
}

.site-menu[open] .menu-caret,
.action-menu[open] .menu-caret {
    transform: rotate(180deg);
}

.site-menu:not([open]) .menu-sheet,
.action-menu:not([open]) .menu-sheet {
    display: none;
}

.menu-sheet {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 40;
    display: grid;
    gap: 4px;
    min-width: 220px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel-strong);
    box-shadow: var(--shadow);
}

.menu-sheet form {
    margin: 0;
}

.menu-link,
.menu-link-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    font-weight: 700;
    text-align: left;
}

.menu-link:hover,
.menu-link-button:hover {
    background: var(--bg-soft);
}

.ghost-link,
.ghost-button,
.secondary-button,
.primary-button {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 14px;
    box-shadow: none;
}

.primary-button {
    border-color: rgba(37, 99, 235, 0.12);
    background: linear-gradient(180deg, #2563eb, #1d4ed8);
    color: #fff;
}

.secondary-button {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
}

.ghost-button,
.ghost-link {
    border: 1px solid transparent;
    background: #f5f8fc;
    color: #334155;
}

.ghost-link.inline-link {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.ghost-link:hover {
    transform: translateY(-1px);
}

.flash-stack {
    gap: 12px;
    margin-bottom: 22px;
}

.flash {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    color: var(--text);
}

.flash-success {
    border-color: #ccebdc;
    background: #f2fbf6;
    color: #166534;
}

.flash-error {
    border-color: #f5d0d0;
    background: #fff6f6;
    color: #b42318;
}

.flash-info {
    border-color: #dbeafe;
    background: #f4f8ff;
    color: #1d4ed8;
}

.panel,
.hero-copy,
.hero-stage,
.point-card,
.mini-panel,
.signal-card,
.player-shell,
.feature-card,
.dashboard-card,
.preview-card,
.empty-card,
.list-card,
.song-card,
.status-card,
.stat-card,
.info-strip,
.inset-card,
.modal-card {
    border-color: var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.panel {
    padding: 22px 20px;
}

.hero {
    gap: 18px;
    align-items: start;
    min-height: auto;
    padding: 4px 0 20px;
}

.hero-copy,
.hero-stage,
.preview-card {
    background: var(--panel-strong);
}

.hero-copy h1,
.auth-intro h1,
.dashboard-hero h1 {
    margin: 12px 0 12px;
    color: var(--text);
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-copy h1 span {
    color: var(--accent);
}

.hero-copy p,
.auth-intro p,
.preview-card p,
.feature-card p,
.dashboard-hero p,
.dashboard-card p,
.list-card p,
.empty-card,
.status-card span,
.point-card span,
.mini-panel span,
.signal-card span {
    color: var(--muted);
}

.eyebrow,
.card-tag,
.feature-index {
    padding: 7px 12px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
}

.hero-points,
.feature-grid,
.dashboard-grid,
.stat-grid,
.stack-list,
.split-layout,
.content-stack {
    gap: 14px;
}

.stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.compact-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.form-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.point-card,
.mini-panel,
.signal-card,
.status-card {
    padding: 16px;
    border-radius: 18px;
    background: #f8fafc;
    box-shadow: none;
}

.point-card strong,
.mini-panel strong,
.signal-card strong,
.status-card strong {
    color: var(--text);
}

.spotlight,
.pulse-orbit {
    display: none;
}

.hero-art {
    min-height: auto;
    padding: 0;
}

.hero-stage {
    gap: 14px;
    min-height: auto;
    padding: 22px;
    border-radius: 24px;
    overflow: hidden;
}

.hero-stage::before {
    display: none;
}

.signal-card {
    width: 100%;
}

.signal-card span,
.mini-panel small,
.status-card small {
    color: var(--accent);
    font-size: 0.74rem;
    letter-spacing: 0.02em;
}

.eq-bars {
    height: 92px;
}

.eq-bars span {
    border-radius: 999px 999px 8px 8px;
    background: linear-gradient(180deg, #60a5fa, #22c55e);
}

.player-shell {
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
    background: #f8fafc;
}

.vinyl {
    background:
        radial-gradient(circle at center, #fff 0 10px, rgba(96, 165, 250, 0.85) 10px 16px, #dbeafe 16px 100%);
    box-shadow:
        inset 0 0 0 8px rgba(37, 99, 235, 0.06),
        inset 0 0 0 24px rgba(15, 23, 42, 0.04);
}

.player-meta strong {
    color: var(--text);
}

.player-meta span {
    color: var(--accent);
}

.chat-bubbles span {
    border-radius: 16px;
    background: #eef4ff;
    color: #1e3a8a;
}

.chat-bubbles span:last-child {
    background: #ecfeff;
    color: #115e59;
}

.section-head h2,
.preview-card h2,
.dashboard-card h2,
.form-panel h2 {
    color: var(--text);
    letter-spacing: -0.04em;
}

.feature-card h3,
.dashboard-card h3 {
    color: var(--text);
}

.preview-card {
    background: var(--panel-strong);
}

.auth-page,
.dashboard-page {
    padding-top: 4px;
}

.auth-shell {
    gap: 16px;
}

.auth-shell.single-column {
    max-width: 760px;
}

.auth-shell.single-column .auth-intro h1 {
    max-width: 13ch;
}

.section-title-row,
.field-group {
    gap: 8px;
}

.section-title-row h2 {
    color: var(--text);
}

.section-title-row span,
.field-label,
.muted-block,
.muted-inline {
    color: var(--muted);
}

.field span,
.choice-field legend {
    color: #334155;
}

.field input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.field select,
.field textarea {
    border-color: var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--text);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.field input:not([type="radio"]):not([type="checkbox"]):not([type="file"]):focus,
.field select:focus,
.field textarea:focus {
    border-color: #93c5fd;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.field input[type="file"] {
    border-color: #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    color: var(--muted);
}

.field input[type="file"]::file-selector-button {
    border-radius: 10px;
    background: #e2e8f0;
    color: var(--text);
}

.chip-option span,
.token-list span,
.radio-group label {
    border-color: var(--line);
    border-radius: 14px;
    background: #f8fafc;
    color: #334155;
}

.chip-option input:checked + span {
    border-color: #bfdbfe;
    background: #eef4ff;
    color: var(--accent);
    box-shadow: none;
}

.radio-group label {
    min-height: 44px;
}

.dashboard-hero {
    gap: 18px;
    background: var(--panel-strong);
}

.status-card {
    background: #f8fafc;
}

.status-card-head {
    align-items: center;
}

.status-icon,
.stat-icon,
.player-badge,
.rehearsal-icon-badge {
    width: 40px;
    height: 40px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #eef4ff;
    color: var(--accent);
    box-shadow: none;
}

.stat-card {
    padding: 18px;
    border-radius: 18px;
    background: var(--panel);
}

.stat-card strong {
    margin: 10px 0 4px;
    font-size: clamp(1.8rem, 4vw, 2.3rem);
    color: var(--text);
}

.tab-shell {
    gap: 18px;
    padding: 20px;
    background: var(--panel-strong);
}

.tabbar {
    position: sticky;
    top: 90px;
    z-index: 9;
    gap: 6px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(12px);
}

.tab-button {
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
}

.tab-button.is-active {
    background: #fff;
    color: var(--text);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.group-page .section-header {
    margin-bottom: 14px;
    padding-bottom: 0;
    border-bottom: 0;
}

.empty-card,
.list-card {
    border-radius: 16px;
    background: #f8fafc;
}

.list-card {
    gap: 8px;
}

.list-card-head strong {
    color: var(--text);
}

.card-badge {
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--accent);
}

.meta-row {
    gap: 8px 14px;
    color: var(--muted);
    font-size: 0.86rem;
}

.song-card {
    padding: 16px;
    border-radius: 20px;
    background: var(--panel);
}

.song-card.is-open,
.song-card.is-current {
    border-color: #bfdbfe;
    background: #fff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.song-order {
    min-width: 36px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--accent);
}

.song-card.is-current .song-order {
    background: #dbeafe;
    color: var(--accent-strong);
}

.song-meta-line {
    gap: 6px 12px;
    color: var(--muted);
    font-size: 0.84rem;
}

.song-caret {
    color: var(--muted);
}

.song-panel {
    gap: 14px;
    margin-top: 16px;
    padding-top: 16px;
    border-top-color: #e8eef5;
}

.info-strip,
.song-comment-shell,
.group-chat-composer {
    border-radius: 14px;
    background: #f8fafc;
}

.info-strip strong,
.group-chat-bubble-head strong,
.comment-bubble-head strong {
    color: var(--text);
}

.song-comment-shell {
    border-color: #e4ebf3;
}

.song-comment-thread {
    max-height: 240px;
}

.comment-bubble {
    border-color: #e4ebf3;
    background: #fff;
}

.rehearsal-card {
    position: relative;
    gap: 16px;
    padding: 18px 18px 18px 22px;
    border-radius: 20px;
    background: #fff;
}

.rehearsal-card::before {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 0;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #60a5fa, #22c55e);
}

.rehearsal-head,
.rehearsal-title-block {
    gap: 14px;
}

.rehearsal-detail-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.rehearsal-badge.is-today {
    border: 1px solid #ccfbf1;
    background: #ecfeff;
    color: #0f766e;
}

.rehearsal-badge.is-upcoming {
    border: 1px solid #dbeafe;
    background: #eef4ff;
    color: var(--accent);
}

.rehearsal-badge.is-past {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: var(--muted);
}

.group-chat-thread {
    max-height: 420px;
    border-radius: 16px;
    background: #f8fafc;
}

.group-chat-avatar {
    border-color: #dbeafe;
    background: #eef4ff;
    color: var(--accent);
}

.group-chat-message.is-own .group-chat-avatar {
    border-color: #c7f0ea;
    background: #ecfeff;
    color: #0f766e;
}

.group-chat-bubble {
    border-color: #e4ebf3;
    border-radius: 16px;
    background: #fff;
}

.group-chat-message.is-own .group-chat-bubble {
    border-color: #dbeafe;
    background: #eef4ff;
}

.setlist-player {
    width: min(calc(100% - 24px), 860px);
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
}

.setlist-player::before {
    height: 1px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.36), rgba(15, 157, 138, 0.36));
}

.player-main-button {
    background: linear-gradient(180deg, #2563eb, #1d4ed8);
    border-color: rgba(37, 99, 235, 0.15);
    color: #fff;
    box-shadow: none;
}

.player-main-button[data-state="pause"] {
    background: #eef4ff;
    color: var(--accent);
    border-color: #bfdbfe;
}

.player-icon-button {
    border-color: var(--line);
    background: #f8fafc;
    color: #334155;
}

.player-icon-button.is-active {
    border-color: #bfdbfe;
    background: #eef4ff;
    color: var(--accent);
}

.player-close-button {
    border-color: #fed7d7;
    color: #b91c1c;
}

.setlist-player-track strong {
    color: var(--text);
}

.setlist-player-track p,
.setlist-player-progress {
    color: var(--muted);
}

.player-seek,
.player-seek::-webkit-slider-runnable-track,
.player-seek::-moz-range-track {
    background: #dbe4ee;
}

.modal-backdrop {
    background: rgba(15, 23, 42, 0.24);
    backdrop-filter: blur(8px);
}

.modal-card {
    border-radius: 22px;
    background: var(--panel-strong);
}

.groups-page .split-layout,
.dashboard-grid,
.feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.groups-page .split-layout {
    align-items: start;
}

.auth-shell,
.dashboard-hero,
.hero {
    grid-template-columns: minmax(0, 1fr);
}

.action-menu-sheet {
    min-width: 210px;
}

@media (min-width: 960px) {
    .hero {
        grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    }

    .dashboard-hero {
        grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    }

    .groups-page .split-layout {
        grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
    }

    .auth-shell {
        grid-template-columns: minmax(300px, 0.76fr) minmax(0, 1.24fr);
        align-items: start;
    }
}

@media (max-width: 719px) {
    body.has-setlist-player .site-shell {
        padding-bottom: 146px;
    }

    .site-shell {
        padding: 16px 12px 44px;
    }

    .site-header {
        top: 10px;
        padding: 12px;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .header-primary-link {
        flex: 1 1 auto;
    }

    .site-menu,
    .action-menu {
        flex: 1 1 auto;
    }

    .menu-toggle {
        width: 100%;
    }

    .menu-sheet {
        left: 0;
        right: 0;
        min-width: 0;
    }

    .hero-stage,
    .panel {
        padding: 18px 16px;
    }

    .tabbar {
        top: 82px;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .tab-button {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .song-comment-thread,
    .group-chat-thread {
        max-height: none;
    }

    .setlist-player {
        width: min(calc(100% - 16px), 860px);
    }
}

@media (max-width: 520px) {
    .brand {
        width: auto;
    }

    .header-actions {
        flex-wrap: nowrap;
    }

    .header-primary-link,
    .site-menu,
    .action-menu {
        flex: 1 1 0;
    }

    .hero-copy h1,
    .auth-intro h1,
    .dashboard-hero h1 {
        font-size: clamp(1.9rem, 9vw, 2.9rem);
    }

    .group-page .hero-actions > * {
        flex: 1 1 calc(50% - 6px);
    }
}

/* Soft Music App Concept */

:root {
    --bg: #edf5ff;
    --bg-soft: #f5f9ff;
    --panel: rgba(255, 255, 255, 0.92);
    --panel-strong: rgba(255, 255, 255, 0.98);
    --line: rgba(167, 188, 216, 0.28);
    --text: #273652;
    --muted: #75849c;
    --accent: #78a6f4;
    --accent-strong: #5d8ee6;
    --accent-warm: #85d9cb;
    --accent-soft: #eef5ff;
    --shadow: 0 22px 55px rgba(111, 130, 164, 0.18);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
}

body {
    position: relative;
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 12%, rgba(129, 188, 255, 0.55), transparent 22%),
        radial-gradient(circle at 92% 8%, rgba(143, 230, 208, 0.48), transparent 24%),
        linear-gradient(135deg, #dff0ff 0%, #eaf5ff 42%, #e3f8ef 100%);
}

body::before {
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.42) 0 1px, transparent 1px),
        linear-gradient(transparent, transparent);
    background-size: 22px 22px;
    opacity: 0.34;
}

body::after {
    content: "";
    position: fixed;
    inset: auto -10% -18% auto;
    width: 52vw;
    height: 52vw;
    min-width: 300px;
    min-height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

body.has-setlist-player .site-shell {
    padding-bottom: 240px;
}

.site-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 1180px);
    padding: 26px 16px 130px;
}

.site-header {
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 24px 50px rgba(111, 130, 164, 0.16);
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: linear-gradient(135deg, #76a7f5 0%, #9fe5d8 100%);
    color: #20324f;
    font-weight: 900;
}

.brand-copy strong {
    font-size: 1.08rem;
}

.brand-copy small {
    color: #60748f;
}

.header-actions {
    margin-left: auto;
}

.header-primary-link.is-current,
.menu-link.is-current {
    color: var(--accent-strong);
}

.menu-link.is-current,
.menu-link-button:hover,
.menu-link:hover {
    background: linear-gradient(180deg, #f2f7ff, #ffffff);
}

.menu-sheet {
    padding: 10px;
    border-radius: 24px;
    border-color: rgba(181, 198, 221, 0.38);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 26px 56px rgba(111, 130, 164, 0.18);
}

.ghost-link,
.ghost-button,
.secondary-button,
.primary-button {
    min-height: 46px;
    border-radius: 18px;
    font-weight: 800;
}

.primary-button {
    border: 1px solid rgba(125, 168, 241, 0.15);
    background: linear-gradient(135deg, #7aabf5 0%, #70d7c9 100%);
    color: #1f314f;
    box-shadow: 0 14px 28px rgba(120, 166, 244, 0.2);
}

.secondary-button {
    background: rgba(255, 255, 255, 0.85);
}

.ghost-button,
.ghost-link {
    background: rgba(244, 248, 255, 0.88);
}

.panel,
.hero-copy,
.hero-stage,
.point-card,
.mini-panel,
.signal-card,
.player-shell,
.feature-card,
.dashboard-card,
.preview-card,
.empty-card,
.list-card,
.song-card,
.status-card,
.stat-card,
.info-strip,
.inset-card,
.modal-card {
    border: 1px solid rgba(190, 206, 228, 0.42);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.93));
    box-shadow: var(--shadow);
}

.panel,
.hero-copy,
.hero-stage,
.dashboard-hero,
.tab-shell,
.modal-card {
    border-radius: 34px;
}

.panel {
    padding: 24px 22px;
}

.hero-copy,
.dashboard-hero {
    background:
        radial-gradient(circle at top right, rgba(133, 217, 203, 0.14), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.93));
}

.hero-stage {
    position: relative;
    max-width: 430px;
    margin-inline: auto;
    padding: 24px;
    overflow: hidden;
}

.hero-stage::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 14px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(120, 166, 244, 0.18), rgba(133, 217, 203, 0.18));
}

.point-card,
.mini-panel,
.signal-card,
.status-card,
.stat-card,
.feature-card,
.preview-card,
.list-card,
.empty-card,
.dashboard-card,
.song-card,
.rehearsal-card,
.group-chat-thread,
.group-chat-composer,
.song-comment-shell,
.inset-card {
    border-radius: 28px;
}

.point-card,
.mini-panel,
.signal-card,
.status-card {
    background: rgba(255, 255, 255, 0.9);
}

.player-shell {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 14px;
    background: #ffffff;
}

.vinyl {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #ffffff 0 10px, rgba(120, 166, 244, 0.75) 10px 18px, #e7f0ff 18px 100%);
    box-shadow:
        inset 0 0 0 8px rgba(120, 166, 244, 0.08),
        inset 0 0 0 24px rgba(133, 217, 203, 0.08);
}

.signal-card span,
.mini-panel small,
.status-card small {
    color: var(--accent-strong);
}

.eq-bars span {
    background: linear-gradient(180deg, #7aa9f5, #85d9cb);
}

.dashboard-grid,
.feature-grid,
.split-layout,
.content-stack,
.stack-list,
.hero-points,
.stat-grid,
.tab-shell {
    gap: 18px;
}

.dashboard-card,
.feature-card,
.preview-card,
.form-panel {
    padding: 24px;
}

.dashboard-card h2,
.preview-card h2,
.section-head h2,
.section-header h2,
.form-panel h2 {
    letter-spacing: -0.05em;
}

.card-tag,
.eyebrow,
.feature-index,
.card-badge,
.setlist-player-kicker {
    background: linear-gradient(180deg, #f2f7ff, #ffffff);
    border-color: rgba(166, 190, 225, 0.48);
    color: var(--accent-strong);
}

.tab-shell {
    background: rgba(255, 255, 255, 0.72);
}

.tabbar {
    top: 94px;
    gap: 8px;
    padding: 8px;
    border-radius: 22px;
    border-color: rgba(176, 195, 222, 0.32);
    background: rgba(244, 248, 255, 0.88);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.tab-button {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 16px;
    color: #71839c;
}

.tab-button.is-active {
    background: #ffffff;
    color: var(--text);
    box-shadow: 0 14px 28px rgba(113, 131, 156, 0.12);
}

.list-card,
.dashboard-card,
.feature-card,
.preview-card,
.song-card,
.rehearsal-card,
.stat-card,
.status-card {
    overflow: hidden;
}

.song-card {
    position: relative;
    padding: 18px;
    border-color: rgba(190, 206, 228, 0.46);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.song-card::before,
.rehearsal-card::before {
    content: "";
    position: absolute;
    top: -32px;
    right: -24px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(122, 169, 245, 0.18), transparent 70%);
    pointer-events: none;
}

.song-card.is-open,
.song-card.is-current {
    border-color: rgba(122, 169, 245, 0.42);
    box-shadow: 0 24px 46px rgba(111, 130, 164, 0.18);
}

.song-card-top {
    gap: 18px;
    align-items: center;
}

.song-title-line strong {
    font-size: 1.08rem;
}

.song-order {
    background: linear-gradient(135deg, #edf4ff, #ffffff);
    color: var(--accent-strong);
}

.song-meta-line {
    gap: 8px;
}

.song-meta-line span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f4f7fc;
    color: #70829b;
    font-size: 0.8rem;
}

.song-panel {
    gap: 16px;
    margin-top: 18px;
    padding-top: 18px;
    border-top-color: rgba(200, 214, 234, 0.5);
}

.info-strip,
.song-comment-shell,
.group-chat-composer,
.group-chat-thread,
.comment-bubble {
    background: linear-gradient(180deg, #f7faff, #ffffff);
}

.song-comment-shell,
.group-chat-composer {
    border: 1px solid rgba(194, 209, 230, 0.42);
}

.rehearsal-card {
    padding: 22px;
    border-color: rgba(190, 206, 228, 0.46);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.rehearsal-card::before {
    top: -24px;
    left: auto;
    bottom: auto;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(133, 217, 203, 0.22), transparent 72%);
}

.rehearsal-head,
.rehearsal-title-block {
    position: relative;
    z-index: 1;
}

.group-chat-thread {
    padding: 18px;
}

.group-chat-bubble,
.comment-bubble {
    border-color: rgba(194, 209, 230, 0.42);
    border-radius: 22px;
}

.group-chat-message.is-own .group-chat-bubble {
    background: linear-gradient(180deg, #eef5ff, #ffffff);
}

.mobile-dock {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: min(calc(100% - 22px), 390px);
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 26px 60px rgba(111, 130, 164, 0.2);
    backdrop-filter: blur(20px);
    transform: translateX(-50%);
}

.dock-link {
    display: grid;
    justify-items: center;
    gap: 6px;
    min-height: 58px;
    padding: 9px 8px;
    border-radius: 22px;
    color: #77879f;
    font-size: 0.74rem;
    font-weight: 800;
    text-align: center;
}

.dock-link.is-active {
    background: linear-gradient(180deg, #f1f6ff, #ffffff);
    color: var(--accent-strong);
    box-shadow: 0 12px 24px rgba(111, 130, 164, 0.12);
}

.dock-link.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.dock-link .icon {
    width: 20px;
    height: 20px;
}

.setlist-player {
    bottom: 94px;
    width: min(calc(100% - 22px), 780px);
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(246, 250, 255, 0.95));
    box-shadow: 0 26px 60px rgba(111, 130, 164, 0.22);
    overflow: hidden;
}

.setlist-player::before {
    inset: auto 14px 10px 14px;
    height: 24px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(122, 169, 245, 0.16), rgba(133, 217, 203, 0.18));
}

.setlist-player-main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.setlist-player-cover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 20px;
    background: linear-gradient(135deg, #7aa9f5 0%, #85d9cb 100%);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(120, 166, 244, 0.24);
}

.setlist-player-cover-text {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.player-main-button {
    width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #7aa9f5 0%, #70d7c9 100%);
    color: #1f314f;
}

.player-main-button[data-state="pause"] {
    background: linear-gradient(180deg, #eef5ff, #ffffff);
    color: var(--accent-strong);
}

.setlist-player-track {
    gap: 8px;
    min-width: 0;
}

.setlist-player-track-head {
    align-items: flex-start;
}

.setlist-player-track-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.setlist-player-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 6px 10px;
    border: 1px solid rgba(166, 190, 225, 0.4);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}

.setlist-player-track strong {
    font-size: 1rem;
    line-height: 1.15;
}

.setlist-player-track p,
.setlist-player-progress {
    color: #73849d;
}

.setlist-player-mini-actions {
    gap: 8px;
}

.player-icon-button {
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 22px rgba(111, 130, 164, 0.12);
}

.player-close-button {
    background: #fff5f5;
}

.player-seek,
.player-seek::-webkit-slider-runnable-track,
.player-seek::-moz-range-track {
    background: #dce7f7;
}

.player-seek::-webkit-slider-thumb {
    background: var(--accent-strong);
}

.player-seek::-moz-range-thumb {
    background: var(--accent-strong);
}

.auth-shell.single-column {
    max-width: 560px;
    margin-inline: auto;
}

.route-login .auth-intro,
.route-register .auth-intro {
    background:
        radial-gradient(circle at top right, rgba(122, 169, 245, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.93));
}

@media (max-width: 719px) {
    body.has-setlist-player .site-shell {
        padding-bottom: 228px;
    }

    .site-shell {
        padding: 16px 12px 116px;
    }

    .site-header {
        top: 12px;
        padding: 12px;
        border-radius: 26px;
    }

    .header-primary-link {
        display: none;
    }

    .hero-copy h1,
    .auth-intro h1,
    .dashboard-hero h1 {
        font-size: clamp(2.2rem, 11vw, 3.15rem);
        line-height: 1.01;
    }

    .hero-stage,
    .panel,
    .dashboard-card,
    .feature-card,
    .preview-card,
    .form-panel,
    .song-card,
    .rehearsal-card {
        padding: 20px 18px;
        border-radius: 28px;
    }

    .mobile-dock {
        bottom: 12px;
        width: min(calc(100% - 16px), 430px);
        padding: 8px;
    }

    .dock-link {
        min-height: 54px;
        border-radius: 18px;
        font-size: 0.7rem;
    }

    .tabbar {
        top: 84px;
    }

    .setlist-player {
        bottom: 82px;
        width: min(calc(100% - 16px), 560px);
        padding: 12px;
        border-radius: 28px;
    }

    .setlist-player-main {
        grid-template-columns: auto auto minmax(0, 1fr);
        gap: 10px;
    }

    .setlist-player-cover {
        width: 48px;
        height: 48px;
        border-radius: 18px;
    }

    .setlist-player-track-head {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .setlist-player-mini-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .song-card-top {
        grid-template-columns: minmax(0, 1fr);
    }

    .song-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .brand-copy small {
        display: none;
    }

    .panel,
    .dashboard-card,
    .feature-card,
    .preview-card,
    .song-card,
    .rehearsal-card,
    .form-panel,
    .hero-stage {
        padding: 18px 16px;
    }

    .mobile-dock {
        gap: 8px;
    }

    .setlist-player-main {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .setlist-player-cover {
        display: none;
    }

    .setlist-player-track strong {
        font-size: 0.94rem;
    }
}

/* Mobile Menu Flow Fix */

@media (max-width: 719px) {
    .site-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
    }

    .brand {
        width: auto;
        min-width: 0;
    }

    .header-actions {
        width: auto;
        margin-left: 0;
        justify-content: flex-end;
        flex-wrap: nowrap;
    }

    .site-header .site-menu,
    .site-header .action-menu {
        flex: 0 0 auto;
        width: auto;
    }

    .site-header .menu-toggle {
        width: auto;
        min-width: 112px;
    }

    .site-header .menu-sheet {
        left: auto;
        right: 0;
        width: min(260px, calc(100vw - 32px));
        min-width: 220px;
    }

    .group-page .hero-actions {
        gap: 10px;
        align-items: stretch;
    }

    .group-page .hero-actions > * {
        flex: 1 1 calc(50% - 5px);
    }

    .group-page .hero-actions > .action-menu {
        flex-basis: 100%;
    }

    .group-page .action-menu {
        width: 100%;
    }

    .group-page .action-menu .menu-toggle {
        width: 100%;
        justify-content: center;
    }

    .group-page .action-menu .menu-sheet {
        position: static;
        left: auto;
        right: auto;
        width: 100%;
        min-width: 0;
        margin-top: 10px;
        border-radius: 20px;
        box-shadow: none;
    }

    .group-page .action-menu .menu-link,
    .group-page .action-menu .menu-link-button {
        border-radius: 14px;
    }

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

@media (max-width: 520px) {
    .site-header .menu-toggle {
        min-width: 104px;
    }

    .group-page .hero-actions > * {
        flex: 1 1 100%;
    }

    .group-page .hero-actions > .primary-button,
    .group-page .hero-actions > .secondary-button,
    .group-page .hero-actions > .ghost-button {
        flex: 1 1 calc(50% - 5px);
    }
}

/* Minimal Player Tuning */

.setlist-player {
    width: min(calc(100% - 18px), 720px);
    padding: 10px 12px;
    border-radius: 26px;
}

.setlist-player::before {
    inset: auto 12px 8px 12px;
    height: 14px;
}

.setlist-player-main {
    gap: 10px;
}

.setlist-player-cover {
    width: 46px;
    height: 46px;
    border-radius: 16px;
}

.setlist-player-cover-text {
    font-size: 0.88rem;
}

.player-main-button {
    width: 42px;
    height: 42px;
    min-height: 42px;
    border-radius: 14px;
}

.setlist-player-track-copy {
    gap: 4px;
}

.setlist-player-kicker {
    padding: 4px 8px;
    font-size: 0.66rem;
}

.setlist-player-track strong {
    font-size: 0.95rem;
}

.setlist-player-track p {
    margin: 0;
    font-size: 0.8rem;
}

.setlist-player-progress {
    gap: 8px;
}

.player-icon-button {
    width: 34px;
    height: 34px;
    min-height: 34px;
    border-radius: 12px;
}

@media (max-width: 719px) {
    body.has-setlist-player .site-shell {
        padding-bottom: 186px;
    }

    .setlist-player {
        bottom: 80px;
        width: min(calc(100% - 12px), 520px);
        padding: 9px 10px 8px;
        border-radius: 22px;
    }

    .setlist-player::before {
        display: none;
    }

    .setlist-player-main {
        grid-template-columns: 38px minmax(0, 1fr) auto;
        gap: 8px;
    }

    .setlist-player-cover {
        display: none;
    }

    .player-main-button {
        width: 38px;
        height: 38px;
        min-height: 38px;
        border-radius: 12px;
    }

    .setlist-player-track {
        gap: 6px;
    }

    .setlist-player-track-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        align-items: center;
    }

    .setlist-player-track-copy {
        min-width: 0;
        gap: 2px;
    }

    .setlist-player-kicker {
        display: none;
    }

    .setlist-player-track strong,
    .setlist-player-track p {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .setlist-player-track strong {
        font-size: 0.88rem;
    }

    .setlist-player-track p {
        font-size: 0.72rem;
    }

    .setlist-player-mini-actions {
        gap: 6px;
        flex-wrap: nowrap;
    }

    .player-icon-button {
        width: 32px;
        height: 32px;
        min-height: 32px;
        border-radius: 10px;
        box-shadow: none;
    }

    .setlist-player-progress {
        gap: 6px;
        font-size: 0.72rem;
    }
}

@media (max-width: 520px) {
    body.has-setlist-player .site-shell {
        padding-bottom: 166px;
    }

    .setlist-player {
        bottom: 76px;
        width: calc(100% - 12px);
        padding: 8px 9px 7px;
        border-radius: 20px;
    }

    .setlist-player-main {
        grid-template-columns: 36px minmax(0, 1fr) auto;
        gap: 7px;
    }

    .player-main-button {
        width: 36px;
        height: 36px;
        min-height: 36px;
    }

    .setlist-player-mini-actions [data-player-prev],
    .setlist-player-mini-actions [data-player-next] {
        display: none;
    }

    .setlist-player-track strong {
        font-size: 0.84rem;
    }

    .setlist-player-track p,
    .setlist-player-progress {
        font-size: 0.68rem;
    }

    .player-icon-button {
        width: 30px;
        height: 30px;
        min-height: 30px;
        border-radius: 10px;
    }
}

/* Clean Group Workspace */

:root {
    --font-display: "SF Pro Display", "Avenir Next", "Helvetica Neue", sans-serif;
    --font-body: "SF Pro Text", "Avenir Next", "Helvetica Neue", sans-serif;
}

body {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.brand-copy strong,
.hero-copy h1,
.auth-intro h1,
.dashboard-hero h1,
.group-summary-copy h1,
.section-header h2,
.dashboard-card h2,
.preview-card h2,
.form-panel h2 {
    letter-spacing: -0.045em;
}

.group-page {
    gap: 16px;
}

.group-summary {
    padding: 20px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.95));
}

.group-summary-head {
    display: grid;
    gap: 18px;
    align-items: start;
}

.group-summary-copy h1 {
    margin: 12px 0 8px;
    font-size: clamp(2.4rem, 8vw, 3.65rem);
    line-height: 0.96;
}

.group-summary-copy p {
    max-width: 56ch;
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.group-summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.group-summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(185, 199, 223, 0.46);
    border-radius: 999px;
    background: rgba(244, 248, 255, 0.9);
    color: #5e7390;
    font-size: 0.8rem;
    font-weight: 700;
}

.group-summary-actions {
    display: grid;
    gap: 10px;
}

.group-summary-side {
    display: grid;
    gap: 12px;
}

.group-cover-card {
    display: grid;
    gap: 10px;
}

.group-cover-image,
.group-cover-fallback {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(188, 204, 228, 0.42);
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #dfefff, #e9fbf4);
}

.group-cover-image {
    object-fit: cover;
}

.group-cover-fallback {
    display: grid;
    place-items: center;
    position: relative;
}

.group-cover-fallback span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    color: #486588;
    font-size: 1.25rem;
    font-weight: 800;
}

.cover-upload-button {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(191, 205, 226, 0.92);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: #32496c;
    box-shadow: 0 12px 24px rgba(102, 126, 161, 0.18);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cover-upload-button:hover,
.cover-upload-button:focus-visible {
    transform: translateY(-1px);
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(102, 126, 161, 0.22);
}

.cover-upload-button:focus-visible {
    outline: 2px solid rgba(121, 168, 255, 0.42);
    outline-offset: 2px;
}

.group-cover-copy {
    display: grid;
    gap: 4px;
}

.group-cover-copy strong {
    color: var(--text);
    font-size: 0.9rem;
}

.group-cover-copy span {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.group-summary-actions .primary-button,
.group-summary-actions .secondary-button,
.group-summary-actions .ghost-button {
    justify-content: center;
}

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

.group-mini-stat {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid rgba(188, 204, 228, 0.42);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
}

.group-mini-stat small {
    color: #7d8ea7;
    font-size: 0.74rem;
    font-weight: 700;
}

.group-mini-stat strong {
    color: var(--text);
    font-size: 1.55rem;
    line-height: 1;
}

.group-mini-stat span {
    color: var(--muted);
    font-size: 0.83rem;
}

.group-workspace {
    padding: 18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
}

.group-list-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.group-list-card-cover {
    width: 92px;
    height: 70px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, #dfefff, #e9fbf4);
    border: 1px solid rgba(188, 204, 228, 0.42);
}

.group-list-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.group-list-cover-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #54708f;
    font-size: 1rem;
    font-weight: 800;
}

.group-list-card-body {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.tabbar {
    position: sticky;
    top: 86px;
    z-index: 8;
    gap: 6px;
    padding: 6px;
    border-radius: 18px;
}

.tab-button {
    min-height: 40px;
    padding: 0 13px;
    font-size: 0.84rem;
    font-weight: 700;
}

.tab-button .icon {
    width: 0.88rem;
    height: 0.88rem;
}

.card-tag,
.eyebrow {
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.68rem;
    font-weight: 800;
}

.section-header {
    gap: 12px;
    margin-bottom: 14px;
}

.section-header h2 {
    margin: 8px 0 4px;
    font-size: clamp(1.35rem, 4.6vw, 1.8rem);
    line-height: 1.05;
}

.section-header .muted-block,
.section-header .muted-inline {
    font-size: 0.9rem;
}

.song-card::before,
.rehearsal-card::before,
.hero-stage::after,
body::after {
    display: none;
}

.song-card,
.rehearsal-card,
.group-chat-thread,
.group-chat-composer,
.song-comment-shell,
.info-strip,
.comment-bubble,
.list-card,
.empty-card {
    border-radius: 20px;
}

.song-card,
.rehearsal-card {
    padding: 16px;
}

.song-card-top {
    gap: 12px;
    align-items: start;
}

.song-title-line {
    gap: 8px;
}

.song-title-line strong {
    font-size: 1rem;
    line-height: 1.2;
}

.song-order {
    min-width: 32px;
    min-height: 24px;
    padding: 0 8px;
    font-size: 0.72rem;
}

.song-meta-line {
    gap: 6px 10px;
    margin-top: 2px;
}

.song-meta-line span {
    min-height: auto;
    padding: 0;
    background: transparent;
    color: #7b8ca3;
    font-size: 0.78rem;
}

.song-actions {
    gap: 8px;
}

.song-actions .small-button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.8rem;
}

.song-panel {
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
}

.info-strip,
.song-comment-shell,
.group-chat-composer {
    padding: 14px;
}

.info-strip strong,
.rehearsal-comment-head strong,
.comment-bubble-head strong,
.group-chat-bubble-head strong {
    font-size: 0.88rem;
}

.group-chat-shell {
    display: grid;
    gap: 14px;
}

.group-chat-thread {
    max-height: 420px;
    padding: 16px;
}

.group-chat-bubble,
.comment-bubble {
    padding: 12px 13px;
    color: var(--text);
    background: #ffffff;
}

.group-chat-message.is-own .group-chat-bubble {
    background: #eef5ff;
}

.group-chat-bubble-head,
.comment-bubble-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.group-chat-bubble-head strong,
.comment-bubble-head strong {
    color: #273652;
}

.group-chat-bubble-head span,
.comment-bubble-head span {
    color: #7d8ea7;
    font-size: 0.78rem;
    white-space: nowrap;
}

.group-chat-bubble p,
.comment-bubble p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #42536f;
    white-space: pre-wrap;
}

.group-chat-composer textarea,
.song-comment-form textarea,
.rehearsal-comment-form textarea,
.song-edit-form textarea {
    min-height: 96px;
}

.rehearsal-head {
    gap: 10px;
}

.rehearsal-title-block {
    gap: 10px;
}

.rehearsal-datetime strong {
    font-size: 0.98rem;
}

.rehearsal-meta {
    gap: 8px 12px;
    font-size: 0.82rem;
    color: #7c8ea6;
}

.rehearsal-detail-grid {
    gap: 12px;
}

.rehearsal-comments {
    gap: 12px;
}

.field span,
.choice-field legend {
    font-size: 0.85rem;
    font-weight: 700;
}

.field input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.field select,
.field textarea {
    padding: 13px 14px;
    border-radius: 14px;
    font-size: 0.95rem;
}

.primary-button,
.secondary-button,
.ghost-button,
.ghost-link {
    min-height: 42px;
    font-size: 0.88rem;
}

.small-button {
    min-height: 34px;
    font-size: 0.8rem;
}

.tab-panel[hidden] {
    display: none !important;
}

@media (min-width: 960px) {
    .group-summary-head {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    }

    .group-chat-shell {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
        align-items: start;
    }

    .group-chat-thread {
        min-height: 360px;
    }

    .group-chat-composer {
        position: sticky;
        top: 150px;
    }
}

@media (max-width: 719px) {
    .group-summary {
        padding: 18px 16px;
    }

    .group-summary-copy h1 {
        font-size: clamp(2.1rem, 10vw, 3rem);
    }

    .group-summary-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .group-summary-actions .ghost-button {
        grid-column: 1 / -1;
    }

    .group-workspace {
        padding: 14px;
    }

    .group-list-card {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 12px;
        align-items: start;
    }

    .group-list-card-cover {
        width: 72px;
        height: 60px;
        border-radius: 16px;
    }

    .tabbar {
        top: 82px;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    .tabbar::-webkit-scrollbar {
        display: none;
    }

    .tab-button {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .section-header {
        align-items: start;
    }

    .song-card-top {
        grid-template-columns: minmax(0, 1fr);
    }

    .song-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    body {
        font-size: 15px;
    }

    .group-summary-stats,
    .group-summary-actions {
        grid-template-columns: 1fr;
    }

    .group-summary-actions .ghost-button,
    .group-summary-actions .secondary-button,
    .group-summary-actions .primary-button {
        grid-column: auto;
    }

    .group-mini-stat {
        padding: 12px;
    }

    .group-mini-stat strong {
        font-size: 1.35rem;
    }

    .group-workspace {
        padding: 12px;
    }

    .group-summary-side {
        gap: 10px;
    }

    .group-list-card {
        grid-template-columns: 1fr;
    }

    .group-list-card-cover {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 8;
    }

    .section-header h2 {
        font-size: 1.45rem;
    }

    .song-card,
    .rehearsal-card,
    .group-chat-thread,
    .group-chat-composer,
    .song-comment-shell {
        border-radius: 18px;
    }
}

/* Compact Interface Pass */

html {
    font-size: 14px;
}

body {
    font-size: 14px;
    line-height: 1.42;
}

body.has-setlist-player .site-shell {
    padding-bottom: 146px;
}

.site-shell {
    max-width: 1140px;
    padding: 16px 12px 96px;
    gap: 12px;
}

.site-header {
    padding: 10px 12px;
    border-radius: 22px;
}

.brand {
    gap: 10px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 0.96rem;
}

.brand-copy strong {
    font-size: 0.94rem;
}

.brand-copy small {
    font-size: 0.63rem;
}

.panel,
.form-panel,
.modal-card,
.mini-panel,
.dashboard-hero,
.group-summary,
.group-workspace,
.auth-intro,
.status-card {
    padding: 18px 16px;
    border-radius: 22px;
}

.primary-button,
.secondary-button,
.ghost-button,
.ghost-link {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    gap: 6px;
    font-size: 0.82rem;
}

.small-button {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.74rem;
}

.hero-copy h1,
.auth-intro h1,
.dashboard-hero h1 {
    font-size: clamp(1.9rem, 5.8vw, 2.8rem);
}

.group-summary-copy h1 {
    margin: 10px 0 6px;
    font-size: clamp(1.95rem, 6vw, 2.75rem);
}

.group-summary-copy p,
.auth-intro p,
.dashboard-hero p,
.group-summary-copy span,
.muted-block,
.muted-inline,
.meta-row,
.list-card p {
    font-size: 0.82rem;
}

.group-summary-meta {
    margin-top: 12px;
}

.group-summary-chip {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.74rem;
}

.group-summary-side,
.group-summary-actions,
.group-summary-stats {
    gap: 10px;
}

.group-summary-stats {
    margin-top: 14px;
}

.group-mini-stat {
    padding: 12px;
    border-radius: 16px;
}

.group-mini-stat strong {
    font-size: 1.2rem;
}

.group-cover-card,
.group-cover-copy {
    gap: 8px;
}

.group-cover-image,
.group-cover-fallback {
    border-radius: 16px;
}

.group-cover-fallback span {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 1.05rem;
}

.group-workspace {
    padding: 14px;
    border-radius: 22px;
}

.group-list-card {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
}

.group-list-card-cover {
    width: 78px;
    height: 58px;
    border-radius: 14px;
}

.tabbar {
    top: 72px;
    gap: 4px;
    padding: 4px;
    border-radius: 14px;
}

.tab-button {
    min-height: 34px;
    padding: 0 11px;
    border-radius: 12px;
    font-size: 0.76rem;
}

.tab-button .icon {
    width: 0.82rem;
    height: 0.82rem;
}

.card-tag,
.eyebrow {
    min-height: 24px;
    padding: 0 8px;
    font-size: 0.62rem;
}

.section-header {
    margin-bottom: 10px;
}

.section-header h2,
.dashboard-card h2,
.form-panel h2 {
    margin: 6px 0 0;
    font-size: clamp(1.15rem, 3vw, 1.5rem);
}

.section-title-row {
    gap: 6px;
}

.field span,
.choice-field legend {
    font-size: 0.8rem;
}

.field input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.field select,
.field textarea {
    padding: 11px 12px;
    border-radius: 12px;
    font-size: 0.88rem;
}

.field textarea,
.song-comment-form textarea,
.rehearsal-comment-form textarea,
.group-chat-composer textarea,
.song-edit-form textarea {
    min-height: 84px;
}

.list-card,
.empty-card,
.song-card,
.rehearsal-card,
.group-chat-thread,
.group-chat-composer,
.song-comment-shell,
.info-strip,
.comment-bubble {
    border-radius: 16px;
}

.list-card,
.empty-card,
.song-card,
.rehearsal-card,
.group-chat-composer,
.song-comment-shell,
.info-strip {
    padding: 12px;
}

.song-card-top,
.song-actions,
.song-panel,
.group-chat-shell,
.rehearsal-head,
.rehearsal-title-block,
.rehearsal-detail-grid,
.rehearsal-comments {
    gap: 10px;
}

.song-title-line strong {
    font-size: 0.92rem;
}

.song-order {
    min-width: 28px;
    min-height: 22px;
    font-size: 0.68rem;
}

.song-meta-line span {
    font-size: 0.72rem;
}

.song-actions .small-button {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.74rem;
}

.song-panel {
    margin-top: 12px;
    padding-top: 12px;
}

.group-chat-thread {
    max-height: 340px;
    padding: 12px;
}

.group-chat-bubble,
.comment-bubble {
    padding: 10px 11px;
}

.group-chat-bubble p,
.comment-bubble p {
    font-size: 0.84rem;
}

.group-chat-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.88rem;
}

.rehearsal-datetime strong {
    font-size: 0.9rem;
}

.rehearsal-meta {
    font-size: 0.76rem;
}

.mobile-dock {
    gap: 8px;
    padding: 8px;
    border-radius: 24px;
}

.dock-link {
    min-height: 50px;
    padding: 8px 7px;
    border-radius: 16px;
    font-size: 0.66rem;
}

.setlist-player {
    width: min(calc(100% - 12px), 620px);
    padding: 8px 10px;
    border-radius: 18px;
}

.setlist-player::before {
    display: none;
}

.setlist-player-main {
    gap: 8px;
}

.setlist-player-cover {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.setlist-player-cover-text {
    font-size: 0.78rem;
}

.player-main-button {
    width: 36px;
    height: 36px;
    min-height: 36px;
    border-radius: 12px;
}

.setlist-player-track strong {
    font-size: 0.82rem;
}

.setlist-player-track p,
.setlist-player-progress {
    font-size: 0.68rem;
}

.setlist-player-track p:empty {
    display: none;
}

.setlist-player-mini-actions {
    gap: 5px;
}

.player-icon-button {
    width: 28px;
    height: 28px;
    min-height: 28px;
    border-radius: 10px;
}

@media (max-width: 719px) {
    html {
        font-size: 13px;
    }

    body {
        font-size: 13px;
    }

    body.has-setlist-player .site-shell {
        padding-bottom: 150px;
    }

    .site-shell {
        padding: 12px 10px 92px;
    }

    .site-header,
    .panel,
    .form-panel,
    .modal-card,
    .group-summary,
    .group-workspace,
    .dashboard-hero,
    .auth-intro {
        padding: 14px 12px;
        border-radius: 18px;
    }

    .group-summary-copy h1 {
        font-size: clamp(1.7rem, 9vw, 2.35rem);
    }

    .group-summary-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .group-list-card {
        grid-template-columns: 66px minmax(0, 1fr);
    }

    .group-list-card-cover {
        width: 66px;
        height: 52px;
    }

    .setlist-player {
        bottom: 76px;
        width: calc(100% - 10px);
        padding: 7px 8px;
        border-radius: 16px;
    }

    .setlist-player-main {
        grid-template-columns: 34px minmax(0, 1fr) auto;
        gap: 6px;
    }

    .setlist-player-cover {
        display: none;
    }

    .player-main-button {
        width: 34px;
        height: 34px;
        min-height: 34px;
    }

    .player-icon-button {
        width: 26px;
        height: 26px;
        min-height: 26px;
    }
}

@media (max-width: 520px) {
    body.has-setlist-player .site-shell {
        padding-bottom: 142px;
    }

    .group-summary-stats,
    .group-summary-actions {
        grid-template-columns: 1fr;
    }

    .group-list-card {
        grid-template-columns: 1fr;
    }

    .group-list-card-cover {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 8;
    }

    .mobile-dock {
        gap: 6px;
    }

    .dock-link {
        min-height: 46px;
        font-size: 0.62rem;
    }

    .setlist-player-main {
        grid-template-columns: 32px minmax(0, 1fr) auto;
    }

    .player-main-button {
        width: 32px;
        height: 32px;
        min-height: 32px;
    }

    .setlist-player-mini-actions [data-player-prev],
    .setlist-player-mini-actions [data-player-next] {
        display: none;
    }
}

/* Minimal Group Refresh */

.site-header,
.panel,
.form-panel,
.modal-card,
.mobile-dock {
    border-radius: 16px;
}

.primary-button,
.secondary-button,
.ghost-button,
.ghost-link,
.dock-link,
.menu-toggle,
.menu-link,
.menu-link-button {
    border-radius: 10px;
}

.eyebrow,
.card-tag {
    border-radius: 8px;
    letter-spacing: 0.04em;
}

.route-group .group-summary {
    padding: 16px;
}

.route-group .group-summary-head {
    gap: 14px;
}

.route-group .group-summary-copy h1 {
    margin: 8px 0 4px;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
}

.route-group .group-summary-copy p {
    max-width: 48ch;
    margin-top: 0;
}

.route-group .group-summary-meta {
    gap: 6px;
}

.route-group .group-summary-chip {
    min-height: 28px;
    border-radius: 8px;
    font-size: 0.72rem;
}

.route-group .group-cover-copy {
    display: none;
}

.route-group .group-summary-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.route-group .group-summary-actions > * {
    width: 100%;
    min-width: 0;
}

.route-group .group-summary-actions .primary-button,
.route-group .group-summary-actions .secondary-button,
.route-group .group-summary-actions .ghost-button {
    min-height: 46px;
    padding: 8px 10px;
    gap: 6px;
    border-radius: 10px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.72rem;
    line-height: 1.2;
}

.route-group .group-summary-actions .primary-button .icon,
.route-group .group-summary-actions .secondary-button .icon,
.route-group .group-summary-actions .ghost-button .icon {
    flex: 0 0 auto;
}

.route-group .group-summary-actions .ghost-button,
.route-group .group-summary-actions .secondary-button,
.route-group .group-summary-actions .primary-button {
    grid-column: auto;
}

.route-group .group-summary-actions .primary-button span:last-child,
.route-group .group-summary-actions .secondary-button span:last-child,
.route-group .group-summary-actions .ghost-button span:last-child {
    display: block;
    max-width: 100%;
    white-space: normal;
}

.route-group .group-summary-stats {
    display: none;
}

.route-group .group-cover-image,
.route-group .group-cover-fallback,
.route-group .group-list-card-cover {
    border-radius: 12px;
}

.route-group .group-workspace {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
}

.route-group .tabbar {
    position: static;
    top: auto;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(204, 214, 231, 0.8);
    border-radius: 12px;
    background: #f5f7fb;
}

.route-group .tab-button {
    min-height: 36px;
    border-radius: 10px;
    font-size: 0.76rem;
}

.route-group .tab-button.is-active {
    background: #ffffff;
    border-color: rgba(184, 196, 218, 0.86);
    box-shadow: none;
}

.route-group .section-header {
    align-items: center;
    margin-bottom: 8px;
}

.route-group .section-header h2 {
    font-size: 1.2rem;
}

.route-group .section-header .primary-button {
    min-width: 0;
}

.route-group .list-card,
.route-group .empty-card,
.route-group .song-card,
.route-group .rehearsal-card,
.route-group .group-chat-thread,
.route-group .group-chat-composer,
.route-group .song-comment-shell,
.route-group .info-strip,
.route-group .comment-bubble {
    border-radius: 12px;
}

.route-group .song-card,
.route-group .rehearsal-card,
.route-group .group-chat-composer,
.route-group .song-comment-shell,
.route-group .info-strip,
.route-group .empty-card {
    padding: 12px;
}

.route-group .song-card-top {
    align-items: center;
}

.route-group .song-toggle {
    padding-right: 0;
}

.route-group .song-panel {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(214, 222, 235, 0.9);
}

.route-group .song-panel-toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.route-group .disclosure-stack {
    display: grid;
    gap: 8px;
}

.route-group .subsection-disclosure {
    border: 1px solid rgba(214, 222, 235, 0.9);
    border-radius: 12px;
    background: #fafcff;
}

.route-group .subsection-disclosure[open] {
    background: #ffffff;
}

.route-group .subsection-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    list-style: none;
    cursor: pointer;
    color: #22314d;
    font-size: 0.82rem;
    font-weight: 700;
}

.route-group .subsection-summary::-webkit-details-marker {
    display: none;
}

.route-group .subsection-summary span:last-child {
    color: #7a879a;
    font-size: 0.72rem;
    font-weight: 600;
}

.route-group .subsection-body {
    display: grid;
    gap: 10px;
    padding: 0 12px 12px;
}

.route-group .group-chat-shell {
    grid-template-columns: 1fr;
}

.route-group .group-chat-thread {
    max-height: 380px;
}

.route-group .group-chat-compose-disclosure .subsection-body {
    padding-top: 12px;
}

.route-group .group-info-modal {
    max-width: 620px;
}

.route-group .group-manage-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.route-group .group-manage-stat {
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid rgba(214, 222, 235, 0.9);
    border-radius: 10px;
    background: #f7f9fc;
}

.route-group .group-manage-stat small {
    color: #7a879a;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.route-group .group-manage-stat strong {
    color: #243450;
    font-size: 1.02rem;
}

.route-group .group-manage-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.route-group .compact-stack {
    gap: 8px;
}

.route-group .compact-list-card {
    padding: 10px 12px;
}

.route-group .rehearsal-card {
    gap: 10px;
}

.route-group .song-actions {
    gap: 6px;
}

.route-group .group-chat-bubble,
.route-group .comment-bubble {
    border-radius: 10px;
}

.route-group .modal-card {
    border-radius: 14px;
}

.form-feedback {
    display: grid;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.form-feedback p {
    margin: 0;
}

.form-feedback-error {
    border: 1px solid #efc2c2;
    background: #fff3f3;
    color: #9d3f3f;
}

.form-progress {
    display: grid;
    gap: 6px;
    color: #66758b;
    font-size: 0.76rem;
}

.form-progress[hidden] {
    display: none !important;
}

.user-picker {
    display: grid;
    gap: 8px;
}

.user-picker-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.user-picker-selected:empty {
    display: none;
}

.user-picker-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid rgba(202, 215, 235, 0.92);
    border-radius: 12px;
    background: #f7f9fe;
    color: #31435f;
    cursor: pointer;
}

.user-picker-chip-copy {
    display: grid;
    gap: 1px;
    text-align: left;
}

.user-picker-chip-copy strong {
    font-size: 0.76rem;
    line-height: 1.2;
}

.user-picker-chip-copy small {
    color: #72819a;
    font-size: 0.68rem;
    line-height: 1.2;
}

.user-picker-chip-remove {
    color: #8593ab;
    font-size: 1rem;
    line-height: 1;
}

.user-picker-results {
    display: grid;
    gap: 6px;
    max-height: 224px;
    padding: 8px;
    overflow: auto;
    border: 1px solid rgba(206, 219, 238, 0.92);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
}

.user-picker-result {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(214, 223, 239, 0.92);
    border-radius: 12px;
    background: #fbfcff;
    color: #233450;
    text-align: left;
    cursor: pointer;
    transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.user-picker-result:hover,
.user-picker-result:focus-visible {
    border-color: rgba(158, 184, 226, 0.98);
    background: #ffffff;
    transform: translateY(-1px);
}

.user-picker-result-copy {
    display: grid;
    gap: 3px;
}

.user-picker-result-copy strong {
    font-size: 0.82rem;
    line-height: 1.2;
}

.user-picker-result-copy small,
.user-picker-result-note {
    color: #718098;
    font-size: 0.72rem;
    line-height: 1.35;
}

.user-picker-result-note {
    padding: 8px 10px;
}

.form-progress-track {
    display: block;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: #e8edf5;
}

.form-progress-bar {
    display: block;
    width: 34%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #79a8ff, #9fe3d8);
    animation: bandroom-progress 1.2s ease-in-out infinite;
}

[data-pending-form].is-submitting {
    pointer-events: none;
}

[data-pending-form].is-submitting .field,
[data-pending-form].is-submitting .form-actions {
    opacity: 0.72;
}

@keyframes bandroom-progress {
    0% {
        transform: translateX(-110%);
    }
    100% {
        transform: translateX(320%);
    }
}

@media (max-width: 719px) {
    .route-group .group-summary-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .route-group .group-summary-actions .ghost-button,
    .route-group .group-summary-actions .secondary-button,
    .route-group .group-summary-actions .primary-button {
        grid-column: auto;
        min-height: 44px;
        padding: 7px 6px;
        gap: 4px;
        font-size: 0.67rem;
    }

    .route-group .group-manage-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .route-group .group-summary {
        padding: 14px;
    }

    .route-group .group-summary-copy h1 {
        font-size: clamp(1.55rem, 8vw, 2rem);
    }

    .route-group .group-summary-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .route-group .group-summary-actions .primary-button,
    .route-group .group-summary-actions .secondary-button,
    .route-group .group-summary-actions .ghost-button {
        min-height: 42px;
        padding: 6px 5px;
        gap: 4px;
        font-size: 0.63rem;
    }

    .route-group .group-manage-actions,
    .route-group .group-manage-stats {
        grid-template-columns: 1fr;
    }

    .route-group .tabbar {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .route-group .tabbar::-webkit-scrollbar {
        display: none;
    }
}

/* Dashboard Refresh */

.route-dashboard .dashboard-page {
    display: grid;
    gap: 14px;
}

.route-dashboard .dashboard-shell {
    display: grid;
    gap: 14px;
}

.route-dashboard .dashboard-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 14px;
    overflow: hidden;
    border: 1px solid rgba(198, 212, 232, 0.82);
    background:
        radial-gradient(circle at top right, rgba(123, 164, 255, 0.18), transparent 28%),
        radial-gradient(circle at bottom left, rgba(112, 223, 201, 0.16), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 250, 255, 0.94));
    box-shadow: 0 22px 44px rgba(119, 142, 176, 0.14);
}

.route-dashboard .dashboard-hero::after {
    content: "";
    position: absolute;
    right: -72px;
    top: -64px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(112, 223, 201, 0.16), transparent 68%);
    pointer-events: none;
}

.route-dashboard .dashboard-hero-copy,
.route-dashboard .dashboard-hero-stage,
.route-dashboard .dashboard-section {
    position: relative;
    z-index: 1;
}

.route-dashboard .dashboard-hero-copy {
    display: grid;
    gap: 12px;
}

.route-dashboard .dashboard-hero-copy h1 {
    max-width: 13ch;
    margin: 4px 0 0;
    letter-spacing: -0.06em;
}

.route-dashboard .dashboard-hero-copy p {
    max-width: 54ch;
    margin: 0;
}

.route-dashboard .dashboard-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.route-dashboard .dashboard-pill-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.route-dashboard .dashboard-stat-pill {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border: 1px solid rgba(202, 215, 235, 0.88);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.route-dashboard .dashboard-stat-pill small {
    color: #7f8ba1;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.route-dashboard .dashboard-stat-pill strong {
    color: #243452;
    font-size: 0.92rem;
    line-height: 1.2;
}

.route-dashboard .dashboard-hero-stage {
    display: grid;
}

.route-dashboard .dashboard-stage-card {
    display: grid;
    align-content: start;
    gap: 12px;
    min-height: 100%;
    padding: 16px;
    border: 1px solid rgba(190, 206, 228, 0.86);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 254, 0.96));
    box-shadow: 0 16px 36px rgba(116, 136, 170, 0.12);
}

.route-dashboard .dashboard-stage-card > strong {
    color: #1f3050;
    font-size: 1.08rem;
    line-height: 1.3;
}

.route-dashboard .dashboard-stage-card > p {
    margin: 0;
    color: #69788f;
}

.route-dashboard .dashboard-stage-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.route-dashboard .dashboard-stage-metric {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f5f8fe;
    border: 1px solid rgba(206, 219, 238, 0.9);
}

.route-dashboard .dashboard-stage-metric small {
    color: #7d879a;
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.route-dashboard .dashboard-stage-metric strong {
    color: #22314b;
    font-size: 0.88rem;
}

.route-dashboard .dashboard-flow {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 14px;
    align-items: start;
}

.route-dashboard .dashboard-side-grid {
    display: grid;
    gap: 14px;
}

.route-dashboard .dashboard-section {
    display: grid;
    gap: 12px;
    border: 1px solid rgba(200, 214, 233, 0.84);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 250, 255, 0.95));
    box-shadow: 0 18px 34px rgba(116, 136, 170, 0.12);
}

.route-dashboard .dashboard-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.route-dashboard .dashboard-section-head h2 {
    margin: 4px 0 0;
    font-size: 1.12rem;
    letter-spacing: -0.04em;
}

.route-dashboard .dashboard-groups-layout,
.route-dashboard .dashboard-compact-list {
    display: grid;
    gap: 10px;
}

.route-dashboard .dashboard-spotlight-group,
.route-dashboard .dashboard-mini-group,
.route-dashboard .dashboard-compact-card,
.route-dashboard .dashboard-profile-disclosure {
    border: 1px solid rgba(203, 217, 236, 0.9);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.route-dashboard .dashboard-spotlight-group {
    display: grid;
    grid-template-columns: 142px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    color: inherit;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.route-dashboard .dashboard-spotlight-group:hover {
    transform: translateY(-2px);
    border-color: rgba(158, 184, 226, 0.98);
    box-shadow: 0 18px 34px rgba(117, 140, 176, 0.16);
}

.route-dashboard .dashboard-spotlight-cover,
.route-dashboard .dashboard-mini-cover {
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, #dce8ff, #eaf8f2);
}

.route-dashboard .dashboard-spotlight-cover {
    min-height: 124px;
}

.route-dashboard .dashboard-spotlight-cover img,
.route-dashboard .dashboard-mini-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.route-dashboard .dashboard-cover-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #36547b;
    font-weight: 800;
    font-size: 1rem;
}

.route-dashboard .dashboard-spotlight-body {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.route-dashboard .dashboard-spotlight-head,
.route-dashboard .dashboard-spotlight-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.route-dashboard .dashboard-spotlight-copy {
    display: grid;
    gap: 6px;
}

.route-dashboard .dashboard-spotlight-copy h3 {
    margin: 0;
    color: #22314b;
    font-size: 1.08rem;
    letter-spacing: -0.03em;
}

.route-dashboard .dashboard-spotlight-copy p {
    margin: 0;
    color: #6c7890;
    line-height: 1.5;
}

.route-dashboard .dashboard-meta-pill,
.route-dashboard .dashboard-open-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(210, 220, 237, 0.94);
    border-radius: 999px;
    background: #f5f8fe;
    color: #40506c;
    font-size: 0.72rem;
    font-weight: 700;
}

.route-dashboard .dashboard-meta-pill.is-reminder {
    border-color: rgba(96, 167, 255, 0.28);
    background: rgba(233, 242, 255, 0.96);
    color: #295eaf;
}

.route-dashboard .dashboard-rehearsal-list {
    display: grid;
    gap: 10px;
}

.route-dashboard .dashboard-rehearsal-card {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(214, 223, 238, 0.94);
    border-radius: 18px;
    background: rgba(250, 252, 255, 0.94);
    color: inherit;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.route-dashboard .dashboard-rehearsal-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(111, 130, 164, 0.12);
}

.route-dashboard .dashboard-rehearsal-date {
    display: grid;
    place-items: center;
    gap: 2px;
    min-height: 70px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(236, 243, 255, 0.98), rgba(246, 250, 255, 0.98));
    color: #33507d;
    text-align: center;
}

.route-dashboard .dashboard-rehearsal-date strong {
    font-size: 1.1rem;
    line-height: 1;
}

.route-dashboard .dashboard-rehearsal-date span,
.route-dashboard .dashboard-rehearsal-date small {
    font-size: 0.72rem;
    font-weight: 700;
}

.route-dashboard .dashboard-rehearsal-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.route-dashboard .dashboard-rehearsal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.route-dashboard .dashboard-rehearsal-head strong {
    color: #233450;
    font-size: 0.9rem;
}

.route-dashboard .dashboard-rehearsal-copy > span {
    color: #71809a;
    font-size: 0.74rem;
}

.route-dashboard .dashboard-rehearsal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.route-dashboard .dashboard-mini-group-list {
    display: grid;
    gap: 8px;
}

.route-dashboard .dashboard-mini-group {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
    color: inherit;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.route-dashboard .dashboard-mini-group:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(118, 140, 174, 0.14);
}

.route-dashboard .dashboard-mini-cover {
    width: 56px;
    height: 48px;
}

.route-dashboard .dashboard-mini-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.route-dashboard .dashboard-mini-copy strong {
    color: #233450;
    font-size: 0.88rem;
}

.route-dashboard .dashboard-mini-copy span {
    color: #79859a;
    font-size: 0.74rem;
}

.route-dashboard .dashboard-compact-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
}

.route-dashboard .dashboard-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.route-dashboard .dashboard-feed-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.route-dashboard .dashboard-feed-item-head strong,
.route-dashboard .dashboard-compact-card .list-card-head strong {
    color: #22314b;
}

.route-dashboard .dashboard-feed-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex: 0 0 auto;
    background: linear-gradient(135deg, #7aabf5, #70d7c9);
    box-shadow: 0 0 0 5px rgba(122, 171, 245, 0.12);
}

.route-dashboard .dashboard-profile-disclosure {
    border-radius: 18px;
    overflow: hidden;
}

.route-dashboard .dashboard-profile-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    list-style: none;
    cursor: pointer;
}

.route-dashboard .dashboard-profile-summary::-webkit-details-marker {
    display: none;
}

.route-dashboard .dashboard-profile-disclosure[open] .dashboard-profile-summary .icon {
    transform: rotate(180deg);
}

.route-dashboard .dashboard-profile-summary .icon {
    color: #7f8ba1;
    transition: transform 180ms ease;
}

.route-dashboard .dashboard-profile-body {
    display: grid;
    gap: 10px;
    padding: 0 14px 14px;
}

.route-dashboard .dashboard-chip-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.route-dashboard .dashboard-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(208, 221, 238, 0.95);
    border-radius: 999px;
    background: #f7f9fe;
    color: #495871;
    font-size: 0.76rem;
    font-weight: 700;
}

.route-dashboard .dashboard-empty {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px dashed rgba(198, 212, 232, 0.96);
    border-radius: 18px;
    background: rgba(247, 250, 255, 0.84);
}

.route-dashboard .dashboard-empty strong {
    color: #243452;
}

.route-dashboard .dashboard-empty p {
    margin: 0;
    color: #738095;
}

.route-dashboard .dashboard-hero,
.route-dashboard .dashboard-section {
    animation: dashboard-rise 420ms ease both;
}

.route-dashboard .dashboard-flow > *:nth-child(2),
.route-dashboard .dashboard-side-grid > *:nth-child(2) {
    animation-delay: 80ms;
}

.route-dashboard .dashboard-side-grid > *:nth-child(3) {
    animation-delay: 140ms;
}

@keyframes dashboard-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark Player Refresh */

.setlist-player {
    position: relative;
    border: 1px solid rgba(90, 104, 129, 0.72);
    background:
        linear-gradient(180deg, rgba(18, 24, 36, 0.98), rgba(10, 14, 22, 0.98));
    box-shadow: 0 26px 58px rgba(7, 10, 18, 0.42);
}

.setlist-player::before {
    display: block;
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(122, 171, 245, 0.96), rgba(112, 223, 201, 0.96));
}

.setlist-player-cover {
    border: 1px solid rgba(92, 111, 145, 0.66);
    background: linear-gradient(135deg, #25344f, #121b2a);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.setlist-player-cover-text {
    color: #edf3ff;
}

.player-main-button {
    border: 1px solid rgba(115, 175, 236, 0.28);
    background: linear-gradient(135deg, #8fc3ff, #79dfd0);
    color: #0b1420;
    box-shadow: none;
}

.player-main-button[data-state="pause"] {
    background: linear-gradient(135deg, #9ab2ff, #6f97ff);
    color: #0a1020;
}

.setlist-player-kicker {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
    color: #cfdcff;
}

.setlist-player-track strong {
    color: #f5f8ff;
}

.setlist-player-track p,
.setlist-player-progress {
    color: rgba(221, 229, 244, 0.72);
}

.player-icon-button {
    border: 1px solid rgba(95, 112, 140, 0.62);
    background: rgba(255, 255, 255, 0.08);
    color: #dce6ff;
    box-shadow: none;
}

.player-icon-button:hover {
    background: rgba(255, 255, 255, 0.12);
}

.player-icon-button.is-active {
    border-color: rgba(112, 223, 201, 0.5);
    background: rgba(112, 223, 201, 0.14);
    color: #bef4eb;
}

.player-seek,
.player-seek::-webkit-slider-runnable-track,
.player-seek::-moz-range-track {
    background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 940px) {
    .route-dashboard .dashboard-hero,
    .route-dashboard .dashboard-flow {
        grid-template-columns: 1fr;
    }

    .route-dashboard .dashboard-hero-copy h1 {
        max-width: none;
    }

    .route-dashboard .dashboard-pill-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 719px) {
    .route-dashboard .dashboard-hero,
    .route-dashboard .dashboard-section {
        border-radius: 18px;
    }

    .route-dashboard .dashboard-hero-copy,
    .route-dashboard .dashboard-hero-stage,
    .route-dashboard .dashboard-section {
        gap: 10px;
    }

    .route-dashboard .dashboard-hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .route-dashboard .dashboard-hero-actions > * {
        width: 100%;
        min-width: 0;
    }

    .route-dashboard .dashboard-spotlight-group {
        grid-template-columns: 1fr;
    }

    .route-dashboard .dashboard-spotlight-cover {
        min-height: 162px;
    }

    .route-dashboard .dashboard-section-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .route-dashboard .dashboard-hero-copy h1 {
        font-size: clamp(1.8rem, 8vw, 2.35rem);
    }

    .route-dashboard .dashboard-pill-row,
    .route-dashboard .dashboard-stage-metrics,
    .route-dashboard .dashboard-hero-actions {
        grid-template-columns: 1fr;
    }

    .route-dashboard .dashboard-stat-pill,
    .route-dashboard .dashboard-stage-metric {
        padding: 10px;
    }

    .route-dashboard .dashboard-mini-group {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .route-dashboard .dashboard-mini-group .card-badge {
        grid-column: 2;
        justify-self: start;
    }

    .route-dashboard .dashboard-inline-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .route-dashboard .dashboard-inline-actions > * {
        width: 100%;
    }
}

/* Groups Refresh */

.route-groups .groups-page,
.route-groups .groups-shell {
    display: grid;
    gap: 14px;
}

.route-groups .groups-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.88fr);
    gap: 14px;
    border: 1px solid rgba(198, 212, 232, 0.82);
    background:
        radial-gradient(circle at top left, rgba(124, 165, 255, 0.16), transparent 28%),
        radial-gradient(circle at bottom right, rgba(112, 223, 201, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 250, 255, 0.95));
    box-shadow: 0 22px 44px rgba(119, 142, 176, 0.14);
}

.route-groups .groups-hero-copy {
    display: grid;
    gap: 12px;
}

.route-groups .groups-hero-copy h1 {
    margin: 4px 0 0;
    letter-spacing: -0.06em;
}

.route-groups .groups-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.route-groups .groups-pill-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.route-groups .groups-stat-pill {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border: 1px solid rgba(202, 215, 235, 0.88);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.route-groups .groups-stat-pill small {
    color: #7f8ba1;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.route-groups .groups-stat-pill strong {
    color: #243452;
    font-size: 0.94rem;
}

.route-groups .groups-hero-feature {
    display: grid;
}

.route-groups .groups-feature-card,
.route-groups .groups-showcase-card,
.route-groups .groups-invite-card {
    color: inherit;
    text-decoration: none;
}

.route-groups .groups-feature-card {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 12px;
    min-height: 100%;
    padding: 12px;
    border: 1px solid rgba(200, 214, 233, 0.88);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 34px rgba(117, 140, 176, 0.12);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.route-groups .groups-feature-card:hover,
.route-groups .groups-showcase-card:hover {
    transform: translateY(-2px);
    border-color: rgba(160, 186, 226, 0.98);
    box-shadow: 0 22px 40px rgba(117, 140, 176, 0.16);
}

.route-groups .groups-feature-cover,
.route-groups .groups-showcase-cover {
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #dce8ff, #eaf8f2);
}

.route-groups .groups-feature-cover {
    min-height: 150px;
}

.route-groups .groups-feature-cover img,
.route-groups .groups-showcase-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.route-groups .groups-feature-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #36547b;
    font-weight: 800;
    font-size: 1rem;
}

.route-groups .groups-feature-body,
.route-groups .groups-showcase-body {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.route-groups .groups-feature-top,
.route-groups .groups-feature-meta,
.route-groups .groups-showcase-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.route-groups .groups-feature-copy,
.route-groups .groups-section-head,
.route-groups .groups-side-stack,
.route-groups .groups-invite-list,
.route-groups .groups-showcase-head {
    display: grid;
    gap: 8px;
}

.route-groups .groups-feature-copy h2 {
    margin: 0;
    color: #22314b;
    font-size: 1.2rem;
    letter-spacing: -0.04em;
}

.route-groups .groups-feature-copy p,
.route-groups .groups-showcase-body p {
    margin: 0;
    color: #6c7890;
    line-height: 1.5;
}

.route-groups .groups-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(210, 220, 237, 0.94);
    border-radius: 999px;
    background: #f5f8fe;
    color: #40506c;
    font-size: 0.72rem;
    font-weight: 700;
}

.route-groups .groups-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 14px;
    align-items: start;
}

.route-groups .groups-list-panel,
.route-groups .groups-invites-panel {
    display: grid;
    gap: 12px;
    border: 1px solid rgba(200, 214, 233, 0.84);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 250, 255, 0.95));
    box-shadow: 0 18px 34px rgba(116, 136, 170, 0.12);
}

.route-groups .groups-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.route-groups .groups-showcase-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    overflow: hidden;
    padding: 10px;
    border: 1px solid rgba(203, 217, 236, 0.9);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.route-groups .groups-showcase-cover {
    width: 96px;
    height: 74px;
    aspect-ratio: auto;
}

.route-groups .groups-showcase-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    align-items: start;
}

.route-groups .groups-showcase-head strong {
    color: #22314b;
    font-size: 0.96rem;
    line-height: 1.25;
}

.route-groups .groups-showcase-body {
    gap: 6px;
}

.route-groups .groups-showcase-body p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 0.76rem;
}

.route-groups .groups-showcase-meta {
    gap: 6px;
}

.route-groups .groups-showcase-meta .groups-meta-pill {
    min-height: 24px;
    padding: 0 8px;
    font-size: 0.68rem;
}

.route-groups .groups-invite-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(203, 217, 236, 0.9);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.route-groups .groups-invite-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.route-groups .groups-empty {
    display: grid;
    place-items: center;
    gap: 6px;
    min-height: 128px;
    padding: 18px;
    border: 1px dashed rgba(198, 212, 232, 0.96);
    border-radius: 18px;
    background: rgba(247, 250, 255, 0.84);
    text-align: center;
}

.route-groups .groups-empty strong {
    color: #243452;
}

.route-groups .groups-create-modal {
    width: min(100%, 720px);
}

.route-groups .groups-create-form {
    gap: 16px;
}

.route-groups .groups-create-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.route-groups .field-span-full {
    grid-column: 1 / -1;
}

.route-groups .groups-hero,
.route-groups .groups-list-panel,
.route-groups .groups-invites-panel {
    animation: dashboard-rise 420ms ease both;
}

.route-groups .groups-layout > *:nth-child(2) {
    animation-delay: 80ms;
}

@media (max-width: 940px) {
    .route-groups .groups-hero,
    .route-groups .groups-layout {
        grid-template-columns: 1fr;
    }

    .route-groups .groups-feature-card {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .route-groups .groups-feature-cover {
        min-height: 88px;
    }
}

@media (max-width: 719px) {
    .route-groups .groups-hero-actions,
    .route-groups .groups-invite-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .route-groups .groups-hero-actions > *,
    .route-groups .groups-invite-actions > * {
        width: 100%;
        min-width: 0;
    }

    .route-groups .groups-card-grid,
    .route-groups .groups-create-grid {
        grid-template-columns: 1fr;
    }

    .route-groups .groups-feature-card {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .route-groups .groups-feature-cover {
        min-height: 82px;
    }

    .route-groups .groups-feature-copy h2 {
        font-size: 1.02rem;
    }

    .route-groups .groups-feature-copy p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        font-size: 0.76rem;
    }

    .route-groups .groups-pill-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .route-groups .groups-stat-pill {
        padding: 8px 8px;
    }

    .route-groups .groups-stat-pill small {
        font-size: 0.54rem;
    }

    .route-groups .groups-stat-pill strong {
        font-size: 0.84rem;
    }
}

@media (max-width: 520px) {
    .route-groups .groups-hero-copy h1 {
        font-size: clamp(1.8rem, 8vw, 2.35rem);
    }

    .route-groups .groups-hero-actions,
    .route-groups .groups-invite-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .route-groups .groups-hero-actions .primary-button,
    .route-groups .groups-hero-actions .secondary-button {
        min-height: 36px;
        padding: 0 8px;
        font-size: 0.7rem;
    }

    .route-groups .groups-showcase-card,
    .route-groups .groups-feature-card {
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 8px;
        padding: 9px;
    }

    .route-groups .groups-showcase-cover,
    .route-groups .groups-feature-cover {
        width: 84px;
        height: 68px;
        min-height: 68px;
    }

    .route-groups .groups-showcase-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .route-groups .groups-showcase-head strong,
    .route-groups .groups-feature-copy h2 {
        font-size: 0.9rem;
    }

    .route-groups .groups-showcase-meta .groups-meta-pill,
    .route-groups .groups-feature-meta .groups-meta-pill,
    .route-groups .groups-feature-top .groups-meta-pill {
        min-height: 22px;
        padding: 0 7px;
        font-size: 0.64rem;
    }
}

/* Gentle Upscale */

@media (max-width: 719px) {
    html {
        font-size: 13.6px;
    }

    body {
        font-size: 13.6px;
    }

    .primary-button,
    .secondary-button,
    .ghost-button,
    .ghost-link {
        min-height: 40px;
        font-size: 0.79rem;
    }

    .tab-button {
        min-height: 38px;
        font-size: 0.78rem;
    }

    .group-summary,
    .group-workspace,
    .dashboard-hero,
    .groups-hero,
    .groups-list-panel,
    .groups-invites-panel {
        padding: 15px 13px;
    }

    .group-summary-copy h1,
    .route-dashboard .dashboard-hero-copy h1,
    .route-groups .groups-hero-copy h1 {
        font-size: clamp(1.9rem, 8vw, 2.45rem);
    }

    .group-summary-chip,
    .route-dashboard .dashboard-meta-pill,
    .route-groups .groups-meta-pill,
    .route-groups .groups-stat-pill strong {
        font-size: 0.73rem;
    }

    .section-header h2,
    .route-dashboard .dashboard-section-head h2,
    .route-groups .groups-section-head h2 {
        font-size: 1.16rem;
    }
}

@media (max-width: 520px) {
    html {
        font-size: 13.85px;
    }

    body {
        font-size: 13.85px;
    }
}

/* Apple Music Player Feel */

.setlist-player {
    bottom: 10px;
    width: calc(100% - 16px);
    max-width: 640px;
    padding: 10px 12px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(27, 29, 37, 0.84), rgba(15, 17, 24, 0.92));
    box-shadow:
        0 28px 60px rgba(6, 8, 16, 0.46),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px) saturate(180%);
}

.setlist-player::before {
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
}

.setlist-player-main {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    align-items: stretch;
}

.setlist-player-cover {
    display: none;
}

.setlist-player-cover-text {
    color: #ffffff;
    letter-spacing: 0.02em;
}

.setlist-player-track {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 7px;
}

.setlist-player-track-head {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
    width: 100%;
}

.setlist-player-track-copy {
    display: grid;
    gap: 2px;
    width: 100%;
    min-width: 0;
    justify-items: center;
    text-align: center;
    padding-inline: 34px;
}

.setlist-player-kicker {
    display: none;
}

.setlist-player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
}

.setlist-player-track strong {
    display: block;
    width: 100%;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
}

.setlist-player-track p {
    display: block;
    width: 100%;
    min-width: 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.72rem;
    text-align: center;
}

.player-main-button {
    min-width: 38px;
    min-height: 38px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff, #e8ecf5);
    color: #131722;
    box-shadow: 0 10px 22px rgba(255, 255, 255, 0.18);
}

.player-main-button[data-state="pause"] {
    background: linear-gradient(180deg, #ffffff, #edf1f8);
    color: #121620;
    border: 0;
}

.setlist-player-mini-actions {
    gap: 2px;
}

.player-icon-button {
    min-width: 28px;
    min-height: 28px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
}

.player-icon-button:hover,
.player-icon-button:focus-visible {
    background: rgba(255, 255, 255, 0.1);
}

.player-icon-button.is-active {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.player-close-button {
    position: absolute;
    top: 0;
    right: 0;
    color: rgba(255, 255, 255, 0.58);
}

.setlist-player-progress {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.63rem;
}

.player-seek,
.player-seek::-webkit-slider-runnable-track,
.player-seek::-moz-range-track {
    width: 100%;
    min-width: 0;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.player-seek::-webkit-slider-thumb {
    width: 10px;
    height: 10px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.34);
}

.player-seek::-moz-range-thumb {
    width: 10px;
    height: 10px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.34);
}

@media (max-width: 719px) {
    body.has-setlist-player .site-shell {
        padding-bottom: 140px;
    }

    .setlist-player {
        width: calc(100% - 12px);
        max-width: 560px;
        padding: 9px 10px 10px;
        border-radius: 22px;
    }

    .setlist-player-main {
        gap: 8px;
    }

    .player-main-button {
        min-width: 34px;
        min-height: 34px;
        width: 34px;
        height: 34px;
    }

    .player-icon-button {
        min-width: 25px;
        min-height: 25px;
        width: 25px;
        height: 25px;
    }

    .setlist-player-track strong {
        font-size: 0.82rem;
    }

    .setlist-player-track p {
        font-size: 0.68rem;
    }

    .setlist-player-track-copy {
        padding-inline: 30px;
    }
}

@media (max-width: 520px) {
    body.has-setlist-player .site-shell {
        padding-bottom: 136px;
    }

    .setlist-player {
        width: calc(100% - 8px);
        max-width: 520px;
        padding: 8px 8px 9px;
        border-radius: 20px;
    }

    .setlist-player-main {
        gap: 7px;
    }

    .player-main-button {
        min-width: 32px;
        min-height: 32px;
        width: 32px;
        height: 32px;
    }

    .setlist-player-mini-actions [data-player-prev] {
        display: inline-flex;
    }

    .setlist-player-controls {
        gap: 4px;
    }

    .setlist-player-progress {
        font-size: 0.58rem;
        grid-template-columns: 36px minmax(0, 1fr) 36px;
    }

    .setlist-player-track-copy {
        padding-inline: 26px;
    }
}

/* Song Practice Metadata */

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

.song-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
}

.song-detail-chip {
    display: grid;
    gap: 4px;
    padding: 12px 13px;
    border: 1px solid rgba(107, 137, 196, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.68);
}

.song-detail-chip strong {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7a88a8;
}

.song-detail-chip span {
    color: #263453;
    font-size: 0.88rem;
    font-weight: 700;
}

@media (max-width: 719px) {
    .song-meta-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .song-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
}

/* Live Chart */

.danger-button {
    color: #a84444;
}

.player-live-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    transition: background 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.player-live-button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.player-live-button.is-enabled {
    background: linear-gradient(135deg, rgba(110, 132, 255, 0.26), rgba(78, 211, 198, 0.22));
}

.live-chart-modal {
    width: min(100%, 860px);
}

.live-chart-preview {
    padding: 12px 14px;
    border: 1px solid rgba(103, 135, 190, 0.14);
    border-radius: 16px;
    background: rgba(246, 249, 255, 0.82);
}

.live-chart-preview audio {
    width: 100%;
}

.live-chart-import {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(103, 135, 190, 0.14);
    border-radius: 18px;
    background: rgba(248, 251, 255, 0.82);
}

.live-chart-import-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.live-chart-import-head h3 {
    margin: 8px 0 0;
    color: #22314b;
    font-size: 1rem;
    letter-spacing: -0.03em;
}

.live-chart-import-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.live-chart-import-note {
    margin: 0;
    color: #6d7c96;
}

.live-chart-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.live-chart-rows {
    display: grid;
    gap: 12px;
}

.live-chart-row {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(103, 135, 190, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.live-chart-row-top {
    display: grid;
    grid-template-columns: minmax(0, 170px) minmax(0, 1fr);
    gap: 10px;
    align-items: end;
}

.live-chart-row-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.live-chart-time-field input {
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
}

.live-view-modal {
    --live-view-font-scale: 1;
    width: min(100%, 960px);
    padding: 0;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(14, 19, 31, 0.97), rgba(10, 13, 22, 0.98));
    color: #f6f8ff;
    overflow: hidden;
}

.live-view-shell {
    display: grid;
    gap: 0;
    min-height: min(86vh, 880px);
}

.live-view-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 22px 22px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}

.live-view-head h2 {
    margin: 10px 0 6px;
    color: #ffffff;
    font-size: clamp(1.4rem, 3vw, 2.1rem);
}

.live-view-head p {
    margin: 0;
    color: rgba(222, 230, 252, 0.72);
}

.live-view-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 22px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.live-view-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.live-view-setting-label {
    color: rgba(222, 230, 252, 0.72);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.live-view-stepper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.live-view-setting-value {
    min-width: 72px;
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 700;
    text-align: center;
}

.live-view-mini-button,
.live-view-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(238, 243, 255, 0.84);
    font-size: 0.88rem;
    font-weight: 700;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.live-view-mini-button:hover,
.live-view-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(132, 169, 245, 0.28);
    background: rgba(132, 169, 245, 0.12);
}

.live-view-mini-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.live-view-toggle-group {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.live-view-toggle.is-active {
    border-color: rgba(116, 223, 212, 0.34);
    background: linear-gradient(135deg, rgba(107, 139, 255, 0.24), rgba(77, 213, 196, 0.16));
    color: #ffffff;
}

.live-view-body {
    min-height: 0;
    padding: 18px 22px;
}

.live-view-list {
    display: grid;
    gap: 12px;
    max-height: calc(86vh - 320px);
    overflow-y: auto;
    padding-right: 4px;
}

.live-view-row {
    display: grid;
    gap: 10px;
    width: 100%;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    text-align: left;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.live-view-row:hover {
    transform: translateY(-1px);
    border-color: rgba(135, 174, 255, 0.26);
}

.live-view-row.is-active {
    border-color: rgba(116, 223, 212, 0.42);
    background: linear-gradient(135deg, rgba(107, 139, 255, 0.18), rgba(77, 213, 196, 0.12));
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

.live-view-row-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(222, 230, 252, 0.72);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.live-view-row-time {
    font-variant-numeric: tabular-nums;
}

.live-view-row-chords {
    color: #ffffff;
    font-size: calc(1.5rem * var(--live-view-font-scale));
    line-height: 1.35;
    white-space: pre-wrap;
}

.live-view-row-lyrics {
    margin: 0;
    color: rgba(231, 236, 252, 0.88);
    font-size: calc(1.14rem * var(--live-view-font-scale));
    line-height: 1.55;
    white-space: pre-wrap;
}

.live-view-modal.is-lyrics-only .live-view-row {
    gap: 8px;
}

.live-view-modal.is-lyrics-only .live-view-row-chords {
    display: none;
}

.live-view-empty {
    min-height: 180px;
    display: grid;
    place-items: center;
    text-align: center;
    color: rgba(224, 231, 252, 0.72);
    background: rgba(255, 255, 255, 0.04);
}

.live-view-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 22px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.live-view-controls .player-main-button,
.live-view-controls .player-icon-button {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.live-view-time {
    min-width: 54px;
    color: rgba(225, 231, 248, 0.84);
    font-variant-numeric: tabular-nums;
    text-align: center;
}

@media (max-width: 719px) {
    .player-live-button {
        min-height: 30px;
        padding: 0 10px;
        font-size: 0.72rem;
    }

    .live-chart-row-top {
        grid-template-columns: 1fr;
    }

    .live-chart-row-actions {
        justify-content: flex-start;
    }

    .live-view-modal {
        width: min(100%, 100vw);
        min-height: 100vh;
        border-radius: 0;
    }

    .live-view-shell {
        min-height: 100vh;
    }

    .live-view-head,
    .live-view-toolbar,
    .live-view-body,
    .live-view-controls {
        padding-left: 14px;
        padding-right: 14px;
    }

    .live-view-list {
        max-height: calc(100vh - 330px);
    }

    .live-view-row {
        padding: 16px;
        border-radius: 18px;
    }

    .live-view-toolbar {
        grid-template-columns: 1fr;
    }

    .live-view-setting {
        align-items: flex-start;
        flex-direction: column;
    }

    .live-view-stepper,
    .live-view-toggle-group {
        width: 100%;
    }

    .live-view-mini-button,
    .live-view-toggle {
        flex: 1 1 0;
    }

    .live-view-setting-value {
        min-width: 64px;
    }

    .live-view-row-topline {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Review flow refinements */

.groups-hero {
    grid-template-columns: 1fr;
}

.groups-active-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(104, 139, 224, 0.18);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink-900);
    text-decoration: none;
    box-shadow: 0 16px 28px rgba(116, 146, 190, 0.08);
}

.groups-inline-badges {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.groups-showcase-card.is-active {
    border-color: rgba(104, 139, 224, 0.3);
    box-shadow: 0 16px 40px rgba(120, 150, 193, 0.14);
}

.groups-showcase-card.is-active .groups-showcase-head strong {
    color: var(--ink-950);
}

.route-dashboard .dashboard-feed-item .card-badge {
    background: rgba(104, 139, 224, 0.1);
    color: var(--ink-700);
}

.route-group .song-meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.route-group .song-meta-primary {
    font-weight: 600;
    color: var(--ink-800);
}

.route-group .song-meta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.route-group .song-meta-secondary span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.55rem;
    border: 1px solid rgba(110, 128, 167, 0.14);
    border-radius: 999px;
    background: rgba(244, 247, 255, 0.92);
    color: var(--ink-600);
    font-size: 0.77rem;
    font-weight: 600;
}

.route-group .song-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.live-chart-modal [data-live-editor-meta] {
    display: block;
    margin: 0.45rem 0 0;
    color: var(--ink-500);
}

.register-stepper {
    gap: 1.25rem;
}

.form-stepper-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 0.35rem;
}

.form-step-indicator {
    display: grid;
    gap: 0.1rem;
    justify-items: start;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(110, 128, 167, 0.14);
    border-radius: 1rem;
    background: rgba(247, 249, 255, 0.86);
    color: var(--ink-500);
    text-align: left;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.form-step-indicator small {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.form-step-indicator strong {
    font-size: 0.95rem;
    font-weight: 700;
}

.form-step-indicator.is-active {
    border-color: rgba(104, 139, 224, 0.3);
    background: linear-gradient(135deg, rgba(132, 169, 245, 0.16), rgba(129, 223, 210, 0.16));
    color: var(--ink-800);
    transform: translateY(-1px);
}

.form-step-indicator.is-complete {
    color: var(--ink-700);
}

.form-step-panel {
    display: grid;
    gap: 1.05rem;
}

.form-step-panel[hidden] {
    display: none;
}

@media (max-width: 900px) {
    .route-group .song-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .groups-active-inline {
        width: 100%;
        justify-content: space-between;
    }

    .form-stepper-nav {
        grid-template-columns: 1fr;
    }

    .form-step-indicator {
        grid-template-columns: auto 1fr;
        align-items: center;
        column-gap: 0.55rem;
    }

    .form-step-indicator small {
        font-size: 0.68rem;
    }

    .route-group .song-meta-line {
        align-items: flex-start;
    }

    .route-group .song-meta-secondary {
        width: 100%;
    }
}

.route-group .group-chat-shell {
    gap: 1.1rem;
}

.route-group .group-chat-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.route-group .group-chat-summary-card {
    display: grid;
    gap: 0.15rem;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(109, 127, 166, 0.12);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 34px rgba(118, 144, 187, 0.08);
}

.route-group .group-chat-summary-card.is-wide {
    grid-column: span 1;
}

.route-group .group-chat-summary-card small {
    color: var(--ink-500);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.route-group .group-chat-summary-card strong {
    color: var(--ink-900);
    font-size: 1.05rem;
}

.route-group .group-chat-summary-card span {
    color: var(--ink-500);
    font-size: 0.82rem;
}

.route-group .group-chat-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.9fr);
    gap: 1rem;
    align-items: start;
}

.route-group .group-chat-thread-card,
.route-group .group-chat-compose-panel,
.route-group .rehearsal-overview-card {
    border: 1px solid rgba(109, 127, 166, 0.12);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 20px 36px rgba(118, 144, 187, 0.08);
}

.route-group .group-chat-thread-card {
    padding: 1rem;
}

.route-group .group-chat-compose-panel {
    padding: 1rem;
    position: sticky;
    top: 1rem;
}

.route-group .group-chat-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.85rem;
    color: var(--ink-500);
    font-size: 0.82rem;
}

.route-group .group-chat-panel-head strong {
    color: var(--ink-900);
    font-size: 0.95rem;
}

.route-group .group-chat-thread {
    max-height: 620px;
    padding: 0.2rem;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.route-group .group-chat-bubble,
.route-group .comment-bubble {
    border-radius: 1rem;
    border-color: rgba(110, 128, 167, 0.12);
    background: rgba(245, 248, 255, 0.9);
}

.route-group .group-chat-message.is-own .group-chat-bubble {
    border-color: rgba(109, 214, 202, 0.2);
    background: linear-gradient(135deg, rgba(130, 169, 244, 0.12), rgba(126, 220, 209, 0.12));
}

.route-group .group-chat-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.9rem;
    border-color: rgba(110, 128, 167, 0.12);
    background: rgba(236, 243, 255, 0.94);
    color: var(--ink-700);
}

.route-group .group-chat-message.is-own .group-chat-avatar {
    background: rgba(221, 245, 239, 0.94);
    color: #176456;
    border-color: rgba(109, 214, 202, 0.2);
}

.route-group .group-chat-bubble-head strong,
.route-group .comment-bubble-head strong {
    color: var(--ink-900);
}

.route-group .group-chat-bubble-head span,
.route-group .comment-bubble-head span {
    color: var(--ink-500);
}

.route-group .group-chat-bubble p,
.route-group .comment-bubble p {
    color: var(--ink-700);
}

.route-group .group-chat-composer {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.route-group .group-chat-field textarea {
    min-height: 170px;
}

.route-group .rehearsal-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.8fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.route-group .rehearsal-overview-hero {
    padding: 1rem;
}

.route-group .rehearsal-overview-kicker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}

.route-group .rehearsal-overview-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.route-group .rehearsal-date-block {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.1rem;
    min-width: 86px;
    padding: 0.9rem 0.8rem;
    border: 1px solid rgba(109, 127, 166, 0.12);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(247, 250, 255, 0.95), rgba(236, 244, 255, 0.92));
}

.route-group .rehearsal-date-block strong {
    font-size: 1.6rem;
    line-height: 1;
    color: var(--ink-900);
}

.route-group .rehearsal-date-block span,
.route-group .rehearsal-date-block small {
    color: var(--ink-500);
    font-weight: 700;
}

.route-group .rehearsal-date-block.is-inline {
    min-width: 78px;
    padding: 0.8rem 0.7rem;
}

.route-group .rehearsal-overview-copy h3 {
    margin: 0;
    color: var(--ink-900);
    font-size: 1.1rem;
}

.route-group .rehearsal-overview-copy p {
    margin: 0.3rem 0 0;
    color: var(--ink-600);
}

.route-group .rehearsal-overview-meta,
.route-group .rehearsal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.route-group .rehearsal-overview-meta span,
.route-group .rehearsal-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 0.7rem;
    border: 1px solid rgba(109, 127, 166, 0.1);
    border-radius: 999px;
    background: rgba(244, 247, 255, 0.88);
    color: var(--ink-600);
    font-size: 0.79rem;
    font-weight: 600;
}

.route-group .rehearsal-overview-stats {
    display: grid;
    gap: 0.8rem;
}

.route-group .rehearsal-stat-card {
    align-content: center;
    min-height: 86px;
    padding: 1rem;
}

.route-group .rehearsal-stat-card small {
    color: var(--ink-500);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.route-group .rehearsal-stat-card strong {
    margin-top: 0.2rem;
    color: var(--ink-900);
    font-size: 1.35rem;
}

.route-group .rehearsal-list {
    gap: 0.9rem;
}

.route-group .rehearsal-card {
    padding: 1rem;
}

.route-group .rehearsal-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.route-group .rehearsal-content {
    display: grid;
    gap: 0.9rem;
}

.route-group .rehearsal-head {
    gap: 0.9rem;
}

.route-group .rehearsal-datetime > div {
    gap: 0.25rem;
}

.route-group .rehearsal-datetime strong {
    color: var(--ink-900);
    font-size: 1rem;
}

.route-group .rehearsal-datetime > div span {
    color: var(--ink-600);
}

.route-group .rehearsal-note-preview {
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(109, 127, 166, 0.1);
    border-radius: 0.95rem;
    background: rgba(245, 248, 255, 0.88);
    color: var(--ink-700);
    line-height: 1.55;
    white-space: pre-wrap;
}

.route-group .rehearsal-overview-empty {
    display: grid;
    place-items: center;
    min-height: 150px;
    color: var(--ink-500);
}

@media (max-width: 980px) {
    .route-group .group-chat-layout,
    .route-group .rehearsal-overview-grid {
        grid-template-columns: 1fr;
    }

    .route-group .group-chat-compose-panel {
        position: static;
    }
}

@media (max-width: 720px) {
    .route-group .group-chat-summary {
        grid-template-columns: 1fr 1fr;
    }

    .route-group .group-chat-summary-card.is-wide {
        grid-column: 1 / -1;
    }

    .route-group .rehearsal-overview-main,
    .route-group .rehearsal-shell {
        grid-template-columns: 1fr;
    }

    .route-group .rehearsal-date-block,
    .route-group .rehearsal-date-block.is-inline {
        justify-self: start;
        min-width: 74px;
    }
}

/* Dashboard + Group Modal polish */

.route-dashboard .dashboard-stage-status-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.route-dashboard .dashboard-stage-status-item {
    display: grid;
    gap: 0.22rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(206, 219, 238, 0.92);
    border-radius: 1rem;
    background: rgba(245, 248, 255, 0.92);
}

.route-dashboard .dashboard-stage-status-item small {
    color: #7d879a;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.route-dashboard .dashboard-stage-status-item strong {
    color: #22314b;
    font-size: 0.9rem;
}

.route-dashboard .dashboard-stage-note {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 40px;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(198, 212, 232, 0.86);
    border-radius: 1rem;
    background: rgba(250, 252, 255, 0.92);
    color: #53627a;
    font-size: 0.8rem;
    font-weight: 600;
}

.route-dashboard .dashboard-stage-insight {
    display: grid;
    gap: 0.45rem;
    padding: 0.9rem 0.95rem;
    border: 1px solid rgba(198, 212, 232, 0.86);
    border-radius: 1rem;
    background: rgba(250, 252, 255, 0.92);
}

.route-dashboard .dashboard-stage-insight strong {
    color: #22314b;
    font-size: 0.9rem;
}

.route-dashboard .dashboard-stage-insight p {
    margin: 0;
    color: #65758e;
    font-size: 0.77rem;
    line-height: 1.5;
}

.route-dashboard .dashboard-stage-insight-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.route-dashboard .dashboard-stage-insight-tags span,
.route-dashboard .dashboard-suggest-summary-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(207, 219, 236, 0.95);
    background: rgba(248, 250, 255, 0.92);
    color: #54657f;
    font-size: 0.72rem;
    font-weight: 700;
}

.route-dashboard .dashboard-counter-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 0.7rem;
    border: 1px solid rgba(154, 184, 228, 0.52);
    border-radius: 999px;
    background: rgba(123, 164, 255, 0.1);
    color: #37547d;
    font-size: 0.72rem;
    font-weight: 800;
}

.route-dashboard .dashboard-notification-card {
    gap: 0.55rem;
    color: inherit;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.route-dashboard a.dashboard-notification-card:hover {
    transform: translateY(-1px);
    border-color: rgba(158, 184, 226, 0.98);
    box-shadow: 0 16px 28px rgba(117, 140, 176, 0.14);
}

.route-dashboard .dashboard-notification-card.is-unread {
    border-color: rgba(156, 184, 230, 0.96);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
}

.route-dashboard .dashboard-notification-kicker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    color: #7c889d;
    font-size: 0.72rem;
    font-weight: 700;
}

.route-dashboard .dashboard-notification-card strong {
    color: #22314b;
    font-size: 0.92rem;
}

.route-dashboard .dashboard-notification-card p,
.route-dashboard .dashboard-feed-item p {
    margin: 0;
    color: #687892;
    line-height: 1.5;
}

.route-dashboard .dashboard-feed-item-title {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.route-dashboard .dashboard-feed-item-title strong {
    min-width: 0;
}

.route-group .group-info-modal {
    max-width: 720px;
}

.route-group .group-info-hero {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 0.9rem;
    margin-bottom: 0.9rem;
}

.route-group .group-info-cover-frame {
    overflow: hidden;
    min-height: 152px;
    border: 1px solid rgba(210, 220, 235, 0.9);
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(219, 232, 255, 0.9), rgba(233, 248, 241, 0.92));
}

.route-group .group-info-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.route-group .group-info-cover-fallback {
    display: grid;
    place-items: center;
    min-height: 152px;
    color: #35517a;
    font-size: 1.3rem;
    font-weight: 800;
}

.route-group .group-info-summary {
    display: grid;
    align-content: start;
    gap: 0.75rem;
}

.route-group .group-info-summary-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.route-group .group-info-role-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 0.7rem;
    border: 1px solid rgba(208, 221, 238, 0.95);
    border-radius: 999px;
    background: #f7f9fe;
    color: #495871;
    font-size: 0.72rem;
    font-weight: 800;
}

.route-group .group-info-summary p {
    margin: 0;
    color: var(--ink-600);
    line-height: 1.55;
}

.route-group .group-info-meta-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.route-group .group-info-meta-row > span {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    min-height: 30px;
    padding: 0 0.75rem;
    border: 1px solid rgba(210, 220, 237, 0.94);
    border-radius: 999px;
    background: rgba(247, 249, 255, 0.92);
    color: #4b5a72;
    font-size: 0.76rem;
    font-weight: 700;
}

.route-group .group-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.route-group .group-info-card {
    display: grid;
    align-content: start;
    gap: 0.8rem;
    padding: 0.95rem;
    border: 1px solid rgba(210, 220, 237, 0.92);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.84);
}

.route-group .group-info-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
}

.route-group .group-info-card-head small {
    color: #7d879a;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.route-group .group-info-card-head h3 {
    margin: 0.2rem 0 0;
    color: #22314b;
    font-size: 1rem;
}

.route-group .group-info-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    padding: 0 0.65rem;
    border-radius: 0.9rem;
    background: rgba(123, 164, 255, 0.1);
    color: #34517a;
    font-size: 0.84rem;
    font-weight: 800;
}

.route-group .group-info-list {
    display: grid;
    gap: 0.1rem;
}

.route-group .group-person-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-top: 1px solid rgba(220, 228, 240, 0.72);
}

.route-group .group-person-row:first-child {
    padding-top: 0;
    border-top: 0;
}

.route-group .group-person-avatar {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid rgba(204, 218, 236, 0.96);
    border-radius: 0.85rem;
    background: linear-gradient(135deg, rgba(220, 232, 255, 0.86), rgba(233, 247, 241, 0.92));
    color: #33507a;
    font-size: 0.8rem;
    font-weight: 800;
}

.route-group .group-person-copy {
    display: grid;
    gap: 0.16rem;
    min-width: 0;
}

.route-group .group-person-copy strong {
    color: #22314b;
    font-size: 0.88rem;
}

.route-group .group-person-copy span {
    color: #7c889d;
    font-size: 0.75rem;
    overflow-wrap: anywhere;
}

.route-group .group-person-meta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.route-group .group-person-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.route-group .group-inline-action {
    min-height: 28px;
    padding: 0 0.7rem;
    font-size: 0.7rem;
}

.route-group .group-info-more {
    border: 1px solid rgba(214, 222, 235, 0.9);
    border-radius: 0.95rem;
    background: #fafcff;
}

.route-group .group-info-more .subsection-body {
    padding-top: 0.8rem;
}

@media (max-width: 720px) {
    .route-dashboard .dashboard-stage-status-list,
    .route-group .group-info-grid {
        grid-template-columns: 1fr;
    }

    .route-group .group-info-hero {
        grid-template-columns: 1fr;
    }

    .route-group .group-info-cover-frame,
    .route-group .group-info-cover-fallback {
        min-height: 168px;
    }
}

@media (max-width: 520px) {
    .route-dashboard .dashboard-notification-kicker {
        flex-wrap: wrap;
    }

    .route-dashboard .dashboard-stage-note {
        width: 100%;
    }

    .route-group .group-person-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .route-group .group-person-row .group-person-meta,
    .route-group .group-person-row .group-person-actions {
        grid-column: 2;
        justify-self: start;
    }
}

/* Groups refinement */

.route-groups .groups-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.route-groups .groups-section-head-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.route-groups .groups-section-head-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 0.75rem;
    border: 1px solid rgba(210, 220, 237, 0.94);
    border-radius: 999px;
    background: #f5f8fe;
    color: #51617a;
    font-size: 0.72rem;
    font-weight: 700;
}

.route-groups .groups-showcase-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 0.9rem;
    padding: 0.85rem;
    border-radius: 1.15rem;
}

.route-groups .groups-showcase-cover {
    width: 88px;
    height: 88px;
    border-radius: 1rem;
}

.route-groups .groups-showcase-body {
    gap: 0.55rem;
}

.route-groups .groups-showcase-head {
    gap: 0.7rem;
}

.route-groups .groups-showcase-title-stack {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.route-groups .groups-showcase-title-stack strong {
    color: #22314b;
    font-size: 0.98rem;
    line-height: 1.2;
}

.route-groups .groups-showcase-title-stack span {
    color: #7a879a;
    font-size: 0.73rem;
    font-weight: 600;
}

.route-groups .groups-showcase-muted {
    color: #78869b;
}

.route-groups .groups-showcase-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.route-groups .groups-open-link {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 0.8rem;
    border-radius: 999px;
    background: rgba(123, 164, 255, 0.1);
    color: #37547d;
    font-size: 0.72rem;
    font-weight: 800;
}

.route-groups .groups-focus-panel {
    display: grid;
    gap: 0.9rem;
    border: 1px solid rgba(200, 214, 233, 0.84);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 250, 255, 0.95));
    box-shadow: 0 18px 34px rgba(116, 136, 170, 0.12);
}

.route-groups .groups-focus-card {
    display: grid;
    gap: 0.9rem;
    color: inherit;
    text-decoration: none;
}

.route-groups .groups-focus-cover {
    overflow: hidden;
    min-height: 172px;
    border: 1px solid rgba(206, 219, 238, 0.94);
    border-radius: 1.15rem;
    background: linear-gradient(135deg, #dce8ff, #eaf8f2);
}

.route-groups .groups-focus-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.route-groups .groups-focus-body,
.route-groups .groups-focus-copy {
    display: grid;
    gap: 0.6rem;
}

.route-groups .groups-focus-top,
.route-groups .groups-focus-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.route-groups .groups-focus-copy strong {
    color: #22314b;
    font-size: 1.02rem;
    line-height: 1.2;
}

.route-groups .groups-focus-copy p {
    margin: 0;
    color: #6c7890;
    line-height: 1.5;
}

.route-groups .groups-invite-card {
    gap: 0.75rem;
}

.route-groups .groups-invite-card .meta-row {
    color: #7a879a;
    font-size: 0.74rem;
}

@media (max-width: 940px) {
    .route-groups .groups-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 719px) {
    .route-groups .groups-showcase-card {
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 0.75rem;
    }

    .route-groups .groups-showcase-cover {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 520px) {
    .route-groups .groups-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .route-groups .groups-showcase-card {
        grid-template-columns: 72px minmax(0, 1fr);
        padding: 0.75rem;
    }

    .route-groups .groups-showcase-cover {
        width: 72px;
        height: 72px;
    }

    .route-groups .groups-showcase-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .route-groups .groups-showcase-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .route-groups .groups-focus-cover {
        min-height: 152px;
    }
}

/* Final player positioning fix */

.setlist-player {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 10px;
    z-index: 140;
    transform: translateX(-50%);
}

@media (max-width: 719px) {
    .setlist-player {
        bottom: 92px;
    }
}

@media (max-width: 520px) {
    .setlist-player {
        bottom: 88px;
    }
}

/* Notifications inbox */

.header-notification-link {
    position: relative;
}

.header-notification-badge,
.dock-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #7ba4ff, #70dfc9);
    color: #122036;
    font-size: 0.62rem;
    font-weight: 900;
    line-height: 1;
}

.header-notification-badge {
    margin-left: 0.1rem;
}

body.is-authenticated .mobile-dock {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(calc(100% - 22px), 468px);
}

.dock-link {
    position: relative;
}

.dock-badge {
    position: absolute;
    top: 6px;
    right: 8px;
}

.route-notifications .notifications-page,
.route-notifications .notifications-shell {
    display: grid;
    gap: 14px;
}

.route-notifications .notifications-hero {
    display: grid;
    gap: 12px;
    border: 1px solid rgba(198, 212, 232, 0.82);
    background:
        radial-gradient(circle at top right, rgba(123, 164, 255, 0.16), transparent 28%),
        radial-gradient(circle at bottom left, rgba(112, 223, 201, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 250, 255, 0.95));
    box-shadow: 0 22px 44px rgba(119, 142, 176, 0.14);
}

.route-notifications .notifications-hero-copy {
    display: grid;
    gap: 12px;
}

.route-notifications .notifications-hero-copy h1 {
    margin: 4px 0 0;
    letter-spacing: -0.06em;
}

.route-notifications .notifications-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.route-notifications .notifications-overview-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.route-notifications .notifications-stat-pill {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border: 1px solid rgba(202, 215, 235, 0.88);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.route-notifications .notifications-stat-pill small {
    color: #7f8ba1;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.route-notifications .notifications-stat-pill strong {
    color: #243452;
    font-size: 0.92rem;
}

.route-notifications .notifications-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 14px;
    align-items: start;
}

.route-notifications .notifications-list-panel,
.route-notifications .notifications-side-panel {
    display: grid;
    gap: 12px;
    border: 1px solid rgba(200, 214, 233, 0.84);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 250, 255, 0.95));
    box-shadow: 0 18px 34px rgba(116, 136, 170, 0.12);
}

.route-notifications .notifications-side-stack {
    display: grid;
    gap: 14px;
}

.route-notifications .notifications-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.route-notifications .notifications-section-head h2 {
    margin: 4px 0 0;
    font-size: 1.12rem;
    letter-spacing: -0.04em;
}

.route-notifications .notifications-counter-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 0.7rem;
    border: 1px solid rgba(154, 184, 228, 0.52);
    border-radius: 999px;
    background: rgba(123, 164, 255, 0.1);
    color: #37547d;
    font-size: 0.72rem;
    font-weight: 800;
}

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

.route-notifications .notifications-card {
    display: grid;
    gap: 0.7rem;
    padding: 0.95rem;
    border: 1px solid rgba(203, 217, 236, 0.9);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.route-notifications .notifications-card.is-unread {
    border-color: rgba(156, 184, 230, 0.96);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
}

.route-notifications .notifications-card-top,
.route-notifications .notifications-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.route-notifications .notifications-card-title {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.route-notifications .notifications-unread-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7aabf5, #70d7c9);
    box-shadow: 0 0 0 4px rgba(122, 171, 245, 0.12);
}

.route-notifications .notifications-card-time {
    color: #7c889d;
    font-size: 0.72rem;
    font-weight: 700;
}

.route-notifications .notifications-card strong {
    color: #22314b;
    font-size: 0.96rem;
}

.route-notifications .notifications-card p {
    margin: 0;
    color: #687892;
    line-height: 1.55;
}

.route-notifications .notifications-summary-list {
    display: grid;
    gap: 0.8rem;
}

.route-notifications .notifications-summary-item {
    display: grid;
    gap: 0.18rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(203, 217, 236, 0.9);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.88);
}

.route-notifications .notifications-summary-item small {
    color: #7f8ba1;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.route-notifications .notifications-summary-item strong {
    color: #243452;
    font-size: 1.05rem;
}

.route-notifications .notifications-empty {
    display: grid;
    place-items: center;
    gap: 6px;
    min-height: 180px;
    padding: 18px;
    border: 1px dashed rgba(198, 212, 232, 0.96);
    border-radius: 18px;
    background: rgba(247, 250, 255, 0.84);
    text-align: center;
}

.route-notifications .notifications-empty strong {
    color: #243452;
}

.route-invite .invite-page,
.route-invite .invite-shell,
.route-invite .invite-main-stack,
.route-invite .invite-side-stack {
    display: grid;
    gap: 14px;
}

.route-invite .invite-hero,
.route-invite .invite-section,
.route-invite .invite-side-panel {
    border: 1px solid rgba(200, 214, 233, 0.84);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 250, 255, 0.95));
    box-shadow: 0 18px 34px rgba(116, 136, 170, 0.12);
}

.route-invite .invite-section,
.route-invite .invite-side-panel {
    display: grid;
    gap: 12px;
}

.route-invite .invite-hero {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
}

.route-invite .invite-hero-cover {
    min-height: 240px;
    overflow: hidden;
    border-radius: 1.15rem;
    background: linear-gradient(135deg, #dce8ff, #eaf8f2);
}

.route-invite .invite-hero-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.route-invite .invite-hero-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #36547b;
    font-weight: 800;
    font-size: 1.3rem;
}

.route-invite .invite-hero-copy {
    display: grid;
    gap: 0.85rem;
    align-content: center;
}

.route-invite .invite-hero-copy h1 {
    margin: 0;
    color: #22314b;
    letter-spacing: -0.06em;
}

.route-invite .invite-hero-copy p,
.route-invite .invite-lead-copy,
.route-invite .invite-rehearsal-copy p {
    margin: 0;
    color: #687892;
    line-height: 1.6;
}

.route-invite .invite-hero-pills,
.route-invite .invite-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.route-invite .invite-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
    gap: 14px;
    align-items: start;
}

.route-invite .invite-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.route-invite .invite-section-head h2 {
    margin: 4px 0 0;
    font-size: 1.08rem;
    letter-spacing: -0.04em;
}

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

.route-invite .invite-summary-card,
.route-invite .invite-song-card,
.route-invite .invite-rehearsal-card,
.route-invite .invite-member-card,
.route-invite .invite-focus-callout {
    border: 1px solid rgba(203, 217, 236, 0.9);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.route-invite .invite-summary-card {
    display: grid;
    gap: 0.24rem;
    padding: 0.95rem 1rem;
}

.route-invite .invite-summary-card small {
    color: #7f8ba1;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.route-invite .invite-summary-card strong,
.route-invite .invite-song-copy strong,
.route-invite .invite-rehearsal-copy strong,
.route-invite .invite-member-copy strong,
.route-invite .invite-focus-callout strong {
    color: #243452;
}

.route-invite .invite-summary-card span,
.route-invite .invite-song-copy span,
.route-invite .invite-rehearsal-copy span,
.route-invite .invite-member-copy span,
.route-invite .invite-side-note {
    color: #70809a;
    font-size: 0.75rem;
    line-height: 1.5;
}

.route-invite .invite-side-note {
    margin: 0;
}

.route-invite .invite-focus-callout {
    display: grid;
    gap: 0.45rem;
    padding: 0.95rem 1rem;
    background: linear-gradient(135deg, rgba(123, 164, 255, 0.08), rgba(112, 223, 201, 0.08));
}

.route-invite .invite-song-list,
.route-invite .invite-member-list,
.route-invite .invite-decision-list {
    display: grid;
    gap: 10px;
}

.route-invite .invite-song-card,
.route-invite .invite-rehearsal-card,
.route-invite .invite-member-card {
    display: grid;
    gap: 10px;
    padding: 0.92rem 1rem;
}

.route-invite .invite-song-card {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
}

.route-invite .invite-song-index {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 0.95rem;
    background: linear-gradient(135deg, rgba(123, 164, 255, 0.14), rgba(112, 223, 201, 0.14));
    color: #35547c;
    font-size: 0.82rem;
    font-weight: 800;
}

.route-invite .invite-song-copy,
.route-invite .invite-rehearsal-copy,
.route-invite .invite-member-copy {
    display: grid;
    gap: 0.16rem;
    min-width: 0;
}

.route-invite .invite-rehearsal-card {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: start;
}

.route-invite .invite-rehearsal-date {
    display: grid;
    justify-items: center;
    gap: 0.14rem;
    padding: 0.7rem 0.5rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(123, 164, 255, 0.14), rgba(112, 223, 201, 0.14));
    color: #35547c;
}

.route-invite .invite-rehearsal-date strong {
    font-size: 1.15rem;
    line-height: 1;
}

.route-invite .invite-rehearsal-date span {
    font-size: 0.84rem;
    font-weight: 800;
}

.route-invite .invite-rehearsal-date small {
    color: #53749c;
    font-size: 0.74rem;
    font-weight: 700;
}

.route-invite .invite-member-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
}

.route-invite .invite-member-avatar {
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 0.95rem;
}

.route-invite .invite-meta-pill,
.route-invite .invite-counter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(210, 220, 237, 0.94);
    border-radius: 999px;
    background: #f5f8fe;
    color: #40506c;
    font-size: 0.72rem;
    font-weight: 700;
}

.route-invite .notifications-summary-item {
    display: grid;
    gap: 0.18rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(203, 217, 236, 0.9);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.88);
}

.route-invite .notifications-summary-item small {
    color: #7f8ba1;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.route-invite .notifications-summary-item strong {
    color: #243452;
    font-size: 0.94rem;
    line-height: 1.45;
}

.route-invite .invite-empty {
    display: grid;
    place-items: center;
    gap: 6px;
    min-height: 126px;
    padding: 18px;
    border: 1px dashed rgba(198, 212, 232, 0.96);
    border-radius: 18px;
    background: rgba(247, 250, 255, 0.84);
    text-align: center;
}

.route-invite .invite-empty strong {
    color: #243452;
}

@media (max-width: 940px) {
    .route-notifications .notifications-layout,
    .route-notifications .notifications-overview-grid {
        grid-template-columns: 1fr 1fr;
    }

    .route-notifications .notifications-layout {
        grid-template-columns: 1fr;
    }

    .route-invite .invite-hero,
    .route-invite .invite-layout,
    .route-invite .invite-summary-grid {
        grid-template-columns: 1fr;
    }

    .route-invite .invite-hero-cover {
        min-height: 180px;
    }
}

@media (max-width: 719px) {
    body.is-authenticated .mobile-dock {
        width: min(calc(100% - 12px), 480px);
    }

    .route-notifications .notifications-hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .route-notifications .notifications-hero-actions > * {
        width: 100%;
        min-width: 0;
    }

    .route-invite .invite-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .route-invite .invite-hero-actions > * {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 520px) {
    .route-notifications .notifications-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .route-notifications .notifications-section-head,
    .route-notifications .notifications-card-top,
    .route-notifications .notifications-card-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .route-notifications .notifications-card-actions > * {
        width: 100%;
    }

    .route-invite .invite-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .route-invite .invite-rehearsal-card {
        grid-template-columns: 1fr;
    }
}

/* Profile */

.route-profile .profile-page,
.route-profile .profile-shell {
    display: grid;
    gap: 14px;
}

.route-profile .profile-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
    gap: 14px;
    border: 1px solid rgba(198, 212, 232, 0.82);
    background:
        radial-gradient(circle at top left, rgba(123, 164, 255, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(112, 223, 201, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 250, 255, 0.95));
    box-shadow: 0 22px 44px rgba(119, 142, 176, 0.14);
}

.route-profile .profile-hero-copy,
.route-profile .profile-hero-stage,
.route-profile .profile-summary-panel,
.route-profile .profile-form {
    display: grid;
    gap: 12px;
}

.route-profile .profile-hero-copy h1 {
    margin: 4px 0 0;
    letter-spacing: -0.06em;
}

.route-profile .profile-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.route-profile .profile-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 30px;
    padding: 0 0.8rem;
    border: 1px solid rgba(210, 220, 237, 0.94);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #4b5a72;
    font-size: 0.74rem;
    font-weight: 700;
}

.route-profile .profile-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.route-profile .profile-avatar-card {
    display: grid;
    gap: 0.9rem;
    justify-items: start;
    align-content: start;
    padding: 1rem;
    border: 1px solid rgba(202, 215, 235, 0.88);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.88);
}

.route-profile .profile-avatar {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 1.3rem;
    background: linear-gradient(135deg, #dce8ff, #eaf8f2);
    color: #35517a;
    font-size: 1.4rem;
    font-weight: 800;
}

.route-profile .profile-avatar-copy {
    display: grid;
    gap: 0.2rem;
}

.route-profile .profile-avatar-copy strong {
    color: #22314b;
    font-size: 1rem;
}

.route-profile .profile-avatar-copy span {
    color: #7c889d;
    font-size: 0.78rem;
}

.route-profile .profile-flag-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.route-profile .profile-flag-item {
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(203, 217, 236, 0.9);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.86);
}

.route-profile .profile-flag-item small {
    color: #7f8ba1;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.route-profile .profile-flag-item strong {
    color: #243452;
    font-size: 0.98rem;
}

.route-profile .profile-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
    gap: 14px;
    align-items: start;
}

.route-profile .profile-side-stack {
    display: grid;
    gap: 14px;
}

.route-profile .profile-summary-panel,
.route-profile .profile-form {
    border: 1px solid rgba(200, 214, 233, 0.84);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 250, 255, 0.95));
    box-shadow: 0 18px 34px rgba(116, 136, 170, 0.12);
}

.route-profile .profile-chip-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.route-profile .profile-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(208, 221, 238, 0.95);
    border-radius: 999px;
    background: #f7f9fe;
    color: #495871;
    font-size: 0.76rem;
    font-weight: 700;
}

.route-profile .profile-form {
    gap: 1rem;
}

.route-profile .profile-form-section {
    display: grid;
    gap: 0.95rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(213, 223, 238, 0.76);
}

.route-profile .profile-form-section:last-of-type {
    padding-bottom: 0;
    border-bottom: 0;
}

.route-profile input[readonly] {
    color: #6f7e95;
    background: rgba(244, 247, 255, 0.9);
}

@media (max-width: 940px) {
    .route-profile .profile-hero,
    .route-profile .profile-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 719px) {
    .route-profile .profile-hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .route-profile .profile-hero-actions > * {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 520px) {
    .route-profile .profile-flag-grid {
        grid-template-columns: 1fr;
    }

    .route-profile .profile-hero-actions {
        grid-template-columns: 1fr;
    }
}

/* Avatar System */

.avatar-media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.avatar-fallback {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    border-radius: inherit;
}

.route-profile .profile-avatar,
.route-profile .profile-avatar-preview-media,
.route-dashboard .dashboard-profile-avatar,
.route-group .group-chat-avatar,
.route-group .group-person-avatar,
.route-group .comment-bubble-avatar {
    overflow: hidden;
}

.route-profile .profile-avatar-card {
    gap: 0.75rem;
}

.route-profile .profile-avatar-meta {
    display: grid;
    gap: 0.55rem;
    width: 100%;
}

.route-profile .profile-avatar-meta small {
    color: #7c889d;
    font-size: 0.72rem;
    font-weight: 700;
}

.route-profile .profile-avatar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.route-profile .profile-avatar-actions .inline-form {
    display: flex;
}

.route-profile .profile-avatar-modal {
    display: grid;
    gap: 1rem;
    max-width: 480px;
}

.route-profile .profile-avatar-form {
    display: grid;
    gap: 0.95rem;
}

.route-profile .profile-avatar-preview {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(205, 218, 236, 0.88);
    border-radius: 1rem;
    background: rgba(247, 250, 255, 0.88);
}

.route-profile .profile-avatar-preview-media {
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    border-radius: 1.1rem;
    background: linear-gradient(135deg, #dce8ff, #eaf8f2);
    color: #35517a;
    font-size: 1.05rem;
    font-weight: 800;
}

.route-profile .profile-avatar-preview-copy {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.route-profile .profile-avatar-preview-copy strong {
    color: #22314b;
    font-size: 0.92rem;
}

.route-profile .profile-avatar-preview-copy span {
    color: #7c889d;
    font-size: 0.75rem;
}

.route-dashboard .dashboard-profile-identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(208, 220, 238, 0.92);
    border-radius: 1rem;
    background: rgba(248, 250, 255, 0.84);
}

.route-dashboard .dashboard-profile-avatar {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(220, 232, 255, 0.95), rgba(233, 247, 241, 0.92));
    color: #314c74;
    font-size: 0.95rem;
    font-weight: 800;
}

.route-dashboard .dashboard-profile-identity-copy {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.route-dashboard .dashboard-profile-identity-copy strong {
    color: #22314b;
    font-size: 0.9rem;
}

.route-dashboard .dashboard-profile-identity-copy span {
    color: #7a879b;
    font-size: 0.73rem;
    line-height: 1.35;
}

.route-group .comment-bubble-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem;
    align-items: start;
}

.route-group .comment-bubble-avatar {
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border: 1px solid rgba(206, 219, 236, 0.92);
    border-radius: 0.82rem;
    background: rgba(236, 243, 255, 0.94);
    color: #3a567f;
    font-size: 0.72rem;
    font-weight: 800;
}

.route-group .comment-bubble-copy {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.route-group .comment-bubble-copy p {
    margin: 0;
}

@media (max-width: 719px) {
    .route-profile .profile-avatar-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .route-profile .profile-avatar-actions .inline-form,
    .route-profile .profile-avatar-actions .inline-form button,
    .route-profile .profile-avatar-actions > button {
        width: 100%;
    }
}

.entity-link {
    color: inherit;
    text-decoration: none;
}

.entity-link:hover,
.entity-link:focus-visible {
    color: #4a78d8;
}

.field-hint {
    margin: 0;
    color: #7a879b;
    font-size: 0.74rem;
    line-height: 1.4;
}

.availability-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    border: 1px solid rgba(206, 219, 236, 0.96);
    background: rgba(247, 250, 255, 0.86);
    color: #50617c;
}

.availability-pill.is-open {
    border-color: rgba(129, 212, 184, 0.96);
    background: rgba(228, 248, 239, 0.96);
    color: #1d6a52;
}

.availability-pill.is-plan {
    border-color: rgba(145, 184, 241, 0.98);
    background: rgba(232, 241, 255, 0.96);
    color: #355ea3;
}

.availability-pill.is-limited {
    border-color: rgba(241, 204, 145, 0.98);
    background: rgba(255, 246, 228, 0.96);
    color: #96611c;
}

.availability-pill.is-off {
    border-color: rgba(221, 206, 227, 0.98);
    background: rgba(246, 241, 248, 0.96);
    color: #6f537f;
}

.availability-pill.is-muted {
    border-color: rgba(206, 219, 236, 0.96);
    background: rgba(247, 250, 255, 0.86);
    color: #50617c;
}

.route-profile .profile-cover {
    padding: 0;
    overflow: hidden;
}

.route-profile .profile-cover-frame {
    position: relative;
    min-height: 220px;
    border-radius: inherit;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(121, 168, 255, 0.32), rgba(159, 227, 216, 0.3));
}

.route-profile .profile-cover-image,
.route-profile .profile-cover-preview-image,
.route-member .member-cover-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.route-profile .profile-cover-fallback,
.route-member .member-cover-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: end;
    padding: 1.2rem;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.48), transparent 18%),
        linear-gradient(135deg, rgba(121, 168, 255, 0.9), rgba(159, 227, 216, 0.82));
}

.route-profile .profile-cover-fallback-copy {
    display: grid;
    gap: 0.28rem;
    color: #fff;
}

.route-profile .profile-cover-fallback-copy strong {
    font-size: 1.4rem;
    letter-spacing: -0.05em;
}

.route-profile .profile-cover-fallback-copy span:last-child {
    font-size: 0.86rem;
    opacity: 0.92;
}

.route-profile .profile-cover-actions {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.route-profile .profile-hero-legal-name {
    margin: -0.2rem 0 0;
    color: #7c889d;
    font-size: 0.82rem;
    font-weight: 700;
}

.route-profile .profile-hero-headline {
    margin: -0.1rem 0 0;
    color: #4b5a72;
    font-size: 0.92rem;
    line-height: 1.5;
}

.route-profile .profile-link-stack {
    display: grid;
    gap: 0.65rem;
}

.route-profile .profile-status-stack {
    display: grid;
    gap: 0.7rem;
}

.route-profile .profile-status-card,
.route-profile .profile-demo-card,
.route-member .member-demo-card {
    display: grid;
    gap: 0.55rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(208, 220, 238, 0.92);
    border-radius: 1rem;
    background: rgba(248, 250, 255, 0.86);
}

.route-profile .profile-status-card strong,
.route-profile .profile-demo-card strong,
.route-member .member-demo-card strong {
    color: #22314b;
    font-size: 0.84rem;
}

.route-profile .profile-status-card span,
.route-member .member-flag span {
    color: #74839c;
    font-size: 0.74rem;
    line-height: 1.45;
}

.route-profile .profile-demo-card audio,
.route-member .member-demo-card audio,
.route-profile .profile-demo-preview audio {
    width: 100%;
}

.profile-link-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(208, 220, 238, 0.92);
    border-radius: 1rem;
    background: rgba(248, 250, 255, 0.86);
    color: #25344f;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.profile-link-card:hover,
.profile-link-card:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(150, 178, 223, 0.98);
    background: rgba(255, 255, 255, 0.96);
}

.profile-link-icon {
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid rgba(206, 219, 236, 0.92);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.92);
    color: #50617c;
}

.profile-link-copy {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.profile-link-copy strong {
    font-size: 0.84rem;
}

.profile-link-copy span {
    color: #72819a;
    font-size: 0.73rem;
    overflow-wrap: anywhere;
}

.route-profile .profile-cover-modal {
    display: grid;
    gap: 1rem;
    max-width: 560px;
}

.route-profile .profile-demo-modal {
    display: grid;
    gap: 1rem;
    max-width: 560px;
}

.route-profile .profile-cover-preview {
    border: 1px solid rgba(205, 218, 236, 0.88);
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(247, 250, 255, 0.88);
    min-height: 170px;
}

.route-profile .profile-cover-preview-fallback {
    display: grid;
    gap: 0.3rem;
    align-content: end;
    min-height: 170px;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(121, 168, 255, 0.9), rgba(159, 227, 216, 0.82));
    color: #fff;
}

.route-profile .profile-cover-preview-fallback strong {
    font-size: 1.05rem;
}

.route-profile .profile-cover-preview-fallback span {
    font-size: 0.82rem;
    opacity: 0.94;
}

.route-profile .profile-demo-preview {
    display: grid;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(205, 218, 236, 0.88);
    border-radius: 1rem;
    background: rgba(247, 250, 255, 0.88);
}

.route-profile .profile-demo-remove-form {
    display: flex;
    justify-content: flex-end;
}

.route-member .member-page,
.route-member .member-shell {
    display: grid;
    gap: 14px;
}

.route-member .member-hero {
    padding: 0;
    overflow: hidden;
}

.route-member .member-cover-frame {
    position: relative;
    min-height: 240px;
    background: linear-gradient(135deg, rgba(121, 168, 255, 0.28), rgba(159, 227, 216, 0.24));
}

.route-member .member-cover-orb {
    position: absolute;
    right: 8%;
    top: 18%;
    width: 180px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
    opacity: 0.42;
}

.route-member .member-hero-content {
    display: grid;
    gap: 1rem;
    padding: 1.15rem;
}

.route-member .member-identity-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}

.route-member .member-avatar {
    display: grid;
    place-items: center;
    width: 5rem;
    height: 5rem;
    border-radius: 1.4rem;
    border: 1px solid rgba(204, 218, 236, 0.96);
    background: linear-gradient(135deg, rgba(220, 232, 255, 0.92), rgba(233, 247, 241, 0.92));
    color: #314c74;
    font-size: 1.2rem;
    font-weight: 800;
    overflow: hidden;
}

.route-member .member-identity-copy {
    display: grid;
    gap: 0.2rem;
}

.route-member .member-identity-copy h1 {
    margin: 0;
    color: #22314b;
    letter-spacing: -0.05em;
}

.route-member .member-legal-name,
.route-member .member-headline {
    margin: 0;
}

.route-member .member-legal-name {
    color: #7a879b;
    font-size: 0.82rem;
    font-weight: 700;
}

.route-member .member-headline {
    color: #4b5a72;
    font-size: 0.92rem;
    line-height: 1.5;
}

.route-member .member-meta-row,
.route-member .member-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.route-member .member-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 30px;
    padding: 0 0.8rem;
    border: 1px solid rgba(210, 220, 237, 0.94);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #4b5a72;
    font-size: 0.74rem;
    font-weight: 700;
}

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

.route-member .member-section {
    display: grid;
    gap: 0.9rem;
}

.route-member .member-bio-section {
    min-height: 0;
}

.route-member .member-flag-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.route-member .member-flag {
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem;
    border: 1px solid rgba(205, 218, 236, 0.9);
    border-radius: 1rem;
    background: rgba(248, 250, 255, 0.84);
}

.route-member .member-flag small {
    color: #7a879b;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.route-member .member-flag strong {
    color: #22314b;
    font-size: 0.92rem;
}

.route-member .member-flag span {
    color: #74839c;
    font-size: 0.74rem;
    line-height: 1.45;
}

.user-picker-result {
    display: grid;
    gap: 0.7rem;
    padding: 10px 12px;
    border: 1px solid rgba(214, 223, 239, 0.92);
    border-radius: 12px;
    background: #fbfcff;
}

.user-picker-result-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
}

.user-picker-result-avatar {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(206, 219, 236, 0.92);
    border-radius: 0.9rem;
    background: rgba(236, 243, 255, 0.94);
    color: #3a567f;
    font-size: 0.72rem;
    font-weight: 800;
    overflow: hidden;
}

.user-picker-result-title {
    display: grid;
    gap: 0.08rem;
}

.user-picker-result-title strong {
    font-size: 0.84rem;
    line-height: 1.2;
}

.user-picker-result-title small {
    color: #7a879b;
    font-size: 0.68rem;
    line-height: 1.2;
}

.user-picker-result-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 0.15rem;
}

.user-picker-result-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    border: 1px solid rgba(206, 219, 236, 0.96);
    background: rgba(247, 250, 255, 0.9);
    color: #50617c;
}

.user-picker-result-badge.is-open {
    border-color: rgba(129, 212, 184, 0.96);
    background: rgba(228, 248, 239, 0.96);
    color: #1d6a52;
}

.user-picker-result-badge.is-plan {
    border-color: rgba(145, 184, 241, 0.98);
    background: rgba(232, 241, 255, 0.96);
    color: #355ea3;
}

.user-picker-result-badge.is-limited {
    border-color: rgba(241, 204, 145, 0.98);
    background: rgba(255, 246, 228, 0.96);
    color: #96611c;
}

.user-picker-result-badge.is-off {
    border-color: rgba(221, 206, 227, 0.98);
    background: rgba(246, 241, 248, 0.96);
    color: #6f537f;
}

.user-picker-result-badge.is-seeking {
    border-color: rgba(134, 205, 232, 0.98);
    background: rgba(231, 248, 255, 0.98);
    color: #21607a;
}

.user-picker-result-actions {
    display: flex;
    gap: 8px;
}

.user-picker-result-link,
.user-picker-result-select {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid rgba(203, 217, 236, 0.92);
    border-radius: 10px;
    background: #fff;
    color: #31435f;
    font-size: 0.74rem;
    font-weight: 700;
    text-decoration: none;
}

.user-picker-result-select {
    cursor: pointer;
    background: linear-gradient(135deg, rgba(121, 168, 255, 0.18), rgba(159, 227, 216, 0.2));
}

@media (max-width: 940px) {
    .route-member .member-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 719px) {
    .route-profile .profile-cover-actions,
    .route-member .member-action-row {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .route-profile .profile-cover-actions .inline-form,
    .route-profile .profile-cover-actions .inline-form button,
    .route-profile .profile-cover-actions > button {
        width: 100%;
    }

    .route-member .member-identity-card {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .route-member .member-flag-grid {
        grid-template-columns: 1fr;
    }

    .user-picker-result-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.dashboard-profile-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dashboard-inline-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(206, 219, 236, 0.96);
    background: rgba(247, 250, 255, 0.9);
    color: #51617c;
    font-size: 0.72rem;
    font-weight: 800;
}

.dashboard-inline-pill.is-seeking {
    border-color: rgba(134, 205, 232, 0.98);
    background: rgba(231, 248, 255, 0.98);
    color: #21607a;
}

.dashboard-profile-note {
    margin: 0;
    color: #70809a;
    font-size: 0.74rem;
    line-height: 1.5;
}

.dashboard-profile-demo {
    display: grid;
    gap: 0.65rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(208, 220, 238, 0.92);
    border-radius: 1rem;
    background: rgba(248, 250, 255, 0.88);
}

.dashboard-profile-demo-head strong {
    color: #22314b;
    font-size: 0.8rem;
}

.dashboard-profile-demo audio {
    width: 100%;
}

.route-dashboard .dashboard-main-grid {
    display: grid;
    gap: 14px;
}

.route-dashboard .dashboard-suggest-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #66758e;
    font-size: 0.76rem;
}

.route-dashboard .dashboard-suggest-list {
    display: grid;
    gap: 10px;
}

.route-dashboard .dashboard-suggest-card {
    display: grid;
    gap: 0.8rem;
    padding: 0.95rem;
    border: 1px solid rgba(203, 217, 236, 0.9);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.route-dashboard .dashboard-shortlist-panel {
    display: grid;
    gap: 0.85rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(214, 224, 239, 0.92);
}

.route-dashboard .dashboard-shortlist-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
    justify-content: space-between;
}

.route-dashboard .dashboard-shortlist-head-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.route-dashboard .dashboard-shortlist-list {
    display: grid;
    gap: 10px;
}

.route-dashboard .dashboard-shortlist-card {
    display: grid;
    gap: 0.8rem;
    padding: 0.95rem;
    border: 1px solid rgba(203, 217, 236, 0.9);
    border-radius: 1rem;
    background: rgba(248, 251, 255, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.route-dashboard .dashboard-shortlist-saved-at {
    color: #7c8aa1;
    font-size: 0.72rem;
    font-weight: 700;
}

.shortlist-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 0.78rem;
    border-radius: 999px;
    border: 1px solid rgba(207, 219, 236, 0.96);
    background: rgba(245, 248, 255, 0.96);
    color: #4c617f;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.shortlist-status-pill.is-saved {
    border-color: rgba(196, 211, 233, 0.98);
    background: rgba(242, 246, 255, 0.98);
    color: #415777;
}

.shortlist-status-pill.is-strong {
    border-color: rgba(143, 215, 180, 0.98);
    background: rgba(235, 250, 242, 0.98);
    color: #1f6a48;
}

.shortlist-status-pill.is-follow-up {
    border-color: rgba(252, 210, 138, 0.98);
    background: rgba(255, 247, 228, 0.98);
    color: #9a6219;
}

.shortlist-status-pill.is-pass {
    border-color: rgba(221, 199, 208, 0.96);
    background: rgba(250, 244, 247, 0.98);
    color: #835a6f;
}

.dashboard-empty.compact p {
    margin: 0.35rem 0 0;
}

.route-notifications .notifications-insight-copy {
    display: grid;
    gap: 0.4rem;
}

.route-notifications .notifications-insight-copy strong {
    color: #22314b;
    font-size: 0.92rem;
}

.route-notifications .notifications-insight-copy p {
    margin: 0;
    color: #69788f;
    font-size: 0.78rem;
    line-height: 1.55;
}

.route-notifications .notifications-insight-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.route-notifications .notifications-insight-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(207, 219, 236, 0.95);
    background: rgba(248, 250, 255, 0.92);
    color: #54657f;
    font-size: 0.72rem;
    font-weight: 700;
}

.route-dashboard .dashboard-suggest-head {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    justify-content: space-between;
}

.route-dashboard .dashboard-suggest-identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
    min-width: 0;
}

.route-dashboard .dashboard-suggest-avatar {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.95rem;
}

.route-dashboard .dashboard-suggest-copy {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.route-dashboard .dashboard-suggest-copy strong {
    color: #22314b;
    font-size: 0.92rem;
}

.route-dashboard .dashboard-suggest-copy span {
    color: #77849a;
    font-size: 0.74rem;
    line-height: 1.45;
}

.route-dashboard .dashboard-suggest-score {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 0.8rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(115, 168, 255, 0.2), rgba(159, 227, 216, 0.24));
    border: 1px solid rgba(126, 176, 243, 0.98);
    color: #254f82;
    font-size: 0.72rem;
    font-weight: 800;
}

.route-dashboard .dashboard-suggest-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.route-dashboard .dashboard-suggest-reason {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(207, 219, 236, 0.95);
    background: rgba(248, 250, 255, 0.92);
    color: #54657f;
    font-size: 0.72rem;
    font-weight: 700;
}

.route-dashboard .dashboard-shortlist-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.route-dashboard .dashboard-shortlist-note {
    display: grid;
    gap: 0.28rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(214, 224, 239, 0.92);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.86);
}

.route-dashboard .dashboard-shortlist-note strong {
    color: #22314b;
    font-size: 0.76rem;
}

.route-dashboard .dashboard-shortlist-note p {
    margin: 0;
    color: #687793;
    font-size: 0.76rem;
    line-height: 1.55;
}

.route-dashboard .dashboard-shortlist-editor {
    border: 1px solid rgba(214, 224, 239, 0.92);
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.86);
    overflow: hidden;
}

.route-dashboard .dashboard-shortlist-editor summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 0.95rem;
    cursor: pointer;
    list-style: none;
    color: #22314b;
    font-size: 0.78rem;
    font-weight: 800;
}

.route-dashboard .dashboard-shortlist-editor summary::-webkit-details-marker {
    display: none;
}

.route-dashboard .dashboard-shortlist-editor-meta {
    color: #7b889d;
    font-size: 0.7rem;
    font-weight: 700;
}

.route-dashboard .dashboard-shortlist-form {
    display: grid;
    gap: 0.8rem;
    padding: 0 0.95rem 0.95rem;
}

.route-dashboard .dashboard-shortlist-form .field {
    margin: 0;
}

.route-dashboard .dashboard-shortlist-form textarea {
    min-height: 88px;
    resize: vertical;
}

.route-discover .discover-shell {
    display: grid;
    gap: 14px;
}

.route-discover .discover-hero,
.route-discover .discover-filters-panel,
.route-discover .discover-card {
    border: 1px solid rgba(200, 214, 233, 0.84);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 250, 255, 0.95));
    box-shadow: 0 18px 34px rgba(116, 136, 170, 0.1);
}

.route-discover .discover-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.8fr);
    gap: 1rem;
    align-items: end;
}

.route-discover .discover-hero-copy {
    display: grid;
    gap: 0.5rem;
}

.route-discover .discover-hero-copy p {
    margin: 0;
    color: #6d7d96;
    font-size: 0.86rem;
    line-height: 1.6;
}

.route-discover .discover-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.route-discover .discover-stat-card {
    display: grid;
    gap: 0.28rem;
    padding: 0.9rem 0.95rem;
    border: 1px solid rgba(208, 220, 238, 0.92);
    border-radius: 1rem;
    background: rgba(248, 250, 255, 0.88);
}

.route-discover .discover-stat-card small {
    color: #7a879b;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.route-discover .discover-stat-card strong {
    color: #22314b;
    font-size: 1.15rem;
    letter-spacing: -0.04em;
}

.route-discover .discover-filters-panel {
    display: grid;
    gap: 0.95rem;
}

.route-discover .discover-filters {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.85rem;
    align-items: end;
}

.route-discover .discover-search-field {
    grid-column: span 2;
}

.route-discover .discover-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 44px;
    color: #4e5d77;
    font-size: 0.78rem;
    font-weight: 700;
}

.route-discover .discover-checkbox input {
    width: 16px;
    height: 16px;
}

.route-discover .discover-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.route-discover .discover-filter-inline-note {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #66758e;
    font-size: 0.76rem;
}

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

.route-discover .discover-card {
    display: grid;
    gap: 0.95rem;
}

.route-discover .discover-card-main {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.route-discover .discover-card-identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
    min-width: 0;
}

.route-discover .discover-card-avatar {
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 1.15rem;
}

.route-discover .discover-card-copy {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.route-discover .discover-card-title-row {
    display: flex;
    gap: 0.8rem;
    align-items: start;
    justify-content: space-between;
}

.route-discover .discover-card-title {
    display: grid;
    gap: 0.08rem;
    min-width: 0;
}

.route-discover .discover-card-title strong {
    color: #22314b;
    font-size: 1rem;
    letter-spacing: -0.04em;
}

.route-discover .discover-card-title small {
    color: #7a879b;
    font-size: 0.72rem;
    font-weight: 700;
}

.route-discover .discover-card-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.route-discover .discover-score-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 0.8rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(115, 168, 255, 0.2), rgba(159, 227, 216, 0.24));
    border: 1px solid rgba(126, 176, 243, 0.98);
    color: #254f82;
    font-size: 0.71rem;
    font-weight: 800;
}

.route-discover .discover-inline-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(206, 219, 236, 0.96);
    background: rgba(247, 250, 255, 0.9);
    color: #51617c;
    font-size: 0.7rem;
    font-weight: 800;
}

.route-discover .discover-inline-pill.is-seeking {
    border-color: rgba(134, 205, 232, 0.98);
    background: rgba(231, 248, 255, 0.98);
    color: #21607a;
}

.route-discover .discover-inline-pill.is-saved {
    border-color: rgba(196, 211, 233, 0.98);
    background: rgba(242, 246, 255, 0.98);
    color: #415777;
}

.route-discover .discover-card-headline,
.route-discover .discover-card-note p {
    margin: 0;
    color: #5a6a84;
    font-size: 0.8rem;
    line-height: 1.55;
}

.route-discover .discover-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #8090a7;
    font-size: 0.72rem;
    font-weight: 700;
}

.route-discover .discover-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: start;
    justify-content: flex-end;
}

.route-discover .discover-invite-form {
    display: flex;
}

.route-discover .discover-shortlist-form {
    display: flex;
}

.route-discover .discover-card-body {
    display: grid;
    gap: 0.7rem;
}

.route-discover .discover-match-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.route-discover .discover-match-item {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(207, 219, 236, 0.95);
    background: rgba(248, 250, 255, 0.92);
    color: #54657f;
    font-size: 0.72rem;
    font-weight: 700;
}

.route-discover .profile-chip-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.route-discover .profile-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(208, 221, 238, 0.95);
    border-radius: 999px;
    background: #f7f9fe;
    color: #495871;
    font-size: 0.75rem;
    font-weight: 700;
}

.route-discover .profile-chip.is-secondary {
    background: rgba(237, 244, 255, 0.92);
    color: #617395;
}

.route-discover .discover-card-note {
    display: grid;
    gap: 0.3rem;
}

.route-discover .discover-card-demo {
    display: grid;
    gap: 0.55rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(208, 220, 238, 0.92);
    border-radius: 1rem;
    background: rgba(248, 250, 255, 0.88);
}

.route-discover .discover-card-demo-head strong {
    color: #22314b;
    font-size: 0.8rem;
}

.route-discover .discover-card-demo audio {
    width: 100%;
}

@media (max-width: 899px) {
    .route-discover .discover-hero,
    .route-discover .discover-filters {
        grid-template-columns: 1fr;
    }

    .route-discover .discover-search-field {
        grid-column: auto;
    }
}

@media (max-width: 719px) {
    .route-dashboard .dashboard-suggest-head {
        display: grid;
    }

    .live-chart-import-head {
        display: grid;
    }

    .route-dashboard .dashboard-shortlist-head,
    .route-dashboard .dashboard-shortlist-head-tags,
    .route-dashboard .dashboard-shortlist-meta {
        justify-content: flex-start;
    }

    .route-discover .discover-card-main,
    .route-discover .discover-card-title-row {
        display: grid;
    }

    .route-discover .discover-card-actions,
    .route-discover .discover-card-pills {
        justify-content: flex-start;
    }

    .route-discover .discover-card-actions,
    .route-discover .discover-card-actions > * {
        width: 100%;
    }

    .route-discover .discover-invite-form button,
    .route-discover .discover-card-actions a {
        justify-content: center;
    }
}

.route-group .group-recruiting-form,
.route-group .group-recruiting-readonly {
    display: grid;
    gap: 0.9rem;
}

.route-group .compact-check-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.route-group .check-card {
    display: flex;
    align-items: flex-start;
    gap: 0.42rem;
    min-height: 34px;
    padding: 0.55rem 0.65rem;
    border: 1px solid rgba(210, 220, 237, 0.92);
    border-radius: 0.78rem;
    background: rgba(248, 250, 255, 0.9);
    color: #435570;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
}

.route-group .check-card input {
    width: 14px;
    height: 14px;
    margin: 0.06rem 0 0;
    flex: 0 0 auto;
}

.route-group .group-recruiting-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #697a93;
    font-size: 0.75rem;
    line-height: 1.5;
}

.route-group .group-recruiting-readonly .profile-chip-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.route-group .group-recruiting-readonly .profile-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(208, 221, 238, 0.95);
    border-radius: 999px;
    background: #f7f9fe;
    color: #495871;
    font-size: 0.75rem;
    font-weight: 700;
}

.route-group .group-recruiting-readonly .profile-chip.is-secondary {
    background: rgba(237, 244, 255, 0.92);
    color: #617395;
}

@media (max-width: 720px) {
    .route-group .compact-check-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

.route-admin .admin-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.route-admin .admin-overview-grid,
.route-admin .admin-user-meta-grid,
.route-admin .admin-user-list {
    display: grid;
    gap: 14px;
}

.route-admin .admin-hero-copy p,
.route-admin .admin-feed-copy span,
.route-admin .admin-user-card-meta,
.route-admin .admin-editor-copy span {
    color: var(--text-muted);
}

.route-admin .admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.route-admin .admin-stat-card,
.route-admin .admin-user-meta-card,
.route-admin .admin-user-card,
.route-admin .admin-feed-item {
    border: 1px solid rgba(111, 142, 202, 0.18);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 32px rgba(20, 35, 75, 0.08);
}

.route-admin .admin-stat-card,
.route-admin .admin-user-meta-card {
    border-radius: 18px;
    padding: 14px 16px;
}

.route-admin .admin-stat-card small,
.route-admin .admin-user-meta-card small {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.route-admin .admin-stat-card strong,
.route-admin .admin-user-meta-card strong {
    font-size: 1.15rem;
    color: var(--text-strong);
}

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

.route-admin .admin-feed-panel,
.route-admin .admin-editor-panel,
.route-admin .admin-list-panel,
.route-admin .admin-filter-panel {
    padding: 18px;
}

.route-admin .admin-feed-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.route-admin .admin-feed-item {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 16px;
    padding: 12px 14px;
    text-decoration: none;
}

.route-admin .admin-feed-copy {
    display: grid;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.route-admin .admin-feed-copy strong,
.route-admin .admin-user-card-copy strong,
.route-admin .admin-editor-copy h2 {
    color: var(--text-strong);
}

.route-admin .admin-feed-copy strong,
.route-admin .admin-feed-copy span,
.route-admin .admin-user-card-copy strong,
.route-admin .admin-user-card-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.route-admin .admin-feed-item small {
    color: var(--text-muted);
    white-space: nowrap;
}

.route-admin .admin-feed-avatar,
.route-admin .admin-user-card-avatar,
.route-admin .admin-editor-avatar {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
}

.route-admin .admin-editor-head,
.route-admin .admin-user-card-head,
.route-admin .admin-user-card-actions,
.route-admin .admin-editor-quick-actions,
.route-admin .admin-editor-pills,
.route-admin .admin-filter-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.route-admin .admin-editor-head,
.route-admin .admin-user-card-head {
    justify-content: space-between;
}

.route-admin .admin-editor-identity,
.route-admin .admin-user-card-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.route-admin .admin-editor-copy,
.route-admin .admin-user-card-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.route-admin .admin-user-meta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 16px;
}

.route-admin .admin-user-form {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.route-admin .admin-user-list {
    margin-top: 14px;
}

.route-admin .admin-user-card {
    border-radius: 18px;
    padding: 14px;
}

.route-admin .admin-user-card-meta {
    display: flex;
    gap: 10px 14px;
    flex-wrap: wrap;
    margin: 12px 0;
    font-size: 0.93rem;
}

.route-admin .admin-danger-button {
    color: #b42318;
}

.route-admin .admin-filter-form {
    justify-content: space-between;
}

.route-admin .admin-filter-form .field {
    min-width: 220px;
    flex: 1 1 220px;
}

@media (max-width: 920px) {
    .route-admin .admin-hero,
    .route-admin .admin-overview-grid,
    .route-admin .admin-stat-grid,
    .route-admin .admin-user-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .route-admin .admin-hero,
    .route-admin .admin-overview-grid,
    .route-admin .admin-stat-grid,
    .route-admin .admin-user-meta-grid {
        grid-template-columns: 1fr;
    }

    .route-admin .admin-feed-item,
    .route-admin .admin-editor-head,
    .route-admin .admin-user-card-head {
        align-items: flex-start;
    }

    .route-admin .admin-feed-item {
        flex-wrap: wrap;
    }

    .route-admin .admin-feed-item small {
        margin-left: 58px;
    }
}

@media (max-width: 420px) {
    .route-group .compact-check-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
    }

    .route-group .check-card {
        min-height: 32px;
        padding: 0.5rem 0.58rem;
        font-size: 0.7rem;
    }
}

/* Brand header */

:root {
    --brand-night: #0b1338;
    --brand-night-soft: #101a49;
    --brand-cyan: #37b8ff;
    --brand-cyan-soft: #7fd9ff;
    --brand-header-text: #eff7ff;
}

.site-header {
    position: relative;
    border-color: rgba(67, 183, 255, 0.16);
    background:
        radial-gradient(circle at top right, rgba(55, 184, 255, 0.16), transparent 24%),
        linear-gradient(180deg, rgba(11, 19, 56, 0.98), rgba(10, 18, 52, 0.98));
    box-shadow: 0 22px 48px rgba(7, 13, 39, 0.26);
}

.site-header::after {
    content: "";
    position: absolute;
    inset: auto 18px 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(127, 217, 255, 0.2), transparent);
    pointer-events: none;
}

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

.brand-logo {
    display: block;
    width: auto;
    height: clamp(34px, 4vw, 46px);
    max-width: min(56vw, 246px);
    object-fit: contain;
}

.site-header .header-primary-link,
.site-header .header-notification-link,
.site-header .menu-toggle {
    border-color: rgba(83, 191, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: var(--brand-header-text);
    box-shadow: none;
}

.site-header .header-primary-link .icon,
.site-header .header-notification-link .icon,
.site-header .menu-toggle .icon {
    color: var(--brand-cyan-soft);
}

.site-header .header-primary-link:hover,
.site-header .header-notification-link:hover,
.site-header .menu-toggle:hover {
    border-color: rgba(96, 205, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.site-header .header-primary-link.is-current,
.site-header .header-notification-link.is-current {
    border-color: rgba(96, 205, 255, 0.3);
    background: rgba(55, 184, 255, 0.14);
    color: #ffffff;
}

.site-header .primary-button.header-primary-link {
    border-color: transparent;
    background: linear-gradient(135deg, #79cbff, #35b7ff);
    color: #081734;
    box-shadow: 0 14px 28px rgba(26, 92, 156, 0.32);
}

.site-header .primary-button.header-primary-link .icon {
    color: currentColor;
}

.site-header .header-notification-badge {
    background: linear-gradient(135deg, #f4fbff, #dff7ff);
    color: #0a2148;
    box-shadow: 0 8px 18px rgba(7, 13, 39, 0.22);
}

.site-header .menu-sheet {
    border-color: rgba(78, 183, 255, 0.16);
    background:
        radial-gradient(circle at top right, rgba(55, 184, 255, 0.16), transparent 22%),
        linear-gradient(180deg, rgba(13, 22, 62, 0.98), rgba(10, 17, 50, 0.98));
    box-shadow: 0 24px 46px rgba(6, 10, 31, 0.46);
}

.site-header .menu-link,
.site-header .menu-link-button {
    color: var(--brand-header-text);
}

.site-header .menu-link .icon,
.site-header .menu-link-button .icon {
    color: var(--brand-cyan-soft);
}

.site-header .menu-link:hover,
.site-header .menu-link-button:hover,
.site-header .menu-link.is-current {
    background: rgba(55, 184, 255, 0.12);
    color: #ffffff;
}

@media (max-width: 720px) {
    .brand-logo {
        height: 32px;
        max-width: min(52vw, 180px);
    }

    .site-header .header-primary-link,
    .site-header .header-notification-link,
    .site-header .menu-toggle {
        min-height: 40px;
    }
}

@media (max-width: 560px) {
    .site-header .header-primary-link span,
    .site-header .header-notification-link span {
        display: none;
    }

    .site-header .header-primary-link,
    .site-header .header-notification-link {
        min-width: 42px;
        padding-left: 11px;
        padding-right: 11px;
    }
}

/* Rehearsal RSVP */

.rehearsal-response-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rehearsal-response-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(205, 216, 234, 0.9);
    border-radius: 999px;
    background: rgba(247, 250, 255, 0.92);
    color: #60708a;
    font-size: 0.72rem;
    font-weight: 700;
}

.rehearsal-response-pill strong {
    color: #21314c;
    font-size: 0.74rem;
}

.rehearsal-response-pill.is-attending {
    border-color: rgba(67, 190, 137, 0.22);
    background: rgba(230, 251, 241, 0.96);
    color: #16724b;
}

.rehearsal-response-pill.is-maybe {
    border-color: rgba(241, 181, 68, 0.24);
    background: rgba(255, 247, 224, 0.96);
    color: #9b6a08;
}

.rehearsal-response-pill.is-declined {
    border-color: rgba(240, 111, 111, 0.24);
    background: rgba(255, 236, 236, 0.96);
    color: #9b2d38;
}

.rehearsal-response-pill.is-pending {
    border-color: rgba(180, 196, 220, 0.32);
    background: rgba(242, 246, 253, 0.96);
    color: #6c7d96;
}

.rehearsal-badge.is-reminder,
.rehearsal-response-pill.is-reminder {
    border-color: rgba(93, 156, 255, 0.24);
    background: rgba(232, 241, 255, 0.96);
    color: #255db3;
}

.rehearsal-response-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rehearsal-response-actions form {
    margin: 0;
}

.rehearsal-response-button {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
}

.rehearsal-response-button.is-active {
    border-color: rgba(68, 185, 255, 0.24);
    background: rgba(55, 184, 255, 0.1);
    color: #1b4f85;
}

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

.rehearsal-attendance-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(210, 220, 236, 0.86);
    border-radius: 16px;
    background: rgba(249, 251, 255, 0.9);
}

.rehearsal-attendance-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.rehearsal-attendance-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.rehearsal-attendance-copy strong {
    color: #20314b;
    font-size: 0.83rem;
}

.rehearsal-attendance-copy span {
    color: #71809a;
    font-size: 0.73rem;
}

.rehearsal-schedule-meta,
.rehearsal-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rehearsal-map-pill {
    text-decoration: none;
}

.rehearsal-alert-strip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255, 191, 119, 0.28);
    border-radius: 999px;
    background: rgba(255, 248, 233, 0.96);
    color: #8c6413;
    font-size: 0.76rem;
    font-weight: 700;
}

.info-strip.info-strip-link a {
    color: #2b67bd;
    font-weight: 700;
    text-decoration: none;
}

.info-strip.info-strip-link a:hover {
    text-decoration: underline;
}

@media (max-width: 720px) {
    .route-dashboard .dashboard-rehearsal-card {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .route-dashboard .dashboard-rehearsal-date {
        min-height: 62px;
        border-radius: 14px;
    }

    .form-grid-two {
        grid-template-columns: 1fr;
    }

    .rehearsal-attendance-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .rehearsal-alert-strip {
        width: 100%;
        justify-content: center;
    }
}

/* Group lifecycle */

.card-badge.is-archived {
    border-color: rgba(255, 170, 93, 0.32);
    background: rgba(255, 241, 228, 0.96);
    color: #a45d0c;
}

.route-group .group-summary-chip.is-archived {
    border-color: rgba(255, 184, 117, 0.36);
    background: rgba(255, 245, 234, 0.94);
    color: #a05f13;
}

.group-archive-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border-color: rgba(255, 191, 134, 0.34);
    background:
        radial-gradient(circle at top right, rgba(255, 211, 162, 0.28), transparent 28%),
        linear-gradient(180deg, rgba(255, 250, 245, 0.98), rgba(255, 246, 236, 0.98));
}

.group-archive-banner-copy {
    display: grid;
    gap: 8px;
}

.group-archive-banner-copy h2 {
    margin: 0;
    color: #1f2f49;
    font-size: 1.08rem;
}

.group-archive-banner-copy p {
    margin: 0;
    color: #6c7b91;
    font-size: 0.84rem;
}

.group-archive-banner-actions,
.group-inline-action-row,
.groups-archive-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.groups-archived-panel {
    margin-top: 18px;
}

.groups-archived-grid {
    display: grid;
    gap: 14px;
}

.groups-archive-card {
    display: grid;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(216, 224, 238, 0.9);
    border-radius: 22px;
    background: rgba(249, 251, 255, 0.82);
}

.groups-archive-main {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    color: inherit;
    text-decoration: none;
}

.groups-showcase-cover.is-archived {
    opacity: 0.9;
    filter: saturate(0.86);
}

.groups-archive-copy {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.groups-archive-copy p {
    margin: 0;
    color: #6e7d93;
    font-size: 0.8rem;
}

.route-group .group-chat-compose-panel .empty-card,
.route-group .song-comment-shell > .empty-card,
.route-group .rehearsal-comments > .empty-card {
    min-height: 0;
}

@media (max-width: 720px) {
    .group-archive-banner,
    .groups-archive-main {
        grid-template-columns: 1fr;
    }

    .group-archive-banner {
        align-items: flex-start;
    }

    .groups-archive-card {
        border-radius: 18px;
    }
}
