:root {
    
    --bg-app: #f0f6ff;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #ffffff;
    --bg-surface-subtle: #e8f2fe;
    --bg-surface-hover: #dbeafe;
    --bg-sidebar: #f8fbff;

    --border-subtle: #dbeafe;
    --border-default: #bfdbfe;
    --border-strong: #93c5fd;

    --text-main: #0c2340;
    --text-secondary: #1e3a5f;
    --text-muted: #53749b;
    --text-inverse: #ffffff;

    --primary: #1d6fe5;
    --primary-hover: #1558b8;
    --primary-light: #eff6ff;
    --primary-border: #93c5fd;
    --primary-text: #1d4ed8;

    --danger: #ef4444;
    --danger-hover: #dc2626;
    --danger-light: #fef2f2;
    --danger-border: #fecaca;
    --danger-text: #991b1b;

    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --warning-border: #fde68a;
    --warning-text: #92400e;

    --success: #10b981;
    --success-light: #ecfdf5;
    --success-border: #a7f3d0;
    --success-text: #065f46;

    --info: #0284c7;
    --info-light: #f0f9ff;
    --info-border: #bae6fd;
    --info-text: #0369a1;

    --code-bg: #071933;
    --code-text: #e0f2fe;
    --inline-code-bg: #e0f2fe;
    --inline-code-text: #0369a1;
    --inline-code-border: #bae6fd;

    
    --shadow-xs: 0 1px 2px rgba(15, 60, 130, 0.05);
    --shadow-sm: 0 2px 6px rgba(15, 60, 130, 0.07);
    --shadow-md: 0 6px 18px -2px rgba(15, 60, 130, 0.1);
    --shadow-lg: 0 16px 36px -4px rgba(15, 60, 130, 0.14);
    --shadow-card: 0 10px 30px rgba(15, 60, 130, 0.06), 0 1px 3px rgba(15, 60, 130, 0.05);

    
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-full: 9999px;

    
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, Monaco, monospace;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-app: #070d19;
        --bg-surface: #0c172e;
        --bg-surface-elevated: #11203d;
        --bg-surface-subtle: #142547;
        --bg-surface-hover: #1b315b;
        --bg-sidebar: #0a1326;

        --border-subtle: #162747;
        --border-default: #1e3663;
        --border-strong: #2a4d8b;

        --text-main: #f0f7ff;
        --text-secondary: #c2daf5;
        --text-muted: #7ca1cb;
        --text-inverse: #070d19;

        --primary: #3b82f6;
        --primary-hover: #60a5fa;
        --primary-light: #132b57;
        --primary-border: #2563eb;
        --primary-text: #93c5fd;

        --danger: #f87171;
        --danger-hover: #ef4444;
        --danger-light: #450a0a;
        --danger-border: #7f1d1d;
        --danger-text: #fca5a5;

        --warning: #f59e0b;
        --warning-light: rgba(245, 158, 11, 0.08);
        --warning-border: rgba(245, 158, 11, 0.28);
        --warning-text: #fde68a;

        --success: #34d399;
        --success-light: #064e3b;
        --success-border: #065f46;
        --success-text: #6ee7b7;

        --info: #38bdf8;
        --info-light: #0c2b48;
        --info-border: #075985;
        --info-text: #7dd3fc;

        --code-bg: #040813;
        --code-text: #e0f2fe;
        --inline-code-bg: #142547;
        --inline-code-text: #7dd3fc;
        --inline-code-border: #213a68;

        --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
        --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.5);
        --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
        --shadow-lg: 0 18px 44px rgba(2, 6, 23, 0.75);
        --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(30, 58, 138, 0.2);
    }
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    touch-action: manipulation;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    background-color: var(--bg-app);
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transition: background-color var(--transition-base), color var(--transition-base);
    overflow-x: clip;
    width: 100%;
    touch-action: manipulation;
}

a,
button,
input,
select,
textarea,
label {
    touch-action: manipulation;
}

#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: #3b82f6;
    z-index: 1000;
    transition: width 0.1s linear;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
}

.hero {
    position: relative;
    background: linear-gradient(135deg, #07152b 0%, #0d274c 45%, #163f75 100%);
    color: #ffffff;
    padding: 48px 24px 42px;
    overflow: hidden;
    border-bottom: 1px solid rgba(147, 197, 253, 0.2);
    box-shadow: 0 10px 30px -10px rgba(7, 21, 43, 0.4);
}

.hero::before {
    content: "";
    position: absolute;
    top: -40%;
    left: 15%;
    width: 700px;
    height: 480px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.28) 0%, rgba(37, 99, 235, 0.15) 45%, transparent 70%);
    filter: blur(55px);
    pointer-events: none;
}

.app-header {
    background: #090e1a;
    border-bottom: 1px solid #1a2436;
    position: sticky;
    top: 0;
    z-index: 990;
    width: 100%;
}

.app-header-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 62px;
    padding: 8px 0;
    box-sizing: border-box;
    gap: 16px;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.app-brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    background: transparent;
    border: none;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
    transition: transform 0.2s ease;
}

.app-brand:hover .app-brand-logo {
    transform: scale(1.05);
}

.app-brand-text {
    display: flex;
    flex-direction: column;
}

.app-brand-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    line-height: 1.2;
}

.app-brand-subtitle {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #93c5fd;
}

.app-header-mobile-bar {
    display: none;
    align-items: center;
    gap: 8px;
}

.app-mobile-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.app-mobile-pill-notif {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #93c5fd;
}

.app-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #131c2e;
    border: 1px solid #1e293b;
    color: #e2e8f0;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.app-mobile-toggle:hover {
    background: #1e293b;
    border-color: #334155;
}

.app-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.app-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    color: #94a3b8;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.app-nav-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.app-nav-item.active {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.3);
}

.app-nav-user {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-weight: 500;
    border-radius: 9999px;
    padding: 5px 12px;
}

.app-nav-user:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
}

.app-nav-btn-feedback {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
}

.app-nav-btn-feedback:hover {
    background: rgba(16, 185, 129, 0.3);
    border-color: rgba(16, 185, 129, 0.6);
    color: #ffffff;
}

.app-nav-btn-admin {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.35);
    color: #c4b5fd;
}

.app-nav-btn-admin:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.6);
    color: #ffffff;
}

.app-nav-btn-notif {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    color: #93c5fd;
    font-weight: 700;
}

.app-nav-btn-notif:hover {
    background: rgba(59, 130, 246, 0.35);
    color: #ffffff;
}

.app-nav-btn-primary {
    background: #1d4ed8;
    border-color: #2563eb;
    color: #ffffff;
}

.app-nav-btn-primary:hover {
    background: #2563eb;
}

.app-nav-btn-danger {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
    color: #f87171;
}

.app-nav-btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ffffff;
}

.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body {
    top: 0px !important;
    position: static !important;
}

