        /* =================================================================
           sys.css — Page-specific styles
           Design tokens (colors, shadows, radius) —— มาจาก theme.css
           โหลดผ่าน brandmenu.css → @import theme.css อัตโนมัติ
           ================================================================= */

        html {
            -webkit-font-smoothing: antialiased;
        }

        body {
            font-family: var(--font-sans);
            background: var(--bg);
            color: var(--ink);
            min-height: 100vh;
            transition: background-color 0.3s ease, color 0.3s ease;
            word-break: keep-all;
            overflow-wrap: break-word;
        }

        body.visible {
            opacity: 1;
        }


        /* ════ LOADING SCREEN ════ */
        #loadScreen {
            position: fixed;
            inset: 0;
            background: #f8fafc;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 28px;
            transition: background-color 0.3s ease;
        }
        @media (prefers-color-scheme: dark) {
            #loadScreen { background: #000000; }
        }

        .ls-logo {
            width: 64px;
            height: 64px;
            border: 1.5px solid rgba(0, 0, 0, 0.15);
            border-radius: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        @media (prefers-color-scheme: dark) {
            .ls-logo { border-color: rgba(255, 255, 255, 0.15); }
        }

        .ls-wordmark {
            text-align: center;
        }

        .ls-title {
            font-size: 14px;
            font-weight: 700;
            color: #000000;
            letter-spacing: .1em;
            text-transform: uppercase;
        }
        @media (prefers-color-scheme: dark) {
            .ls-title { color: rgba(255, 255, 255, .9); }
        }

        .ls-sub {
            font-size: 11.5px;
            color: #52525b;
            margin-top: 5px;
            letter-spacing: .05em;
        }
        @media (prefers-color-scheme: dark) {
            .ls-sub { color: rgba(255, 255, 255, .35); }
        }

        .ls-status {
            display: flex;
            align-items: center;
            gap: 10px;
            background: rgba(0, 0, 0, 0.04);
            border: 1px solid rgba(0, 0, 0, 0.1);
            border-radius: 100px;
            padding: 8px 18px;
            min-width: 220px;
            justify-content: center;
        }
        @media (prefers-color-scheme: dark) {
            .ls-status {
                background: rgba(255, 255, 255, .06);
                border-color: rgba(255, 255, 255, .1);
            }
        }

        .ls-status-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.4);
            flex-shrink: 0;
        }
        @media (prefers-color-scheme: dark) {
            .ls-status-dot { background: rgba(255, 255, 255, .4); }
        }

        .ls-status-dot.spin {
            width: 65px;
            height: 30px;
            position: relative;
            background: none;
            border-radius: 0;
            border: none;
            animation: none;
        }

        .ls-status-dot.spin:before {
            content: "";
            position: absolute;
            border-radius: 50px;
            box-shadow: 0 0 0 3px inset #000;
            animation: l3 0.75s infinite alternate;
        }
        @media (prefers-color-scheme: dark) {
            .ls-status-dot.spin:before { box-shadow: 0 0 0 3px inset #fff; }
        }

        .ls-status-dot.ok {
            background: #16a34a;
            animation: none;
            width: 6px;
            height: 6px;
            border-radius: 50%;
        }

        .ls-status-dot.err {
            background: #dc2626;
            animation: none;
            width: 6px;
            height: 6px;
            border-radius: 50%;
        }
        @media (prefers-color-scheme: dark) {
            .ls-status-dot.ok { background: #4ade80; }
            .ls-status-dot.err { background: #f87171; }
        }

        @keyframes l3 {
            0% { inset: 0 35px 0 0; }
            50% { inset: 0 0 0 0; }
            100% { inset: 0 0 0 35px; }
        }

        .ls-status-text {
            font-size: 12px;
            font-weight: 600;
            color: rgba(0, 0, 0, 0.5);
        }
        @media (prefers-color-scheme: dark) {
            .ls-status-text { color: rgba(255, 255, 255, .55); }
        }

        .ls-progress-wrap {
            width: 200px;
        }

        .ls-bar {
            height: 2px;
            background: rgba(0, 0, 0, 0.08);
            border-radius: 2px;
            overflow: hidden;
        }
        @media (prefers-color-scheme: dark) {
            .ls-bar { background: rgba(255, 255, 255, .08); }
        }

        .ls-bar-fill {
            height: 100%;
            background: rgba(0, 0, 0, 0.4);
            border-radius: 2px;
            width: 0;
            transition: width .4s ease;
        }
        @media (prefers-color-scheme: dark) {
            .ls-bar-fill { background: rgba(255, 255, 255, .5); }
        }

        #loadScreen.fade-out {
            animation: fadeOut .4s ease forwards;
        }


        /* ════ INFO MODAL ════ */
        #infoModal {
            position: fixed;
            inset: 0;
            background: rgba(13, 17, 23, .6);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 8888;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
            opacity: 0;
            pointer-events: none;
            transition: opacity .22s ease;
        }

        #infoModal.visible {
            opacity: 1;
            pointer-events: all;
        }

        .modal-card {
            background: var(--white);
            border-radius: 16px;
            border: 1px solid var(--ink-15);
            box-shadow: 0 24px 64px rgba(0, 0, 0, .2);
            width: 100%;
            max-width: 360px;
            overflow: hidden;
            transform: translateY(12px) scale(.97);
            transition: transform .28s cubic-bezier(.22, 1, .36, 1);
        }

        #infoModal.visible .modal-card {
            transform: translateY(0) scale(1);
        }

        .modal-top {
            background: var(--white);
            padding: 24px 24px 0;
            text-align: center;
        }

        .modal-top-icon {
            width: 48px;
            height: 48px;
            background: #dcfce7;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            color: #16a34a;
            margin: 0 auto 16px;
        }

        .modal-top-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--ink);
            letter-spacing: -.01em;
            margin-bottom: 8px;
        }

        .modal-top-sub {
            font-size: 14px;
            color: var(--ink-50);
            line-height: 1.5;
            max-width: 90%;
            margin: 0 auto;
        }

        .modal-body {
            padding: 24px;
        }

        .modal-notice {
            background: var(--ink-07);
            border: 1px solid var(--ink-15);
            border-radius: var(--r-md);
            padding: 13px 15px;
            font-size: 13px;
            color: var(--ink-50);
            line-height: 1.7;
            margin-bottom: 14px;
        }

        .modal-btn {
            width: 100%;
            border: none;
            border-radius: var(--r-sm);
            padding: 11px;
            font-family: inherit;
            font-size: 13.5px;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            text-decoration: none;
            transition: background .15s, border-color .15s;
        }

        .modal-btn.primary {
            background: var(--ink);
            color: var(--white);
            margin-bottom: 8px;
        }

        .modal-btn.primary:hover {
            background: var(--ink-70);
        }

        .modal-btn.ghost {
            background: none;
            border: 1px solid var(--ink-15);
            color: var(--ink-50);
        }

        .modal-btn.ghost:hover {
            border-color: var(--ink-30);
            color: var(--ink);
        }

        .modal-actions {
            display: flex;
            flex-direction: column;
            gap: 8px;
            width: 100%;
        }

        @media (min-width: 640px) {
            .modal-actions {
                flex-direction: row;
                gap: 12px;
            }
        }

        /* Site Header (Premium Glassmorphism) */
        .site-header {
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            border-bottom: 1px solid rgba(0, 0, 0, 0.04);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 4px 24px rgba(0, 0, 0, 0.02);
            position: sticky;
            top: 0;
            z-index: 100;
            transition: var(--transition);
        }

        .header-inner {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 32px;
            height: 64px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
        }

        .header-brand {
            display: flex;
            align-items: center;
            gap: 14px;
            text-decoration: none;
            color: inherit;
            flex-shrink: 0;
        }

        /* Desktop Navigation */
        .header-nav {
            display: flex;
            align-items: center;
            gap: 2px;
            margin-left: 24px;
            margin-right: auto;
        }
        .nav-link {
            font-size: 12.5px;
            font-weight: 600;
            color: var(--ink-50);
            text-decoration: none;
            transition: var(--transition);
            padding: 8px 14px;
            border-radius: 8px;
            position: relative;
            letter-spacing: -0.01em;
        }
        .nav-link::after {
            content: '';
            position: absolute;
            bottom: 2px;
            left: 50%;
            transform: translateX(-50%) scaleX(0);
            width: 16px;
            height: 2px;
            border-radius: 2px;
            background: var(--ink);
            transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .nav-link:hover { color: var(--ink); background: var(--ink-07); }
        .nav-link:hover::after { transform: translateX(-50%) scaleX(1); }
        .nav-link.active { color: var(--ink); font-weight: 700; background: var(--ink-07); }
        .nav-link.active::after { transform: translateX(-50%) scaleX(1); }
        @media (max-width: 900px) {
            .header-nav { display: none; }
        }

        .header-logo {
            width: 36px;
            height: 36px;
            background: var(--white);
            border: 1px solid var(--ink-15);
            border-radius: var(--r-sm);
            padding: 3px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: var(--transition);
        }

        .header-logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: calc(var(--r-sm) - 3px);
        }

        .header-brand-text {
            line-height: 1.25;
        }

        .header-brand-name {
            font-size: 14.5px;
            font-weight: 800;
            color: var(--ink);
            letter-spacing: -.01em;
        }

        .header-brand-faculty {
            font-size: 11px;
            color: var(--ink-50);
            font-weight: 600;
            margin-top: 2px;
        }

        .header-back {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            font-weight: 700;
            color: var(--ink-50);
            text-decoration: none;
            padding: 6px 12px;
            border: 1px solid var(--ink-15);
            border-radius: var(--r-sm);
            transition: var(--transition);
        }

        .header-back:hover {
            color: var(--ink);
            border-color: var(--ink-70);
            background: var(--ink-07);
            transform: translateY(-1px);
        }

        .header-back i {
            font-size: 9px;
        }

        /* ════ PAGE LAYOUT ════ */
        .page-layout {
            max-width: 1200px;
            margin: 0 auto;
            padding: 44px 32px 80px;
            display: grid;
            grid-template-columns: 1fr 460px;
            gap: 44px;
            align-items: start;
        }

        /* ── Info Panel ── */
        .info-panel {
            position: sticky;
            top: 82px;
        }

        .info-eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 10.5px;
            font-weight: 700;
            letter-spacing: .12em;
            text-transform: uppercase;
            color: var(--accent);
            margin-bottom: 14px;
        }

        .info-eyebrow::before {
            content: '';
            width: 14px;
            height: 2px;
            background: var(--accent);
            border-radius: 2px;
        }

        .info-heading {
            font-size: clamp(24px, 2.8vw, 34px);
            font-weight: 800;
            line-height: 1.2;
            color: var(--ink);
            letter-spacing: -.02em;
            margin-bottom: 12px;
        }

        .info-desc {
            font-size: 13.5px;
            line-height: 1.8;
            color: var(--ink-50);
            margin-bottom: 28px;
            max-width: 380px;
        }

        .info-card {
            background: var(--white);
            border: 1px solid var(--ink-15);
            border-radius: var(--r-lg);
            padding: 18px;
            margin-bottom: 12px;
        }

        .info-card-title {
            font-size: 11px;
            font-weight: 700;
            color: var(--ink-70);
            letter-spacing: .08em;
            text-transform: uppercase;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 7px;
        }

        .info-card-title i {
            color: var(--ink-30);
            font-size: 10px;
        }

        .info-step {
            display: flex;
            align-items: center;
            gap: 11px;
            padding: 8px 0;
            border-bottom: 1px solid var(--ink-07);
        }

        .info-step:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

        .info-step:first-child {
            padding-top: 0;
        }

        .step-num {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            border: 1.5px solid var(--ink-15);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 9px;
            font-weight: 700;
            color: var(--ink-50);
            flex-shrink: 0;
        }

        .step-label {
            font-size: 12.5px;
            font-weight: 600;
            color: var(--ink-70);
        }

        .step-sub {
            font-size: 10.5px;
            color: var(--ink-30);
            margin-top: 1px;
        }

        .warn-strip {
            display: flex;
            align-items: flex-start;
            gap: 9px;
            background: var(--warn-bg);
            border: 1px solid var(--warn-bd);
            border-radius: var(--r-md);
            padding: 12px 14px;
            font-size: 12px;
            color: var(--warn);
            line-height: 1.65;
        }

        .warn-strip i {
            font-size: 11px;
            margin-top: 1px;
            flex-shrink: 0;
        }

        /* ── Section label ── */
        .section-label {
            font-size: 10.5px;
            font-weight: 700;
            letter-spacing: .1em;
            text-transform: uppercase;
            color: var(--ink-50);
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .section-label::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--ink-15);
        }

        /* ── Form card ── */
        .form-card {
            background: var(--white);
            border: 1px solid var(--ink-15);
            border-radius: var(--r-lg);
            box-shadow: 0 1px 3px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .04);
            margin-bottom: 12px;
            position: relative;
            z-index: 10;
            transition: opacity .2s, transform .2s;
        }

        .form-card.dimmed {
            opacity: .5;
            pointer-events: none;
            transform: scale(.99);
        }

        .form-card-head {
            padding: 14px 20px;
            border-bottom: 1px solid var(--ink-07);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .fch-icon {
            width: 28px;
            height: 28px;
            background: var(--ink-07);
            border-radius: var(--r-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            color: var(--ink-50);
        }

        .fch-title {
            font-size: 13px;
            font-weight: 700;
            color: var(--ink);
        }

        .fch-sub {
            font-size: 11px;
            color: var(--ink-50);
            margin-top: 1px;
        }

        .form-card-body {
            padding: 18px 20px;
        }

        .field {
            margin-bottom: 14px;
        }

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

        .field-label {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 11px;
            font-weight: 700;
            color: var(--ink-70);
            letter-spacing: .05em;
            text-transform: uppercase;
            margin-bottom: 6px;
        }

        .field-label-right {
            margin-left: auto;
            font-size: 10.5px;
            font-weight: 600;
            color: var(--ink-30);
            letter-spacing: 0;
            text-transform: none;
            font-variant-numeric: tabular-nums;
        }

        .field-label-right.complete {
            color: #16a34a;
        }

        .field-label i {
            font-size: 10px;
            color: var(--ink-30);
            width: 12px;
            text-align: center;
        }

        /* Custom select */
        .custom-select-wrap {
            position: relative;
            width: 100%;
        }

        .custom-select-trigger {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            background: var(--white);
            border: 1px solid var(--ink-15);
            border-radius: var(--r-sm);
            padding: 11px 14px;
            font-family: inherit;
            font-size: 16px;
            color: var(--ink-30);
            cursor: pointer;
            user-select: none;
            transition: border-color .15s, box-shadow .15s;
            width: 100%;
            /* แก้ปัญหาทะลุกล่องระดับแรก */
        }

        .custom-select-trigger.has-value {
            color: var(--ink);
        }

        .custom-select-trigger:hover {
            border-color: var(--accent);
        }

        .custom-select-trigger.open {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(26, 86, 219, .1);
            border-radius: var(--r-sm) var(--r-sm) 0 0;
            border-bottom-color: var(--ink-15);
        }

        .trigger-text {
            flex: 1;
            min-width: 0;
            /* CRITICAL FIX: บังคับไม่ให้ข้อความดันกล่องจนทะลุ */
            font-size: 16px;
            text-align: left;
            white-space: normal;
            word-break: keep-all;
            overflow-wrap: anywhere;
            /* ให้ยอมตัดคำลงบรรทัดใหม่ถ้ายาวเกินไปจริงๆ */
            line-height: 1.5;
        }

        .trigger-icon {
            font-size: 10px;
            color: var(--ink-30);
            transition: transform .2s;
            flex-shrink: 0;
            margin-top: 6px;
        }

        .custom-select-trigger.open .trigger-icon {
            transform: rotate(180deg);
        }

        .custom-dropdown {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: var(--white);
            border: 1px solid var(--accent);
            border-top: none;
            border-radius: 0 0 var(--r-sm) var(--r-sm);
            box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
            z-index: 50;
            max-height: 240px;
            overflow-y: auto;
        }

        .custom-dropdown.open {
            display: block;
            animation: dropIn .15s ease both;
        }

        .dropdown-opt {
            padding: 12px 14px;
            font-family: inherit;
            font-size: 14px;
            color: var(--ink-70);
            cursor: pointer;
            border-bottom: 1px solid var(--ink-07);
            transition: background .1s;
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
        }

        .dropdown-opt-text {
            flex: 1;
            min-width: 0;
            text-align: left;
            white-space: normal;
            word-break: keep-all;
            overflow-wrap: anywhere;
            line-height: 1.5;
        }

        .dropdown-opt:last-child {
            border-bottom: none;
        }

        .dropdown-opt:hover {
            background: var(--ink-07);
            color: var(--ink);
        }

        .dropdown-opt.selected {
            background: var(--ink);
            color: var(--white);
            font-weight: 600;
        }

        .dd-check {
            font-size: 10px;
            opacity: 0;
            flex-shrink: 0;
            margin-top: 5px;
            color: var(--ink);
            transition: opacity .15s;
        }

        .dropdown-opt.selected .dd-check {
            opacity: 1;
            color: var(--white);
        }

        .dropdown-empty {
            padding: 12px;
            font-size: 12.5px;
            color: var(--ink-30);
            text-align: center;
        }

        .real-select {
            display: none;
        }

        /* Input */
        input[type="text"] {
            width: 100%;
            background: var(--white);
            border: 1px solid var(--ink-15);
            border-radius: var(--r-sm);
            padding: 11px 14px;
            font-family: inherit;
            font-size: 16px;
            color: var(--ink);
            outline: none;
            transition: border-color .15s, box-shadow .15s;
            -webkit-appearance: none;
        }

        input[type="text"]:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(26, 86, 219, .1);
        }

        input[type="text"].invalid {
            border-color: #dc2626;
            box-shadow: 0 0 0 3px rgba(220, 38, 38, .08);
        }

        input[type="text"].complete {
            border-color: #16a34a;
        }

        input::placeholder {
            color: var(--ink-30);
            font-size: 16px;
        }

        .id-progress {
            height: 2px;
            background: var(--ink-15);
            border-radius: 0 0 var(--r-sm) var(--r-sm);
            overflow: hidden;
            margin-top: -1px;
            border: none;
        }

        .id-progress-fill {
            height: 100%;
            width: 0;
            border-radius: 2px;
            transition: width .15s, background .15s;
        }

        .field-hint {
            font-size: 11px;
            color: var(--ink-30);
            margin-top: 6px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .field-hint i {
            font-size: 9px;
        }

        /* Submit */
        .submit-btn {
            width: 100%;
            background: var(--ink);
            color: var(--white);
            border: none;
            border-radius: var(--r-sm);
            padding: 13px;
            font-family: inherit;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 9px;
            transition: background .15s, transform .1s, box-shadow .15s;
            box-shadow: 0 1px 3px rgba(0, 0, 0, .15), 0 4px 12px rgba(0, 0, 0, .1);
        }

        .submit-btn:hover:not(:disabled) {
            background: var(--ink-70);
            box-shadow: 0 2px 8px rgba(0, 0, 0, .2), 0 8px 20px rgba(0, 0, 0, .12);
        }

        .submit-btn:active:not(:disabled) {
            transform: translateY(1px);
        }

        .submit-btn:disabled {
            opacity: .38;
            cursor: not-allowed;
        }

        .submit-btn i {
            font-size: 11px;
        }

        /* config alert */
        .config-alert {
            background: var(--warn-bg);
            border: 1px solid var(--warn-bd);
            border-radius: var(--r-lg);
            padding: 12px 15px;
            font-size: 12.5px;
            color: var(--warn);
            display: none;
            align-items: center;
            gap: 9px;
            margin-bottom: 12px;
            font-weight: 600;
        }

        .config-alert.show {
            display: flex;
        }

        .config-alert i {
            flex-shrink: 0;
            font-size: 11px;
        }

        /* ════ PROCESS CARD ════ */
        .process-card {
            background: var(--white);
            border: 1px solid var(--ink-15);
            border-radius: var(--r-lg);
            overflow: hidden;
            margin-top: 12px;
        }

        .process-card-top {
            background: var(--ink);
            padding: 16px 20px;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .pct-icon {
            width: 30px;
            height: 30px;
            border: 1px solid rgba(255, 255, 255, .18);
            border-radius: var(--r-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            color: rgba(255, 255, 255, .8);
        }

        .pct-title {
            font-size: 14px;
            font-weight: 700;
            color: var(--white);
        }

        .pct-sub {
            font-size: 11px;
            color: rgba(255, 255, 255, .38);
            margin-top: 2px;
        }

        .process-steps {
            padding: 18px 20px;
            display: flex;
            flex-direction: column;
            gap: 0;
        }

        .ps-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            position: relative;
        }

        .ps-item:not(:last-child)::after {
            content: '';
            position: absolute;
            left: 13px;
            top: 28px;
            width: 1px;
            height: calc(100% - 4px);
            background: var(--ink-15);
            transition: background .3s;
        }

        .ps-item.done:not(:last-child)::after {
            background: var(--ink);
        }

        .ps-dot-wrap {
            flex-shrink: 0;
            width: 26px;
            height: 26px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            z-index: 1;
        }

        .ps-dot {
            width: 26px;
            height: 26px;
            border-radius: 50%;
            border: 1.5px solid var(--ink-15);
            background: var(--white);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 9px;
            color: var(--ink-30);
            transition: all .25s cubic-bezier(.22, 1, .36, 1);
        }

        .ps-item.active .ps-dot {
            border-color: var(--ink);
            background: var(--ink);
            color: var(--white);
        }

        .ps-item.done .ps-dot {
            border-color: var(--ink);
            background: var(--ink);
            color: var(--white);
        }

        .ps-item.error .ps-dot {
            border-color: #dc2626;
            background: #dc2626;
            color: var(--white);
        }

        .ps-ring {
            position: absolute;
            inset: -3px;
            border-radius: 50%;
            border: 1.5px solid transparent;
            border-top-color: var(--ink);
            animation: spin .7s linear infinite;
            opacity: 0;
            transition: opacity .2s;
        }

        .ps-item.active .ps-ring {
            opacity: 1;
        }

        .ps-text {
            padding: 3px 0 16px;
            flex: 1;
        }

        .ps-item:last-child .ps-text {
            padding-bottom: 0;
        }

        .ps-title {
            font-size: 12.5px;
            font-weight: 700;
            color: var(--ink-30);
            transition: color .25s;
        }

        .ps-item.active .ps-title {
            color: var(--ink);
        }

        .ps-item.done .ps-title {
            color: var(--ink-70);
        }

        .ps-item.error .ps-title {
            color: #dc2626;
        }

        .ps-desc {
            font-size: 11px;
            color: var(--ink-50);
            margin-top: 2px;
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            transition: max-height .25s, opacity .25s;
        }

        .ps-item.active .ps-desc,
        .ps-item.done .ps-desc,
        .ps-item.error .ps-desc {
            max-height: 40px;
            opacity: 1;
        }

        /* alert box */
        .alert-box {
            border-radius: var(--r-lg);
            overflow: hidden;
            margin-top: 12px;
            border: 1px solid;
        }

        .alert-box.warn {
            background: var(--warn-bg);
            border-color: var(--warn-bd);
        }

        .alert-box.error {
            background: var(--error-bg);
            border-color: var(--error-bd);
        }

        .alert-box-head {
            padding: 14px 18px;
            display: flex;
            align-items: center;
            gap: 11px;
        }

        .alert-box-icon {
            width: 30px;
            height: 30px;
            border-radius: var(--r-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            flex-shrink: 0;
        }

        .alert-box.warn .alert-box-icon {
            background: #fef3c7;
            color: var(--warn);
        }

        .alert-box.error .alert-box-icon {
            background: #fee2e2;
            color: var(--error);
        }

        .alert-box-title {
            font-size: 13px;
            font-weight: 700;
        }

        .alert-box.warn .alert-box-title {
            color: var(--warn);
        }

        .alert-box.error .alert-box-title {
            color: var(--error);
        }

        .alert-box-sub {
            font-size: 11.5px;
            color: var(--ink-50);
            margin-top: 2px;
        }

        .alert-box-body {
            padding: 0 18px 16px;
        }

        .alert-btn {
            width: 100%;
            border: none;
            border-radius: var(--r-sm);
            padding: 10px;
            font-family: inherit;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            transition: background .15s;
        }

        .alert-btn.primary {
            background: var(--ink);
            color: var(--white);
            margin-bottom: 7px;
        }

        .alert-btn.primary:hover {
            background: var(--ink-70);
        }

        .alert-btn.ghost {
            background: none;
            border: 1px solid var(--ink-15);
            color: var(--ink-50);
        }

        .alert-btn.ghost:hover {
            border-color: var(--ink-30);
            color: var(--ink);
        }

        .monitoring-badge {
            display: none;
            align-items: center;
            gap: 6px;
            background: var(--ink-07);
            border: 1px solid var(--ink-15);
            border-radius: 100px;
            padding: 6px 12px;
            font-size: 11px;
            color: var(--ink-50);
            font-weight: 600;
            width: 100%;
            justify-content: center;
            margin-bottom: 7px;
        }

        .monitoring-badge.show {
            display: flex;
        }

        .monitoring-badge i {
            font-size: 10px;
            animation: spin 1.4s linear infinite;
        }

        .tech-detail {
            background: var(--ink-07);
            border: 1px solid var(--ink-15);
            border-radius: var(--r-sm);
            padding: 9px 11px;
            font-size: 11px;
            font-family: monospace;
            color: var(--ink-50);
            margin: 10px 0;
            line-height: 1.5;
        }

        .deploy-hint {
            font-size: 11.5px;
            color: var(--warn);
            margin-bottom: 10px;
            display: flex;
            gap: 6px;
            align-items: flex-start;
            line-height: 1.5;
        }

        .deploy-hint i {
            margin-top: 2px;
            flex-shrink: 0;
            font-size: 10px;
        }

        /* ════ RESULT ════ */
        #resultArea {
            margin-top: 12px;
        }

        .result-header {
            background: var(--ink);
            border-radius: var(--r-lg);
            padding: 18px 20px;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .rh-avatar {
            width: 40px;
            height: 40px;
            border: 1.5px solid rgba(255, 255, 255, .15);
            border-radius: 11px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            color: rgba(255, 255, 255, .6);
            flex-shrink: 0;
        }

        .rh-eyebrow {
            font-size: 9.5px;
            font-weight: 700;
            color: rgba(255, 255, 255, .35);
            letter-spacing: .1em;
            text-transform: uppercase;
            margin-bottom: 3px;
            white-space: normal;
            word-break: keep-all;
            line-height: 1.4;
        }

        .rh-name {
            font-size: 15px;
            font-weight: 800;
            color: var(--white);
            letter-spacing: -.01em;
        }

        .rh-meta {
            font-size: 11px;
            color: rgba(255, 255, 255, .38);
            margin-top: 3px;
        }

        .token-label {
            font-size: 10.5px;
            font-weight: 700;
            letter-spacing: .1em;
            text-transform: uppercase;
            color: var(--ink-50);
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 7px;
        }

        .token-label::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--ink-15);
        }

        .token-card {
            background: var(--white);
            border: 1px solid var(--ink-15);
            border-radius: var(--r-lg);
            overflow: hidden;
            margin-bottom: 10px;
            box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
        }

        .token-card-head {
            padding: 9px 15px;
            border-bottom: 1px solid var(--ink-07);
            font-size: 10px;
            font-weight: 700;
            color: var(--ink-50);
            letter-spacing: .06em;
            text-transform: uppercase;
        }

        .token-card-body {
            padding: 11px 13px;
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .code-pill {
            display: flex;
            align-items: center;
            gap: 7px;
            background: var(--ink-07);
            border: 1px solid var(--ink-15);
            border-radius: var(--r-sm);
            padding: 8px 11px;
            font-size: 13.5px;
            font-weight: 700;
            color: var(--ink-70);
            cursor: pointer;
            transition: all .15s;
            flex: 1;
            min-width: 110px;
            user-select: none;
        }

        .code-pill:hover {
            background: var(--white);
            border-color: var(--ink-30);
        }

        .code-pill:active {
            transform: scale(.98);
        }

        .code-pill i {
            font-size: 10px;
            color: var(--ink-30);
        }

        .copy-icon {
            margin-left: auto;
            transition: color .15s;
        }

        .token-pill {
            display: flex;
            align-items: center;
            gap: 7px;
            background: var(--ink);
            border: 1px solid transparent;
            border-radius: var(--r-sm);
            padding: 8px 11px;
            font-size: 13.5px;
            font-weight: 700;
            color: var(--white);
            cursor: pointer;
            transition: all .15s;
            flex: 1;
            min-width: 110px;
            user-select: none;
        }

        .token-pill:hover {
            background: var(--ink-70);
        }

        .token-pill:active {
            transform: scale(.98);
        }

        .token-pill i {
            font-size: 10px;
            color: rgba(255, 255, 255, .4);
        }

        /* copy toast */
        .copy-toast {
            position: fixed;
            bottom: 24px;
            left: 50%;
            transform: translateX(-50%) translateY(4px);
            background: var(--ink);
            color: var(--white);
            border-radius: 100px;
            padding: 9px 18px;
            font-size: 12.5px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 7px;
            opacity: 0;
            pointer-events: none;
            transition: opacity .18s, transform .18s;
            z-index: 999;
        }

        .copy-toast.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        .result-actions {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: 4px;
            padding-top: 12px;
            flex-wrap: wrap;
        }

        .action-btn {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            border-radius: 100px;
            font-family: inherit;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            transition: all .15s;
            text-decoration: none;
            background: none;
            border: 1px solid var(--ink-15);
            color: var(--ink-50);
        }

        .action-btn:hover {
            border-color: var(--ink-30);
            color: var(--ink);
            background: var(--white);
        }

        .action-btn i {
            font-size: 10px;
        }

        .loader-mini {
            width: 30px;
            height: 14px;
            position: relative;
            display: inline-block;
            flex-shrink: 0;
        }

        .loader-mini:before {
            content: "";
            position: absolute;
            border-radius: 50px;
            box-shadow: 0 0 0 2px inset currentColor;
            animation: l3-mini 0.75s infinite alternate;
        }

        @keyframes l3-mini {
            0% {
                inset: 0 16px 0 0;
            }

            50% {
                inset: 0 0 0 0;
            }

            100% {
                inset: 0 0 0 16px;
            }
        }

        /* ════ FOOTER ════ */
        .site-footer {
            border-top: 1px solid var(--ink-15);
            background: var(--white);
            padding: 18px 32px;
        }

        .footer-inner {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
        }

        .footer-left {
            font-size: 11.5px;
            color: var(--ink-50);
            display: flex;
            align-items: center;
            gap: 7px;
        }

        .footer-left strong {
            color: var(--ink-70);
            font-weight: 600;
        }

        .footer-sep {
            width: 3px;
            height: 3px;
            border-radius: 50%;
            background: var(--ink-30);
        }

        .footer-right {
            font-size: 11px;
            color: var(--ink-30);
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .footer-right i {
            font-size: 9px;
        }

        /* ════ RESPONSIVE ════ */
        @media (max-width: 900px) {
            .page-layout {
                display: flex;
                flex-direction: column;
                padding: 28px 20px 60px;
                gap: 28px;
            }

            .info-panel {
                order: 2;
                position: static;
            }

            section {
                order: 1;
                width: 100%;
            }

            .header-inner {
                padding: 0 20px;
            }
        }

        @media (max-width: 540px) {
            .page-layout {
                padding: 20px 16px 60px;
                gap: 22px;
            }

            .header-brand-faculty {
                display: none;
            }

            .site-footer {
                padding: 14px 20px;
            }

            .footer-inner {
                flex-direction: column;
                align-items: flex-start;
                gap: 6px;
            }

            .token-card-body {
                flex-direction: column;
            }

            .code-pill,
            .token-pill {
                min-width: unset;
                width: 100%;
            }
        }

        /* ════ KEYFRAMES ════ */
        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        @keyframes blink {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: .25;
            }
        }

        @keyframes fadeOut {
            to {
                opacity: 0;
                pointer-events: none;
            }
        }

        @keyframes fadeUp {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

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

        @keyframes dropIn {
            from {
                opacity: 0;
                transform: translateY(-4px);
            }

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

        .fade-up {
            animation: fadeUp .45s cubic-bezier(.22, 1, .36, 1) both;
        }

        .d1 {
            animation-delay: .05s;
        }

        .d2 {
            animation-delay: .1s;
        }

        .d3 {
            animation-delay: .15s;
        }

        .d4 {
            animation-delay: .2s;
        }

        .hidden {
            display: none !important;
        }

        /* ════ AUTH0 & HEADER STYLES ════ */
        .header-right {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .header-badge {
            display: flex;
            align-items: center;
            gap: 8px;
            background: var(--white);
            border: 1px solid var(--ink-15);
            border-radius: 100px;
            padding: 6px 14px;
            font-size: 12px;
            font-weight: 700;
            color: var(--ink-50);
            box-shadow: 0 1px 3px rgba(0, 0, 0, .02);
        }

        .header-badge strong {
            color: var(--ink);
        }

        .live-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #16a34a;
            flex-shrink: 0;
            animation: blink 2s ease infinite;
        }

        .logout-btn {
            background: none;
            border: 1px solid var(--ink-15);
            border-radius: var(--r-sm);
            padding: 8px 14px;
            font-family: inherit;
            font-size: 12px;
            font-weight: 700;
            color: #dc2626;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: var(--transition);
        }

        .logout-btn:hover {
            background: rgba(220, 38, 38, 0.05);
            border-color: rgba(220, 38, 38, 0.2);
            transform: translateY(-1px);
        }

        .login-header-btn {
            background: var(--ink);
            color: var(--white) !important;
            border: none;
            border-radius: 50px;
            padding: 8px 16px;
            font-family: inherit;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: var(--transition);
            box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
            text-decoration: none;
        }

        .login-header-btn:hover {
            background: var(--ink-70);
            transform: translateY(-1px);
        }

        .header-spinner {
            color: var(--ink-50);
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .loader-mini {
            width: 30px;
            height: 14px;
            position: relative;
            display: inline-block;
            flex-shrink: 0;
        }

        .loader-mini:before {
            content: "";
            position: absolute;
            border-radius: 50px;
            box-shadow: 0 0 0 2px inset currentColor;
            animation: l3-mini 0.75s infinite alternate;
        }

        @keyframes l3-mini {
            0% {
                inset: 0 16px 0 0;
            }

            50% {
                inset: 0 0 0 0;
            }

            100% {
                inset: 0 0 0 16px;
            }
        }

        @media (max-width: 600px) {
            .header-badge {
                padding: 4px 10px;
                font-size: 11px;
                max-width: 150px;
            }

            .header-badge span {
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                display: inline-block;
            }

            .logout-btn,
            .login-header-btn {
                padding: 6px 10px;
                font-size: 11px;
            }
        }

        /* Desktop navigation menu */
        .header-nav {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-left: 20px;
            margin-right: auto; /* Push the auth area to the right! */
        }

        .nav-link {
            font-size: 12.5px;
            font-weight: 700;
            color: var(--ink-50);
            text-decoration: none;
            transition: var(--transition);
            padding: 8px 12px;
            border-radius: var(--r-sm);
        }

        .nav-link:hover {
            color: var(--ink);
            background: var(--ink-07);
        }

        .nav-link.active {
            color: var(--ink);
            background: var(--ink-07);
        }

        @media (max-width: 900px) {
            .header-nav {
                display: none;
            }
        }

        /* ════ USER DROPDOWN & MENU ════ */
        .user-dropdown-container {
            position: relative;
            display: inline-block;
        }

        .user-profile-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            background: var(--white);
            border: 1px solid var(--ink-15);
            border-radius: 100px;
            padding: 5px 12px 5px 6px;
            cursor: pointer;
            transition: var(--transition);
            box-shadow: 0 1px 3px rgba(0, 0, 0, .02);
            font-family: inherit;
        }

        .user-profile-btn:hover {
            border-color: var(--ink-30);
            background: var(--ink-07);
        }

        .user-avatar-mini {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            object-fit: cover;
            border: 1px solid var(--ink-15);
        }

        .user-name-mini {
            font-size: 12.5px;
            font-weight: 600;
            color: var(--ink-70);
            max-width: 100px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .dropdown-arrow {
            font-size: 9px;
            color: var(--ink-30);
            transition: transform .2s;
        }

        .user-profile-btn.open .dropdown-arrow {
            transform: rotate(180deg);
        }

        .user-dropdown-menu {
            display: none;
            position: absolute;
            top: 100%;
            right: 0;
            margin-top: 8px;
            background: var(--white);
            border: 1px solid var(--ink-15);
            border-radius: var(--r-md);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            width: 250px;
            z-index: 1000;
            overflow: hidden;
            transform-origin: top right;
        }

        .user-dropdown-menu.show {
            display: block;
            animation: dropIn .2s cubic-bezier(.22, 1, .36, 1) both;
        }

        .user-dropdown-header {
            padding: 16px;
            display: flex;
            align-items: center;
            gap: 12px;
            background: var(--ink-07);
        }

        .user-avatar-large {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            object-fit: cover;
            border: 1.5px solid var(--white);
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }

        .user-info-text {
            min-width: 0;
            flex: 1;
            text-align: left;
        }

        .user-name-full {
            font-size: 13.5px;
            font-weight: 700;
            color: var(--ink);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .user-email-full {
            font-size: 11px;
            color: var(--ink-50);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            margin-top: 2px;
        }

        .dropdown-divider {
            height: 1px;
            background: var(--ink-15);
        }

        .dropdown-section-title {
            font-size: 10px;
            font-weight: 700;
            color: var(--ink-30);
            text-transform: uppercase;
            letter-spacing: .05em;
            padding: 10px 16px 4px;
            text-align: left;
        }

        .dropdown-item {
            width: 100%;
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 16px;
            background: none;
            border: none;
            font-family: inherit;
            font-size: 12.5px;
            font-weight: 600;
            color: var(--ink-70);
            text-align: left;
            cursor: pointer;
            transition: var(--transition);
            text-decoration: none;
        }

        .dropdown-item:hover {
            background: var(--ink-07);
            color: var(--ink);
        }

        .dropdown-item.active {
            background: var(--ink-07);
            color: var(--ink);
            font-weight: 700;
        }

        .dropdown-item i {
            font-size: 12px;
            color: var(--ink-50);
            width: 16px;
            text-align: center;
        }

        .dropdown-item.logout {
            color: #dc2626;
        }

        .dropdown-item.logout:hover {
            background: #fef2f2;
            color: #b91c1c;
        }

        .dropdown-item.logout i {
            color: #ef4444;
        }

        .mobile-nav-section {
            display: none;
        }

        @media (max-width: 900px) {
            .mobile-nav-section {
                display: block;
            }
        }

        /* ════ PROFILE MODAL ════ */
        .profile-modal {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, .4);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
            opacity: 0;
            pointer-events: none;
            transition: opacity .25s ease;
        }

        .profile-modal.visible {
            opacity: 1;
            pointer-events: all;
        }

        .profile-modal-card {
            background: var(--white);
            border-radius: var(--r-lg);
            border: 1px solid var(--ink-15);
            box-shadow: 0 24px 64px rgba(0, 0, 0, .2);
            width: 100%;
            max-width: 520px;
            overflow: hidden;
            transform: translateY(16px) scale(.96);
            transition: transform .3s cubic-bezier(.22, 1, .36, 1);
        }

        .profile-modal.visible .profile-modal-card {
            transform: translateY(0) scale(1);
        }

        .profile-modal-header {
            border-bottom: 1px solid var(--ink-15);
            padding: 16px 24px;
            text-align: left;
        }

        .profile-modal-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--ink);
        }

        .profile-modal-email {
            font-size: 12px;
            color: var(--ink-50);
            margin-top: 2px;
        }

        .profile-modal-content-grid {
            display: grid;
            grid-template-columns: 1.8fr 3fr;
            gap: 24px;
            padding: 24px;
        }

        @media (max-width: 580px) {
            .profile-modal-content-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }
        }

        .profile-modal-avatar-section {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .profile-modal-avatar-wrap-new {
            position: relative;
            width: 96px;
            height: 96px;
            border-radius: 50%;
            border: 1px solid var(--ink-15);
            margin-bottom: 8px;
            background: var(--ink-07);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .avatar-preview-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
        }

        .avatar-remove-btn {
            position: absolute;
            top: -2px;
            right: -2px;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: var(--white);
            border: 1px solid var(--ink-15);
            color: var(--error);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            transition: var(--transition);
        }

        .avatar-remove-btn:hover {
            background: var(--error-bg);
            border-color: var(--error);
        }

        .avatar-section-title {
            font-weight: 600;
            font-size: 14px;
            color: var(--ink);
            margin-top: 8px;
        }

        .avatar-section-sub {
            font-size: 12px;
            color: var(--ink-50);
            margin-top: 2px;
        }

        .avatar-upload-btn-label {
            margin-top: 12px;
            cursor: pointer;
            display: inline-block;
            padding: 6px 16px;
            background: var(--white);
            border: 1px solid var(--ink-15);
            border-radius: 8px;
            font-size: 12px;
            font-weight: 600;
            color: var(--ink);
            transition: var(--transition);
        }

        .avatar-upload-btn-label:hover {
            background: var(--ink-07);
            border-color: var(--ink-50);
        }

        .avatar-error-msg {
            font-size: 11px;
            color: var(--error);
            background: var(--error-bg);
            border: 1px solid var(--error-bd);
            padding: 4px 8px;
            border-radius: 4px;
            margin-top: 8px;
        }

        .profile-modal-fields-section {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .profile-field {
            margin-bottom: 16px;
        }

        .profile-label {
            display: block;
            font-size: 13px;
            font-weight: 500;
            color: var(--ink-70);
            margin-bottom: 6px;
        }

        .required-star {
            color: var(--error);
            font-weight: bold;
            margin-left: 2px;
        }

        .profile-field input {
            width: 100%;
            background: var(--white);
            border: 1px solid var(--ink-15);
            border-radius: 8px;
            padding: 10px 14px;
            font-family: inherit;
            font-size: 14px;
            color: var(--ink);
            outline: none;
            transition: border-color .15s;
        }

        .profile-field input:focus {
            border-color: var(--ink-70);
            box-shadow: 0 0 0 2px var(--ink-15);
        }

        .profile-field-hint {
            font-size: 11px;
            color: var(--ink-50);
            margin-top: 4px;
        }

        .profile-modal-actions {
            display: flex;
            justify-content: flex-end;
            gap: 8px;
            margin-top: 16px;
        }

        .profile-btn {
            border: none;
            border-radius: 8px;
            padding: 8px 16px;
            font-family: inherit;
            font-size: 13.5px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }

        .profile-btn.cancel {
            background: var(--white);
            border: 1px solid var(--ink-15);
            color: var(--ink);
        }

        .profile-btn.cancel:hover {
            background: var(--ink-07);
        }

        .profile-btn.save {
            background: var(--ink);
            color: var(--white);
        }

        .profile-btn.save:hover {
            background: var(--ink-70);
        }

        /* ════ HAMBURGER MENU & DRAWER ════ */
        .hamburger-btn {
            display: none;
            background: none;
            border: 1px solid var(--ink-15);
            border-radius: var(--r-sm);
            width: 36px;
            height: 36px;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            color: var(--ink-70);
            cursor: pointer;
            transition: var(--transition);
        }

        .hamburger-btn:hover {
            background: var(--ink-07);
            color: var(--ink);
            border-color: var(--ink-30);
        }

        .mobile-menu-drawer {
            position: fixed;
            inset: 0;
            background: rgba(13, 17, 23, 0.4);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            z-index: 9999;
            display: none;
            justify-content: flex-end;
            opacity: 0;
            transition: opacity 0.25s ease;
        }

        .mobile-menu-drawer.open {
            display: flex;
            opacity: 1;
        }

        .drawer-content {
            background: var(--white);
            width: 280px;
            height: 100%;
            box-shadow: -10px 0 30px rgba(0,0,0,0.1);
            display: flex;
            flex-direction: column;
            transform: translateX(100%);
            transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .mobile-menu-drawer.open .drawer-content {
            transform: translateX(0);
        }

        .drawer-header {
            padding: 16px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid var(--ink-15);
        }

        .drawer-title {
            font-size: 14.5px;
            font-weight: 800;
            color: var(--ink);
            text-transform: uppercase;
            letter-spacing: .03em;
        }

        .drawer-close-btn {
            background: none;
            border: none;
            font-size: 18px;
            color: var(--ink-50);
            cursor: pointer;
            padding: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }

        .drawer-close-btn:hover {
            color: var(--ink);
        }

        .drawer-auth-area {
            padding: 20px;
            text-align: center;
        }

        .drawer-avatar {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--ink-15);
            margin: 0 auto 12px;
        }

        .drawer-username {
            font-size: 14px;
            font-weight: 700;
            color: var(--ink);
            word-break: break-all;
        }

        .drawer-email {
            font-size: 11.5px;
            color: var(--ink-50);
            margin-top: 3px;
            word-break: break-all;
        }

        .drawer-auth-btn {
            width: 100%;
            margin-top: 12px;
            border-radius: var(--r-sm);
            padding: 8px 12px;
            font-family: inherit;
            font-size: 12.5px;
            font-weight: 700;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .drawer-auth-btn.primary {
            background: var(--ink);
            color: var(--white);
            border: none;
        }

        .drawer-auth-btn.primary:hover {
            background: var(--ink-70);
        }

        .drawer-auth-btn.secondary {
            background: none;
            border: 1px solid var(--ink-15);
            color: var(--ink-70);
        }

        .drawer-auth-btn.secondary:hover {
            border-color: var(--ink-30);
            background: var(--ink-07);
        }

        .drawer-auth-btn.logout {
            background: none;
            border: 1px solid #fecaca;
            color: #dc2626;
            margin-top: 8px;
        }

        .drawer-auth-btn.logout:hover {
            background: #fef2f2;
            border-color: #fca5a5;
        }

        .drawer-divider {
            height: 1px;
            background: var(--ink-15);
            margin: 0 20px;
        }

        .drawer-nav {
            padding: 16px 20px;
            display: flex;
            flex-direction: column;
            gap: 6px;
            overflow-y: auto;
            flex: 1;
        }

        .drawer-nav-link {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 14px;
            border-radius: var(--r-sm);
            font-size: 13px;
            font-weight: 600;
            color: var(--ink-70);
            text-decoration: none;
            transition: var(--transition);
            text-align: left;
        }

        .drawer-nav-link:hover,
        .drawer-nav-link.active {
            background: var(--ink-07);
            color: var(--ink);
        }

        .drawer-nav-link.active {
            font-weight: 700;
        }

        .drawer-nav-link i {
            font-size: 14px;
            color: var(--ink-50);
            width: 18px;
            text-align: center;
        }

        @media (max-width: 900px) {
            .hamburger-btn {
                display: flex;
            }
            .header-right .user-dropdown-container, 
            .header-right .login-header-btn {
                display: none !important;
            }
        }
    