        :root {
            color-scheme: dark;
            --bg-primary: #11131c;
            --bg-gradient: linear-gradient(180deg, #0f121c 0%, #1a1f2d 80%);
            --panel: #1c202c;
            --panel-soft: #212536;
            --panel-border: rgba(255, 255, 255, 0.08);
            --text-primary: #edf2ff;
            --text-muted: #98a6c4;
            --accent: #2c94cf;
            --accent-strong: #58d4ff;
            --accent-soft: rgba(44, 148, 207, 0.18);
            --radius-lg: 28px;
            --radius-md: 18px;
            --radius-sm: 10px;
            font-family: 'Segoe UI', 'Inter', 'Roboto', system-ui, -apple-system, sans-serif;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            min-height: 100vh;
            background: var(--bg-gradient);
            color: var(--text-primary);
            line-height: 1.6;
            overflow-x: hidden;
        }

        img {
            display: block;
            max-width: 100%;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        button {
            font: inherit;
            border: none;
            cursor: pointer;
            color: inherit;
            background: none;
        }

        .site-shell {
            width: min(1360px, 100%);
            margin: 0 auto;
            padding: 24px clamp(20px, 3vw, 48px);
        }

        body.sticky-nav-enabled .site-shell {
            padding-top: 0;
        }

        .stack-gap > * + * {
            margin-top: clamp(32px, 4vw, 60px);
        }

        header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 24px;
            padding-bottom: clamp(24px, 5vw, 48px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        }

        .sticky-shell {
            position: relative;
            width: 100%;
        }

        body.sticky-nav-enabled .sticky-shell {
            position: sticky;
            top: 0;
            z-index: 40;
            display: flex;
            justify-content: center;
            width: 100vw;
            margin-left: calc(50% - 50vw);
            padding: 0 clamp(2px, 0.8vw, 12px);
        }

        body.sticky-nav-enabled .sticky-shell header {
            width: min(1920px, calc(100vw - clamp(6px, 0.8vw, 28px)));
            padding: clamp(18px, 3vw, 30px);
            margin: 0;
            border-radius: var(--radius-lg);
            border-top-left-radius: 0;
            border-top-right-radius: 0;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-top: none;
            box-shadow: 0 18px 42px rgba(4, 6, 14, 0.8);
            backdrop-filter: blur(18px);
            background: linear-gradient(145deg, rgba(6, 9, 18, 0.95), rgba(16, 21, 34, 0.92));
            border-bottom: none;
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .brand img {
            width: 56px;
            height: 56px;
        }

        .brand-copy {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .brand-title {
            font-size: 1.4rem;
            letter-spacing: 0.12em;
            font-weight: 700;
        }

        .brand-subtitle {
            font-size: 0.85rem;
            color: var(--text-muted);
            letter-spacing: 0.08em;
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 28px;
            font-size: 1rem;
            color: var(--text-muted);
        }

        .nav-links a {
            padding-bottom: 4px;
            border-bottom: 2px solid transparent;
            transition: border-color 0.2s ease, color 0.2s ease;
        }

        .nav-links a:hover {
            color: var(--text-primary);
            border-bottom-color: var(--accent);
        }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 18px;
        }

        .sticky-toggle {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 0.72rem;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--text-muted);
            text-decoration: none;
        }

        .sticky-toggle input {
            position: absolute;
            opacity: 0;
            pointer-events: none;
        }

        .sticky-toggle-track {
            width: 36px;
            height: 18px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.18);
            padding: 2px;
            display: inline-flex;
            align-items: center;
            transition: background 0.2s ease;
        }

        .sticky-toggle-thumb {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.6);
            transition: transform 0.2s ease, background 0.2s ease;
        }

        .sticky-toggle input:checked + .sticky-toggle-track {
            background: var(--accent-soft);
        }

        .sticky-toggle input:checked + .sticky-toggle-track .sticky-toggle-thumb {
            transform: translateX(18px);
            background: var(--accent-strong);
        }

        .sticky-toggle-text {
            color: var(--text-muted);
        }

        .btn {
            padding: 12px 28px;
            border-radius: var(--radius-sm);
            font-weight: 600;
            transition: background 0.2s ease, color 0.2s ease, border 0.2s ease, opacity 0.2s ease;
        }

        .btn-primary {
            background: linear-gradient(115deg, var(--accent), var(--accent-strong));
            color: #04121c;
        }

        .btn-primary:hover {
            opacity: 0.9;
        }

        .btn-secondary {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--panel-border);
            color: var(--text-primary);
        }

        .btn-secondary:hover {
            border-color: var(--accent);
            color: var(--accent-strong);
        }

        .btn.full-width {
            width: 100%;
            justify-content: center;
            text-align: center;
        }

        .auth-hero {
            border-radius: var(--radius-lg);
            background: var(--panel);
            border: 1px solid var(--panel-border);
            padding: clamp(24px, 4vw, 48px);
            display: grid;
            gap: 18px;
            box-shadow: 0 12px 32px rgba(10, 12, 20, 0.55);
        }

        .eyebrow {
            text-transform: uppercase;
            letter-spacing: 0.4em;
            font-size: 0.72rem;
            color: var(--text-muted);
        }

        .status-banner {
            margin-top: 8px;
            padding: 12px 16px;
            border-radius: var(--radius-sm);
            font-size: 0.9rem;
            border: 1px solid rgba(255, 255, 255, 0.08);
        }

        .status-banner.is-success {
            background: rgba(88, 212, 255, 0.12);
            border-color: rgba(88, 212, 255, 0.35);
        }

        .status-banner.is-warning {
            background: rgba(255, 143, 138, 0.12);
            border-color: rgba(255, 143, 138, 0.35);
        }

        .auth-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 20px;
        }

        .auth-card {
            border-radius: var(--radius-md);
            border: 1px solid rgba(255, 255, 255, 0.04);
            padding: clamp(20px, 3vw, 32px);
            background: rgba(4, 7, 15, 0.85);
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
            display: grid;
            gap: 16px;
        }

        .muted-card {
            background: rgba(20, 23, 35, 0.85);
        }

        .auth-form {
            display: grid;
            gap: 14px;
        }

        .field-group {
            display: grid;
            gap: 6px;
        }

        .field-group label {
            font-size: 0.85rem;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--text-muted);
        }

        .auth-form input {
            width: 100%;
            padding: 10px 12px;
            border-radius: var(--radius-sm);
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: rgba(255, 255, 255, 0.03);
            color: var(--text-primary);
        }

        .auth-form input[readonly] {
            cursor: not-allowed;
            opacity: 0.7;
        }

        .captcha-shell {
            border-radius: var(--radius-sm);
            border: 1px dashed rgba(255, 255, 255, 0.2);
            padding: 12px;
            background: rgba(255, 255, 255, 0.02);
            display: flex;
            justify-content: center;
        }

        .error-list {
            border-radius: var(--radius-sm);
            border: 1px solid rgba(255, 143, 138, 0.3);
            background: rgba(255, 143, 138, 0.08);
            padding: 12px 16px;
        }

        .error-list ul {
            list-style: none;
            display: grid;
            gap: 6px;
        }

        .action-row,
        .link-row {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
        }

        .link-row a,
        .link-list a {
            color: var(--accent-strong);
            font-weight: 600;
        }

        .link-list {
            display: grid;
            gap: 8px;
        }

        .hint {
            color: var(--text-muted);
            font-size: 0.95rem;
        }

        .site-footer {
            margin-top: clamp(20px, 3vw, 40px);
            padding: 12px 0 24px;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
        }

        #footer_links {
            position: static !important;
            top: 0 !important;
            margin-top: 4px;
            font-size: 0.85rem;
            display: inline-flex;
            flex-wrap: wrap;
            gap: 7px;
        }

        .version {
            font-size: 0.59rem;
        }

        @media (max-width: 720px) {
            header {
                flex-direction: column;
                align-items: flex-start;
            }

            .nav-actions {
                width: 100%;
                justify-content: flex-start;
                flex-wrap: wrap;
            }
        }
    