.goog-text-highlight {
    background: transparent !important;
    box-shadow: none !important;
}

.skiptranslate iframe {
    display: none !important;
}

#google_translate_element {
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.app-lang-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.app-nav-btn-lang {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    cursor: pointer;
    font-family: inherit;
    gap: 6px;
    padding: 6px 10px;
}

.app-nav-btn-lang:hover,
.app-lang-wrap.is-open .app-nav-btn-lang {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}

.app-current-lang {
    font-weight: 700;
    font-size: 11.5px;
    letter-spacing: 0.04em;
}

.app-lang-caret {
    font-size: 9px;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.app-lang-wrap.is-open .app-lang-caret {
    transform: rotate(180deg);
}

.app-lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    background: #0b1120;
    border: 1px solid #1e293b;
    border-radius: 10px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
    padding: 8px;
    z-index: 1050;
    animation: appLangFade 0.15s ease-out;
}

.app-lang-wrap.is-open .app-lang-dropdown {
    display: block;
}

@keyframes appLangFade {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.app-lang-menu-head {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    padding: 6px 8px 8px;
    border-bottom: 1px solid #1e293b;
    margin-bottom: 6px;
}

.app-lang-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 260px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.app-lang-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 7px 10px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #94a3b8;
    font-size: 12.5px;
    font-weight: 500;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: all 0.12s ease;
}

.app-lang-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.app-lang-item.active {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    font-weight: 700;
}

.app-lang-flag {
    font-size: 14px;
    line-height: 1;
}

.app-mobile-lang-row {
    display: none;
}

@media (max-width: 860px) {
    .app-header {
        position: sticky;
        top: 0;
        z-index: 990;
    }

    .app-header-inner {
        flex-wrap: nowrap;
        min-height: 58px;
        padding: 8px 0;
        position: static;
    }

    .app-header-mobile-bar {
        display: inline-flex;
    }

    .app-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 7px;
        padding: 12px 16px 16px 16px;
        margin: 0;
        background: #090e1a;
        border-top: 1px solid #1a2436;
        border-bottom: 1px solid #1a2436;
        box-shadow: 0 16px 30px rgba(0, 0, 0, 0.6);
        box-sizing: border-box;
        max-height: calc(100dvh - 60px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 1000;
    }

    .app-nav.is-open {
        display: flex;
        animation: appNavDrop 0.16s ease-out;
    }

    @keyframes appNavDrop {
        from {
            opacity: 0;
            transform: translateY(-4px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .app-nav-item {
        width: 100%;
        box-sizing: border-box;
        padding: 10px 14px;
        font-size: 13.5px;
        border-radius: 8px;
        background: #0f172a;
        border-color: #1e293b;
    }

    .app-nav-user {
        border-radius: 8px;
    }

    .app-lang-wrap {
        display: none;
    }

    .app-mobile-lang-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 14px;
        border-radius: 8px;
        background: #0f172a;
        border: 1px solid #1e293b;
        margin-top: 4px;
        box-sizing: border-box;
    }

    .app-mobile-lang-label {
        font-size: 13px;
        font-weight: 600;
        color: #94a3b8;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .app-mobile-lang-select {
        flex: 1;
        max-width: 170px;
        padding: 7px 10px;
        background: #090e1a;
        border: 1px solid #334155;
        border-radius: 6px;
        color: #f1f5f9;
        font-size: 12.5px;
        font-family: inherit;
        outline: none;
    }
}

.hero-inner {
    width: min(1240px, 100%);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.hero-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.hero-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    background: transparent;
    border: none;
    box-shadow: none;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
    transition: transform 0.2s ease;
}

.hero-logo:hover {
    transform: scale(1.05);
}

.hero-brand-text {
    display: flex;
    flex-direction: column;
}

.hero-brand-title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    line-height: 1.2;
}

.hero-brand-subtitle {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #93c5fd;
}

.hero-user-bar {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-user-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 500;
    color: #e0f2fe;
}

.hero-user-badge strong {
    color: #ffffff;
    font-weight: 700;
}

.hero-user-badge-link {
    text-decoration: none;
    transition: all var(--transition-fast);
}

.hero-user-badge-link:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.35);
}

.hero-profile-btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: rgba(59, 130, 246, 0.25);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #93c5fd;
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.hero-profile-btn:hover {
    background: rgba(59, 130, 246, 0.45);
    color: #ffffff;
    text-decoration: none;
}

.hero-feedback-btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #a7f3d0;
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.hero-feedback-btn:hover {
    background: rgba(16, 185, 129, 0.38);
    color: #ffffff;
    text-decoration: none;
}

.hero-admin-btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: rgba(234, 179, 8, 0.18);
    border: 1px solid rgba(234, 179, 8, 0.45);
    color: #fde047;
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.hero-admin-btn:hover {
    background: rgba(234, 179, 8, 0.35);
    color: #ffffff;
    text-decoration: none;
}

