@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 380 700;
    font-display: swap;
    src: url('/fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 380 700;
    font-display: swap;
    src: url('/fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fonts/jbmono-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fonts/jbmono-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --bg: #111014;
    --bg-raised: #17161c;
    --bg-sunken: #0c0b0f;
    --panel: #1b1a21;
    --panel-border: #34313e;
    --panel-border-soft: #292630;
    --hover: #24212d;
    --text: #f4f2f8;
    --text-dim: #b3adbf;
    --text-faint: #9891a5;
    --accent: #7444d4;
    --accent-strong: #bea2ff;
    --accent-soft: rgba(116, 68, 212, 0.16);
    --accent-ink: #ffffff;
    --accent-hover: #8151df;
    --green: #3ecf8e;
    --green-soft: rgba(62, 207, 142, 0.14);
    --red: #f2626b;
    --red-soft: rgba(242, 98, 107, 0.14);
    --amber: #e0a855;
    --amber-soft: rgba(224, 168, 85, 0.14);
    --radius: 8px;
    --radius-sm: 6px;
    --shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.55);
    --sidebar-w: 232px;
    --header-h: 56px;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 32px;

    --fs-h1: 20px;
    --fs-h2: 16px;
    --fs-h3: 13px;

    --content-max: none;

    color-scheme: dark;

    font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 640; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
code, .mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }
::selection { background: var(--accent-soft); }

.muted { color: var(--text-dim); }
.dim { color: var(--text-faint); }



#app-shell { display: flex; min-height: 100dvh; }

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    background: var(--bg-raised);
    border-right: 1px solid var(--panel-border-soft);
    z-index: 40;
    transition: transform .2s ease;
}
.sidebar-brand { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-5) var(--space-5) var(--space-4); flex-shrink: 0; text-decoration: none; }
.sidebar-brand:hover .brand-name { text-decoration: underline; }
.sidebar-brand:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius-sm); }
.brand-mark {
    width: 26px;
    height: 26px;
    color: var(--text);
    flex-shrink: 0;
}
.brand-name { font-weight: 640; font-size: 14.5px; letter-spacing: -0.01em; }

.workspace-switch { padding: 0 var(--space-4) var(--space-3); flex-shrink: 0; }
.workspace-switch-label {
    display: block;
    margin: 0 0 var(--space-2) 2px;
    font-size: 10.5px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-faint);
}
.workspace-switch select {
    width: 100%;
    font-size: 12.5px;
    font-weight: 560;
}

.sidebar-nav { flex: 1; min-height: 0; overflow-y: auto; padding: var(--space-1) var(--space-3) var(--space-3); }
.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 520;
    margin-bottom: 2px;
    cursor: pointer;
}
.nav-link:hover { background: var(--hover); color: var(--text); }
.nav-link.active {
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-weight: 620;
    box-shadow: inset 2px 0 0 var(--accent);
}
.nav-icon { width: 17px; height: 17px; flex-shrink: 0; }
.nav-link span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-link-attn::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: auto;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--accent-strong);
}


.nav-group { margin-top: var(--space-4); }
.nav-group:first-of-type { margin-top: var(--space-2); }
.nav-group-heading {
    margin: 0 0 var(--space-1);
    padding: 0 var(--space-3);
    font-size: 10.5px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-faint);
}
.nav-group-list { list-style: none; margin: 0; padding: 0; }
.nav-group-list li { margin: 0; }
.nav-group-workspace { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--panel-border-soft); }
.nav-group-workspace .nav-group-heading { color: var(--text-faint); opacity: 0.85; }
.nav-group-workspace .nav-link { font-size: 13px; opacity: 0.92; }

.nav-more {
    display: flex;
    align-items: center;
    width: 100%;
    padding: var(--space-2) var(--space-3);
    margin-top: 1px;
    border: none;
    background: none;
    border-radius: var(--radius-sm);
    color: var(--text-faint);
    font-size: 12px;
    font-weight: 560;
    cursor: pointer;
    text-align: left;
}
.nav-more:hover { background: var(--hover); color: var(--text-dim); }
.nav-more:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.sidebar-foot { padding: var(--space-3); border-top: 1px solid var(--panel-border-soft); flex-shrink: 0; }
.sidebar-user { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-2) var(--space-3); font-size: 13px; }
.user-avatar {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    font-size: 11px;
    color: var(--text-dim);
    flex-shrink: 0;
}
.user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 560; }

.content-col { margin-left: var(--sidebar-w); flex: 1; min-width: 0; display: flex; flex-direction: column; }

