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

        :root {
            --ink: #000000;
            --ink-70: #27272a;
            --ink-50: #52525b;
            --ink-30: #a1a1aa;
            --ink-15: #e4e4e7;
            --ink-07: #f4f4f5;
            --white: #ffffff;
            --accent: #000000;
            --success: #000000;
            --success-bg: #f4f4f5;
            --success-bd: #e4e4e7;
            --error: #dc2626;
            --error-bg: #fef2f2;
            --error-bd: #fecaca;
            --warn: #dc2626;
            --warn-bg: #fef2f2;
            --warn-bd: #fecaca;
            --r-xs: 6px;
            --r-sm: 10px;
            --r-md: 14px;
            --r-lg: 20px;
            --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
            --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            --card-shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.1);
        }

        @media (prefers-color-scheme: dark) {
            :root {
                --ink: #ffffff;
                --ink-70: #e4e4e7;
                --ink-50: #a1a1aa;
                --ink-30: #52525b;
                --ink-15: #27272a;
                --ink-07: #18181b;
                --white: #09090b;
                --accent: #ffffff;
                --success: #ffffff;
                --success-bg: #18181b;
                --success-bd: #27272a;
                --error: #f87171;
                --error-bg: rgba(239, 68, 68, 0.12);
                --error-bd: rgba(239, 68, 68, 0.3);
                --warn: #f87171;
                --warn-bg: rgba(239, 68, 68, 0.12);
                --warn-bd: rgba(239, 68, 68, 0.3);
                --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
                --card-shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.6);
            }
        }

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

        body {
            font-family: 'Noto Sans Thai', sans-serif;
            background: #f8fafc;
            background-image:
                radial-gradient(circle at top right, rgba(0, 0, 0, 0.015) 0%, transparent 60%),
                radial-gradient(circle at bottom left, rgba(0, 0, 0, 0.02) 0%, transparent 60%);
            color: var(--ink);
            min-height: 100vh;
            overflow-x: hidden;
            position: relative;
            transition: background-color 0.3s ease;
        }

        @media (prefers-color-scheme: dark) {
            body {
                background: #000000;
                background-image: none;
            }
        }

        /* Site Header */
        .site-header {
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(12px) saturate(190%);
            -webkit-backdrop-filter: blur(12px) saturate(190%);
            border-bottom: 1px solid rgba(13, 17, 23, 0.08);
            position: sticky;
            top: 0;
            z-index: 100;
            transition: var(--transition);
        }

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

        .header-brand {
            display: flex;
            align-items: center;
            gap: 14px;
            text-decoration: 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;
        }

        /* Layout */
        .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;
        }

        /* Cards and Elements */
        .form-card,
        .steps-overview,
        .notice-card,
        .schedule-box,
        .closing-countdown {
            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);
        }

        .form-card:hover,
        .steps-overview:hover,
        .notice-card:hover {
            box-shadow: var(--card-shadow-hover);
            border-color: rgba(13, 17, 23, 0.12);
        }

        .card-bar {
            background: var(--ink);
            padding: 20px 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid rgba(13, 17, 23, 0.05);
        }

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

        .card-body {
            padding: 24px;
        }

        /* Onboarding steps 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-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;
        }

        /* Status Icon Container */
        .icon-container {
            width: 76px;
            height: 76px;
            border-radius: var(--r-md);
            background: var(--ink-07);
            border: 1px solid var(--ink-15);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 24px;
            font-size: 28px;
            color: var(--ink);
            transition: var(--transition);
        }

        .icon-container.active {
            background: var(--success-bg);
            color: var(--success);
            border-color: var(--success-bd);
        }

        .icon-container.closed {
            background: var(--error-bg);
            color: var(--error);
            border-color: var(--error-bd);
        }

        /* Countdown Elements */
        .countdown-label {
            font-size: 11.5px;
            font-weight: 800;
            letter-spacing: .12em;
            text-transform: uppercase;
            color: var(--ink-50);
            text-align: center;
            margin-bottom: 12px;
        }

        .countdown-container {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
            margin-bottom: 24px;
        }

        .time-box {
            background: var(--ink-07);
            border: 1px solid var(--ink-15);
            border-radius: var(--r-sm);
            padding: 12px;
            text-align: center;
        }

        .time-value {
            display: block;
            font-size: 22px;
            font-weight: 800;
            color: var(--ink);
            line-height: 1;
        }

        .time-label {
            display: block;
            font-size: 10px;
            font-weight: 700;
            color: var(--ink-50);
            text-transform: uppercase;
            margin-top: 4px;
        }

        /* Schedule and closing box styling */
        .schedule-box {
            background: var(--ink-07);
            border: 1px solid var(--ink-15);
            padding: 18px;
            margin-bottom: 24px;
            border-radius: var(--r-md);
        }

        .schedule-time {
            font-size: 13.5px;
            line-height: 1.7;
            color: var(--ink-70);
            text-align: center;
        }

        .schedule-time span {
            display: block;
            font-size: 15px;
            font-weight: 800;
            color: var(--ink);
            margin: 4px 0;
        }

        .closing-countdown {
            display: none;
            background: var(--warn-bg);
            border: 1px solid var(--warn-bd);
            padding: 18px;
            text-align: center;
            margin-bottom: 24px;
            border-radius: var(--r-md);
        }

        .closing-countdown.show {
            display: block;
        }

        .closing-countdown-title {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-size: 13px;
            font-weight: 800;
            color: var(--warn);
            margin-bottom: 12px;
            text-transform: uppercase;
        }

        .closing-countdown-timer {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            max-width: 240px;
            margin: 0 auto;
        }

        .closing-time-box {
            background: var(--white);
            border: 1px solid var(--warn-bd);
            border-radius: var(--r-sm);
            padding: 8px;
        }

        .closing-time-value {
            display: block;
            font-size: 18px;
            font-weight: 800;
            color: var(--warn);
        }

        .closing-time-label {
            display: block;
            font-size: 9px;
            color: var(--warn);
            font-weight: 700;
            margin-top: 2px;
        }

        /* Notice Card */
        .notice-inner {
            padding: 20px 24px;
            display: flex;
            gap: 16px;
            align-items: flex-start;
            background: rgba(13, 17, 23, 0.01);
        }

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

        .notice-text a {
            color: var(--ink);
            font-weight: 700;
            text-decoration: underline;
        }

        /* Voting Instructions */
        .voting-instructions {
            display: none;
            background: var(--success-bg);
            border: 1px solid var(--success-bd);
            padding: 20px;
            border-radius: var(--r-md);
            margin-bottom: 24px;
        }

        .voting-instructions.show {
            display: block;
        }

        .voting-instructions-title {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            font-weight: 800;
            color: var(--success);
            margin-bottom: 12px;
        }

        .voting-instructions ol {
            padding-left: 18px;
        }

        .voting-instructions li {
            font-size: 13px;
            color: var(--ink-70);
            line-height: 1.7;
            margin-bottom: 6px;
            font-weight: 500;
        }

        .voting-instructions li:last-child {
            margin-bottom: 0;
        }

        /* Button controls */
        .action-buttons {
            display: none;
            gap: 12px;
        }

        .action-buttons.show {
            display: flex;
            flex-direction: column;
        }

        .btn {
            width: 100%;
            border-radius: var(--r-sm);
            padding: 14px 20px;
            font-family: inherit;
            font-size: 14.5px;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            text-decoration: none;
            transition: var(--transition);
        }

        .btn-primary {
            background: var(--ink);
            color: var(--white);
            box-shadow: 0 4px 12px rgba(13, 17, 23, 0.15);
        }

        .btn-primary:hover {
            background: var(--ink-70);
            transform: translateY(-2px);
        }

        .btn-secondary {
            background: var(--white);
            color: var(--ink);
            border: 1.5px solid var(--ink-15);
        }

        .btn-secondary:hover {
            background: var(--ink-07);
            border-color: var(--ink);
            transform: translateY(-2px);
        }

        .hide-when-open {
            display: none !important;
        }

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

        /* Responsive styling */
        @media (max-width: 900px) {
            .page-layout {
                grid-template-columns: 1fr;
                padding: 32px 20px 64px;
                gap: 32px;
            }

            .info-panel {
                position: static;
            }

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

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

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