.hero-logout-btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.hero-logout-btn:hover {
    background: rgba(239, 68, 68, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #93c5fd;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
    animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.hero h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4.8vw, 50px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.hero-brand-highlight {
    background: linear-gradient(
        115deg,
        #38bdf8 0%,
        #38bdf8 30%,
        #f8fafc 48%,
        #ffffff 50%,
        #cbd5e1 54%,
        #38bdf8 70%,
        #38bdf8 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #38bdf8;
    display: inline-block;
    animation: silverSheen 3.6s ease-in-out infinite;
}

@keyframes silverSheen {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.hero p {
    max-width: 820px;
    margin: 0 0 18px;
    color: #cbd5e1;
    font-size: clamp(15px, 1.8vw, 17px);
    line-height: 1.55;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.hero-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 5px 12px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 500;
    color: #e2e8f0;
}

.layout {
    width: min(1240px, calc(100% - 36px));
    max-width: 100%;
    margin: 32px auto 64px;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    min-width: 0;
    box-sizing: border-box;
}

.sidebar {
    position: sticky;
    top: 78px;
    background: var(--bg-sidebar);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-card);
    max-height: calc(100vh - 96px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10;
    transition: background-color var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar strong {
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sidebar-count {
    background: var(--bg-surface-subtle);
    color: var(--text-muted);
    font-size: 11px;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    font-weight: 600;
}

.sidebar-search {
    margin-bottom: 12px;
    position: relative;
}

.sidebar-search input {
    width: 100%;
    padding: 8px 10px 8px 30px;
    font-size: 12.5px;
    font-family: inherit;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    background: var(--bg-surface-subtle);
    color: var(--text-main);
    outline: none;
    transition: all var(--transition-fast);
}

.sidebar-search input:focus {
    border-color: var(--primary);
    background: var(--bg-surface);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.sidebar-search::before {
    content: "\f002";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    opacity: 0.55;
    pointer-events: none;
}

.sidebar nav {
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    margin-right: -4px;
}

.sidebar nav::-webkit-scrollbar,
.guide pre::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.sidebar nav::-webkit-scrollbar-track,
.guide pre::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar nav::-webkit-scrollbar-thumb,
.guide pre::-webkit-scrollbar-thumb {
    background: var(--border-default);
    border-radius: 999px;
}

.sidebar a {
    display: block;
    padding: 7px 11px;
    margin: 2px 0;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    transition: all var(--transition-fast);
    border-left: 2px solid transparent;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.sidebar a:hover {
    background: var(--bg-surface-subtle);
    color: var(--primary);
    text-decoration: none;
    border-left-color: var(--border-strong);
}

.sidebar a.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    border-left-color: var(--primary);
}

.content {
    min-width: 0;
}

.notice {
    background: var(--warning-light);
    border: 1px solid var(--warning-border);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    color: var(--warning-text);
    font-size: 13.5px;
}

.notice-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.notice-item i {
    color: var(--warning);
    font-size: 14px;
}

.notice-sep {
    width: 1px;
    height: 16px;
    background: var(--warning-border);
}

.notice strong {
    color: var(--text-main);
    font-weight: 600;
}

.notice a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.notice a:hover {
    color: var(--text-main);
}

.quickbar {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 24px;
}

.quickbar a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 7px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-default);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
    box-shadow: var(--shadow-xs);
    transition: all var(--transition-fast);
}

.quickbar a:hover {
    background: var(--bg-surface-subtle);
    border-color: var(--primary-border);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.guide {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: clamp(24px, 4.5vw, 52px);
    box-shadow: var(--shadow-card);
    transition: background-color var(--transition-base), border-color var(--transition-base);
}

.guide h1,
.guide h2,
.guide h3,
.guide h4 {
    color: var(--text-main);
    line-height: 1.25;
    scroll-margin-top: 30px;
    font-family: var(--font-sans);
}

.guide h1 {
    font-size: clamp(26px, 3.8vw, 36px);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0 0 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.guide h2 {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 750;
    letter-spacing: -0.02em;
    margin-top: 52px;
    margin-bottom: 18px;
    padding-top: 18px;
    border-top: 2px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide h2::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 1.15em;
    background: linear-gradient(180deg, var(--primary), #8b5cf6);
    border-radius: 4px;
    margin-right: 4px;
    flex-shrink: 0;
}

.guide h3 {
    font-size: clamp(16px, 2.2vw, 19px);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-top: 36px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.guide h4 {
    margin: 32px 0 14px;
    padding: 14px 18px;
    border: 1px solid var(--border-default);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    background: var(--bg-surface-subtle);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px 12px;
    box-shadow: var(--shadow-xs);
    transition: all var(--transition-fast);
}

.guide h4 .task-title-text {
    display: inline;
    color: inherit;
    font: inherit;
    flex: 1 1 auto;
    word-break: normal;
    overflow-wrap: break-word;
}

.guide h4:hover {
    border-color: var(--primary-border);
    border-left-color: var(--primary-hover);
    box-shadow: var(--shadow-sm);
}

.guide h4.task-sos {
    border-left-color: var(--danger);
    background: var(--danger-light);
    border-color: var(--danger-border);
}

.guide h4 .sos-tag {
    margin-left: auto;
    flex-shrink: 0;
}

.sos-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: var(--danger);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
    animation: sos-pulse 2s infinite ease-in-out;
}

@keyframes sos-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(0.97); }
}

.task-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
}

.guide p {
    margin: 12px 0 16px;
    color: var(--text-secondary);
    line-height: 1.68;
}

.guide strong {
    color: var(--text-main);
    font-weight: 600;
}

.guide ul,
.guide ol {
    padding-left: 26px;
    margin: 12px 0 20px;
}

.guide li {
    margin: 8px 0;
    line-height: 1.62;
}

.guide li strong {
    color: var(--text-main);
}

.guide blockquote {
    position: relative;
    margin: 22px 0 26px;
    padding: 16px 20px 16px 22px;
    border-left: 4px solid var(--primary);
    background: var(--primary-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--text-main);
    font-size: 14.5px;
    line-height: 1.6;
}

.guide code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    background: var(--inline-code-bg);
    color: var(--inline-code-text);
    border: 1px solid var(--inline-code-border);
    word-break: break-word;
}

.code-block-wrapper {
    position: relative;
    margin: 22px 0 28px;
}

.code-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #090e18;
    color: #94a3b8;
    padding: 9px 16px;
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
    border: 1px solid #1e293b;
    border-bottom: none;
    font-size: 12px;
    font-family: var(--font-mono);
}

.window-dots {
    display: inline-flex;
    gap: 6px;
}

.window-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.window-dot.red { background: #ef4444; }
.window-dot.yellow { background: #f59e0b; }
.window-dot.green { background: #10b981; }

.copy-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
    padding: 4px 11px;
    font-size: 11px;
    font-family: var(--font-sans);
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.guide pre {
    margin: 0;
    overflow-x: auto;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: var(--code-bg);
    color: var(--code-text);
    border: 1px solid #1e293b;
    font-family: var(--font-mono);
    font-size: 13.5px;
    line-height: 1.65;
    box-shadow: var(--shadow-sm);
}

.code-block-wrapper .guide pre,
.code-block-wrapper pre {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.guide pre code {
    padding: 0;
    background: transparent;
    color: inherit;
    border: none;
    font-size: inherit;
}

.checklist {
    list-style: none;
    padding-left: 0 !important;
    display: grid;
    gap: 10px;
    margin: 18px 0 28px;
}

.checklist li {
    border: 1px solid var(--border-default);
    background: var(--bg-surface-subtle);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin: 0;
    transition: all var(--transition-fast);
}

.checklist li:hover {
    background: var(--bg-surface);
    border-color: var(--primary-border);
    box-shadow: var(--shadow-xs);
}

.checklist li.checked {
    background: var(--success-light);
    border-color: var(--success-border);
}

.checklist li.checked span {
    text-decoration: line-through;
    color: var(--text-muted);
}

.checklist label {
    display: flex;
    gap: 12px;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-main);
}

.checklist input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 19px;
    height: 19px;
    border: 2px solid var(--border-strong);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    position: relative;
    background-color: var(--bg-surface);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.checklist input[type="checkbox"]:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checklist input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checklist input[type="checkbox"]:focus-visible {
    box-shadow: 0 0 0 3px var(--primary-light);
}

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px -3px rgba(37, 99, 235, 0.4), 0 4px 10px -2px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.9);
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                background-color 0.2s ease,
                box-shadow 0.25s ease,
                visibility 0.25s;
    z-index: 99;
    backdrop-filter: blur(8px);
}

#back-to-top svg {
    display: block;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

#back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 16px 32px -4px rgba(37, 99, 235, 0.55), 0 6px 14px -2px rgba(0, 0, 0, 0.25);
}

#back-to-top:hover svg {
    transform: translateY(-2px);
}

#back-to-top:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 6px 16px -2px rgba(37, 99, 235, 0.4);
}

.footer {
    width: min(1240px, calc(100% - 36px));
    margin: 20px auto 48px;
    padding-top: 28px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.footer-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    background: transparent;
    border: none;
    box-shadow: none;
    opacity: 0.85;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

.footer-meta {
    opacity: 0.7;
    font-size: 12px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-sep {
    color: var(--border-default);
    font-size: 11px;
}

@media (max-width: 960px) {
    .layout {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 20px;
        min-width: 0;
        width: min(100% - 24px, 1240px);
        box-sizing: border-box;
    }

    .sidebar {
        position: static;
        max-height: 380px;
        min-width: 0;
        box-sizing: border-box;
    }

    .sidebar nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 36px 18px 28px;
    }

    .hero-top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .layout {
        width: min(100% - 20px, 1240px);
        max-width: 100%;
        margin: 16px auto 40px;
        grid-template-columns: minmax(0, 1fr);
        min-width: 0;
        box-sizing: border-box;
    }

    .sidebar {
        border-radius: var(--radius-md);
        padding: 12px 14px;
        max-height: none;
        overflow: hidden;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .sidebar nav {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding: 4px 2px 10px 2px;
        margin: 0;
        max-height: none;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        scrollbar-width: thin;
        scrollbar-color: var(--border-default) transparent;
    }

    .sidebar nav::-webkit-scrollbar {
        height: 4px;
    }

    .sidebar nav::-webkit-scrollbar-track {
        background: transparent;
    }

    .sidebar nav::-webkit-scrollbar-thumb {
        background: var(--border-default);
        border-radius: 999px;
    }

    .sidebar a {
        display: inline-flex;
        align-items: center;
        flex: 0 0 auto;
        white-space: nowrap;
        margin: 0;
        padding: 6px 13px;
        font-size: 12px;
        border-radius: 9999px;
        border: 1px solid var(--border-default);
        border-left: 1px solid var(--border-default);
        background: var(--bg-surface);
        color: var(--text-secondary);
        text-overflow: clip;
    }

    .sidebar a:hover {
        background: var(--bg-surface-subtle);
        border-color: var(--primary);
        color: var(--primary);
    }

    .sidebar a.active {
        background: var(--primary-light);
        border-color: var(--primary);
        color: var(--primary);
        font-weight: 600;
    }

    .guide {
        padding: 20px 16px 32px;
        border-radius: var(--radius-lg);
    }

    .guide h4 {
        padding: 12px 14px;
        font-size: 14px;
    }

    .notice {
        padding: 12px 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .notice-sep {
        display: none;
    }

    .quickbar a {
        flex: 1 1 calc(50% - 5px);
        justify-content: center;
        text-align: center;
    }

    #back-to-top {
        bottom: 18px;
        right: 18px;
        width: 40px;
        height: 40px;
    }
}

.auth-body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background-color: #090e1a;
    background-image: none;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #f8fafc;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

.auth-container {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 40px 20px 48px;
    box-sizing: border-box;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.auth-container:has(.auth-card-wide),
.auth-container.auth-container-wide {
    max-width: 680px;
}

.auth-card {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    width: 100%;
    box-sizing: border-box;
    margin: auto 0;
}

.auth-card.auth-card-wide {
    max-width: 100%;
}

.auth-body .footer,
.spectate-body .footer,
.profile-body .footer {
    border-top: 1px solid #1a2436;
    color: #94a3b8;
}

.auth-header {
    text-align: left;
    margin-bottom: 26px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    text-decoration: none;
    width: fit-content;
}

.auth-brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.auth-brand-name {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.auth-badge-pending {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fef08a;
    background-color: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.28);
    border-radius: 9999px;
    margin-bottom: 14px;
    letter-spacing: 0.02em;
    line-height: 1.4;
    width: fit-content;
}

.auth-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #facc15;
    box-shadow: 0 0 6px rgba(250, 204, 21, 0.8);
    flex-shrink: 0;
}

.auth-header h1 {
    margin: 0 0 6px 0;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.auth-header p {
    margin: 0;
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.5;
}

.auth-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.4;
    margin-bottom: 22px;
}

.auth-alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

.auth-alert-success {
    background-color: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.auth-alert svg {
    flex-shrink: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-field label {
    font-size: 13px;
    font-weight: 500;
    color: #cbd5e1;
    letter-spacing: -0.01em;
}

.auth-field input:not([type="checkbox"]):not([type="radio"]) {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    line-height: 1.4;
    color: #ffffff;
    background-color: #132238;
    border: 1px solid #23395d;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.auth-field input:not([type="checkbox"]):not([type="radio"]):focus {
    background-color: #172a45;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.auth-field input:not([type="checkbox"]):not([type="radio"])::placeholder {
    color: #64748b;
}

.auth-select {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    line-height: 1.4;
    color: #ffffff;
    background-color: #132238;
    border: 1px solid #23395d;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
    box-sizing: border-box;
    cursor: pointer;
}

.auth-select:focus {
    background-color: #172a45;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.auth-select option {
    background-color: #0d1a33;
    color: #ffffff;
}

.auth-textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.5;
    color: #ffffff;
    background-color: #132238;
    border: 1px solid #23395d;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
    box-sizing: border-box;
    resize: vertical;
    min-height: 110px;
}

.auth-textarea:focus {
    background-color: #172a45;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.file-drop-zone {
    position: relative;
    border: 2px dashed #23395d;
    border-radius: 10px;
    padding: 22px 16px;
    text-align: center;
    background-color: #0f1c30;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
}

.file-drop-zone:hover {
    border-color: #3b82f6;
    background-color: #132542;
}

.file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-drop-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.file-drop-content svg {
    color: #60a5fa;
}

.file-drop-text {
    font-size: 13.5px;
    font-weight: 500;
    color: #cbd5e1;
}

.file-drop-hint {
    font-size: 11.5px;
    color: #64748b;
}

.auth-notice {
    padding: 12px 14px;
    background-color: #101c30;
    border: 1px solid #1e3352;
    border-radius: 8px;
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.5;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -4px;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.auth-checkbox input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.auth-checkbox-box {
    width: 17px;
    height: 17px;
    background-color: #132238;
    border: 1px solid #23395d;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.auth-checkbox input:checked + .auth-checkbox-box {
    background-color: #2563eb;
    border-color: #3b82f6;
}

.auth-checkbox input:checked + .auth-checkbox-box::after {
    content: '';
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.auth-checkbox input:focus + .auth-checkbox-box {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    border-color: #3b82f6;
}

.auth-checkbox-label {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

.auth-checkbox:hover .auth-checkbox-label {
    color: #cbd5e1;
}

.auth-checkbox:hover .auth-checkbox-box {
    border-color: #3b82f6;
}

.auth-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #ffffff;
    background-color: #2563eb;
    border: 1px solid #3b82f6;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
    box-sizing: border-box;
    margin-top: 4px;
}

.auth-btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #2563eb;
}

.auth-btn-primary:active {
    transform: scale(0.99);
}

.auth-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #cbd5e1;
    background-color: transparent;
    border: 1px solid #23395d;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    box-sizing: border-box;
}

.auth-btn-outline:hover {
    background-color: #132238;
    border-color: #3b82f6;
    color: #ffffff;
}

.auth-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

.auth-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #172a45;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    font-size: 13px;
    color: #94a3b8;
}

.auth-footer a {
    color: #60a5fa;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-footer-screener,
.auth-card-screener .auth-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    font-size: 13px;
    text-align: center;
    line-height: 1.5;
    max-width: 100%;
    word-break: normal;
    overflow-wrap: break-word;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #172a45;
}

.auth-footer-screener span,
.auth-card-screener .auth-footer span {
    white-space: normal;
    color: #94a3b8;
}

.auth-footer-screener a,
.auth-card-screener .auth-footer a {
    white-space: nowrap;
    display: inline-block;
}

@media (max-width: 480px) {
    .auth-footer-screener,
    .auth-card-screener .auth-footer {
        font-size: 12.5px;
        gap: 4px 6px;
        margin-top: 20px;
        padding-top: 20px;
        padding-bottom: 4px;
        padding-left: 6px;
        padding-right: 6px;
    }
}

.country-input-wrap {
    position: relative;
    width: 100%;
}

.country-input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 13px;
    pointer-events: none;
    transition: color 0.2s ease;
}

.country-input-wrap input:focus + .country-input-icon {
    color: #38bdf8;
}

.country-dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #0b1528;
    border: 1px solid #1e3a66;
    border-radius: 8px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65), 0 0 15px rgba(30, 58, 102, 0.4);
    scrollbar-width: thin;
    scrollbar-color: #1e3a66 #08111e;
}