.dash-topbar {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    height: var(--header-h);
    padding: 0 var(--space-6);
    background: var(--bg-raised);
    border-bottom: 1px solid var(--panel-border-soft);
    position: sticky;
    top: 0;
    z-index: 30;
    flex-shrink: 0;
}
.icon-btn.dash-topbar-toggle, .dash-topbar-brand { display: none; }
.dash-topbar-brand { align-items: center; gap: var(--space-2); font-weight: 620; font-size: 14.5px; min-width: 0; text-decoration: none; }
.dash-topbar-brand:hover .dash-topbar-brand-text { text-decoration: underline; }
.dash-topbar-brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }
.dash-topbar-brand .brand-mark { width: 20px; height: 20px; }
.dash-topbar-brand-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dash-topbar-spacer { flex: 1; }
.icon-btn {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
}
.icon-btn:hover { background: var(--hover); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.dash-topbar-toggle { width: 40px; height: 40px; }

.mobile-bar {
    display: none;
    align-items: center;
    gap: 12px;
    height: var(--header-h);
    padding: 0 16px;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--panel-border-soft);
    position: sticky;
    top: 0;
    z-index: 30;
}
.mobile-bar-title { font-weight: 620; font-size: 14.5px; }


.setup-dock {
    position: sticky;
    top: var(--header-h);
    z-index: 46;
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-6);
    background: var(--bg-raised);
    border-bottom: 1px solid var(--panel-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.setup-dock[hidden] { display: none; }

.sd-marker { display: flex; flex-shrink: 0; }
.sd-marker .step-icon { width: 22px; height: 22px; color: var(--accent-strong); }
.sd-marker-draw path { stroke-dasharray: 16; stroke-dashoffset: 16; animation: sd-draw 380ms ease forwards; }
@keyframes sd-draw { to { stroke-dashoffset: 0; } }

.sd-body {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
}
.sd-body.sd-enter { animation: sd-enter 260ms ease; }
@keyframes sd-enter { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.sd-eyebrow { font-size: 11px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.sd-title { font-size: 13.5px; font-weight: 620; color: var(--text); }
.sd-detail {
    font-size: 12px;
    color: var(--text-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sd-pips { display: flex; gap: 5px; flex-shrink: 0; }
.nav-link.sd-nav-target { outline: 2px solid var(--accent); outline-offset: -2px; background: var(--accent-soft); }

.sd-progress { width: 120px; height: 7px; border-radius: 3px; background: var(--panel-border); overflow: hidden; flex-shrink: 0; }
.sd-progress-fill { display: block; height: 100%; width: 0; background: var(--accent); transition: width 400ms ease; }

.sd-pip { width: 20px; height: 7px; border-radius: 3px; background: var(--panel-border); transition: background 160ms ease; }
.sd-pip-done { background: var(--accent); }
.sd-pip-now { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-strong); }

.sd-action { flex-shrink: 0; white-space: nowrap; }

.sd-action.sd-action-waiting {
    pointer-events: none;
    background: transparent;
    border: 1px solid var(--panel-border);
    color: var(--text-dim);
    font-weight: 570;
    animation: none;
    box-shadow: none;
}

.setup-dock.sd-pointing .sd-action:not(.sd-action-waiting) {
    outline: 2px solid var(--accent-strong);
    outline-offset: 3px;
}


.sd-spotlight {
    border-radius: var(--radius-sm);
    outline: 3px solid var(--accent-strong);
    outline-offset: 3px;
    animation: sd-spotlight 900ms ease-in-out infinite alternate;
}
@keyframes sd-spotlight {
    to { outline-offset: 8px; outline-color: var(--accent); }
}
@media (prefers-reduced-motion: reduce) {
    .sd-spotlight { animation: none; outline-offset: 5px; }
}

body.has-setup-dim .sd-spotlight { position: relative; z-index: 46; }

body:not(.has-setup-dim) .sd-spotlight { box-shadow: 0 0 0 7px var(--accent-soft); }

.sd-action { animation: sd-pulse 2200ms ease-in-out infinite; }
@keyframes sd-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124, 108, 240, 0.40); }
    50%      { box-shadow: 0 0 0 6px rgba(124, 108, 240, 0); }
}

.sd-intro .sd-detail { white-space: normal; overflow: visible; text-overflow: clip; }

.setup-dock.sd-urge {
    background: linear-gradient(to top, var(--accent-soft), var(--bg-raised) 70%);
    box-shadow: inset 0 -2px 0 var(--accent), 0 10px 34px rgba(124, 108, 240, 0.20);
}
.sd-urge .sd-marker { color: var(--accent-strong); }
.sd-urge .sd-title { color: var(--text); }
.sd-urge .sd-action { animation: sd-urge 1500ms ease-in-out infinite; }
@keyframes sd-urge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124, 108, 240, 0.75), 0 0 0 3px var(--accent-soft); }
    50%      { box-shadow: 0 0 0 14px rgba(124, 108, 240, 0), 0 0 0 3px var(--accent-soft); }
}

.setup-dim {
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(0, 0, 0, 0.55);
    pointer-events: none;
    animation: sd-dim-in 420ms ease both;
}
.setup-dim[hidden] { display: none; }
@keyframes sd-dim-in { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    .sd-action { animation: none; }
    .sd-urge .sd-action { animation: none; box-shadow: 0 0 0 4px var(--accent-soft); }
    .setup-dim { animation: none; }
}

