/*
 * LAB DEMO (Phase 14D) — вертикальная лента, плеер, модалка отзыва.
 * Изолированный CSS: не импортирует main.css / services.css / wizard_*.css.
 * BEM: labd-*, labd-feed__*, labd-review__*
 *
 * Визуальный язык: premium dark studio. Слоёный тёмный фон (никогда чистый чёрный),
 * стеклянные поверхности с мягкой глубиной, зелёный — только как акцент бренда,
 * синий/индиго/фиолетовый — только как атмосферный свет.
 */

@font-face {
    font-family: 'Benzin';
    src: url('/static/fonts/Benzin-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Benzin';
    src: url('/static/fonts/Benzin-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    /* --- layered dark background --- */
    --labd-bg-0: #09090b;
    --labd-bg-1: #0d1018;
    --labd-bg-2: #131722;
    --labd-bg: var(--labd-bg-1);

    /* --- text --- */
    --labd-fg: #f3f5f8;
    --labd-fg-muted: rgba(226, 230, 238, 0.62);
    --labd-fg-subtle: rgba(226, 230, 238, 0.4);

    /* --- brand green: accent-only, never dominant --- */
    --labd-accent: #7cf60a;
    --labd-accent-strong: #a4ff4d;
    --labd-accent-deep: #4bb800;
    --labd-accent-soft: rgba(124, 246, 10, 0.14);
    --labd-accent-glow: rgba(124, 246, 10, 0.35);
    --labd-accent-ink: #07170a;

    /* --- atmospheric lighting only, never loud UI color --- */
    --labd-blue: #5b8cff;
    --labd-indigo: #8b7cff;
    --labd-purple: #b26cf0;

    /* --- glass surfaces / borders --- */
    --labd-glass: rgba(255, 255, 255, 0.05);
    --labd-glass-strong: rgba(255, 255, 255, 0.09);
    --labd-border: rgba(255, 255, 255, 0.12);
    --labd-border-strong: rgba(255, 255, 255, 0.18);
    --labd-hairline: rgba(255, 255, 255, 0.07);

    /* --- primary CTA: matte tactile green, lit from the left, never neon-flat --- */
    --labd-cta-from: #a3e05f;
    --labd-cta-via: #74ac3f;
    --labd-cta-to: #3c6427;
    --labd-cta-border: rgba(185, 226, 140, 0.4);
    --labd-cta-ink: #f4fbe9;

    --labd-surface-card: linear-gradient(155deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.016) 45%, rgba(255, 255, 255, 0.04) 100%), linear-gradient(180deg, #171b26 0%, #12151e 100%);
    --labd-surface-card-quiet: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)), linear-gradient(180deg, #12141c 0%, #0f1119 100%);
    --labd-surface-sheet: radial-gradient(120% 60% at 15% -10%, rgba(91, 140, 255, 0.09), transparent 55%), linear-gradient(180deg, #14161f 0%, #101219 100%);

    --labd-card-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.09), inset -1px 0 0 rgba(255, 255, 255, 0.02), 0 18px 40px -24px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.35);
    --labd-card-shadow-quiet: inset 1px 1px 0 rgba(255, 255, 255, 0.06), 0 10px 22px -16px rgba(0, 0, 0, 0.6);
    --labd-sheet-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 -20px 60px -30px rgba(0, 0, 0, 0.85), 0 -2px 0 rgba(0, 0, 0, 0.4);

    --labd-font: 'Benzin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --labd-rank-novice: #9aa3b0;
    --labd-rank-promising: #6fa8ff;
    --labd-rank-lab-artist: #7cf60a;
    --labd-rank-studio-choice: #f0c25e;
    --labd-status-novice: #9aa3b0;
    --labd-status-advanced: #6fa8ff;
    --labd-status-producer: #7cf60a;
    --labd-status-sound_master: #f0c25e;
    --labd-status-freshman: #5eead4;
    --labd-status-next_up: #fb923c;
    --labd-status-headliner: #f5d07a;
    --labd-status-legend: #f472b6;
    --labd-status-gigachad: #d8c8ff;
    --labd-status-secret_100k: rgba(255, 255, 255, 0.35);
    --labd-header-h: 56px;
    --labd-safe-top: env(safe-area-inset-top, 0px);
    --labd-safe-bottom: env(safe-area-inset-bottom, 0px);
    --labd-safe-left: env(safe-area-inset-left, 0px);
    --labd-safe-right: env(safe-area-inset-right, 0px);
    --labd-header-offset: calc(var(--labd-header-h) + var(--labd-safe-top));
    --labd-compose-h: 72px;
    --labd-compose-space: calc(var(--labd-compose-h) + var(--labd-safe-bottom));
    --labd-artist-player-h: 72px;
    --labd-artist-player-space: calc(var(--labd-artist-player-h) + var(--labd-safe-bottom));
}

html[data-tg-safe="1"] {
    --labd-safe-top: var(--app-safe-top, 0px);
    --labd-safe-bottom: var(--app-safe-bottom, 0px);
    --labd-safe-left: var(--app-safe-left, 0px);
    --labd-safe-right: var(--app-safe-right, 0px);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background:
        radial-gradient(ellipse 90% 60% at 12% -8%, rgba(91, 140, 255, 0.1), transparent 55%),
        radial-gradient(ellipse 75% 55% at 105% 2%, rgba(139, 124, 255, 0.08), transparent 55%),
        radial-gradient(ellipse 70% 55% at 50% 118%, rgba(124, 246, 10, 0.05), transparent 62%),
        linear-gradient(180deg, var(--labd-bg-2) 0%, var(--labd-bg-1) 45%, var(--labd-bg-0) 100%);
    background-attachment: fixed;
    color: var(--labd-fg);
    font-family: var(--labd-font);
    -webkit-font-smoothing: antialiased;
    overscroll-behavior: none;
}

body.labd {
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
}

html.labd--artist-page,
html.labd--artist-page body,
body.labd--artist-page,
body.labd--artist-page.labd {
    background: #000;
    background-image: none;
}

body.labd--artist-page .labd-header {
    background: #000;
}

body.labd--artist-page .labd-view[data-labd-view="artist"] {
    background: #000;
}

/* Сброс нативных стилей кнопок (Telegram WebView / iOS иначе рисует белые pill) */
.labd-app button {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    font-family: var(--labd-font);
}

.labd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid var(--labd-border-strong);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
    color: var(--labd-fg);
    font-family: var(--labd-font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    line-height: 1.2;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 16px -8px rgba(0, 0, 0, 0.55);
}

.labd-btn--primary {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--labd-cta-border);
    background: linear-gradient(90deg, var(--labd-cta-from) 0%, var(--labd-cta-via) 55%, var(--labd-cta-to) 100%);
    color: var(--labd-cta-ink);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -8px 14px -6px rgba(0, 0, 0, 0.3),
        0 10px 26px -10px rgba(124, 246, 10, 0.4),
        0 2px 10px rgba(0, 0, 0, 0.35);
}

.labd-btn--primary:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    box-shadow: none;
}

.labd-btn--primary:active:not(:disabled) {
    transform: scale(0.98);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 4px 14px -6px rgba(124, 246, 10, 0.35);
}

.labd-app {
    position: relative;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
}

/* --- Header --- */

.labd-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    height: var(--labd-header-offset);
    padding: var(--labd-safe-top) 16px 0;
    background: transparent;
    border-bottom: none;
    border-radius: 0;
    box-shadow: none;
    pointer-events: none;
    overflow: visible;
}

.labd-header > * { pointer-events: auto; }

.labd-header__end {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.labd-header__brand {
    display: flex;
    align-items: center;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    line-height: 0;
}

.labd-header__logo {
    display: block;
    height: 36px;
    width: 36px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(124, 246, 10, 0.22));
}

.labd-header__daily {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 32px;
    padding: 0 10px 0 6px;
    margin-left: -2px;
    border-radius: 999px;
    border: 1px solid rgba(124, 246, 10, 0.28);
    background: linear-gradient(180deg, rgba(18, 22, 18, 0.72), rgba(10, 12, 14, 0.55));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--labd-fg);
    font-family: var(--labd-font);
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 16px -10px rgba(0, 0, 0, 0.55);
}

.labd-header__daily[hidden] { display: none !important; }

.labd-header__daily--done {
    border-color: rgba(124, 246, 10, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 18px -8px rgba(124, 246, 10, 0.55);
}

.labd-header__daily-ring {
    position: relative;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: conic-gradient(var(--labd-accent) var(--labd-daily-pct, 0%), rgba(255, 255, 255, 0.12) 0);
}

.labd-header__daily-fill {
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #0c0e12;
}

.labd-header__daily-count {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    color: var(--labd-accent-strong);
}

.labd-header__daily--done .labd-header__daily-count {
    color: var(--labd-accent);
}

.labd-header__quest {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(18, 22, 18, 0.72), rgba(10, 12, 14, 0.55));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 16px -10px rgba(0, 0, 0, 0.55);
}

.labd-header__quest:not(:has(button:not([hidden]))) {
    display: none;
}

.labd-header__quest .labd-header__daily {
    margin-left: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.labd-header__quest .labd-header__daily[hidden] { display: none !important; }

.labd-header__back {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--labd-border-strong);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 16px -8px rgba(0, 0, 0, 0.6);
    color: var(--labd-fg);
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.labd-header__back[hidden] { display: none !important; }

body.labd--scroll-view .labd-feed {
    visibility: hidden;
    pointer-events: none;
}

/* Полноэкранная дуга compose на профиле перехватывала тапы (WebKit). */
body.labd--scroll-view .labd-compose-arc {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.labd-view[data-labd-view="profile"] {
    z-index: 12;
}

.labd-view {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    display: none;
}

.labd-view--active,
.labd-view:not([hidden]) {
    display: block;
}

.labd-view[hidden] { display: none !important; }

.labd-view--scroll {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--labd-safe-bottom);
}

body.labd--compose-on .labd-view--scroll {
    padding-bottom: var(--labd-compose-space);
}

.labd-hero-share {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: #fff;
    color: #12141a;
    box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.55);
    cursor: pointer;
    pointer-events: auto;
    opacity: calc(1 - var(--labd-hero-t, 0));
    transform: scale(calc(1 - 0.08 * var(--labd-hero-t, 0)));
    transform-origin: top right;
    -webkit-tap-highlight-color: transparent;
}

.labd-hero-share[hidden] { display: none !important; }

.labd-profile__hero.is-collapsed .labd-hero-share,
.labd-artist__hero.is-collapsed .labd-hero-share {
    pointer-events: none;
    visibility: hidden;
}

.labd-hero-share:active {
    transform: scale(0.96);
}

.labd-hero-share__icon {
    display: block;
    flex-shrink: 0;
}