.country-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}
.country-dropdown-menu::-webkit-scrollbar-track {
    background: #08111e;
    border-radius: 0 8px 8px 0;
}
.country-dropdown-menu::-webkit-scrollbar-thumb {
    background: #1e3a66;
    border-radius: 3px;
}
.country-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

.country-dropdown-item {
    padding: 9px 14px;
    font-size: 13px;
    color: #cbd5e1;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s ease, color 0.15s ease;
    border-bottom: 1px solid rgba(23, 42, 69, 0.5);
    user-select: none;
}

.country-dropdown-item:last-child {
    border-bottom: none;
}

.country-dropdown-item:hover,
.country-dropdown-item.is-active {
    background: #122543;
    color: #ffffff;
}

.country-dropdown-item .country-item-icon {
    color: #60a5fa;
    font-size: 11px;
    opacity: 0.75;
}

.country-dropdown-item:hover .country-item-icon,
.country-dropdown-item.is-active .country-item-icon {
    opacity: 1;
    color: #38bdf8;
}

.country-dropdown-item .country-name-match {
    color: #38bdf8;
    font-weight: 700;
}

.country-dropdown-empty {
    padding: 12px 14px;
    font-size: 12.5px;
    color: #94a3b8;
    text-align: center;
    font-style: italic;
}