.setup-dock.sd-exit { animation: sd-exit 260ms ease forwards; }
@keyframes sd-exit { to { opacity: 0; transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) {
    .sd-marker-draw path { animation: none; stroke-dashoffset: 0; }
    .sd-body { animation: none; }
    .setup-dock.sd-exit { animation: none; }
    .sd-pip { transition: none; }
    .sd-progress-fill { transition: none; }
}

@media (min-width: 901px) {
    body.has-setup-dock .dash-topbar { display: none; }
    body.has-setup-dock .setup-dock { top: 0; }
}


@media (max-width: 719.98px) {
    .setup-dock { flex-wrap: wrap; gap: var(--space-2) var(--space-3); padding: var(--space-3) var(--space-4); }
    .sd-pips { display: none; }
    .sd-body { flex-basis: 0; }
    .sd-action { flex: 1 1 100%; text-align: center; order: 3; }
}

.sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 35; }

#panes { padding: var(--space-6) var(--space-7) 60px; max-width: var(--content-max); }
#panes p { max-width: 720px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }


@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); }
    body.sidebar-open .sidebar { transform: translateX(0); }
    body.sidebar-open .sidebar-backdrop { display: block; }
    .content-col { margin-left: 0; }
    .mobile-bar { display: flex; }
    .icon-btn.dash-topbar-toggle, .dash-topbar-brand { display: flex; }
    .dash-topbar { padding: 0 var(--space-4); }
    #panes { padding: var(--space-4) var(--space-4) 50px; }
}

@media (max-width: 480px) {
    .dash-topbar-brand-text { display: none; }
}



.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 15px;
    border-radius: 5px;
    border: 1px solid var(--panel-border);
    background: var(--panel);
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    transition: background .12s ease, border-color .12s ease;
    white-space: nowrap;
    text-decoration: none;
}
.btn:hover { background: var(--hover); border-color: var(--accent); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-danger { background: var(--red-soft); border-color: rgba(242, 98, 107, 0.35); color: var(--red); }
.btn-danger:hover { background: var(--red-soft); }
.btn-ghost { background: transparent; border-color: var(--panel-border); }
.btn-sm { min-height: 36px; padding: 6px 11px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-link-style { background: none; border: none; padding: 0; color: var(--accent-strong); cursor: pointer; font: inherit; text-decoration: none; }
.btn-link-style:hover { text-decoration: underline; }

.toolbar { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-4); }
.toolbar-right { margin-left: auto; display: flex; gap: var(--space-2); align-items: center; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form-grid .span2 { grid-column: 1 / -1; }
.form-grid > label { min-width: 0; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--text-dim); }
label > span { font-weight: 570; color: var(--text); }
label.check { flex-direction: row; align-items: flex-start; gap: 8px; }
label.check > span { line-height: 16px; }
input, select, textarea {
    background: var(--bg-sunken);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-sm);
    padding: var(--space-2) var(--space-3);
    color: var(--text);
    width: 100%;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
input[type="checkbox"] { width: auto; }
input[type="range"] { padding: 0; }

select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa3b2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-3) top 50%;
    background-size: 13px;
}
select:disabled { opacity: .6; }

label > input[type="range"] { margin-top: auto; margin-bottom: auto; }

@media (max-width: 480px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .span2 { grid-column: auto; }
}


.stepper { display: inline-flex; height: 34px; }
.stepper-btn {
    flex: 0 0 32px;
    width: 32px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--panel-border);
    background: var(--bg-raised);
    color: var(--text);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}
.stepper-btn:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.stepper-btn:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.stepper-btn:hover { background: var(--hover); }
.stepper-btn:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--accent); outline-offset: -2px; }
.stepper-btn:disabled { opacity: .5; cursor: not-allowed; }
.stepper-btn:disabled:hover { background: var(--bg-raised); }
.stepper-input {
    flex: 0 0 64px;
    width: 64px;
    height: 34px;
    padding: 0 var(--space-2);
    margin: 0;
    text-align: center;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    background: var(--bg-sunken);
}
.stepper-input:focus {
    outline: none;
    border-color: var(--panel-border);
    box-shadow: none;
}
.stepper-input:disabled { opacity: .6; cursor: not-allowed; }



.card { background: var(--panel); border: 1px solid var(--panel-border-soft); border-radius: var(--radius); padding: var(--space-5); }
.card + .card { margin-top: var(--space-3); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-3); }
.card-grid > .card + .card { margin-top: 0; }
.card-grid > * { min-width: 0; }
.brand-kind-grid > * { min-width: 0; }
.stat-card { padding: var(--space-4) var(--space-5); }
.stat-label { font-size: 11.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 650; }
.stat-value { font-size: 25px; font-weight: 700; margin-top: var(--space-2); letter-spacing: -0.01em; }
.stat-hint { font-size: 12px; color: var(--text-faint); margin-top: var(--space-1); }
.section-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--fs-h3); font-weight: 650; margin: 0 0 var(--space-3); color: var(--text); }



