        /* ===== GLOBAL FONT & BASE ===== */
        *, *::before, *::after { box-sizing: border-box; }
        body, #app-shell, input, button, select, textarea {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
        }
        #tombol-nomor div,
        .btn-biner,
        .setting-btn,
        .petunjuk-tab,
        .next-btn,
        .prev-btn,
        #pilihan-waktu button,
        #hasil-pilihan-waktu button,
        .tombol-tes,
        #btnFullscreen {
            touch-action: manipulation;
        }
        #app-title { line-height: 1.1; }
        #judul-tes { font-weight: 800 !important; font-size: 0.95rem !important; color: #1e293b; letter-spacing: -0.02em; }
        #subjudul { font-size: 0.72rem !important; font-weight: 400 !important; color: #64748b !important; letter-spacing: 0.01em; }
        .tanpa-animasi #tampil-nomor p,
        .tanpa-animasi #tampil-nomor div,
        #tampil-nomor.tanpa-animasi p,
        #tampil-nomor.tanpa-animasi div {
            transition: none !important;
        }
        .tanpa-animasi #tombol-nomor div.flash {
            transition: none !important;
        }

        /* SCREEN FOOTER PEMBATAS */
        .screen-footer {
            background: transparent !important;
            border-top: 2px dashed rgba(43, 72, 101, 0.35) !important;
        }

        /* PENGATURAN TES (MODERN STARTUP-GRADE - KONTEN BACKGROUND & DASHED BORDER) */
        #label-mode-aktif-pengaturan {
            display: none !important;
        }
        .setting-card-block {
            background: transparent;
            border: 2px dashed rgba(43, 72, 101, 0.28);
            border-radius: 16px;
            padding: 16px;
            margin-bottom: 16px;
            box-shadow: none;
            transition: all 0.2s ease;
        }
        .setting-section-header {
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.06em;
            color: #64748b;
            text-transform: uppercase;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .setting-group-item {
            margin-bottom: 14px;
        }
        .setting-group-item:last-child {
            margin-bottom: 0;
        }
        .setting-group-label {
            font-size: 0.82rem;
            font-weight: 700;
            color: #1e293b;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .setting-btn-group {
            display: flex;
            background: rgba(43, 72, 101, 0.08);
            padding: 4px;
            border-radius: 12px;
            gap: 4px;
        }
        .setting-btn-group .btn-check + .setting-btn {
            flex: 1;
            border: none;
            background: transparent;
            color: #64748b;
            font-size: 0.8rem;
            font-weight: 600;
            padding: 8px 8px;
            border-radius: 9px;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            cursor: pointer;
            user-select: none;
        }
        .setting-btn-group .btn-check:checked + .setting-btn {
            background: #2c68ee !important;
            color: #ffffff !important;
            box-shadow: 0 2px 8px rgba(44, 104, 238, 0.3);
            font-weight: 700;
        }
        .setting-btn-group .setting-btn:hover:not(.active) {
            color: #1e293b;
            background: rgba(255, 255, 255, 0.6);
        }
        .setting-switch-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 11px 0;
            border-bottom: 1px dashed rgba(43, 72, 101, 0.18);
        }
        .setting-switch-row:last-child {
            border-bottom: none;
            padding-bottom: 2px;
        }
        .setting-switch-info {
            display: flex;
            align-items: center;
            gap: 12px;
            padding-right: 12px;
        }
        .setting-switch-icon {
            width: 34px;
            height: 34px;
            border-radius: 10px;
            background: rgba(44, 104, 238, 0.08);
            color: #2c68ee;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            flex-shrink: 0;
        }
        .setting-switch-title {
            font-size: 0.85rem;
            font-weight: 700;
            color: #1e293b;
            line-height: 1.25;
            margin-bottom: 2px;
        }
        .setting-switch-desc {
            font-size: 0.72rem;
            color: #64748b;
            line-height: 1.2;
        }

        /* CUSTOM WAKTU BROMAX */
        .custom-btn-bromax {
            padding: 8px 18px;
            border-radius: 12px;
            font-weight: 700;
            font-size: 0.88rem;
            background: #fff8e6;
            color: #b45309;
            border: 1.5px solid #fcd34d;
            text-shadow: none;
            transition: all 0.2s;
            cursor: pointer;
        }
        .custom-btn-bromax:hover,
        .custom-btn-bromax.waktu-dipilih {
            background: linear-gradient(135deg, #f59e0b, #d97706) !important;
            border-color: #d97706 !important;
            color: #ffffff !important;
            box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3) !important;
        }
        .custom-waktu-container {
            flex-basis: 100%;
            width: 100%;
            max-width: 380px;
            margin: 14px auto 4px auto;
        }
        .custom-waktu-card {
            background: transparent;
            border: 2px dashed rgba(245, 158, 11, 0.45);
            border-radius: 16px;
            padding: 14px 16px;
            text-align: center;
        }
        .custom-waktu-title {
            font-size: 0.82rem;
            font-weight: 700;
            color: #b45309;
        }
        .custom-waktu-input-group {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin: 10px 0 6px 0;
        }
        .custom-waktu-field {
            max-width: 140px;
            font-size: 1.25rem;
            font-weight: 800;
            text-align: center;
            color: #1e293b;
            background: rgba(255, 255, 255, 0.85);
            border: 2px solid rgba(245, 158, 11, 0.4);
            border-radius: 12px;
            padding: 6px 12px;
            outline: none;
            transition: all 0.2s;
        }
        .custom-waktu-field:focus {
            border-color: #f59e0b;
            box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
            background: #ffffff;
        }
        .custom-waktu-suffix {
            font-size: 0.9rem;
            font-weight: 700;
            color: #64748b;
        }
        .custom-waktu-hint {
            font-size: 0.72rem;
            color: #94a3b8;
            margin-top: 4px;
        }

        /* BROMAX GOLD ACCENT IN DROPDOWN */
        .bromax-gold-text {
            color: #d97706 !important;
            font-weight: 800 !important;
            background: linear-gradient(135deg, #b45309 0%, #d97706 50%, #f59e0b 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .badge-bromax-gold {
            font-size: 0.62rem;
            font-weight: 700;
            background: linear-gradient(135deg, #fef3c7, #fde68a);
            color: #92400e;
            border: 1px solid #fcd34d;
            border-radius: 999px;
            padding: 2px 7px;
            display: inline-flex;
            align-items: center;
        }
        .setting-card-block .form-check-input:focus {
            box-shadow: 0 0 0 3px rgba(44, 104, 238, 0.2);
            border-color: #2c68ee;
        }
        .setting-card-block .form-check-input:checked {
            background-color: #2c68ee;
            border-color: #2c68ee;
        }

        /* TAMPILAN MODE HORIZONTAL (GULIR KE KANAN) */
        .mode-horizontal #tampil-nomor {
            margin-top: 65px;
            margin-bottom: 10px;
            height: 120px;
            min-height: 100px;
            max-height: 140px;
        }
        .mode-horizontal #tampil-nomor p {
            top: 50% !important;
        }
        .mode-horizontal #tampil-nomor p:nth-of-type(1) {
            left: 92% !important;
            top: 50% !important;
            transform: translate(-50%, -50%) !important;
            font-size: 24px !important;
            opacity: 0.35 !important;
        }
        .mode-horizontal #tampil-nomor p:nth-of-type(2) {
            left: 68% !important;
            top: 50% !important;
            transform: translate(-50%, -50%) !important;
            font-size: 60px !important;
            opacity: 1 !important;
        }
        .mode-horizontal #tampil-nomor div:nth-of-type(1) {
            left: 50% !important;
            top: 50% !important;
            transform: translate(-50%, -50%) !important;
            font-size: 28px !important;
            opacity: 0.85 !important;
        }
        .mode-horizontal #tampil-nomor div:nth-of-type(2) {
            left: 40% !important;
            top: 50% !important;
            transform: translate(-50%, -50%) !important;
            opacity: 0 !important;
        }
        .mode-horizontal #tampil-nomor p:nth-of-type(3) {
            left: 32% !important;
            top: 50% !important;
            transform: translate(-50%, -50%) !important;
            font-size: 60px !important;
            opacity: 1 !important;
        }
        .mode-horizontal #tampil-nomor p:nth-of-type(4) {
            left: 8% !important;
            top: 50% !important;
            transform: translate(-50%, -50%) !important;
            font-size: 24px !important;
            opacity: 0.35 !important;
        }
        .mode-horizontal #tampil-nomor p:nth-of-type(5) {
            left: 0% !important;
            top: 50% !important;
            transform: translate(-100%, -50%) !important;
            font-size: 24px !important;
            opacity: 0 !important;
            z-index: -1 !important;
        }

        @media (max-width: 360px) {
            .mode-horizontal #tampil-nomor p:nth-of-type(2),
            .mode-horizontal #tampil-nomor p:nth-of-type(3) {
                font-size: 48px !important;
            }
            .mode-horizontal #tampil-nomor p:nth-of-type(1),
            .mode-horizontal #tampil-nomor p:nth-of-type(4) {
                font-size: 20px !important;
            }
        }
        @media (max-height: 700px) {
            .mode-horizontal #tampil-nomor {
                margin-top: 50px;
                margin-bottom: 5px;
            }
            .mode-horizontal #tampil-nomor p:nth-of-type(2),
            .mode-horizontal #tampil-nomor p:nth-of-type(3) {
                font-size: 46px !important;
            }
        }

        /* MODE VERTIKAL: ATAS KE BAWAH (PAULI) */
        #app-shell.vertikal-pauli:not(.mode-horizontal) #tampil-nomor p:nth-of-type(1) {
            top: 100% !important;
            transform: translateX(-50%) translateY(-100%) !important;
            font-size: 25px !important;
            opacity: 0.5 !important;
        }
        #app-shell.vertikal-pauli:not(.mode-horizontal) #tampil-nomor p:nth-of-type(2) {
            top: 66.66% !important;
            transform: translateX(-50%) translateY(-50%) !important;
            font-size: 65px !important;
            opacity: 1 !important;
        }
        #app-shell.vertikal-pauli:not(.mode-horizontal) #tampil-nomor p:nth-of-type(3) {
            top: 33.33% !important;
            transform: translateX(-50%) translateY(-50%) !important;
            font-size: 65px !important;
            opacity: 1 !important;
        }
        #app-shell.vertikal-pauli:not(.mode-horizontal) #tampil-nomor p:nth-of-type(4) {
            top: 0% !important;
            transform: translateX(-50%) translateY(0%) !important;
            font-size: 25px !important;
            opacity: 0.5 !important;
        }
        #app-shell.vertikal-pauli:not(.mode-horizontal) #tampil-nomor p:nth-of-type(5) {
            top: 0% !important;
            transform: translateX(-50%) translateY(0%) !important;
            font-size: 25px !important;
            opacity: 0 !important;
            z-index: -1 !important;
        }
        #app-shell.vertikal-pauli:not(.mode-horizontal) #tampil-nomor div:nth-of-type(1) {
            top: 50% !important;
            transform: translateX(-50%) translateY(-50%) !important;
            opacity: 1 !important;
        }
        #app-shell.vertikal-pauli:not(.mode-horizontal) #tampil-nomor div:nth-of-type(2) {
            top: 40% !important;
            transform: translateX(-50%) translateY(-50%) !important;
            opacity: 0 !important;
        }

        @media (max-height: 700px), (max-width: 480px) {
            #app-shell.vertikal-pauli:not(.mode-horizontal) #tampil-nomor p:nth-of-type(1) {
                font-size: 20px !important;
                top: 100% !important;
                transform: translateX(-50%) translateY(-100%) !important;
            }
            #app-shell.vertikal-pauli:not(.mode-horizontal) #tampil-nomor p:nth-of-type(2) {
                font-size: 40px !important;
                top: 68% !important;
                transform: translateX(-50%) translateY(-50%) !important;
            }
            #app-shell.vertikal-pauli:not(.mode-horizontal) #tampil-nomor p:nth-of-type(3) {
                font-size: 40px !important;
                top: 30% !important;
                transform: translateX(-50%) translateY(-50%) !important;
            }
            #app-shell.vertikal-pauli:not(.mode-horizontal) #tampil-nomor p:nth-of-type(4) {
                font-size: 20px !important;
                top: 0% !important;
                transform: translateX(-50%) translateY(0%) !important;
            }
        }

        /* SUSUNAN KEYPAD KALKULATOR (7-8-9 DI ATAS) */
        .numpad-kalkulator #tombol-nomor div:nth-child(1) { order: 7; }
        .numpad-kalkulator #tombol-nomor div:nth-child(2) { order: 8; }
        .numpad-kalkulator #tombol-nomor div:nth-child(3) { order: 9; }
        .numpad-kalkulator #tombol-nomor div:nth-child(4) { order: 4; }
        .numpad-kalkulator #tombol-nomor div:nth-child(5) { order: 5; }
        .numpad-kalkulator #tombol-nomor div:nth-child(6) { order: 6; }
        .numpad-kalkulator #tombol-nomor div:nth-child(7) { order: 1; }
        .numpad-kalkulator #tombol-nomor div:nth-child(8) { order: 2; }
        .numpad-kalkulator #tombol-nomor div:nth-child(9) { order: 3; }
        .numpad-kalkulator #tombol-nomor #tombol-kembali { order: 10; }
        .numpad-kalkulator #tombol-nomor div:nth-child(11) { order: 11; }
        .numpad-kalkulator #tombol-nomor #tombol-selesai { order: 12; }

        /* SEMBUNYIKAN SIMBOL TAMBAH (+) */
        #app-shell.sembunyi-simbol-plus #tampil-nomor div {
            display: none !important;
        }
        #app-shell.sembunyi-simbol-plus.mode-horizontal #tampil-nomor p:nth-of-type(2) {
            left: 63% !important;
        }
        #app-shell.sembunyi-simbol-plus.mode-horizontal #tampil-nomor p:nth-of-type(3) {
            left: 37% !important;
        }

        /* MODE REALISTIS (SEMBUNYIKAN LIVE SKOR SAAT TES) */
        #app-shell.mode-realistis .badge-skor-live,
        #app-shell.mode-realistis #live-skor-box-wrap .badge-skor-live,
        #app-shell.mode-kertas-aktif.mode-realistis #live-skor-box-wrap .badge-skor-live {
            display: none !important;
        }

        /* UKURAN FONT BESAR */
        #app-shell.font-besar #tampil-nomor p:nth-of-type(2),
        #app-shell.font-besar #tampil-nomor p:nth-of-type(3) {
            font-size: 80px !important;
        }
        #app-shell.font-besar #tampil-nomor p:nth-of-type(1),
        #app-shell.font-besar #tampil-nomor p:nth-of-type(4) {
            font-size: 30px !important;
        }
        #app-shell.font-besar #tampil-nomor div:nth-of-type(1) {
            font-size: 32px !important;
        }
        #app-shell.font-besar.mode-horizontal #tampil-nomor p:nth-of-type(2),
        #app-shell.font-besar.mode-horizontal #tampil-nomor p:nth-of-type(3) {
            font-size: 72px !important;
        }
        #app-shell.font-besar.mode-horizontal #tampil-nomor p:nth-of-type(1),
        #app-shell.font-besar.mode-horizontal #tampil-nomor p:nth-of-type(4) {
            font-size: 26px !important;
        }
        #app-shell.font-besar #tombol-nomor div {
            font-size: 34px !important;
            padding: 6px 18px !important;
        }
        @media (max-height: 700px) {
            #app-shell.font-besar #tampil-nomor p:nth-of-type(2),
            #app-shell.font-besar #tampil-nomor p:nth-of-type(3) {
                font-size: 64px !important;
            }
            #app-shell.font-besar.mode-horizontal #tampil-nomor p:nth-of-type(2),
            #app-shell.font-besar.mode-horizontal #tampil-nomor p:nth-of-type(3) {
                font-size: 58px !important;
            }
        }

        /* TEMA GELAP (DARK MODE) */
        #app-shell.theme-dark {
            background: #0f1117 !important;
            color: #f1f5f9 !important;
            border-color: rgba(255,255,255,0.08) !important;
        }
        #app-shell.theme-dark #app-header {
            background: #131720 !important;
            border-bottom-color: rgba(255, 255, 255, 0.08) !important;
            color: #f1f5f9 !important;
        }
        #app-shell.theme-dark #app-header::after {
            background: linear-gradient(90deg, transparent, rgba(44,104,238,0.3), rgba(14,165,233,0.3), transparent);
        }
        #app-shell.theme-dark #judul-tes { color: #f1f5f9 !important; }
        #app-shell.theme-dark #subjudul { color: #64748b !important; }
        #app-shell.theme-dark #app-header small {
            color: #94a3b8 !important;
        }
        #app-shell.theme-dark .screen-footer {
            background: rgba(255,255,255,0.03) !important;
            border-top-color: rgba(255, 255, 255, 0.07) !important;
        }
        #app-shell.theme-dark .screen-title,
        #app-shell.theme-dark .aturan {
            color: #f1f5f9 !important;
        }
        #app-shell.theme-dark .table {
            color: #e2e8f0 !important;
            border-color: rgba(255, 255, 255, 0.1) !important;
        }
        #app-shell.theme-dark .table th,
        #app-shell.theme-dark .table td {
            border-color: rgba(255, 255, 255, 0.1) !important;
            color: #e2e8f0 !important;
        }
        #hasil-persen-benar {
            font-size: 1.55rem !important;
            white-space: nowrap !important;
            line-height: 1.15 !important;
            color: #000000 !important;
            -webkit-text-fill-color: #000000 !important;
            background: none !important;
        }
        #tabel-hasil {
            padding: 8px 12px !important;
        }
        #tabel-hasil .hasil-poin {
            font-size: 0.88rem !important;
            white-space: nowrap !important;
        }
        @media (max-width: 400px) {
            #hasil .screen-footer {
                padding: 8px 10px !important;
            }
            #btn-hasil-menu, #btn-salin-hasil {
                font-size: 0.8rem !important;
                padding: 5px 10px !important;
            }
            #tombol-ulangi-tes {
                font-size: 0.85rem !important;
                padding: 5px 14px !important;
            }
        }
        #app-shell.theme-dark #tabel-hasil {
            background: rgba(255,255,255,0.04) !important;
            border-color: rgba(255,255,255,0.1) !important;
        }
        #app-shell.theme-dark #btn-hasil-menu {
            border-color: rgba(255, 255, 255, 0.3) !important;
            color: #e2e8f0 !important;
        }
        #app-shell.theme-dark #btn-hasil-menu:hover {
            background-color: rgba(255, 255, 255, 0.1) !important;
            color: #ffffff !important;
        }
        #app-shell.theme-dark #btn-salin-hasil {
            border-color: #3b82f6 !important;
            color: #60a5fa !important;
        }
        #app-shell.theme-dark #btn-salin-hasil:hover {
            background-color: rgba(59, 130, 246, 0.2) !important;
            color: #ffffff !important;
        }
        #app-shell.theme-dark #kertas-saran-evaluasi {
            background: rgba(44, 104, 238, 0.1) !important;
            border-color: rgba(44, 104, 238, 0.25) !important;
            color: #93c5fd !important;
        }
        .theme-dark .modal-content {
            background: #0f1117 !important;
            color: #f1f5f9 !important;
            border: 1px solid rgba(44, 104, 238, 0.2) !important;
        }
        body.theme-dark #modal-info-metrik .text-secondary,
        #app-shell.theme-dark #modal-info-metrik .text-secondary {
            color: #94a3b8 !important;
        }
        body.theme-dark #modal-info-metrik .btn-close,
        #app-shell.theme-dark #modal-info-metrik .btn-close {
            filter: invert(1) grayscale(100%) brightness(200%);
        }
        #app-shell.theme-dark .table-light,
        #app-shell.theme-dark .table-light th {
            background-color: rgba(255,255,255,0.05) !important;
            color: #94a3b8 !important;
            border-color: rgba(255, 255, 255, 0.08) !important;
        }
        #app-shell.theme-dark #btnFullscreen {
            color: #cbd5e1 !important;
        }
        /* Dark mode untuk score card dan stat chips di hasil */
        #app-shell.theme-dark #hasil .col-5 > div,
        #app-shell.theme-dark #tabel-hasil {
            background: transparent !important;
            border: 2px dashed rgba(255, 255, 255, 0.2) !important;
        }
        #app-shell.theme-dark #hasil-persen-benar {
            color: #f1f5f9 !important;
        }
        #app-shell.theme-dark #hasil-waktu-tes-selesai {
            background: rgba(255, 255, 255, 0.08) !important;
            color: #cbd5e1 !important;
        }
        #app-shell.theme-dark #tabel-hasil span {
            color: #cbd5e1 !important;
        }
        #app-shell.theme-dark #hasil-benar {
            background: rgba(16, 185, 129, 0.15) !important;
            color: #6ee7b7 !important;
        }
        #app-shell.theme-dark #hasil-salah {
            background: rgba(239, 68, 68, 0.15) !important;
            color: #fca5a5 !important;
        }
        #app-shell.theme-dark #hasil-total,
        #app-shell.theme-dark #hasil-kecepatan {
            background: rgba(255, 255, 255, 0.08) !important;
            color: #e2e8f0 !important;
        }
        #app-shell.theme-dark #rekap-kertas-hasil .col-6 > div {
            background: transparent !important;
            border-color: rgba(255, 255, 255, 0.15) !important;
        }
        #app-shell.theme-dark #kertas-saran-evaluasi {
            background: transparent !important;
            border-color: rgba(255, 255, 255, 0.15) !important;
            color: #cbd5e1 !important;
        }

        #app-shell.theme-dark .setting-card-block {
            background: transparent !important;
            border: 2px dashed rgba(255, 255, 255, 0.2) !important;
            box-shadow: none !important;
        }
        #app-shell.theme-dark .setting-group-label,
        #app-shell.theme-dark .setting-switch-title {
            color: #f1f5f9 !important;
        }
        #app-shell.theme-dark .setting-switch-desc {
            color: #94a3b8 !important;
        }
        #app-shell.theme-dark .setting-section-header {
            color: #94a3b8 !important;
        }
        #app-shell.theme-dark .setting-btn-group {
            background: rgba(255, 255, 255, 0.06) !important;
        }
        #app-shell.theme-dark .setting-btn-group .btn-check + .setting-btn {
            color: #94a3b8 !important;
        }
        #app-shell.theme-dark .setting-btn-group .btn-check:checked + .setting-btn {
            background: #2c68ee !important;
            color: #ffffff !important;
            box-shadow: 0 2px 8px rgba(44, 104, 238, 0.4) !important;
        }
        #app-shell.theme-dark .setting-btn-group .setting-btn:hover:not(.active) {
            color: #ffffff !important;
            background: rgba(255, 255, 255, 0.08) !important;
        }
        #app-shell.theme-dark .setting-switch-row {
            border-bottom-color: rgba(255, 255, 255, 0.06) !important;
        }
        #app-shell.theme-dark .setting-switch-icon {
            background: rgba(44, 104, 238, 0.16) !important;
            color: #60a5fa !important;
        }
        #app-shell.theme-dark #btn-reset-default {
            border-color: rgba(239, 68, 68, 0.5) !important;
            color: #f87171 !important;
        }
        #app-shell.theme-dark #btn-reset-default:hover {
            background-color: rgba(239, 68, 68, 0.15) !important;
            color: #ffffff !important;
        }
        #app-shell.theme-dark #tampil-nomor,
        #app-shell.theme-dark #mundur {
            color: #f1f5f9 !important;
        }
        #app-shell.theme-dark #tombol-nomor div {
            background: linear-gradient(145deg, #ec4899, #db2777) !important;
            box-shadow: 0 4px 0 #9d174d, 0 4px 12px rgba(236, 72, 153, 0.4) !important;
            border: none !important;
        }
        #app-shell.theme-dark #tombol-kembali,
        #app-shell.theme-dark .prev-btn {
            color: #64748b !important;
        }
        #app-shell.theme-dark #waktu-mulai-langsung {
            border-color: rgba(255,255,255,0.2) !important;
            color: #94a3b8 !important;
        }
        #app-shell.theme-dark #waktu-mulai-langsung:hover {
            background-color: rgba(255, 255, 255, 0.1) !important;
            color: #ffffff !important;
        }
        #app-shell.theme-dark #custom-waktu-wrap {
            color: #e2e8f0 !important;
        }
        #app-shell.theme-dark #custom-waktu-input {
            background: rgba(255,255,255,0.06) !important;
            color: #f1f5f9 !important;
            border-color: rgba(44,104,238,0.3) !important;
        }
        #app-shell.theme-dark #custom-waktu-input:focus {
            border-color: #2c68ee !important;
            box-shadow: 0 0 0 3px rgba(44,104,238,0.2) !important;
        }
        body.theme-dark .modal-content,
        #app-shell.theme-dark .modal-content {
            background-color: #0f1117 !important;
            color: #f1f5f9 !important;
            border: 1px solid rgba(44,104,238,0.15) !important;
        }

        /* TAB PETUNJUK */
        .petunjuk-tab-wrapper {
            max-width: 380px;
            margin: 10px auto 14px auto;
            padding: 0 4px;
        }
        .petunjuk-tabs {
            background: rgba(44, 104, 238, 0.07);
            border: 1.5px solid rgba(44, 104, 238, 0.2);
            border-radius: 999px;
            padding: 4px;
            display: flex;
            gap: 4px;
        }
        .petunjuk-tab {
            flex: 1;
            border: none;
            background: transparent;
            color: #475569;
            font-weight: 700;
            font-size: 0.78rem;
            padding: 7px 6px;
            border-radius: 999px;
            transition: all 0.2s ease-in-out;
            cursor: pointer;
            outline: none !important;
            display: flex;
            align-items: center;
            justify-content: center;
            user-select: none;
            white-space: nowrap;
        }
        @media (max-width: 360px) {
            .petunjuk-tab {
                font-size: 0.72rem;
                padding: 6px 3px;
            }
        }
        .petunjuk-tab:hover {
            color: #2c68ee;
        }
        .petunjuk-tab.active {
            background: #ffffff;
            color: #2c68ee;
            box-shadow: 0 2px 8px rgba(44, 104, 238, 0.25);
        }
        #app-shell.theme-dark .petunjuk-tabs {
            background: rgba(44, 104, 238, 0.1);
            border-color: rgba(44, 104, 238, 0.25);
        }
        #app-shell.theme-dark .petunjuk-tab {
            color: #94a3b8;
        }
        #app-shell.theme-dark .petunjuk-tab:hover {
            color: #60a5fa;
        }
        #app-shell.theme-dark .petunjuk-tab.active {
            background: linear-gradient(135deg, #2c68ee, #1e54cc);
            color: #ffffff;
            box-shadow: 0 3px 10px rgba(44, 104, 238, 0.4);
        }
        #app-shell.font-besar .petunjuk-tab {
            font-size: 0.95rem;
            padding: 9px 14px;
        }

        /* TOMBOL GANJIL - GENAP */
        #tombol-ganjil-genap {
            width: 100%;
            padding: 0 4px;
            box-sizing: border-box;
        }
        .btn-biner {
            border-radius: 18px;
            border-width: 2px 2px 6px 2px;
            border-style: solid;
            border-color: rgba(47, 54, 64, 1);
            color: #fff;
            padding: 14px 6px;
            font-weight: 800;
            text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
            cursor: pointer;
            transition: 0.15s;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 2px;
            outline: none !important;
            user-select: none;
        }
        .btn-biner .biner-label {
            font-size: 24px;
            letter-spacing: 1px;
            line-height: 1.1;
        }
        .btn-biner .biner-key-hint {
            font-size: 13px;
            opacity: 0.9;
            font-weight: 700;
            text-shadow: none;
            background: rgba(0, 0, 0, 0.25);
            padding: 1px 8px;
            border-radius: 6px;
            margin-top: 3px;
        }
        .btn-ganjil {
            background: #e67e22;
        }
        .btn-genap {
            background: #2980b9;
        }
        .btn-biner:active,
        .btn-biner.flash {
            opacity: 0.85;
            border-width: 2px 2px 2px 2px;
            transform: translateY(4px);
        }
        #app-shell.theme-dark .btn-biner {
            border-color: #2c3e50;
        }
        #app-shell.theme-dark #tombol-kembali-biner {
            color: #d2dae2;
        }
        #app-shell.font-besar .btn-biner .biner-label {
            font-size: 28px !important;
        }
        #app-shell.font-besar .btn-biner {
            padding: 18px 8px !important;
        }

        /* SEMBUNYIKAN PREVIEW ANGKA SEBELUM & SESUDAH (PRIORITAS TERTINGGI: VERTIKAL & HORIZONTAL) */
        .sembunyi-preview #tampil-nomor p:nth-of-type(1),
        .sembunyi-preview #tampil-nomor p:nth-of-type(4),
        #app-shell.sembunyi-preview #tampil-nomor p:nth-of-type(1),
        #app-shell.sembunyi-preview #tampil-nomor p:nth-of-type(4),
        #app-shell.sembunyi-preview.mode-horizontal #tampil-nomor p:nth-of-type(1),
        #app-shell.sembunyi-preview.mode-horizontal #tampil-nomor p:nth-of-type(4) {
            opacity: 0 !important;
            visibility: hidden !important;
        }

        /* HITUNG MUNDUR & IKLAN BROMAX */
        #hitung-mundur .screen-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 14px 14px;
        }
        #hitung-mundur #mundur {
            position: static !important;
            transform: none !important;
            font-size: 34px !important;
            font-weight: 800 !important;
            line-height: 1 !important;
            color: #1e90ff !important;
        }
        .countdown-circle {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: linear-gradient(135deg, rgba(30, 144, 255, 0.12), rgba(255, 177, 66, 0.15));
            border: 3px solid #1e90ff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 14px rgba(30, 144, 255, 0.25);
            animation: pulse-countdown 1s ease-in-out infinite;
        }
        @keyframes pulse-countdown {
            0% { transform: scale(1); }
            50% { transform: scale(1.08); box-shadow: 0 6px 18px rgba(30, 144, 255, 0.4); }
            100% { transform: scale(1); }
        }
        .bromax-promo-card {
            background: linear-gradient(145deg, #ffffff, #fffbee);
            border: 2px solid #ffd32a;
            border-radius: 16px;
            padding: 13px 14px;
            box-shadow: 0 6px 20px rgba(255, 177, 66, 0.18);
            max-width: 340px;
            width: 100%;
            transition: all 0.2s ease-in-out;
        }
        .bromax-icon-wrap {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            background: linear-gradient(135deg, #ffd32a, #ffa801);
            color: #1e272e;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            box-shadow: 0 2px 8px rgba(255, 168, 1, 0.35);
        }
        .bromax-badge {
            font-size: 0.65rem;
            font-weight: 800;
            color: #d35400;
            letter-spacing: 0.6px;
            text-transform: uppercase;
            display: block;
            line-height: 1;
        }
        .bromax-title {
            font-size: 0.95rem;
            font-weight: 800;
            color: #2b4865;
        }
        .benefit-icon {
            width: 30px;
            height: 30px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            flex-shrink: 0;
        }
        .bg-danger-soft { background: rgba(235, 59, 90, 0.12); }
        .bg-primary-soft { background: rgba(30, 144, 255, 0.12); }
        .bg-success-soft { background: rgba(32, 191, 107, 0.14); }
        .benefit-headline {
            color: #2b4865;
            line-height: 1.2;
        }
        .btn-bromax-cta {
            background: linear-gradient(135deg, #ffd32a, #ffa801) !important;
            border: none !important;
            color: #1e272e !important;
            border-radius: 10px;
            font-size: 0.82rem;
            padding: 8px 14px;
            box-shadow: 0 4px 12px rgba(255, 168, 1, 0.35);
            transition: transform 0.15s, box-shadow 0.15s;
            text-decoration: none !important;
        }
        .btn-bromax-cta:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 16px rgba(255, 168, 1, 0.5);
            color: #1e272e !important;
        }

        /* Dark Mode for Countdown & BroMax Ad */
        #app-shell.theme-dark #hitung-mundur #mundur {
            color: #ffa801 !important;
        }
        #app-shell.theme-dark .countdown-circle {
            border-color: #ffa801;
            background: linear-gradient(135deg, rgba(255, 168, 1, 0.2), rgba(235, 59, 90, 0.15));
            box-shadow: 0 4px 14px rgba(255, 168, 1, 0.3);
        }
        #app-shell.theme-dark .bromax-promo-card {
            background: linear-gradient(145deg, #2c3e50, #1e272e);
            border-color: #f39c12;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
            color: #f5f6fa;
        }
        #app-shell.theme-dark .bromax-title {
            color: #f5f6fa;
        }
        #app-shell.theme-dark .bromax-badge {
            color: #f1c40f;
        }
        #app-shell.theme-dark .benefit-headline {
            color: #ffffff;
        }
        #app-shell.theme-dark .benefit-sub {
            color: #a4b0be !important;
        }
        #app-shell.theme-dark .bromax-promo-header {
            border-color: rgba(255, 255, 255, 0.12) !important;
        }

        /* MODE LEMBAR KERTAS (SIMULASI KERTAS ASLI KRAEPELIN / PAULI) */
        .lembar-kertas-container {
            width: 100%;
            position: relative;
            margin-top: 48px;
            margin-bottom: 8px;
        }
        .lembar-kertas-header {
            width: 100%;
            box-sizing: border-box;
        }
        .lembar-kertas-viewport {
            width: 100%;
            height: 275px;
            position: relative;
            overflow: hidden;
            background: rgba(43, 72, 101, 0.04);
            border: 1.5px solid rgba(43, 72, 101, 0.15);
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            padding: 8px 0;
            user-select: none;
        }
        .lembar-kertas-sheet {
            display: flex;
            gap: 14px;
            position: absolute;
            left: 0;
            top: 8px;
            bottom: 8px;
            height: calc(100% - 16px);
            align-items: stretch;
            transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
            will-change: transform;
        }
        .kolom-kertas {
            width: 104px;
            height: 100%;
            background: #ffffff;
            border: 2px solid #cbd5e1;
            border-radius: 12px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
            display: flex;
            flex-direction: column;
            flex-shrink: 0;
            opacity: 0.5;
            transform: scale(0.95);
            transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
            overflow: hidden;
            position: relative;
        }
        .kolom-kertas.kolom-aktif {
            opacity: 1;
            transform: scale(1.02);
            border-color: #1e90ff;
            box-shadow: 0 6px 18px rgba(30, 144, 255, 0.28);
            z-index: 2;
        }
        .kolom-kertas-header {
            background: #f1f2f6;
            padding: 5px 0;
            text-align: center;
            font-size: 0.78rem;
            font-weight: 800;
            color: #57606f;
            border-bottom: 1.5px solid #dfe4ea;
            letter-spacing: 0.8px;
            flex-shrink: 0 !important;
            z-index: 5;
        }
        .kolom-kertas.kolom-aktif .kolom-kertas-header {
            background: #1e90ff;
            color: #ffffff;
            border-bottom-color: #1e90ff;
        }
        .kolom-kertas-footer {
            background: #f1f2f6;
            padding: 4px 0;
            text-align: center;
            font-size: 0.72rem;
            font-weight: 800;
            color: #57606f;
            border-top: 1.5px solid #dfe4ea;
            letter-spacing: 0.8px;
            flex-shrink: 0 !important;
            z-index: 5;
        }
        .kolom-kertas.kolom-aktif .kolom-kertas-footer {
            background: #1e90ff;
            color: #ffffff;
            border-top-color: #1e90ff;
        }
        .kolom-kertas-body {
            flex: 1;
            min-height: 0 !important;
            overflow-y: hidden;
            position: relative;
            padding: 6px 0;
            display: flex;
            flex-direction: column;
        }
        .angka-kertas {
            font-size: 26px;
            font-weight: 800;
            color: #2f3542;
            height: 32px;
            width: 44px;
            margin-left: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            font-variant-numeric: tabular-nums;
            flex-shrink: 0;
        }
        .sel-jawaban-kertas {
            width: 34px;
            height: 25px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 17px;
            font-weight: 800;
            margin-top: 2px;
            margin-bottom: 2px;
            margin-left: auto;
            margin-right: 10px;
            position: relative;
            border: 1.5px dashed transparent;
            transition: all 0.15s ease;
            flex-shrink: 0;
        }
        .sel-jawaban-kertas.sel-kosong {
            border-color: rgba(149, 165, 166, 0.35);
            background: rgba(236, 240, 241, 0.4);
        }
        .sel-jawaban-kertas.sel-aktif {
            border: 2px solid #1e90ff !important;
            background: rgba(30, 144, 255, 0.18) !important;
            box-shadow: 0 0 10px rgba(30, 144, 255, 0.4);
            animation: pulse-sel-kertas 0.9s infinite alternate;
        }
        @keyframes pulse-sel-kertas {
            from { transform: scale(0.98); }
            to { transform: scale(1.08); }
        }
        .sel-jawaban-kertas.sel-terisi {
            color: #2f3542;
            background: rgba(47, 53, 66, 0.08);
            border: 1px solid rgba(47, 53, 66, 0.15);
            font-family: monospace, sans-serif;
            font-style: italic;
        }
        .sel-jawaban-kertas.sel-terisi::after {
            content: '';
            position: absolute;
            bottom: 2px;
            width: 55%;
            height: 1.5px;
            background: rgba(47, 53, 66, 0.4);
            border-radius: 1px;
        }

        /* BANNER ABA-ABA PINDAH KOLOM (FLOATING TOAST DI ATAS, TIDAK MENGHALANGI SOAL) */
        .banner-pindah-kolom {
            position: absolute;
            top: -44px;
            left: 50%;
            transform: translate(-50%, -8px) scale(0.88);
            z-index: 100;
            pointer-events: none;
            opacity: 0;
            transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        .banner-pindah-kolom.show {
            opacity: 1;
            transform: translate(-50%, 0) scale(1);
        }
        .banner-pindah-konten {
            background: linear-gradient(135deg, #eb3b5a, #fa8231);
            color: #ffffff;
            font-size: 0.88rem;
            font-weight: 800;
            padding: 5px 16px;
            border-radius: 999px;
            box-shadow: 0 4px 16px rgba(235, 59, 90, 0.45);
            letter-spacing: 0.8px;
            text-transform: uppercase;
            white-space: nowrap;
            display: inline-flex;
            align-items: center;
        }

        /* DARK MODE UNTUK LEMBAR KERTAS */
        #app-shell.theme-dark .lembar-kertas-viewport {
            background: rgba(255, 255, 255, 0.03);
            border-color: rgba(255, 255, 255, 0.12);
        }
        #app-shell.theme-dark .kolom-kertas {
            background: #242c35;
            border-color: #3d4a57;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
        }
        #app-shell.theme-dark .kolom-kertas.kolom-aktif {
            border-color: #388bfd;
            box-shadow: 0 0 18px rgba(56, 139, 253, 0.35);
        }
        #app-shell.theme-dark .kolom-kertas-header,
        #app-shell.theme-dark .kolom-kertas-footer {
            background: #1e2630;
            color: #a4b0be;
            border-color: #344150;
        }
        #app-shell.theme-dark .kolom-kertas.kolom-aktif .kolom-kertas-header,
        #app-shell.theme-dark .kolom-kertas.kolom-aktif .kolom-kertas-footer {
            background: #2e86de;
            color: #ffffff;
            border-color: #2e86de;
        }
        #app-shell.theme-dark .angka-kertas {
            color: #f5f6fa;
        }
        #app-shell.theme-dark .sel-jawaban-kertas.sel-kosong {
            border-color: rgba(255, 255, 255, 0.2);
            background: rgba(255, 255, 255, 0.04);
        }
        #app-shell.theme-dark .sel-jawaban-kertas.sel-terisi {
            color: #70a1ff;
            background: rgba(112, 161, 255, 0.15);
            border-color: rgba(112, 161, 255, 0.3);
        }
        #app-shell.theme-dark .sel-jawaban-kertas.sel-terisi::after {
            background: rgba(112, 161, 255, 0.45);
        }
        #app-shell.theme-dark .kertas-mini-preview {
            background: rgba(255, 255, 255, 0.05) !important;
            border-color: rgba(255, 255, 255, 0.18) !important;
        }
        #app-shell.theme-dark .kertas-mini-kolom {
            background: #242c35 !important;
            border-color: #2e86de !important;
        }
        #app-shell.theme-dark .kertas-mini-kolom .fw-bold {
            color: #f5f6fa !important;
        }
        #app-shell.theme-dark .kertas-mini-desc {
            color: #d2dae2 !important;
        }
        .kertas-mini-sel {
            align-self: flex-end;
            width: 28px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 0.85rem;
            border-radius: 4px;
            margin-right: 6px;
            margin-top: 2px;
            margin-bottom: 2px;
        }
        .kertas-mini-sel-terisi {
            background: rgba(9, 132, 227, 0.15);
            color: #0984e3;
        }
        .kertas-mini-sel-aktif {
            border: 1.5px dashed #0984e3;
            color: #0984e3;
        }
        #app-shell.theme-dark .kertas-mini-sel-terisi {
            background: rgba(112, 161, 255, 0.2) !important;
            color: #70a1ff !important;
        }
        #app-shell.theme-dark .kertas-mini-sel-aktif {
            border-color: #70a1ff !important;
            color: #70a1ff !important;
        }

        @media (max-height: 700px) {
            .lembar-kertas-container {
                margin-top: 40px;
                margin-bottom: 4px;
            }
            .lembar-kertas-viewport {
                height: 220px;
            }
            .kolom-kertas {
                height: 205px;
                width: 95px;
            }
            .angka-kertas {
                font-size: 22px;
                height: 28px;
                width: 40px;
                margin-left: 8px;
            }
            .sel-jawaban-kertas {
                height: 22px;
                width: 30px;
                font-size: 15px;
                margin-right: 8px;
            }
        }

        /* TAMPILAN FULL LEBAR DI DESKTOP HANYA UNTUK MODE LEMBAR KERTAS */
        @media (min-width: 768px) {
            body.mode-kertas-aktif {
                padding: 10px 18px !important;
                overflow: hidden !important;
            }
            #app-shell.mode-kertas-aktif {
                width: 100% !important;
                max-width: 100% !important;
                min-height: calc(100vh - 20px) !important;
                height: calc(100vh - 20px) !important;
                border-radius: 16px !important;
                overflow: hidden !important;
            }
            #app-shell.mode-kertas-aktif #app-header {
                padding: 0.5rem 1.25rem !important;
                flex-shrink: 0 !important;
            }
            #app-shell.mode-kertas-aktif #app-main {
                overflow: hidden !important;
            }
            #app-shell.mode-kertas-aktif #tes {
                height: 100% !important;
                overflow: hidden !important;
            }
            #app-shell.mode-kertas-aktif #tes .screen-content {
                overflow: hidden !important;
                padding: 8px 18px 6px 18px !important;
                display: flex !important;
                flex-direction: column !important;
                height: 100% !important;
                scrollbar-width: none !important;
                -ms-overflow-style: none !important;
            }
            #app-shell.mode-kertas-aktif #tes .screen-content::-webkit-scrollbar {
                display: none !important;
                width: 0 !important;
                height: 0 !important;
            }
            #app-shell.mode-kertas-aktif #tes .screen-content > .d-flex {
                flex: 1 1 0 !important;
                min-height: 0 !important;
                height: 100% !important;
                display: flex !important;
                flex-direction: column !important;
                position: relative !important;
            }

            /* Badge Live Skor di Desktop Mode Kertas: susun horizontal di pojok kanan atas agar tidak menutupi kolom */
            #app-shell.mode-kertas-aktif #live-skor-box-wrap {
                position: absolute !important;
                right: 0 !important;
                top: 0 !important;
                z-index: 10 !important;
            }
            #app-shell.mode-kertas-aktif #live-skor-box-wrap > div > div {
                display: flex !important;
                flex-direction: row !important;
                align-items: center !important;
                gap: 8px !important;
            }
            #app-shell.mode-kertas-aktif:not(.mode-realistis) #live-skor-box-wrap .badge-skor-live {
                display: inline-flex !important;
                align-items: center !important;
                margin-bottom: 0 !important;
                padding: 3px 10px !important;
                font-size: 0.82rem !important;
                height: 30px !important;
                border-radius: 8px !important;
            }
            #app-shell.mode-kertas-aktif.mode-realistis #live-skor-box-wrap .badge-skor-live {
                display: none !important;
            }
            #app-shell.mode-kertas-aktif #live-skor-box-wrap .timer-box-wrapper {
                display: inline-flex !important;
                align-items: center !important;
            }
            #app-shell.mode-kertas-aktif #live-skor-box-wrap #timer {
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                height: 30px !important;
                padding: 2px 8px !important;
                font-size: 0.82rem !important;
                min-width: 65px !important;
            }

            #app-shell.mode-kertas-aktif #petunjuk .screen-content,
            #app-shell.mode-kertas-aktif #waktu .screen-content,
            #app-shell.mode-kertas-aktif #pengaturan .screen-content,
            #app-shell.mode-kertas-aktif #hitung-mundur .screen-content,
            #app-shell.mode-kertas-aktif #hasil .screen-content {
                max-width: 700px !important;
                margin: 0 auto !important;
                width: 100% !important;
            }

            /* Di mode lembar kertas pada desktop, sembunyikan tombol keypad layar secara default */
            #app-shell.mode-kertas-aktif #tes #tombol-nomor {
                display: none !important;
            }

            /* Munculkan kembali keypad jika tombol toggle diaktifkan di mode kertas */
            #app-shell.mode-kertas-aktif.show-desktop-keypad #tes #tombol-nomor:not(.d-none) {
                display: grid !important;
                max-width: 380px !important;
                margin: 4px auto 0 auto !important;
                flex-shrink: 0 !important;
            }

            /* Lembar kertas di desktop: flex layout sempurna tanpa scroll halaman */
            #app-shell.mode-kertas-aktif .lembar-kertas-container {
                flex: 1 1 0 !important;
                display: flex !important;
                flex-direction: column !important;
                min-height: 0 !important;
                margin-top: 0 !important;
                margin-bottom: 4px !important;
                max-width: 100% !important;
                overflow: hidden !important;
            }
            #app-shell.mode-kertas-aktif .lembar-kertas-header {
                max-width: calc(100% - 250px) !important;
                margin-bottom: 6px !important;
                flex-shrink: 0 !important;
            }
            #app-shell.mode-kertas-aktif .banner-pindah-kolom {
                top: 2px !important;
            }
            #app-shell.mode-kertas-aktif .lembar-kertas-viewport {
                flex: 1 1 0 !important;
                height: 100% !important;
                min-height: 0 !important;
                max-height: none !important;
                width: 100% !important;
                position: relative !important;
                overflow: hidden !important;
                padding: 6px 0 !important;
                scrollbar-width: none !important;
                -ms-overflow-style: none !important;
            }
            #app-shell.mode-kertas-aktif .lembar-kertas-viewport::-webkit-scrollbar {
                display: none !important;
                width: 0 !important;
                height: 0 !important;
            }
            #app-shell.mode-kertas-aktif .lembar-kertas-sheet {
                top: 6px !important;
                bottom: 6px !important;
                height: calc(100% - 12px) !important;
                position: absolute !important;
                left: 0 !important;
                display: flex !important;
                gap: 14px !important;
                align-items: stretch !important;
            }
            #app-shell.mode-kertas-aktif .kolom-kertas {
                height: 100% !important;
                min-height: 0 !important;
                width: 114px !important;
                display: flex !important;
                flex-direction: column !important;
                overflow: hidden !important;
                box-sizing: border-box !important;
            }
            #app-shell.mode-kertas-aktif .kolom-kertas-header {
                font-size: 0.82rem !important;
                padding: 6px 0 !important;
                letter-spacing: 1px !important;
                flex-shrink: 0 !important;
                z-index: 5 !important;
            }
            #app-shell.mode-kertas-aktif .kolom-kertas-footer {
                font-size: 0.76rem !important;
                padding: 5px 0 !important;
                letter-spacing: 1px !important;
                flex-shrink: 0 !important;
                z-index: 5 !important;
            }
            #app-shell.mode-kertas-aktif .kolom-kertas-body {
                flex: 1 1 0 !important;
                min-height: 0 !important;
                padding: 8px 0 !important;
                overflow-y: hidden !important;
                scrollbar-width: none !important;
                -ms-overflow-style: none !important;
            }
            #app-shell.mode-kertas-aktif .kolom-kertas-body::-webkit-scrollbar {
                display: none !important;
                width: 0 !important;
                height: 0 !important;
            }
            #app-shell.mode-kertas-aktif .angka-kertas {
                font-size: 28px !important;
                height: 34px !important;
                width: 48px !important;
            }
            #app-shell.mode-kertas-aktif .sel-jawaban-kertas {
                height: 26px !important;
                width: 36px !important;
                font-size: 18px !important;
            }

            #app-shell.mode-kertas-aktif #desktop-tes-toolbar {
                flex-shrink: 0 !important;
                margin-top: 4px !important;
                margin-bottom: 2px !important;
                padding: 6px 14px !important;
            }
        }

        /* Toolbar desktop hanya tampil di mode kertas pada layar >= 768px */
        #desktop-tes-toolbar {
            display: none !important;
        }
        @media (min-width: 768px) {
            #app-shell.mode-kertas-aktif #desktop-tes-toolbar {
                display: flex !important;
            }
        }

        #app-shell.theme-dark #desktop-tes-toolbar {
            background: rgba(255, 255, 255, 0.04) !important;
            border-color: rgba(255, 255, 255, 0.14) !important;
        }

        /* Mode Kertas: Minimal waktu 5 menit (sembunyikan tombol 1 & 2 menit) */
        #app-shell.mode-kertas-aktif #pilihan-waktu button[data-waktu="60"],
        #app-shell.mode-kertas-aktif #pilihan-waktu button[data-waktu="120"] {
            display: none !important;
        }
        #app-shell.mode-kertas-aktif #info-waktu-kertas {
            display: block !important;
        }

        /* ===== HALAMAN HASIL ===== */
        #hasil .screen-content {
            background: transparent;
        }
        #hasil .screen-title {
            font-size: 1.15rem;
            font-weight: 800;
            letter-spacing: -0.02em;
            color: #000000 !important;
            background: none !important;
            -webkit-text-fill-color: #000000 !important;
        }
        #hasil-waktu-tes {
            font-size: 0.78rem !important;
            color: #94a3b8 !important;
            font-weight: 500;
            letter-spacing: 0.02em;
        }
        /* Score card (persen benar) */
        #hasil .row > .col:first-child {
            position: relative;
        }
        #hasil-persen-benar {
            font-size: 1.55rem !important;
            letter-spacing: -0.02em !important;
            line-height: 1.15 !important;
            color: #000000 !important;
            -webkit-text-fill-color: #000000 !important;
            background: none !important;
        }
        /* Score sub-label */
        #hasil .row > .col:first-child > div > p:last-child {
            font-size: 0.72rem !important;
            font-weight: 600 !important;
            text-transform: uppercase;
            letter-spacing: 0.08em !important;
            color: #94a3b8 !important;
        }
        /* Stat grid labels */
        #tabel-hasil > div > div:first-child p {
            font-size: 0.85rem;
            font-weight: 600;
            color: #475569;
        }
        /* Stat chip values */
        .hasil-poin {
            font-size: 0.88rem !important;
            font-weight: 800 !important;
            letter-spacing: 0.01em;
        }
        /* Footer buttons premium */
        #btn-hasil-menu {
            border-radius: 12px !important;
            font-weight: 600 !important;
            border-color: #e2e8f0 !important;
            color: #64748b !important;
            font-size: 0.82rem !important;
            padding: 8px 14px !important;
            transition: all 0.2s !important;
        }
        #btn-hasil-menu:hover {
            background: #f1f5f9 !important;
            border-color: #cbd5e1 !important;
            color: #334155 !important;
        }
        #btn-salin-hasil {
            border-radius: 12px !important;
            font-weight: 600 !important;
            font-size: 0.82rem !important;
            padding: 8px 14px !important;
            transition: all 0.2s !important;
        }
        #tombol-ulangi-tes {
            border-radius: 12px !important;
            font-size: 0.92rem !important;
            padding: 9px 20px !important;
            font-weight: 700 !important;
            box-shadow: 0 4px 14px rgba(44,104,238,0.35) !important;
        }
        /* Grafik label */
        #label-grafik-hasil {
            font-size: 0.75rem !important;
            font-weight: 700 !important;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: #94a3b8;
            margin-top: 18px !important;
            margin-bottom: 4px !important;
        }
        /* Pilihan waktu grafik */
        #hasil-pilihan-waktu {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            margin-bottom: 12px;
        }
        /* Dark mode untuk halaman hasil */
        #app-shell.theme-dark #hasil .screen-content {
            background: linear-gradient(180deg, rgba(44,104,238,0.06) 0%, rgba(0,0,0,0) 120px) !important;
        }
        #app-shell.theme-dark #btn-hasil-menu {
            border-color: rgba(255,255,255,0.15) !important;
            color: #94a3b8 !important;
        }
        #app-shell.theme-dark #btn-hasil-menu:hover {
            background: rgba(255,255,255,0.06) !important;
            color: #e2e8f0 !important;
        }
        #app-shell.theme-dark #tabel-hasil > div > div:first-child p {
            color: #94a3b8 !important;
        }
        #app-shell.theme-dark #label-grafik-hasil { color: #475569 !important; }

        /* ===== PILIHAN WAKTU HASIL DARK MODE ===== */
        #app-shell.theme-dark #hasil-pilihan-waktu button {
            background: rgba(255,255,255,0.05) !important;
            color: #94a3b8 !important;
            border-color: rgba(255,255,255,0.1) !important;
        }
        #app-shell.theme-dark #hasil-pilihan-waktu button:hover,
        #app-shell.theme-dark #hasil-pilihan-waktu button.waktu-dipilih {
            background: linear-gradient(135deg, #2c68ee, #1e54cc) !important;
            border-color: #1e54cc !important;
            color: #fff !important;
        }

        /* ===== BADGE TOMBOL CUSTOM WAKE BROMAX-LOCKED ===== */
        .bromax-locked {
            background: #f1f5f9;
            border: 1.5px solid #e2e8f0;
            border-radius: 12px;
            font-size: 0.88rem;
            font-weight: 600;
            color: #64748b;
            padding: 8px 18px;
            cursor: pointer;
            transition: 0.2s;
        }
        .bromax-locked:hover {
            background: #e2e8f0;
        }

        /* ===== WAKTU MULAI LANGSUNG BUTTON ===== */
        #waktu-mulai-langsung {
            border-radius: 12px !important;
            font-size: 0.82rem !important;
            font-weight: 600 !important;
            padding: 7px 14px !important;
            border-color: #e2e8f0 !important;
            color: #64748b !important;
            background: transparent !important;
        }
        #waktu-mulai-langsung:hover {
            background: #f1f5f9 !important;
            color: #334155 !important;
            border-color: #cbd5e1 !important;
        }
        #app-shell.theme-dark #waktu-mulai-langsung:hover {
            background: rgba(255,255,255,0.08) !important;
            color: #e2e8f0 !important;
        }