.auth-info-card {
    background-color: #101d32;
    border: 1px solid #1e3352;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.auth-info-header h3 {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

.auth-info-header p {
    margin: 0 0 16px 0;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
}

.auth-details-list {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid #1e3352;
    padding-top: 14px;
}

.auth-details-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
    gap: 12px;
}

.auth-details-row dt {
    color: #94a3b8;
    font-weight: 500;
    flex-shrink: 0;
}

.auth-details-row dd {
    margin: 0;
    color: #f1f5f9;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.badge-active-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 11.5px;
    font-weight: 600;
    color: #86efac;
    background-color: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 9999px;
    letter-spacing: 0.02em;
}

.tester-stats-banner {
    background: linear-gradient(135deg, #102347 0%, #0d1a33 100%);
    border: 1px solid #234273;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 22px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.tester-stats-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}

.tester-stats-title svg {
    color: #38bdf8;
    flex-shrink: 0;
}

.tester-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.tester-stat-box {
    background: #091324;
    border: 1px solid #1a2f52;
    border-radius: 8px;
    padding: 12px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tester-stat-num {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.tester-stat-unit {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #94a3b8;
    margin-top: 4px;
    letter-spacing: 0.04em;
}

.tester-stats-subtext {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
}

@media (max-width: 640px) {
    .auth-container {
        padding: 24px 16px 36px;
        max-width: 100%;
    }

    .auth-header {
        margin-bottom: 22px;
    }

    .auth-header h1 {
        font-size: 21px;
    }

    .auth-header p {
        font-size: 13.5px;
    }

    .auth-grid-2 {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .auth-field input:not([type="checkbox"]):not([type="radio"]) {
        font-size: 16px;
        padding: 12px 14px;
    }

    .auth-info-card {
        padding: 16px 14px;
    }

    .auth-details-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    .auth-details-row dd {
        text-align: left;
    }
}

@media (max-width: 380px) {
    .auth-container {
        padding: 16px 12px 28px;
    }

    .auth-brand-name {
        font-size: 16px;
    }

    .auth-brand-logo {
        width: 32px;
        height: 32px;
    }

    .auth-header h1 {
        font-size: 19px;
    }

    .auth-badge-pending {
        font-size: 11px;
        padding: 4px 10px;
    }

    .auth-btn-primary,
    .auth-btn-outline {
        padding: 11px 14px;
        font-size: 13.5px;
    }
}

.spectate-body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background-color: #0b1528;
    background-image: radial-gradient(at 50% 0%, #132442 0%, #0b1528 85%);
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #f8fafc;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

.spectate-container {
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
    padding: 30px 24px 48px;
    box-sizing: border-box;
    flex: 1;
}

.spectate-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #1a2e4d;
}

.spectate-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.spectate-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.spectate-badge-admin {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fbbf24;
    margin-bottom: 4px;
}

.spectate-brand h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.spectate-actions-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.spectate-admin-user {
    font-size: 13px;
    color: #94a3b8;
    margin-right: 6px;
}

.spectate-admin-user strong {
    color: #ffffff;
}

.spectate-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.spectate-metric-card {
    background: #0f1c30;
    border: 1px solid #1e3352;
    border-radius: 10px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
}

.spectate-metric-title {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.spectate-metric-val {
    font-size: 28px;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 6px;
}

.spectate-metric-sub {
    font-size: 12px;
    color: #64748b;
}

.spectate-table-card {
    background: #0f1c30;
    border: 1px solid #1e3352;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.spectate-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid #1a2e4d;
}

.spectate-table-header h2 {
    margin: 0 0 4px 0;
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
}

.spectate-table-header p {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
}

.spectate-search-input {
    min-width: 260px;
    padding: 9px 14px;
    background-color: #132238;
    border: 1px solid #23395d;
    border-radius: 8px;
    color: #ffffff;
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s ease;
}

.spectate-search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.spectate-table-wrapper {
    overflow-x: auto;
}

.spectate-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    text-align: left;
}

.spectate-table th {
    background: #0d1729;
    padding: 12px 18px;
    color: #94a3b8;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #1a2e4d;
}

.spectate-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #15243b;
    vertical-align: middle;
}

.tester-row {
    cursor: pointer;
    transition: background-color 0.12s ease;
}

.tester-row:hover {
    background-color: #14243d;
}

.tester-cell-name strong {
    display: block;
    color: #ffffff;
    font-weight: 600;
}

.tester-cell-name span {
    font-size: 12px;
    color: #94a3b8;
}

.spectate-badge-pending {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #fde047;
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 9999px;
}

.spectate-role-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 4px;
}

.spectate-role-tag.role-admin {
    background: rgba(234, 179, 8, 0.18);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.4);
}

.spectate-role-tag.role-tester {
    background: rgba(59, 130, 246, 0.14);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.spectate-time-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    color: #38bdf8;
}

.spectate-feedback-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 9999px;
    background: rgba(167, 139, 250, 0.15);
    border: 1px solid rgba(167, 139, 250, 0.35);
    color: #c4b5fd;
    font-weight: 700;
    font-size: 12px;
}

.spectate-btn-activate {
    background-color: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #86efac;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.spectate-btn-activate:hover {
    background-color: #15803d;
    color: #ffffff;
}

.spectate-btn-deactivate {
    background-color: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.spectate-btn-deactivate:hover {
    background-color: #b91c1c;
    color: #ffffff;
}

.spectate-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
}

.spectate-modal-card {
    background: #0f1c30;
    border: 1px solid #1e3352;
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #1e3a5f #09111e;
}

.spectate-modal-card::-webkit-scrollbar {
    width: 8px;
}

.spectate-modal-card::-webkit-scrollbar-track {
    background: #09111e;
    border-radius: 4px;
}

.spectate-modal-card::-webkit-scrollbar-thumb {
    background: #1e3a5f;
    border-radius: 4px;
}

.spectate-modal-card::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

.spectate-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin: -24px -24px 16px -24px;
    padding: 20px 24px 14px 24px;
    position: sticky;
    top: -24px;
    background: #0f1c30;
    border-bottom: 1px solid #1e3352;
    z-index: 10;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.spectate-modal-subtitle {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #60a5fa;
    display: block;
    margin-bottom: 4px;
}

.spectate-modal-header h3 {
    margin: 0 0 2px 0;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.spectate-modal-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.spectate-modal-close:hover {
    color: #ffffff;
}


.tester-points-banner {
    background: radial-gradient(at 0% 0%, #1e293b 0%, #0f1c30 100%);
    border: 1px solid rgba(234, 179, 8, 0.35);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.tester-points-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.tester-points-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tester-trophy-icon {
    font-size: 26px;
    line-height: 1;
}

.tester-points-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.tester-points-sub {
    font-size: 12px;
    color: #94a3b8;
}

.tester-rank-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid #3b82f6;
    font-size: 12px;
    font-weight: 700;
}

.tester-points-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.tester-points-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.4);
    color: #facc15;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
}

.spectate-confirmed-count {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 9999px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86efac;
    font-size: 11px;
    font-weight: 600;
}


.tester-my-feedbacks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tester-fb-item {
    background: #0f1c30;
    border: 1px solid #1e3352;
    border-radius: 8px;
    padding: 12px 16px;
    transition: border-color 0.15s ease;
}

.tester-fb-item:hover {
    border-color: #3b82f6;
}

.tester-fb-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.tester-fb-subject {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.tester-fb-date {
    font-size: 12px;
    color: #64748b;
}


.fb-filter-select {
    padding: 9px 12px;
    background-color: #132238;
    border: 1px solid #23395d;
    border-radius: 8px;
    color: #ffffff;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.fb-filter-select:focus {
    border-color: #3b82f6;
}

.fb-id-pill {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    font-weight: 700;
    color: #94a3b8;
    background: #132238;
    border: 1px solid #23395d;
    padding: 2px 7px;
    border-radius: 4px;
}

.fb-category-tag {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 4px;
}

.fb-sev-pill {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.fb-sev-pill.sev-critical {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.fb-sev-pill.sev-high {
    background: rgba(249, 115, 22, 0.2);
    color: #fdba74;
    border: 1px solid rgba(249, 115, 22, 0.4);
}

.fb-sev-pill.sev-medium {
    background: rgba(234, 179, 8, 0.2);
    color: #fde047;
    border: 1px solid rgba(234, 179, 8, 0.4);
}

.fb-sev-pill.sev-low {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.fb-env-chip {
    display: inline-block;
    font-size: 11px;
    color: #94a3b8;
    background: #132238;
    border: 1px solid #1e3352;
    padding: 2px 6px;
    border-radius: 4px;
}

.fb-has-attachment-tag {
    display: inline-block;
    font-size: 11px;
    color: #67e8f9;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.35);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.fb-status-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.fb-status-tag.status-confirmed {
    background: rgba(234, 179, 8, 0.18);
    border: 1px solid rgba(234, 179, 8, 0.5);
    color: #facc15;
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.15);
}

.fb-status-tag.status-progress {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}

.fb-status-tag.status-resolved {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #86efac;
}

.fb-status-tag.status-dismissed {
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #94a3b8;
}

.fb-status-tag.status-pending {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #93c5fd;
}

.fb-points-badge {
    font-size: 11px;
    font-weight: 700;
    color: #fef08a;
    background: rgba(234, 179, 8, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
}

.fb-quick-confirm-btn {
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.45);
    color: #facc15;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.fb-quick-confirm-btn:hover {
    background: #ca8a04;
    color: #ffffff;
}

.fb-review-btn {
    background: #132238;
    border: 1px solid #23395d;
    color: #cbd5e1;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.fb-review-btn:hover {
    background: #2563eb;
    border-color: #3b82f6;
    color: #ffffff;
}

.fb-desc-box {
    background: #132238;
    border: 1px solid #23395d;
    border-radius: 6px;
    padding: 12px 14px;
    color: #f8fafc;
    font-size: 13.5px;
    line-height: 1.6;
    white-space: pre-wrap;
    max-height: 220px;
    overflow-y: auto;
}

.fb-download-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #132238;
    border: 1px solid #23395d;
    border-radius: 6px;
    color: #38bdf8;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.fb-download-link:hover {
    border-color: #38bdf8;
    color: #ffffff;
    text-decoration: none;
}


.hero-notif-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #450a0a;
    border: 1px solid #991b1b;
    border-radius: 9999px;
    color: #fca5a5;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hero-notif-btn:hover {
    background: #991b1b;
    border-color: #dc2626;
    color: #ffffff;
    text-decoration: none;
}

.notif-glow-banner {
    background: #0f172a;
    border: 1px solid #1e293b;
}

.notif-jump-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 6px;
    background: #2563eb;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease;
}

.notif-jump-btn:hover {
    background: #1d4ed8;
    color: #ffffff;
    text-decoration: none;
}

.notif-badge-pill {
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.notif-mark-all-btn {
    background: transparent;
    border: 1px solid #23395d;
    color: #94a3b8;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.notif-mark-all-btn:hover {
    background: #132238;
    border-color: #3b82f6;
    color: #ffffff;
}

.tester-notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notif-item {
    border-radius: 8px;
    padding: 16px;
    transition: all 0.15s ease;
}

.notif-item.notif-unread {
    background: #0d1527;
    border: 1px solid #1d4ed8;
}

.notif-item.notif-read {
    background: #090d16;
    border: 1px solid #1a2436;
    opacity: 0.85;
}

.notif-item.notif-read:hover {
    opacity: 1;
    border-color: #273549;
}

.notif-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.notif-new-dot {
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.05em;
}

.notif-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.tag-credentials {
    background: rgba(234, 179, 8, 0.2);
    border: 1px solid rgba(234, 179, 8, 0.45);
    color: #fde047;
}

.tag-advisory {
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #7dd3fc;
}

.tag-announcement {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.45);
    color: #d8b4fe;
}

.tag-general {
    background: rgba(148, 163, 184, 0.2);
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: #cbd5e1;
}

.notif-item-title {
    margin: 0;
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
}

.notif-item-date {
    font-size: 11.5px;
    color: #64748b;
}

.notif-item-body {
    background: #091220;
    border: 1px solid #17273f;
    border-radius: 6px;
    padding: 12px 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 12px;
    word-break: break-word;
    user-select: text;
}

.notif-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.notif-copy-btn {
    background: #132238;
    border: 1px solid #23395d;
    color: #38bdf8;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.notif-copy-btn:hover {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
}

.notif-btn-read {
    background: #1e3352;
    border: 1px solid #2b4974;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.notif-btn-read:hover {
    background: #2563eb;
    border-color: #3b82f6;
}

.spectate-btn-msg {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #7dd3fc;
    padding: 5px 9px;
    border-radius: 5px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.spectate-btn-msg:hover {
    background: #0284c7;
    color: #ffffff;
}

.auth-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.auth-container:has(.auth-card-screener),
.auth-container.auth-container-screener {
    max-width: 820px;
    padding: 32px 20px 56px;
}

.auth-card.auth-card-screener {
    max-width: 100%;
    background: #0d1424;
    border: 1px solid #19263c;
    border-radius: 14px;
    padding: 32px 34px 38px;
    box-shadow: 0 12px 36px -10px rgba(0, 0, 0, 0.45);
}

.screener-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #172338;
}

.screener-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #101929;
    border: 1px solid #1c2b42;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    padding: 4px;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.screener-header-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.screener-header-text h1 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 3px 0;
    letter-spacing: -0.01em;
}