.tbl-wrap, .table-wrap { overflow-x: auto; border: 1px solid var(--panel-border-soft); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl-fixed { table-layout: fixed; }
thead th {
    text-align: left;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-faint);
    padding: 12px 20px;
    background: var(--bg-sunken);
    border-bottom: 1px solid var(--panel-border-soft);
    white-space: nowrap;
}
tbody td { padding: 16px 20px; border-bottom: 1px solid var(--panel-border-soft); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--hover); }
td.empty, td.err { text-align: center; padding: 34px 14px; color: var(--text-faint); }
td.err { color: var(--red); }
.row-unplayable { background: rgba(242, 98, 107, 0.05); }
.unsupported-reason { font-size: 11.5px; color: var(--red); margin-top: 3px; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    border: 1px solid var(--panel-border);
    white-space: nowrap;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ready { background: var(--green-soft); color: var(--green); }
.badge-downloading { background: var(--accent-soft); color: var(--accent-strong); }
.badge-pending { background: var(--amber-soft); color: var(--amber); }
.badge-failed { background: var(--red-soft); color: var(--red); }
.badge-error { background: var(--red-soft); color: var(--red); cursor: help; }
.badge-waiting { background: var(--amber-soft); color: var(--amber); cursor: pointer; }
.badge-deleted { background: rgba(255,255,255,0.05); color: var(--text-faint); }
.badge-blocked { background: var(--bg-sunken); color: var(--text-dim); cursor: help; }
.badge-pinned { background: var(--accent-soft); color: var(--accent-strong); cursor: help; }
.badge-owner { background: rgba(124, 108, 240, 0.15); color: #b7a3ff; }
.badge-member { background: var(--accent-soft); color: var(--accent-strong); }
.badge-unplayable { background: var(--red-soft); color: var(--red); }
.badge-active { background: var(--green-soft); color: var(--green); }
.badge-past_due { background: var(--amber-soft); color: var(--amber); }
.badge-canceled { background: rgba(255,255,255,0.05); color: var(--text-faint); }



.progress-track { height: 6px; border-radius: 3px; background: var(--bg-sunken); border: 1px solid var(--panel-border-soft); overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width .3s ease; }
.progress-fill-done { background: var(--green); }
.progress-fill-failed { background: var(--red); }
.progress-label { font-size: 11px; color: var(--text-faint); margin-top: 4px; }

.storage-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--bg-sunken); border: 1px solid var(--panel-border-soft); }
.storage-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-strong)); }



.act { background: none; border: none; color: var(--accent-strong); cursor: pointer; font-size: 12.5px; font-weight: 560; padding: 4px 6px; }
.act:hover { text-decoration: underline; }
.act-danger { color: var(--red); }



.empty-state { text-align: center; padding: var(--space-7) var(--space-6); }
.empty-state h2 { font-size: var(--fs-h2); margin-bottom: var(--space-2); }
.empty-state p { color: var(--text-dim); font-size: 13px; max-width: 420px; margin: 0 auto; }
.empty-actions { margin-top: var(--space-5); display: flex; gap: var(--space-3); justify-content: center; }

.skeleton {
    background: linear-gradient(90deg, var(--panel) 25%, var(--hover) 37%, var(--panel) 63%);
    background-size: 400% 100%;
    animation: skeleton-wave 1.4s ease infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeleton-wave { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.skeleton-row { height: 16px; margin: 6px 0; }
.skeleton-card { height: 96px; }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }



#modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 6vh 16px;
    background: rgba(4, 5, 7, 0.65);
    z-index: 100;
    overflow-y: auto;
}
#modal.open { display: flex; }
#modal-box { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 10px; width: min(600px, 100%); box-shadow: var(--shadow-modal); }
#modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 28px 28px 0; border-bottom: 0; }
#modal-title { font-size: 26px; letter-spacing: -.6px; }
#modal-close { background: none; border: none; color: var(--text-dim); font-size: 16px; cursor: pointer; padding: 4px; line-height: 1; }
#modal-close:hover { color: var(--text); }
#modal-body { padding: 18px 28px 0; max-height: 66vh; overflow-y: auto; }
#modal-foot { padding: 22px 28px 28px; display: flex; gap: 10px; }
.dialog-intro { color: var(--text-dim); font-size: 15px; line-height: 1.7; margin-bottom: 22px; }