.labd-header__studio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--labd-border-strong);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 6px 16px -8px rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.88);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.labd-header__studio:hover,
.labd-header__studio:focus-visible {
    color: var(--labd-accent);
    border-color: rgba(124, 246, 10, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 18px -4px rgba(124, 246, 10, 0.35);
    outline: none;
}

.labd-header__studio:active {
    transform: scale(0.94);
}

.labd-header__studio-icon {
    display: block;
    flex-shrink: 0;
}

/* --- Exit confirm --- */

.labd-confirm {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.labd-confirm[hidden] { display: none !important; }

.labd-confirm__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 6, 9, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.labd-confirm__sheet {
    position: relative;
    z-index: 1;
    width: min(100%, 320px);
    padding: 22px 18px 16px;
    border-radius: 22px;
    background: var(--labd-surface-card);
    border: 1px solid var(--labd-border-strong);
    box-shadow: var(--labd-card-shadow);
}

.labd-confirm__title {
    margin: 0 0 18px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--labd-fg);
}

.labd-confirm__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.labd-confirm__btn {
    min-height: 44px;
    border-radius: 14px;
    border: 1px solid var(--labd-border-strong);
    font-family: var(--labd-font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.labd-confirm__btn--ghost {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
    color: var(--labd-fg);
}

.labd-confirm__btn--primary {
    border-color: rgba(124, 246, 10, 0.42);
    background: linear-gradient(180deg, rgba(124, 246, 10, 0.22), rgba(124, 246, 10, 0.08));
    color: var(--labd-accent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.labd-confirm__btn:active {
    transform: scale(0.97);
}

.labd-header__profile {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--labd-border-strong);
    background: transparent;
    color: var(--labd-fg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 1;
    box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.6);
}

.labd-header__profile-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: radial-gradient(circle at 35% 25%, rgba(124, 246, 10, 0.22), rgba(178, 108, 240, 0.14) 45%, rgba(15, 17, 25, 0.95) 78%);
}

.labd-header__profile-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 50%;
    z-index: 1;
}

.labd-header__profile-photo[hidden] {
    display: none !important;
}

.labd-header__profile-fallback {
    position: absolute;
    inset: 0;
    z-index: 0;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.labd-header__profile-fallback[hidden] {
    display: none !important;
}

.labd-header__profile-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    border: 1px solid rgba(210, 180, 255, 0.3);
    background: linear-gradient(160deg, #b26cf0 0%, #8b7cff 55%, #6b3fbf 100%);
    color: #f4eeff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 14px;
    text-align: center;
    pointer-events: none;
    z-index: 3;
    box-shadow: none;
}

.labd-header__profile-badge[hidden] { display: none !important; }

.labd-header__profile--pending {
    border-color: rgba(178, 108, 240, 0.5);
}

/* --- Status screens --- */

.labd-status {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    text-align: center;
    color: var(--labd-fg-muted);
    font-size: 14px;
}

body.labd--compose-on .labd-status {
    padding-bottom: calc(24px + var(--labd-compose-space));
}

.labd-status[hidden] { display: none !important; }

.labd-status__title {
    margin: 0;
    color: var(--labd-fg);
    font-size: 18px;
    font-weight: 600;
}

.labd-status__text { margin: 0; max-width: 280px; line-height: 1.45; }

.labd-status--error {
    z-index: 12;
    pointer-events: auto;
}

.labd-btn--ghost {
    margin-top: 8px;
    min-width: 200px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    background: #000;
    color: #fff;
    font-size: 14px;
    font-weight: 650;
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
    pointer-events: auto;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
}

.labd-btn--ghost:active {
    background: #111;
    color: #fff;
    opacity: 0.92;
}

.labd-status__spinner {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--labd-accent);
    border-radius: 50%;
    animation: labd-spin 0.8s linear infinite;
}

@keyframes labd-spin { to { transform: rotate(360deg); } }

/* --- Feed (TikTok-style vertical snap) --- */

.labd-feed {
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.labd-feed::-webkit-scrollbar { display: none; }

.labd-feed[hidden] { display: none !important; }

.labd-feed__slide {
    position: relative;
    height: 100%;
    min-height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
    background: var(--labd-bg-0);
}

.labd-feed__bg {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    filter: blur(28px) brightness(0.45);
    transform: scale(1.08);
}

.labd-feed__bg--fallback {
    background: radial-gradient(circle at 25% 18%, rgba(124, 246, 10, 0.12), transparent 55%),
                radial-gradient(circle at 82% 78%, rgba(91, 140, 255, 0.12), transparent 50%),
                radial-gradient(circle at 50% 105%, rgba(139, 124, 255, 0.08), transparent 55%),
                var(--labd-bg-0);
}

.labd-feed__viz {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
}

.labd-feed__viz.is-on {
    opacity: 1;
}

.labd-feed__cover-3d {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(46.08vw, 205px);
    height: min(46.08vw, 205px);
    transform: translate3d(-50%, -58%, 2px);
    -webkit-transform: translate3d(-50%, -58%, 2px);
    perspective: 900px;
    -webkit-perspective: 900px;
    perspective-origin: 50% 50%;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    z-index: 2;
    isolation: isolate;
    pointer-events: none;
}

.labd-feed__cover-3d[hidden] {
    display: none !important;
}

.labd-feed__cover-3d--fallback .labd-feed__cover {
    object-fit: cover;
    background:
        radial-gradient(circle at 30% 20%, rgba(124, 246, 10, 0.35), transparent 55%),
        radial-gradient(circle at 80% 75%, rgba(91, 140, 255, 0.3), transparent 50%),
        #121212;
}

.labd-feed__cover-stage {
    width: 100%;
    height: 100%;
    transform: rotateY(-16deg) rotateX(3deg) translateZ(1px);
    -webkit-transform: rotateY(-16deg) rotateX(3deg) translateZ(1px);
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
}

.labd-feed__cover {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
    transform: none;
    -webkit-transform: none;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    box-shadow:
        -14px 18px 42px rgba(0, 0, 0, 0.5),
        10px 28px 56px rgba(0, 0, 0, 0.38),
        inset 1px 0 0 rgba(255, 255, 255, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    border: 1px solid var(--labd-border-strong);
}

.labd-feed__overlay {
    position: absolute;
    inset: 0;
    /* низ мягче — не давит на бейдж ранга и прогресс */
    background: linear-gradient(
        180deg,
        rgba(9, 9, 11, 0.12) 0%,
        rgba(9, 9, 11, 0) 32%,
        rgba(9, 9, 11, 0.35) 72%,
        rgba(9, 9, 11, 0.48) 100%
    );
    pointer-events: none;
    z-index: 3;
}

.labd-feed__pause-hint {
    position: absolute;
    left: 50%;
    top: 46%;
    z-index: 4;
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
    border-radius: 50%;
    background: rgba(9, 9, 11, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.88);
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.labd-feed__slide--paused .labd-feed__pause-hint {
    opacity: 1;
    transform: scale(1);
}

.labd-feed__pause-icon {
    position: relative;
    width: 14px;
    height: 18px;
}

.labd-feed__pause-icon::before,
.labd-feed__pause-icon::after {
    content: '';
    position: absolute;
    top: 0;
    width: 4px;
    height: 100%;
    border-radius: 1.5px;
    background: rgba(255, 255, 255, 0.88);
}

.labd-feed__pause-icon::before { left: 1px; }
.labd-feed__pause-icon::after { right: 1px; }

/* TikTok-style bottom scrubber */
.labd-feed__progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 8;
    height: calc(22px + var(--labd-safe-bottom));
    padding-bottom: var(--labd-safe-bottom);
    display: flex;
    align-items: flex-end;
    background: transparent;
    pointer-events: auto;
    touch-action: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: bottom 0.28s ease, height 0.28s ease, padding-bottom 0.28s ease;
}

body.labd--compose-on .labd-feed__progress {
    bottom: var(--labd-compose-space);
    height: 22px;
    padding-bottom: 0;
}

.labd-feed__progress::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: var(--labd-safe-bottom);
    height: 2px;
    background: rgba(255, 255, 255, 0.22);
    transition: height 0.12s ease, bottom 0.28s ease;
}

body.labd--compose-on .labd-feed__progress::before {
    bottom: 0;
}

.labd-feed__progress-fill {
    position: absolute;
    left: 0;
    bottom: var(--labd-safe-bottom);
    height: 2px;
    width: 0%;
    border-radius: 0;
    background: linear-gradient(90deg, var(--labd-accent), #fff);
    pointer-events: none;
    transition: width 0.12s linear, height 0.12s ease, bottom 0.28s ease;
}

body.labd--compose-on .labd-feed__progress-fill {
    bottom: 0;
}

.labd-feed__progress--active::before,
.labd-feed__progress--active .labd-feed__progress-fill {
    height: 4px;
}

.labd-feed__progress--active .labd-feed__progress-fill {
    transition: none;
}

.labd-feed__buffer {
    position: absolute;
    left: 50%;
    top: 46%;
    z-index: 5;
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.labd-feed__slide--buffering .labd-feed__buffer {
    opacity: 1;
}

.labd-feed__slide--buffering .labd-feed__pause-hint {
    opacity: 0 !important;
}

.labd-feed__buffer-spinner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: rgba(255, 255, 255, 0.95);
    animation: labd-feed-spin 0.7s linear infinite;
}

@keyframes labd-feed-spin {
    to { transform: rotate(360deg); }
}

.labd-feed__meta {
    position: absolute;
    left: 16px;
    right: 72px;
    bottom: calc(28px + var(--labd-safe-bottom));
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: bottom 0.28s ease;
}

body.labd--compose-on .labd-feed__meta {
    bottom: calc(28px + var(--labd-compose-space));
}

.labd-feed__author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.labd-feed__author--link {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    text-align: left;
    color: inherit;
    font-family: inherit;
    cursor: pointer;
}

.labd-feed__author--link:active { opacity: 0.85; }

.labd-feed__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--labd-border-strong);
    background: var(--labd-glass);
}

.labd-feed__avatar--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.labd-feed__author-text { min-width: 0; }

.labd-feed__name {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.labd-feed__title {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--labd-fg-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.labd-feed__badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Статус-пилюли: тёмное стекло с едва заметной полу-белой обводкой (как на любой
   другой стеклянной поверхности) + очень мягкое размытое пятно цвета статуса
   позади текста. Обводка НЕ красится в цвет статуса — только текст.
   Единый стиль для ленты (labd-feed__badges) и профиля (labd-profile__hero). */
.labd-rank,
.labd-score-status {
    position: relative;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid var(--labd-border-strong);
    font-weight: 700;
    letter-spacing: 0.04em;
    background:
        radial-gradient(64% 150% at 50% 50%, color-mix(in srgb, currentColor 22%, transparent) 0%, transparent 75%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)),
        linear-gradient(180deg, rgba(10, 11, 14, 0.92), rgba(5, 6, 8, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.labd-rank {
    padding: 6px 15px;
    font-size: 11px;
}

.labd-rank--novice { color: var(--labd-rank-novice); }
.labd-rank--promising { color: var(--labd-rank-promising); }
.labd-rank--lab_artist { color: var(--labd-rank-lab-artist); }
.labd-rank--studio_choice { color: var(--labd-rank-studio-choice); }

.labd-feed__badges .labd-score-status {
    margin-top: 0;
    padding: 5px 13px;
    font-size: 11px;
}

.labd-score-status {
    margin-top: 8px;
    padding: 7px 17px;
    font-size: 12px;
    color: var(--labd-status-novice);
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

button.labd-score-status:active {
    transform: scale(0.97);
}

.labd-score-status--novice { color: var(--labd-status-novice); }
.labd-score-status--larp {
    color: #8a8f98;
    border-color: rgba(138, 143, 152, 0.35);
}
.labd-score-status--advanced { color: var(--labd-status-advanced); }
.labd-score-status--producer { color: var(--labd-status-producer); }
.labd-score-status--sound_master { color: var(--labd-status-sound_master); }
.labd-score-status--freshman { color: var(--labd-status-freshman); }
.labd-score-status--next_up { color: var(--labd-status-next_up); }
.labd-score-status--headliner { color: var(--labd-status-headliner); }
.labd-score-status--legend { color: var(--labd-status-legend); }

.labd-score-status--gigachad {
    color: #f3ecff;
    border-color: transparent;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 16px -6px rgba(155, 108, 255, 0.4);
}

.labd-score-status__ink {
    position: relative;
    z-index: 1;
}

.labd-score-status--gigachad .labd-score-status__ink {
    display: inline-block;
    line-height: 1;
    color: #f3ecff;
    background-image: linear-gradient(
        90deg,
        #b08ae0,
        #ffffff,
        #e8dcff,
        #9b6cff,
        #b08ae0
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: labd-goat-sheen 3.2s linear infinite;
}

.labd-score-status--gigachad::before {
    content: '';
    position: absolute;
    inset: -1px;
    z-index: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(
        90deg,
        #5a2fa8,
        #c9b6ff,
        #ffffff,
        #9b6cff,
        #5a2fa8
    );
    background-size: 200% 100%;
    animation: labd-goat-sheen 3.2s linear infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

@keyframes labd-goat-sheen {
    from { background-position: 0% 50%; }
    to { background-position: -200% 50%; }
}

.labd-feed__duration {
    font-size: 12px;
    color: var(--labd-fg-muted);
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(9, 9, 11, 0.5);
    border: 1px solid var(--labd-border-strong);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Reaction rail */
.labd-feed__actions {
    position: absolute;
    right: 10px;
    top: 34%;
    bottom: calc(96px + var(--labd-safe-bottom));
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    pointer-events: none;
    transition: bottom 0.28s ease;
}

body.labd--compose-on .labd-feed__actions {
    bottom: calc(96px + var(--labd-compose-space));
}

.labd-feed__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 48px;
    color: #fff;
}

.labd-feed__action--stat {
    pointer-events: none;
}

.labd-feed__action--react {
    pointer-events: auto;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    font-family: var(--labd-font);
    color: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.labd-feed__action--react:active {
    transform: scale(0.94);
}

.labd-feed__action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.labd-feed__action--stat .labd-feed__action-icon {
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: none;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

.labd-feed__action--stat .labd-icon--emoji {
    font-size: 28px;
    line-height: 1;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.labd-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    width: 100%;
}

.labd-icon--emoji {
    display: block;
    font-size: 22px;
    line-height: 1;
    font-style: normal;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.labd-feed__action--fire .labd-feed__action-icon,
.labd-feed__action--ok .labd-feed__action-icon,
.labd-feed__action--raw .labd-feed__action-icon {
    box-shadow: none;
}

.labd-feed__action-count,
.labd-feed__action-label {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
}

.labd-feed__action-count {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.labd-feed__action--rate {
    margin-top: 4px;
    border: none;
    background: none;
    padding: 0;
    font-family: var(--labd-font);
    cursor: pointer;
    pointer-events: auto;
    -webkit-appearance: none;
    appearance: none;
}

.labd-feed__action-icon--rate {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--labd-accent-strong) 0%, var(--labd-accent) 50%, var(--labd-accent-deep) 100%);
    color: var(--labd-accent-ink);
    border-color: transparent;
    font-size: 18px;
    font-weight: 700;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 8px 22px -6px rgba(124, 246, 10, 0.55);
}

.labd-feed__action--rate:active {
    transform: scale(0.96);
}

.labd-feed__action--rate .labd-feed__action-label {
    color: var(--labd-accent);
}

.labd-feed__action--share,
.labd-feed__action--comments,
.labd-feed__action--report {
    margin: 0;
    border: none;
    background: none;
    padding: 0;
    font-family: var(--labd-font);
    cursor: pointer;
    pointer-events: auto;
    -webkit-appearance: none;
    appearance: none;
    color: #fff;
}

.labd-feed__action-icon--share,
.labd-feed__action-icon--comments,
.labd-feed__action-icon--report {
    width: 28px;
    height: 28px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

.labd-feed__action-icon--share .labd-icon--action,
.labd-feed__action-icon--comments .labd-icon--action,
.labd-feed__action-icon--report .labd-icon--action {
    width: 28px;
    height: 28px;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.labd-feed__action--share:active,
.labd-feed__action--comments:active,
.labd-feed__action--report:active {
    transform: scale(0.94);
}

.labd-feed__action--share .labd-feed__action-label,
.labd-feed__action--report .labd-feed__action-label {
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
}

.labd-feed__action--report-slot {
    visibility: hidden;
    pointer-events: none;
}

.labd-profile__track-tile-action .labd-icon--emoji {
    font-size: 15px;
    line-height: 1;
}

.labd-feed__rate {
    display: none !important;
}

/* --- Compose (+) dock --- */

.labd-compose {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 16;
    height: var(--labd-compose-space);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 16px calc(10px + var(--labd-safe-bottom));
    pointer-events: none;
    overflow: visible;
}

.labd-compose[hidden] { display: none !important; }

.labd-dock {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 92px 72px 92px;
    grid-template-rows: minmax(0, 1fr);
    align-items: center;
    align-content: center;
    justify-items: center;
    width: auto;
    height: 46px;
    min-height: 46px;
    max-height: 46px;
    padding: 0 18px;
    overflow: visible;
    pointer-events: none;
    border-radius: 999px;
    background: rgba(14, 16, 22, 0.62);
    border: 1px solid transparent;
    box-shadow: none;
    backdrop-filter: blur(22px) saturate(1.25);
    -webkit-backdrop-filter: blur(22px) saturate(1.25);
}

.labd-dock::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    padding: 1px;
    background:
        linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.42) 22%, rgba(255, 255, 255, 0.12) 48%, rgba(255, 255, 255, 0.05) 72%, rgba(255, 255, 255, 0.22) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}


.labd-dock__item,
.labd-dock .labd-compose__btn {
    z-index: 2;
    min-width: 0;
    min-height: 0;
    align-self: center;
}

.labd-dock__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

.labd-dock__item:active:not(:disabled) {
    transform: scale(0.94);
}

.labd-dock__icon {
    display: block;
    width: 40px;
    height: 32px;
    object-fit: contain;
    opacity: 0.38;
    transition: opacity 0.18s ease;
    flex-shrink: 0;
}

.labd-dock__item.is-active .labd-dock__icon {
    opacity: 1;
    filter: none;
}

.labd-compose__hint {
    position: absolute;
    top: -30px;
    left: 50%;
    margin: 0;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(9, 9, 11, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.88);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.01em;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, 0);
    pointer-events: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.labd-compose__hint.is-armed {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.32);
}

.labd-compose__btn {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    align-self: center;
    width: 54px;
    height: 54px;
    margin: -4px 0;
    padding: 0;
    min-width: 0;
    min-height: 0;
    line-height: 0;
    overflow: visible;
    border: 0;
    border-radius: 50%;
    background: none;
    background-color: transparent;
    box-shadow: none;
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
    touch-action: none;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.labd-compose__btn::before {
    content: '';
    position: absolute;
    z-index: 0;
    inset: -7px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 38% 32%, rgba(212, 255, 106, 0.38) 0%, rgba(164, 255, 77, 0.14) 36%, transparent 68%),
        radial-gradient(circle at 68% 70%, rgba(176, 138, 224, 0.34) 0%, rgba(139, 92, 214, 0.12) 40%, transparent 70%);
    filter: blur(5px);
    opacity: 0.85;
    pointer-events: none;
}

.labd-compose.is-pulling .labd-compose__btn::before,
.labd-compose.is-armed .labd-compose__btn::before,
.labd-compose.is-launching .labd-compose__btn::before {
    opacity: 1;
}

.labd-compose__btn:active {
    transform: scale(0.96);
}

.labd-compose__plus {
    position: relative;
    z-index: 1;
    display: block;
    width: 54px;
    height: 54px;
    object-fit: contain;
    pointer-events: none;
    opacity: 0.96;
    filter: none;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

body:not(.labd--compose-on) .labd-compose-arc {
    visibility: hidden;
    opacity: 0 !important;
}

.labd-compose-arc {
    --labd-arc-t: 0;
    position: fixed;
    inset: 0;
    z-index: 14;
    margin: 0;
    pointer-events: none;
    opacity: 0;
    background:
        radial-gradient(ellipse 88% 46% at 50% 112%, rgba(91, 140, 255, 0.38), transparent 58%),
        radial-gradient(ellipse 52% 26% at 50% 100%, rgba(255, 255, 255, 0.1), transparent 52%),
        radial-gradient(ellipse 70% 40% at 50% 105%, rgba(139, 124, 255, 0.16), transparent 55%),
        linear-gradient(180deg, rgba(9, 9, 11, 0.04) 18%, rgba(9, 9, 11, 0.52) 100%);
    will-change: opacity;
}

.labd-compose-arc::before,
.labd-compose-arc::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(var(--labd-safe-bottom) + 40px);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    pointer-events: none;
    transform: translate3d(-50%, 0, 0) scale(calc(1 + var(--labd-arc-t, 0) * 10));
    opacity: calc(0.62 - var(--labd-arc-t, 0) * 0.52);
    will-change: transform, opacity;
}

.labd-compose-arc::before {
    border: 1px solid rgba(175, 205, 255, 0.42);
    box-shadow: 0 0 18px -8px rgba(91, 140, 255, 0.35);
}

.labd-compose-arc::after {
    border: 1px solid rgba(124, 246, 10, 0.22);
    transform: translate3d(-50%, 0, 0) scale(calc(1 + var(--labd-arc-t, 0) * 15));
    opacity: calc(0.42 - var(--labd-arc-t, 0) * 0.36);
}

.labd-compose-arc.is-armed {
    background:
        radial-gradient(ellipse 92% 50% at 50% 112%, rgba(91, 140, 255, 0.48), transparent 58%),
        radial-gradient(ellipse 56% 28% at 50% 100%, rgba(255, 255, 255, 0.14), transparent 52%),
        radial-gradient(ellipse 74% 42% at 50% 105%, rgba(139, 124, 255, 0.22), transparent 55%),
        linear-gradient(180deg, rgba(9, 9, 11, 0.08) 12%, rgba(9, 9, 11, 0.62) 100%);
}

.labd-compose-arc.is-armed::before {
    border-color: rgba(200, 220, 255, 0.55);
}

.labd-compose-arc.is-armed::after {
    border-color: rgba(164, 255, 77, 0.32);
}

/* --- Review modal --- */

.labd-review {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}

body.labd--compose-on .labd-review {
    bottom: var(--labd-compose-space);
}

.labd-review[hidden] { display: none !important; }

.labd-review__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 6, 9, 0.62);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: auto;
}

.labd-review__sheet {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    max-height: 92dvh;
    overflow-y: auto;
    padding: 20px 16px 20px;
    border-radius: 24px 24px 0 0;
    background: var(--labd-surface-sheet);
    border-top: 1px solid var(--labd-border-strong);
    box-shadow: var(--labd-sheet-shadow);
    transform: translateY(110%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: auto;
    will-change: transform;
}

.labd-review--open {
    pointer-events: auto;
}

.labd-review--open .labd-review__backdrop { opacity: 1; }
.labd-review--open .labd-review__sheet { transform: translateY(0); }

.labd-review__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 1px solid var(--labd-border);
    border-radius: 50%;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015));
    color: var(--labd-fg);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.labd-review__title {
    margin: 0 32px 4px 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.labd-review__track {
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--labd-fg-muted);
}

.labd-review__tokens {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.labd-review__token {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    border-radius: 16px;
    border: 1px solid var(--labd-border);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
    box-shadow: var(--labd-card-shadow-quiet);
    color: var(--labd-fg);
    font-family: var(--labd-font);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.labd-review__token--active {
    border-color: var(--labd-accent);
    background: var(--labd-accent-soft);
    transform: translateY(-1px);
}

.labd-review__token-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 30px;
    line-height: 0;
}

.labd-review__token-icon .labd-icon--emoji {
    font-size: 26px;
    line-height: 1;
}

.labd-review__token--fire.labd-review__token--active {
    border-color: rgba(255, 107, 53, 0.65);
    background: rgba(255, 107, 53, 0.12);
}

.labd-review__token--ok.labd-review__token--active {
    border-color: rgba(111, 168, 255, 0.65);
    background: rgba(111, 168, 255, 0.1);
}

.labd-review__token--raw.labd-review__token--active {
    border-color: rgba(124, 246, 10, 0.65);
    background: rgba(124, 246, 10, 0.1);
}

.labd-review__token-label { font-size: 11px; font-weight: 600; }

.labd-review__field { display: block; margin-bottom: 12px; }

.labd-review__field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--labd-fg-muted);
}

.labd-review__textarea {
    width: 100%;
    min-height: 72px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--labd-border);
    background: rgba(0, 0, 0, 0.22);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.35);
    color: var(--labd-fg);
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

.labd-review__textarea:focus {
    outline: none;
    border-color: rgba(124, 246, 10, 0.55);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(124, 246, 10, 0.12);
}

.labd-review__hint {
    display: block;
    margin-top: 4px;
    min-height: 16px;
    font-size: 11px;
    color: var(--labd-fg-muted);
}

.labd-review__hint--ok { color: var(--labd-accent); }

.labd-review__note {
    margin: 4px 0 12px;
    font-size: 12px;
    color: var(--labd-fg-muted);
}

.labd-review__submit {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--labd-cta-border);
    border-radius: 999px;
    background: linear-gradient(90deg, var(--labd-cta-from) 0%, var(--labd-cta-via) 55%, var(--labd-cta-to) 100%);
    color: var(--labd-cta-ink);
    font-family: var(--labd-font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 10px 26px -10px rgba(124, 246, 10, 0.4);
}

.labd-review__submit:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    box-shadow: none;
}

.labd-review__error {
    margin: 10px 0 0;
    font-size: 13px;
    color: #ff6b5c;
}

.labd-review__error[hidden] { display: none !important; }

/* --- +1 Energy toast --- */

.labd-energy-toast {
    position: fixed;
    top: calc(var(--labd-header-offset) + 12px);
    left: 50%;
    z-index: 200;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(23, 27, 38, 0.95), rgba(15, 17, 25, 0.95));
    border: 1px solid rgba(124, 246, 10, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 32px -10px rgba(0, 0, 0, 0.6), 0 0 24px -8px rgba(124, 246, 10, 0.4);
    transform: translate(-50%, -12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.labd-energy-toast--visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.labd-energy-toast[hidden] { display: none !important; }

.labd-energy-toast__icon { font-size: 18px; }
.labd-energy-toast__text {
    font-size: 14px;
    font-weight: 700;
    color: var(--labd-accent);
}

/* --- Profile (14E-1) --- */

.labd-profile {
    padding: calc(16px + var(--labd-header-offset)) 16px 32px;
    max-width: 480px;
    margin: 0 auto;
    overflow-x: clip;
}

body.labd--compose-on .labd-profile {
    padding-bottom: calc(28px + var(--labd-compose-h));
}


.labd-profile__hero {
    --labd-hero-t: 0;
    --labd-hero-expanded-h: 320px;
    --labd-hero-collapsed-h: 92px;
    --labd-hero-circle: 72px;
    --labd-hero-rgb-a: 196, 0, 251;
    --labd-hero-rgb-b: 4, 252, 0;
    position: relative;
    display: block;
    margin: 0 0 22px;
    height: var(--labd-hero-expanded-h);
    min-height: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    overflow-x: clip;
    overflow-y: visible;
    isolation: isolate;
    background: transparent;
    box-shadow: none;
}

/* Фикс. размер + scale в JS — без layout thrash на скролле */
.labd-profile__hero-frame {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
    width: 100%;
    height: var(--labd-hero-expanded-h);
    box-sizing: border-box;
    border-radius: 28px;
    overflow: hidden;
    isolation: isolate;
    border: 3px solid transparent;
    background:
        linear-gradient(#12141c, #12141c) padding-box,
        linear-gradient(
            135deg,
            rgb(var(--labd-hero-rgb-a)) 0%,
            rgb(var(--labd-hero-rgb-b)) 55%,
            rgb(var(--labd-hero-rgb-a)) 100%
        ) border-box;
    box-shadow:
        0 14px 32px -20px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(255, 255, 255, 0.12);
    transform: translateZ(0);
    transform-origin: top left;
    will-change: transform;
    backface-visibility: hidden;
}

.labd-profile__hero.is-collapsing .labd-profile__hero-frame {
    box-shadow: none;
}

.labd-profile__hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.labd-profile__hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 36%;
    display: block;
    transform: scale(1.12) translateY(-8%);
    transform-origin: center center;
}

.labd-profile__hero-photo[hidden] { display: none !important; }

.labd-profile__hero-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background:
        radial-gradient(ellipse 70% 60% at 30% 25%, rgba(124, 246, 10, 0.28), transparent 60%),
        radial-gradient(ellipse 55% 50% at 80% 70%, rgba(91, 140, 255, 0.3), transparent 55%),
        linear-gradient(160deg, #1a2030, #0c0e14);
}

.labd-profile__hero-fallback[hidden] { display: none !important; }

/* Референс: ~70% чистое фото / ~30% frost снизу с мягким пером. */
.labd-profile__hero-frost-blur {
    position: absolute;
    left: -8%;
    right: -8%;
    bottom: -12px;
    height: calc(30% + 12px);
    z-index: 1;
    overflow: hidden;
    opacity: 1;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.45) 18%,
        #000 36%,
        #000 100%
    );
    mask-image: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.45) 18%,
        #000 36%,
        #000 100%
    );
    transition: opacity 0.12s linear;
}

.labd-profile__hero.is-collapsing .labd-profile__hero-frost-blur,
.labd-profile__hero.is-collapsing .labd-profile__hero-frost-scrim {
    opacity: 0;
    visibility: hidden;
}

.labd-profile__hero-frost-photo {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 135%;
    height: 320%;
    max-width: none;
    object-fit: cover;
    object-position: center 55%;
    transform: translateX(-50%);
    filter: blur(28px) saturate(1.25) brightness(1.04);
    pointer-events: none;
}

.labd-profile__hero-frost-photo[hidden] { display: none !important; }

.labd-profile__hero-frost-scrim {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30%;
    z-index: 2;
    pointer-events: none;
    opacity: 1;
    background:
        linear-gradient(
            180deg,
            rgba(6, 8, 12, 0) 0%,
            rgba(6, 8, 12, 0.22) 32%,
            rgba(6, 8, 12, 0.4) 100%
        );
    transition: opacity 0.12s linear;
}

.labd-profile__hero-meta {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
    pointer-events: none;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.labd-profile__hero.is-collapsing .labd-profile__hero-meta {
    gap: 4px;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.35);
}

.labd-profile__hero-copy,
.labd-profile__hero-bar,
.labd-profile__hero-meta .labd-profile__name,
.labd-profile__hero-meta .labd-score-status,
.labd-profile__hero-meta .labd-profile__photo-edit {
    pointer-events: auto;
}

.labd-profile__hero-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.labd-profile__hero-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.labd-profile__hero-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

/* Ранг в hero без глобального margin-top: 8px — одна линия с пдп и кнопкой */
.labd-profile__hero-stats .labd-score-status,
.labd-profile__hero-stats .labd-rank {
    margin-top: 0;
    height: 34px;
    padding: 0 12px;
    box-sizing: border-box;
}

.labd-profile__stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 10px;
    box-sizing: border-box;
    border-radius: 999px;
    background: rgba(0, 0, 0, calc(0.28 * (1 - var(--labd-hero-t))));
    border: 1px solid rgba(255, 255, 255, calc(0.14 * (1 - var(--labd-hero-t))));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.labd-profile__stat-chip-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}

.labd-profile__photo-edit {
    flex: 0 0 auto;
    margin: 0;
    height: 34px;
    padding: 0 16px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    border: none;
    border-radius: 999px;
    background: #fff;
    color: #12141a;
    font-family: var(--labd-font);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.01em;
    cursor: pointer;
    opacity: calc(1 - var(--labd-hero-t));
    transform: scale(calc(1 - 0.08 * var(--labd-hero-t)));
    transform-origin: right center;
    pointer-events: auto;
    box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.55);
    -webkit-tap-highlight-color: transparent;
}

.labd-profile__hero.is-collapsed .labd-profile__photo-edit {
    pointer-events: none;
    visibility: hidden;
}

.labd-profile__photo-edit:active {
    transform: scale(0.96);
}

.labd-profile__eyebrow {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.labd-profile__name {
    margin: 0;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font-family: var(--labd-font);
    font-size: clamp(22px, 6vw, 28px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
    text-align: left;
    overflow-wrap: anywhere;
    cursor: pointer;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
    -webkit-tap-highlight-color: transparent;
}

.labd-profile__name-edit {
    flex-shrink: 0;
    font-size: 14px;
    opacity: 0.45;
}

@keyframes labd-hero-rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes labd-hero-wash-drift {
    from { transform: scale(1.02) translate3d(-1%, 0, 0); }
    to { transform: scale(1.08) translate3d(2%, -1%, 0); }
}

@keyframes labd-avatar-ring-spin {
    to { transform: rotate(360deg); }
}

.labd-profile__ttl-banner {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(240, 194, 94, 0.14), rgba(240, 194, 94, 0.04));
    border: 1px solid rgba(240, 194, 94, 0.32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    font-size: 13px;
    line-height: 1.4;
    color: #f0c25e;
}

.labd-profile__ttl-banner[hidden] { display: none !important; }

/* LAB Score card — hero tier: самая крупная и премиальная поверхность */
.labd-profile__score-card {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 20px 20px 18px;
    margin-bottom: 20px;
    border-radius: 24px;
    overflow: hidden;
    background:
        radial-gradient(120% 150% at 6% -20%, rgba(91, 140, 255, 0.4), transparent 55%),
        radial-gradient(95% 110% at 100% -15%, rgba(139, 124, 255, 0.22), transparent 55%),
        radial-gradient(60% 70% at 100% 0%, rgba(124, 246, 10, 0.1), transparent 62%),
        var(--labd-surface-card);
    border: 1px solid var(--labd-border-strong);
    color: inherit;
    font-family: var(--labd-font);
    text-align: left;
    cursor: pointer;
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.12),
        0 24px 48px -26px rgba(0, 0, 0, 0.85),
        0 0 42px -22px rgba(91, 140, 255, 0.35);
    transition: border-color 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}

.labd-profile__score-card::before {
    content: '';
    position: absolute;
    left: 18px;
    right: 18px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
}

.labd-profile__score-card:active {
    transform: scale(0.985);
}

.labd-profile__score-card[data-labd-path-status="producer"] {
    border-color: rgba(255, 255, 255, 0.24);
}

.labd-profile__score-card[data-labd-path-status="gigachad"] {
    border-color: rgba(155, 108, 255, 0.42);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 24px 48px -26px rgba(0, 0, 0, 0.85),
        0 0 52px -16px rgba(155, 108, 255, 0.38);
}

.labd-profile__score-card-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.labd-profile__score-card-status {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--labd-accent);
    opacity: 0.92;
}

.labd-profile__score-card-label {
    font-size: 13px;
    color: var(--labd-fg-muted);
}

.labd-profile__score-card-value {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #f1ffe0 0%, var(--labd-accent-strong) 55%, var(--labd-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 18px rgba(124, 246, 10, 0.22));
}

.labd-profile__score-card-hint {
    font-size: 11px;
    color: var(--labd-fg-muted);
}

.labd-profile__score-card-bar {
    display: block;
    height: 5px;
    margin-top: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.labd-profile__score-card-bar-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--labd-accent-deep), var(--labd-accent-strong));
    box-shadow: 0 0 10px rgba(124, 246, 10, 0.55);
    transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.labd-profile__score-card-cta {
    align-self: flex-end;
    flex-shrink: 0;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--labd-border);
    font-size: 12px;
    font-weight: 600;
    color: var(--labd-fg-muted);
    white-space: nowrap;
}

.labd-profile__energy-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    margin-bottom: 20px;
    border-radius: 18px;
    background: var(--labd-surface-card-quiet);
    border: 1px solid var(--labd-border);
    box-shadow: var(--labd-card-shadow-quiet);
}

.labd-profile__energy-label { font-size: 14px; color: var(--labd-fg-muted); }
.labd-profile__energy-value { font-size: 28px; font-weight: 700; color: var(--labd-accent); font-variant-numeric: tabular-nums; }

.labd-profile__ladder { margin-bottom: 20px; }
.labd-profile__ladder-title { margin: 0 0 12px; font-size: 13px; color: var(--labd-fg-muted); }

.labd-ladder {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
}

.labd-ladder__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    width: 22%;
    min-width: 0;
}

.labd-ladder__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--labd-border-strong);
    background: transparent;
}

.labd-ladder__step--done .labd-ladder__dot,
.labd-ladder__step--current .labd-ladder__dot {
    border-color: var(--labd-accent);
    background: var(--labd-accent);
    box-shadow: 0 0 10px rgba(124, 246, 10, 0.5);
}

.labd-ladder__label {
    font-size: 9px;
    text-align: center;
    line-height: 1.2;
    color: var(--labd-fg-muted);
}

.labd-ladder__step--current .labd-ladder__label { color: var(--labd-fg); font-weight: 600; }

.labd-ladder__line {
    flex: 1;
    height: 2px;
    margin-top: 5px;
    background: var(--labd-border-strong);
    min-width: 8px;
}

.labd-ladder__line--done { background: var(--labd-accent); }

.labd-profile__ladder-hint {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--labd-fg-muted);
    line-height: 1.4;
}

/* Статистика — twin + listens на всю ширину */
.labd-profile__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.labd-profile__stats:has(+ .labd-review-session-cta:not([hidden])) {
    margin-bottom: 0;
}

.labd-profile__stat {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 88px;
    padding: 14px 14px 13px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--labd-border-strong);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        var(--labd-card-shadow-quiet);
}

.labd-profile__stat::before {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    pointer-events: none;
}

.labd-profile__stat--reviews {
    background:
        radial-gradient(90% 120% at 0% 0%, rgba(178, 108, 240, 0.22), transparent 58%),
        linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
        var(--labd-surface-card);
}

.labd-profile__stat--demos {
    background:
        radial-gradient(90% 120% at 0% 0%, rgba(91, 140, 255, 0.22), transparent 58%),
        linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
        var(--labd-surface-card);
}

.labd-profile__stat--listens {
    grid-column: 1 / -1;
    min-height: 72px;
    align-items: center;
    background:
        radial-gradient(90% 120% at 0% 0%, rgba(61, 220, 132, 0.18), transparent 58%),
        linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
        var(--labd-surface-card);
}

.labd-profile__stat-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.labd-profile__stat-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.labd-profile__stat--reviews .labd-profile__stat-icon {
    color: #d6b6fb;
    background: rgba(178, 108, 240, 0.18);
    border: 1px solid rgba(178, 108, 240, 0.28);
}

.labd-profile__stat--demos .labd-profile__stat-icon {
    color: #a9c4ff;
    background: rgba(91, 140, 255, 0.18);
    border: 1px solid rgba(91, 140, 255, 0.28);
}