.screener-header-text p {
    font-size: 13.5px;
    color: #8da2bb;
    margin: 0;
    line-height: 1.45;
}

.screener-stepper {
    position: relative;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid #172338;
}

.stepper-track-wrap {
    position: absolute;
    top: 15px;
    left: 40px;
    right: 40px;
    height: 2px;
    z-index: 1;
}

.stepper-track-bg {
    width: 100%;
    height: 100%;
    background: #192539;
    border-radius: 2px;
}

.stepper-track-fill {
    height: 100%;
    background: #2563eb;
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

.stepper-items {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.stepper-step {
    background: transparent;
    border: none;
    padding: 0;
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    outline: none;
    transition: all 0.18s ease;
}

.stepper-step.active,
.stepper-step.completed {
    cursor: pointer;
}

.stepper-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0d1424;
    border: 2px solid #1e2e46;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.stepper-step.active .stepper-circle {
    background: #2563eb;
    border-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.stepper-step.completed .stepper-circle {
    background: #14233c;
    border-color: #2563eb;
    color: #60a5fa;
}

.stepper-circle .stepper-check {
    display: none;
}

.stepper-step.completed .stepper-circle .stepper-num {
    display: none;
}

.stepper-step.completed .stepper-circle .stepper-check {
    display: inline-block;
    font-size: 12px;
}

.stepper-label {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    transition: color 0.18s ease;
}

.stepper-step.active .stepper-label {
    color: #ffffff;
    font-weight: 600;
}

.stepper-step.completed .stepper-label {
    color: #cbd5e1;
}

.screening-step-pane {
    display: none;
    flex-direction: column;
    gap: 18px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.screening-step-pane.active {
    display: flex;
    animation: paneFade 0.2s ease;
}

@keyframes paneFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.screening-section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 16px;
    border-bottom: 1px solid #172338;
}

.section-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #101929;
    border: 1px solid #1c2b42;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    padding: 5px;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.section-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.screening-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 2px 0;
}

.screening-section-desc {
    font-size: 13px;
    color: #8da2bb;
    line-height: 1.4;
    margin: 0;
}

.auth-field label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.auth-field label i {
    color: #3b82f6;
    font-size: 12px;
}

.field-label-main {
    font-size: 13.5px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.field-label-main i {
    color: #3b82f6;
}

.screening-grid-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.screening-check-card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 11px;
    background: #111a2a;
    border: 1px solid #1c2b42;
    border-radius: 9px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.16s ease;
    user-select: none;
    box-sizing: border-box;
    min-width: 0;
}

.screening-check-card:hover {
    background: #142034;
    border-color: #273b5a;
}

.screening-check-card:has(input:checked),
.screening-check-card.has-checked {
    background: rgba(37, 99, 235, 0.08);
    border-color: #2563eb;
}

.screening-check-card input[type="checkbox"],
.screening-check-card input[type="radio"] {
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    max-width: 17px !important;
    padding: 0 !important;
    margin: 2px 0 0 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    accent-color: #2563eb;
    cursor: pointer;
    flex-shrink: 0 !important;
}

.screening-check-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1 1 auto;
    min-width: 0;
}