.toast-stack { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: 340px; }
.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 20px;
    border-radius: 7px;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    font-size: 14px;
    animation: toast-in .16s ease;
}
.toast-out { opacity: 0; transform: translateY(4px); transition: opacity .18s ease, transform .18s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.toast-icon { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.toast-icon svg { width: 100%; height: 100%; }
.toast-success .toast-icon { color: var(--green); }
.toast-error .toast-icon { color: var(--red); }
.toast-info .toast-icon { color: var(--accent-strong); }
.toast-msg { flex: 1; }
.toast-close { background: none; border: none; color: var(--text-faint); cursor: pointer; font-size: 14px; padding: 0 0 0 4px; line-height: 1; }
.toast-close:hover { color: var(--text); }

.field-error { color: var(--red); font-size: 12.5px; }
.field-error-block {
    max-width: 420px;
    margin: var(--space-4) auto 0;
    padding: 10px 14px;
    text-align: left;
    line-height: 1.55;
    background: var(--red-soft);
    border: 1px solid var(--red);
    border-radius: var(--radius-sm);
}
.field-success { color: var(--green); font-size: 12.5px; }



.center-page {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--bg);
}
.login-card { width: min(400px, 100%); background: var(--panel); border: 1px solid var(--panel-border-soft); border-radius: 14px; padding: 34px 30px; }
.login-eyebrow { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); font-weight: 650; margin-bottom: 6px; }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; text-decoration: none; }
.auth-brand:hover .brand-name { text-decoration: underline; }
.auth-brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm); }
.login-heading { font-size: 22px; margin-bottom: 22px; }
.login-fields { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.login-btn {
    width: 100%;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    font-weight: 620;
    cursor: pointer;
}
.login-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.login-btn:disabled { opacity: .6; cursor: not-allowed; }
.sidebar-legal {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-top: 10px;
    font-size: 11px;
}
.sidebar-legal a { color: var(--text-faint); text-decoration: none; }
.sidebar-legal a:hover { color: var(--text-dim); text-decoration: underline; }

.auth-check {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 9px;
    margin: 0 0 16px;
    font-size: 12.5px;
    line-height: 16px;
    color: var(--text-dim);
    cursor: pointer;
}
.auth-check input[type="checkbox"] { align-self: flex-start; margin-top: 0; }
.auth-check a { color: var(--accent-strong); }
.auth-check.auth-check-miss { color: var(--red); }
.auth-check.auth-check-miss input[type="checkbox"] { border-color: var(--red); }

.auth-legal {
    text-align: center;
    margin-top: 18px;
    font-size: 11.5px;
    line-height: 1.6;
    color: var(--text-faint);
}
.auth-legal-links { margin-top: 6px; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 10px; }
.auth-legal a { color: var(--text-dim); text-decoration: none; }
.auth-legal a:hover { color: var(--text); text-decoration: underline; }

.login-footer { text-align: center; margin-top: 14px; font-size: 12.5px; }
.login-footer a, .login-link { color: var(--accent-strong); text-decoration: none; }
.login-footer a:hover, .login-link:hover { text-decoration: underline; }
#error, #lockout { display: none; margin-top: 10px; font-size: 12.5px; }
#error { color: var(--red); }
#lockout { color: var(--amber); }

.login-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: var(--text-faint); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--panel-border-soft); }

.btn-twitch {
    width: 100%;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid #6441a5;
    background: #6441a5;
    color: #fff;
    font-weight: 620;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-twitch:hover { background: #7d5bbe; }
.btn-twitch svg { width: 16px; height: 16px; fill: currentColor; }
.btn-twitch-auto { width: auto; padding: 8px 16px; }

.connection-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.connection-id { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.connection-account { font-size: 14.5px; font-weight: 640; color: var(--text); }
.connection-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }



.player-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
@media (max-width: 900px) { .player-layout { grid-template-columns: 1fr; } }
.player-picker { display: flex; flex-direction: column; gap: 10px; }
.player-side { display: flex; flex-direction: column; gap: 14px; }
.player-side > .card + .card { margin-top: 0; }
.player-title { font-size: 16px; font-weight: 640; margin-top: 14px; }
.player-meta { font-size: 12.5px; color: var(--text-dim); margin-top: 4px; }



.switch { position: relative; display: inline-flex; flex-direction: row; align-items: center; gap: 10px; cursor: pointer; font-size: 12.5px; color: var(--text-dim); }
.switch input { position: absolute; opacity: 0; width: 40px; height: 22px; margin: 0; cursor: pointer; }
.switch-track {
    width: 38px; height: 21px; border-radius: 999px; background: var(--bg-sunken);
    border: 1px solid var(--panel-border); position: relative; flex-shrink: 0; transition: background .15s ease, border-color .15s ease;
}
.switch-track::after {
    content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%;
    background: var(--text-dim); transition: transform .15s ease, background .15s ease;
}
.switch input:checked + .switch-track { background: var(--accent-soft); border-color: var(--accent); }
.switch input:checked + .switch-track::after { transform: translateX(17px); background: var(--accent-strong); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch-label { font-weight: 570; color: var(--text); }



.verdict-banner { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13px; border: 1px solid transparent; }
.verdict-banner .verdict-icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.verdict-clear { background: var(--green-soft); border-color: rgba(62,207,142,0.3); color: var(--green); }
.verdict-warn  { background: var(--amber-soft); border-color: rgba(224,168,85,0.35); color: var(--amber); }
.verdict-block { background: var(--red-soft); border-color: var(--red); color: var(--red); font-weight: 650; }
.verdict-block strong { color: var(--red); }

.health-banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--panel-border-soft); background: var(--bg-raised); margin-bottom: var(--space-3); }
.health-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.health-up { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.health-degraded { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.health-down { background: var(--text-faint); box-shadow: 0 0 0 3px rgba(255,255,255,0.05); }
.health-text { font-size: 12.5px; }
.health-text strong { display: block; font-size: 13.5px; margin-bottom: 2px; }



.now-playing-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.now-playing-title { font-size: 17px; font-weight: 650; overflow-wrap: anywhere; }
.now-playing-meta { font-size: 12.5px; color: var(--text-dim); overflow-wrap: anywhere; }
.now-playing-idle { text-align: center; padding: 20px 10px; color: var(--text-dim); font-size: 13px; }
.control-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }



.reorder-list { display: flex; flex-direction: column; gap: 6px; }
.reorder-item {
    display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: var(--radius-sm);
    background: var(--bg-raised); border: 1px solid var(--panel-border-soft); font-size: 12.5px;
}
.reorder-item.dragging { opacity: 0.5; }
.reorder-item.drag-over { border-color: var(--accent); }
.reorder-handle { cursor: grab; color: var(--text-faint); flex-shrink: 0; touch-action: none; background: none; border: none; padding: 2px; display: flex; }
.reorder-handle:active { cursor: grabbing; }
.reorder-handle svg { width: 15px; height: 15px; }
.reorder-body { flex: 1; min-width: 0; }
.reorder-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reorder-sub { color: var(--text-faint); font-size: 11px; margin-top: 1px; }



.daypart-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.daypart-day { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--text-dim); }
.daypart-day input { width: auto; }
@media (max-width: 640px) { .daypart-grid { grid-template-columns: repeat(4, 1fr); } }
.daypart-card { border: 1px solid var(--panel-border-soft); border-radius: var(--radius-sm); padding: 14px; background: var(--bg-raised); }
.daypart-card + .daypart-card { margin-top: 10px; }
.daypart-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--accent-soft); color: var(--accent-strong); border-radius: 999px; padding: 3px 9px; font-size: 11.5px; }
.tag-chip button { background: none; border: none; color: inherit; cursor: pointer; padding: 0; font-size: 12px; line-height: 1; }