/* ===== PAGE LAYOUT & EDUCATIONAL CONTENT ===== */
body {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 100vh !important;
    height: auto !important;
    padding-bottom: 50px !important;
}

.edu-content-section {
    max-width: 860px;
    width: 100%;
    margin: 32px auto 20px auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(43, 72, 101, 0.14);
    border-radius: 24px;
    padding: 36px 32px;
    box-shadow: 0 16px 40px rgba(44, 104, 238, 0.08);
    color: #1e293b;
    line-height: 1.7;
    -webkit-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}
.edu-content-section * {
    -webkit-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}
@media (max-width: 576px) {
    .edu-content-section {
        padding: 24px 18px;
        margin-top: 24px;
        border-radius: 18px;
    }
}

/* Dark mode for Edu Section */
#app-shell.theme-dark ~ .edu-content-section,
body.theme-dark .edu-content-section {
    background: #11141c !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #e2e8f0 !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4) !important;
}
#app-shell.theme-dark ~ .edu-content-section .card,
body.theme-dark .edu-content-section .card {
    background: #171c26 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #e2e8f0 !important;
}
#app-shell.theme-dark ~ .edu-content-section .text-muted,
body.theme-dark .edu-content-section .text-muted {
    color: #94a3b8 !important;
}
#app-shell.theme-dark ~ .edu-content-section .table,
body.theme-dark .edu-content-section .table {
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
#app-shell.theme-dark ~ .edu-content-section .table th,
body.theme-dark .edu-content-section .table td {
    border-color: rgba(255, 255, 255, 0.08) !important;
}
#app-shell.theme-dark ~ .edu-content-section .table-light,
body.theme-dark .edu-content-section .table-light th {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #cbd5e1 !important;
}
#app-shell.theme-dark ~ .edu-content-section details,
body.theme-dark .edu-content-section details {
    background: #171c26 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
#app-shell.theme-dark ~ .edu-content-section summary,
body.theme-dark .edu-content-section summary {
    color: #f1f5f9 !important;
}

.edu-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(44, 104, 238, 0.1);
    color: #2c68ee;
    margin-bottom: 12px;
}
.edu-card-metric {
    border-radius: 16px;
    border: 1px solid rgba(43, 72, 101, 0.12);
    padding: 18px;
    height: 100%;
    background: rgba(248, 250, 252, 0.85);
    transition: transform 0.2s, box-shadow 0.2s;
}
.edu-card-metric:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}
.edu-faq-item {
    border: 1px solid rgba(43, 72, 101, 0.14);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 12px;
    background: #f8fafc;
    transition: all 0.2s ease;
}
.edu-faq-item summary {
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    color: #1e293b;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.edu-faq-item summary::-webkit-details-marker {
    display: none;
}
.edu-faq-item summary::after {
    content: "+";
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c68ee;
    transition: transform 0.2s;
}
.edu-faq-item[open] summary::after {
    content: "−";
}
.edu-faq-item p {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.6;
}

/* CHART CONTAINER STATES */
#chart-loading-state, #chart-error-state {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(43, 72, 101, 0.04);
    border: 1px dashed rgba(43, 72, 101, 0.2);
    padding: 16px;
}
#app-shell.theme-dark #chart-loading-state,
#app-shell.theme-dark #chart-error-state {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

#btn-reload-chart-manual {
    color: #64748b !important;
}
#btn-reload-chart-manual:hover {
    color: #1e293b !important;
}
#app-shell.theme-dark #btn-reload-chart-manual {
    color: #94a3b8 !important;
}
#app-shell.theme-dark #btn-reload-chart-manual:hover {
    color: #f1f5f9 !important;
}

.edu-faq-item ul {
    margin-top: 8px;
    margin-bottom: 0;
    padding-left: 20px;
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.6;
}
#app-shell.theme-dark ~ .edu-content-section .edu-faq-item ul,
body.theme-dark .edu-faq-item ul {
    color: #cbd5e1 !important;
}