.screening-check-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.35;
    display: flex;
    align-items: center;
    gap: 7px;
}

.screening-check-title i {
    color: #60a5fa;
    font-size: 13px;
}

.screening-check-desc {
    font-size: 12px;
    color: #8da2bb;
    line-height: 1.4;
}

.screening-ack-card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 11px;
    background: #111a2a;
    border: 1px solid #1c2b42;
    border-radius: 9px;
    padding: 13px 15px;
    cursor: pointer;
    user-select: none;
    transition: all 0.16s ease;
    box-sizing: border-box;
    min-width: 0;
}

.screening-ack-card:hover {
    border-color: #273b5a;
    background: #142034;
}

.screening-ack-card:has(input:checked),
.screening-ack-card.has-checked {
    background: rgba(37, 99, 235, 0.08);
    border-color: #2563eb;
}

.screening-ack-card input[type="checkbox"] {
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    max-width: 17px !important;
    padding: 0 !important;
    margin: 2px 0 0 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    accent-color: #2563eb;
    cursor: pointer;
    flex-shrink: 0 !important;
}

.screening-ack-text {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
    flex: 1 1 auto;
    min-width: 0;
}

.screening-ack-text strong {
    color: #ffffff;
}

.screening-ack-text i {
    color: #60a5fa;
    margin-right: 3px;
}