.labd-profile__stat--listens .labd-profile__stat-icon {
    color: #9af0c0;
    background: rgba(61, 220, 132, 0.16);
    border: 1px solid rgba(61, 220, 132, 0.28);
}

.labd-profile__stat-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
    padding-top: 1px;
}

.labd-profile__stat-value {
    display: block;
    font-size: 24px;
    font-weight: 750;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.labd-profile__stat--reviews .labd-profile__stat-value {
    background: linear-gradient(180deg, #f3e8ff 0%, #d6b6fb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.labd-profile__stat--demos .labd-profile__stat-value {
    background: linear-gradient(180deg, #e8f0ff 0%, #a9c4ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.labd-profile__stat--listens .labd-profile__stat-value {
    background: linear-gradient(180deg, #e6fff2 0%, #9af0c0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.labd-profile__stat-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--labd-fg-muted);
    line-height: 1.25;
}

.labd-profile__stat-meter {
    display: block;
    width: 100%;
    height: 4px;
    margin-top: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.labd-profile__stat-meter-fill {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #6f93ff, #a9c4ff);
    box-shadow: 0 0 10px rgba(91, 140, 255, 0.35);
    transition: width 0.35s ease;
}

.labd-profile__upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    padding: 14px 20px;
    margin-bottom: 16px;
    border: 1px solid var(--labd-cta-border);
    border-radius: 999px;
    background: linear-gradient(90deg, var(--labd-cta-from) 0%, var(--labd-cta-via) 55%, var(--labd-cta-to) 100%);
    color: var(--labd-cta-ink);
    font-family: var(--labd-font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -8px 14px -6px rgba(0, 0, 0, 0.3),
        0 10px 26px -10px rgba(124, 246, 10, 0.4);
    -webkit-appearance: none;
    appearance: none;
}

.labd-profile__upload-btn-label {
    text-align: center;
}

.labd-profile__upload-btn-plus {
    position: absolute;
    right: 16px;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    transform: translateY(-50%);
    color: inherit;
    pointer-events: none;
}

.labd-profile__upload-btn-plus svg {
    width: 17px;
    height: 17px;
    display: block;
}

.labd-profile__upload-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.labd-profile__upload-btn:disabled {
    opacity: 0.55;
    cursor: wait;
    box-shadow: none;
}

.labd-profile__upload-btn:disabled .labd-profile__upload-btn-plus {
    opacity: 0.5;
}

.labd-profile__tracks-head {
    margin-bottom: 12px;
}

.labd-profile__tracks-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.labd-profile__tracks-hint {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--labd-fg-muted);
}

/* --- Tabs (Активные / Архив) --- */
.labd-profile__tracks-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
}

.labd-profile__tracks-tab {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--labd-fg-subtle);
    font-family: var(--labd-font);
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    transition: color 0.16s ease;
}

.labd-profile__tracks-tab-count {
    font-variant-numeric: tabular-nums;
    opacity: 0.75;
}

.labd-profile__tracks-tab--active {
    border: none;
    background: transparent;
    color: var(--labd-fg);
}

/* --- Grid (BeatStars-style crate tiles) --- */
.labd-profile__track-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    width: 100%;
}

.labd-profile__track-tile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.022);
    border: 1px solid var(--labd-hairline);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.labd-profile__track-tile:active {
    transform: scale(0.98);
}

.labd-profile__track-tile--selected {
    border-color: rgba(124, 246, 10, 0.5);
    background: rgba(124, 246, 10, 0.04);
    box-shadow: 0 0 0 1px rgba(124, 246, 10, 0.22), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
}

.labd-profile__track-tile--expiring { border-color: rgba(240, 194, 94, 0.42); }
.labd-profile__track-tile--hidden { opacity: 0.6; }

.labd-profile__track-tile-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1c24;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.labd-profile__track-tile-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.labd-profile__track-tile-fallback {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--labd-fg-subtle);
    background: radial-gradient(circle at 35% 25%, rgba(124, 246, 10, 0.1), transparent 60%);
}