.chapter-panel { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; }
.chapter-item { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: var(--radius-sm); cursor: pointer; border: 1px solid transparent; font-size: 12.5px; background: none; text-align: left; width: 100%; }
.chapter-item:hover { background: var(--hover); }
.chapter-item.chapter-active { background: var(--accent-soft); border-color: var(--accent); }
.chapter-kind-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.chapter-kind-game { background: var(--accent-strong); }
.chapter-kind-break { background: var(--text-faint); }
.chapter-kind-highlight { background: var(--amber); }
.chapter-time { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-faint); flex-shrink: 0; }
.chapter-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chapter-edit-btn { flex-shrink: 0; background: none; border: none; color: var(--text-faint); cursor: pointer; padding: 2px; }
.chapter-edit-btn:hover { color: var(--accent-strong); }



.brand-kind-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.brand-kind-card { display: flex; flex-direction: column; gap: 10px; }
.brand-kind-label { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); }
.brand-preview { border-radius: var(--radius-sm); background: var(--bg-sunken); border: 1px solid var(--panel-border-soft); overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 90px; }
.brand-preview img, .brand-preview video { max-width: 100%; max-height: 140px; display: block; }
.brand-preview audio { width: 100%; margin: 10px; }
.brand-preview-empty { color: var(--text-faint); font-size: 12px; padding: 24px 10px; text-align: center; }
.brand-asset-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; padding: 6px 0; border-top: 1px solid var(--panel-border-soft); }
.brand-asset-row:first-child { border-top: none; }
.brand-asset-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }



.seats-note { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-dim); background: var(--accent-soft); border-radius: var(--radius-sm); padding: 8px 12px; margin-bottom: 14px; }



.pricing-rows { display: flex; flex-direction: column; gap: 0; margin-top: 4px; }
.pricing-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--panel-border-soft); font-size: 13px; }
.pricing-row:last-child { border-bottom: none; padding-top: 12px; font-weight: 650; font-size: 14px; }

.price-strike { text-decoration: line-through; color: var(--text-faint); font-weight: 400; font-size: 0.85em; margin-left: 4px; }



.getstarted-summary-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.getstarted-steps { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }

.getstarted-step { display: flex; gap: 14px; padding: 18px 20px; background: var(--panel); border: 1px solid var(--panel-border-soft); border-radius: var(--radius); }
.getstarted-step-marker { flex-shrink: 0; width: 26px; height: 26px; margin-top: 1px; }
.step-icon { width: 26px; height: 26px; color: var(--text-faint); }
.getstarted-step-done .step-icon { color: var(--green); }
.getstarted-step-in_progress .step-icon { color: var(--accent-strong); }
.getstarted-step-blocked .step-icon { color: var(--text-faint); opacity: 0.6; }
@media (prefers-reduced-motion: no-preference) {
    .step-icon-spin { animation: getstarted-spin 1.6s linear infinite; transform-origin: 50% 50%; }
}
@keyframes getstarted-spin { to { transform: rotate(360deg); } }

.getstarted-step-body { flex: 1; min-width: 0; }
.getstarted-step-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.getstarted-step-num { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); }
.getstarted-step-title { font-size: 15px; margin: 0; }
.getstarted-step-why { margin: 6px 0 0; font-size: 12.5px; color: var(--text-dim); line-height: 1.55; }
.getstarted-step-detail { margin: 8px 0 12px; font-size: 12.5px; color: var(--text); overflow-wrap: anywhere; }
.getstarted-step-done { border-color: rgba(62, 207, 142, 0.28); }
.getstarted-step-blocked { opacity: 0.75; }
.pricing-row .dim { font-size: 11.5px; }


