
        /* ===== BASE ===== */
        body {
            background: linear-gradient(135deg, #e8eef7 0%, #e3ebf5 25%, #dce6f2 50%, #ece4f4 75%, #e3f1ec 100%);
            background-size: 400% 400%;
            background-attachment: fixed;
            animation: auroraShift 18s ease infinite;
            padding: 16px 16px 0 16px;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            min-height: 100dvh;
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            transition: background 0.6s ease, color 0.4s ease;
            overflow-x: hidden;
            -webkit-text-size-adjust: 100%;
            text-size-adjust: 100%;
            width: 100%;
        }

        footer {
            margin-top: auto !important;
            margin-bottom: 0 !important;
            padding-top: 8px !important;
            padding-bottom: max(8px, env(safe-area-inset-bottom, 0px)) !important;
        }

        #tableEntries td[data-label="Desa"] .desa-wrap {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
        }
        #tableEntries td[data-label="Desa"] .tahap-glass {
            margin: 0 !important;
            vertical-align: middle;
        }
        #tableEntries td[data-label="NIK"] {
            min-width: 0;
        }
        #tableEntries td[data-label="NIK"] .nik-wrap {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            min-width: 0;
            max-width: 100%;
            width: 100%;
            box-sizing: border-box;
        }
        #tableEntries td[data-label="NIK"] .nik-val {
            font-weight: 500;
            word-break: break-all;
        }
        #tableEntries td[data-label="NIK"] .tracker-wrap {
            min-width: 0;
            max-width: 100%;
            width: 100%;
            box-sizing: border-box;
        }
        /* Nama & Program: Tampilan bertingkat rapi & bernafas (Desktop & Universal) */
        #tableEntries td[data-label="Nama & Program"] {
            min-width: 155px;
        }
        #tableEntries td[data-label="Nama & Program"] .nama-prog-wrap {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 5px;
            min-width: 0;
            max-width: 100%;
        }
        #tableEntries td[data-label="Nama & Program"] strong {
            display: block;
            line-height: 1.35;
            font-size: 0.92rem;
            font-weight: 700;
            word-break: break-word;
            margin: 0;
            padding: 0;
        }
        #tableEntries td[data-label="Nama & Program"] .prog-src-line {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 6px;
            margin: 0 !important;
            padding: 0;
            line-height: 1;
        }
        #tableEntries td[data-label="Nama & Program"] .prog-src-line .badge {
            margin: 0 !important;
        }
        #tableEntries td[data-label="Nama & Program"] .prog-badge {
            font-size: 0.72rem;
            font-weight: 600;
            padding: 0.28em 0.65em;
            border-radius: 20px;
            white-space: nowrap;
            line-height: 1.25;
            display: inline-flex;
            align-items: center;
        }

        .container-fluid {
            width: 100%;
            max-width: 100%;
            overflow-x: hidden;
        }

        @keyframes auroraShift {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        /* Animated accent line for cards */
        @keyframes gradientLine {
            0% { background-position: 0% 0%; }
            100% { background-position: 200% 0%; }
        }

        /* GLASSMORPHISM CARDS */
        .card {
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.65);
            background: rgba(255, 255, 255, 0.65);
            backdrop-filter: blur(20px) saturate(1.4);
            -webkit-backdrop-filter: blur(20px) saturate(1.4);
            box-shadow: 0 10px 32px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
            transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, #a5b4fc, #c4b5fd, #67e8f9);
            opacity: 0.8;
        }

        .user-topbar {
            background: rgba(255, 255, 255, 0.65);
            backdrop-filter: blur(20px) saturate(1.4);
            -webkit-backdrop-filter: blur(20px) saturate(1.4);
            border: 1px solid rgba(255, 255, 255, 0.7);
            border-radius: 20px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.85);
            transition: all 0.3s ease;
        }

        .bg-custom {
            background: linear-gradient(135deg, #334155 0%, #475569 100%) !important;
            backdrop-filter: blur(8px);
            color: white;
            border-bottom: none;
        }

        .card-header.bg-custom {
            border-radius: 20px 20px 0 0;
            padding: 1.2rem 1.5rem;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }

        /* SMOOTH BUTTONS */
        .btn {
            border-radius: 10px;
            transition: all 0.25s ease;
            font-weight: 500;
        }
        .btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
        }
        .btn:active {
            transform: translateY(0px);
        }

        .btn-custom {
            background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
            color: white !important;
            border: none !important;
            box-shadow: 0 2px 10px rgba(99, 102, 241, 0.2);
            font-weight: 600;
        }
        .btn-custom:hover {
            background: linear-gradient(135deg, #5558e6 0%, #7c4fe0 100%) !important;
            box-shadow: 0 4px 16px rgba(99, 102, 241, 0.28);
        }

        /* FORM CONTROLS MODERN (Glass Tiles) */
        .form-control, .form-select {
            min-height: 40px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.7);
            background-color: rgba(255, 255, 255, 0.65);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02), inset 0 1px 1px rgba(255, 255, 255, 0.8);
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            padding: 0.55rem 0.85rem;
            font-size: 0.88rem;
        }
        .form-control:hover, .form-select:hover {
            border-color: rgba(99, 102, 241, 0.35);
            background-color: rgba(255, 255, 255, 0.85);
        }
        .form-control:focus, .form-select:focus {
            border-color: rgba(99, 102, 241, 0.5) !important;
            background-color: rgba(255, 255, 255, 0.95) !important;
            box-shadow: 0 0 0 3.5px rgba(99, 102, 241, 0.15), 0 3px 10px rgba(99, 102, 241, 0.08) !important;
            outline: none;
            transform: translateY(-1px);
        }

        .filter-highlight-field {
            border-color: rgba(99, 102, 241, 0.4) !important;
            background-color: rgba(238, 242, 255, 0.6) !important;
            color: #4338ca !important;
        }

        .form-label {
            font-weight: 600;
            font-size: 0.72rem;
            text-transform: uppercase;
            letter-spacing: 0.03em;
            margin-bottom: 0.3rem !important;
            color: #64748b;
        }

        /* FILTER PANEL (Petugas Glass Control) */
        .filter-panel {
            background: rgba(255, 255, 255, 0.58) !important;
            backdrop-filter: blur(20px) saturate(1.45) !important;
            -webkit-backdrop-filter: blur(20px) saturate(1.45) !important;
            border: 1px solid rgba(255, 255, 255, 0.65) !important;
            border-radius: 20px !important;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
            transition: all 0.3s ease;
        }
        .filter-panel label {
            margin-bottom: 4px;
            color: #64748b !important;
            letter-spacing: 0.03em;
            font-size: .72rem;
            text-transform: uppercase;
            font-weight: 600;
        }
        .filter-panel .form-control,
        .filter-panel .form-select {
            min-height: 40px;
            border-radius: 12px;
        }

        /* TABLE MODERNIZATION */
        .table-responsive {
            background: rgba(255, 255, 255, 0.6);
            backdrop-filter: blur(16px) saturate(1.35);
            -webkit-backdrop-filter: blur(16px) saturate(1.35);
            border-radius: 18px;
            border: 1px solid rgba(255, 255, 255, 0.65);
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            box-shadow: 0 8px 28px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.8);
            padding: 6px;
        }
        .table {
            margin-bottom: 0;
            border-collapse: separate;
            border-spacing: 0;
        }
        .table th {
            background-color: rgba(43, 58, 74, 0.04) !important;
            color: #475569 !important;
            border-bottom: 1px solid rgba(43, 58, 74, 0.08) !important;
            font-weight: 600;
            text-transform: uppercase;
            font-size: 0.72rem;
            letter-spacing: 0.3px;
            padding: 0.45rem 0.6rem;
        }
        .table td {
            padding: 0.45rem 0.6rem;
            font-size: 0.84rem;
            vertical-align: middle;
            border-bottom: 1px solid rgba(0, 0, 0, 0.03);
            transition: background-color 0.2s ease;
        }
        .table-hover tbody tr:hover td {
            background-color: rgba(13, 110, 253, 0.02) !important;
        }

        /* STATUS BADGES & COLORS */
        .status-synced { color: #0d6efd; font-weight: 600; }
        .status-pending { color: #fd7e14; font-weight: 600; }
        .badge-status { white-space: normal !important; line-height: 1.5; font-weight: 500; letter-spacing: 0.3px; }
        
        /* MODERN SYNC PROGRESS UI */
        #syncProgress {
            display: none;
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(13, 110, 253, 0.3);
            border-radius: 20px;
            box-shadow: 0 10px 40px rgba(13, 110, 253, 0.15);
            padding: 24px;
            margin-bottom: 24px;
            text-align: center;
            transition: all 0.3s ease;
        }
        #syncProgress .progress {
            height: 14px;
            border-radius: 12px;
            background-color: rgba(13, 110, 253, 0.1);
            overflow: hidden;
            margin-bottom: 15px;
            border: none;
        }
        #syncProgress .progress-bar {
            background: linear-gradient(90deg, #0d6efd, #0dcaf0, #0d6efd);
            background-size: 200% 100%;
            animation: gradientMove 2s linear infinite;
        }
        @keyframes gradientMove {
            0% { background-position: 100% 0; }
            100% { background-position: -100% 0; }
        }
        #progressText {
            font-size: 1.15rem;
            color: #0d6efd;
            font-weight: 700;
            letter-spacing: 0.5px;
        }
        /* Theme styles loaded from themes.css */

        
        .ternak-box {
            background: rgba(255, 255, 255, 0.55);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            padding: 20px;
            border-radius: 16px;
            border: 1px solid rgba(255, 255, 255, 0.65);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02), inset 0 1px 0 rgba(255, 255, 255, 0.7);
            transition: all 0.3s ease;
        }
        .ternak-box:hover {
            background: rgba(255, 255, 255, 0.75);
            border-color: rgba(99, 102, 241, 0.25);
        }

        .ternak-box .form-check-input {
            width: 1.15em;
            height: 1.15em;
            border: 2px solid #94a3b8;
            cursor: pointer;
        }
        .ternak-box .form-check-input:checked {
            background-color: #0d6efd;
            border-color: #0d6efd;
            box-shadow: 0 0 0 0.22rem rgba(13, 110, 253, 0.22);
        }
        .ternak-box .form-check-input:checked + .form-check-label {
            color: #0d6efd !important;
        }
        .ternak-box #t_strip:checked {
            background-color: #dc3545;
            border-color: #dc3545;
            box-shadow: 0 0 0 0.22rem rgba(220, 53, 69, 0.22);
        }
        .ternak-box #t_strip:checked + .form-check-label {
            color: #dc3545 !important;
        }

        /* FOTO CARDS */
        .foto-card {
            background: rgba(255, 255, 255, 0.55);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1.5px dashed rgba(99, 102, 241, 0.25);
            border-radius: 14px;
            padding: 14px;
            text-align: center;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02), inset 0 1px 0 rgba(255, 255, 255, 0.6);
            transition: all 0.25s ease;
        }
        .foto-card:hover {
            border-color: #6366f1;
            background: rgba(255, 255, 255, 0.85);
            transform: translateY(-2px);
            box-shadow: 0 6px 18px rgba(99, 102, 241, 0.1);
        }
        .foto-preview {
            position: relative;
            margin-top: 8px;
            border-radius: 10px;
            overflow: hidden;
            border: 2px solid #6366f1;
            box-shadow: 0 3px 12px rgba(99, 102, 241, 0.1);
            transition: transform 0.25s ease;
        }
        .foto-preview:hover {
            transform: scale(1.01);
        }
        .foto-preview img {
            width: 100%;
            height: 130px;
            object-fit: cover;
            cursor: pointer;
            display: block;
        }
        .btn-rm-foto {
            position: absolute;
            top: 6px;
            right: 6px;
            background: rgba(220, 53, 69, 0.9);
            color: #fff;
            border: none;
            border-radius: 50%;
            width: 28px;
            height: 28px;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            backdrop-filter: blur(4px);
        }
        .btn-rm-foto:hover {
            background: #dc3545;
            transform: scale(1.1);
        }
        .foto-badge {
            position: absolute;
            bottom: 6px;
            left: 6px;
            font-size: 10px;
            padding: 4px 8px;
            border-radius: 6px;
            font-weight: 700;
            color: #fff;
            backdrop-filter: blur(4px);
            letter-spacing: 0.5px;
        }
        .badge-cam { background: rgba(13, 110, 253, 0.85); }
        .badge-gal { background: rgba(25, 135, 84, 0.85); }

        /* MODALS */
        .modal-content {
            border-radius: 18px;
            border: none;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(12px);
            box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
        }
        #cameraModal, #previewModal {
            display: none;
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(8px);
            z-index: 9999;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        #cameraVideo {
            width: 100%; max-height: 70vh; object-fit: contain;
            background: transparent;
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        }
        .cam-ctrl { display: flex; gap: 20px; padding: 20px; align-items: center; justify-content: center; }
        .btn-snap {
            width: 72px; height: 72px; border-radius: 50%;
            background: rgba(255,255,255,0.2);
            border: 4px solid #fff;
            cursor: pointer; position: relative;
            backdrop-filter: blur(4px);
            transition: all 0.2s ease;
        }
        .btn-snap::after {
            content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
            width: 54px; height: 54px; border-radius: 50%;
            background: #fff; transition: transform .15s;
        }
        .btn-snap:active::after { transform: translate(-50%, -50%) scale(.85); }
        #previewModalImg {
            max-width: 95%; max-height: 85vh; object-fit: contain;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.5);
        }

        /* ===================================================
           KPI STRIP — ringkasan status program (petugas)
           Flat data surface, hairline divider, tabular numerals.
           =================================================== */
        .kpi-strip {
            --kpi-surface: rgba(255, 255, 255, 0.82);
            --kpi-line: rgba(15, 23, 42, 0.08);
            --kpi-ink: #0f172a;
            --kpi-muted: #64748b;
            --kpi-gayatri: #6366f1;
            --kpi-pdkt: #10b981;
            --kpi-neg: #e11d48;
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            width: 100%;
            min-width: 0;
            background: var(--kpi-surface);
            border: 1px solid var(--kpi-line);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
        }
        .kpi-cell {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 14px 16px;
            min-width: 0;
            position: relative;
            transition: background-color 0.18s ease;
        }
        .kpi-cell + .kpi-cell::before {
            content: '';
            position: absolute;
            left: 0;
            top: 12px;
            bottom: 12px;
            width: 1px;
            background: var(--kpi-line);
        }
        .kpi-cell:hover {
            background: rgba(15, 23, 42, 0.025);
        }
        .kpi-dot {
            flex: 0 0 auto;
            width: 7px;
            height: 7px;
            margin-top: 7px;
            border-radius: 50%;
            background: var(--kpi-gayatri);
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
        }
        .kpi-pdkt .kpi-dot {
            background: var(--kpi-pdkt);
            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
        }
        .kpi-cell.is-tidak .kpi-dot {
            background: var(--kpi-neg);
            box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
        }
        .kpi-body {
            display: flex;
            flex-direction: column;
            min-width: 0;
            line-height: 1.2;
        }
        .kpi-label {
            font-size: 0.7rem;
            font-weight: 600;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: var(--kpi-muted);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .kpi-state {
            color: var(--kpi-ink);
        }
        .kpi-gayatri.is-layak .kpi-state {
            color: var(--kpi-gayatri);
        }
        .kpi-pdkt.is-layak .kpi-state {
            color: var(--kpi-pdkt);
        }        .kpi-cell.is-tidak .kpi-state {
            color: var(--kpi-neg);
        }
        .kpi-value {
            font-size: clamp(1.5rem, 3.2vw, 2rem);
            font-weight: 700;
            letter-spacing: -0.02em;
            font-variant-numeric: tabular-nums;
            color: var(--kpi-ink);
            margin-top: 2px;
        }
        .kpi-note {
            font-size: 0.66rem;
            color: var(--kpi-muted);
            margin-top: 1px;
        }
        .filter-panel {
            background: rgba(255,255,255,0.72);
            backdrop-filter: blur(16px);
            border: 1px solid rgba(255,255,255,0.4);
            border-radius: 18px;
            box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
        }
        .filter-panel .form-label {
            margin-bottom: 0.25rem;
            color: #64748b !important;
        }
        .filter-panel .form-control,
        .filter-panel .form-select,
        .filter-panel .btn-filter-action {
            height: 38px;
            border-radius: 10px;
        }
        .sync-inline-wrap .sync-pill,
        .sync-inline-wrap .sync-button {
            min-height: 38px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
        }

        /* BADGE PULSE ANIMATION (light) */
        .badge.bg-success {
            animation: pulseBadge 2s ease-in-out infinite;
        }
        @keyframes pulseBadge {
            0%, 100% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.3); }
            50% { box-shadow: 0 0 0 6px rgba(25, 135, 84, 0); }
        }

        .cam-label {
            color: #fff;
            font-size: 14px;
            font-weight: 700;
            padding: 6px 16px;
            background: rgba(13, 110, 253, .8);
            border-radius: 20px;
            margin-bottom: 8px
        }

        .foto-card.drag-over {
            border-color: #0d6efd !important;
            background: rgba(13, 110, 253, 0.1) !important;
            border-width: 2px !important;
        }

        /* FOOTER BASE */
        footer {
            background: rgba(255, 255, 255, 0.6) !important;
            backdrop-filter: blur(8px);
            border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
        }

        .progress-modal .modal-content {
            border-radius: 22px;
            overflow: hidden;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
        }
        .progress-hero {
            background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.18), transparent 34%), linear-gradient(135deg, #1e293b 0%, #334155 100%);
            color: white;
        }
        .progress-stat {
            border-radius: 16px;
            background: rgba(255, 255, 255, 0.85);
            box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
        }
        .progress-chart-wrap {
            height: 400px;
            min-height: 300px;
            border-radius: 18px;
            background: rgba(255, 255, 255, 0.7);
            border: 1px solid rgba(255, 255, 255, 0.5);
            box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.02);
        }
        /* Pembungkus grafik petugas (Alokasi Voucher Pakan / /kpm) — satu standar
           tinggi agar semua kartu grafik simetris; override inline style yang
           sebelumnya berbeda-bedi (300px / 320px / 220px). */
        .kpm-chart-box {
            position: relative;
            height: 300px;
            min-height: 240px;
            width: 100%;
        }
        /* Kartu dinamika di modal Alokasi Voucher Pakan (petugas): sama tinggi & compact.
           Base .kpm-dyn-pane memakai padding telemetry surface /kpm yang terlalu gemuk
           untuk modal, dan tanpa height:100% -> tinggi mengikuti isi, sehingga label
           "Ayam Diganti" (lebih panjang) membuat kartu beda ukuran. Berlaku semua lebar. */
        #modalKpmMonitorGrafik .kpm-dyn-pane {
            height: 100%;
            min-height: 84px;
            padding: 0.6rem 0.5rem;
            justify-content: center;
            align-items: center;
            text-align: center;
            gap: 2px;
        }
        #modalKpmMonitorGrafik .kpm-dyn-pane > div { width: 100%; }

        .toast-container {
            position: fixed;
            top: 16px;
            right: 16px;
            z-index: 1055;
        }

        .toast {
            border-radius: 14px !important;
            backdrop-filter: blur(8px);
            border: none !important;
            white-space: pre-line;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06) !important;
        }

        /* COMPACT ENTRY FORM - UI only, IDs/events/validation stay unchanged */
        .entry-form-grid {
            --bs-gutter-x: 0;
            --bs-gutter-y: 0;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            align-items: flex-start;
            margin: 0;
        }
        .entry-form-grid > [class*="col-"] {
            flex: 0 0 var(--field-w, 180px);
            width: var(--field-w, 180px);
            max-width: var(--field-w, 180px);
            padding-left: 0;
            padding-right: 0;
            margin-top: 0 !important;
        }
        .entry-form-grid > .field-date { --field-w: 140px; }
        .entry-form-grid > .field-kecamatan { --field-w: 175px; }
        .entry-form-grid > .field-desa { --field-w: 175px; }
        .entry-form-grid > .field-program { --field-w: 175px; }
        .entry-form-grid > .field-name { --field-w: 240px; }
        .entry-form-grid > .field-nik { --field-w: 290px; }
        .entry-form-grid > .field-dusun { --field-w: 170px; }
        .entry-form-grid > .field-rt,
        .entry-form-grid > .field-rw { --field-w: 72px; }
        .entry-form-grid > .field-address { --field-w: 280px; }
        .entry-form-grid > .field-poverty { --field-w: 150px; }
        .entry-form-grid > .field-age { --field-w: 82px; }
        .entry-form-grid > .field-choice {
            flex: 1 1 110px;
            width: auto;
            max-width: none;
        }
        .entry-form-grid > .field-opd {
            flex: 1 1 190px;
            width: auto;
            max-width: none;
        }
        .entry-form-grid .form-control,
        .entry-form-grid .form-select {
            width: 100%;
        }
        .entry-form-grid .input-group {
            display: flex !important;
            flex-wrap: nowrap !important;
            width: 100% !important;
        }
        .entry-form-grid .input-group > .form-control {
            width: 1% !important;
            flex: 1 1 auto !important;
        }
        .entry-form-grid .input-group > .btn {
            flex: 0 0 auto !important;
            white-space: nowrap !important;
            padding-left: 0.75rem !important;
            padding-right: 0.75rem !important;
            font-size: 0.82rem !important;
            font-weight: 700 !important;
        }
        .form-section-full,
        .attachment-grid,
        .form-action-row {
            flex: 0 0 100% !important;
            width: 100% !important;
            max-width: 100% !important;
        }
        .entry-media-layout {
            flex: 0 0 100% !important;
            width: 100% !important;
            max-width: 100% !important;
            display: grid;
            grid-template-columns: minmax(300px, 0.95fr) minmax(360px, 1.05fr);
            gap: 12px;
            align-items: start;
            margin-top: 8px;
        }