.labd-profile__track-tile-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--labd-fg);
    background: rgba(10, 12, 18, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.labd-profile__track-tile-badge--warn {
    color: #ffe1a8;
    background: rgba(120, 76, 8, 0.55);
}

.labd-profile__track-tile-actions {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.labd-profile__track-tile-action {
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: rgba(10, 12, 18, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    cursor: pointer;
}

.labd-profile__track-tile-action:active { transform: scale(0.92); }

.labd-profile__track-tile-action svg { width: 14px; height: 14px; display: block; }

.labd-profile__track-tile-action .labd-icon--action {
    width: 14px;
    height: 14px;
    display: block;
    filter: brightness(0) invert(1);
}

.labd-profile__track-tile-body { min-width: 0; max-width: 100%; }

.labd-profile__track-tile-title {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    min-width: 0;
    max-width: 100%;
}

.labd-profile__track-tile-meta {
    margin: 3px 0 6px;
    font-size: 11px;
    color: var(--labd-fg-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.labd-profile__track-tile .labd-profile__rx {
    gap: 5px;
}

.labd-profile__track-tile .labd-profile__rx-chip {
    min-height: 20px;
    padding: 2px 7px 2px 5px;
    font-size: 10px;
    gap: 3px;
}

.labd-profile__track-tile .labd-profile__rx-chip .labd-icon-wrap {
    width: 12px;
    height: 12px;
}

.labd-profile__track-tile .labd-profile__rx-chip .labd-icon--emoji {
    font-size: 11px;
}

.labd-profile__tracks-empty {
    margin: 0;
    font-size: 13px;
    color: var(--labd-fg-muted);
    text-align: center;
    padding: 24px 0;
}

.labd-profile__tracks-empty[hidden] { display: none !important; }

/* --- Pagination «Показано X из Y» --- */
.labd-profile__tracks-pager {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.labd-profile__tracks-pager[hidden] { display: none !important; }

.labd-profile__tracks-pager-count {
    margin: 0;
    font-size: 11px;
    color: var(--labd-fg-subtle);
}

.labd-profile__tracks-more {
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--labd-border-strong);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
    color: var(--labd-fg);
    font-family: var(--labd-font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.labd-profile__tracks-more[hidden] { display: none !important; }

.labd-profile__rx {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.labd-profile__rx-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 22px;
    padding: 3px 8px 3px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    color: var(--labd-fg-muted);
    box-sizing: border-box;
    /* emoji иначе «вылезают» из пилюли из‑за метрик шрифта */
    overflow: hidden;
}

.labd-profile__rx-chip .labd-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    overflow: hidden;
    line-height: 0;
}

.labd-profile__rx-chip .labd-icon--emoji {
    display: block;
    font-size: 12px;
    line-height: 1;
    width: 1em;
    height: 1em;
    text-align: center;
    /* оптический центр Apple/Android emoji внутри бокса */
    transform: translateY(0.5px);
}

.labd-profile__rx-chip > span:last-child {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.labd-profile__rx-chip--muted {
    opacity: 0.45;
}

/* --- Vibe strip (received reactions) --- */

.labd-vibe {
    position: relative;
    margin: 0 0 22px;
    padding: 16px;
    border-radius: 20px;
    background:
        radial-gradient(110% 140% at 100% -20%, rgba(91, 140, 255, 0.08), transparent 55%),
        var(--labd-surface-card);
    border: 1px solid var(--labd-border-strong);
    box-shadow: var(--labd-card-shadow);
}

.labd-vibe__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.labd-vibe__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.labd-vibe__count {
    margin: 0;
    font-size: 12px;
    color: var(--labd-fg-muted);
    text-align: right;
}

.labd-vibe__strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.labd-vibe__token {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

/* Размытые цветные «блобы» на фоне — эхо цвета иконки, а не сплошная заливка */
.labd-vibe__token::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -8px;
    width: 72px;
    height: 56px;
    transform: translateX(-50%);
    border-radius: 50%;
    filter: blur(14px);
    opacity: 0.8;
    pointer-events: none;
    z-index: 0;
}

.labd-vibe__token[data-labd-vibe-token="fire"]::before {
    background: radial-gradient(closest-side, rgba(255, 90, 45, 0.55), transparent 75%);
}

.labd-vibe__token[data-labd-vibe-token="ok"]::before {
    background: radial-gradient(closest-side, rgba(240, 194, 94, 0.4), transparent 75%);
}

.labd-vibe__token[data-labd-vibe-token="raw"]::before {
    background: radial-gradient(closest-side, rgba(124, 246, 10, 0.32), transparent 75%);
}

.labd-vibe__token > * {
    position: relative;
    z-index: 1;
}

.labd-vibe__icon {
    display: flex;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
}

.labd-vibe__token[data-labd-vibe-token="fire"] .labd-vibe__icon {
    background: radial-gradient(circle at 35% 30%, rgba(255, 107, 53, 0.28), rgba(255, 107, 53, 0.06));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.labd-vibe__token[data-labd-vibe-token="ok"] .labd-vibe__icon {
    background: radial-gradient(circle at 35% 30%, rgba(124, 246, 10, 0.24), rgba(124, 246, 10, 0.05));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.labd-vibe__token[data-labd-vibe-token="raw"] .labd-vibe__icon {
    background: radial-gradient(circle at 35% 30%, rgba(122, 138, 154, 0.28), rgba(122, 138, 154, 0.06));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.labd-vibe__icon .labd-icon--emoji {
    font-size: 20px;
    line-height: 1;
}

.labd-vibe__num {
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.labd-vibe__label {
    font-size: 11px;
    color: var(--labd-fg-muted);
}

.labd-vibe__bar {
    display: flex;
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.labd-vibe__bar-seg {
    display: block;
    height: 100%;
    min-width: 0;
    transition: flex-grow 0.25s ease;
}

.labd-vibe__bar-seg--fire { background: #ff6b45; }
.labd-vibe__bar-seg--ok { background: var(--labd-accent); }
.labd-vibe__bar-seg--raw { background: #7a8a9a; }

.labd-vibe__empty {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--labd-fg-muted);
    text-align: center;
}

.labd-vibe__empty[hidden] { display: none !important; }

/* --- Feedback inbox (второй по значимости уровень) --- */

.labd-inbox {
    margin: 28px 0 8px;
}

.labd-inbox__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.labd-inbox__head-main {
    flex: 1;
    min-width: 0;
}

.labd-inbox__hint {
    margin: 4px 0 0;
    font-size: 11px;
    color: var(--labd-fg-muted);
    line-height: 1.35;
}

.labd-inbox__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

/* --- Track chips (фильтр по треку, BeatStars-style) --- */
.labd-inbox__chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 14px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.labd-inbox__chips::-webkit-scrollbar { display: none; }

.labd-inbox__chips[hidden] { display: none !important; }

.labd-inbox__chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px 5px 5px;
    border-radius: 999px;
    border: 1px solid var(--labd-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--labd-fg-muted);
    font-family: var(--labd-font);
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.labd-inbox__chip--active {
    border-color: rgba(124, 246, 10, 0.45);
    background: linear-gradient(160deg, rgba(124, 246, 10, 0.16), rgba(124, 246, 10, 0.04));
    color: var(--labd-fg);
}

.labd-inbox__chip-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #1a1c24;
}

.labd-inbox__chip-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.labd-inbox__chip-thumb--fallback {
    font-size: 12px;
    color: var(--labd-fg-subtle);
}

.labd-inbox__chip-label {
    max-width: 96px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    min-width: 0;
}

.labd-inbox__chip-count {
    font-size: 11px;
    font-weight: 700;
    opacity: 0.7;
    font-variant-numeric: tabular-nums;
}

.labd-inbox__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.labd-inbox__card {
    position: relative;
    padding: 14px 14px 14px 18px;
    border-radius: 18px;
    background: var(--labd-surface-card);
    border: 1px solid var(--labd-border-strong);
    box-shadow: var(--labd-card-shadow);
    overflow: hidden;
    cursor: pointer;
}

.labd-inbox__card:focus-visible {
    outline: 2px solid var(--labd-accent, #6ee7a1);
    outline-offset: 2px;
}

.labd-inbox__card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--labd-fg-muted);
}

.labd-inbox__card--fire::before { background: linear-gradient(180deg, #ff8a5c, #ff5a3c); }
.labd-inbox__card--ok::before { background: linear-gradient(180deg, var(--labd-accent-strong), var(--labd-accent-deep)); }
.labd-inbox__card--raw::before { background: linear-gradient(180deg, #97a7b6, #6b7c8c); }

.labd-inbox__card-head {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    font-family: var(--labd-font);
    cursor: pointer;
    text-align: left;
}

.labd-inbox__card-head--staff {
    align-items: flex-start;
}

.labd-inbox__card-head--staff .labd-inbox__time,
.labd-inbox__card-head--staff .labd-inbox__chevron {
    margin-top: 10px;
}

.labd-inbox__chevron {
    flex-shrink: 0;
    display: flex;
    color: var(--labd-fg-subtle);
    transition: transform 0.2s ease;
}

.labd-inbox__chevron svg {
    width: 16px;
    height: 16px;
    display: block;
}

.labd-inbox__card--expanded .labd-inbox__chevron {
    transform: rotate(180deg);
    color: var(--labd-fg);
}

.labd-inbox__snippet {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.78);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.labd-inbox__card--expanded .labd-inbox__snippet { display: none; }

.labd-inbox__card-details {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.22s ease, opacity 0.18s ease, margin-top 0.22s ease;
}

.labd-inbox__card-details-inner { min-height: 0; overflow: hidden; }

.labd-inbox__card--expanded .labd-inbox__card-details {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 12px;
}

.labd-inbox__card-details-inner > .labd-inbox__quote:first-child { margin-top: 0; }

.labd-inbox__token-icon {
    display: flex;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

.labd-inbox__card--fire .labd-inbox__token-icon {
    background: radial-gradient(circle at 35% 30%, rgba(255, 107, 53, 0.28), rgba(255, 107, 53, 0.06));
}

.labd-inbox__card--ok .labd-inbox__token-icon {
    background: radial-gradient(circle at 35% 30%, rgba(124, 246, 10, 0.22), rgba(124, 246, 10, 0.05));
}

.labd-inbox__card--raw .labd-inbox__token-icon {
    background: radial-gradient(circle at 35% 30%, rgba(122, 138, 154, 0.28), rgba(122, 138, 154, 0.06));
}

.labd-inbox__token-icon .labd-icon--emoji {
    font-size: 16px;
    line-height: 1;
}

.labd-inbox__track-name {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

.labd-inbox__track-name--staff {
    flex: none;
    width: 100%;
    margin-top: 1px;
    font-size: 12px;
    font-weight: 550;
    color: var(--labd-fg-muted);
}

.labd-inbox__time {
    font-size: 11px;
    color: var(--labd-fg-muted);
    flex-shrink: 0;
}

.labd-inbox__quote {
    margin: 0 0 10px;
}

.labd-inbox__quote:last-child { margin-bottom: 0; }

.labd-inbox__quote-label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--labd-fg-muted);
}

.labd-inbox__quote-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
}

.labd-inbox__empty,
.labd-inbox__error {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--labd-fg-muted);
    text-align: center;
}

.labd-inbox__error { color: #ff8a7a; }

.labd-inbox__empty[hidden],
.labd-inbox__error[hidden],
.labd-inbox__more[hidden] { display: none !important; }

.labd-inbox__report {
    margin-top: 12px;
    padding: 8px 0 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: transparent;
    color: var(--labd-fg-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.labd-inbox__rate {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.labd-inbox__rate-btn {
    flex: 1;
    border: 1px solid var(--labd-border-strong);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
    color: var(--labd-fg);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.labd-inbox__rate-btn--helpful {
    border-color: rgba(124, 246, 10, 0.42);
}

.labd-inbox__rate-btn--not {
    border-color: rgba(255, 90, 60, 0.38);
}

.labd-inbox__rated {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--labd-fg-muted);
}

.labd-inbox__card--blind::before {
    background: rgba(255, 255, 255, 0.22);
}

.labd-inbox__token-icon--pending {
    opacity: 0.45;
    font-size: 18px;
    line-height: 1;
}

.labd-review__play {
    margin: 0 0 8px;
    font-size: 13px;
    color: #f0c25e;
}

.labd-profile__lab-score {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--labd-fg-muted);
}

.labd-inbox__pending-note {
    margin: 12px 0 14px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(240, 194, 94, 0.22);
    background: rgba(240, 194, 94, 0.08);
    font-size: 13px;
    line-height: 1.45;
    color: var(--labd-fg-muted);
}

.labd-inbox__pending-note[hidden] { display: none !important; }

.labd-profile__given-pager {
    margin-top: 14px;
}

.labd-inbox__pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 16px;
    padding: 4px 0 2px;
}

.labd-inbox__pager[hidden] { display: none !important; }

.labd-inbox__pager-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 96px;
}

.labd-inbox__page-info {
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.labd-inbox__pager-count {
    margin: 0;
    font-size: 11px;
    color: var(--labd-fg-subtle);
    font-variant-numeric: tabular-nums;
}

.labd-inbox__page-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--labd-border-strong);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    color: var(--labd-fg);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.labd-inbox__page-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

.labd-inbox__page-btn:active:not(:disabled) {
    transform: scale(0.94);
}

.labd-inbox__list--loading {
    opacity: 0.55;
    pointer-events: none;
}

.labd-inbox__page-btn:hover:not(:disabled) {
    border-color: rgba(61, 220, 132, 0.45);
    background: linear-gradient(160deg, rgba(61, 220, 132, 0.12), rgba(255, 255, 255, 0.03));
}

.labd-inbox__page-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.labd-inbox__more {
    display: none;
}

/* --- Review session CTA --- */

.labd-review-session-cta {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 18px 0;
    padding: 14px 16px;
    border-radius: 20px;
    border: 1px solid rgba(124, 246, 10, 0.4);
    background:
        radial-gradient(120% 160% at 0% -20%, rgba(124, 246, 10, 0.16), transparent 60%),
        linear-gradient(135deg, rgba(124, 246, 10, 0.1) 0%, rgba(124, 246, 10, 0.02) 100%),
        var(--labd-surface-card);
    box-shadow: var(--labd-card-shadow), 0 0 30px -18px rgba(124, 246, 10, 0.4);
    color: var(--labd-fg);
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    overflow: visible;
}

.labd-review-session-cta[hidden] { display: none !important; }

.labd-review-session-cta__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: radial-gradient(circle at 32% 28%, rgba(124, 246, 10, 0.28), rgba(124, 246, 10, 0.06));
    border: 1px solid rgba(124, 246, 10, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    color: var(--labd-accent);
}

.labd-review-session-cta__icon svg {
    display: block;
    width: 22px;
    height: 22px;
}

.labd-review-session-cta__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.labd-review-session-cta__title {
    font-size: 15px;
    font-weight: 700;
}

.labd-review-session-cta__sub {
    font-size: 12px;
    color: var(--labd-fg-muted);
}

.labd-review-session-cta__arrow {
    font-size: 22px;
    opacity: 0.7;
}

/* --- Review session view --- */

.labd-rsession {
    min-height: 100%;
    padding: calc(16px + var(--labd-header-offset)) 16px calc(24px + var(--labd-safe-bottom));
}

.labd-rsession__intro,
.labd-rsession__done {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: min(72dvh, 560px);
    text-align: center;
    padding: 24px 8px;
}

.labd-rsession__intro[hidden],
.labd-rsession__active[hidden],
.labd-rsession__done[hidden],
.labd-rsession__reveal[hidden] { display: none !important; }

.labd-rsession__intro-icon,
.labd-rsession__done-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 12px;
    border-radius: 22px;
    background: radial-gradient(circle at 32% 28%, rgba(124, 246, 10, 0.22), rgba(124, 246, 10, 0.04));
    border: 1px solid rgba(124, 246, 10, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 16px 36px -18px rgba(0, 0, 0, 0.6);
    color: var(--labd-accent);
}

.labd-rsession__intro-icon svg {
    display: block;
    width: 36px;
    height: 36px;
}

.labd-rsession__done-icon {
    font-size: 48px;
    line-height: 1.15;
    width: auto;
    height: auto;
    border: none;
    background: transparent;
    box-shadow: none;
}

.labd-rsession__title {
    margin: 0 0 8px;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.labd-rsession__lead {
    margin: 0 0 24px;
    font-size: 15px;
    color: var(--labd-fg-muted);
    max-width: 280px;
}

.labd-rsession__start {
    width: min(100%, 280px);
    margin-bottom: 12px;
}

.labd-rsession__later {
    border: 0;
    background: transparent;
    color: var(--labd-fg-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
}

.labd-rsession__progress-wrap { margin-bottom: 14px; }

/* Прогресс — «LED»-сегменты; при большом total заливка пропорциональна */
.labd-rsession__progress-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}

.labd-rsession__dot {
    flex: 1 1 0;
    width: auto;
    min-width: 4px;
    max-width: 22px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease, box-shadow 0.3s ease, flex-grow 0.3s ease, max-width 0.3s ease;
}

.labd-rsession__dot--done {
    background: linear-gradient(90deg, var(--labd-accent-deep), var(--labd-accent-strong));
    box-shadow: 0 0 8px rgba(124, 246, 10, 0.55);
}

.labd-rsession__dot--current {
    flex-grow: 1.6;
    max-width: 32px;
    background: linear-gradient(90deg, var(--labd-accent), var(--labd-accent-strong));
    box-shadow: 0 0 12px rgba(124, 246, 10, 0.6);
}

.labd-rsession__progress-label {
    margin: 0;
    font-size: 13px;
    color: var(--labd-fg-muted);
    text-align: center;
}

.labd-rsession__deck {
    position: relative;
    min-height: 360px;
    padding-top: 10px;
    touch-action: pan-y;
}

/* Тень стопки карточек за текущей — читаемая глубина колоды, как в Tinder */
.labd-rsession__card-ghost {
    position: absolute;
    inset: 10px 6px 0;
    border-radius: 24px;
    background: var(--labd-surface-sheet);
    border: 1px solid var(--labd-border);
    pointer-events: none;
    visibility: hidden;
}

.labd-rsession__card-ghost--1 {
    z-index: 0;
    transform: scale(0.96) translateY(10px);
    opacity: 0.7;
}

.labd-rsession__card-ghost--2 {
    z-index: -1;
    transform: scale(0.92) translateY(20px);
    opacity: 0.4;
}

.labd-rsession__stamp {
    position: absolute;
    top: 22px;
    z-index: 3;
    padding: 7px 16px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    pointer-events: none;
    opacity: 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: opacity 0.08s linear;
}

.labd-rsession__stamp--helpful {
    right: 18px;
    transform: rotate(10deg);
    background: rgba(124, 246, 10, 0.14);
    border: 2px solid var(--labd-accent);
    color: var(--labd-accent);
    box-shadow: 0 0 22px rgba(124, 246, 10, 0.35);
}

.labd-rsession__stamp--not {
    left: 18px;
    transform: rotate(-10deg);
    background: rgba(255, 90, 60, 0.14);
    border: 2px solid #ff5a3c;
    color: #ff8a7a;
    box-shadow: 0 0 22px rgba(255, 90, 60, 0.3);
}

.labd-rsession__card {
    position: relative;
    z-index: 1;
    min-height: 320px;
    max-height: 52dvh;
    padding: 20px 18px 16px;
    border-radius: 24px;
    border: 1px solid var(--labd-border-strong);
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(124, 246, 10, 0.1), transparent 55%),
        radial-gradient(120% 90% at 100% 100%, rgba(255, 158, 68, 0.09), transparent 55%),
        var(--labd-surface-sheet);
    box-shadow: var(--labd-card-shadow);
    transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.32s ease;
    will-change: transform;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.labd-rsession__card--dragging {
    transition: none;
}

.labd-rsession__card--enter {
    animation: labd-rsession-enter 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes labd-rsession-enter {
    from { transform: scale(0.96) translateY(8px); opacity: 0.4; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.labd-rsession__card--fly-right {
    transform: translateX(140%) rotate(18deg) !important;
    opacity: 0;
}

.labd-rsession__card--fly-left {
    transform: translateX(-140%) rotate(-18deg) !important;
    opacity: 0;
}

.labd-rsession__track {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--labd-accent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    min-width: 0;
    max-width: 100%;
}

.labd-rsession__body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 2px;
}

.labd-rsession__quote {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.labd-rsession__quote:last-child { margin-bottom: 0; }

.labd-rsession__quote-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.labd-rsession__quote-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    flex-shrink: 0;
}

.labd-rsession__quote-icon svg { width: 14px; height: 14px; display: block; }

.labd-rsession__quote--liked .labd-rsession__quote-icon {
    background: radial-gradient(circle at 32% 28%, rgba(124, 246, 10, 0.28), rgba(124, 246, 10, 0.06));
    border: 1px solid rgba(124, 246, 10, 0.35);
    color: var(--labd-accent);
}

.labd-rsession__quote--improve .labd-rsession__quote-icon {
    background: radial-gradient(circle at 32% 28%, rgba(255, 158, 68, 0.28), rgba(255, 158, 68, 0.06));
    border: 1px solid rgba(255, 158, 68, 0.35);
    color: #ffb066;
}

.labd-rsession__quote-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--labd-fg-muted);
}

.labd-rsession__quote-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.labd-rsession__report {
    margin-top: 12px;
    padding: 8px 0 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: transparent;
    color: var(--labd-fg-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.labd-rsession__fallback {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    margin-top: 22px;
}

.labd-rsession__fb-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: var(--labd-fg-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.labd-rsession__fb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid var(--labd-border-strong);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 14px 28px -16px rgba(0, 0, 0, 0.6);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.labd-rsession__fb-icon svg { width: 24px; height: 24px; display: block; }

.labd-rsession__fb-btn:active .labd-rsession__fb-icon {
    transform: scale(0.92);
}

.labd-rsession__fb-btn--helpful .labd-rsession__fb-icon {
    color: var(--labd-accent);
    border-color: rgba(124, 246, 10, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 24px rgba(124, 246, 10, 0.22);
}

.labd-rsession__fb-btn--not .labd-rsession__fb-icon {
    color: #ff8a7a;
    border-color: rgba(255, 90, 60, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 24px rgba(255, 90, 60, 0.18);
}

/* Подсказка «можно свайпать» прямо под колодой — гаснет после первого жеста */
.labd-rsession__swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px 0 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--labd-fg-muted);
    opacity: 1;
    transition: opacity 0.5s ease;
}

.labd-rsession__swipe-hint--gone {
    opacity: 0;
    pointer-events: none;
}

.labd-rsession__swipe-hint-chevron {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    animation: labd-rsession-hint-nudge 1.6s ease-in-out infinite;
}

.labd-rsession__swipe-hint-chevron--left {
    color: #ff8a7a;
    animation-name: labd-rsession-hint-nudge-left;
}

.labd-rsession__swipe-hint-chevron--right {
    color: var(--labd-accent);
    animation-name: labd-rsession-hint-nudge-right;
}

@keyframes labd-rsession-hint-nudge-left {
    0%, 100% { transform: translateX(0); opacity: 0.55; }
    50% { transform: translateX(-5px); opacity: 1; }
}

@keyframes labd-rsession-hint-nudge-right {
    0%, 100% { transform: translateX(0); opacity: 0.55; }
    50% { transform: translateX(5px); opacity: 1; }
}

/* --- Обучалка перед первым свайпом: анимированный жест + подсветка направлений --- */
.labd-rsession__coach {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(120% 80% at 50% 38%, rgba(20, 24, 34, 0.72), rgba(5, 6, 9, 0.88));
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    animation: labd-rsession-hint-in 0.3s ease both;
}

.labd-rsession__coach[hidden] { display: none !important; }

.labd-rsession__coach-inner {
    width: min(100%, 320px);
    text-align: center;
}

.labd-rsession__coach-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.labd-rsession__coach-lead {
    margin: 0 0 22px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--labd-fg-muted);
}

.labd-rsession__coach-stage {
    position: relative;
    height: 168px;
    margin-bottom: 22px;
}

.labd-rsession__coach-glow {
    position: absolute;
    top: 50%;
    width: 50%;
    height: 100%;
    transform: translateY(-50%);
    opacity: 0;
    filter: blur(20px);
    border-radius: 32px;
}

.labd-rsession__coach-glow--left {
    left: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 90, 60, 0.5), transparent 70%);
    animation: labd-rsession-coach-glow-left 4.4s ease-in-out infinite;
}

.labd-rsession__coach-glow--right {
    right: 0;
    background: radial-gradient(circle at 70% 50%, rgba(124, 246, 10, 0.5), transparent 70%);
    animation: labd-rsession-coach-glow-right 4.4s ease-in-out infinite;
}

.labd-rsession__coach-card {
    position: relative;
    width: 132px;
    height: 168px;
    margin: 0 auto;
    padding: 20px 16px;
    border-radius: 22px;
    background: var(--labd-surface-sheet);
    border: 1.5px dashed rgba(255, 255, 255, 0.28);
    box-shadow: var(--labd-card-shadow);
    animation: labd-rsession-coach-card 4.4s ease-in-out infinite;
}

.labd-rsession__coach-line {
    display: block;
    height: 7px;
    margin-bottom: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.labd-rsession__coach-line--short { width: 60%; }

.labd-rsession__coach-hand {
    position: absolute;
    left: 50%;
    top: 50%;
    font-size: 34px;
    line-height: 1;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
    animation: labd-rsession-coach-hand 4.4s ease-in-out infinite;
}

/* Таймлайн жеста (0-4.4s): пауза в центре -> свайп вправо (полезно) -> назад в центр -> свайп влево (мимо) -> назад */
@keyframes labd-rsession-coach-hand {
    0%, 8%   { transform: translate(-50%, -50%) rotate(0deg); }
    32%, 42% { transform: translate(calc(-50% + 58px), -50%) rotate(14deg); }
    50%, 58% { transform: translate(-50%, -50%) rotate(0deg); }
    82%, 92% { transform: translate(calc(-50% - 58px), -50%) rotate(-14deg); }
    100%     { transform: translate(-50%, -50%) rotate(0deg); }
}

@keyframes labd-rsession-coach-card {
    0%, 8%   { transform: translateX(0) rotate(0deg); border-color: rgba(255, 255, 255, 0.28); }
    32%, 42% { transform: translateX(30px) rotate(8deg); border-color: rgba(124, 246, 10, 0.7); }
    50%, 58% { transform: translateX(0) rotate(0deg); border-color: rgba(255, 255, 255, 0.28); }
    82%, 92% { transform: translateX(-30px) rotate(-8deg); border-color: rgba(255, 90, 60, 0.65); }
    100%     { transform: translateX(0) rotate(0deg); border-color: rgba(255, 255, 255, 0.28); }
}

@keyframes labd-rsession-coach-glow-right {
    0%, 25%  { opacity: 0; }
    35%, 42% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes labd-rsession-coach-glow-left {
    0%, 75%   { opacity: 0; }
    85%, 92%  { opacity: 1; }
    100%      { opacity: 0; }
}

.labd-rsession__coach-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.labd-rsession__coach-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.labd-rsession__coach-row-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 9px;
    flex-shrink: 0;
}

.labd-rsession__coach-row-icon svg { width: 14px; height: 14px; display: block; }

.labd-rsession__coach-row--not {
    color: #ff8a7a;
    animation: labd-rsession-coach-legend-left 4.4s ease-in-out infinite;
}
.labd-rsession__coach-row--not .labd-rsession__coach-row-icon {
    background: radial-gradient(circle at 32% 28%, rgba(255, 90, 60, 0.28), rgba(255, 90, 60, 0.06));
    border: 1px solid rgba(255, 90, 60, 0.35);
}

.labd-rsession__coach-row--helpful {
    color: var(--labd-accent);
    animation: labd-rsession-coach-legend-right 4.4s ease-in-out infinite;
}
.labd-rsession__coach-row--helpful .labd-rsession__coach-row-icon {
    background: radial-gradient(circle at 32% 28%, rgba(124, 246, 10, 0.28), rgba(124, 246, 10, 0.06));
    border: 1px solid rgba(124, 246, 10, 0.35);
}

@keyframes labd-rsession-coach-legend-right {
    0%, 25%   { opacity: 0.45; transform: scale(1); }
    35%, 42%  { opacity: 1; transform: scale(1.04); }
    50%, 100% { opacity: 0.45; transform: scale(1); }
}

@keyframes labd-rsession-coach-legend-left {
    0%, 75%   { opacity: 0.45; transform: scale(1); }
    85%, 92%  { opacity: 1; transform: scale(1.04); }
    100%      { opacity: 0.45; transform: scale(1); }
}

.labd-rsession__coach-cta {
    width: 100%;
}

/* Реванш попапа: никакого контейнера-карточки — просто затемнение + blur и контент прямо на нём */
.labd-rsession__reveal {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(120% 80% at 50% 42%, rgba(20, 24, 34, 0.7), rgba(5, 6, 9, 0.82));
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    cursor: pointer;
}

.labd-rsession__reveal-card {
    width: min(100%, 300px);
    text-align: center;
    transform: scale(0.85) translateY(10px);
    opacity: 0;
    cursor: default;
}

.labd-rsession__reveal-card--pop {
    animation: labd-rsession-pop 0.42s cubic-bezier(0.2, 0.9, 0.25, 1.2) forwards;
}

@keyframes labd-rsession-pop {
    from { transform: scale(0.85) translateY(10px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.labd-rsession__reveal-eyebrow {
    margin: 0 0 14px;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--labd-fg-muted);
}

.labd-rsession__reveal-token {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.labd-rsession__reveal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 28px;
    font-size: 40px;
    line-height: 1;
    background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 46px currentColor;
}

.labd-rsession__reveal-icon .labd-icon--emoji {
    font-size: 40px;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4));
}

.labd-rsession__reveal-label {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-shadow: 0 0 24px currentColor;
}

.labd-rsession__reveal-token--fire .labd-rsession__reveal-label,
.labd-rsession__reveal-token--fire .labd-rsession__reveal-icon { color: #ff6b45; }
.labd-rsession__reveal-token--ok .labd-rsession__reveal-label,
.labd-rsession__reveal-token--ok .labd-rsession__reveal-icon { color: var(--labd-accent); }
.labd-rsession__reveal-token--raw .labd-rsession__reveal-label,
.labd-rsession__reveal-token--raw .labd-rsession__reveal-icon { color: #9aa8b8; }

.labd-rsession__reveal-delta {
    margin: 0 0 22px;
    font-size: 15px;
    font-weight: 600;
    color: var(--labd-fg);
}

.labd-rsession__reveal-hint {
    margin: 0;
    font-size: 12px;
    color: var(--labd-fg-faint, rgba(255, 255, 255, 0.34));
    animation: labd-rsession-hint-in 0.3s ease 0.5s both;
}

@keyframes labd-rsession-hint-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.labd-rsession__done-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
}

.labd-rsession__done-text {
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--labd-fg-muted);
    max-width: 280px;
}

.labd-rsession__error {
    margin: 12px 0 0;
    text-align: center;
    font-size: 13px;
    color: #ff8a7a;
}

.labd-rsession__error[hidden] { display: none !important; }

/* --- Dev auth (Chrome) --- */

.labd-dev-auth {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 6, 9, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.labd-dev-auth[hidden] { display: none !important; }

.labd-dev-auth__panel {
    width: min(100%, 420px);
    max-height: 90dvh;
    overflow-y: auto;
    padding: 20px 18px;
    border-radius: 22px;
    border: 1px solid var(--labd-border-strong);
    background: var(--labd-surface-card);
    box-shadow: var(--labd-card-shadow);
}

.labd-dev-auth__title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
}

.labd-dev-auth__lead {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--labd-fg-muted);
}

.labd-dev-auth__lead code,
.labd-dev-auth__steps code {
    font-size: 12px;
    color: var(--labd-accent-strong);
}

.labd-dev-auth__steps {
    margin: 0 0 12px;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--labd-fg-muted);
}

.labd-dev-auth__input {
    width: 100%;
    min-height: 110px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--labd-border);
    background: rgba(0, 0, 0, 0.25);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.35);
    color: var(--labd-fg);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    line-height: 1.4;
    resize: vertical;
}

.labd-dev-auth__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.labd-dev-auth__actions .labd-btn--primary {
    flex: 1 1 100%;
}

.labd-dev-auth__copy,
.labd-dev-auth__clear {
    flex: 1;
    min-height: 40px;
    border-radius: 14px;
    border: 1px solid var(--labd-border-strong);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
    color: var(--labd-fg);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.labd-dev-auth__copy[hidden] { display: none !important; }

/* --- Report sheet --- */
.labd-report {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}

body.labd--compose-on .labd-report {
    bottom: var(--labd-compose-space);
}

.labd-report[hidden] { display: none !important; }
.labd-report__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 6, 9, 0.65);
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: auto;
}
.labd-report__sheet {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    max-height: 88dvh;
    overflow: auto;
    padding: 20px 16px 20px;
    border-radius: 24px 24px 0 0;
    background: var(--labd-surface-sheet);
    border: 1px solid var(--labd-border-strong);
    box-shadow: var(--labd-sheet-shadow);
    transform: translateY(110%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: auto;
    will-change: transform;
}
.labd-report--open {
    pointer-events: auto;
}
.labd-report--open .labd-report__backdrop { opacity: 1; }
.labd-report--open .labd-report__sheet { transform: translateY(0); }
.labd-report__close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}
.labd-report__title { margin: 0 32px 6px 0; font-size: 20px; font-weight: 700; }
.labd-report__subtitle { margin: 0 0 14px; font-size: 13px; color: var(--labd-fg-muted); }
.labd-report__reasons {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}
.labd-report__reason {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
    background: transparent;
    color: var(--labd-fg);
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}
.labd-report__reason:last-child {
    border-bottom: 0;
}
.labd-report__reason:active {
    background: rgba(255, 255, 255, 0.05);
}
.labd-report__reason[hidden] {
    display: none !important;
}
.labd-report__reason-label {
    flex: 1;
    min-width: 0;
}
.labd-report__reason-check {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    box-sizing: border-box;
    position: relative;
}
.labd-report__reason--active {
    background: rgba(255, 255, 255, 0.04);
}
.labd-report__reason--active .labd-report__reason-check {
    border-color: var(--labd-accent);
    background: var(--labd-accent);
}
.labd-report__reason--active .labd-report__reason-check::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 9px;
    border: solid var(--labd-accent-ink);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.labd-report__field { display: block; margin-bottom: 14px; }
.labd-report__field-label { display: block; margin-bottom: 6px; font-size: 12px; color: var(--labd-fg-muted); }
.labd-report__textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--labd-border);
    background: rgba(0, 0, 0, 0.22);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.35);
    color: var(--labd-fg);
    font: inherit;
    resize: vertical;
}
.labd-report__submit { width: 100%; }
.labd-report__submit:disabled { opacity: 0.42; box-shadow: none; }
.labd-report__error { color: #ff8a7a; font-size: 13px; }
.labd-report__ok { color: var(--labd-accent); font-size: 13px; }
.labd-report__error[hidden],
.labd-report__ok[hidden] { display: none !important; }

/* --- Upload (14E-2) --- */

.labd-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.labd-upload {
    padding: calc(16px + var(--labd-header-offset)) 16px 40px;
    max-width: 480px;
    margin: 0 auto;
}

.labd-upload__hero {
    position: relative;
    margin: 0 -2px 22px;
    padding: 16px 16px 15px;
    border-radius: 22px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
        radial-gradient(120% 140% at 8% -30%, rgba(91, 140, 255, 0.28), transparent 55%),
        radial-gradient(90% 100% at 100% -20%, rgba(139, 124, 255, 0.16), transparent 55%),
        radial-gradient(70% 80% at 90% 120%, rgba(124, 246, 10, 0.07), transparent 60%),
        var(--labd-surface-card);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        var(--labd-card-shadow-quiet);
}

.labd-upload__hero::before {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    pointer-events: none;
}

.labd-upload__eyebrow {
    position: relative;
    z-index: 1;
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--labd-fg-subtle);
}

.labd-upload__title {
    position: relative;
    z-index: 1;
    margin: 0 0 6px;
    font-size: clamp(20px, 5.2vw, 24px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.labd-upload__cost {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--labd-fg-muted);
}

.labd-upload__field { display: block; margin-bottom: 0; }
.labd-upload__label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--labd-fg-muted);
}

.labd-upload__input,
.labd-upload__select,
.labd-upload__title-input {
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid var(--labd-border-strong);
    background: var(--labd-surface-card-quiet);
    box-shadow: var(--labd-card-shadow-quiet);
    color: var(--labd-fg);
    font-family: inherit;
    font-size: 14px;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.labd-upload__title-input {
    padding: 4px 0 10px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    text-align: center;
}

.labd-upload__title-input::placeholder {
    color: var(--labd-fg-subtle);
    font-weight: 600;
}

.labd-upload__input:focus,
.labd-upload__select:focus,
.labd-upload__title-input:focus {
    outline: none;
    border-color: rgba(91, 140, 255, 0.45);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 3px rgba(91, 140, 255, 0.14);
}

.labd-upload__title-input:focus {
    box-shadow: none;
    border-bottom-color: rgba(255, 255, 255, 0.36);
}

.labd-upload__select {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23e2e6ee' fill-opacity='0.7' d='M6 8 0 0h12z'/%3E%3C/svg%3E"),
        var(--labd-surface-card-quiet);
    background-repeat: no-repeat, no-repeat;
    background-position: right 14px center, 0 0;
    background-size: 12px 8px, auto;
    padding-right: 36px;
}

.labd-upload__file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.labd-upload__file-name {
    font-size: 13px;
    color: var(--labd-fg-muted);
    word-break: break-all;
}

.labd-upload__file-name--ok {
    color: #c9d5ff;
}

.labd-upload__hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--labd-fg-muted);
    text-align: center;
}

.labd-upload__hint:empty { display: none; }

.labd-upload__hint--error { color: #ff6b5c; }

.labd-upload__form {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.labd-upload__meta {
    margin: 0 0 18px;
    text-align: center;
}

.labd-upload__title-field {
    display: block;
    margin: 0 auto;
    max-width: 320px;
}

.labd-upload__artist {
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--labd-fg-muted);
    letter-spacing: -0.01em;
}

.labd-upload__audio {
    position: relative;
    margin: 0 0 18px;
}

.labd-upload__audio-pick {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 132px;
    padding: 22px 18px;
    overflow: hidden;
    border: 1px solid var(--labd-border-strong);
    border-radius: 20px;
    background:
        radial-gradient(120% 120% at 12% -20%, rgba(91, 140, 255, 0.22), transparent 55%),
        radial-gradient(90% 90% at 100% 0%, rgba(139, 124, 255, 0.12), transparent 50%),
        var(--labd-surface-card);
    color: var(--labd-fg);
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        var(--labd-card-shadow-quiet);
    transition: border-color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}

.labd-upload__audio-pick::before {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    pointer-events: none;
}

.labd-upload__audio-pick[hidden] { display: none !important; }

.labd-upload__audio-pick:active {
    transform: scale(0.99);
    border-color: rgba(91, 140, 255, 0.4);
}

.labd-upload__audio-pick-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background:
        radial-gradient(circle at 30% 25%, rgba(91, 140, 255, 0.35), transparent 60%),
        rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #c9d5ff;
    font-size: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.labd-upload__audio-pick-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.labd-upload__audio-pick-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.labd-upload__audio-pick-sub {
    font-size: 12px;
    font-weight: 500;
    color: var(--labd-fg-muted);
}

.labd-upload__audio-card {
    position: relative;
    padding: 14px 14px 12px;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--labd-border-strong);
    background:
        radial-gradient(110% 100% at 0% 0%, rgba(91, 140, 255, 0.14), transparent 50%),
        var(--labd-surface-card);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        var(--labd-card-shadow-quiet);
}

.labd-upload__audio-card[hidden] { display: none !important; }

.labd-upload__wave {
    display: block;
    width: 100%;
    height: 64px;
    border-radius: 12px;
    cursor: pointer;
    touch-action: manipulation;
}

.labd-upload__audio-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.labd-play {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.labd-play:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.14);
}

.labd-play__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.labd-play__icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.labd-play__icon--play {
    transform: translateX(1px);
}

.labd-play__icon--pause {
    display: none;
}

.labd-play.is-playing .labd-play__icon--play {
    display: none;
}

.labd-play.is-playing .labd-play__icon--pause {
    display: flex;
}

.labd-upload__play {
    width: 42px;
    height: 42px;
}

.labd-upload__time {
    flex: 1;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
}

.labd-upload__time-sep {
    margin: 0 4px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
}

.labd-upload__audio-change {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    color: var(--labd-fg-muted);
    font-family: inherit;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.labd-upload__preview-audio {
    display: none;
}

.labd-upload__details {
    position: relative;
    margin: 0 0 8px;
    padding: 16px 14px 14px;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--labd-border-strong);
    background:
        radial-gradient(100% 90% at 100% 0%, rgba(139, 124, 255, 0.1), transparent 55%),
        var(--labd-surface-card-quiet);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        var(--labd-card-shadow-quiet);
}

.labd-upload__details::before {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    pointer-events: none;
}

.labd-upload__details-title {
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--labd-fg-subtle);
}

.labd-upload__audio-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(91, 140, 255, 0.1);
    border: 1px solid rgba(91, 140, 255, 0.22);
    color: var(--labd-fg);
    font-size: 12px;
    font-weight: 600;
}

.labd-upload__audio-status[hidden] { display: none !important; }

.labd-upload__audio-spinner,
.labd-upload__overlay-spinner {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-top-color: var(--labd-blue);
    border-radius: 50%;
    animation: labd-spin 0.75s linear infinite;
}

.labd-upload__overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    border-radius: 20px;
    background: rgba(9, 9, 11, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--labd-fg);
    text-align: center;
}

.labd-upload__overlay[hidden] { display: none !important; }

.labd-upload__overlay-spinner {
    width: 32px;
    height: 32px;
    border-width: 3px;
}

.labd-upload__overlay-text {
    font-size: 14px;
    font-weight: 600;
}

.labd-upload__form.is-uploading {
    pointer-events: none;
}

.labd-upload__cover {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.labd-upload__cover-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(260px, 100%);
    aspect-ratio: 1;
    margin: 0;
    padding: 0;
    border: 1px solid var(--labd-border-strong);
    border-radius: 22px;
    overflow: hidden;
    background:
        radial-gradient(120% 110% at 18% -10%, rgba(91, 140, 255, 0.26), transparent 55%),
        radial-gradient(90% 90% at 100% 10%, rgba(139, 124, 255, 0.14), transparent 50%),
        radial-gradient(70% 70% at 50% 110%, rgba(124, 246, 10, 0.06), transparent 60%),
        var(--labd-surface-card);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 22px 40px -24px rgba(0, 0, 0, 0.85);
    color: var(--labd-fg-muted);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}

.labd-upload__cover-art::before {
    content: '';
    position: absolute;
    left: 18px;
    right: 18px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    pointer-events: none;
}

.labd-upload__cover-art:active {
    transform: scale(0.985);
}

.labd-upload__cover-art.is-filled {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 24px 44px -20px rgba(0, 0, 0, 0.95);
}

.labd-upload__cover-art-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    pointer-events: none;
}

.labd-upload__cover-art.is-filled .labd-upload__cover-art-empty {
    display: none;
}

.labd-upload__cover-art-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
        radial-gradient(circle at 30% 25%, rgba(91, 140, 255, 0.28), transparent 60%),
        rgba(255, 255, 255, 0.06);
    color: #e8edf8;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.labd-upload__cover-art-caption {
    font-size: 13px;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: var(--labd-fg-muted);
}

.labd-upload__cover-art-plus {
    display: none;
}

.labd-upload__cover-art-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.labd-upload__cover-art-img[hidden] {
    display: none !important;
}

.labd-upload__cover-edit {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    color: var(--labd-fg-muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.labd-upload__cover-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: center;
    margin-top: 12px;
}

.labd-upload__cover-edit:active {
    color: var(--labd-fg);
}

.labd-upload__cover-edit[hidden] {
    display: none !important;
}

.labd-upload__cover-name {
    display: none !important;
}

.labd-upload__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    padding: 14px 20px;
    margin-top: 14px;
    border: 1px solid var(--labd-border-strong);
    border-radius: 999px;
    background:
        radial-gradient(120% 140% at 8% -40%, rgba(91, 140, 255, 0.32), transparent 55%),
        radial-gradient(90% 100% at 100% -20%, rgba(139, 124, 255, 0.18), transparent 55%),
        var(--labd-surface-card);
    color: var(--labd-fg);
    font-family: var(--labd-font);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        var(--labd-card-shadow-quiet);
    -webkit-appearance: none;
    appearance: none;
}

.labd-upload__submit-label {
    text-align: center;
}

.labd-upload__submit-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    transform: translateY(-50%);
    color: #c9d5ff;
    pointer-events: none;
}

.labd-upload__submit-icon svg {
    width: 17px;
    height: 17px;
    display: block;
}

.labd-upload__submit:active:not(:disabled) {
    transform: scale(0.98);
    border-color: rgba(91, 140, 255, 0.4);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 6px 16px -10px rgba(0, 0, 0, 0.55);
}

.labd-upload__submit:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    box-shadow: none;
}

.labd-upload__fail {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    margin: 10px 0 0;
}

.labd-upload__fail[hidden] { display: none !important; }

.labd-upload__error {
    margin: 0;
    flex: 1 1 12rem;
    font-size: 13px;
    line-height: 1.45;
    white-space: pre-line;
    color: #ff6b5c;
}

.labd-upload__error[hidden] { display: none !important; }