.env-group-card {
    background: #101826;
    border: 1px solid #1c2b42;
    border-radius: 9px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
}

.env-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #93c5fd;
    margin-bottom: 2px;
}

.scenario-prompt-box {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
    background: #111a2a;
    border: 1px solid #1c2b42;
    border-radius: 8px;
    padding: 12px 14px;
    margin: 0 0 8px 0;
}

.scenario-prompt-box strong {
    color: #ffffff;
}

.scenario-prompt-box em {
    color: #93c5fd;
}

.auth-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #111a2a;
    border: 1px solid #1c2b42;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
    color: #8da2bb;
    line-height: 1.45;
}

.auth-notice i {
    color: #3b82f6;
    font-size: 15px;
    margin-top: 2px;
    flex-shrink: 0;
}

.auth-notice strong {
    color: #e2e8f0;
}

.screening-field-hint {
    font-size: 12px;
    color: #7d93b0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.screening-field-hint i {
    color: #3b82f6;
    font-size: 11px;
}

.field-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.char-counter {
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    font-family: 'JetBrains Mono', monospace, monospace;
    margin-left: auto;
}

.char-counter.valid {
    color: #10b981;
}

.step-inline-alert {
    display: none;
    align-items: flex-start;
    gap: 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.step-inline-alert.visible {
    display: flex;
}

.step-inline-alert i {
    color: #f87171;
    font-size: 15px;
    margin-top: 2px;
    flex-shrink: 0;
}

.field-error {
    border-color: #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.08) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.step-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid #172338;
    margin-top: 6px;
    flex-wrap: wrap;
}

.step-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.18s ease;
    font-family: inherit;
    line-height: 1.4;
}

.step-btn-prev {
    background: #141f30;
    border-color: #1e2e46;
    color: #cbd5e1;
}

.step-btn-prev:hover {
    background: #182740;
    border-color: #273b5a;
    color: #ffffff;
}

.step-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.step-btn-next,
.step-btn-submit {
    background: #2563eb;
    color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.step-btn-next:hover,
.step-btn-submit:hover {
    background: #1d4ed8;
    border-color: #60a5fa;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.step-counter-badge {
    font-size: 12.5px;
    font-weight: 500;
    color: #64748b;
}

@media (max-width: 640px) {
    .auth-container:has(.auth-card-screener),
    .auth-container.auth-container-screener {
        padding: 16px 12px 36px;
    }
    .auth-card.auth-card-screener {
        padding: 22px 16px;
    }
    .auth-grid-2 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .screening-grid-cards {
        grid-template-columns: 1fr;
    }
    .stepper-label {
        font-size: 11px;
    }
    .stepper-circle {
        width: 28px;
        height: 28px;
        font-size: 11.5px;
    }
    .stepper-track-wrap {
        left: 24px;
        right: 24px;
        top: 14px;
    }
    .step-nav-bar {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .step-nav-right {
        margin-left: 0;
        width: 100%;
        flex-direction: column-reverse;
    }
    .step-btn {
        width: 100%;
    }
    .step-counter-badge {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .spectate-container {
        padding: 20px 14px 36px;
    }
    .spectate-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .spectate-search-input {
        width: 100%;
    }
}

.ai-eval-card {
    background: linear-gradient(145deg, #0b1528 0%, #0d1e38 100%);
    border: 1px solid #1e3a66;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.ai-eval-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.ai-eval-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ai-badge-accept {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.ai-badge-review {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.ai-badge-reject {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.ai-score-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    font-weight: 800;
    font-size: 18px;
    color: #38bdf8;
    background: #081220;
    border: 1px solid #1e3556;
    padding: 4px 12px;
    border-radius: 20px;
}

.ai-score-pill span {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
}

.ai-role-recommendation {
    background: #081120;
    border: 1px solid #172c4a;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.ai-role-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.ai-role-title {
    font-size: 13px;
    font-weight: 700;
    color: #60a5fa;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-fit-percent {
    font-size: 11px;
    font-weight: 700;
    background: #1e3a66;
    color: #93c5fd;
    padding: 2px 8px;
    border-radius: 12px;
}

.ai-role-desc {
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.45;
    margin: 0;
}

.ai-summary-box {
    background: #070e1a;
    border-left: 3px solid #3b82f6;
    padding: 10px 12px;
    border-radius: 0 6px 6px 0;
    font-size: 12.5px;
    color: #e2e8f0;
    line-height: 1.5;
    margin-bottom: 12px;
}

.ai-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

@media (max-width: 580px) {
    .ai-details-grid {
        grid-template-columns: 1fr;
    }
}

.ai-detail-col {
    background: #08111e;
    border: 1px solid #14233a;
    border-radius: 6px;
    padding: 10px;
}

.ai-detail-col-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-col-strengths { color: #34d399; }
.ai-col-risks { color: #f87171; }

.ai-bullet-list {
    margin: 0;
    padding-left: 16px;
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.4;
}

.ai-bullet-list li {
    margin-bottom: 4px;
}

.ai-answer-critique {
    background: #081220;
    border: 1px solid #182c47;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 8px;
    font-size: 12px;
}

.ai-critique-head {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 3px;
    font-size: 11px;
}

.ai-critique-text {
    color: #e2e8f0;
    line-height: 1.4;
}

.ai-probe-box {
    background: #0a1728;
    border: 1px dashed #2563eb;
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 10px;
}

.ai-probe-title {
    font-size: 11px;
    font-weight: 700;
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-probe-text {
    font-size: 12px;
    color: #f1f5f9;
    font-style: italic;
    line-height: 1.45;
}

.ai-btn-analyze {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: #ffffff;
    border: 1px solid #3b82f6;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.ai-btn-analyze:hover {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.ai-btn-analyze:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ai-loading-pulse {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #38bdf8;
    font-size: 13px;
    font-weight: 500;
    padding: 16px;
    justify-content: center;
}

.ai-loading-pulse i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ai-config-notice {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 12px;
    color: #fbbf24;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 12px;
}


@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    .hero {
        background: none !important;
        color: #000000 !important;
        padding: 0 0 20px 0 !important;
        border-bottom: 2px solid #000000 !important;
    }
    .hero h1, .hero p {
        color: #000000 !important;
    }
    .sidebar,
    .quickbar,
    #back-to-top,
    #reading-progress {
        display: none !important;
    }
    .layout {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
    }
    .guide {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
}