.media-panel {
            min-width: 0;
            padding-top: 6px;
        }
        .upload-panel .border-bottom,
        .ternak-panel .form-label {
            margin-bottom: 1rem;
        }
.attachment-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            row-gap: 36px;
            column-gap: 10px;
            align-items: start;
        }
        .attachment-grid > [class*="col-"] {
            width: auto;
            max-width: none;
            padding: 0;
        }
        .attachment-tile .foto-card {
            height: auto;
            padding: 9px;
            border-radius: 14px;
        }
        .attachment-tile .form-label {
            margin-bottom: 0.35rem;
        }
        .attachment-tile .btn {
            min-height: 40px;
            padding: 0.42rem 0.55rem;
            font-size: 0.78rem;
        }
        .attachment-tile .foto-preview img {
            height: 96px;
        }
        .attachment-tile small {
            font-size: 0.72rem;
            word-break: break-word;
        }
        .entry-form-grid > .action-safe-row {
            position: static !important;
            clear: both;
            margin-top: 20px !important;
            padding-top: 10px;
            border-top: 1px solid rgba(43, 58, 74, 0.08);
            z-index: auto !important;
        }
        .action-safe-row .btn {
            margin: 0 !important;
            min-height: 38px;
        }

        @media (max-width: 992px) {
            .entry-media-layout {
                grid-template-columns: 1fr;
            }
            .attachment-grid {
                grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
            }
        }

        @media (max-width: 768px) {
            /* Tablet: stack form fields to 2 per row */
            .entry-form-grid > .field-date,
            .entry-form-grid > .field-kecamatan,
            .entry-form-grid > .field-desa,
            .entry-form-grid > .field-program,
            .entry-form-grid > .field-name,
            .entry-form-grid > .field-nik,
            .entry-form-grid > .field-dusun,
            .entry-form-grid > .field-address,
            .entry-form-grid > .field-poverty,
            .entry-form-grid > .field-opd {
                flex: 0 0 100%;
                width: 100%;
                max-width: 100%;
            }
            .entry-form-grid > .field-rt,
            .entry-form-grid > .field-rw,
            .entry-form-grid > .field-age {
                flex: 0 0 calc(33.33% - 7px);
                width: calc(33.33% - 7px);
                max-width: calc(33.33% - 7px);
            }
            .entry-form-grid > .field-choice {
                flex: 0 0 calc(50% - 5px);
                width: calc(50% - 5px);
                max-width: calc(50% - 5px);
            }

            /* KPI strip: 2 per row on tablet */
            .kpi-strip {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
            .kpi-cell + .kpi-cell::before {
                display: none;
            }
            .kpi-cell {
                border-top: 1px solid var(--kpi-line);
            }
            .kpi-cell:nth-child(-n + 2) {
                border-top: 0;
            }
            .kpi-cell:nth-child(even) {
                border-left: 1px solid var(--kpi-line);
            }

            /* Ternak box: allow wrapping on tablet */
            .ternak-box .d-flex.flex-wrap { flex-wrap: wrap; }
            .ternak-box .form-check { width: auto; }
        }

        /* ===================================================
           NATIVE MOBILE v16 — CSS-only, tanpa ubah ID/JS/API
           Prinsip aman: hanya layout/ukuran/scroll; semua
           selector memakai ID/kelas yang sudah ada.
           =================================================== */
        @media (max-width: 576px) {
            body { padding: 10px 10px 0 10px; }
            .verif-navbar {
                margin: 0 0 12px;
                position: sticky; top: calc(8px + env(safe-area-inset-top, 0px)); z-index: 1040;
                backdrop-filter: blur(8px) saturate(1.2);
                -webkit-backdrop-filter: blur(8px) saturate(1.2);
            }
            /* Matikan animasi berat di HP (hemat GPU/baterai) */
            body { animation: none; }
            .card, .user-topbar, .filter-panel, .portal-card {
                backdrop-filter: blur(8px) saturate(1.2);
                -webkit-backdrop-filter: blur(8px) saturate(1.2);
            }
            /* Cegah auto-zoom iOS + target sentuh native 48px (form entry saja) */
            #entryForm .form-control, #entryForm .form-select {
                font-size: 16px; min-height: 48px; padding: 0.7rem 0.9rem;
            }
            #entryForm .btn { min-height: 48px; }
            #btnCekNikPetugas { min-height: 48px; min-width: 48px; font-size: 0.9rem !important; }
            /* Baris aksi: normal MENGIKUTI ALUR FORM (tidak mengambang), supaya
               tidak pernah menutupi / tertutup bottom nav 62px di HP. */
            .form-action-row.action-safe-row {
                position: static !important; z-index: auto !important;
                background: none !important; border: 0 !important;
                box-shadow: none !important; backdrop-filter: none !important;
                -webkit-backdrop-filter: none !important;
                padding: 0 !important; margin-top: 12px !important;
            }
            /* Sticky: hanya setelah tombol Simpan terlewati (kelas .action-floating
               dipasang index-app.js). Dipasang DI ATAS bottom nav + safe-area. */
            .form-action-row.action-safe-row.action-floating {
                position: sticky !important;
                bottom: calc(var(--bottom-nav-height, 62px) + env(safe-area-inset-bottom, 0px) + 8px) !important;
                z-index: 1025 !important;
                flex-direction: row !important; flex-wrap: wrap !important;
                background: rgba(255,255,255,0.94); backdrop-filter: blur(12px);
                -webkit-backdrop-filter: blur(12px);
                border: 1px solid rgba(255,255,255,0.7) !important; border-radius: 16px;
                padding: 8px !important; margin-top: 12px !important;
                border-top: 1px solid rgba(43,58,74,0.08) !important;
                box-shadow: 0 -8px 28px rgba(2,8,23,0.12);
            }
            .form-action-row.action-safe-row .btn {
                flex: 1 1 calc(50% - 4px) !important; width: auto !important;
            }
            #btnSubmit { flex: 1 1 100% !important; order: -1; min-height: 52px; font-size: 1rem !important; }
            /* Saat mengambang, tombol sejajar (1 baris) agar hemat tinggi layar */
            .form-action-row.action-safe-row.action-floating #btnSubmit {
                flex: 1 1 calc(50% - 4px) !important; order: 0;
            }
            /* Portal hub → List Tile Horisontal Ramping (100% pas layar HP, tanpa scroll samping) */
            .portal-hub-content {
                display: flex !important;
                flex-direction: column !important;
                flex-wrap: nowrap !important;
                overflow-x: visible !important;
                margin: 0 !important;
                padding: 0 !important;
                gap: 8px !important;
            }
            .portal-hub-content > [class*="col-"] {
                flex: 0 0 100% !important;
                max-width: 100% !important;
                width: 100% !important;
                padding: 0 !important;
            }
            .portal-card {
                flex-direction: row !important;
                align-items: center !important;
                justify-content: space-between !important;
                padding: 10px 14px !important;
                border-radius: 14px !important;
                gap: 12px !important;
            }
            .portal-card > div:first-child {
                flex: 1 1 auto !important;
                min-width: 0 !important;
                margin-bottom: 0 !important;
            }
            .portal-card > div:first-child > div.d-flex {
                margin-bottom: 3px !important;
                justify-content: flex-start !important;
                gap: 8px !important;
            }
            .portal-chip {
                font-size: 0.68rem !important;
                padding: 2px 7px !important;
            }
            .portal-live-indicator {
                font-size: 0.65rem !important;
            }
            .portal-card-title {
                font-size: 0.86rem !important;
                font-weight: 700 !important;
                margin-bottom: 2px !important;
                line-height: 1.25 !important;
            }
            .portal-card-desc {
                font-size: 0.73rem !important;
                line-height: 1.35 !important;
                margin-bottom: 0 !important;
                display: -webkit-box !important;
                -webkit-line-clamp: 2 !important;
                -webkit-box-orient: vertical !important;
                overflow: hidden !important;
            }
            .portal-login-hint { font-size: 0.7rem; }
            .portal-action-btn {
                flex: 0 0 auto !important;
                width: auto !important;
                min-height: 40px !important;
                padding: 8px 14px !important;
                font-size: 0.82rem !important;
                font-weight: 600 !important;
                border-radius: 10px !important;
                white-space: nowrap !important;
                margin-top: 0 !important;
                gap: 6px !important;
                align-self: center !important;
            }
            .portal-btn-arrow {
                font-size: 0.9rem !important;
            }
            /* Filter panel: 2 kolom rapat + tombol Filter full-width sticky */
            .filter-panel .col-6 { flex: 0 0 calc(50% - 3px) !important; max-width: calc(50% - 3px) !important; }
            .filter-panel .form-control, .filter-panel .form-select { font-size: 16px; min-height: 44px; }
            .filter-panel .btn-filter-action { min-height: 48px; font-size: 0.95rem; }
            /* Foto: tombol 44px, preview lebih jelas */
            .attachment-tile .btn { min-height: 44px; font-size: 0.85rem; }
            .attachment-tile .foto-preview img { height: 96px; }
            /* Ternak: jumlah + kepemilikan 1 baris penuh, mudah tap */
            .ternak-box input[type="number"] { min-height: 44px; font-size: 16px; }
            .ternak-box select { min-height: 44px; font-size: 0.85rem; }
            .ternak-box .form-check-input { width: 1.4em; height: 1.4em; }
            /* Tabel → card list native (thead disembunyikan, <tr> yang sama jadi kartu khusus #tableEntries) */
            .table-responsive:has(#tableEntries),
            .table-responsive-entries { overflow-x: hidden !important; max-width: 100%; }
            .table-responsive:not(.table-responsive-entries):not(:has(#tableEntries)) {
                overflow-x: auto !important;
                -webkit-overflow-scrolling: touch !important;
                touch-action: pan-x pan-y !important;
            }
            #tableEntries { table-layout: fixed !important; width: 100% !important; max-width: 100%; }
            #tableEntries thead { display: none !important; }
            #tableEntries, #tableEntries tbody { display: block !important; width: 100% !important; max-width: 100%; }
            #tableEntries tr { display: block !important; width: 100% !important; max-width: 100%;
                box-sizing: border-box; overflow: hidden; overflow-wrap: anywhere; word-break: break-word;
                border: 1px solid rgba(255,255,255,0.7); border-radius: 14px;
                margin-bottom: 10px; padding: 10px 12px; background: rgba(255,255,255,0.75);
                box-shadow: 0 4px 14px rgba(2,8,23,0.05); border-left: 4px solid #6366f1; }
            #tableEntries tr.row-tahap-1 { border-left-color: #0d6efd; }
            #tableEntries tr.row-tahap-2 { border-left-color: #198754; }
            #tableEntries tr.row-tahap-3 { border-left-color: #fd7e14; }
            #tableEntries tr.row-tahap-4 { border-left-color: #6f42c1; }
            #tableEntries tr.row-tahap-5 { border-left-color: #d63384; }
            #tableEntries tr { padding: 12px 12px 8px; }
            #tableEntries td { border: none !important; padding: 5px 0 !important; font-size: 0.85rem;
                display: grid !important; grid-template-columns: 88px minmax(0,1fr); gap: 8px; text-align: left;
                align-items: start; min-width: 0; overflow: visible; overflow-wrap: anywhere; }
            #tableEntries td > * { grid-column: 2; min-width: 0; }
            #tableEntries td > *:last-child, #tableEntries td > .lamp-wrap { min-width: 0; overflow-wrap: anywhere; }
            #tableEntries td .text-nowrap { white-space: normal !important; }
            #tableEntries td img, #tableEntries td video, #tableEntries td canvas { max-width: 100% !important; height: auto; }
            #tableEntries td:first-child { display: none !important; }
            #tableEntries td::before { grid-column: 1; content: attr(data-label); font-size: 0.66rem; font-weight: 700;
                text-transform: uppercase; letter-spacing: 0.04em; color: #64748b; text-align: left; padding-top: 3px; line-height: 1.4; }
            /* Lampiran: badge wrap rapi, tidak terpotong, sejajar */
            #tableEntries td[data-label="Lampiran"] .lamp-wrap { display: flex !important; flex-wrap: wrap;
                gap: 4px; justify-content: flex-start; align-items: center; }
            #tableEntries td[data-label="Lampiran"] .lamp-wrap .badge { margin: 0 !important; white-space: nowrap;
                font-size: 0.68rem; padding: 0.3em 0.55em; line-height: 1.4; }
            /* Bimtek + Program: pill kompak sejajar nama desa/program */
            #tableEntries td[data-label="Desa"] .desa-wrap {
                display: inline-flex;
                align-items: center;
                gap: 6px;
                flex-wrap: wrap;
                min-width: 0;
            }
            #tableEntries td[data-label="Desa"] .desa-nama {
                font-weight: 600;
                line-height: 1.3;
            }
            #tableEntries td[data-label="Desa"] .tahap-glass {
                margin: 0 !important;
                display: inline-flex;
                align-items: center;
                font-size: 0.66rem !important;
                padding: 0.2em 0.55em;
                border-radius: 20px;
                white-space: nowrap;
                vertical-align: middle;
            }
            #tableEntries td[data-label="Nama & Program"] { min-width: 0; }
            #tableEntries td[data-label="Nama & Program"] .ident-wrap { width: 100%; min-width: 0; }
            #tableEntries td[data-label="Nama & Program"] .nama-prog-wrap { width: 100%; }
            #tableEntries td[data-label="Nama & Program"] .prog-badge { font-size: 0.68rem; padding: 0.25em 0.55em; }
            #tableEntries td[data-label="Ternak & Layak"] { min-width: 0; }
            #tableEntries td[data-label="Ternak & Layak"] .ternak-wrap { width: 100%; min-width: 0; }
            /* NIK & Tracker Diganti wrap rapi pada kartu mobile, tidak terpotong */
            #tableEntries td[data-label="NIK"] { min-width: 0; }
            #tableEntries td[data-label="NIK"] .nik-wrap { width: 100%; max-width: 100%; min-width: 0; }
            #tableEntries td[data-label="NIK"] .tracker-wrap { width: 100%; max-width: 100%; min-width: 0; }
            #tableEntries td[data-label="NIK"] .tracker-diganti-badge {
                display: inline-block !important;
                width: auto !important;
                max-width: 100% !important;
                box-sizing: border-box !important;
                white-space: normal !important;
                word-break: break-word !important;
                overflow-wrap: anywhere !important;
                line-height: 1.35;
                padding: 3px 8px;
                font-size: 0.72rem;
            }
            /* Status di tengah agar simetris */
            #tableEntries td[data-label="Status"] { align-items: center; }
            /* PWA/HP: kartu punya ruang vertikal → rincian status ditampilkan UTUH
               (tanpa clamp/ellipsis) supaya tidak terpotong. */
            #tableEntries .status-flags{ width:100%; max-width:100%; }
            #tableEntries .sf{ font-size:10.5px; padding:3px 9px 3px 4px; }
            #tableEntries .sf-note{
                display:block; overflow:visible; white-space:normal;
                font-size:10.5px; line-height:1.45;
            }
            /* Aksi berdampingan simetris, bukan full-stack */
            #tableEntries td:last-child { display: block !important; padding-top: 10px !important;
                border-top: 1px solid rgba(43,58,74,0.08) !important; margin-top: 6px; }
            #tableEntries td:last-child::before { display: none; }
            #tableEntries td:last-child .btn { min-height: 44px; font-size: 0.85rem; }
            #tableEntries td:last-child .btn.w-100 { width: auto !important; flex: 1 1 0; }
            #tableEntries td:last-child .btn.mb-1 { margin-bottom: 0 !important; }
            #tableEntries td:last-child { display: flex !important; gap: 8px; }
            #tableEntries td:last-child .btn { flex: 1 1 0; margin: 0 !important; }
            /* Grafik card → bottom-sheet native: penuhi layar HP, chart 1 kolom */
            .progress-modal .modal-dialog { margin: 0; max-width: 100%; min-height: 100dvh; align-items: flex-end; }
            .progress-modal .modal-content { border-radius: 20px 20px 0 0 !important; max-height: 94dvh; overflow-y: auto;
                -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
            .progress-modal .modal-header { position: sticky; top: 0; z-index: 5; }
            .progress-modal .modal-body .row.g-4 > [class*="col-"],
            .progress-modal .modal-body .row.g-3 > .col-lg-6 { flex: 0 0 100% !important; max-width: 100% !important; }
            .progress-chart-wrap { height: 260px !important; min-height: 220px !important; }
            .kpm-chart-box { height: 240px !important; min-height: 200px !important; }
            #kpmIndexKpiRow > [class*="col-"] { flex: 0 0 calc(50% - 6px) !important; max-width: calc(50% - 6px) !important; }
            .kpm-dyn-pane { min-height: 64px; display: flex; flex-direction: column; justify-content: center; }
            .progress-modal .modal-footer { position: sticky; bottom: 0; z-index: 5; background: rgba(255,255,255,0.95);
                backdrop-filter: blur(10px); flex-wrap: wrap; gap: 8px; }
            .progress-modal .modal-footer .btn, .progress-modal .modal-footer a.btn { min-height: 48px;
                display: inline-flex; align-items: center; justify-content: center; }
            .container-fluid { padding-left: 6px; padding-right: 6px; }
            footer {
                margin-left: -10px;
                margin-right: -10px;
                padding-left: 10px;
                padding-right: 10px;
                padding-top: 8px !important;
                padding-bottom: max(8px, env(safe-area-inset-bottom, 0px)) !important;
                margin-bottom: 0 !important;
            }
            .user-topbar {
                flex-wrap: wrap;
                gap: 8px;
                padding: 12px !important;
                text-align: center;
                justify-content: center !important;
                border-radius: 14px !important;
            }
            .user-topbar > div:first-child { width: 100%; }
            .user-topbar h2 { font-size: 1rem; }
            .user-topbar h5 { font-size: 0.82rem; }
            .user-actions {
                width: 100%;
                flex-wrap: wrap;
                justify-content: center;
                gap: 5px;
            }

            /* Form card: reduce padding on mobile */
            .card-body { padding: 1rem !important; }
            .card-header.bg-custom { padding: 0.85rem 1rem; border-radius: 14px 14px 0 0 !important; }
            .card-header.bg-custom h5 { font-size: 0.95rem; }

            /* Entry form grid: full-width stacked fields, no fixed widths */
            .entry-form-grid {
                gap: 10px;
            }
            .entry-form-grid > [class*="col-"] {
                flex-basis: 100% !important;
                width: 100% !important;
                max-width: 100% !important;
                --field-w: 100% !important;
            }
            /* RT/RW/Usia side-by-side */
            .entry-form-grid > .field-rt,
            .entry-form-grid > .field-rw,
            .entry-form-grid > .field-age {
                flex-basis: calc(33.33% - 7px) !important;
                width: calc(33.33% - 7px) !important;
                max-width: calc(33.33% - 7px) !important;
            }
            /* Choice fields: 2 per row */
            .entry-form-grid > .field-choice {
                flex-basis: calc(50% - 5px) !important;
                width: calc(50% - 5px) !important;
                max-width: calc(50% - 5px) !important;
            }
            .entry-form-grid > .field-opd {
                flex-basis: 100% !important;
                width: 100% !important;
                max-width: 100% !important;
            }

            /* Ternak box: stack items vertically, no fixed widths */
            .ternak-box { padding: 12px; }
            .ternak-box .d-flex.flex-wrap {
                flex-wrap: wrap !important;
                gap: 6px !important;
                margin-bottom: 10px !important;
            }
            .ternak-box .form-check {
                width: 100% !important;
                margin-right: 0 !important;
                margin-bottom: 4px;
            }
            .ternak-box .form-check input,
            .ternak-box .form-check label { font-size: 0.85rem; }
            .ternak-box input[type="number"] {
                width: calc(50% - 3px) !important;
                margin: 0 !important;
            }
            .ternak-box select {
                width: calc(50% - 3px) !important;
                margin: 0 !important;
            }

            /* Media layout: single column */
            .entry-media-layout {
                grid-template-columns: 1fr !important;
                gap: 12px;
                margin-top: 8px;
            }
            .attachment-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
                gap: 8px;
            }
            .attachment-tile .foto-card { padding: 8px; border-radius: 12px; }
            .attachment-tile .form-label { font-size: 0.65rem; margin-bottom: 0.3rem; }
            .attachment-tile .btn {
                min-height: 36px;
                padding: 0.35rem 0.4rem;
                font-size: 0.72rem;
            }
            .attachment-tile .foto-preview img { height: 80px; }

            /* Action buttons: full-width stacked */
            .action-safe-row {
                margin-top: 20px !important;
                justify-content: stretch !important;
                gap: 8px !important;
                flex-direction: column;
            }
            .action-safe-row .btn {
                flex: 1 1 100% !important;
                width: 100% !important;
                margin: 0 !important;
                padding: 0.6rem 0.5rem !important;
                font-size: 0.9rem !important;
            }

            /* KPI strip: compact 2x2 on mobile */
            .kpi-strip {
                border-radius: 14px;
            }
            .kpi-cell {
                padding: 11px 12px;
                gap: 8px;
            }
            .kpi-label {
                font-size: 0.62rem;
                letter-spacing: 0.03em;
            }
            .kpi-value {
                font-size: 1.35rem;
            }
            .kpi-note {
                font-size: 0.6rem;
            }
            .kpi-dot {
                width: 6px;
                height: 6px;
                margin-top: 5px;
            }

            /* Filter panel: compact */
            .filter-panel { padding: 10px !important; border-radius: 14px; }
            .filter-panel > .row { gap: 6px; }
            .filter-panel .form-label { font-size: 0.62rem; margin-bottom: 0.15rem; }
            .filter-panel .form-control,
            .filter-panel .form-select,
            .filter-panel .btn-filter-action { height: 36px; font-size: 0.82rem; }

            /* Sync inline: stack badge + button */
            .sync-inline-wrap { flex-direction: column; align-items: stretch !important; gap: 6px; }
            .sync-inline-wrap .sync-pill,
            .sync-inline-wrap .sync-button { width: 100%; justify-content: center; }

            /* Table: make it a card-like layout on mobile */
            .table-responsive {
                border-radius: 12px;
                padding: 4px;
            }
            .table-responsive .table {
                font-size: 0.78rem;
            }
            .table-responsive .table th {
                font-size: 0.62rem;
                padding: 0.35rem 0.4rem;
                white-space: nowrap;
            }
            .table-responsive .table td {
                padding: 0.35rem 0.4rem;
            }
            .table-responsive .table td .btn { font-size: 0.72rem; padding: 0.2rem 0.4rem; }

            /* Modal kecil (non-grafik): full width di HP */
            .modal-dialog:not(.modal-xl) { margin: 8px; }
            .modal-content { border-radius: 14px !important; }
            .modal-body { padding: 1rem !important; }

            /* Progress modal: stack on mobile */
            .progress-chart-wrap { height: 280px !important; min-height: 240px !important; }

            /* Footer: smaller */
            footer { padding: 8px !important; }
            footer .small { font-size: 0.7rem !important; }
        }

        /* ===================================================
           NAVBAR — Floating Glass Island (modern redesign)
           Pill kaca melayang dengan brand chip, tombol aksen,
           dan garis gradien di tepi atas. Tetap ikut scroll.
           =================================================== */
        .verif-navbar {
            margin: 0 0 18px;
            position: relative;
            z-index: 1030;
            border-radius: 22px;
            background: linear-gradient(135deg, rgba(23, 32, 48, 0.88) 0%, rgba(11, 17, 32, 0.94) 100%);
            border: 1px solid rgba(255, 255, 255, 0.16);
            box-shadow: 0 16px 40px rgba(2, 8, 23, 0.35), 0 3px 10px rgba(2, 8, 23, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(18px) saturate(1.5);
            -webkit-backdrop-filter: blur(18px) saturate(1.5);
            display: flex;
            flex-direction: column;
        }

        /* Garis aksen gradien di tepi atas navbar */
        .verif-navbar::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            border-radius: inherit;
            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;
            background: linear-gradient(90deg, transparent 0%, #10b981 25%, #0ea5e9 55%, #8b5cf6 80%, transparent 100%);
            opacity: 0.9;
            pointer-events: none;
        }

        .island-content {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 10px 14px;
            overflow-x: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
        .island-content::-webkit-scrollbar { display: none; }

        .island-spacer {
            flex: 1 1 auto;
            min-width: 8px;
        }

        /* ----- Brand chip (identitas halaman) ----- */
        .navbar-brand-chip {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 5px 15px 5px 6px;
            border-radius: 999px;
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(14, 165, 233, 0.18) 100%);
            border: 1px solid rgba(255, 255, 255, 0.14);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
            flex-shrink: 0;
            white-space: nowrap;
        }
        .brand-logo {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 34px;
            height: 34px;
            border-radius: 12px;
            font-size: 1.15rem;
            line-height: 1;
            background: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
            box-shadow: 0 4px 12px rgba(14, 165, 233, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
            flex-shrink: 0;
        }
        .brand-text {
            display: flex;
            flex-direction: column;
            line-height: 1.18;
            min-width: 0;
        }
        .brand-title {
            font-weight: 800;
            font-size: 0.85rem;
            color: #fff;
            letter-spacing: 0.2px;
            white-space: nowrap;
        }
        .brand-sub {
            font-size: 0.58rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1.2px;
            color: rgba(255, 255, 255, 0.55);
            white-space: nowrap;
        }

        /* ----- Tombol pill (ikon dalam tile + label) ----- */
        .island-btn {
            --accent: #94a3b8;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.09);
            color: rgba(255, 255, 255, 0.82);
            font-size: 0.78rem;
            font-weight: 600;
            padding: 5px 14px 5px 6px;
            border-radius: 999px;
            cursor: pointer;
            white-space: nowrap;
            transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
            font-family: inherit;
            line-height: 1.2;
            flex-shrink: 0;
        }
        .island-btn .island-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            border-radius: 10px;
            font-size: 0.95rem;
            line-height: 1;
            background: rgba(255, 255, 255, 0.09);
            border: 1px solid rgba(255, 255, 255, 0.08);
            transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
            flex-shrink: 0;
        }
        .island-btn .island-label {
            margin-left: 0;
            opacity: 0.95;
        }
        .island-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.28);
            color: #fff;
            box-shadow: 0 6px 18px rgba(2, 8, 23, 0.3);
            transform: translateY(-2px);
        }
        .island-btn:hover .island-icon {
            transform: scale(1.05) rotate(-4deg);
        }
        /* Hover & state aktif bernuansa aksen (per tombol) jika didukung browser */
        @supports (color: color-mix(in srgb, red 10%, blue)) {
            .island-btn:hover {
                background: color-mix(in srgb, var(--accent) 16%, rgba(255, 255, 255, 0.05));
                border-color: color-mix(in srgb, var(--accent) 55%, transparent);
                box-shadow: 0 6px 18px rgba(2, 8, 23, 0.3), 0 4px 16px color-mix(in srgb, var(--accent) 35%, transparent);
            }
            .island-btn:hover .island-icon {
                background: color-mix(in srgb, var(--accent) 32%, rgba(255, 255, 255, 0.08));
                box-shadow: 0 2px 10px color-mix(in srgb, var(--accent) 40%, transparent);
            }
        }
        .island-btn:active {
            transform: translateY(0) scale(0.96);
        }
        .island-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        .island-btn.island-active {
            background: rgba(255, 255, 255, 0.12);
            border-color: rgba(255, 255, 255, 0.35);
            color: #fff;
            box-shadow: 0 4px 14px rgba(2, 8, 23, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18);
        }
        @supports (color: color-mix(in srgb, red 10%, blue)) {
            .island-btn.island-active {
                background: color-mix(in srgb, var(--accent) 24%, rgba(255, 255, 255, 0.05));
                border-color: color-mix(in srgb, var(--accent) 60%, transparent);
                box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 38%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.15);
            }
        }

        .island-divider {
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            margin: 0 5px;
            flex-shrink: 0;
        }

        .island-logout {
            --accent: #ef4444;
            color: rgba(252, 165, 165, 0.9);
        }
        .island-logout .island-icon {
            background: rgba(239, 68, 68, 0.16);
            border-color: rgba(239, 68, 68, 0.28);
        }
        .island-logout:hover {
            color: #fecaca;
        }
        .island-logout:hover .island-icon {
            background: rgba(239, 68, 68, 0.3);
        }

        /* Badge kecil di dalam tombol (mis. hitungan Sistem) */
        .island-btn .badge {
            margin-left: 2px;
            font-size: 0.6rem;
        }

        /* Turunkan opacity navbar saat modal terbuka */
        body.modal-open .verif-navbar {
            opacity: 0.5;
            transition: opacity 0.3s ease;
        }

        /* --- Mobile compact --- */
        @media (max-width: 768px) {
            .verif-navbar {
                margin: 0 0 12px;
                border-radius: 18px;
            }
            .island-content {
                padding: 7px 10px;
                gap: 5px;
            }
            .island-btn {
                padding: 4px 10px 4px 5px;
                font-size: 0.74rem;
            }
            .island-btn .island-icon {
                width: 25px;
                height: 25px;
                border-radius: 9px;
                font-size: 0.9rem;
            }
            .navbar-brand-chip {
                padding: 4px 12px 4px 5px;
                gap: 8px;
            }
            .brand-logo {
                width: 30px;
                height: 30px;
                border-radius: 10px;
                font-size: 1rem;
            }
            .brand-title { font-size: 0.78rem; }
        }

        /* Layar sangat kecil: mode ikon saja agar tetap rapi */
        @media (max-width: 480px) {
            .brand-sub { display: none; }
            .island-btn .island-label { display: none; }
            .island-btn { padding: 4px 5px; gap: 0; border-radius: 12px; }
            .island-divider { margin: 0 2px; }
        }

        /* Safe area untuk layar ber-notch */
        @supports (padding: env(safe-area-inset-top)) {
            body {
                padding-top: max(16px, env(safe-area-inset-top));
            }
            @media (max-width: 576px) {
                body {
                    padding-top: max(10px, env(safe-area-inset-top));
                }
            }
            footer {
                padding-bottom: env(safe-area-inset-bottom);
            }
        }

        /* ===================================================
           DUAL PORTAL HUB — PERKEMBANGAN TERNAK BINAAN (v3.9.52)
           =================================================== */
        .portal-hub-container {
            border-radius: 18px;
            position: relative;
            transition: all 0.3s ease;
        }

        .portal-hub-header {
            user-select: none;
        }

        .portal-hub-icon {
            font-size: 1.15rem;
            line-height: 1;
        }

        .portal-hub-title {
            font-size: 0.88rem;
            letter-spacing: -0.01em;
            color: var(--heading-color, #1e293b);
        }

        .portal-hub-tag {
            font-size: 0.68rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            padding: 2px 8px;
            border-radius: 20px;
            background: rgba(100, 116, 139, 0.12);
            color: var(--muted-color, #64748b);
        }

        .portal-hub-toggle-btn {
            width: 26px;
            height: 26px;
            border-radius: 8px;
            border: 1px solid rgba(148, 163, 184, 0.25);
            background: rgba(255, 255, 255, 0.5);
            color: var(--heading-color, #334155);
            font-size: 0.95rem;
            font-weight: bold;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .portal-hub-toggle-btn:hover {
            background: rgba(255, 255, 255, 0.9);
            border-color: rgba(148, 163, 184, 0.5);
            transform: scale(1.05);
        }

        .portal-card {
            border-radius: 16px;
            border: 1px solid rgba(255, 255, 255, 0.7);
            background: rgba(255, 255, 255, 0.65);
            backdrop-filter: blur(16px) saturate(1.4);
            -webkit-backdrop-filter: blur(16px) saturate(1.4);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.8);
            transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        .portal-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            opacity: 0.85;
        }

        .portal-card-gayatri::before {
            background: linear-gradient(90deg, #10b981, #059669, #34d399);
        }

        .portal-card-pdkt::before {
            background: linear-gradient(90deg, #6366f1, #4f46e5, #818cf8);
        }

        .portal-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.9);
            border-color: rgba(255, 255, 255, 0.95);
        }

        .portal-chip {
            font-size: 0.72rem;
            font-weight: 600;
            padding: 3px 9px;
            border-radius: 20px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .portal-chip-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            display: inline-block;
        }

        .portal-chip-gayatri {
            background: rgba(16, 185, 129, 0.12);
            color: #065f46;
        }

        .portal-chip-gayatri .portal-chip-dot {
            background: #10b981;
        }

        .portal-chip-pdkt {
            background: rgba(99, 102, 241, 0.12);
            color: #3730a3;
        }

        .portal-chip-pdkt .portal-chip-dot {
            background: #6366f1;
        }

        .portal-live-indicator {
            font-size: 0.68rem;
            font-weight: 600;
            color: #059669;
            letter-spacing: 0.03em;
            user-select: none;
        }

        .portal-card-title {
            font-size: 0.94rem;
            letter-spacing: -0.01em;
            color: var(--heading-color, #1e293b);
        }

        .portal-card-desc {
            font-size: 0.79rem;
            line-height: 1.42;
            color: var(--muted-color, #64748b);
        }

        .portal-login-hint {
            font-size: 0.76rem;
            line-height: 1.5;
            color: var(--muted-color, #64748b);
            background: rgba(100, 116, 139, 0.08);
            border: 1px dashed rgba(100, 116, 139, 0.35);
            border-radius: 8px;
            padding: 6px 10px;
        }

        .portal-login-hint .portal-kec-code {
            font-weight: 700;
            letter-spacing: 0.04em;
            color: inherit;
            background: rgba(100, 116, 139, 0.12);
            padding: 1px 6px;
            border-radius: 6px;
        }

        .portal-action-btn {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 7px 14px;
            border-radius: 10px;
            font-size: 0.8rem;
            font-weight: 600;
            color: #ffffff !important;
            transition: all 0.22s ease;
            border: none;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }

        .portal-btn-gayatri {
            background: linear-gradient(135deg, #059669 0%, #047857 100%);
        }

        .portal-btn-gayatri:hover {
            background: linear-gradient(135deg, #047857 0%, #065f46 100%);
            box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
            transform: translateY(-1px);
        }

        .portal-btn-pdkt {
            background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
        }

        .portal-btn-pdkt:hover {
            background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
            box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
            transform: translateY(-1px);
        }

        .portal-btn-arrow {
            font-size: 0.95rem;
            transition: transform 0.2s ease;
        }

        .portal-action-btn:hover .portal-btn-arrow {
            transform: translateX(2px) translateY(-1px);
        }

        /* === BLOK PORTAL TERPADU (v2.08) — judul setara form entry, lebar dibatasi === */
        .portal-hub-block {
            background: rgba(255, 255, 255, 0.92);
            border: 1px solid rgba(15, 23, 42, 0.08);
            border-radius: 14px;
            overflow: hidden;
            box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
        }

        .portal-hub-block-head {
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            gap: 12px;
            padding: 12px 16px;
            background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
            border-bottom: 1px solid rgba(15, 23, 42, 0.07);
            flex-wrap: wrap;
        }

        .portal-hub-block-ico {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            display: grid;
            place-items: center;
            background: #ecfdf5;
            font-size: 1.1rem;
            flex-shrink: 0;
        }

        .portal-hub-block-title {
            font-size: 1rem;
            font-weight: 800;
            margin: 0;
            color: var(--heading-color, #1e293b);
        }

        .portal-hub-block-sub {
            font-size: 0.78rem;
            margin: 1px 0 0;
            color: var(--muted-color, #64748b);
        }

        .portal-hub-block-text {
            flex: 0 1 auto;
            min-width: 0;
            text-align: center;
        }

        .portal-hub-block-head .portal-live-indicator {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
        }

        .portal-hub-block-head {
            position: relative;
            min-height: 58px;
        }

        @media (max-width: 640px) {
            .portal-hub-block-head .portal-live-indicator {
                position: static;
                transform: none;
            }
        }

        .portal-hub-block-body {
            padding: 12px 16px 14px;
            max-width: 560px;
            margin: 0 auto;
            display: flex;
            justify-content: center;
        }

        .portal-hub-block-body .portal-action-btn {
            width: 100%;
            justify-content: center;
            gap: 10px;
        }

        .portal-hub-block-body .portal-btn-arrow {
            margin-left: 2px;
        }

        .portal-hub-block-body .portal-action-btn {
            padding: 10px 16px;
            font-size: 0.86rem;
        }

        @media (max-width: 640px) {
            .portal-hub-block-body { max-width: 100%; }
        }

        /* === STRIP BANTUAN KENDALA APLIKASI EKSTERNAL (v3.9.70) === */
        .portal-hub-help {
            transition: all 0.25s ease;
        }

        .portal-help-strip {
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.75);
            background: rgba(255, 255, 255, 0.55);
            backdrop-filter: blur(14px) saturate(1.3);
            -webkit-backdrop-filter: blur(14px) saturate(1.3);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
            font-size: 0.78rem;
            color: var(--muted-color, #64748b);
            transition: all 0.2s ease;
        }

        .portal-help-strip:hover {
            border-color: rgba(255, 255, 255, 0.95);
            background: rgba(255, 255, 255, 0.75);
        }

        .portal-help-icon {
            font-size: 0.95rem;
            line-height: 1;
        }

        .portal-help-name {
            color: var(--heading-color, #1e293b);
            font-weight: 600;
        }

        .portal-help-btn {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 3px 10px;
            border-radius: 8px;
            font-size: 0.76rem;
            font-weight: 600;
            background: rgba(16, 185, 129, 0.12);
            color: #065f46 !important;
            border: 1px solid rgba(16, 185, 129, 0.28);
            transition: all 0.2s ease;
            white-space: nowrap;
        }

        .portal-help-btn:hover {
            background: #10b981;
            color: #ffffff !important;
            border-color: #10b981;
            transform: translateY(-1px);
            box-shadow: 0 3px 8px rgba(16, 185, 129, 0.25);
        }

        .portal-help-arrow {
            font-size: 0.82rem;
            line-height: 1;
            transition: transform 0.2s ease;
        }

        .portal-help-btn:hover .portal-help-arrow {
            transform: translate(1px, -1px);
        }

        /* === DARK THEME ADAPTATION === */
        body[data-theme="dark"] .portal-hub-title {
            color: #f1f5f9;
        }
        body[data-theme="dark"] .portal-hub-tag {
            background: rgba(255, 255, 255, 0.08);
            color: #94a3b8;
        }
        body[data-theme="dark"] .portal-hub-toggle-btn {
            background: rgba(30, 41, 59, 0.7);
            border-color: rgba(255, 255, 255, 0.12);
            color: #cbd5e1;
        }
        body[data-theme="dark"] .portal-hub-toggle-btn:hover {
            background: rgba(51, 65, 85, 0.9);
            border-color: rgba(255, 255, 255, 0.25);
        }
        body[data-theme="dark"] .portal-card {
            background: rgba(30, 41, 59, 0.65);
            border-color: rgba(255, 255, 255, 0.09);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
        }
        body[data-theme="dark"] .portal-card:hover {
            box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14);
            border-color: rgba(255, 255, 255, 0.18);
        }
        body[data-theme="dark"] .portal-chip-gayatri {
            background: rgba(16, 185, 129, 0.18);
            color: #6ee7b7;
        }
        body[data-theme="dark"] .portal-chip-pdkt {
            background: rgba(99, 102, 241, 0.18);
            color: #a5b4fc;
        }
        body[data-theme="dark"] .portal-live-indicator {
            color: #34d399;
        }
        body[data-theme="dark"] .portal-card-title {
            color: #f8fafc;
        }
        body[data-theme="dark"] .portal-card-desc {
            color: #94a3b8;
        }
        body[data-theme="dark"] .portal-login-hint {
            color: #cbd5e1;
            background: rgba(148, 163, 184, 0.1);
            border-color: rgba(148, 163, 184, 0.35);
        }
        body[data-theme="dark"] .portal-login-hint .portal-kec-code {
            color: #f8fafc;
            background: rgba(148, 163, 184, 0.18);
        }
        body[data-theme="dark"] .portal-login-hint .text-muted {
            color: #94a3b8 !important;
        }
        body[data-theme="dark"] .portal-help-strip {
            background: rgba(30, 41, 59, 0.6);
            border-color: rgba(255, 255, 255, 0.1);
            color: #94a3b8;
        }
        body[data-theme="dark"] .portal-help-strip:hover {
            background: rgba(30, 41, 59, 0.85);
            border-color: rgba(255, 255, 255, 0.18);
        }
        body[data-theme="dark"] .portal-help-name {
            color: #f1f5f9;
        }
        body[data-theme="dark"] .portal-help-btn {
            background: rgba(16, 185, 129, 0.2);
            color: #6ee7b7 !important;
            border-color: rgba(16, 185, 129, 0.35);
        }
        body[data-theme="dark"] .portal-help-btn:hover {
            background: #10b981;
            color: #ffffff !important;
            border-color: #10b981;
        }

        /* === SOFT THEME ADAPTATION === */
        body[data-theme="soft"] .portal-hub-title {
            color: #2c241d;
        }
        body[data-theme="soft"] .portal-hub-tag {
            background: rgba(212, 165, 116, 0.18);
            color: #786b5e;
        }
        body[data-theme="soft"] .portal-hub-toggle-btn {
            background: rgba(255, 250, 244, 0.7);
            border-color: rgba(212, 165, 116, 0.3);
            color: #4a3e35;
        }
        body[data-theme="soft"] .portal-hub-toggle-btn:hover {
            background: rgba(255, 250, 244, 0.95);
            border-color: rgba(212, 165, 116, 0.5);
        }
        body[data-theme="soft"] .portal-card {
            background: rgba(255, 250, 244, 0.7);
            border-color: rgba(212, 165, 116, 0.3);
            box-shadow: 0 4px 20px rgba(44, 36, 29, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9);
        }
        body[data-theme="soft"] .portal-card:hover {
            box-shadow: 0 10px 28px rgba(44, 36, 29, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
            border-color: rgba(212, 165, 116, 0.5);
        }
        body[data-theme="soft"] .portal-chip-gayatri {
            background: rgba(180, 83, 9, 0.14);
            color: #92400e;
        }
        body[data-theme="soft"] .portal-chip-gayatri .portal-chip-dot {
            background: #d97706;
        }
        body[data-theme="soft"] .portal-chip-pdkt {
            background: rgba(124, 58, 237, 0.14);
            color: #6d28d9;
        }
        body[data-theme="soft"] .portal-chip-pdkt .portal-chip-dot {
            background: #7c3aed;
        }
        body[data-theme="soft"] .portal-live-indicator {
            color: #b45309;
        }
        body[data-theme="soft"] .portal-card-title {
            color: #2c241d;
        }
        body[data-theme="soft"] .portal-card-desc {
            color: #786b5e;
        }
        body[data-theme="soft"] .portal-login-hint {
            color: #57534e;
            background: rgba(212, 165, 116, 0.12);
            border-color: rgba(212, 165, 116, 0.4);
        }
        body[data-theme="soft"] .portal-login-hint .portal-kec-code {
            color: #2c241d;
            background: rgba(212, 165, 116, 0.25);
        }
        body[data-theme="soft"] .portal-login-hint .text-muted {
            color: #786b5e !important;
        }
        body[data-theme="soft"] .portal-help-strip {
            background: rgba(255, 250, 244, 0.7);
            border-color: rgba(212, 165, 116, 0.35);
            color: #786b5e;
        }
        body[data-theme="soft"] .portal-help-strip:hover {
            background: rgba(255, 250, 244, 0.95);
            border-color: rgba(212, 165, 116, 0.5);
        }
        body[data-theme="soft"] .portal-help-name {
            color: #2c241d;
        }
        body[data-theme="soft"] .portal-help-btn {
            background: rgba(16, 185, 129, 0.14);
            color: #047857 !important;
            border-color: rgba(16, 185, 129, 0.3);
        }

        /* === MODAL PENGALIHAN PORTAL EKSTERNAL (GAYATRI & PDKT) - REDESIGNED v3.9.72 === */
        #modalPortalExternalNotice .modal-dialog {
            max-width: 440px;
            margin: 1.25rem auto;
        }

        @media (max-width: 576px) {
            #modalPortalExternalNotice .modal-dialog {
                max-width: calc(100% - 1.25rem);
                margin: 0.6rem auto;
            }
        }

        .portal-ext-modal-card {
            border-radius: 20px !important;
            overflow: hidden;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25) !important;
            border: 1px solid rgba(255, 255, 255, 0.35) !important;
            background: #ffffff;
        }

        .portal-header-icon-bubble {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.22);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.45rem;
            flex-shrink: 0;
            margin-right: 14px;
            box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4);
        }

        .portal-header-sub {
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.88);
            margin-top: 2px;
        }

        .portal-ext-notice-strip {
            border-radius: 10px;
            background: rgba(14, 165, 233, 0.08);
            border: 1px solid rgba(14, 165, 233, 0.22);
            padding: 7px 11px;
            font-size: 0.75rem;
            color: #0369a1;
            line-height: 1.35;
        }

        .portal-notice-icon {
            font-size: 0.95rem;
            line-height: 1;
        }

        .portal-notice-text {
            font-weight: 500;
        }

        /* Hero Credential Card */
        .portal-cred-card {
            background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
            border: 1.5px solid #cbd5e1;
            border-radius: 14px;
            padding: 11px 13px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
        }

        .cred-header-title {
            font-size: 0.74rem;
            font-weight: 700;
            letter-spacing: 0.03em;
            color: #334155;
        }

        .cred-caps-pill {
            font-size: 0.63rem;
            font-weight: 700;
            padding: 2px 7px;
            border-radius: 8px;
            background: #e2e8f0;
            color: #475569;
            letter-spacing: 0.03em;
        }

        .portal-cred-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            margin-top: 8px;
        }

        .portal-cred-box {
            background: #ffffff;
            border: 1.5px solid #cbd5e1;
            border-radius: 10px;
            padding: 7px 10px;
            transition: all 0.2s ease;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
        }

        .portal-cred-box:hover {
            border-color: #3b82f6;
            box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
        }

        .portal-cred-label {
            font-size: 0.62rem;
            font-weight: 700;
            color: #64748b;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            display: block;
            margin-bottom: 2px;
        }

        .portal-cred-val {
            font-size: 1.05rem;
            font-weight: 800;
            color: #0f172a;
            font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
            letter-spacing: 0.04em;
            word-break: break-all;
        }

        .portal-cred-note {
            font-size: 0.73rem;
            color: #64748b;
            line-height: 1.35;
        }

        /* Mission / Duty Card */
        .portal-mission-card {
            background: rgba(100, 116, 139, 0.06);
            border: 1px solid rgba(100, 116, 139, 0.14);
            border-radius: 11px;
            padding: 8px 12px;
        }

        .mission-icon {
            font-size: 0.95rem;
            line-height: 1.2;
        }

        .mission-title {
            font-size: 0.74rem;
            font-weight: 700;
            color: #334155;
        }

        .mission-desc {
            font-size: 0.75rem;
            color: #64748b;
            line-height: 1.35;
        }

        /* Help / Contact Card */
        .portal-help-card {
            background: rgba(16, 185, 129, 0.07);
            border: 1px dashed rgba(16, 185, 129, 0.35);
            border-radius: 11px;
            padding: 8px 12px;
        }

        .portal-help-row-pj {
            border-bottom: 1px dashed rgba(16, 185, 129, 0.28);
            padding-bottom: 8px;
            margin-bottom: 8px;
        }

        .portal-help-avatar {
            font-size: 1.1rem;
            line-height: 1;
        }

        .portal-help-label {
            font-size: 0.68rem;
            color: #065f46;
            font-weight: 500;
        }

        .portal-help-person {
            font-size: 0.79rem;
            font-weight: 700;
            color: #065f46;
        }

        .portal-help-wa-btn {
            background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
            color: #ffffff !important;
            border-radius: 50rem;
            font-weight: 600;
            font-size: 0.74rem;
            padding: 5px 12px;
            transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
            display: inline-flex;
            align-items: center;
            gap: 5px;
            white-space: nowrap;
            box-shadow: 0 2px 7px rgba(18, 140, 126, 0.28);
            border: 1px solid rgba(255, 255, 255, 0.25);
            text-decoration: none !important;
            line-height: 1.2;
        }

        .portal-help-wa-btn:hover {
            background: linear-gradient(135deg, #2ae06c 0%, #0f7a6e 100%);
            color: #ffffff !important;
            transform: translateY(-1.5px);
            box-shadow: 0 4px 12px rgba(37, 211, 102, 0.42);
        }

        .portal-help-wa-btn:active {
            transform: translateY(0) scale(0.96);
            box-shadow: 0 1px 3px rgba(18, 140, 126, 0.2);
        }

        .portal-help-wa-btn svg {
            width: 13px;
            height: 13px;
            flex-shrink: 0;
            transition: transform 0.2s ease;
        }

        .portal-help-wa-btn:hover svg {
            transform: scale(1.12);
        }

        .portal-help-wa-btn .portal-help-arrow {
            font-size: 0.8rem;
            transition: transform 0.2s ease;
            display: inline-block;
        }

        .portal-help-wa-btn:hover .portal-help-arrow {
            transform: translate(1.5px, -1.5px);
        }

        /* Footer */
        .ext-portal-footer {
            background: rgba(248, 250, 252, 0.95);
            border-top: 1px solid rgba(226, 232, 240, 0.8);
            padding: 10px 18px;
        }

        .ext-portal-btn-cancel {
            background: #e2e8f0;
            color: #475569;
            border: none;
            border-radius: 9px;
            font-size: 0.82rem;
            padding: 6px 15px;
            transition: all 0.2s ease;
        }

        .ext-portal-btn-cancel:hover {
            background: #cbd5e1;
            color: #1e293b;
        }

        .ext-portal-btn-proceed {
            border-radius: 9px;
            font-size: 0.83rem;
            padding: 6px 18px;
            color: #ffffff !important;
            border: none;
            min-height: 38px;
            display: inline-flex;
            align-items: center;
            transition: all 0.2s ease;
        }

        .ext-portal-btn-proceed:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
        }

        /* === DARK THEME ADAPTATION === */
        body[data-theme="dark"] .portal-ext-modal-card {
            background: #0f172a;
            border-color: rgba(255, 255, 255, 0.12) !important;
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6) !important;
        }
        body[data-theme="dark"] .portal-ext-notice-strip {
            background: rgba(14, 165, 233, 0.12);
            border-color: rgba(14, 165, 233, 0.3);
            color: #38bdf8;
        }
        body[data-theme="dark"] .portal-cred-card {
            background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
            border-color: rgba(255, 255, 255, 0.12);
        }
        body[data-theme="dark"] .cred-header-title {
            color: #f1f5f9;
        }
        body[data-theme="dark"] .cred-caps-pill {
            background: rgba(255, 255, 255, 0.1);
            color: #cbd5e1;
        }
        body[data-theme="dark"] .portal-cred-box {
            background: #1e293b;
            border-color: rgba(255, 255, 255, 0.18);
        }
        body[data-theme="dark"] .portal-cred-label {
            color: #94a3b8;
        }
        body[data-theme="dark"] .portal-cred-val {
            color: #60a5fa;
        }
        body[data-theme="dark"] .portal-cred-note {
            color: #94a3b8;
        }
        body[data-theme="dark"] .portal-mission-card {
            background: rgba(30, 41, 59, 0.6);
            border-color: rgba(255, 255, 255, 0.08);
        }
        body[data-theme="dark"] .mission-title {
            color: #f1f5f9;
        }
        body[data-theme="dark"] .mission-desc {
            color: #94a3b8;
        }
        body[data-theme="dark"] .portal-help-card {
            background: rgba(16, 185, 129, 0.12);
            border-color: rgba(16, 185, 129, 0.3);
        }
        body[data-theme="dark"] .portal-help-row-pj {
            border-color: rgba(16, 185, 129, 0.22);
        }
        body[data-theme="dark"] .portal-help-label {
            color: #6ee7b7;
        }
        body[data-theme="dark"] .portal-help-person {
            color: #f1f5f9;
        }
        body[data-theme="dark"] .portal-help-wa-btn {
            background: linear-gradient(135deg, #25D366 0%, #0d9488 100%);
            box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35);
            border-color: rgba(255, 255, 255, 0.15);
        }
        body[data-theme="dark"] .portal-help-wa-btn:hover {
            box-shadow: 0 4px 14px rgba(37, 211, 102, 0.5);
        }
        body[data-theme="dark"] .ext-portal-footer {
            background: #0b1120;
            border-color: rgba(255, 255, 255, 0.08);
        }
        body[data-theme="dark"] .ext-portal-btn-cancel {
            background: rgba(51, 65, 85, 0.7);
            color: #cbd5e1;
        }
        body[data-theme="dark"] .ext-portal-btn-cancel:hover {
            background: #475569;
            color: #f8fafc;
        }

        /* === SOFT THEME ADAPTATION === */
        body[data-theme="soft"] .portal-ext-modal-card {
            background: #fffdfa;
            border-color: rgba(212, 165, 116, 0.35) !important;
        }
        body[data-theme="soft"] .portal-ext-notice-strip {
            background: rgba(217, 119, 6, 0.09);
            border-color: rgba(217, 119, 6, 0.25);
            color: #92400e;
        }
        body[data-theme="soft"] .portal-cred-card {
            background: #fbf6ee;
            border-color: rgba(212, 165, 116, 0.4);
        }
        body[data-theme="soft"] .cred-header-title {
            color: #2c241d;
        }
        body[data-theme="soft"] .cred-caps-pill {
            background: rgba(212, 165, 116, 0.2);
            color: #786b5e;
        }
        body[data-theme="soft"] .portal-cred-box {
            background: #ffffff;
            border-color: rgba(212, 165, 116, 0.5);
        }
        body[data-theme="soft"] .portal-cred-label {
            color: #786b5e;
        }
        body[data-theme="soft"] .portal-cred-val {
            color: #92400e;
        }
        body[data-theme="soft"] .portal-cred-note {
            color: #786b5e;
        }
        body[data-theme="soft"] .portal-mission-card {
            background: rgba(255, 250, 244, 0.8);
            border-color: rgba(212, 165, 116, 0.3);
        }
        body[data-theme="soft"] .mission-title {
            color: #2c241d;
        }
        body[data-theme="soft"] .mission-desc {
            color: #786b5e;
        }
        body[data-theme="soft"] .portal-help-card {
            background: rgba(16, 185, 129, 0.09);
            border-color: rgba(16, 185, 129, 0.35);
        }
        body[data-theme="soft"] .portal-help-row-pj {
            border-color: rgba(16, 185, 129, 0.25);
        }
        body[data-theme="soft"] .portal-help-label {
            color: #047857;
        }
        body[data-theme="soft"] .portal-help-person {
            color: #2c241d;
        }
        body[data-theme="soft"] .portal-help-wa-btn {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            box-shadow: 0 2px 7px rgba(5, 150, 105, 0.28);
            border-color: rgba(255, 255, 255, 0.22);
        }
        body[data-theme="soft"] .ext-portal-footer {
            background: #fbf6ee;
            border-color: rgba(212, 165, 116, 0.3);
        }
        body[data-theme="soft"] .ext-portal-btn-cancel {
            background: rgba(212, 165, 116, 0.2);
            color: #4a3e35;
        }
        body[data-theme="soft"] .ext-portal-btn-cancel:hover {
            background: rgba(212, 165, 116, 0.35);
            color: #2c241d;
        }

/* ============================================================
   RONDE 3 — TABEL DATA PETUGAS (#tableEntries): komponen baru
   tag · status dot · chip lampiran 3x2 (samakan dgn Data Aktif admin)
   ============================================================ */
#tableEntries .ident-wrap{ display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; min-width:0; }
#tableEntries .ident-top{ display:inline-flex; align-items:center; gap:6px; flex-wrap:wrap; min-width:0; }
#tableEntries .ident-name{ font-weight:600; font-size:13.5px; color:var(--t-ink,#141922); letter-spacing:-.005em; line-height:1.35; }
#tableEntries .ident-meta{ display:inline-flex; align-items:center; gap:6px; flex-wrap:wrap; margin-top:0; color:#717a89; font-size:11.5px; min-width:0; }
#tableEntries .mono{ font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:11.5px; color:#717a89; white-space:nowrap; }
#tableEntries .tag{ display:inline-flex; align-items:center; gap:5px; font-size:10.5px; font-weight:600; letter-spacing:.02em; padding:2px 7px; border-radius:6px; border:1px solid transparent; line-height:1.6; white-space:nowrap; }
#tableEntries .tag-accent{ color:#1b4fd8; background:#eef3ff; border-color:rgba(47,107,255,.18); }
#tableEntries .tag-ok{ color:#0f9d6b; background:#e9f8f1; border-color:rgba(15,157,107,.20); }
#tableEntries .tag-neutral{ color:#717a89; background:#f7f8fa; border-color:#e9ebef; }
#tableEntries .tag-desil{ color:#a16207; background:#fef7e6; border-color:rgba(183,121,31,.24); }
#tableEntries .ternak-wrap{ display:flex; flex-direction:column; align-items:flex-start; gap:4px; min-width:0; width:100%; }
#tableEntries .ternak{ font-size:12px; color:#3b4351; line-height:1.45; }
#tableEntries .ternak b{ font-weight:600; color:var(--t-ink,#141922); }
#tableEntries .ternak .ea{ color:#717a89; }
#tableEntries .st{ display:inline-flex; align-items:center; gap:7px; font-size:12px; font-weight:550; }
#tableEntries .st i{ width:7px; height:7px; border-radius:50%; flex:none; }
#tableEntries .st-ok i{ background:#0f9d6b; } #tableEntries .st-ok{ color:#0f9d6b; }
#tableEntries .st-warn i{ background:#b7791f; } #tableEntries .st-warn{ color:#b7791f; }
#tableEntries .st-stop i{ background:#d1495b; } #tableEntries .st-stop{ color:#d1495b; }
#tableEntries .st-neutral i{ background:#9aa2b1; } #tableEntries .st-neutral{ color:#717a89; }
/* 📦 Penanda "Diarsip" untuk petugas: netral-biru, sengaja TIDAK memakai merah/hijau
   supaya tidak terbaca sebagai error maupun sukses. Ikon kotak arsip, bukan titik. */
/* width:fit-content + display:inline-flex WAJIB: di mode kartu (mobile) sel berubah jadi
   block, sehingga badge inline-flex melebar selebar sel dan tampak seperti tombol. */
#tableEntries .st-archive{ display:inline-flex; width:fit-content; max-width:100%;
    color:#5b6472; background:#eef1f5; border:1px solid #d8dee6;
    padding:2px 8px; border-radius:999px; font-size:11px; font-weight:650; white-space:nowrap; }
#tableEntries .st-archive i{ width:auto; height:auto; border-radius:0; background:none;
    font-size:10px; line-height:1; }
#tableEntries .st-archive i::before{ content:"\1F4E6"; }
#tableEntries .st + .st-archive{ margin-left:6px; }
@media (max-width: 767.98px) {
    /* Mode kartu: tiap .st jadi block-level, jadi margin-left diganti jarak atas */
    #tableEntries .st + .st-archive{ margin-left:0; margin-top:6px; }
}
body[data-theme="dark"] #tableEntries .st-archive{ color:#c3ccd8; background:#242a33; border-color:#39424f; }
body[data-theme="soft"] #tableEntries .st-archive{ color:#6b5a3e; background:#f6efe3; border-color:#e6dbc8; }
/* ============================================================
   KOLOM STATUS — chip "sf" (status flag): ikon bulat + label
   Desain: kartu kecil rapi, mudah dipindai, tetap ringkas di HP.
   ============================================================ */
#tableEntries .status-flags{
    display:flex; flex-direction:column; align-items:stretch;
    gap:5px; margin-top:6px; width:100%; max-width:100%;
}
#tableEntries .sf{
    display:inline-flex; align-items:flex-start; gap:5px;
    max-width:100%; align-self:flex-start;
    font-size:10px; font-weight:650; letter-spacing:.015em;
    padding:2px 8px 2px 3px;
    border-radius:10px; border:1px solid transparent;
    line-height:1.45; white-space:normal; overflow-wrap:anywhere;
    text-align:left;
}
#tableEntries .sf .sf-ico{
    flex:none; display:inline-flex; align-items:center; justify-content:center;
    width:14px; height:14px; margin-top:1px; border-radius:50%;
    font-size:9px; font-weight:800; font-style:normal; line-height:1;
    background:currentColor;
}
#tableEntries .sf .sf-ico::before{ content:''; }
#tableEntries .sf .sf-ico{ color:#fff; }
#tableEntries .sf-ok{ color:#0f9d6b; background:#e9f8f1; border-color:rgba(15,157,107,.22); }
#tableEntries .sf-ok .sf-ico{ background:#0f9d6b; }
#tableEntries .sf-warn{ color:#a16207; background:#fef7e6; border-color:rgba(183,121,31,.24); }
#tableEntries .sf-warn .sf-ico{ background:#b7791f; }
#tableEntries .sf-danger{ color:#c02a3d; background:#fdeef0; border-color:rgba(209,73,91,.24); }
#tableEntries .sf-danger .sf-ico{ background:#d1495b; }
#tableEntries .sf-muted{ color:#6b7280; background:#f6f7f9; border-color:#e8eaef; }
#tableEntries .sf-muted .sf-ico{ background:#9aa2b1; }
/* Rincian di bawah chip (selaras kolom Validasi NIK / Cek Bridging admin).
   TIDAK dipotong: teks membungkus penuh (desktop & PWA). */