.labd-upload__why {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #ff8f84;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.labd-upload__why[hidden] { display: none !important; }

.labd-upload__why:active {
    opacity: 0.75;
}

/* --- Gate wall (14E-4) --- */

.labd-gate {
    padding: calc(48px + var(--labd-header-offset)) 24px 32px;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.labd-gate__icon { font-size: 40px; margin-bottom: 12px; }
.labd-gate__title { margin: 0 0 12px; font-size: 20px; font-weight: 700; }
.labd-gate__text { margin: 0 0 20px; font-size: 14px; color: var(--labd-fg-muted); line-height: 1.45; }

.labd-gate__checklist {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.labd-gate__item {
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--labd-surface-card-quiet);
    border: 1px solid var(--labd-border);
    box-shadow: var(--labd-card-shadow-quiet);
    font-size: 13px;
    line-height: 1.4;
}

.labd-gate__item--ok {
    border-color: rgba(91, 140, 255, 0.4);
    color: #c9d5ff;
}

.labd-gate__cta {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--labd-border-strong);
    border-radius: 999px;
    background:
        radial-gradient(120% 140% at 8% -40%, rgba(91, 140, 255, 0.32), transparent 55%),
        radial-gradient(90% 100% at 100% -20%, rgba(139, 124, 255, 0.18), transparent 55%),
        var(--labd-surface-card);
    color: var(--labd-fg);
    font-family: var(--labd-font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        var(--labd-card-shadow-quiet);
    -webkit-appearance: none;
    appearance: none;
}

/* --- Cover crop (14E-3) --- */

.labd-crop {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.labd-crop[hidden] { display: none !important; }

.labd-crop__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 6, 9, 0.7);
}

.labd-crop__sheet {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    padding: 20px 16px calc(20px + var(--labd-safe-bottom));
    border-radius: 24px 24px 0 0;
    background: var(--labd-surface-sheet);
    border-top: 1px solid var(--labd-border-strong);
    box-shadow: var(--labd-sheet-shadow);
}

.labd-crop__title { margin: 0 0 14px; font-size: 18px; font-weight: 700; }

.labd-crop__viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 14px;
    background: #000;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    touch-action: none;
    cursor: grab;
}

.labd-crop__viewport:active { cursor: grabbing; }

.labd-crop__image {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: none;
    transform-origin: center center;
    user-select: none;
    -webkit-user-drag: none;
    margin-left: 0;
    margin-top: 0;
    transform: translate(-50%, -50%);
}

.labd-crop__zoom {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
    font-size: 13px;
    color: var(--labd-fg-muted);
}

.labd-crop__zoom input { flex: 1; accent-color: var(--labd-blue); }

.labd-crop__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.labd-crop__actions .labd-crop__btn--primary {
    grid-column: 1 / -1;
}

.labd-crop__btn {
    padding: 12px;
    border-radius: 999px;
    font-family: var(--labd-font);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    -webkit-appearance: none;
    appearance: none;
}

.labd-crop__btn--ghost {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    color: var(--labd-fg);
    border-color: var(--labd-border-strong);
}

.labd-crop__btn--primary {
    background:
        radial-gradient(120% 140% at 8% -40%, rgba(91, 140, 255, 0.32), transparent 55%),
        radial-gradient(90% 100% at 100% -20%, rgba(139, 124, 255, 0.18), transparent 55%),
        var(--labd-surface-card);
    color: var(--labd-fg);
    border-color: var(--labd-border-strong);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        var(--labd-card-shadow-quiet);
}

/* --- Audio trim (Stories-style) --- */

.labd-atrim {
    --atrim-accent: #5b8cff;
    --atrim-accent-soft: rgba(91, 140, 255, 0.14);
    --atrim-accent-border: rgba(91, 140, 255, 0.42);
    --atrim-handle: #6b93ff;
    position: fixed;
    inset: 0;
    z-index: 112;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.labd-atrim[hidden] { display: none !important; }

.labd-atrim__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 6, 9, 0.78);
}

.labd-atrim__sheet {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    padding: 20px 16px calc(20px + var(--labd-safe-bottom));
    border-radius: 24px 24px 0 0;
    background: var(--labd-surface-sheet);
    border-top: 1px solid var(--labd-border-strong);
    box-shadow: var(--labd-sheet-shadow);
}

.labd-atrim__title { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.labd-atrim__lead {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--labd-fg-muted);
}

.labd-atrim__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--labd-fg-muted);
}

.labd-atrim__len {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--atrim-accent-soft);
    border: 1px solid var(--atrim-accent-border);
    color: var(--atrim-accent);
    font-weight: 700;
}

.labd-atrim__timeline {
    position: relative;
    height: 72px;
    border-radius: 14px;
    overflow: hidden;
    background: #0a0b0f;
    border: 1px solid var(--labd-border-strong);
    touch-action: none;
    user-select: none;
    cursor: pointer;
}

.labd-atrim__wave {
    display: block;
    width: 100%;
    height: 100%;
}

.labd-atrim__shade {
    position: absolute;
    top: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    pointer-events: none;
    z-index: 1;
}

.labd-atrim__shade--left { left: 0; }
.labd-atrim__shade--right { right: 0; }

.labd-atrim__window {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    border: 2px solid var(--atrim-accent);
    border-radius: 10px;
    box-shadow: 0 0 0 1px rgba(91, 140, 255, 0.18);
    cursor: grab;
    box-sizing: border-box;
}

.labd-atrim__window:active { cursor: grabbing; }

.labd-atrim__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 18px;
    background: var(--atrim-handle);
    z-index: 3;
}

.labd-atrim__handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 22px;
    margin: -11px 0 0 -1.5px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.45);
}

.labd-atrim__handle--left {
    left: 0;
    border-radius: 8px 0 0 8px;
    cursor: ew-resize;
}

.labd-atrim__handle--right {
    right: 0;
    border-radius: 0 8px 8px 0;
    cursor: ew-resize;
}

.labd-atrim__playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    margin-left: -1px;
    background: #fff;
    z-index: 4;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.45);
}

.labd-atrim__playhead[hidden] { display: none !important; }

.labd-atrim__range-row {
    display: flex;
    justify-content: space-between;
    margin: 8px 0 12px;
    font-size: 12px;
    color: var(--labd-fg-muted);
    font-variant-numeric: tabular-nums;
}

.labd-atrim__presets {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.labd-atrim__preset {
    flex: 1;
    padding: 10px 8px;
    border-radius: 999px;
    border: 1px solid var(--labd-border-strong);
    background: rgba(255, 255, 255, 0.04);
    color: var(--labd-fg);
    font-family: var(--labd-font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.labd-atrim__preset.is-active {
    border-color: var(--atrim-accent-border);
    background: var(--atrim-accent-soft);
    color: var(--atrim-accent);
}

.labd-atrim__preview.labd-play {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: auto;
    min-width: 0;
    height: 44px;
    margin: 0 0 12px;
    padding: 0 16px 0 12px;
    border-radius: 999px;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.07);
}

.labd-atrim__preview .labd-play__icon {
    width: 18px;
    height: 18px;
}

.labd-atrim__preview-label {
    font-size: 14px;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: #fff;
}

.labd-atrim__status {
    margin: 0 0 10px;
    font-size: 12px;
    color: var(--labd-fg-muted);
}

.labd-atrim__status[hidden] { display: none !important; }
.labd-atrim__status.is-error { color: #ff6b5c; }

.labd-atrim__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.labd-atrim__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 999px;
    font-family: var(--labd-font);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
}

.labd-atrim__btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.labd-atrim__btn-spinner {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.22);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: labd-spin 0.75s linear infinite;
}

.labd-atrim__btn-spinner[hidden] {
    display: none !important;
}

.labd-atrim__btn--ghost {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    color: var(--labd-fg);
    border-color: var(--labd-border-strong);
}

.labd-atrim__btn--primary {
    background:
        radial-gradient(120% 140% at 8% -40%, rgba(91, 140, 255, 0.32), transparent 55%),
        radial-gradient(90% 100% at 100% -20%, rgba(139, 124, 255, 0.18), transparent 55%),
        var(--labd-surface-card);
    color: var(--labd-fg);
    border-color: var(--labd-border-strong);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        var(--labd-card-shadow-quiet);
}

.labd-atrim__btn--primary:disabled {
    opacity: 1;
}

.labd-atrim__busy {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 28px 20px;
    border-radius: inherit;
    background: rgba(1, 1, 1, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-align: center;
}

.labd-atrim__busy[hidden] {
    display: none !important;
}

.labd-atrim__busy-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.14);
    border-top-color: var(--atrim-accent);
    border-radius: 50%;
    animation: labd-spin 0.75s linear infinite;
}

.labd-atrim__busy-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--labd-fg);
}

.labd-atrim__busy-sub {
    font-size: 13px;
    color: var(--labd-fg-muted);
}

/* --- Public artist profile (14F-1) --- */

.labd-artist {
    padding-top: calc(16px + var(--labd-header-offset));
    padding-right: max(18px, env(safe-area-inset-right, 0px));
    padding-bottom: 32px;
    padding-left: max(18px, env(safe-area-inset-left, 0px));
    max-width: 480px;
    margin: 0 auto;
    overflow-x: clip;
}

body.labd--compose-on .labd-artist {
    padding-bottom: calc(28px + var(--labd-compose-h));
}

.labd-artist__hero {
    --labd-hero-t: 0;
    --labd-hero-aspect: 3 / 4;
    --labd-hero-expanded-h: auto;
    --labd-hero-collapsed-h: 92px;
    --labd-hero-circle: 72px;
    --labd-hero-rank: var(--labd-status-novice);
    position: relative;
    margin: 0 0 22px;
    width: 100%;
    height: auto;
    aspect-ratio: var(--labd-hero-aspect);
    min-height: 0;
    border: none;
    border-radius: 0;
    overflow-x: clip;
    overflow-y: visible;
    isolation: isolate;
    background: transparent;
    box-shadow: none;
    transition: width 0.42s cubic-bezier(0.22, 1, 0.36, 1), margin 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.labd-artist__hero-frame {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border-radius: 28px;
    overflow: hidden;
    isolation: isolate;
    border: 3px solid var(--labd-hero-rank);
    background: #12141c;
    box-shadow:
        0 14px 32px -20px rgba(0, 0, 0, 0.85),
        0 0 18px -8px color-mix(in srgb, var(--labd-hero-rank) 45%, transparent);
    transform: translateZ(0);
    transform-origin: top left;
    will-change: transform;
    backface-visibility: hidden;
}

.labd-artist__hero[data-labd-hero-rank="larp"] { --labd-hero-rank: #8a8f98; }
.labd-artist__hero[data-labd-hero-rank="novice"] { --labd-hero-rank: var(--labd-status-novice); }
.labd-artist__hero[data-labd-hero-rank="advanced"] { --labd-hero-rank: var(--labd-status-advanced); }
.labd-artist__hero[data-labd-hero-rank="producer"] { --labd-hero-rank: var(--labd-status-producer); }
.labd-artist__hero[data-labd-hero-rank="sound_master"] { --labd-hero-rank: var(--labd-status-sound_master); }
.labd-artist__hero[data-labd-hero-rank="freshman"] { --labd-hero-rank: var(--labd-status-freshman); }
.labd-artist__hero[data-labd-hero-rank="next_up"] { --labd-hero-rank: var(--labd-status-next_up); }
.labd-artist__hero[data-labd-hero-rank="legend"] { --labd-hero-rank: var(--labd-status-legend); }
.labd-artist__hero[data-labd-hero-rank="headliner"] { --labd-hero-rank: var(--labd-status-headliner); }
.labd-artist__hero[data-labd-hero-rank="promising"] { --labd-hero-rank: var(--labd-rank-promising); }
.labd-artist__hero[data-labd-hero-rank="lab_artist"] { --labd-hero-rank: var(--labd-rank-lab-artist); }
.labd-artist__hero[data-labd-hero-rank="studio_choice"] { --labd-hero-rank: var(--labd-rank-studio-choice); }

/* GOAT: та же переливающаяся обводка, что у пилюли .labd-score-status--gigachad */
.labd-artist__hero[data-labd-hero-rank="gigachad"] {
    --labd-hero-rank: var(--labd-status-gigachad);
}

.labd-artist__hero[data-labd-hero-rank="gigachad"] .labd-artist__hero-frame {
    border-color: transparent;
    background-image:
        linear-gradient(#12141c, #12141c),
        linear-gradient(
            90deg,
            #5a2fa8,
            #c9b6ff,
            #ffffff,
            #9b6cff,
            #5a2fa8
        );
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    background-size: auto, 200% 100%;
    animation: labd-goat-sheen 3.2s linear infinite;
    box-shadow:
        0 14px 32px -20px rgba(0, 0, 0, 0.85),
        0 0 16px -6px rgba(155, 108, 255, 0.4);
}

.labd-artist__hero.is-collapsing .labd-artist__hero-frame {
    box-shadow: none;
}

.labd-artist__hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.labd-artist__hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 36%;
    display: block;
    transform: scale(1.12) translateY(-8%);
    transform-origin: center center;
}

.labd-artist__hero-photo[hidden] { display: none !important; }

.labd-artist__hero-fallback {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 30% 25%, rgba(91, 140, 255, 0.45), transparent 60%),
        radial-gradient(ellipse 55% 50% at 80% 70%, rgba(178, 108, 240, 0.35), transparent 55%),
        linear-gradient(160deg, #1a2030, #0c0e14);
}

.labd-artist__hero-frost-blur {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 34%;
    z-index: 1;
    overflow: hidden;
    opacity: 1;
    pointer-events: none;
    /* стекло как на референсе: blur фото снизу + мягкое перо сверху */
    -webkit-backdrop-filter: blur(28px) saturate(1.45);
    backdrop-filter: blur(28px) saturate(1.45);
    -webkit-mask-image: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.55) 28%,
        #000 52%,
        #000 100%
    );
    mask-image: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.55) 28%,
        #000 52%,
        #000 100%
    );
    transition: opacity 0.12s linear;
}

.labd-artist__hero.is-collapsing .labd-artist__hero-frost-blur,
.labd-artist__hero.is-collapsing .labd-artist__hero-frost-scrim {
    opacity: 0;
    visibility: hidden;
}

.labd-artist__hero-frost-photo {
    position: absolute;
    left: -18%;
    right: -18%;
    bottom: -8%;
    width: 136%;
    height: 220%;
    max-width: none;
    object-fit: cover;
    object-position: center 36%;
    transform: scale(1.12) translateY(-6%);
    transform-origin: center center;
    filter: blur(36px) saturate(1.5) brightness(1.05);
    pointer-events: none;
}

.labd-artist__hero-frost-photo[hidden] { display: none !important; }

.labd-artist__hero-frost-scrim {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 34%;
    z-index: 2;
    pointer-events: none;
    opacity: 1;
    -webkit-mask-image: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.55) 28%,
        #000 52%,
        #000 100%
    );
    mask-image: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.55) 28%,
        #000 52%,
        #000 100%
    );
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(18, 20, 26, 0.18) 38%,
            rgba(8, 10, 14, 0.42) 100%
        );
    transition: opacity 0.12s linear;
}

.labd-artist__hero-meta {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
    pointer-events: none;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.labd-artist__hero.is-collapsing .labd-artist__hero-meta {
    gap: 4px;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.35);
}

.labd-artist__hero-copy,
.labd-artist__hero-bar,
.labd-artist__hero-meta .labd-artist__name,
.labd-artist__hero-meta .labd-rank,
.labd-artist__hero-meta .labd-score-status,
.labd-artist__hero-meta .labd-artist__follow,
.labd-artist__hero-meta .labd-artist__listens {
    pointer-events: auto;
}

.labd-artist__hero-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.labd-artist__eyebrow {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.labd-artist__name {
    margin: 0;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(22px, 6vw, 28px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
    color: #fff;
    overflow-wrap: anywhere;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.labd-artist__listens {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.labd-artist__listens[hidden] { display: none !important; }

.labd-artist__hero-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.labd-artist__hero-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 96px);
}

.labd-artist__hero-stats .labd-score-status,
.labd-artist__hero-stats .labd-rank {
    margin-top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    max-width: 100%;
    min-width: 0;
    padding: 0 12px;
    box-sizing: border-box;
    overflow: visible;
    line-height: 1;
}

.labd-artist__hero-stats .labd-score-status__ink {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1;
}

.labd-artist__hero-stats .labd-score-status--gigachad .labd-score-status__ink {
    overflow: visible;
    text-overflow: unset;
}

.labd-artist__stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 10px;
    box-sizing: border-box;
    border-radius: 999px;
    background: rgba(0, 0, 0, calc(0.28 * (1 - var(--labd-hero-t))));
    border: 1px solid rgba(255, 255, 255, calc(0.14 * (1 - var(--labd-hero-t))));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    flex: 0 0 auto;
}

.labd-artist__stat-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    opacity: 0.9;
}

.labd-artist__hero .labd-rank,
.labd-artist__hero .labd-score-status {
    box-shadow: 0 4px 14px -8px rgba(0, 0, 0, 0.55);
}

.labd-artist__hero .labd-score-status--gigachad {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 16px -6px rgba(155, 108, 255, 0.4);
}

.labd-artist__follow {
    flex: 0 0 auto;
    margin: 0;
    height: 34px;
    padding: 0 16px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    border: none;
    border-radius: 999px;
    background: #fff;
    color: #12141a;
    font-family: var(--labd-font);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.01em;
    cursor: pointer;
    opacity: calc(1 - var(--labd-hero-t));
    transform: scale(calc(1 - 0.08 * var(--labd-hero-t)));
    transform-origin: right center;
    box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.55);
    -webkit-tap-highlight-color: transparent;
}

.labd-artist__hero.is-collapsed .labd-artist__follow {
    pointer-events: none;
    visibility: hidden;
}

.labd-artist__follow:active {
    transform: scale(0.96);
}

.labd-artist__follow[hidden] { display: none !important; }

.labd-artist__follow.is-following {
    background: rgba(0, 0, 0, 0.38);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: none;
}

.labd-artist__follow:disabled {
    opacity: 0.65;
    cursor: default;
}

.labd-artist__hero .labd-staff-label,
.labd-profile__hero .labd-staff-label {
    color: rgba(255, 255, 255, 0.82);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.labd-artist__tracks-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
}

.labd-artist__tracks {
    list-style: none;
    margin: 0;
    padding: 0 2px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.labd-artist__track {
    --labd-track-rgb: 48, 52, 64;
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 16px;
    overflow: hidden;
    background:
        linear-gradient(
            90deg,
            rgba(var(--labd-track-rgb), 0.82) 0%,
            rgba(var(--labd-track-rgb), 0.48) 34%,
            rgba(var(--labd-track-rgb), 0.18) 62%,
            rgba(12, 14, 20, 0.94) 86%,
            rgba(10, 12, 16, 0.98) 100%
        );
    border: none;
    box-shadow: 0 10px 28px -18px rgba(0, 0, 0, 0.75);
    cursor: pointer;
    transition: filter 0.2s ease, box-shadow 0.2s ease;
}

.labd-artist__track--tinted {
    background:
        linear-gradient(
            90deg,
            rgba(var(--labd-track-rgb), 0.88) 0%,
            rgba(var(--labd-track-rgb), 0.52) 32%,
            rgba(var(--labd-track-rgb), 0.2) 60%,
            rgba(12, 14, 20, 0.95) 84%,
            rgba(8, 10, 14, 0.98) 100%
        );
}

.labd-artist__track-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding-right: 4px;
}

.labd-artist__track-rate {
    margin: 0;
    padding: 7px 12px;
    border-radius: 999px;
    border: none;
    background: #fff;
    color: #12141a;
    font-family: var(--labd-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.45);
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.labd-artist__track-rate:active:not(:disabled) {
    transform: scale(0.96);
    background: #f2f2f4;
}

.labd-artist__track-rate--done,
.labd-artist__track-rate:disabled {
    opacity: 0.72;
    cursor: default;
    background: rgba(255, 255, 255, 0.72);
    color: rgba(18, 20, 26, 0.7);
    box-shadow: none;
}

.labd-artist__track--playing {
    filter: brightness(1.04) saturate(1.05);
    box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.8);
}

.labd-artist__track-cover {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.35);
    box-shadow:
        0 6px 14px -8px rgba(0, 0, 0, 0.65),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.labd-artist__track-info {
    min-width: 0;
    overflow: hidden;
}

.labd-artist__track-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    min-width: 0;
    max-width: 100%;
}

.labd-artist__track-meta {
    margin: 4px 0 0;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    min-width: 0;
    max-width: 100%;
}

.labd-artist__track-play {
    width: 36px;
    height: 36px;
    border: none;
    background: #fff;
    color: #12141a;
    box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.45);
}

.labd-artist__track-play:active {
    transform: scale(0.94);
    background: #f2f2f4;
    color: #12141a;
}

.labd-artist__track-play .labd-play__icon {
    width: 15px;
    height: 15px;
}

.labd-artist__track--playing .labd-artist__track-play {
    border: none;
    background: #fff;
    color: #12141a;
}

.labd-artist__empty {
    margin: 0;
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: var(--labd-fg-muted);
}

.labd-artist__empty[hidden] { display: none !important; }

.labd-artist--theater .labd-artist__hero {
    margin-bottom: 0;
}

.labd-artist__scene {
    display: flex;
    flex-direction: column;
}

.labd-artist__catalog {
    min-width: 0;
}

.labd-artist__listen {
    position: relative;
    z-index: 4;
    display: block;
    width: max-content;
    min-width: 148px;
    margin: -22px auto 22px;
    padding: 11px 28px;
    border: none;
    border-radius: 999px;
    background: var(--labd-cta-via);
    color: var(--labd-cta-ink);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.labd-artist__listen[hidden] { display: none !important; }

.labd-artist__listen:active {
    transform: scale(0.97);
}

body.labd--artist-listening .labd-artist__listen {
    display: none !important;
}

.labd-artist__hero.is-listening {
    width: min(86%, max(272px, calc(min(40dvh, 360px) * 0.78)));
    margin: 10px auto 0;
}

.labd-artist__hero.is-listening .labd-artist__hero-frame {
    z-index: 1;
    background: rgba(18, 20, 28, 0.12);
    box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.55);
}

.labd-artist__hero.is-listening[data-labd-hero-rank="gigachad"] .labd-artist__hero-frame {
    background-image:
        linear-gradient(rgba(18, 20, 28, 0.12), rgba(18, 20, 28, 0.12)),
        linear-gradient(
            90deg,
            #5a2fa8,
            #c9b6ff,
            #ffffff,
            #9b6cff,
            #5a2fa8
        );
}

.labd-artist__hero.is-listening .labd-artist__hero-photo {
    opacity: 0.78;
}

.labd-artist__hero.is-listening .labd-artist__hero-frost-blur {
    height: 52%;
    opacity: 1;
    -webkit-backdrop-filter: blur(26px) saturate(1.35);
    backdrop-filter: blur(26px) saturate(1.35);
}

.labd-artist__hero.is-listening .labd-artist__hero-frost-scrim {
    height: 52%;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(18, 20, 26, 0.1) 40%,
            rgba(8, 10, 14, 0.22) 100%
        );
}

.labd-artist__hero.is-listening .labd-artist__hero-meta {
    left: 12px;
    right: 12px;
    bottom: 12px;
    gap: 8px;
}

.labd-artist__hero.is-listening .labd-artist__name {
    font-size: clamp(18px, 5.2vw, 24px);
}