* {
    scrollbar-width: thin;
    scrollbar-color: var(--panel-border) transparent;
}
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--panel-border);
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-faint);
    background-clip: content-box;
}
::-webkit-scrollbar-corner {
    background: transparent;
}




.pane-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: var(--space-4, 16px);
}
.pane-actions:empty { display: none; margin: 0; }


#player-vod-list { display: flex; flex-direction: column; gap: 2px; max-height: 420px; overflow-y: auto; }
.player-vod-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: none;
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.player-vod-item:hover { background: var(--hover); }
.player-vod-item:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: -2px; }
.player-vod-item.player-vod-active { background: var(--accent-soft); border-color: var(--accent); }
.player-vod-title { min-width: 0; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-vod-meta { font-size: 11px; color: var(--text-dim); }


.row-actions {
    display: grid;
    grid-template-columns: 88px 62px 74px 76px 56px 68px;
    align-items: center;
    gap: 0 4px;
}
.row-action-slot { display: inline-flex; min-width: 0; }
@media (max-width: 900px) {
    .row-actions { grid-template-columns: repeat(6, max-content); }
}

.vod-manage { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 10px; border: 1px solid var(--panel-border); border-radius: 5px; background: transparent; color: var(--text); font: inherit; font-size: 13px; white-space: nowrap; cursor: pointer; }
.vod-manage:hover, .vod-manage[aria-expanded="true"] { background: var(--hover); border-color: var(--accent); }
.vod-manage:disabled { cursor: wait; color: var(--text-dim); }
.vod-manage svg { display: block; flex: none; }
.vod-actions-menu[data-positioning] { visibility: hidden; }
.vod-manage:focus-visible, .vod-actions-menu .act:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vod-actions-menu { position: fixed; inset: auto; margin: 0; height: fit-content; min-height: 0; width: 230px; max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); overflow-y: auto; padding: 6px; border: 1px solid var(--panel-border); border-radius: 7px; background: var(--panel); color: var(--text); box-shadow: 0 8px 28px #0005; }
.vod-actions-menu:popover-open { display: flex; flex-direction: column; gap: 2px; }
.vod-actions-menu .act { flex: 0 0 auto; width: 100%; min-height: 40px; padding: 10px 12px; border-radius: 4px; text-align: left; white-space: normal; text-decoration: none; }
.vod-actions-menu .act:hover:not(:disabled), .vod-actions-menu .act:focus-visible { background: var(--hover); }
.vod-actions-menu [data-block-vod], .vod-actions-menu [data-unblock-vod],
.vod-actions-menu [data-delete-vod] { border-top: 1px solid var(--panel-border-soft); border-radius: 0 0 4px 4px; margin-top: 4px; }
.vod-actions-menu [data-unblock-vod] + [data-delete-vod] { border-top: 0; margin-top: 0; }

.act:disabled, .act[disabled] { color: var(--text-faint); cursor: not-allowed; }
.act:disabled:hover, .act[disabled]:hover { text-decoration: none; }


.row-progress { height: 3px; border-radius: 2px; background: var(--bg-sunken); overflow: hidden; margin-top: 5px; max-width: 120px; }
.row-progress > i { display: block; height: 100%; background: var(--accent); border-radius: 2px; transition: width .3s ease; }


.tab-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4, 16px); align-items: start; }
.tab-col { display: flex; flex-direction: column; gap: var(--space-4, 16px); min-width: 0; }
.tab-col > .card + .card { margin-top: 0; }
@media (max-width: 1100px) {
    .tab-two-col { grid-template-columns: 1fr; }
}


.form-grid-lead { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 700px) { .form-grid-lead { grid-template-columns: 1fr; } }




.tab-two-col-stretch { align-items: stretch; }
.tab-two-col-stretch > .tab-col { height: 100%; }
.control-queue-card { flex: 1; display: flex; flex-direction: column; }
.control-queue-card > #control-queue-list { flex: 1; }


.tab-two-col-60 { grid-template-columns: 3fr 2fr; }
@media (max-width: 1100px) { .tab-two-col-60 { grid-template-columns: 1fr; } }


.busy-block { display: flex; align-items: flex-start; gap: 14px; padding: 4px 0 8px; font-size: 13px; }
.busy-spinner {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--panel-border);
    border-top-color: var(--accent);
    animation: busy-spin .8s linear infinite;
}
@keyframes busy-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .busy-spinner { animation: none; } }


.pricing-rows { max-width: 100%; }


.form-grid > label > .stepper { width: 100%; }
.stepper > input { min-width: 0; }


.col-actions { text-align: right; white-space: nowrap; }


.music-row > :last-child { flex: 0 0 auto; margin-left: auto; text-align: right; }
.music-row:last-child { border-bottom: none; }
.music-row-playing { background: var(--accent-soft); border-radius: var(--radius-sm); }
.music-play {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--panel-border);
    background: var(--bg-raised);
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.music-play svg { width: 16px; height: 16px; }
.music-play:hover { border-color: var(--accent); color: var(--accent-strong); }
.music-play:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.music-row-main { flex: 1; min-width: 0; }
.music-row-title { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; font-weight: 600; }
.music-row-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }


input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 18px;
    background: transparent;
    cursor: pointer;
    border: none;
    box-shadow: none;
    padding: 0;
}
input[type="range"]:focus { border: none; box-shadow: none; }
input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 2px;
    background: var(--bg-sunken);
    border: none;
}
input[type="range"]::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: var(--bg-sunken);
    border: none;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    margin-top: -5px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--panel);
    box-shadow: 0 0 0 1px var(--panel-border);
}
input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--panel);
    box-shadow: 0 0 0 1px var(--panel-border);
}
input[type="range"]:hover::-webkit-slider-thumb { background: var(--accent-strong); }
input[type="range"]:hover::-moz-range-thumb { background: var(--accent-strong); }
input[type="range"]:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 4px; }

input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    flex: none;
    align-self: center;
    width: 16px;
    height: 16px;
    min-width: 16px;
    max-width: 16px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--panel-border);
    border-radius: 4px;
    background: var(--bg-sunken);
    cursor: pointer;
    position: relative;
    transition: background .12s ease, border-color .12s ease;
}
input[type="checkbox"]:hover:not(:disabled) { border-color: var(--accent); }
input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
input[type="checkbox"]:disabled {
    cursor: not-allowed;
    background: var(--bg-sunken);
    border-color: var(--panel-border-soft);
}
input[type="checkbox"]:disabled:checked { background: var(--panel-border); border-color: var(--panel-border); }
input[type="checkbox"]:disabled:checked::after { border-color: var(--text-faint); }
input[type="checkbox"]:disabled + span, .check input[type="checkbox"]:disabled ~ span { color: var(--text-faint); }


.tab-col > .card:first-child, .tab-col > div:first-child > .card:first-child { margin-top: 0; }


.music-row-excluded .music-row-name, .music-row-excluded .music-row-meta { opacity: .45; }
.music-row-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; white-space: nowrap; }

.music-player {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid var(--panel-border-soft);
    border-radius: var(--radius-sm);
    background: var(--bg-raised);
}
.music-player[hidden] { display: none; }
.music-player-body { flex: 1; min-width: 0; }
.music-player-name { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-player-scrub { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.music-player-scrub input[type="range"] { flex: 1; min-width: 60px; }
.music-player-time { flex: 0 0 auto; min-width: 34px; text-align: center; font-size: 11.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.music-player-volume { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.music-player-volume input[type="range"] { width: 88px; }
.music-play-sm { flex: 0 0 26px; width: 26px; height: 26px; }
.music-play-sm svg { width: 14px; height: 14px; }
@media (max-width: 640px) {
    .music-player { flex-wrap: wrap; }
    .music-player-volume { width: 100%; justify-content: flex-end; }
}


.tab-two-col-stretch > .tab-col > .card:only-child { flex: 1; }



.plan-sales { max-width: 560px; margin: 0 auto; }
.plan-sales > .card { margin-top: 0; }

.plan-now-strip { padding: var(--space-3) var(--space-4); margin-bottom: var(--space-3); }
.plan-now-strip-row { display: flex; align-items: baseline; gap: var(--space-2) var(--space-3); flex-wrap: wrap; }
.plan-now-strip-name { font-size: 13.5px; font-weight: 650; }
.plan-now-facts { list-style: none; margin: var(--space-1) 0 0; padding: 0; font-size: 12.5px; line-height: 1.5; }
.plan-now-facts li { margin: 2px 0; }

.plan-compare-heroes { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }

.plan-card-hero {
    border-color: var(--accent);
    box-shadow: none;
}

.plan-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-2); }
.plan-tag { font-size: 11px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); white-space: nowrap; }
.plan-tag-dim { background: rgba(255, 255, 255, 0.05); color: var(--text-faint); }

.plan-price { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin: var(--space-1) 0 var(--space-2); }
.plan-price-unit { font-size: 14px; font-weight: 500; color: var(--text-dim); letter-spacing: 0; }

.plan-features { list-style: none; margin: 0 0 var(--space-2); padding: 0; }
.plan-features li { position: relative; padding-left: 22px; margin: 4px 0; font-size: 13px; line-height: 1.5; }
.plan-features li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 700; }

.plan-now-usage { margin-top: var(--space-2); }

.plan-cta-block { margin-top: var(--space-1); }
.plan-cta-block .btn-block { padding: 11px 16px; font-size: 14px; }

.usage-meter { display: block; height: 6px; border-radius: 3px; background: var(--panel-border); overflow: hidden; margin-top: 6px; }
.usage-meter-fill { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.usage-meter-fill.usage-high { background: var(--amber); }

.billing-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-4); margin-bottom: var(--space-4); }
.billing-facts > * { min-width: 0; }

.brand-name > span, .dash-topbar-brand-text > span { color: var(--accent-strong); }
:where(a, button):focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; }
.center-page[hidden] { display: none; }
