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

        :root {
            --cyan: #06b6d4;
            --cyan-dark: #0891b2;
            --cyan-light: rgba(6, 182, 212, 0.1);
            --cyan-text: #67e8f9;
            --bg: #0f172a;
            --surface: #1e293b;
            --surface-hover: #334155;
            --border: #334155;
            --border-focus: #06b6d4;
            --text: #f8fafc;
            --text-muted: #94a3b8;
            --text-hint: #64748b;
            --red: #ef4444;
            --amber: #f59e0b;
            --green: #10b981;
            --radius: 10px;
            --radius-sm: 6px;
            --nav-bg: #0a0a0a;
            --nav-text: rgba(255, 255, 255, 0.7);
            --nav-text-active: #fff;
            --nav-border: rgba(255, 255, 255, 0.07);
            --nav-icon-border: rgba(255, 255, 255, 0.15);
            --nav-icon-bg: rgba(255, 255, 255, 0.05);
        }

        [data-theme="light"] {
            --bg: #f1f5f9;
            --surface: #fff;
            --surface-hover: #f8fafc;
            --border: #e2e8f0;
            --border-focus: #0891b2;
            --text: #0f172a;
            --text-muted: #475569;
            --text-hint: #94a3b8;
            --cyan-light: rgba(6, 182, 212, 0.08);
            --cyan-text: #0891b2;
            --nav-bg: #fff;
            --nav-text: rgba(15, 23, 42, 0.65);
            --nav-text-active: #0f172a;
            --nav-border: rgba(0, 0, 0, 0.08);
            --nav-icon-border: rgba(0, 0, 0, 0.12);
            --nav-icon-bg: rgba(0, 0, 0, 0.04);
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
            background: var(--bg);
            color: var(--text);
            min-height: 100vh;
            line-height: 1.5
        }

        /* NAV */
        .nav {
            background: var(--nav-bg);
            padding: 0 2.5rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 64px;
            position: sticky;
            top: 0;
            z-index: 100;
            border-bottom: 1px solid var(--nav-border)
        }

        .nav-brand {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none
        }

        .nav-logo {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            background: linear-gradient(135deg, #06b6d4, #0891b2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 13px;
            color: #000;
            letter-spacing: -0.5px
        }

        .nav-name {
            font-size: 16px;
            color: var(--nav-text-active);
            font-weight: 600;
            letter-spacing: -0.3px
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 2rem
        }

        .nav-links a {
            font-size: 14px;
            color: var(--nav-text);
            text-decoration: none;
            font-weight: 400;
            transition: color .2s
        }

        .nav-links a:hover,
        .nav-links a.active {
            color: var(--nav-text-active)
        }

        .nav-links a.active {
            font-weight: 500
        }

        .nav-right {
            display: flex;
            align-items: center;
            gap: 1.5rem
        }

        .nav-btn {
            font-size: 13px;
            color: var(--cyan);
            font-weight: 500;
            text-decoration: none;
            border: 1px solid var(--cyan);
            padding: 7px 18px;
            border-radius: 6px;
            transition: all .2s;
            white-space: nowrap
        }

        .nav-btn:hover {
            background: var(--cyan);
            color: #000
        }

        .theme-toggle {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            border: 1px solid var(--nav-icon-border);
            background: var(--nav-icon-bg);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all .2s;
            flex-shrink: 0
        }

        .theme-toggle:hover {
            border-color: var(--cyan)
        }

        .theme-toggle svg {
            width: 16px;
            height: 16px;
            stroke: var(--nav-text);
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round
        }

        /* LAYOUT */
        .page {
            max-width: 920px;
            margin: 0 auto;
            padding: 2rem 1.5rem 4rem
        }

        /* HERO */
        .form-hero {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 2rem;
            margin-bottom: 1.5rem
        }

        .hero-top {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 16px
        }

        .hero-logo {
            width: 42px;
            height: 42px;
            background: linear-gradient(135deg, #06b6d4, #0891b2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 14px;
            color: #000
        }

        .hero-co {
            font-size: 14px;
            color: var(--text-muted);
            font-weight: 500
        }

        .hero-title {
            font-size: 24px;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 8px;
            letter-spacing: -0.5px
        }

        .hero-sub {
            font-size: 14px;
            color: var(--text-muted);
            line-height: 1.7
        }

        .hero-tags {
            display: flex;
            gap: 8px;
            margin-top: 14px;
            flex-wrap: wrap
        }

        .htag {
            font-size: 12px;
            padding: 4px 12px;
            border-radius: 20px;
            font-weight: 500;
            background: var(--surface-hover);
            border: 1px solid var(--border);
            color: var(--text)
        }

        .htag-cyan {
            color: var(--cyan-text);
            border-color: var(--cyan-dark);
            background: var(--cyan-light)
        }

        .htag-green {
            color: #6ee7b7;
            border-color: #0f6e56;
            background: rgba(16, 185, 129, 0.1)
        }

        .htag-amber {
            color: #fcd34d;
            border-color: #854f0b;
            background: rgba(245, 158, 11, 0.1)
        }

        /* STEPS */
        .steps {
            display: flex;
            gap: 0;
            margin-bottom: 1.75rem;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            overflow: hidden;
            background: var(--surface)
        }

        .step-tab {
            flex: 1;
            padding: 12px 8px;
            text-align: center;
            font-size: 12px;
            color: var(--text-muted);
            border-right: 1px solid var(--border);
            cursor: pointer;
            transition: all .2s;
            user-select: none;
            line-height: 1.4
        }

        .step-tab:last-child {
            border-right: none
        }

        .step-tab.active {
            background: var(--cyan-light);
            color: var(--cyan-text);
            font-weight: 500;
            border-bottom: 2px solid var(--cyan)
        }

        .step-tab.done {
            background: var(--surface-hover);
            color: var(--text)
        }

        .step-tab span {
            display: block;
            font-size: 10px;
            opacity: .7;
            margin-top: 2px
        }

        /* PANELS */
        .panel {
            display: none
        }

        .panel.active {
            display: block;
            animation: fadeIn .3s ease
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(6px)
            }

            to {
                opacity: 1;
                transform: translateY(0)
            }
        }

        /* CARDS */
        .fcard {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 1.75rem;
            margin-bottom: 1.25rem
        }

        .fcard-title {
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: var(--cyan-text);
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 8px
        }

        .fcard-title svg {
            width: 16px;
            height: 16px;
            flex-shrink: 0
        }

        .role-notice {
            background: rgba(6, 182, 212, 0.06);
            border: 1px solid var(--cyan-dark);
            border-radius: var(--radius-sm);
            padding: 10px 14px;
            font-size: 12px;
            color: var(--cyan-text);
            margin-bottom: 1.25rem;
            line-height: 1.6
        }

        .warn-notice {
            background: rgba(245, 158, 11, 0.06);
            border: 1px solid rgba(245, 158, 11, 0.3);
            border-radius: var(--radius-sm);
            padding: 10px 14px;
            font-size: 12px;
            color: #fcd34d;
            margin-bottom: 1.25rem;
            line-height: 1.6
        }

        /* FIELDS */
        .field {
            margin-bottom: 1.25rem
        }

        .field:last-child {
            margin-bottom: 0
        }

        .grid2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px
        }

        .grid3 {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 16px
        }

        label {
            display: block;
            font-size: 13px;
            font-weight: 500;
            color: var(--text);
            margin-bottom: 7px
        }

        .req {
            color: var(--red);
            margin-left: 2px
        }

        input[type=text],
        input[type=email],
        input[type=tel],
        input[type=number],
        input[type=url],
        input[type=date],
        select,
        textarea {
            width: 100%;
            padding: 10px 13px;
            font-size: 13px;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            background: rgba(15, 23, 42, 0.6);
            color: var(--text);
            font-family: inherit;
            transition: all .2s
        }

        [data-theme="light"] input[type=text],
        [data-theme="light"] input[type=email],
        [data-theme="light"] input[type=tel],
        [data-theme="light"] input[type=number],
        [data-theme="light"] input[type=url],
        [data-theme="light"] input[type=date],
        [data-theme="light"] select,
        [data-theme="light"] textarea {
            background: #fff
        }

        input:focus,
        select:focus,
        textarea:focus {
            outline: none;
            border-color: var(--border-focus);
            box-shadow: 0 0 0 3px var(--cyan-light)
        }

        textarea {
            resize: vertical;
            min-height: 90px;
            line-height: 1.6
        }

        .hint {
            font-size: 11px;
            color: var(--text-hint);
            margin-top: 5px
        }

        /* RADIO / CHECK */
        .check-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 9px
        }

        .cg1 {
            grid-template-columns: 1fr
        }

        .cg3 {
            grid-template-columns: 1fr 1fr 1fr
        }

        .check-item,
        .radio-item {
            display: flex;
            align-items: flex-start;
            gap: 9px;
            font-size: 13px;
            color: var(--text);
            cursor: pointer;
            padding: 9px 11px;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            background: var(--surface);
            transition: all .2s;
            line-height: 1.4
        }

        .check-item:hover,
        .radio-item:hover {
            border-color: var(--text-muted);
            background: var(--surface-hover)
        }

        .check-item:has(input:checked),
        .radio-item:has(input:checked) {
            border-color: var(--cyan);
            background: var(--cyan-light)
        }

        .check-item:has(input:checked) span,
        .radio-item:has(input:checked) span {
            color: var(--cyan-text)
        }

        .check-item input,
        .radio-item input {
            width: 15px;
            height: 15px;
            accent-color: var(--cyan);
            flex-shrink: 0;
            margin-top: 2px;
            cursor: pointer
        }

        /* SKILL LEVEL GRID */
        .skill-grid {
            display: grid;
            gap: 10px
        }

        .skill-row {
            display: grid;
            grid-template-columns: 200px 1fr;
            align-items: center;
            gap: 12px;
            padding: 8px 12px;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            background: var(--surface)
        }

        .skill-name {
            font-size: 12px;
            color: var(--text);
            font-weight: 500
        }

        .skill-levels {
            display: flex;
            gap: 6px
        }

        .lvl-btn {
            flex: 1;
            padding: 5px 4px;
            font-size: 11px;
            text-align: center;
            border: 1px solid var(--border);
            border-radius: 4px;
            cursor: pointer;
            color: var(--text-muted);
            background: transparent;
            transition: all .15s;
            white-space: nowrap
        }

        .lvl-btn:hover {
            border-color: var(--text-muted);
            color: var(--text)
        }

        .lvl-btn.sel-none {
            border-color: #ef4444;
            background: rgba(239, 68, 68, 0.12);
            color: #fca5a5
        }

        .lvl-btn.sel-basic {
            border-color: #f59e0b;
            background: rgba(245, 158, 11, 0.12);
            color: #fcd34d
        }

        .lvl-btn.sel-good {
            border-color: #06b6d4;
            background: var(--cyan-light);
            color: var(--cyan-text)
        }

        .lvl-btn.sel-expert {
            border-color: #10b981;
            background: rgba(16, 185, 129, 0.12);
            color: #6ee7b7
        }

        /* BUTTONS */
        .btn-row {
            display: flex;
            gap: 12px;
            margin-top: 1.75rem
        }

        .btn-primary {
            flex: 1;
            padding: 13px;
            background: var(--cyan);
            color: #000;
            border: none;
            border-radius: var(--radius-sm);
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            font-family: inherit;
            transition: all .2s
        }

        .btn-primary:hover {
            background: var(--cyan-text);
            transform: translateY(-1px)
        }

        .btn-back {
            padding: 13px 22px;
            background: transparent;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            font-size: 14px;
            color: var(--text);
            cursor: pointer;
            font-family: inherit;
            transition: all .2s
        }

        .btn-back:hover {
            background: var(--surface-hover);
            border-color: var(--text-muted)
        }

        /* PROGRESS */
        .prog-wrap {
            background: var(--surface);
            border-radius: 99px;
            height: 5px;
            margin-bottom: 1.5rem;
            border: 1px solid var(--border)
        }

        .prog-bar {
            height: 5px;
            border-radius: 99px;
            background: var(--cyan);
            transition: width .4s ease;
            box-shadow: 0 0 8px var(--cyan)
        }

        /* ASSESSMENT */
        .assess-hero {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 2rem;
            margin-bottom: 1.5rem
        }

        .assess-title {
            font-size: 22px;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 8px;
            letter-spacing: -0.5px
        }

        .assess-sub {
            font-size: 13px;
            color: var(--text-muted);
            line-height: 1.7
        }

        .rules-row {
            display: flex;
            gap: 8px;
            margin-top: 14px;
            flex-wrap: wrap
        }

        .rule-badge {
            font-size: 11px;
            padding: 5px 11px;
            border-radius: 20px;
            font-weight: 500
        }

        .rb-red {
            background: rgba(239, 68, 68, 0.12);
            color: #fca5a5;
            border: 1px solid rgba(239, 68, 68, 0.3)
        }

        .rb-amber {
            background: rgba(245, 158, 11, 0.12);
            color: #fcd34d;
            border: 1px solid rgba(245, 158, 11, 0.3)
        }

        .rb-teal {
            background: rgba(16, 185, 129, 0.12);
            color: #6ee7b7;
            border: 1px solid rgba(16, 185, 129, 0.3)
        }

        .q-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 1.75rem
        }

        .q-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.25rem
        }

        .q-counter {
            font-size: 13px;
            color: var(--text-muted);
            font-weight: 500
        }

        .cat-badge {
            font-size: 11px;
            padding: 4px 11px;
            border-radius: 20px;
            font-weight: 500
        }

        .cat-teal {
            background: rgba(16, 185, 129, 0.12);
            color: #6ee7b7
        }

        .cat-purple {
            background: rgba(99, 102, 241, 0.12);
            color: #a5b4fc
        }

        .cat-coral {
            background: rgba(239, 68, 68, 0.1);
            color: #fca5a5
        }

        .cat-cyan {
            background: var(--cyan-light);
            color: var(--cyan-text)
        }

        .timer-row {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 1.25rem;
            background: var(--surface-hover);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 13px
        }

        .timer-svg {
            width: 54px;
            height: 54px;
            flex-shrink: 0
        }

        .timer-info strong {
            display: block;
            font-size: 13px;
            font-weight: 600;
            color: var(--text)
        }

        .timer-info p {
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 3px;
            line-height: 1.5
        }

        .q-text {
            font-size: 15px;
            font-weight: 500;
            color: var(--text);
            line-height: 1.7;
            margin-bottom: 1.25rem
        }

        .paste-warn {
            background: rgba(245, 158, 11, 0.08);
            border: 1px solid rgba(245, 158, 11, 0.3);
            border-radius: var(--radius-sm);
            padding: 8px 12px;
            font-size: 12px;
            color: #fcd34d;
            margin-bottom: 10px;
            display: none;
            align-items: center;
            gap: 6px;
            font-weight: 500
        }

        .answer-box {
            width: 100%;
            padding: 12px;
            font-size: 13px;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            background: var(--surface-hover);
            color: var(--text);
            font-family: inherit;
            resize: none;
            min-height: 140px;
            line-height: 1.65;
            transition: border-color .15s, box-shadow .15s
        }

        .answer-box:focus {
            outline: none;
            border-color: var(--cyan);
            box-shadow: 0 0 0 3px var(--cyan-light);
            background: var(--surface)
        }

        .answer-box:disabled {
            opacity: .5;
            cursor: not-allowed
        }

        .char-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 7px;
            margin-bottom: 1.25rem
        }

        .char-count {
            font-size: 11px;
            color: var(--text-muted)
        }

        .time-up-msg {
            font-size: 11px;
            color: #fca5a5;
            font-weight: 500;
            display: none;
            align-items: center;
            gap: 5px
        }

        .q-btn-row {
            display: flex;
            gap: 10px
        }

        .btn-skip {
            padding: 11px 18px;
            background: transparent;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            font-size: 13px;
            color: var(--text-muted);
            cursor: pointer;
            font-family: inherit;
            transition: all .2s
        }

        .btn-skip:hover {
            background: var(--surface-hover)
        }

        .btn-next {
            flex: 1;
            padding: 11px;
            background: var(--cyan);
            color: #000;
            border: none;
            border-radius: var(--radius-sm);
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            font-family: inherit;
            transition: all .2s
        }

        .btn-next:hover {
            opacity: .9
        }

        .btn-next:disabled {
            background: var(--surface-hover);
            color: var(--text-muted);
            cursor: not-allowed
        }

        /* DONE */
        .done-card {
            background: var(--surface);
            border: 1px solid var(--cyan-dark);
            border-radius: var(--radius);
            padding: 3rem 2rem;
            text-align: center;
            display: none
        }

        .done-icon {
            width: 64px;
            height: 64px;
            background: var(--cyan-light);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem;
            font-size: 28px;
            color: var(--cyan-text);
            border: 1px solid var(--cyan-dark)
        }

        .done-title {
            font-size: 24px;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 8px
        }

        .done-sub {
            font-size: 14px;
            color: var(--text-muted);
            line-height: 1.7;
            margin-bottom: 1.5rem
        }

        .stats-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-bottom: 1.5rem
        }

        .stat {
            background: var(--surface-hover);
            border-radius: var(--radius-sm);
            padding: 14px;
            border: 1px solid var(--border)
        }

        .stat-val {
            font-size: 26px;
            font-weight: 700;
            color: var(--cyan)
        }

        .stat-lbl {
            font-size: 11px;
            color: var(--text-muted);
            margin-top: 3px
        }

        /* ERROR */
        .error-border {
            border-color: var(--red) !important;
            box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15) !important
        }

        /* DATE */
        .date-wrap {
            position: relative;
            display: flex;
            align-items: center;
            cursor: pointer
        }

        .date-wrap input[type=date] {
            flex: 1;
            padding-left: 2.2rem;
            cursor: pointer
        }

        .date-wrap input[type=date]::-webkit-calendar-picker-indicator {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            opacity: 0;
            cursor: pointer
        }

        .date-icon {
            position: absolute;
            left: 10px;
            width: 15px;
            height: 15px;
            stroke: var(--text-muted);
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
            pointer-events: none;
            z-index: 1
        }

        /* FILE */
        .file-drop {
            border: 2px dashed var(--border);
            border-radius: var(--radius-sm);
            padding: 1.5rem;
            text-align: center;
            cursor: pointer;
            transition: all .2s;
            background: var(--surface)
        }

        .file-drop:hover,
        .file-drop.drag {
            border-color: var(--cyan);
            background: var(--cyan-light)
        }

        .file-drop p {
            font-size: 13px;
            color: var(--text-muted);
            margin-top: 6px
        }

        .file-drop strong {
            font-size: 13px;
            color: var(--cyan-text)
        }

        .file-name {
            font-size: 12px;
            color: var(--green);
            margin-top: 6px;
            display: none
        }

        .file-input-hidden {
            display: none
        }

        @media(max-width:640px) {

            .grid2,
            .grid3 {
                grid-template-columns: 1fr
            }

            .check-grid,
            .cg3 {
                grid-template-columns: 1fr
            }

            .steps {
                flex-wrap: wrap
            }

            .step-tab {
                min-width: 50%;
                border-bottom: 1px solid var(--border)
            }

            .skill-row {
                grid-template-columns: 1fr;
                gap: 6px
            }

            .stats-row {
                grid-template-columns: 1fr 1fr
            }

            .nav-links {
                display: none
            }
        }