#tableEntries .sf-note{
    font-size:10px; line-height:1.4; color:#8a93a3;
    padding-left:3px; margin-top:-1px; width:100%; max-width:100%;
    white-space:normal; overflow-wrap:anywhere; word-break:break-word;
    overflow:visible;
}
#tableEntries .sf-note .sf-k{ color:#c02a3d; font-weight:700; }
#tableEntries .sf-note .sf-old{ color:#98a1af; text-decoration:line-through; }
#tableEntries .sf-note .sf-arrow{ color:#98a1af; }
#tableEntries .sf-note b{ color:#3b4351; font-weight:700; }
#tableEntries .sf-note.sf-time{ color:#a3abb8; font-size:9.5px; }
#tableEntries .sf-note.sf-by{ color:#98a1af; font-size:9.5px; }
/* (aturan .status-flags/.tag-warn/.tag-danger lama dihapus — diganti chip "sf" di atas) */
#tableEntries .chips{ display:grid; grid-template-columns:repeat(3,1fr); gap:5px; max-width:128px; }
#tableEntries .chip{ justify-self:center; display:inline-flex; align-items:center; justify-content:center; height:22px; padding:0 7px; font-size:9.5px; font-weight:600; letter-spacing:.04em; line-height:1; border-radius:6px; border:1px solid #e9ebef; color:#717a89; background:#f7f8fa; cursor:pointer; transition:.12s; white-space:nowrap; }
#tableEntries .chip:hover{ border-color:#2f6bff; color:#1b4fd8; }
#tableEntries .chip.on{ border-color:rgba(15,157,107,.32); background:#e9f8f1; color:#0f9d6b; }
#tableEntries .chip.off{ border-style:dashed; color:#9aa2b1; background:transparent; cursor:default; }
body[data-theme="dark"] #tableEntries .ident-name{ color:var(--t-ink,#f1f5f9); }
body[data-theme="dark"] #tableEntries .ident-meta{ color:#8b93a4; }
body[data-theme="dark"] #tableEntries .mono{ color:#8b93a4; }
body[data-theme="dark"] #tableEntries .tag-neutral{ color:#8b93a4; background:#0f1722; border-color:#1c2634; }
body[data-theme="dark"] #tableEntries .tag-accent{ color:#a9c1ff; background:#141d33; border-color:rgba(91,140,255,.3); }
body[data-theme="dark"] #tableEntries .tag-ok{ color:#39c191; background:#10271f; border-color:rgba(57,193,145,.28); }
body[data-theme="dark"] #tableEntries .tag-desil{ color:#e0b25e; background:#2a2416; border-color:rgba(224,178,94,.28); }
body[data-theme="soft"] #tableEntries .tag-desil{ color:#8a5a2b; background:#fbf1e4; border-color:#e6d8c4; }
/* Chip status (dark) */
body[data-theme="dark"] #tableEntries .sf-ok{ color:#3ddba0; background:rgba(16,185,129,.14); border-color:rgba(61,219,160,.3); }
body[data-theme="dark"] #tableEntries .sf-warn{ color:#f3c877; background:rgba(245,158,11,.14); border-color:rgba(243,200,119,.3); }
body[data-theme="dark"] #tableEntries .sf-danger{ color:#ff8fa0; background:rgba(244,63,94,.15); border-color:rgba(255,143,160,.32); }
body[data-theme="dark"] #tableEntries .sf-muted{ color:#9aa3b2; background:rgba(148,163,184,.12); border-color:rgba(154,163,178,.26); }
body[data-theme="dark"] #tableEntries .ternak{ color:#c2c8d4; }
body[data-theme="dark"] #tableEntries .chip{ background:#0f1722; border-color:#1c2634; color:#8b93a4; }
body[data-theme="dark"] #tableEntries .chip.on{ background:#10271f; border-color:rgba(57,193,145,.3); color:#39c191; }
body[data-theme="dark"] #tableEntries .chip.off{ background:transparent; color:#666e7e; }
#tableEntries .dot-sep{ width:3px; height:3px; border-radius:50%; background:#9aa2b1; display:inline-block; }
#tableEntries .layak-line{ margin-top:2px; line-height:1.35; }
#tableEntries .desa-wrap{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; }