.labd-artist__hero.is-listening .labd-artist__hero-bar {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.labd-artist__hero.is-listening .labd-artist__hero-stats {
    flex-wrap: nowrap;
    max-width: none;
    flex: 1 1 100%;
    min-width: 0;
    gap: 6px;
}

.labd-artist__hero.is-listening .labd-artist__hero-stats .labd-score-status,
.labd-artist__hero.is-listening .labd-artist__hero-stats .labd-rank {
    flex: 0 0 auto;
    max-width: none;
    min-width: 0;
    overflow: visible;
    padding: 0 10px;
}

.labd-artist__hero.is-listening .labd-artist__hero-stats .labd-score-status__ink {
    overflow: visible;
    text-overflow: unset;
    white-space: nowrap;
}

.labd-artist__hero.is-listening .labd-artist__follow {
    flex: 0 0 auto;
    margin-left: auto;
}

@media (prefers-reduced-motion: reduce) {
    .labd-artist__hero {
        transition: none;
    }
}

body.labd--artist-listening .labd-view[data-labd-view="artist"] {
    z-index: 3;
    padding-bottom: var(--labd-artist-player-space);
    background: transparent;
}

body.labd--artist-listening .labd-artist__scene {
    min-height: calc(100dvh - var(--labd-header-offset) - 16px);
}

body.labd--artist-listening .labd-artist__catalog {
    padding-top: 4px;
    padding-bottom: 12px;
}

.labd-artist-light,
.labd-artist-light-orb {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 7;
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-width: none;
    max-height: none;
    border-radius: 0;
    overflow: hidden;
}

.labd-artist-light {
    display: block;
    mix-blend-mode: screen;
}

.labd-artist-light[hidden],
.labd-artist-light-orb[hidden] {
    display: none !important;
}

body:not(.labd--artist-listening) .labd-artist-light,
body:not(.labd--artist-listening) .labd-artist-light-orb,
body:not(.labd--artist-listening) .labd-artist-player {
    display: none !important;
}

.labd-artist-light-orb {
    transform: none;
    filter: none;
    opacity: 1;
    background: radial-gradient(ellipse 120% 70% at 50% 100%, rgba(90, 160, 255, 0.42) 0%, transparent 68%);
}

.labd-artist-player {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 18;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0 16px calc(10px + var(--labd-safe-bottom));
    pointer-events: none;
}

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

.labd-artist-player__bar {
    pointer-events: auto;
    position: relative;
    min-height: 56px;
    padding: 8px 12px;
    border-radius: 22px;
    background: rgba(14, 16, 22, 0.72);
    border: 1px solid var(--labd-border);
    backdrop-filter: blur(22px) saturate(1.2);
    -webkit-backdrop-filter: blur(22px) saturate(1.2);
    overflow: hidden;
}

.labd-artist-player__row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 40px 40px 40px minmax(0, 1fr);
    align-items: center;
    justify-items: center;
    gap: 8px;
    min-height: 40px;
}

.labd-artist-player__nav,
.labd-artist-player__cover-btn,
.labd-artist-player__rate,
.labd-artist-player__share {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    color: #fff;
    padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.labd-artist-player__nav {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.labd-artist-player__nav svg {
    width: 22px;
    height: 22px;
}

.labd-artist-player__cover-btn {
    width: 40px;
    height: 40px;
}

.labd-artist-player__cover-box {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: #161820;
}

.labd-artist-player__face {
    position: absolute;
    inset: 0;
}

.labd-artist-player__cover {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #161820;
}

.labd-artist-player__actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.labd-artist-player__share {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: none;
    color: #fff;
    flex-shrink: 0;
}

.labd-artist-player__share svg {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.labd-artist-player__share[hidden] { display: none !important; }

.labd-artist-player__rate {
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff;
    color: #12141a;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
}

.labd-artist-player__rate[hidden] { display: none !important; }

.labd-artist-player__rate:disabled,
.labd-artist-player__rate.labd-artist__track-rate--done {
    opacity: 0.72;
    cursor: default;
}

.labd-artist-player__seek {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 8;
    height: 16px;
    margin: 0;
    background: transparent;
    cursor: pointer;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.labd-artist-player__seek::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.28);
}

.labd-artist-player__seek-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 2px;
    width: 0%;
    background: #fff;
    pointer-events: none;
}

.labd-artist-player__seek:focus,
.labd-artist-player__seek:focus-visible {
    outline: none;
}

/* --- Onboarding overlay (multi-page, LAB Score) --- */

.labd-onboarding {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}

.labd-onboarding[hidden] { display: none !important; }

.labd-onboarding__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 6, 9, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: auto;
}

.labd-onboarding__sheet {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    max-height: min(92dvh, 760px);
    overflow: hidden;
    padding: 18px 18px calc(20px + var(--labd-safe-bottom));
    border-radius: 28px 28px 0 0;
    background:
        radial-gradient(120% 80% at 50% -10%, rgba(124, 246, 10, 0.16), transparent 55%),
        radial-gradient(90% 70% at 100% 0%, rgba(91, 140, 255, 0.14), transparent 50%),
        linear-gradient(180deg, #171b26 0%, #0e121a 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 -28px 60px -28px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(110%);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: auto;
    will-change: transform;
}

.labd-onboarding--open {
    pointer-events: auto;
}

.labd-onboarding--open .labd-onboarding__backdrop { opacity: 1; }
.labd-onboarding--open .labd-onboarding__sheet { transform: translateY(0); }

.labd-onboarding__skip {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    margin: 0;
    padding: 8px 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--labd-fg-muted);
    font-family: var(--labd-font);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.labd-onboarding__skip:active {
    color: var(--labd-fg);
    background: rgba(255, 255, 255, 0.1);
}

.labd-onboarding__viewport {
    position: relative;
    min-height: 360px;
    margin-top: 18px;
    touch-action: pan-y;
}

.labd-onboarding__page {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4px 4px 8px;
}

.labd-onboarding__page.is-active {
    display: flex;
}

.labd-onboarding__page.is-enter {
    animation: labd-onboarding-page-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes labd-onboarding-page-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.labd-onboarding__visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 168px;
    margin-bottom: 18px;
}

.labd-onboarding__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(28px);
    pointer-events: none;
}

.labd-onboarding__orb--a {
    width: 140px;
    height: 140px;
    background: rgba(124, 246, 10, 0.28);
    animation: labd-onboarding-orb 5s ease-in-out infinite;
}

.labd-onboarding__orb--b {
    width: 110px;
    height: 110px;
    right: 18%;
    top: 8%;
    background: rgba(91, 140, 255, 0.22);
    animation: labd-onboarding-orb 5s ease-in-out infinite reverse;
}

@keyframes labd-onboarding-orb {
    0%, 100% { transform: translate(-10%, 8%) scale(1); opacity: 0.7; }
    50% { transform: translate(8%, -6%) scale(1.12); opacity: 1; }
}

.labd-onboarding__logo {
    position: relative;
    z-index: 1;
    display: block;
    width: 96px;
    height: 96px;
    object-fit: contain;
    filter: drop-shadow(0 0 22px rgba(124, 246, 10, 0.35));
    animation: labd-onboarding-logo-pulse 2.8s ease-in-out infinite;
}

@keyframes labd-onboarding-logo-pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 18px rgba(124, 246, 10, 0.28)); }
    50% { transform: scale(1.04); filter: drop-shadow(0 0 28px rgba(124, 246, 10, 0.48)); }
}

.labd-onboarding__score-ring {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 148px;
    height: 148px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, rgba(124, 246, 10, 0.22), transparent 55%),
        rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(124, 246, 10, 0.35);
    box-shadow:
        0 0 0 8px rgba(124, 246, 10, 0.06),
        0 18px 40px -18px rgba(124, 246, 10, 0.45);
    animation: labd-onboarding-ring 3.2s ease-in-out infinite;
}

@keyframes labd-onboarding-ring {
    0%, 100% { box-shadow: 0 0 0 8px rgba(124, 246, 10, 0.05), 0 18px 40px -18px rgba(124, 246, 10, 0.35); }
    50% { box-shadow: 0 0 0 12px rgba(124, 246, 10, 0.1), 0 22px 48px -16px rgba(124, 246, 10, 0.55); }
}

.labd-onboarding__score-value {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: rgba(124, 246, 10, 0.85);
}

.labd-onboarding__score-num {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
    text-shadow: 0 0 24px rgba(124, 246, 10, 0.35);
}

.labd-onboarding__score-pill {
    margin-top: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(124, 246, 10, 0.35);
    background: rgba(124, 246, 10, 0.1);
    color: var(--labd-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.labd-onboarding__boost-rail {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 120px;
}

.labd-onboarding__boost-card {
    width: 64px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.labd-onboarding__boost-card--dim {
    height: 72px;
    opacity: 0.45;
}

.labd-onboarding__boost-card--hero {
    position: relative;
    width: 88px;
    height: 112px;
    background:
        linear-gradient(160deg, rgba(124, 246, 10, 0.28), rgba(91, 140, 255, 0.12) 55%, rgba(0, 0, 0, 0.35)),
        rgba(255, 255, 255, 0.06);
    border-color: rgba(124, 246, 10, 0.4);
    box-shadow: 0 18px 36px -16px rgba(124, 246, 10, 0.45);
    animation: labd-onboarding-hero-lift 2.6s ease-in-out infinite;
}

@keyframes labd-onboarding-hero-lift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.labd-onboarding__boost-badge {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(124, 246, 10, 0.35);
    color: var(--labd-accent);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.labd-onboarding__boost-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--labd-fg-muted);
    font-size: 11px;
    font-weight: 600;
}

.labd-onboarding__boost-arrow {
    color: var(--labd-accent);
    opacity: 0.85;
}

.labd-onboarding__rule-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 320px;
}

.labd-onboarding__chip {
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--labd-fg);
    font-size: 12px;
    font-weight: 600;
    animation: labd-onboarding-chip 2.8s ease-in-out infinite;
}

.labd-onboarding__chip:nth-child(2) { animation-delay: 0.12s; }
.labd-onboarding__chip:nth-child(3) { animation-delay: 0.24s; }
.labd-onboarding__chip:nth-child(4) { animation-delay: 0.36s; }

.labd-onboarding__chip--accent {
    border-color: rgba(124, 246, 10, 0.35);
    background: rgba(124, 246, 10, 0.1);
    color: var(--labd-accent);
}

@keyframes labd-onboarding-chip {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.labd-onboarding__heading {
    margin: 0 0 8px;
    max-width: 20em;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #fff;
}

.labd-onboarding__text {
    margin: 0;
    max-width: 28em;
    font-size: 14px;
    line-height: 1.45;
    color: var(--labd-fg-muted);
}

.labd-onboarding__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 18px 0 14px;
}

.labd-onboarding__dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    cursor: pointer;
    transition: width 0.22s ease, background 0.22s ease;
}

.labd-onboarding__dot.is-active {
    width: 22px;
    background: var(--labd-accent);
    box-shadow: 0 0 12px rgba(124, 246, 10, 0.45);
}

.labd-onboarding__actions {
    display: grid;
    gap: 10px;
}

.labd-onboarding__next,
.labd-onboarding__cta {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--labd-cta-border);
    border-radius: 999px;
    background: linear-gradient(90deg, var(--labd-cta-from) 0%, var(--labd-cta-via) 55%, var(--labd-cta-to) 100%);
    color: var(--labd-cta-ink);
    font-family: var(--labd-font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 10px 26px -10px rgba(124, 246, 10, 0.4);
}

.labd-onboarding__next[hidden],
.labd-onboarding__cta[hidden] {
    display: none !important;
}

.labd-onboarding__next:active,
.labd-onboarding__cta:active {
    transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
    .labd-onboarding__sheet,
    .labd-onboarding__backdrop,
    .labd-onboarding__page.is-enter,
    .labd-onboarding__logo,
    .labd-onboarding__orb,
    .labd-onboarding__feed-stack span,
    .labd-onboarding__score-ring,
    .labd-onboarding__boost-card--hero,
    .labd-onboarding__chip {
        animation: none !important;
        transition: none !important;
    }
}

/* ===== LAB Score Path ===== */
.labd-path {
    position: relative;
    min-height: 100%;
    padding: calc(8px + var(--labd-header-offset)) 18px 48px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(12px);
}

.labd-path--enter {
    animation: labd-path-enter 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes labd-path-enter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.labd-path__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.labd-path__grid {
    position: absolute;
    inset: -30%;
    background-image:
        linear-gradient(rgba(124, 246, 10, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse 80% 55% at 50% 35%, #000 10%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 35%, #000 10%, transparent 72%);
    transform: perspective(700px) rotateX(14deg) scale(1.05);
    opacity: 1;
    animation: labd-grid-drift 28s linear infinite;
}

@keyframes labd-grid-drift {
    from { background-position: 0 0, 0 0; }
    to { background-position: 32px 24px, 32px 24px; }
}

.labd-path__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(52px);
    opacity: 0.5;
    will-change: transform;
}

.labd-path__blob--a {
    width: 260px;
    height: 260px;
    top: -60px;
    left: -70px;
    background: rgba(124, 246, 10, 0.4);
    animation: labd-blob-a 16s ease-in-out infinite alternate;
}

.labd-path__blob--b {
    width: 210px;
    height: 210px;
    top: 22%;
    right: -70px;
    background: rgba(91, 140, 255, 0.32);
    animation: labd-blob-b 19s ease-in-out infinite alternate;
}

.labd-path__blob--c {
    width: 200px;
    height: 200px;
    bottom: 8%;
    left: 20%;
    background: rgba(178, 108, 240, 0.22);
    animation: labd-blob-c 22s ease-in-out infinite alternate;
}

@keyframes labd-blob-a {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(36px, 48px) scale(1.12); }
}

@keyframes labd-blob-b {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-40px, 28px) scale(1.08); }
}

@keyframes labd-blob-c {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(24px, -32px) scale(1.15); }
}

.labd-path__vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, transparent 30%, rgba(9, 9, 11, 0.55) 100%),
        linear-gradient(180deg, rgba(9, 9, 11, 0.15), rgba(9, 9, 11, 0.85));
}

.labd-path__hero,
.labd-path__track {
    position: relative;
    z-index: 1;
}

.labd-path__hero {
    text-align: center;
    padding: 12px 0 28px;
}

/* NotCoin-style рендер: без карточек/рамок/подсветки — просто парящая 3D-иконка */
.labd-path__glyph {
    width: 140px;
    height: 172px;
    margin: 0 auto 6px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.labd-path__glyph img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.6));
    animation: labd-glyph-float 3.6s ease-in-out infinite;
}

@keyframes labd-glyph-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@keyframes labd-node-float {
    0%, 100% { transform: scale(1.16) translateY(0); }
    50% { transform: scale(1.16) translateY(-6px); }
}

.labd-path__eyebrow {
    margin: 0 0 6px;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--labd-fg-muted);
}

.labd-path__title {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.labd-path__score {
    margin: 0 0 14px;
    font-size: 15px;
    color: var(--labd-accent);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.labd-path__progress {
    height: 6px;
    max-width: 220px;
    margin: 0 auto 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.labd-path__progress-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--labd-accent-deep), var(--labd-accent-strong));
    box-shadow: 0 0 8px rgba(124, 246, 10, 0.5);
    transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.labd-path__next {
    margin: 0 0 10px;
    font-size: 12px;
    color: var(--labd-fg-muted);
}

.labd-path__lead {
    margin: 0 auto;
    max-width: 280px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--labd-fg-muted);
}

.labd-path__league {
    position: relative;
    z-index: 1;
    margin: 8px -18px 0;
}

.labd-path__scroller {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 8px 18px 28px;
    scrollbar-width: none;
}

.labd-path__scroller::-webkit-scrollbar { display: none; }

.labd-path__track {
    list-style: none;
    margin: 0;
    padding: 32px 14px 8px;
    display: flex;
    align-items: flex-start;
    gap: 30px;
    min-width: max-content;
    position: relative;
}

/* горизонтальная линия через середину иконок.
   Старт после LARP (дно вне пути) — иначе линия просвечивает под маской. */
.labd-path__track::before {
    content: '';
    position: absolute;
    left: calc(14px + 104px + 15px);
    right: 54px;
    top: 84px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(124, 246, 10, 0.5) 0%,
        rgba(124, 246, 10, 0.3) 40%,
        rgba(255, 255, 255, 0.09) 70%,
        rgba(255, 255, 255, 0.06) 100%
    );
    z-index: 0;
}

.labd-path__node {
    position: relative;
    z-index: 1;
    width: 104px;
    flex: 0 0 104px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    scroll-snap-align: center;
}

/* NotCoin-style: иконка ранга парит без рамки/подложки/цветной подсветки */
.labd-path__node-frame {
    width: 100%;
    height: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.labd-path__node-icon {
    position: relative;
    z-index: 1;
    max-width: 80%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.55));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.labd-path__node-lock {
    position: absolute;
    right: 0;
    bottom: 4px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(9, 9, 11, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.68);
    z-index: 2;
}

.labd-path__node-lock svg {
    width: 13px;
    height: 13px;
}

.labd-path__node-name {
    margin: 10px 0 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.78);
}

.labd-path__node-meta {
    margin: 4px 0 0;
    font-size: 11px;
    color: var(--labd-fg-muted);
}

.labd-path__node-here {
    margin-top: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--labd-accent-ink);
    background: linear-gradient(180deg, var(--labd-accent-strong), var(--labd-accent));
}

.labd-path__node--current .labd-path__node-icon {
    transform: scale(1.16);
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.6));
    animation: labd-node-float 2.6s ease-in-out infinite;
}

.labd-path__node--current .labd-path__node-name {
    color: #fff;
}

.labd-path__node--locked {
    opacity: 0.7;
}

.labd-path__node--pit {
    opacity: 0.72;
}

.labd-path__node--pit .labd-path__node-icon {
    filter: brightness(0.78) contrast(1.05) drop-shadow(0 8px 14px rgba(0, 0, 0, 0.65));
}

/* LARP: иконка чуть меньше и оптически по центру (маска асимметричная) */
.labd-path__node--larp .labd-path__node-frame {
    isolation: isolate;
}

.labd-path__node--larp .labd-path__node-icon {
    max-width: 74%;
    max-height: 90%;
    transform: translate(0, 1px);
    filter: brightness(0.95) drop-shadow(0 10px 16px rgba(0, 0, 0, 0.7));
}

.labd-path__node--larp.labd-path__node--current .labd-path__node-icon {
    transform: translate(0, 1px) scale(1.12);
    filter: brightness(1.05) drop-shadow(0 12px 20px rgba(0, 0, 0, 0.65));
}

.labd-path__node--larp .labd-path__node-name,
.labd-path__node--larp .labd-path__node-meta {
    width: 100%;
    text-align: center;
}

.labd-path__node-pit {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(42px, -50%);
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(12, 12, 14, 0.94);
    border: 1px solid rgba(138, 143, 152, 0.35);
    color: #9aa0a8;
    font: 700 12px/1 system-ui, sans-serif;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.labd-path__node--larp.labd-path__node--current .labd-path__node-here {
    background: #8a8f98;
    color: #101014;
}

.labd-path__node--locked .labd-path__node-icon {
    filter: grayscale(0.85) brightness(0.55) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
}

.labd-path__node--advanced.labd-path__node--current .labd-path__node-here {
    background: var(--labd-status-advanced);
    color: #041022;
}

.labd-path__node--sound_master.labd-path__node--current .labd-path__node-here {
    background: var(--labd-status-sound_master);
    color: #2a1c00;
}

.labd-path__node--freshman.labd-path__node--current .labd-path__node-here {
    background: var(--labd-status-freshman);
    color: #042f2e;
}

.labd-path__node--next_up.labd-path__node--current .labd-path__node-here {
    background: var(--labd-status-next_up);
    color: #2a1200;
}

.labd-path__node--headliner.labd-path__node--current .labd-path__node-here {
    background: var(--labd-status-headliner);
    color: #2a1c00;
}

.labd-path__node--legend.labd-path__node--current .labd-path__node-here {
    background: var(--labd-status-legend);
    color: #2a0418;
}

.labd-path__node--secret .labd-path__node-name {
    letter-spacing: 0.12em;
    opacity: 0.55;
}

.labd-path__node--secret .labd-path__node-meta {
    min-height: 1em;
}

/* --- Public track reviews sheet (TikTok-style) --- */

.labd-comments {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}

body.labd--compose-on .labd-comments {
    bottom: var(--labd-compose-space);
}

.labd-comments[hidden] { display: none !important; }

.labd-comments__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: auto;
}

.labd-comments__sheet {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    max-height: min(72vh, 640px);
    display: flex;
    flex-direction: column;
    border-radius: 22px 22px 0 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 40%),
        linear-gradient(180deg, #151922, #0d1018);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    box-shadow: 0 -18px 40px -18px rgba(0, 0, 0, 0.65);
    transform: translateY(110%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: auto;
}

.labd-comments--open {
    pointer-events: auto;
}

.labd-comments--open .labd-comments__backdrop { opacity: 1; }
.labd-comments--open .labd-comments__sheet { transform: translateY(0); }

.labd-comments__handle {
    width: 42px;
    height: 4px;
    margin: 10px auto 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}

.labd-comments__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 16px 12px;
}

