﻿:root {
            --ink: #00254c;
            --muted: #607086;
            --page-start: #f4f7fb;
            --page-end: #e8eef6;
            --surface: rgba(255, 255, 255, 0.9);
            --surface-strong: rgba(255, 255, 255, 0.98);
            --line: rgba(0, 37, 76, 0.12);
            --accent: #0d6efd;
            --accent-deep: #00254c;
            --action-bg: #00254c;
            --action-bg-hover: #0d3a6d;
            --action-shadow: 0 16px 32px rgba(0, 37, 76, 0.22);
            --teal: #145da0;
            --gold: #c7a34b;
            --shadow: 0 24px 70px rgba(0, 37, 76, 0.14);
        }

        :root[data-theme='dark'] {
            --ink: #f1f5f9;
            --muted: #94a3b8;
            --page-start: #0f172a;
            --page-end: #0f172a;
            --surface: #0f172a;
            --surface-strong: #1e293b;
            --line: rgba(255, 255, 255, 0.1);
            --accent: #3b82f6;
            --accent-deep: #60a5fa;
            --action-bg: #2563eb;
            --action-bg-hover: #1d4ed8;
            --action-shadow: 0 18px 36px rgba(37, 99, 235, 0.32);
            --teal: #60a5fa;
            --gold: #d7bd69;
            --shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
        }

        @media (prefers-color-scheme: dark) {
            :root:not([data-theme='light']) {
                --ink: #f1f5f9;
                --muted: #94a3b8;
                --page-start: #0f172a;
                --page-end: #0f172a;
                --surface: #0f172a;
                --surface-strong: #1e293b;
                --line: rgba(255, 255, 255, 0.1);
                --accent: #3b82f6;
                --accent-deep: #60a5fa;
                --action-bg: #2563eb;
                --action-bg-hover: #1d4ed8;
                --action-shadow: 0 18px 36px rgba(37, 99, 235, 0.32);
                --teal: #60a5fa;
                --gold: #d7bd69;
                --shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
            }
        }

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            font-family: 'Manrope', sans-serif;
            color: var(--ink);
            background:
                radial-gradient(circle at top left, rgba(13, 110, 253, 0.12), transparent 28%),
                radial-gradient(circle at top right, rgba(0, 37, 76, 0.12), transparent 24%),
                linear-gradient(180deg, var(--page-start) 0%, var(--page-end) 100%);
        }

        body::before {
            content: '';
            position: fixed;
            inset: 0;
            background-image:
                linear-gradient(rgba(0, 37, 76, 0.04) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 37, 76, 0.04) 1px, transparent 1px);
            background-size: 34px 34px;
            pointer-events: none;
            opacity: 0.45;
        }

        :root[data-theme='dark'] body {
            background: var(--surface);
        }

        :root[data-theme='dark'] body::before {
            opacity: 0.18;
        }

        :root[data-theme='dark'] .hero-board {
            background: var(--surface-strong);
        }

        @media (prefers-color-scheme: dark) {
            :root:not([data-theme='light']) body {
                background: var(--surface);
            }

            :root:not([data-theme='light']) body::before {
                opacity: 0.18;
            }

            :root:not([data-theme='light']) .hero-board {
                background: var(--surface-strong);
            }
        }

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

        .container {
            position: relative;
            z-index: 1;
            width: min(1160px, calc(100% - 2rem));
            margin: 0 auto;
        }

        .site-header {
            position: static;
            z-index: 50;
            padding: 1rem 0;
            background: rgba(244, 247, 251, 0.8);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }

        :root[data-theme='dark'] .site-header {
            background: rgba(15, 23, 42, 0.78);
        }

        @media (prefers-color-scheme: dark) {
            :root:not([data-theme='light']) .site-header {
                background: rgba(15, 23, 42, 0.78);
            }
        }

        .header-panel {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
            padding: 1rem 1.2rem;
            border: 1px solid var(--line);
            border-radius: 12px;
            background: var(--surface-strong);
            box-shadow: var(--shadow);
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 0.8rem;
            font-family: 'Space Grotesk', sans-serif;
            font-weight: 700;
            letter-spacing: -0.04em;
        }

        .brand-mark {
            width: 5.2rem;
            height: 3rem;
            display: block;
            object-fit: contain;
            padding: 0.35rem 0.55rem;
            border-radius: 8px;
            background: var(--ink);
            box-shadow: 0 10px 24px rgba(0, 37, 76, 0.18);
        }

        :root[data-theme='dark'] .brand-mark {
            background: transparent;
            box-shadow: none;
        }

        @media (prefers-color-scheme: dark) {
            :root:not([data-theme='light']) .brand-mark {
                background: transparent;
                box-shadow: none;
            }
        }

        .brand-copy small {
            display: block;
            color: var(--muted);
            font-family: 'Manrope', sans-serif;
            font-size: 0.78rem;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }

        .nav-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
        }

        .theme-toggle {
            min-width: 8.5rem;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 3rem;
            padding: 0 1.2rem;
            border-radius: 6px;
            border: 1px solid transparent;
            font-weight: 700;
            transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
        }

        .btn:hover {
            transform: translateY(-1px);
        }

        .btn-primary {
            color: white;
            background: var(--action-bg);
            box-shadow: var(--action-shadow);
        }

        .btn-primary:hover {
            color: white;
            background: var(--action-bg-hover);
        }

        .btn-secondary {
            color: var(--ink);
            background: rgba(0, 37, 76, 0.04);
            border-color: rgba(0, 37, 76, 0.12);
        }

        .pwa-install-button[hidden],
        .pwa-install-hint[hidden] {
            display: none !important;
        }

        .pwa-install-hint {
            position: fixed;
            right: 1rem;
            bottom: 1rem;
            z-index: 70;
            display: flex;
            align-items: center;
            gap: 1rem;
            width: min(28rem, calc(100% - 2rem));
            padding: 1rem;
            border: 1px solid var(--line);
            border-radius: 10px;
            background: var(--surface-strong);
            box-shadow: var(--shadow);
        }

        .pwa-install-hint strong,
        .pwa-install-hint span {
            display: block;
        }

        .pwa-install-hint strong {
            margin-bottom: 0.2rem;
            color: var(--ink);
            font-family: 'Space Grotesk', sans-serif;
        }

        .pwa-install-hint span {
            color: var(--muted);
            font-size: 0.9rem;
            line-height: 1.45;
        }

        .pwa-install-hint button {
            flex: 0 0 auto;
            min-height: 2.4rem;
            padding: 0 0.85rem;
            border: 1px solid var(--line);
            border-radius: 6px;
            background: rgba(0, 37, 76, 0.04);
            color: var(--ink);
            font-weight: 700;
            cursor: pointer;
        }

        .profile-menu {
            position: relative;
        }

        .profile-menu-toggle {
            display: inline-flex;
            align-items: center;
            gap: 0.65rem;
            min-height: 3rem;
            max-width: 16rem;
            padding: 0.35rem 0.8rem 0.35rem 0.35rem;
            border: 1px solid var(--line);
            border-radius: 999px;
            background: rgba(0, 37, 76, 0.04);
            color: var(--ink);
            font: inherit;
            font-weight: 800;
            cursor: pointer;
        }

        .profile-menu-toggle img {
            width: 2.25rem;
            height: 2.25rem;
            border-radius: 999px;
            object-fit: cover;
            background: var(--surface-strong);
            border: 1px solid var(--line);
        }

        .profile-menu-toggle span {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .profile-menu-dropdown {
            position: absolute;
            top: calc(100% + 0.55rem);
            right: 0;
            min-width: 12rem;
            padding: 0.45rem;
            border: 1px solid var(--line);
            border-radius: 10px;
            background: var(--surface-strong);
            box-shadow: var(--shadow);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-0.25rem);
            transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
        }

        .profile-menu:focus-within .profile-menu-dropdown,
        .profile-menu:hover .profile-menu-dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .profile-menu-dropdown a,
        .profile-menu-dropdown button {
            display: flex;
            width: 100%;
            min-height: 2.5rem;
            align-items: center;
            padding: 0 0.75rem;
            border: 0;
            border-radius: 7px;
            background: transparent;
            color: var(--ink);
            font: inherit;
            font-weight: 700;
            text-align: left;
            cursor: pointer;
        }

        .profile-menu-dropdown a:hover,
        .profile-menu-dropdown button:hover {
            background: rgba(0, 37, 76, 0.06);
        }

        .profile-summary-card {
            text-align: center;
            align-items: center;
        }

        .profile-avatar-large {
            width: 7.5rem;
            height: 7.5rem;
            margin: 0 auto 1rem;
            border-radius: 999px;
            object-fit: cover;
            background: var(--surface-strong);
            border: 4px solid rgba(13, 110, 253, 0.14);
            box-shadow: 0 18px 42px rgba(0, 37, 76, 0.16);
        }

        .profile-status {
            display: inline-flex;
            align-items: center;
            min-height: 2.2rem;
            margin-top: 0.5rem;
            padding: 0 0.9rem;
            border-radius: 999px;
            background: rgba(20, 93, 160, 0.1);
            color: var(--teal);
            font-size: 0.85rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }

        .profile-chip-list {
            display: flex;
            flex-wrap: wrap;
            gap: 0.65rem;
            margin-top: 1rem;
        }

        .profile-chip-list span {
            display: inline-flex;
            align-items: center;
            min-height: 2.3rem;
            padding: 0 0.9rem;
            border-radius: 999px;
            background: rgba(13, 110, 253, 0.08);
            color: var(--ink);
            font-weight: 800;
        }

        .profile-stats-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 0.8rem;
            margin-bottom: 1rem;
        }

        .profile-stat-card {
            padding: 1rem;
            border: 1px solid var(--line);
            border-radius: 10px;
            background: var(--surface-strong);
            box-shadow: 0 14px 34px rgba(0, 37, 76, 0.08);
        }

        .profile-stat-card span {
            display: block;
            color: var(--muted);
            font-size: 0.75rem;
            font-weight: 800;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .profile-stat-card strong {
            display: block;
            margin-top: 0.45rem;
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1.45rem;
            line-height: 1.1;
        }

        .profile-metrics-dashboard {
            align-items: stretch;
        }

        .profile-score-row {
            padding: 0.85rem 0;
            border-top: 1px solid rgba(0, 37, 76, 0.08);
        }

        .profile-score-row:first-of-type {
            border-top: 0;
        }

        .profile-hero-grid {
            align-items: stretch;
        }

        .profile-summary-card,
        .profile-context-card,
        .profile-skill-card,
        .profile-history-card {
            padding: 1.4rem;
        }

        .profile-summary-card {
            display: grid;
            gap: 1.2rem;
            text-align: left;
            align-content: start;
        }

        .profile-summary-head {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .profile-summary-head .profile-avatar-large {
            width: 6.8rem;
            height: 6.8rem;
            margin: 0;
        }

        .profile-summary-copy {
            display: grid;
            gap: 0.55rem;
        }

        .profile-summary-name {
            font-size: clamp(1.85rem, 3vw, 2.6rem);
            line-height: 0.98;
        }

        .profile-summary-note {
            margin: 0;
        }

        .profile-summary-meta {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 0.75rem;
        }

        .profile-meta-chip {
            padding: 0.95rem 1rem;
            border: 1px solid var(--line);
            border-radius: 10px;
            background: rgba(13, 110, 253, 0.05);
        }

        .profile-meta-chip span,
        .profile-key-item span {
            display: block;
            color: var(--muted);
            font-size: 0.75rem;
            font-weight: 800;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .profile-meta-chip strong,
        .profile-key-item strong {
            display: block;
            margin-top: 0.45rem;
            font-size: 1rem;
            line-height: 1.45;
        }

        .profile-context-card {
            display: grid;
            gap: 1rem;
            align-content: start;
        }

        .profile-key-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.75rem;
        }

        .profile-key-item {
            padding: 0.95rem 1rem;
            border: 1px solid var(--line);
            border-radius: 10px;
            background: var(--surface-strong);
            box-shadow: 0 12px 28px rgba(0, 37, 76, 0.06);
        }

        .profile-history-list {
            display: grid;
            gap: 0.85rem;
        }

        .profile-history-item {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 1rem;
            padding: 1rem 0;
            border-top: 1px solid rgba(0, 37, 76, 0.08);
        }

        .profile-history-item:first-child {
            padding-top: 0;
            border-top: 0;
        }

        .profile-history-copy strong {
            display: block;
            margin-bottom: 0.35rem;
        }

        .profile-history-copy p {
            margin: 0;
            color: var(--muted);
            line-height: 1.65;
        }

        .profile-history-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 2.2rem;
            padding: 0 0.9rem;
            border-radius: 999px;
            background: rgba(20, 93, 160, 0.1);
            color: var(--teal);
            font-size: 0.84rem;
            font-weight: 800;
            white-space: nowrap;
        }

        .profile-history-badge-muted {
            background: rgba(0, 37, 76, 0.06);
            color: var(--muted);
        }

        :root[data-theme='dark'] .profile-meta-chip,
        :root[data-theme='dark'] .profile-history-badge-muted {
            background: rgba(232, 241, 255, 0.06);
        }

        @media (prefers-color-scheme: dark) {
            :root:not([data-theme='light']) .profile-meta-chip,
            :root:not([data-theme='light']) .profile-history-badge-muted {
                background: rgba(232, 241, 255, 0.06);
            }
        }

        :root[data-theme='dark'] .btn-secondary {
            background: rgba(232, 241, 255, 0.06);
            border-color: rgba(232, 241, 255, 0.12);
        }

        :root[data-theme='dark'] .pwa-install-hint button {
            background: rgba(232, 241, 255, 0.06);
        }

        :root[data-theme='dark'] .profile-menu-toggle,
        :root[data-theme='dark'] .profile-menu-dropdown a:hover,
        :root[data-theme='dark'] .profile-menu-dropdown button:hover {
            background: rgba(232, 241, 255, 0.06);
        }

        :root[data-theme='dark'] .skill-filter-panel {
            background: rgba(232, 241, 255, 0.05);
        }

        :root[data-theme='dark'] .skill-filter {
            background: rgba(232, 241, 255, 0.08);
            border-color: rgba(232, 241, 255, 0.12);
        }

        @media (prefers-color-scheme: dark) {
            :root:not([data-theme='light']) .btn-secondary {
                background: rgba(232, 241, 255, 0.06);
                border-color: rgba(232, 241, 255, 0.12);
            }

            :root:not([data-theme='light']) .pwa-install-hint button {
                background: rgba(232, 241, 255, 0.06);
            }

            :root:not([data-theme='light']) .profile-menu-toggle,
            :root:not([data-theme='light']) .profile-menu-dropdown a:hover,
            :root:not([data-theme='light']) .profile-menu-dropdown button:hover {
                background: rgba(232, 241, 255, 0.06);
            }

            :root:not([data-theme='light']) .skill-filter-panel {
                background: rgba(232, 241, 255, 0.05);
            }

            :root:not([data-theme='light']) .skill-filter {
                background: rgba(232, 241, 255, 0.08);
                border-color: rgba(232, 241, 255, 0.12);
            }
        }

        main {
            padding-bottom: 4rem;
        }

        .hero,
        .dashboard {
            display: grid;
            grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
            gap: 1rem;
            margin-top: 1rem;
        }

        .panel,
        .card {
            border: 1px solid var(--line);
            border-radius: 10px;
            background: var(--surface);
            box-shadow: var(--shadow);
        }

        .hero-copy {
            padding: clamp(2rem, 4vw, 3.4rem);
        }

        .hero-board {
            padding: 1.3rem;
            display: grid;
            gap: 1rem;
            background:
                radial-gradient(circle at top right, rgba(13, 110, 253, 0.12), transparent 25%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.86) 100%);
        }

        .eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 0.55rem;
            font-size: 0.82rem;
            font-weight: 800;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: var(--ink);
        }

        .eyebrow::before {
            content: '';
            width: 0.68rem;
            height: 0.68rem;
            border-radius: 999px;
            background: var(--gold);
            box-shadow: 0 0 0 8px rgba(199, 163, 75, 0.14);
        }

        h1,
        h2,
        h3 {
            margin: 0;
            font-family: 'Space Grotesk', sans-serif;
            letter-spacing: -0.04em;
        }

        .hero-copy h1 {
            margin-top: 1rem;
            font-size: clamp(2.6rem, 6vw, 4.8rem);
            line-height: 0.96;
        }

        .highlight {
            color: var(--accent-deep);
        }

        .lead,
        .section-copy,
        .card p,
        .line-item p {
            color: var(--muted);
            line-height: 1.8;
        }

        .lead {
            max-width: 46rem;
            margin: 1.2rem 0 0;
            font-size: 1.08rem;
        }

        .cta-row,
        .badge-row {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
        }

        .cta-row {
            margin-top: 1.5rem;
        }

        .badge-row {
            margin-top: 1rem;
        }

        .soft-chip,
        .line-tag {
            display: inline-flex;
            align-items: center;
            min-height: 2.25rem;
            padding: 0 0.9rem;
            border-radius: 6px;
            background: rgba(0, 37, 76, 0.06);
            color: var(--ink);
            font-size: 0.9rem;
            font-weight: 700;
        }

        .soft-chip.warning {
            color: #8a5a00;
            background: rgba(199, 163, 75, 0.16);
            border: 1px solid rgba(199, 163, 75, 0.28);
        }

        .metric-grid,
        .grid-3,
        .form-grid {
            display: grid;
            gap: 1rem;
        }

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

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

        .metric-card,
        .feature-card,
        .timeline-card,
        .scoreboard-card,
        .cta-panel,
        .session-card {
            padding: 1.4rem;
        }

        .metric-card {
            min-height: 11rem;
            background: var(--surface-strong);
        }

        .metric-card span,
        .score-row span {
            color: var(--muted);
            font-size: 0.88rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }

        .metric-card strong {
            display: block;
            margin: 0.8rem 0 0.45rem;
            font-size: clamp(1.9rem, 3vw, 2.5rem);
        }

        .section {
            margin-top: 2.4rem;
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            gap: 1rem;
            margin-bottom: 1.2rem;
        }

        .section-header h2 {
            font-size: clamp(1.35rem, 2vw, 2rem);
            line-height: 1.18;
            max-width: 34rem;
        }

        .section-copy {
            max-width: 34rem;
            margin: 0;
            font-size: 0.98rem;
            line-height: 1.6;
        }

        .accent-dot {
            width: 0.9rem;
            height: 0.9rem;
            margin-bottom: 1rem;
            border-radius: 999px;
            background: var(--card-accent, var(--accent));
            box-shadow: 0 0 0 10px rgba(20, 33, 61, 0.04);
        }

        .feature-card h3,
        .timeline-card h3 {
            margin-bottom: 0.7rem;
            font-size: 1.08rem;
            line-height: 1.28;
        }

        .step-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 3rem;
            height: 3rem;
            margin-bottom: 1rem;
            border-radius: 8px;
            background: rgba(0, 37, 76, 0.08);
            color: var(--ink);
            font-weight: 800;
        }

        .stack-list {
            display: grid;
            gap: 0.9rem;
            margin-top: 1.4rem;
        }

        .line-item,
        .game-option {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 1rem;
            padding: 1rem 0;
            border-top: 1px solid rgba(0, 37, 76, 0.08);
        }

        .line-item:first-child,
        .game-option:first-child {
            border-top: 0;
            padding-top: 0;
        }

        .line-item strong,
        .game-option strong {
            display: block;
            margin-bottom: 0.35rem;
            font-size: 0.96rem;
        }

        .score-row + .score-row {
            margin-top: 1rem;
        }

        .score-row strong {
            display: block;
            margin-top: 0.3rem;
            font-size: 1.3rem;
        }

        .progress-bar {
            margin-top: 0.7rem;
            width: 100%;
            height: 0.7rem;
            border-radius: 999px;
            background: rgba(0, 37, 76, 0.08);
            overflow: hidden;
        }

        .progress-bar span {
            display: block;
            height: 100%;
            border-radius: inherit;
            background: linear-gradient(135deg, var(--ink), var(--accent));
        }

        .hero-note {
            margin-top: 1.4rem;
            padding: 1rem 1.1rem;
            border-radius: 8px;
            background: rgba(0, 37, 76, 0.05);
            color: var(--muted);
            line-height: 1.7;
        }

        .alert-message {
            border: 1px solid transparent;
        }

        .alert-error {
            color: #8a1f11;
            background: rgba(220, 53, 69, 0.08);
            border-color: rgba(220, 53, 69, 0.18);
        }

        .alert-success {
            color: #0f5132;
            background: rgba(25, 135, 84, 0.1);
            border-color: rgba(25, 135, 84, 0.18);
        }

        .alert-warning {
            color: #8a5a00;
            background: rgba(199, 163, 75, 0.14);
            border-color: rgba(199, 163, 75, 0.24);
        }

        .checklist {
            display: grid;
            gap: 0.9rem;
            margin-top: 1rem;
        }

        .check-item {
            display: grid;
            gap: 0.2rem;
            padding: 0.9rem 1rem;
            border-radius: 8px;
            background: rgba(0, 37, 76, 0.05);
        }

        .check-item strong {
            font-size: 1rem;
        }

        .check-item span {
            color: var(--muted);
            line-height: 1.7;
        }

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

        .field {
            display: grid;
            gap: 0.55rem;
        }

        .field-full {
            grid-column: 1 / -1;
        }

        .field label {
            font-size: 0.92rem;
            font-weight: 700;
        }

        .input,
        select,
        textarea {
            width: 100%;
            min-height: 3.25rem;
            padding: 0.95rem 1rem;
            border: 1px solid rgba(0, 37, 76, 0.12);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.86);
            color: var(--ink);
            font: inherit;
        }

        .password-field {
            position: relative;
        }

        .password-field .input {
            padding-right: 5.8rem;
        }

        .password-toggle {
            position: absolute;
            top: 50%;
            right: 0.55rem;
            transform: translateY(-50%);
            min-height: 2.2rem;
            padding: 0 0.75rem;
            border: 1px solid rgba(0, 37, 76, 0.12);
            border-radius: 6px;
            background: rgba(0, 37, 76, 0.06);
            color: var(--ink);
            font: inherit;
            font-size: 0.88rem;
            font-weight: 800;
            cursor: pointer;
        }

        .password-toggle:hover {
            background: rgba(0, 37, 76, 0.1);
        }

        .helper-copy,
        .key-copy {
            color: var(--muted);
            line-height: 1.7;
        }

        .access-help {
            margin: 1rem 0 0;
            font-size: 0.95rem;
        }

        .simulator-hero-grid {
            align-items: stretch;
        }

        .simulator-welcome-card,
        .simulator-overview-card,
        .simulator-filter-shell {
            padding: 1.4rem;
        }

        .simulator-welcome-card {
            display: grid;
            gap: 1rem;
            align-content: start;
            background:
                radial-gradient(circle at top right, rgba(13, 110, 253, 0.14), transparent 30%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 100%);
        }

        .simulator-operator-name {
            font-size: clamp(1.9rem, 3vw, 2.7rem);
            line-height: 0.98;
        }

        .simulator-status-row {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
        }

        .simulator-copy {
            margin: 0;
        }

        .simulator-overview-card,
        .simulator-filter-shell {
            display: grid;
            gap: 1rem;
            align-content: start;
        }

        .simulator-overview-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 0.75rem;
        }

        .simulator-overview-item {
            padding: 1rem;
            border: 1px solid var(--line);
            border-radius: 10px;
            background: rgba(13, 110, 253, 0.05);
        }

        .simulator-overview-item span {
            display: block;
            color: var(--muted);
            font-size: 0.75rem;
            font-weight: 800;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .simulator-overview-item strong {
            display: block;
            margin-top: 0.45rem;
            font-size: 1.4rem;
            line-height: 1.1;
        }

        .simulator-filter-copy {
            display: grid;
            gap: 0.45rem;
        }

        .training-grid {
            align-items: stretch;
        }

        .training-card {
            display: flex;
            flex-direction: column;
            min-height: 100%;
            padding: 0;
            overflow: hidden;
        }

        .training-card-media {
            position: relative;
        }

        .training-card-image {
            width: 100%;
            aspect-ratio: 16 / 9;
            object-fit: cover;
            display: block;
            border-radius: 0;
            margin-bottom: 0;
        }

        .training-card-body {
            display: flex;
            flex: 1 1 auto;
            flex-direction: column;
            gap: 0.9rem;
            padding: 1.4rem;
        }

        .training-card-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 0.75rem;
        }

        .training-card-status {
            display: inline-flex;
            align-items: center;
            min-height: 2rem;
            padding: 0 0.8rem;
            border-radius: 999px;
            font-size: 0.78rem;
            font-weight: 800;
            letter-spacing: 0.06em;
            text-transform: uppercase;
        }

        .training-card-status.is-ready {
            background: rgba(25, 135, 84, 0.12);
            color: #0f5132;
        }

        .training-card-status.is-pending {
            background: rgba(199, 163, 75, 0.16);
            color: #8a5a00;
        }

        .training-card-copy {
            margin: 0;
        }

        .training-card-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 0.6rem;
        }

        .training-card-code {
            display: inline-flex;
            align-items: center;
            min-height: 2rem;
            padding: 0 0.75rem;
            border-radius: 999px;
            background: rgba(0, 37, 76, 0.06);
            color: var(--muted);
            font-family: 'Space Grotesk', sans-serif;
            font-size: 0.78rem;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
        }

        .training-card-footer {
            display: grid;
            gap: 0.75rem;
            margin-top: auto;
        }

        .training-card-helper {
            margin: 0;
        }

        .training-card.is-hidden {
            display: none;
        }

        .d-none {
            display: none !important;
        }

        .skill-filter-panel {
            display: flex;
            gap: 0.45rem;
            align-items: center;
            margin-bottom: 1rem;
            padding: 0.55rem;
            overflow-x: auto;
            scrollbar-width: thin;
            border-radius: 10px;
            background: rgba(0, 37, 76, 0.035);
            box-shadow: none;
        }

        .skill-filter-panel::-webkit-scrollbar {
            height: 0.4rem;
        }

        .skill-filter-panel::-webkit-scrollbar-thumb {
            border-radius: 999px;
            background: rgba(0, 37, 76, 0.18);
        }

        .skill-filter {
            display: inline-flex;
            align-items: center;
            gap: 0.38rem;
            min-height: 2.25rem;
            padding: 0.25rem 0.65rem 0.25rem 0.28rem;
            border: 1px solid rgba(0, 37, 76, 0.1);
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.72);
            color: var(--ink);
            font: inherit;
            font-size: 0.86rem;
            font-weight: 750;
            white-space: nowrap;
            cursor: pointer;
            box-shadow: 0 8px 18px rgba(0, 37, 76, 0.06);
            transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
        }

        .skill-filter:hover,
        .skill-filter.is-active {
            border-color: rgba(0, 37, 76, 0.22);
            background: var(--accent-deep);
            color: white;
            transform: translateY(-1px);
        }

        .skill-filter-icon {
            display: inline-grid;
            place-items: center;
            width: 1.55rem;
            height: 1.55rem;
            border-radius: 999px;
            background: var(--accent);
            color: white;
            flex: 0 0 auto;
            font-size: 0.68rem;
            font-weight: 900;
        }

        .skill-filter.is-active .skill-filter-icon,
        .skill-filter:hover .skill-filter-icon {
            background: rgba(255, 255, 255, 0.18);
        }

        .skill-filter-icon img {
            width: 0.95rem;
            height: 0.95rem;
            object-fit: contain;
        }

        .onboarding-card {
            padding: 1.4rem;
        }

        .onboarding-block {
            margin-top: 1.6rem;
            padding-top: 1.4rem;
            border-top: 1px solid rgba(0, 37, 76, 0.08);
        }

        .onboarding-block h3 {
            margin: 0.4rem 0 1rem;
            font-size: 1.35rem;
        }

        .password-field.is-hidden {
            display: none;
        }

        .attention-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 0.75rem;
        }

        .attention-option {
            display: flex;
            align-items: center;
            gap: 0.65rem;
            min-height: 3.5rem;
            padding: 0.8rem;
            border: 1px solid rgba(0, 37, 76, 0.1);
            border-radius: 8px;
            background: var(--surface-strong);
            font-weight: 800;
            cursor: pointer;
        }

        .attention-option input {
            flex: 0 0 auto;
        }

        .attention-icon {
            display: inline-grid;
            place-items: center;
            width: 2rem;
            height: 2rem;
            border-radius: 6px;
            background: var(--ink);
            color: white;
            flex: 0 0 auto;
        }

        .attention-icon img {
            width: 1.2rem;
            height: 1.2rem;
            object-fit: contain;
        }

        .key-copy {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 0.9rem;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: var(--teal);
        }

        :root[data-theme='dark'] .simulator-welcome-card {
            background:
                radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 30%),
                linear-gradient(180deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.94) 100%);
        }

        :root[data-theme='dark'] .simulator-overview-item {
            background: rgba(232, 241, 255, 0.06);
        }

        :root[data-theme='dark'] .training-card-code {
            background: rgba(232, 241, 255, 0.06);
        }

        :root[data-theme='dark'] .training-card-status.is-ready {
            color: #9ee7bf;
            background: rgba(25, 135, 84, 0.18);
        }

        :root[data-theme='dark'] .training-card-status.is-pending {
            color: #f0d78a;
            background: rgba(199, 163, 75, 0.18);
        }

        @media (prefers-color-scheme: dark) {
            :root:not([data-theme='light']) .simulator-welcome-card {
                background:
                    radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 30%),
                    linear-gradient(180deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.94) 100%);
            }

            :root:not([data-theme='light']) .simulator-overview-item {
                background: rgba(232, 241, 255, 0.06);
            }

            :root:not([data-theme='light']) .training-card-code {
                background: rgba(232, 241, 255, 0.06);
            }

            :root:not([data-theme='light']) .training-card-status.is-ready {
                color: #9ee7bf;
                background: rgba(25, 135, 84, 0.18);
            }

            :root:not([data-theme='light']) .training-card-status.is-pending {
                color: #f0d78a;
                background: rgba(199, 163, 75, 0.18);
            }
        }

        .footer {
            padding: 0 0 2.5rem;
            color: var(--muted);
            font-size: 0.95rem;
        }

        @media (max-width: 960px) {
            .hero,
            .dashboard,
            .grid-3,
            .section-header,
            .form-grid {
                grid-template-columns: 1fr;
            }

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

            .header-panel {
                flex-direction: column;
                align-items: flex-start;
            }

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

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

            .profile-summary-meta,
            .profile-key-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .simulator-overview-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }

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

        @media (max-width: 640px) {
            .container {
                width: min(100% - 1rem, 1160px);
            }

            .hero-copy,
            .metric-card,
            .feature-card,
            .timeline-card,
            .scoreboard-card,
            .cta-panel,
            .session-card {
                padding: 1rem;
            }

            .simulator-welcome-card,
            .simulator-overview-card,
            .simulator-filter-shell,
            .training-card-body {
                padding: 1rem;
            }

            .training-card {
                padding: 0;
            }

            .section {
                margin-top: 1.75rem;
            }

            .section-header {
                margin-bottom: 0.9rem;
            }

            .btn {
                width: 100%;
            }

            .profile-menu,
            .profile-menu-toggle {
                width: 100%;
            }

            .profile-menu-toggle {
                justify-content: flex-start;
                max-width: none;
            }

            .profile-menu-dropdown {
                position: static;
                width: 100%;
                margin-top: 0.5rem;
                opacity: 1;
                visibility: visible;
                transform: none;
                box-shadow: none;
            }

            .profile-stats-grid {
                grid-template-columns: 1fr;
            }

            .profile-summary-head {
                flex-direction: column;
                align-items: flex-start;
            }

            .profile-summary-head .profile-avatar-large {
                width: 5.8rem;
                height: 5.8rem;
            }

            .profile-summary-meta,
            .profile-key-grid {
                grid-template-columns: 1fr;
            }

            .simulator-overview-grid {
                grid-template-columns: 1fr;
            }

            .profile-history-item {
                flex-direction: column;
            }

            .profile-history-badge {
                align-self: flex-start;
            }

            .pwa-install-hint {
                left: 0.75rem;
                right: 0.75rem;
                bottom: 0.75rem;
                width: auto;
                align-items: flex-start;
                flex-direction: column;
            }

            .pwa-install-hint button {
                width: 100%;
            }

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

        @media print {
            .site-header,
            .cta-row,
            .btn,
            .footer {
                display: none !important;
            }

            body {
                background: white !important;
                color: black !important;
            }

            body::before {
                display: none !important;
            }

            main {
                padding-bottom: 0;
            }

            .container {
                width: 100%;
            }

            .hero,
            .dashboard,
            .grid-3 {
                display: block;
            }

            .panel,
            .card {
                box-shadow: none !important;
                border: 1px solid #ccc !important;
                background: white !important;
                break-inside: avoid;
                page-break-inside: avoid;
                margin-bottom: 1rem;
            }

            .lead,
            .section-copy,
            .card p,
            .line-item p,
            .metric-card span,
            .score-row span {
                color: #333 !important;
            }
        }