/* ===================================================
   CAPAIAN TARGET (pane petugas) — flat, hairline, tabular
   =================================================== */
.ct-pane {
    --ct-surface: #ffffff;
    --ct-line: rgba(15, 23, 42, 0.09);
    --ct-ink: #0f172a;
    --ct-muted: #64748b;
    --ct-gayatri: #6366f1;
    --ct-pdkt: #10b981;
    --ct-over: #16a34a;
    --ct-under: #e11d48;
    --ct-track: rgba(100, 116, 139, 0.16);
    color: var(--ct-ink);
}
.ct-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.ct-head-title { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; margin: 0; color: var(--ct-ink); }
.ct-head-sub { font-size: 0.73rem; color: var(--ct-muted); margin-top: 2px; }
.ct-year-wrap { display: flex; align-items: center; gap: 8px; }
.ct-year-label { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ct-muted); margin: 0; }
.ct-year {
    appearance: none;
    border: 1px solid var(--ct-line);
    background: var(--ct-surface);
    color: var(--ct-ink);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 10px;
    min-width: 92px;
}
.ct-status { font-size: 0.74rem; border-radius: 10px; padding: 8px 11px; margin-bottom: 12px; border: 1px solid var(--ct-line); background: var(--ct-surface); color: var(--ct-muted); }
.ct-status.is-error { color: var(--ct-under); border-color: rgba(225, 29, 72, 0.3); }
.ct-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.ct-kpi { border: 1px solid var(--ct-line); background: var(--ct-surface); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.ct-kpi-label { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ct-muted); }
.ct-kpi-value { font-size: 1.55rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; margin-top: 3px; color: var(--ct-ink); }
.ct-kpi-value small { font-size: 0.7rem; font-weight: 600; color: var(--ct-muted); }
.ct-kpi-note { font-size: 0.66rem; color: var(--ct-muted); }
.ct-kpi.is-ok .ct-kpi-value { color: var(--ct-over); }
.ct-kpi.is-warn .ct-kpi-value { color: var(--ct-under); }
.ct-legend { display: flex; align-items: center; gap: 12px; font-size: 0.68rem; color: var(--ct-muted); margin-bottom: 10px; flex-wrap: wrap; }
.ct-legend i { width: 16px; height: 6px; border-radius: 999px; display: inline-block; vertical-align: middle; margin-right: 5px; }
.ct-legend .lg-fill { background: var(--ct-gayatri); }
.ct-legend .lg-target { background: var(--ct-track); }
.ct-legend strong { color: var(--ct-ink); }
.ct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ct-card { border: 1px solid var(--ct-line); background: var(--ct-surface); border-radius: 16px; overflow: hidden; min-width: 0; }
.ct-card-head { padding: 13px 14px 11px; border-bottom: 1px solid var(--ct-line); }
.ct-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ct-prog { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ct-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; background: var(--ct-gayatri); }
.ct-card.is-pdkt .ct-dot { background: var(--ct-pdkt); }
.ct-prog-name { font-size: 0.85rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-ratio { font-size: 0.9rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ct-ratio small { font-size: 0.7rem; font-weight: 600; color: var(--ct-muted); }
.ct-bar { position: relative; height: 6px; border-radius: 999px; background: var(--ct-track); margin-top: 10px; overflow: hidden; }
.ct-bar-fill { height: 100%; border-radius: 999px; background: var(--ct-gayatri); transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.ct-card.is-pdkt .ct-bar-fill { background: var(--ct-pdkt); }
.ct-bar-fill.is-done { background: var(--ct-over); }
.ct-bar-note { display: flex; justify-content: space-between; gap: 8px; font-size: 0.66rem; color: var(--ct-muted); margin-top: 6px; }
.ct-rows { max-height: 340px; overflow-y: auto; }
.ct-row { display: grid; grid-template-columns: 112px 1fr 74px; align-items: center; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--ct-line); }
.ct-row:first-child { border-top: 0; }
.ct-row-name { font-size: 0.76rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-row-track { position: relative; height: 6px; border-radius: 999px; background: var(--ct-track); overflow: hidden; }
.ct-row-fill { display: block; height: 100%; border-radius: 999px; background: var(--ct-gayatri); opacity: 0.75; }
.ct-card.is-pdkt .ct-row-fill { background: var(--ct-pdkt); }
.ct-row.is-done .ct-row-fill { background: var(--ct-over); opacity: 1; }
.ct-row-val { font-size: 0.73rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--ct-muted); white-space: nowrap; }
.ct-row-val strong { color: var(--ct-ink); font-weight: 700; }
.ct-chip { display: inline-block; font-size: 0.64rem; font-weight: 700; padding: 1px 6px; border-radius: 999px; margin-left: 4px; }
.ct-chip.is-over { background: rgba(22, 163, 74, 0.14); color: var(--ct-over); }
.ct-chip.is-under { background: rgba(225, 29, 72, 0.12); color: var(--ct-under); }
.ct-empty { padding: 22px 14px; text-align: center; font-size: 0.76rem; color: var(--ct-muted); }

@media (max-width: 900px) {
    .ct-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 576px) {
    .ct-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ct-kpi { padding: 10px 12px; border-radius: 12px; }
    .ct-kpi-value { font-size: 1.3rem; }
    .ct-row { grid-template-columns: 92px 1fr 66px; padding: 8px 12px; gap: 8px; }
    .ct-row-name { font-size: 0.72rem; }
    .ct-rows { max-height: none; }
}


/* ================================================================
   SPLASH SKELETON (v3.9.121) — tampil instan saat halaman dibuka,
   ditutup index-app.js begitu aplikasi siap. Menggantikan
   body{visibility:hidden} yang membuat layar blank 1-3 detik.
   ================================================================ */
.app-bootstrap {
    position: fixed; inset: 0; z-index: 3000;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, #eef2f7 0%, #e2e8f0 55%, #dde5ee 100%);
    color: #0f172a; text-align: center;
    padding: 24px; box-sizing: border-box;
}
.app-bootstrap-inner { max-width: 260px; }
.app-bootstrap-logo { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 10px 26px rgba(2, 8, 23, 0.18); }
.app-bootstrap-title { margin-top: 14px; font-weight: 800; font-size: 1.15rem; letter-spacing: 0.01em; }
.app-bootstrap-sub { margin-top: 4px; font-size: 0.82rem; opacity: 0.72; }
.app-bootstrap-track {
    margin: 16px auto 0; width: 150px; height: 5px; border-radius: 99px;
    background: rgba(15, 23, 42, 0.12); overflow: hidden;
}
.app-bootstrap-track > span {
    display: block; width: 40%; height: 100%; border-radius: 99px;
    background: linear-gradient(90deg, #334155, #475569);
    animation: appBootSlide 1.1s ease-in-out infinite;
}
@keyframes appBootSlide {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(60%); }
    100% { transform: translateX(220%); }
}
@media (prefers-reduced-motion: reduce) {
    .app-bootstrap-track > span { animation: none; width: 100%; opacity: 0.6; }
}

/* Baris aksi mengambang: kontras penuh di 3 tema */
body[data-theme="dark"] .app-bootstrap {
    background: linear-gradient(160deg, #0b1120 0%, #131728 55%, #0a0d18 100%);
    color: #f8fafc;
}
body[data-theme="dark"] .app-bootstrap-track { background: rgba(148, 163, 184, 0.2); }
body[data-theme="dark"] .app-bootstrap-track > span { background: linear-gradient(90deg, #22d3ee, #818cf8); }
body[data-theme="soft"] .app-bootstrap {
    background: linear-gradient(160deg, #fffcf8 0%, #f6f0e4 55%, #efe6d6 100%);
    color: #3d2c1e;
}
body[data-theme="soft"] .app-bootstrap-track { background: rgba(61, 44, 30, 0.14); }
body[data-theme="soft"] .app-bootstrap-track > span { background: linear-gradient(90deg, #c2703f, #d4a574); }

/* Baris aksi mengambang (action-floating): kontras penuh di 3 tema */
body[data-theme="dark"] .form-action-row.action-safe-row.action-floating {
    background: rgba(19, 23, 40, 0.94) !important;
    border-color: rgba(0, 245, 255, 0.18) !important;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.55) !important;
}
body[data-theme="soft"] .form-action-row.action-safe-row.action-floating {
    background: rgba(253, 250, 243, 0.95) !important;
    border-color: rgba(212, 165, 116, 0.45) !important;
    box-shadow: 0 -8px 28px rgba(61, 44, 30, 0.18) !important;
}
