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

        html {
            -webkit-font-smoothing: antialiased;
            scroll-behavior: smooth;
        }

        body {
            font-family: var(--font-sans);
            background: var(--bg);
            color: var(--ink);
            min-height: 100vh;
            overflow-x: hidden;
            position: relative;
            transition: background-color 0.3s ease, color 0.3s ease;
        }


        /* ════ LOGIN PAGE ════ */
        #loginPage {
            display: none;
            min-height: 100vh;
            width: 100%;
            position: relative;
            z-index: 10;
        }

        #loginPage.show {
            display: block;
        }

        .login-wrapper {
            display: grid;
            grid-template-columns: 1.2fr 1fr;
            min-height: 100vh;
        }

        .login-brand-side {
            background: radial-gradient(circle at top right, #1e293b, #0f172a, var(--ink));
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 60px;
            color: #fff;
            overflow: hidden;
        }

        .login-brand-side::before {
            content: '';
            position: absolute;
            top: -10%;
            right: -10%;
            width: 480px;
            height: 480px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
            filter: blur(30px);
        }

        .login-brand-side::after {
            content: '';
            position: absolute;
            bottom: -10%;
            left: -10%;
            width: 580px;
            height: 580px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
            filter: blur(30px);
        }

        .login-brand-side .grid-overlay {
            position: absolute;
            inset: 0;
            pointer-events: none;
            background-image:
                linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
            background-size: 40px 40px;
        }

        .brand-content {
            position: relative;
            z-index: 2;
            max-width: 480px;
            animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
        }

        .brand-logo-wrap {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 40px;
        }

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

        .brand-logo-name {
            font-size: 18px;
            font-weight: 800;
            color: #fff;
            letter-spacing: -.01em;
            text-transform: uppercase;
        }

        .brand-logo-faculty {
            font-size: 12px;
            color: rgba(255, 255, 255, .5);
            margin-top: 2px;
            font-weight: 500;
        }

        .brand-tagline {
            margin-bottom: 48px;
        }

        .brand-tagline h2 {
            font-size: 38px;
            font-weight: 800;
            line-height: 1.25;
            letter-spacing: -.03em;
            margin-bottom: 16px;
            background: linear-gradient(135deg, #ffffff 30%, rgba(255, 255, 255, 0.8) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .brand-tagline p {
            font-size: 15.5px;
            color: rgba(255, 255, 255, .6);
            line-height: 1.75;
        }

        .brand-features {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .brand-features li {
            display: flex;
            align-items: center;
            gap: 18px;
            font-size: 14.5px;
            color: rgba(255, 255, 255, .8);
        }

        .brand-feat-icon {
            width: 42px;
            height: 42px;
            flex-shrink: 0;
            border-radius: var(--r-sm);
            background: rgba(255, 255, 255, .06);
            border: 1px solid rgba(255, 255, 255, .1);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            color: rgba(255, 255, 255, .8);
            transition: var(--transition-bounce);
        }

        .brand-features li:hover .brand-feat-icon {
            transform: scale(1.1);
            background: rgba(255, 255, 255, 0.12);
            color: #fff;
        }

        .brand-feat-label {
            font-weight: 700;
            color: #fff;
            font-size: 14px;
        }

        .brand-feat-sub {
            font-size: 12px;
            color: rgba(255, 255, 255, .45);
            margin-top: 2px;
        }

        .login-form-side {
            background: var(--white);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 60px;
            position: relative;
        }

        .login-form-container {
            width: 100%;
            max-width: 420px;
            animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
        }

        .mobile-brand {
            display: none;
            margin-bottom: 36px;
            align-items: center;
            gap: 14px;
        }

        .login-eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: .12em;
            text-transform: uppercase;
            color: var(--ink-50);
            margin-bottom: 12px;
        }

        .login-eyebrow::before {
            content: '';
            width: 16px;
            height: 2px;
            background: var(--ink-15);
            border-radius: 2px;
        }

        .login-title {
            font-size: 30px;
            font-weight: 800;
            color: var(--ink);
            letter-spacing: -.02em;
            margin-bottom: 8px;
        }

        .login-subtitle {
            font-size: 14.5px;
            color: var(--ink-50);
            margin-bottom: 40px;
            line-height: 1.65;
        }

        .login-card {
            background: var(--white);
            border: 1px solid var(--ink-15);
            border-radius: var(--r-lg);
            padding: 32px;
            box-shadow: var(--card-shadow);
            transition: var(--transition);
        }

        .login-card:hover {
            box-shadow: var(--card-shadow-hover);
            border-color: var(--ink-30);
        }

        .login-card-header {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 24px;
        }

        .login-card-icon {
            width: 44px;
            height: 44px;
            background: var(--ink);
            border-radius: var(--r-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            color: var(--white);
        }

        .login-card-label {
            font-size: 14.5px;
            font-weight: 800;
            color: var(--ink);
        }

        .login-card-sub {
            font-size: 12px;
            color: var(--ink-50);
            margin-top: 2px;
            font-weight: 500;
        }

        .auth-btn {
            width: 100%;
            background: var(--ink);
            color: var(--white);
            border: none;
            border-radius: var(--r-sm);
            padding: 15px 24px;
            font-family: 'Noto Sans Thai', sans-serif;
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            box-shadow: 0 4px 18px rgba(13, 17, 23, .22);
            transition: var(--transition);
            margin-bottom: 20px;
        }

        .auth-btn:hover {
            background: var(--ink-70);
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(13, 17, 23, .28);
        }

        .auth-btn.danger {
            background: var(--white);
            color: var(--error);
            border: 1.5px solid var(--error-bd);
            box-shadow: none;
        }

        .auth-btn.danger:hover {
            background: var(--error-bg);
            border-color: var(--error);
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(153, 27, 27, 0.08);
        }

        .auth-hint {
            font-size: 12px;
            color: var(--ink-50);
            text-align: center;
            line-height: 1.8;
            padding: 20px 0 0;
            border-top: 1px dashed var(--ink-15);
            margin-top: 4px;
        }

        .auth-hint strong {
            color: var(--ink);
            font-weight: 700;
        }

        .login-support {
            text-align: center;
            margin-top: 36px;
            font-size: 13px;
            color: var(--ink-30);
        }

        .login-support a {
            color: var(--ink-50);
            font-weight: 700;
            text-decoration: none;
            border-bottom: 1.5px solid transparent;
            transition: var(--transition);
        }

        .login-support a:hover {
            color: var(--ink);
            border-bottom-color: var(--ink-50);
        }

        /* Invalid email screen */
        .invalid-card {
            background: var(--white);
            border: 1px solid var(--error-bd);
            border-radius: var(--r-lg);
            overflow: hidden;
            box-shadow: 0 10px 25px -5px rgba(153, 27, 27, 0.05);
            margin-bottom: 20px;
        }

        .invalid-top {
            background: var(--error);
            padding: 32px 24px;
            text-align: center;
            color: #fff;
        }

        .invalid-top-icon {
            width: 52px;
            height: 52px;
            border: 2px solid rgba(255, 255, 255, .3);
            border-radius: var(--r-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            color: #fff;
            margin: 0 auto 16px;
        }

        .invalid-top-title {
            font-size: 18px;
            font-weight: 800;
            margin-bottom: 6px;
        }

        .invalid-top-sub {
            font-size: 13px;
            color: rgba(255, 255, 255, 0.7);
        }

        .invalid-body {
            padding: 24px;
        }

        .invalid-email-box {
            background: var(--error-bg);
            border: 1px solid var(--error-bd);
            border-radius: var(--r-md);
            padding: 14px 18px;
            margin-bottom: 20px;
        }

        .invalid-email-label {
            font-size: 10px;
            font-weight: 800;
            color: var(--error);
            text-transform: uppercase;
            margin-bottom: 4px;
            letter-spacing: .05em;
        }

        .invalid-email-value {
            font-size: 14.5px;
            font-weight: 700;
            color: var(--ink);
        }

        /* ════ MAIN APP VIEW ════ */
        #mainApp {
            display: none;
        }

        #mainApp.show {
            display: block;
        }

        .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: 12px;
            text-decoration: none;
            color: inherit;
        }

        .header-logo {
            width: 36px;
            height: 36px;
            background: var(--white);
            border: 1px solid var(--ink-15);
            border-radius: 8px;
            padding: 3px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: all 0.2s ease;
            box-sizing: border-box;
        }

        .header-logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 5px;
        }

        .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-right {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .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-70);
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
        }

        .logout-btn {
            background: none;
            border: 1px solid var(--ink-15);
            border-radius: var(--r-sm);
            padding: 6px 12px;
            font-family: 'Noto Sans Thai', sans-serif;
            font-size: 12px;
            font-weight: 700;
            color: var(--error);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: var(--transition);
        }

        .logout-btn:hover {
            background: var(--error-bg);
            border-color: var(--error-bd);
            transform: translateY(-1px);
        }

        /* Page Layout Grid */
        .page-layout {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 32px 80px;
            display: grid;
            grid-template-columns: 1fr 1.1fr;
            gap: 40px;
            align-items: start;
        }

        .info-panel {
            position: sticky;
            top: 110px;
        }

        .info-eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: .12em;
            text-transform: uppercase;
            color: var(--ink-50);
            margin-bottom: 12px;
        }

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

        .info-heading {
            font-size: clamp(28px, 3.2vw, 38px);
            font-weight: 800;
            line-height: 1.25;
            color: var(--ink);
            letter-spacing: -.02em;
            margin-bottom: 16px;
        }

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

        /* Form Card */
        .form-card,
        .steps-overview,
        .notice-card {
            background: var(--white);
            border: 1px solid var(--ink-15);
            border-radius: var(--r-lg);
            overflow: hidden;
            margin-bottom: 20px;
            box-shadow: var(--card-shadow);
            transition: var(--transition);
        }

        .form-card:hover,
        .steps-overview:hover,
        .notice-card:hover {
            box-shadow: var(--card-shadow-hover);
            border-color: var(--ink-30);
        }

        /* card top bar */
        .card-bar {
            background: var(--ink);
            padding: 20px 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid var(--ink-15);
        }

        .card-bar-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .card-bar-icon {
            width: 36px;
            height: 36px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: var(--r-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 15px;
            color: var(--white);
        }

        .card-bar-text {
            line-height: 1.2;
        }

        .card-bar-label {
            font-size: 9.5px;
            font-weight: 700;
            letter-spacing: .12em;
            text-transform: uppercase;
            color: rgba(255, 255, 255, .4);
        }

        .card-bar-title {
            font-size: 14.5px;
            font-weight: 800;
            color: var(--white);
            margin-top: 2px;
        }

        /* step pills */
        .step-pills {
            display: flex;
            gap: 6px;
        }

        .step-pill {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: rgba(255, 255, 255, .25);
        }

        .step-pill.active {
            background: var(--white);
            width: 22px;
            border-radius: 4px;
        }

        /* Form body */
        .form-body {
            padding: 24px;
        }

        /* Section header */
        .section-label {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
            margin-top: 32px;
        }

        .section-label:first-child {
            margin-top: 0;
        }

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

        .section-label-text {
            font-size: 10.5px;
            font-weight: 800;
            letter-spacing: .12em;
            text-transform: uppercase;
            color: var(--ink-50);
            white-space: nowrap;
        }

        /* Fields */
        .field {
            margin-bottom: 20px;
        }

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

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

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

        .field-label i {
            color: var(--ink-50);
            font-size: 12px;
        }

        .req {
            color: var(--error);
            margin-left: 2px;
            font-weight: 800;
        }

        /* Inputs */
        input[type="text"],
        input[type="date"],
        input[type="number"],
        textarea {
            width: 100%;
            background: var(--white);
            border: 1.5px solid var(--ink-15);
            border-radius: var(--r-sm);
            padding: 12px 16px;
            font-family: 'Noto Sans Thai', sans-serif;
            font-size: 16px;
            color: var(--ink);
            outline: none;
            transition: var(--transition);
        }

        input[type="text"]:focus,
        input[type="date"]:focus,
        input[type="number"]:focus,
        textarea:focus {
            border-color: var(--ink);
            background: var(--white);
            box-shadow: 0 0 0 4px var(--ink-15);
        }

        input::placeholder,
        textarea::placeholder {
            color: var(--ink-30);
        }

        textarea {
            resize: none;
            line-height: 1.65;
        }

        /* Total field */
        .total-wrap {
            position: relative;
        }

        .total-input {
            background: var(--ink) !important;
            border-color: var(--ink) !important;
            color: var(--white) !important;
            font-weight: 800 !important;
            font-size: 18px !important;
            padding-right: 52px !important;
        }

        .total-suffix {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 12px;
            font-weight: 700;
            color: var(--white);
            opacity: 0.55;
            pointer-events: none;
        }

        /* Custom Dropdown */
        .custom-select-wrap {
            position: relative;
        }

        .custom-select-trigger {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            background: var(--white);
            border: 1.5px solid var(--ink-15);
            border-radius: var(--r-sm);
            padding: 12px 16px;
            font-family: 'Noto Sans Thai', sans-serif;
            font-size: 16px;
            color: var(--ink-30);
            cursor: pointer;
            user-select: none;
            transition: var(--transition);
        }

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

        .custom-select-trigger.open,
        .custom-select-trigger:hover {
            background: var(--white);
            border-color: var(--ink);
        }

        .custom-select-trigger.open {
            box-shadow: 0 0 0 4px var(--ink-15);
            border-radius: var(--r-sm) var(--r-sm) 0 0;
        }

        .trigger-text {
            flex: 1;
        }

        .trigger-icon {
            font-size: 11px;
            color: var(--ink-50);
            transition: transform .22s cubic-bezier(.22, 1, .36, 1);
            flex-shrink: 0;
        }

        .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: 1.5px solid var(--ink);
            border-top: none;
            border-radius: 0 0 var(--r-sm) var(--r-sm);
            box-shadow: var(--shadow-lg);
            z-index: 999;
            overflow: hidden;
        }

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

        .dropdown-option {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 11px 16px;
            font-family: 'Noto Sans Thai', sans-serif;
            font-size: 14px;
            color: var(--ink-70);
            cursor: pointer;
            transition: var(--transition);
            border-bottom: 1px solid var(--ink-07);
        }

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

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

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

        .option-check {
            font-size: 11px;
            width: 16px;
            text-align: center;
            flex-shrink: 0;
            opacity: 0;
        }

        .dropdown-option.selected .option-check {
            opacity: 1;
        }

        .option-tag {
            margin-left: auto;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: .06em;
            text-transform: uppercase;
            background: var(--ink-15);
            color: var(--ink-50);
            padding: 2px 7px;
            border-radius: 4px;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .dropdown-option.selected .option-tag {
            background: rgba(255, 255, 255, .15);
            color: rgba(255, 255, 255, .6);
        }

        /* hidden real select */
        .real-select {
            display: none;
        }

        /* File upload */
        .file-zone {
            border: 1px dashed var(--ink-30);
            border-radius: var(--r-md);
            padding: 48px 24px;
            text-align: center;
            transition: var(--transition);
            margin-top: 8px;
        }

        .file-zone.drag-over {
            border-color: var(--ink);
            background: var(--ink-07);
        }

        .file-zone-icon {
            font-size: 36px;
            color: var(--ink-30);
            margin-bottom: 12px;
        }

        .file-zone-text-wrap {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            color: var(--ink-50);
            gap: 6px;
            flex-wrap: wrap;
        }

        .file-zone-link {
            position: relative;
            cursor: pointer;
            font-weight: 600;
            color: var(--ink);
            transition: var(--transition);
        }

        .file-zone-link:hover {
            text-decoration: underline;
            text-underline-offset: 4px;
        }

        .file-zone-link input[type="file"] {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            border: 0;
        }

        .file-zone-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 12px;
            color: var(--ink-50);
            margin-top: 8px;
        }

        @media (max-width: 500px) {
            .file-zone-footer {
                flex-direction: column;
                align-items: flex-start;
                gap: 4px;
            }
        }

        .file-selected-card {
            display: none;
            position: relative;
            margin-top: 16px;
            background: var(--ink-07);
            padding: 16px;
            border-radius: var(--r-md);
            align-items: center;
            gap: 12px;
        }

        .file-selected-card.show {
            display: flex;
        }

        .file-card-icon-wrap {
            width: 40px;
            height: 40px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--white);
            border: 1px solid var(--ink-15);
            border-radius: var(--r-sm);
            box-shadow: 0 1px 2px rgba(0,0,0,.05);
            font-size: 18px;
            color: var(--ink);
        }

        .file-card-info {
            flex: 1;
            min-width: 0;
        }

        .file-card-name {
            font-size: 12px;
            font-weight: 600;
            color: var(--ink);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .file-card-size {
            font-size: 12px;
            color: var(--ink-50);
            margin-top: 2px;
        }

        .file-card-remove {
            position: absolute;
            top: 8px;
            right: 8px;
            background: none;
            border: none;
            color: var(--ink-50);
            cursor: pointer;
            padding: 4px;
            border-radius: 4px;
            transition: var(--transition);
        }

        .file-card-remove:hover {
            color: var(--ink);
            background: rgba(0,0,0,.05);
        }

        /* Submit */
        .submit-btn {
            width: 100%;
            background: var(--ink);
            color: var(--white);
            border: none;
            border-radius: var(--r-sm);
            padding: 15px 24px;
            font-family: 'Noto Sans Thai', sans-serif;
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            box-shadow: var(--shadow-md);
            transition: var(--transition);
        }

        .submit-btn:hover:not(:disabled) {
            background: var(--ink-70);
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }

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

        /* Status msg */
        .status-msg {
            display: none;
            margin-top: 14px;
            padding: 12px 16px;
            border-radius: var(--r-sm);
            font-size: 13.5px;
            font-weight: 700;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .status-msg.success {
            display: flex;
            background: var(--success-bg);
            color: var(--success);
            border: 1.5px solid var(--success-bd);
        }

        .status-msg.error {
            display: flex;
            background: var(--error-bg);
            color: var(--error);
            border: 1.5px solid var(--error-bd);
        }

        /* Onboarding Checklist */
        .steps-overview {
            padding: 24px;
        }

        .steps-overview-title {
            font-size: 13.5px;
            font-weight: 800;
            color: var(--ink);
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            text-transform: uppercase;
            letter-spacing: .02em;
        }

        .ov-step {
            display: flex;
            align-items: flex-start;
            gap: 16px;
            padding: 14px 0;
            border-bottom: 1px dashed var(--ink-15);
            position: relative;
        }

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

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

        .ov-num {
            width: 26px;
            height: 26px;
            border-radius: 50%;
            border: 2px solid var(--ink);
            background: var(--white);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: 800;
            color: var(--ink);
            flex-shrink: 0;
            z-index: 2;
            box-shadow: 0 2px 4px rgba(13, 17, 23, 0.05);
        }

        .ov-label {
            font-size: 14px;
            font-weight: 700;
            color: var(--ink);
        }

        .ov-sub {
            font-size: 12px;
            color: var(--ink-50);
            margin-top: 3px;
            font-weight: 500;
            line-height: 1.5;
        }

        /* Notice Card */
        .notice-card {
            background: var(--white);
            border: 1px solid rgba(13, 17, 23, 0.06);
            border-radius: var(--r-lg);
            overflow: hidden;
            margin-bottom: 20px;
            box-shadow: var(--card-shadow);
            transition: var(--transition);
        }

        .notice-inner {
            padding: 20px 24px;
            display: flex;
            gap: 16px;
            align-items: flex-start;
            background: var(--ink-07);
        }

        .notice-icon {
            width: 38px;
            height: 38px;
            background: var(--white);
            border: 1px solid var(--ink-15);
            border-radius: var(--r-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            color: var(--ink-70);
            flex-shrink: 0;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
        }

        .notice-title {
            font-size: 14px;
            font-weight: 800;
            color: var(--ink);
            margin-bottom: 4px;
        }

        .notice-text {
            font-size: 13px;
            color: var(--ink-50);
            line-height: 1.75;
            font-weight: 500;
        }

        .form-footer {
            text-align: center;
            margin-top: 36px;
            font-size: 12px;
            color: var(--ink-30);
        }

        .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;
            }
        }

        /* ════ DESKTOP NAV ════ */
        .header-nav {
            display: flex;
            align-items: center;
            gap: 2px;
            margin-left: 24px;
            margin-right: auto;
        }

        .header-nav .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;
        }

        .header-nav .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);
        }

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

        .header-nav .nav-link:hover::after {
            transform: translateX(-50%) scaleX(1);
        }

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

        .header-nav .nav-link.active::after {
            transform: translateX(-50%) scaleX(1);
        }

        /* ════ USER DROPDOWN ════ */
        .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;
        }

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

        .dd-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);
        }

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

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

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

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

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

        /* ════ HAMBURGER ════ */
        .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 DRAWER ════ */
        .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 .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 .25s cubic-bezier(.4, 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);
        }

        .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;
        }

        /* ════ 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: var(--r-sm);
            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);
        }

        /* ════ TOAST ════ */
        .copy-toast {
            position: fixed;
            bottom: 24px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: var(--ink);
            color: var(--white);
            padding: 12px 24px;
            border-radius: var(--r-sm);
            font-size: 13.5px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 10px 30px rgba(13, 17, 23, 0.25);
            z-index: 10001;
            opacity: 0;
            transition: transform .25s cubic-bezier(.22, 1, .36, 1), opacity .25s ease;
            pointer-events: none;
        }

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

        /* Login button in header */
        .login-header-btn {
            background: var(--ink);
            color: var(--white);
            border: none;
            border-radius: var(--r-sm);
            padding: 8px 14px;
            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);
        }

        .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;
        }

        /* Responsive */
        @media (max-width: 900px) {
            .login-wrapper {
                grid-template-columns: 1fr;
            }

            .login-brand-side {
                display: none;
            }

            .mobile-brand {
                display: flex;
            }

            .mobile-brand-icon {
                width: 44px;
                height: 44px;
                background: var(--ink);
                border-radius: var(--r-sm);
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 18px;
                color: var(--white);
            }

            .mobile-brand-name {
                font-size: 15px;
                font-weight: 800;
                color: var(--ink);
                text-transform: uppercase;
            }

            .mobile-brand-sub {
                font-size: 11px;
                color: var(--ink-50);
                margin-top: 2px;
                font-weight: 500;
            }

            .login-form-side {
                padding: 48px 24px;
            }

            .page-layout {
                grid-template-columns: 1fr;
                padding: 32px 20px 64px;
                gap: 32px;
            }

            .info-panel {
                position: static;
            }

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

            .header-nav {
                display: none;
            }

            .hamburger-btn {
                display: flex;
            }

            .header-right .user-dropdown-container,
            .header-right .login-header-btn {
                display: none !important;
            }
        }

        @media (max-width: 540px) {
            .login-form-side {
                padding: 36px 16px;
            }

            .page-layout {
                padding: 24px 16px 60px;
            }

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

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

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

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

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