.labd-comments__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.labd-comments__close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--labd-border-strong);
    background: rgba(255, 255, 255, 0.05);
    color: var(--labd-fg);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.labd-comments__list {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.labd-comments__card {
    padding: 12px 4px 14px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
    background: transparent;
}

.labd-comments__card:last-child {
    border-bottom: 0;
}

.labd-comments__row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.labd-comments__avatar {
    flex: 0 0 auto;
    align-self: flex-start;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.labd-comments__avatar .labd-icon-wrap {
    width: auto;
    height: auto;
}

.labd-comments__avatar .labd-icon--emoji {
    font-size: 20px;
}

.labd-comments__avatar--fire {
    background: rgba(255, 120, 60, 0.16);
    border-color: rgba(255, 140, 80, 0.35);
}

.labd-comments__avatar--ok {
    background: rgba(90, 160, 255, 0.16);
    border-color: rgba(110, 170, 255, 0.35);
}

.labd-comments__avatar--raw {
    background: rgba(160, 220, 90, 0.14);
    border-color: rgba(160, 220, 90, 0.32);
}

.labd-comments__avatar--pending {
    color: var(--labd-fg-subtle);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.labd-comments__main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.labd-comments__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.2;
}

.labd-comments__name {
    font-size: 13px;
    font-weight: 700;
    color: var(--labd-fg);
    letter-spacing: -0.01em;
}

.labd-comments__card--fire .labd-comments__name { color: #ffb08a; }
.labd-comments__card--ok .labd-comments__name { color: #9ec4ff; }
.labd-comments__card--raw .labd-comments__name { color: #c8ef8a; }

.labd-comments__sep,
.labd-comments__time {
    font-size: 12px;
    color: var(--labd-fg-subtle);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.labd-comments__block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

.labd-comments__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 22px;
    max-width: 100%;
    padding: 6px 10px 3px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
}

.labd-comments__block--liked .labd-comments__chip {
    color: #b7f06a;
    background: rgba(124, 246, 10, 0.12);
    border: 1px solid rgba(124, 246, 10, 0.22);
}

.labd-comments__block--improve .labd-comments__chip {
    color: #ffc27a;
    background: rgba(255, 160, 60, 0.12);
    border: 1px solid rgba(255, 160, 60, 0.22);
}

.labd-comments__text {
    margin: 0;
    padding-top: 1px;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(243, 245, 248, 0.92);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.labd-comments__like-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    margin-top: 10px;
}

.labd-comments__like {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: rgba(243, 245, 248, 0.55);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.labd-comments__like-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.labd-comments__like--on {
    color: #ff4d6d;
}

.labd-comments__like--on .labd-comments__like-icon {
    fill: currentColor;
    stroke: currentColor;
}

.labd-comments__like--disabled {
    opacity: 0.35;
    cursor: default;
}

.labd-comments__like-count {
    font-size: 11px;
    font-weight: 700;
    color: rgba(243, 245, 248, 0.72);
    min-width: 1ch;
}

.labd-comments__empty,
.labd-comments__error {
    margin: 0;
    padding: 8px 16px 16px;
    font-size: 13px;
    color: var(--labd-fg-muted);
    text-align: center;
}

.labd-comments__error { color: #ff8f8f; }

.labd-comments__more {
    margin: 0 16px 8px;
    padding: 11px 14px;
    border-radius: 14px;
    border: 1px solid var(--labd-border-strong);
    background: rgba(255, 255, 255, 0.04);
    color: var(--labd-fg);
    font-family: var(--labd-font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.labd-comments__more[hidden] { display: none !important; }

.labd-comments__footer {
    flex: 0 0 auto;
    padding: 8px 12px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(10, 12, 18, 0.92);
}

.labd-comments__footer[hidden] {
    display: none !important;
}

/* TikTok-like comment input affordance */
.labd-comments__composer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(226, 230, 238, 0.42);
    font-family: var(--labd-font);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.labd-comments__composer:active {
    background: rgba(255, 255, 255, 0.11);
}

.labd-comments__composer-ph {
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.labd-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.82em;
    height: 0.82em;
    min-width: 13px;
    min-height: 13px;
    flex-shrink: 0;
    color: #c9b6ff;
    transform: none;
    position: relative;
    top: -0.02em;
}

.labd-verified svg {
    display: block;
    width: 100%;
    height: 100%;
}

.labd-verified-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
}

/* контейнеры paintVerifiedName — как в ленте */
.labd-feed__name,
.labd-profile__name,
.labd-artist__name,
.labd-inbox__staff-name,
.labd-comments__name {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    width: max-content;
    max-width: 100%;
    gap: 6px;
    min-width: 0;
    line-height: 1;
}

.labd-staff-label {
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #c9b6ff;
}

.labd-staff-label--inline {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.labd-staff-avatar {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid rgba(201, 182, 255, 0.7);
    box-shadow: 0 0 0 2px rgba(139, 92, 214, 0.22);
    background: rgba(18, 16, 28, 0.9);
}

.labd-staff-avatar img,
.labd-staff-avatar__fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.labd-staff-avatar--founder,
.labd-staff-avatar--dems_cofounder {
    border-color: rgba(232, 214, 255, 0.95);
    box-shadow: 0 0 0 2px rgba(155, 108, 255, 0.35), 0 0 14px -4px rgba(155, 108, 255, 0.55);
}

.labd-staff-avatar--sound_engineer {
    border-color: rgba(196, 255, 140, 0.95);
    box-shadow: 0 0 0 2px rgba(124, 246, 10, 0.35), 0 0 14px -4px rgba(124, 246, 10, 0.55);
}

.labd-staff-avatar--artist {
    border-color: rgba(255, 214, 140, 0.95);
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.35), 0 0 14px -4px rgba(251, 191, 36, 0.55);
}

.labd-comments__avatar--staff,
.labd-comments__name[data-labd-artist-id] {
    border: 0;
    padding: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-align: left;
}

.labd-comments__card--staff {
    padding-top: 14px;
}

.labd-comments__card--founder .labd-comments__name,
.labd-comments__card--dems_cofounder .labd-comments__name,
.labd-comments__card--sound_engineer .labd-comments__name,
.labd-comments__card--lab_team .labd-comments__name,
.labd-comments__card--artist .labd-comments__name {
    color: #f3ecff;
}

.labd-inbox__staff {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
    min-width: 0;
    margin-right: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.labd-inbox__staff-avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.labd-inbox__staff-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.labd-inbox__staff-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.labd-inbox__card--staff {
    border-color: rgba(201, 182, 255, 0.18);
}

.labd-inbox__card--founder,
.labd-inbox__card--dems_cofounder {
    box-shadow: inset 0 0 0 1px rgba(155, 108, 255, 0.18);
}

.labd-inbox__card--sound_engineer {
    box-shadow: inset 0 0 0 1px rgba(164, 255, 77, 0.14);
}

.labd-inbox__card--artist {
    box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.16);
}

.labd-feed__staff-flies {
    position: absolute;
    left: 12px;
    right: auto;
    bottom: calc(122px + var(--labd-safe-bottom));
    z-index: 6;
    width: 100px;
    height: 110px;
    pointer-events: none;
}

body.labd--compose-on .labd-feed__staff-flies {
    bottom: calc(122px + var(--labd-compose-space));
}

.labd-feed__founder-fly {
    position: absolute;
    left: var(--fly-x, 0px);
    bottom: var(--fly-y, 0px);
    width: var(--fly-size, 44px);
    height: var(--fly-size, 44px);
    z-index: calc(6 + var(--fly-i, 0));
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    pointer-events: auto;
    animation: labd-staff-drift var(--fly-dur, 3.2s) ease-in-out infinite;
    animation-delay: var(--fly-delay, 0s);
    -webkit-tap-highlight-color: transparent;
}

.labd-feed__founder-fly-avatar {
    width: 100%;
    height: 100%;
}

@keyframes labd-staff-drift {
    0%, 100% {
        transform: translate(0, 0) rotate(var(--fly-rot, 0deg));
    }
    40% {
        transform: translate(var(--fly-dx, 3px), calc(var(--fly-dy, -6px) * 0.7)) rotate(var(--fly-rot, 0deg));
    }
    70% {
        transform: translate(calc(var(--fly-dx, 3px) * -0.55), var(--fly-dy, -6px)) rotate(var(--fly-rot, 0deg));
    }
}

.labd-founder-sheet {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.labd-founder-sheet[hidden] { display: none !important; }

.labd-founder-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.labd-founder-sheet__card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    padding: 18px 16px calc(20px + var(--labd-safe-bottom));
    border-radius: 22px 22px 0 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 40%),
        linear-gradient(180deg, #17141f, #0d1018);
    border: 1px solid rgba(201, 182, 255, 0.16);
    border-bottom: none;
}

.labd-founder-sheet__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.labd-founder-sheet__identity {
    display: flex;
    align-items: center;
    gap: 12px;
    width: calc(100% - 40px);
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.labd-founder-sheet__avatar .labd-staff-avatar {
    width: 48px;
    height: 48px;
}

.labd-founder-sheet__who {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}

.labd-founder-sheet__name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 750;
}

.labd-founder-sheet__quote {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
}

.labd-founder-sheet__quote-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(201, 182, 255, 0.85);
}

.labd-founder-sheet__quote-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(243, 245, 248, 0.92);
    white-space: pre-wrap;
}

.labd-name-sheet {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.labd-name-sheet[hidden] { display: none !important; }

.labd-name-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.labd-name-sheet__card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    padding: 18px 16px calc(20px + var(--labd-safe-bottom));
    border-radius: 22px 22px 0 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 40%),
        linear-gradient(180deg, #17141f, #0d1018);
    border: 1px solid rgba(201, 182, 255, 0.16);
    border-bottom: none;
}

.labd-name-sheet__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.labd-name-sheet__title {
    margin: 0 40px 14px 0;
    font-size: 18px;
    font-weight: 750;
}

.labd-name-sheet__input {
    width: 100%;
    margin: 0 0 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 10, 16, 0.72);
    color: inherit;
    font-size: 16px;
}

.labd-name-sheet__save {
    width: 100%;
}

/* --- Avatar sheet / preview --- */

.labd-avatar-sheet {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.labd-avatar-sheet[hidden] { display: none !important; }

.labd-avatar-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.labd-avatar-sheet__card {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    margin: 0 12px calc(12px + var(--labd-safe-bottom));
    padding: 18px 16px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(28, 30, 38, 0.98), rgba(14, 16, 22, 0.98));
    box-shadow: var(--labd-sheet-shadow);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.labd-avatar-sheet__title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

.labd-avatar-sheet__action {
    margin: 0;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-family: var(--labd-font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.labd-avatar-sheet__action:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.1);
}

.labd-avatar-sheet__action--muted {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 500;
}

.labd-avatar-sheet__action--cancel {
    margin-top: 4px;
    border-color: transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}

.labd-avatar-preview {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.88);
}

.labd-avatar-preview[hidden] { display: none !important; }

.labd-avatar-preview__img {
    max-width: min(420px, 92vw);
    max-height: min(420px, 70vh);
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.8);
}

.labd-avatar-preview__close {
    position: absolute;
    top: calc(12px + var(--labd-safe-top, 0px));
    right: 14px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.labd-avatar-file {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* --- Разбор дня --- */

.labd-daily-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: -6px 0 16px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(124, 246, 10, 0.16);
    background:
        radial-gradient(80% 120% at 0% 50%, rgba(124, 246, 10, 0.1), transparent 58%),
        linear-gradient(180deg, rgba(18, 20, 22, 0.92), rgba(12, 14, 16, 0.9));
    color: inherit;
    font-family: var(--labd-font);
    text-align: left;
    cursor: pointer;
}

.labd-daily-card[hidden] { display: none !important; }

.labd-daily-card--done {
    border-color: rgba(124, 246, 10, 0.38);
}

.labd-daily-card__sign {
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.labd-daily-card__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(var(--labd-accent) var(--labd-daily-pct, 0%), rgba(255, 255, 255, 0.12) 0);
}

.labd-daily-card__emoji {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0c0e12;
    font-size: 15px;
    line-height: 1;
}

.labd-daily-card__copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.labd-daily-card__title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.labd-daily-card__hint {
    font-size: 12px;
    font-weight: 500;
    color: var(--labd-fg-muted);
}

.labd-daily-card__count {
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    color: var(--labd-accent-strong);
}

.labd-daily-card--done .labd-daily-card__count {
    color: var(--labd-accent);
}

.labd-daily-sheet {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.labd-daily-sheet[hidden] { display: none !important; }

.labd-daily-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 5, 8, 0.62);
}

.labd-daily-sheet__card {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 22px 20px calc(22px + var(--labd-safe-bottom));
    border-radius: 24px 24px 0 0;
    background:
        radial-gradient(80% 60% at 50% -10%, rgba(124, 246, 10, 0.16), transparent 50%),
        linear-gradient(180deg, #161a16, #0c0e12);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -18px 48px -16px rgba(0, 0, 0, 0.7);
}

.labd-daily-sheet__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--labd-fg);
    font-size: 20px;
    cursor: pointer;
}

.labd-daily-sheet__kicker {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--labd-accent);
}

.labd-daily-sheet__title {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.labd-daily-sheet__lead {
    margin: 8px 0 16px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--labd-fg-muted);
}

.labd-daily-sheet__progress {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.labd-daily-sheet__frac {
    font-size: 28px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.labd-daily-sheet__pts {
    font-size: 15px;
    font-weight: 700;
    color: var(--labd-accent);
}

.labd-daily-sheet__bar {
    height: 6px;
    margin: 10px 0 22px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.labd-daily-sheet__bar-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--labd-accent-deep), var(--labd-accent));
    transition: width 0.35s ease;
}

.labd-daily-sheet__week-label {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--labd-fg-subtle);
}

.labd-daily-cal {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.labd-daily-cal__day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.labd-daily-cal__label {
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--labd-fg-subtle);
}

.labd-daily-cal__cell {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.06);
}

.labd-daily-cal__cell--done {
    background: linear-gradient(180deg, #b6ff4a, var(--labd-accent));
    box-shadow: 0 0 14px -4px rgba(124, 246, 10, 0.8);
}

.labd-daily-cal__cell--missed {
    background: rgba(120, 128, 140, 0.38);
}

.labd-daily-cal__cell--today {
    box-shadow: 0 0 0 1.5px rgba(124, 246, 10, 0.7);
}

.labd-daily-cal__cell--future {
    background: rgba(255, 255, 255, 0.04);
    opacity: 0.45;
}

.labd-daily-sheet__week-meta {
    margin: 14px 0 0;
    font-size: 13px;
    color: var(--labd-fg-muted);
}

.labd-daily-boom {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(6, 8, 10, 0.72);
    text-align: center;
    pointer-events: none;
}

.labd-daily-boom[hidden] { display: none !important; }

.labd-daily-boom__glow {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 246, 10, 0.35), transparent 70%);
    animation: labd-daily-pulse 1.1s ease-out;
}

.labd-daily-boom__kicker {
    position: relative;
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--labd-accent);
}

.labd-daily-boom__plus {
    position: relative;
    margin: 0;
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--labd-accent);
    text-shadow: 0 0 32px rgba(124, 246, 10, 0.55);
    animation: labd-daily-pop 0.55s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.labd-daily-boom__title {
    position: relative;
    margin: 4px 0 0;
    font-size: 20px;
    font-weight: 700;
}

.labd-daily-boom__sub {
    position: relative;
    margin: 0;
    font-size: 14px;
    color: var(--labd-accent-strong);
}

.labd-daily-boom__sub[hidden] { display: none !important; }

@keyframes labd-daily-pop {
    from { transform: scale(0.6); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes labd-daily-pulse {
    from { transform: scale(0.4); opacity: 0.2; }
    to { transform: scale(1.2); opacity: 0; }
}

.labd-slots-sheet {
    position: fixed;
    inset: 0;
    z-index: 82;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.labd-slots-sheet[hidden] { display: none !important; }

.labd-slots-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 5, 8, 0.62);
}

.labd-slots-sheet__card {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: min(88dvh, 720px);
    overflow-y: auto;
    padding: 22px 20px calc(22px + var(--labd-safe-bottom));
    border-radius: 24px 24px 0 0;
    background:
        radial-gradient(80% 60% at 50% -10%, rgba(91, 140, 255, 0.18), transparent 50%),
        linear-gradient(180deg, #161a22, #0c0e12);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -18px 48px -16px rgba(0, 0, 0, 0.7);
}

.labd-slots-sheet__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--labd-fg);
    font-size: 20px;
    cursor: pointer;
}

.labd-slots-sheet__kicker {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #8eb4ff;
}

.labd-slots-sheet__title {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.labd-slots-sheet__lead {
    margin: 8px 0 14px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--labd-fg-muted);
}

.labd-slots-sheet__now {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 13px;
    font-weight: 650;
}

.labd-slots-sheet__now[hidden] { display: none !important; }

.labd-slots-sheet__ladder {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
}

.labd-slots-sheet__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 14px;
}

.labd-slots-sheet__row:first-child { border-top: 0; }

.labd-slots-sheet__row.is-current {
    background: rgba(91, 140, 255, 0.14);
}

.labd-slots-sheet__rank {
    font-weight: 650;
}

.labd-slots-sheet__count {
    color: var(--labd-fg-muted);
    font-variant-numeric: tabular-nums;
}

.labd-slots-sheet__row.is-current .labd-slots-sheet__count {
    color: var(--labd-fg);
    font-weight: 700;
}

.labd-slots-sheet__hint {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--labd-fg-muted);
}

.labd-slots-sheet__cta {
    width: 100%;
}

.labd-slots-sheet__ok {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    border: 0;
    background: none;
    color: var(--labd-fg-muted);
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
}

/* --- Profile library tabs / given reviews / missions --- */
.labd-profile__library { margin-top: 8px; }
.labd-profile__library-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
}
.labd-profile__library-tab {
    flex: 0 0 auto;
    min-height: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--labd-fg-subtle);
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
}
.labd-profile__library-tab--active {
    color: var(--labd-fg);
    border: none;
    background: transparent;
}
.labd-profile__reviews-sort {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 10px;
}
.labd-profile__reviews-sort-btn {
    position: relative;
    padding: 0 0 6px;
    border: none;
    background: transparent;
    color: var(--labd-fg-subtle);
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}
.labd-profile__reviews-sort-btn--active {
    color: var(--labd-fg);
}
.labd-profile__reviews-sort-btn--active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.72);
}
.labd-profile__review-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.labd-profile__review-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
}
.labd-profile__review-card:last-child {
    border-bottom: none;
}
.labd-profile__review-card--openable {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.06);
}
.labd-profile__review-card--openable:active {
    background: rgba(255, 255, 255, 0.03);
}
.labd-profile__review-card-cover {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.labd-profile__review-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.labd-profile__review-card-body {
    min-width: 0;
}
.labd-profile__review-card-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    min-width: 0;
    max-width: 100%;
}
.labd-profile__review-card-text {
    margin: 3px 0 0;
    font-size: 12px;
    line-height: 1.35;
    color: var(--labd-fg-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.labd-profile__review-card-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
}
.labd-profile__review-card-likes {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 77, 109, 0.9);
}
.labd-profile__review-card-likes svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}
.labd-profile__review-card-play {
    position: relative;
    z-index: 6;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #111318;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    pointer-events: auto !important;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.labd-profile__review-card-play:active {
    background: #fff;
    transform: scale(0.96);
}
.labd-profile__review-card-play svg { width: 13px; height: 13px; margin-left: 1px; }
.labd-profile__review-card-play--off {
    width: auto;
    height: auto;
    min-height: 0;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(226, 230, 238, 0.32);
    box-shadow: none;
    cursor: default;
}
.labd-profile__review-card--gone {
    opacity: 1;
    pointer-events: none;
    margin: 2px -8px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.38);
    border-bottom-color: transparent;
}
.labd-profile__review-card--gone .labd-profile__review-card-cover {
    filter: grayscale(1) brightness(0.35) contrast(0.8);
}
.labd-profile__review-card--gone .labd-profile__review-card-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}
.labd-profile__review-card--gone .labd-profile__review-card-title {
    color: rgba(226, 230, 238, 0.26);
    text-decoration: line-through;
    text-decoration-color: rgba(226, 230, 238, 0.28);
}
.labd-profile__review-card--gone .labd-profile__review-card-text {
    color: rgba(226, 230, 238, 0.16);
}
.labd-profile__review-card--gone .labd-profile__review-card-likes {
    color: rgba(255, 77, 109, 0.22);
    filter: grayscale(1);
}

.labd-missions { margin: 22px 0 8px; }
.labd-missions__head { margin-bottom: 12px; }
.labd-missions__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}
.labd-missions__sub {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--labd-fg-muted);
}
.labd-missions__list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    margin: 0;
    padding: 2px 0 6px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.labd-missions__list::-webkit-scrollbar { display: none; }
.labd-missions__card {
    position: relative;
    flex: 0 0 min(72vw, 220px);
    width: min(72vw, 220px);
    min-height: 148px;
    padding: 14px 14px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: none;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    overflow: hidden;
}
.labd-missions__card--done {
    opacity: 0.55;
}
.labd-missions__ribbon {
    position: absolute;
    top: 11px;
    left: -34px;
    z-index: 2;
    width: 108px;
    padding: 4px 0;
    text-align: center;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 92, 110, 0.92);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.28);
    transform: rotate(-45deg);
    pointer-events: none;
}
.labd-missions__card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.labd-missions__card-top--limited {
    padding-left: 18px;
}
.labd-missions__card-title {
    margin: 0;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.labd-missions__card-reward {
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.55);
    background: none;
    padding: 0;
    border-radius: 0;
}
.labd-missions__card-sub {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.35;
    color: var(--labd-fg-subtle);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.labd-missions__card-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
    padding-top: 14px;
}
.labd-missions__btn {
    min-height: 34px;
    width: 100%;
    margin: 0;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.01em;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
.labd-missions__btn--go {
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.92);
}
.labd-missions__btn--go:active:not(:disabled) {
    background: rgba(255, 255, 255, 0.16);
}
.labd-missions__btn--check {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
}
.labd-missions__btn--check:active:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}
.labd-missions__btn:disabled {
    opacity: 0.45;
    cursor: default;
}
.labd-missions__card-done {
    font-size: 12px;
    font-weight: 650;
    color: rgba(255, 255, 255, 0.45);
}

/* --- Raffle overlay widget: never in feed flow --- */

.labd-raffle {
    position: fixed;
    top: var(--labd-header-offset);
    left: 0;
    right: 0;
    z-index: 28;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.labd-raffle[hidden] { display: none !important; }

body.labd--scroll-view .labd-raffle,
body.labd--scroll-view .labd-raffle__tab { display: none !important; }

.labd-raffle__tab {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 32px;
    max-width: 120px;
    padding: 0 12px;
    margin: 0;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid rgba(124, 246, 10, 0.32);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(18, 22, 18, 0.72), rgba(10, 12, 14, 0.55));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--labd-fg);
    font-family: var(--labd-font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 16px -10px rgba(0, 0, 0, 0.55);
    transition:
        max-width 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        padding 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        gap 0.32s ease,
        border-color 0.22s ease;
}
.labd-raffle__tab[hidden] { display: none !important; }

.labd-raffle__tab-mark {
    color: var(--labd-accent);
    font-size: 12px;
    line-height: 1;
    flex-shrink: 0;
    transition: font-size 0.32s ease;
}

.labd-raffle__tab-text {
    display: inline-block;
    max-width: 88px;
    overflow: hidden;
    opacity: 1;
    transition:
        max-width 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.22s ease;
}

.labd-raffle__tab.is-compact {
    max-width: 32px;
    width: 32px;
    min-width: 32px;
    padding: 0;
    gap: 0;
}

.labd-raffle__tab.is-compact .labd-raffle__tab-text {
    max-width: 0;
    opacity: 0;
}

.labd-raffle__tab.is-compact .labd-raffle__tab-mark {
    font-size: 14px;
}

.labd-raffle__tab.is-open {
    border-color: rgba(124, 246, 10, 0.5);
}

.labd-raffle__tab.is-stream,
.labd-raffle__tab.is-stream.is-open {
    border-color: rgba(178, 108, 240, 0.55);
    animation: labd-stream-pill-pulse 5s ease-in-out infinite;
    transition:
        max-width 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        padding 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        gap 0.32s ease;
}

.labd-raffle__tab.is-stream .labd-raffle__tab-mark {
    color: #d4b8ff;
}

.labd-raffle__tab.is-stream.is-air,
.labd-raffle__tab.is-stream.is-air.is-open {
    border-color: rgba(255, 59, 48, 0.85);
    animation: labd-air-pill-pulse 4.5s ease-in-out infinite;
}

.labd-raffle__tab.is-stream.is-air .labd-raffle__tab-mark {
    color: #ff8a80;
}

.labd-raffle__tab.is-stream.is-results,
.labd-raffle__tab.is-stream.is-results.is-open {
    border-color: rgba(178, 108, 240, 0.72);
    animation: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 16px -10px rgba(0, 0, 0, 0.55);
}

.labd-raffle__tab.is-stream.is-results .labd-raffle__tab-mark {
    color: #d4b8ff;
}

@keyframes labd-stream-pill-pulse {
    0%, 86%, 100% {
        border-color: rgba(178, 108, 240, 0.48);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 16px -10px rgba(0, 0, 0, 0.55);
    }
    90% {
        border-color: rgba(214, 186, 255, 0.92);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            0 0 0 1px rgba(178, 108, 240, 0.28);
    }
}

@keyframes labd-air-pill-pulse {
    0%, 86%, 100% {
        border-color: rgba(255, 59, 48, 0.72);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 16px -10px rgba(0, 0, 0, 0.55);
    }
    90% {
        border-color: rgba(255, 120, 110, 0.95);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            0 0 0 1px rgba(255, 59, 48, 0.35);
    }
}

.labd-raffle.is-stream [data-labd-raffle-tickets],
.labd-raffle.is-stream [data-labd-raffle-howto-open],
.labd-raffle.is-stream [data-labd-raffle-day] {
    display: none !important;
}

.labd-raffle:not(.is-stream) .labd-stream-banner__twitch,
.labd-raffle:not(.is-stream) .labd-stream-banner__cta,
.labd-raffle:not(.is-stream) .labd-stream-banner__closed {
    display: none !important;
}

.labd-raffle__panel {
    pointer-events: none;
    display: flex;
    flex-direction: column;
    width: calc(100% - 24px);
    max-width: 480px;
    margin: 8px 12px 0;
    padding: 0;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--labd-border-strong);
    background: var(--labd-surface-card);
    box-shadow: var(--labd-card-shadow);
    color: var(--labd-fg);
    font-family: var(--labd-font);
    text-align: left;
    transform: translate3d(0, -18px, 0);
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    border-width: 0;
    transition:
        transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 280ms ease,
        max-height 320ms cubic-bezier(0.22, 1, 0.36, 1),
        margin 320ms ease,
        border-width 320ms ease,
        visibility 0s linear 320ms;
}

.labd-raffle.is-open .labd-raffle__panel {
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
    max-height: 420px;
    margin-top: 8px;
    border-width: 1px;
    transition:
        transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 220ms ease,
        max-height 320ms cubic-bezier(0.22, 1, 0.36, 1),
        margin 320ms ease,
        border-width 320ms ease,
        visibility 0s;
}

.labd-raffle.is-stream.is-open .labd-raffle__panel {
    max-height: 480px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        var(--labd-surface-card);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.34),
        inset 0 -1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(178, 108, 240, 0.14),
        0 18px 40px -24px rgba(0, 0, 0, 0.72);
}

.labd-raffle-banner__art {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0c0e12;
}

.labd-raffle.is-stream .labd-raffle-banner__art::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -18%;
    z-index: 1;
    width: 150%;
    height: 62%;
    transform: translateX(-50%);
    pointer-events: none;
    background: radial-gradient(
        ellipse 48% 58% at 50% 100%,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(214, 186, 255, 0.1) 34%,
        transparent 72%
    );
}

.labd-raffle-banner__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    pointer-events: none;
}

.labd-raffle-banner__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 10, 14, 0.62) 0%, rgba(8, 10, 14, 0.08) 34%, rgba(8, 10, 14, 0.62) 68%, rgba(8, 10, 14, 0.94) 100%);
    pointer-events: none;
}

.labd-raffle-day {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    margin: 0;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(234, 215, 179, 0.32);
    background: rgba(10, 10, 16, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ead7b3;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.labd-raffle-day[hidden] { display: none !important; }

.labd-raffle-banner__copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 62px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 14px;
    pointer-events: none;
}

.labd-raffle-banner__copy:empty { display: none; }

.labd-raffle-banner__kicker {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c9a6ff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

.labd-raffle-banner__kicker[hidden],
.labd-raffle-banner__sub[hidden] { display: none !important; }

.labd-raffle-banner__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.22;
    color: var(--labd-fg);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

.labd-raffle-banner__sub {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    color: rgba(226, 230, 238, 0.78);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.labd-raffle-banner__rules {
    pointer-events: auto;
    align-self: flex-start;
    margin: 4px 0 0;
    padding: 0;
    border: 0;
    background: none;
    color: #ead7b3;
    font-family: var(--labd-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.labd-raffle-banner__rules[hidden] { display: none !important; }

.labd-stream-banner__twitch {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(18, 14, 28, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #f3eaff;
    font-family: var(--labd-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 8px 18px -14px rgba(0, 0, 0, 0.7);
}

.labd-stream-banner__twitch[hidden] { display: none !important; }

.labd-stream-banner__twitch:active {
    transform: scale(0.97);
}

.labd-stream-banner__twitch-icon {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    overflow: visible;
}

.labd-stream-banner__cta {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    margin: 0;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: linear-gradient(180deg, #b57cff 0%, #7a3fd4 100%);
    color: #fff;
    font-family: var(--labd-font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 10px 22px -12px rgba(74, 32, 122, 0.9);
}

.labd-stream-banner__cta[hidden] { display: none !important; }
.labd-stream-banner__cta:active { transform: scale(0.98); }

.labd-stream-banner__cta.is-watch {
    border-color: rgba(255, 255, 255, 0.22);
    background: linear-gradient(180deg, #9147ff 0%, #5c16c5 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 10px 22px -12px rgba(70, 20, 140, 0.95);
}

.labd-stream-banner__cta.is-results {
    border-color: rgba(214, 186, 255, 0.45);
    background: linear-gradient(180deg, #c9a6ff 0%, #8b5cf6 100%);
}

.labd-stream-banner__closed {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 16px;
    z-index: 2;
    margin: 0;
    text-align: center;
    color: rgba(226, 230, 238, 0.82);
    font-family: var(--labd-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
    pointer-events: none;
}

.labd-stream-banner__closed[hidden] { display: none !important; }

.labd-raffle__panel.labd-raffle-banner--clickable { cursor: default; }
.labd-raffle__panel.is-teaser { cursor: default; }

.labd-raffle__tickets {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    margin: 0;
    height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(240, 216, 168, 0.55);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 40%),
        linear-gradient(180deg, #ead7b3 0%, #c9a46a 52%, #8d6b3a 100%);
    color: #1c140c;
    font-family: var(--labd-font);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -6px 10px -6px rgba(80, 50, 16, 0.35),
        0 10px 22px -12px rgba(201, 164, 106, 0.55);
}

.labd-raffle__tickets[hidden] { display: none !important; }
.labd-raffle__tickets:active { transform: scale(0.98); }

.labd-raffle__tickets-mark {
    font-size: 12px;
    color: #5c4318;
}

.labd-raffle__tickets-count {
    margin-left: 4px;
    min-width: 1.4em;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(28, 20, 12, 0.16);
    font-variant-numeric: tabular-nums;
    font-size: 12px;
}

.labd-raffle-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 10px 0 8px;
    border-radius: 999px;
    border: 1px solid rgba(232, 213, 181, 0.42);
    background: linear-gradient(180deg, rgba(232, 213, 181, 0.16), rgba(18, 16, 12, 0.72));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ead7b3;
    font-family: var(--labd-font);
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 6px 16px -10px rgba(0, 0, 0, 0.55);
}

.labd-raffle-badge[hidden] { display: none !important; }
.labd-raffle-badge:active { transform: scale(0.97); }

.labd-raffle-badge__mark {
    color: #ead7b3;
    font-size: 12px;
}

.labd-raffle-badge__text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    color: #ead7b3;
}

.labd-raffle-sheet {
    position: fixed;
    inset: 0;
    z-index: 82;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.labd-raffle-sheet[hidden] { display: none !important; }

.labd-raffle-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 5, 8, 0.62);
}

.labd-raffle-sheet__card {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 22px 20px calc(22px + var(--labd-safe-bottom));
    border-radius: 24px 24px 0 0;
    background:
        radial-gradient(80% 60% at 50% -10%, rgba(124, 246, 10, 0.16), transparent 50%),
        linear-gradient(180deg, #161a16, #0c0e12);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--labd-sheet-shadow);
    animation: labd-raffle-sheet-in 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes labd-raffle-sheet-in {
    from { transform: translateY(24px); opacity: 0.6; }
    to { transform: translateY(0); opacity: 1; }
}

.labd-raffle-sheet__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--labd-fg);
    font-size: 20px;
    cursor: pointer;
}

.labd-raffle-sheet__kicker {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--labd-accent);
}

.labd-raffle-sheet__title {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--labd-fg);
}

.labd-raffle-sheet__count {
    margin: 6px 0 14px;
    font-variant-numeric: tabular-nums;
    color: var(--labd-fg-muted);
}

.labd-raffle-sheet__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--labd-hairline);
}

.labd-raffle-sheet__date {
    color: var(--labd-fg-muted);
    font-size: 13px;
}

.labd-raffle-sheet__code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.06em;
    color: var(--labd-fg);
}

.labd-raffle-sheet__empty {
    margin: 8px 0;
    color: var(--labd-fg-muted);
}

.labd-raffle-sheet__empty[hidden] { display: none !important; }

.labd-raffle-sheet__hint {
    margin: 14px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--labd-fg-muted);
}

.labd-raffle-howto {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}
.labd-raffle-howto[hidden] { display: none !important; }
.labd-raffle-howto__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 6, 9, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: auto;
}
.labd-raffle-howto__sheet {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    max-height: min(92dvh, 760px);
    overflow: hidden;
    padding: 18px 18px calc(20px + var(--labd-safe-bottom));
    border-radius: 28px 28px 0 0;
    background:
        radial-gradient(120% 80% at 50% -10%, rgba(178, 108, 240, 0.2), transparent 55%),
        radial-gradient(90% 70% at 100% 0%, rgba(234, 215, 179, 0.12), transparent 50%),
        linear-gradient(180deg, #171826 0%, #0e1018 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 -28px 60px -28px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(110%);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: auto;
    will-change: transform;
}
.labd-raffle-howto--open { pointer-events: auto; }
.labd-raffle-howto--open .labd-raffle-howto__backdrop { opacity: 1; }
.labd-raffle-howto--open .labd-raffle-howto__sheet { transform: translateY(0); }
.labd-raffle-howto__handle {
    display: block;
    width: 36px;
    height: 4px;
    margin: 0 auto 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}
.labd-raffle-howto__step {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 3;
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #c9a6ff;
}
.labd-raffle-howto__skip {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    margin: 0;
    padding: 8px 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--labd-fg-muted);
    font-family: var(--labd-font);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.labd-raffle-howto__viewport {
    position: relative;
    min-height: 360px;
    margin-top: 28px;
    touch-action: pan-y;
}
.labd-raffle-howto__page {
    display: none;
    flex-direction: column;
    align-items: stretch;
}
.labd-raffle-howto__page.is-active {
    display: flex;
}
.labd-raffle-howto__page.is-enter {
    animation: labd-raffle-howto-page 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes labd-raffle-howto-page {
    from { opacity: 0; transform: translateY(16px); filter: blur(8px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.labd-raffle-howto__visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 176px;
    margin: 0 -6px 18px;
    overflow: visible;
}
.labd-raffle-howto__visual::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 220px;
    height: 160px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(178, 108, 240, 0.38) 0%, rgba(178, 108, 240, 0.12) 42%, transparent 72%);
    pointer-events: none;
    animation: labd-raffle-howto-orb 5s ease-in-out infinite;
}
.labd-raffle-howto__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(28px);
    pointer-events: none;
}
.labd-raffle-howto__orb--a {
    width: 88px;
    height: 88px;
    left: 50%;
    top: 28%;
    margin-left: -44px;
    background: rgba(178, 108, 240, 0.42);
    animation: labd-raffle-howto-orb 5s ease-in-out infinite;
}
.labd-raffle-howto__orb--b {
    width: 72px;
    height: 72px;
    left: 58%;
    bottom: 22%;
    background: rgba(234, 215, 179, 0.28);
    animation: labd-raffle-howto-orb 5s ease-in-out infinite reverse;
}
@keyframes labd-raffle-howto-orb {
    0%, 100% { transform: translate(-8px, 6px) scale(1); }
    50% { transform: translate(10px, -8px) scale(1.08); }
}
.labd-raffle-howto__fan {
    position: relative;
    width: 180px;
    height: 110px;
}
.labd-raffle-howto__stub {
    position: absolute;
    left: 50%;
    top: 18px;
    width: 54px;
    height: 78px;
    margin-left: -27px;
    border-radius: 10px;
    border: 1px solid rgba(234, 215, 179, 0.45);
    background: linear-gradient(180deg, #ead7b3, #c9a46a 55%, #8d6b3a);
    box-shadow: 0 10px 18px -12px rgba(0, 0, 0, 0.7);
    transform-origin: 50% 110%;
}
.labd-raffle-howto__stub:nth-child(1) { transform: rotate(-28deg) translateX(-48px); animation: labd-raffle-howto-stub 2.8s ease-in-out infinite; }
.labd-raffle-howto__stub:nth-child(2) { transform: rotate(-14deg) translateX(-24px); animation: labd-raffle-howto-stub 2.8s ease-in-out infinite 0.08s; }
.labd-raffle-howto__stub:nth-child(3) { z-index: 2; }
.labd-raffle-howto__stub:nth-child(4) { transform: rotate(14deg) translateX(24px); animation: labd-raffle-howto-stub 2.8s ease-in-out infinite 0.16s; }
.labd-raffle-howto__stub:nth-child(5) { transform: rotate(28deg) translateX(48px); animation: labd-raffle-howto-stub 2.8s ease-in-out infinite 0.24s; }
.labd-raffle-howto__stub--hero {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1c140c;
    font-size: 18px;
    font-weight: 800;
    animation: labd-raffle-howto-hero 2.4s ease-in-out infinite;
}
@keyframes labd-raffle-howto-stub {
    0%, 100% { filter: brightness(0.92); }
    50% { filter: brightness(1.08); }
}
@keyframes labd-raffle-howto-hero {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.04); }
}
.labd-raffle-howto__last {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
}
.labd-raffle-howto__last-ticket {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 86px;
    border-radius: 12px;
    border: 1px solid rgba(234, 215, 179, 0.55);
    background: linear-gradient(180deg, #ead7b3, #c9a46a 55%, #8d6b3a);
    color: #1c140c;
    font-size: 28px;
    font-weight: 800;
    animation: labd-raffle-howto-hero 2.2s ease-in-out infinite;
}
.labd-raffle-howto__last-glow {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(234, 215, 179, 0.45), transparent 68%);
    animation: labd-raffle-howto-orb 3.2s ease-in-out infinite;
}
.labd-raffle-howto__ring {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    border: 2px solid rgba(201, 166, 255, 0.55);
    box-shadow: 0 0 0 8px rgba(178, 108, 240, 0.12), 0 0 28px rgba(178, 108, 240, 0.28);
    animation: labd-raffle-howto-ring 3.2s ease-in-out infinite;
}
@keyframes labd-raffle-howto-ring {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 8px rgba(178, 108, 240, 0.1), 0 0 22px rgba(178, 108, 240, 0.22); }
    50% { transform: scale(1.04); box-shadow: 0 0 0 12px rgba(178, 108, 240, 0.16), 0 0 32px rgba(178, 108, 240, 0.38); }
}
.labd-raffle-howto__ring-value {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #c9a6ff;
}
.labd-raffle-howto__ring-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--labd-fg);
}
.labd-raffle-howto__pill {
    margin-top: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(201, 166, 255, 0.16);
    color: #c9a6ff;
    font-size: 12px;
    font-weight: 700;
}
.labd-raffle-howto__chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 280px;
}
.labd-raffle-howto__chip {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--labd-fg);
    font-size: 12px;
    font-weight: 600;
    animation: labd-raffle-howto-chip 2.8s ease-in-out infinite;
}
.labd-raffle-howto__chip:nth-child(2) { animation-delay: 0.12s; }
.labd-raffle-howto__chip:nth-child(3) { animation-delay: 0.24s; }
.labd-raffle-howto__chip:nth-child(4) { animation-delay: 0.36s; }
.labd-raffle-howto__chip--warn {
    background: rgba(240, 108, 108, 0.14);
    color: #f0b4b4;
}
@keyframes labd-raffle-howto-chip {
    0%, 100% { transform: translateY(0); opacity: 0.82; }
    50% { transform: translateY(-4px); opacity: 1; }
}
.labd-raffle-howto__heading {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    color: var(--labd-fg);
}
.labd-raffle-howto__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: var(--labd-fg-muted);
    min-height: 4.4em;
}
.labd-raffle-howto__dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 18px 0 16px;
}
.labd-raffle-howto__dot {
    width: 18px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
    transition: width 0.22s ease, background 0.22s ease;
}
.labd-raffle-howto__dot.is-on {
    width: 28px;
    background: #c9a6ff;
    box-shadow: 0 0 10px rgba(201, 166, 255, 0.45);
}
.labd-raffle-howto__next {
    width: 100%;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(240, 216, 168, 0.5);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 40%),
        linear-gradient(180deg, #ead7b3 0%, #c9a46a 52%, #8d6b3a 100%);
    color: #1c140c;
    font-family: var(--labd-font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.labd-raffle-howto__next:active { transform: scale(0.98); }

.labd-raffle-confetti {
    position: fixed;
    inset: 0;
    z-index: 90;
    pointer-events: none;
    overflow: hidden;
}

.labd-raffle-confetti[hidden] { display: none !important; }

.labd-raffle-confetti__bit {
    position: absolute;
    top: 18%;
    width: 7px;
    height: 11px;
    border-radius: 1px;
    animation: labd-raffle-confetti-fall 760ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes labd-raffle-confetti-fall {
    0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 1; }
    100% { transform: translate3d(12px, 220px, 0) rotate(220deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .labd-raffle-howto__sheet,
    .labd-raffle-howto__backdrop,
    .labd-raffle-howto__page.is-enter,
    .labd-raffle-howto__orb,
    .labd-raffle-howto__stub,
    .labd-raffle-howto__stub--hero,
    .labd-raffle-howto__last-ticket,
    .labd-raffle-howto__last-glow,
    .labd-raffle-howto__ring,
    .labd-raffle-howto__chip,
    .labd-raffle-sheet__card,
    .labd-raffle-confetti__bit,
    .labd-raffle-badge,
    .labd-raffle__panel,
    .labd-raffle__tab,
    .labd-raffle__tab-text,
    .labd-raffle__tab-mark,
    .labd-stream-pick__sheet,
    .labd-stream-pick__backdrop {
        animation: none !important;
        transition: none !important;
    }

    .labd-raffle__tab.is-stream,
    .labd-raffle__tab.is-stream.is-open {
        animation: none !important;
        border-color: rgba(178, 108, 240, 0.7);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 16px -10px rgba(0, 0, 0, 0.55);
    }

    .labd-raffle__tab.is-stream.is-air,
    .labd-raffle__tab.is-stream.is-air.is-open {
        border-color: rgba(255, 59, 48, 0.9);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 16px -10px rgba(0, 0, 0, 0.55);
    }

    .labd-raffle__tab.is-stream.is-results,
    .labd-raffle__tab.is-stream.is-results.is-open {
        animation: none !important;
        border-color: rgba(178, 108, 240, 0.75);
    }
}

/* --- Stream pick sheet --- */

.labd-marquee {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.labd-marquee__run {
    display: inline-flex;
    align-items: baseline;
    max-width: none;
    white-space: nowrap;
    will-change: transform;
}

.labd-marquee__item {
    flex: 0 0 auto;
    white-space: nowrap;
}

.labd-marquee.is-on .labd-marquee__item {
    padding-right: 2.2em;
}

.labd-marquee.is-on {
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 16px), transparent);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 16px), transparent);
}

.labd-marquee.is-on.is-visible .labd-marquee__run {
    animation: labd-marquee-x var(--labd-marquee-ms, 8s) linear infinite;
    animation-delay: 1.1s;
}

@keyframes labd-marquee-x {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(calc(-1 * var(--labd-marquee-shift, 0px)), 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .labd-marquee.is-on.is-visible .labd-marquee__run {
        animation: none;
    }
}

.labd-stream-pick {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}

.labd-stream-pick[hidden] { display: none !important; }

.labd-stream-pick__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 6, 9, 0.62);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: auto;
}

.labd-stream-pick__sheet {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    max-height: min(86dvh, 720px);
    display: flex;
    flex-direction: column;
    padding: 8px 16px 16px;
    border-radius: 22px 22px 0 0;
    background: var(--labd-surface-sheet);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    box-shadow: var(--labd-sheet-shadow);
    transform: translateY(110%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: auto;
}

.labd-stream-pick--open {
    pointer-events: auto;
}

.labd-stream-pick--open .labd-stream-pick__backdrop { opacity: 1; }
.labd-stream-pick--open .labd-stream-pick__sheet { transform: translateY(0); }

.labd-stream-pick__handle {
    width: 42px;
    height: 4px;
    margin: 8px auto 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}

.labd-stream-pick__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0 8px;
}

.labd-stream-pick__head-copy { min-width: 0; }

.labd-stream-pick__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.labd-stream-pick__count {
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #d4b8ff;
    font-variant-numeric: tabular-nums;
}

.labd-stream-pick__close {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: 1px solid var(--labd-border);
    border-radius: 50%;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015));
    color: var(--labd-fg);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.labd-stream-pick__hint {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--labd-fg-muted);
}

.labd-stream-pick__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    min-height: 80px;
}

.labd-stream-pick__tile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.022);
    border: 1px solid var(--labd-hairline);
    color: inherit;
    font-family: var(--labd-font);
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.labd-stream-pick__tile:active { transform: scale(0.98); }

.labd-stream-pick__tile.is-on {
    border-color: rgba(178, 108, 240, 0.62);
    background: rgba(178, 108, 240, 0.08);
    box-shadow: 0 0 0 1px rgba(178, 108, 240, 0.22), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
}

.labd-stream-pick__tile.is-capped {
    opacity: 0.55;
}

.labd-stream-pick__cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1c24;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.labd-stream-pick__cover-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.labd-stream-pick__cover-fallback {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--labd-fg-subtle);
    background: radial-gradient(circle at 35% 25%, rgba(178, 108, 240, 0.16), transparent 60%);
}

.labd-stream-pick__check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(10, 12, 18, 0.55);
    color: #f6efff;
    font-size: 12px;
    font-weight: 700;
}

.labd-stream-pick__tile.is-on .labd-stream-pick__check {
    border-color: rgba(214, 186, 255, 0.8);
    background: rgba(178, 108, 240, 0.85);
}

.labd-stream-pick__body { min-width: 0; }

.labd-stream-pick__track-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    min-width: 0;
    max-width: 100%;
}

.labd-stream-pick__track-meta {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: var(--labd-fg-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.labd-stream-pick__empty,
.labd-stream-pick__error {
    margin: 8px 0;
    font-size: 13px;
    color: var(--labd-fg-muted);
}

.labd-stream-pick__empty[hidden],
.labd-stream-pick__error[hidden] { display: none !important; }

.labd-stream-pick__error { color: #ffb4b4; }

.labd-stream-pick__footer {
    padding: 8px 0 calc(8px + var(--labd-safe-bottom, 0px));
}

.labd-stream-pick__submit {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(214, 186, 255, 0.45);
    border-radius: 999px;
    background: linear-gradient(90deg, #c9a6ff 0%, #b26cf0 55%, #8a4ad4 100%);
    color: #16081f;
    font-family: var(--labd-font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 26px -10px rgba(178, 108, 240, 0.45);
}

.labd-stream-pick__submit:disabled {
    opacity: 0.42;
    cursor: default;
}

.labd-stream-pick__submit:not(:disabled):active { transform: scale(0.98); }

/* --- Stream results sheet (ИТОГИ) --- */
.labd-stream-results {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}

.labd-stream-results[hidden] { display: none !important; }

.labd-stream-results__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: auto;
}

.labd-stream-results__sheet {
    position: relative;
    z-index: 1;
    width: min(100%, 480px);
    max-height: min(88dvh, 760px);
    display: flex;
    flex-direction: column;
    padding: 10px 16px 0;
    border-radius: 22px 22px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #12141a;
    transform: translateY(108%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: auto;
    box-sizing: border-box;
}

.labd-stream-results--open { pointer-events: auto; }
.labd-stream-results--open .labd-stream-results__backdrop { opacity: 1; }
.labd-stream-results--open .labd-stream-results__sheet { transform: translateY(0); }

.labd-stream-results__handle {
    display: block;
    width: 42px;
    height: 4px;
    margin: 2px auto 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.labd-stream-results__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.labd-stream-results__kicker {
    margin: 0 0 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(214, 186, 255, 0.72);
}

.labd-stream-results__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.labd-stream-results__close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.labd-stream-results__body {
    overflow: auto;
    flex: 1 1 auto;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
}

.labd-stream-results__eyebrow {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(226, 230, 238, 0.55);
}

.labd-stream-results__empty {
    margin: 0 0 16px;
    font-size: 13px;
    color: rgba(226, 230, 238, 0.55);
}

.labd-stream-results__winner { margin-bottom: 22px; }

.labd-stream-results__winner-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(178, 108, 240, 0.35);
    background: linear-gradient(160deg, rgba(178, 108, 240, 0.18), rgba(255, 255, 255, 0.03));
}

.labd-stream-results__winner-photo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.labd-stream-results__winner-name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.labd-stream-results__winner-meta,
.labd-stream-results__winner-code {
    margin: 2px 0 0;
    font-size: 12px;
    color: rgba(226, 230, 238, 0.7);
}

.labd-stream-results__winner-code {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}

.labd-stream-results__top { margin-bottom: 22px; }

.labd-stream-results__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.labd-stream-results__row {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

.labd-stream-results__row.is-me {
    border-color: rgba(178, 108, 240, 0.45);
}

.labd-stream-results__row.is-podium-1 {
    padding: 14px 14px;
    border-color: rgba(255, 214, 102, 0.45);
    background: linear-gradient(160deg, rgba(255, 214, 102, 0.16), rgba(255, 255, 255, 0.03));
}

.labd-stream-results__row.is-podium-2 {
    border-color: rgba(210, 220, 235, 0.35);
    background: linear-gradient(160deg, rgba(210, 220, 235, 0.12), rgba(255, 255, 255, 0.03));
}

.labd-stream-results__row.is-podium-3 {
    border-color: rgba(205, 140, 90, 0.4);
    background: linear-gradient(160deg, rgba(205, 140, 90, 0.14), rgba(255, 255, 255, 0.03));
}

.labd-stream-results__rank {
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    text-align: center;
    color: rgba(243, 245, 248, 0.85);
}

.labd-stream-results__row.is-podium-1 .labd-stream-results__rank { font-size: 22px; color: #ffd666; }
.labd-stream-results__row.is-podium-2 .labd-stream-results__rank { font-size: 18px; color: #d7dee8; }
.labd-stream-results__row.is-podium-3 .labd-stream-results__rank { font-size: 18px; color: #d4a574; }

.labd-stream-results__who {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.labd-stream-results__who strong {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.labd-stream-results__who span {
    font-size: 11px;
    color: rgba(226, 230, 238, 0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.labd-stream-results__score {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.labd-stream-results__score em {
    font-style: normal;
    font-size: 10px;
    color: rgba(226, 230, 238, 0.55);
}

.labd-stream-results__score strong {
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.labd-stream-results__card {
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(178, 108, 240, 0.28);
    background: rgba(178, 108, 240, 0.08);
}

.labd-stream-results__card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.labd-stream-results__card-head strong { display: block; font-size: 14px; }
.labd-stream-results__card-head span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: rgba(226, 230, 238, 0.55);
}

.labd-stream-results__card-overall {
    font-size: 20px;
    font-variant-numeric: tabular-nums;
}

.labd-stream-results__dims {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.labd-stream-results__dim {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.labd-stream-results__dim em {
    font-style: normal;
    font-size: 10px;
    font-weight: 600;
    color: rgba(226, 230, 238, 0.5);
}

.labd-stream-results__place {
    margin: 0;
    padding: 14px 0 calc(14px + var(--labd-safe-bottom, 0px));
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #e9d5ff;
}

.labd-stream-results__place[hidden] { display: none !important; }

.labd-profile__stream-rating {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(178, 108, 240, 0.28);
    background: rgba(178, 108, 240, 0.08);
}

.labd-profile__stream-rating-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
}

.labd-profile__stream-rating-head strong {
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.labd-profile__stream-rating-label {
    color: rgba(214, 186, 255, 0.85);
    font-weight: 700;
}

.labd-profile__stream-rating-dims {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
}

.labd-profile__stream-rating.is-open .labd-profile__stream-rating-dims {
    display: grid;
}

.labd-profile__stream-rating-dim {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
    font-size: 12px;
    font-weight: 700;
}

.labd-profile__stream-rating-dim em {
    font-style: normal;
    font-size: 9px;
    font-weight: 600;
    color: rgba(226, 230, 238, 0.5);
}

.labd-push-ask {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(18px + var(--labd-compose-space));
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 12px 12px 16px;
    border-radius: 20px;
    background: rgba(12, 14, 18, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #fff;
}

.labd-push-ask[hidden] { display: none !important; }

.labd-push-ask__text {
    margin: 0;
    min-width: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.labd-push-ask__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.labd-push-ask__later,
.labd-push-ask__on {
    margin: 0;
    height: 34px;
    padding: 0 14px;
    border: none;
    border-radius: 999px;
    font-family: var(--labd-font);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.labd-push-ask__later {
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
}

.labd-push-ask__on {
    background: #fff;
    color: #12141a;
}

.labd-push-ask__on:active {
    transform: scale(0.96);
}


