        :root {
            --ink: #102A43;
            --ink-soft: #243B53;
            --signal: #0B6E99;
            --signal-hover: #0A5A7D;
            --accent: #9A6B3F;
            --paper: #EEF1F4;
            --surface: #FFFFFF;
            --border: #D5DCE3;
            --text-main: #102A43;
            --text-muted: #627D98;
            --success: #0F766E;
            --warning: #B45309;
            --danger: #B91C1C;
            --radius: 8px;
            --shadow: 0 1px 2px rgba(16, 42, 67, 0.06);
            --font-ui: 'Manrope', ui-sans-serif, sans-serif;
            --font-brand: 'Fraunces', ui-serif, Georgia, serif;
            /* aliases for existing pages */
            --primary: var(--ink);
            --primary-hover: var(--ink-soft);
            --secondary: var(--signal);
            --secondary-hover: var(--signal-hover);
            --bg-main: var(--paper);
            --card-bg: var(--surface);
            --border-color: var(--border);
            --shadow-sm: var(--shadow);
            --shadow-lg: var(--shadow);
        }

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

        html { scroll-behavior: smooth; }

        body {
            font-family: var(--font-ui);
            background-color: var(--paper);
            background-image:
                radial-gradient(ellipse 120% 80% at 0% -20%, rgba(11, 110, 153, 0.07), transparent 50%),
                radial-gradient(ellipse 90% 60% at 100% 0%, rgba(154, 107, 63, 0.05), transparent 45%),
                linear-gradient(180deg, #F4F6F8 0%, #EEF1F4 40%, #E8ECF0 100%);
            color: var(--text-main);
            line-height: 1.55;
            font-size: 14.5px;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        body::before {
            content: '';
            position: fixed;
            inset: 0;
            pointer-events: none;
            opacity: 0.035;
            z-index: 0;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
        }

        .navbar, footer, .nav-mobile-menu, .nav-mobile-overlay {
            position: relative;
            z-index: 1;
        }

        .navbar { z-index: 100; }
        footer { z-index: 110; }
        .nav-mobile-overlay { z-index: 150; }
        .nav-mobile-menu { z-index: 200; }

        /* Navbar */
        .navbar {
            background: var(--ink);
            border-bottom: 1px solid rgba(255,255,255,0.08);
            color: white;
            padding: 0.65rem 1.75rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
        }

        .navbar-brand {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            color: white;
            font-family: var(--font-brand);
            font-weight: 600;
            font-size: 1.15rem;
            letter-spacing: -0.02em;
            max-width: min(42vw, 320px);
        }

        .navbar-brand span {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .navbar-brand img {
            height: 36px;
            width: auto;
            flex-shrink: 0;
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 0.15rem;
            list-style: none;
        }

        .nav-links a {
            color: rgba(255, 255, 255, 0.82);
            text-decoration: none;
            font-weight: 600;
            font-size: 0.88rem;
            transition: color 0.18s ease, background 0.18s ease;
            padding: 0.5rem 0.75rem;
            border-radius: var(--radius);
            display: flex;
            align-items: center;
            gap: 6px;
            position: relative;
        }

        .nav-links > li > a::after {
            content: '';
            position: absolute;
            left: 0.75rem;
            right: 0.75rem;
            bottom: 0.28rem;
            height: 1.5px;
            background: var(--accent);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.2s ease;
        }

        .nav-links > li > a:hover::after,
        .nav-links > li > a.active::after {
            transform: scaleX(1);
        }

        .nav-links a:hover, .nav-links a.active {
            color: white;
            background: rgba(255, 255, 255, 0.06);
        }

        .nav-dropdown { position: relative; }

        .nav-dropdown-toggle {
            color: rgba(255, 255, 255, 0.82);
            background: none;
            border: none;
            font-family: var(--font-ui);
            font-weight: 600;
            font-size: 0.88rem;
            padding: 0.5rem 0.75rem;
            border-radius: var(--radius);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: color 0.18s ease, background 0.18s ease;
        }

        .nav-dropdown-toggle:hover, .nav-dropdown-toggle.active {
            color: white;
            background: rgba(255, 255, 255, 0.06);
        }
        .nav-scope-badge {
            font-size: 0.62rem;
            font-weight: 800;
            letter-spacing: 0.02em;
            padding: 0.1rem 0.38rem;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.14);
            color: #F8FAFC;
            line-height: 1.2;
        }
        .nav-dropdown.is-scope-down .nav-dropdown-menu a,
        .nav-mobile-section.is-scope-down .nav-mobile-link {
            opacity: 0.42;
            pointer-events: none;
        }

        .nav-dropdown-menu {
            position: absolute;
            top: calc(100% - 2px);
            left: 0;
            margin-top: 0;
            padding-top: 0.55rem;
            background: #0C2033;
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            min-width: 260px;
            padding: 0.55rem 0.45rem 0.45rem;
            z-index: 200;
        }
        .nav-dropdown-menu::before {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            top: -10px;
            height: 12px;
        }

        .nav-dropdown-menu a {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 0.55rem 0.8rem;
            font-size: 0.86rem;
            font-weight: 600;
            border-radius: 6px;
            color: rgba(255,255,255,0.88);
            white-space: nowrap;
        }

        .nav-dropdown-menu a:hover, .nav-dropdown-menu a.active {
            background: rgba(255,255,255,0.08);
            color: white;
        }

        .nav-dropdown-menu a::after { display: none !important; }

        .btn-login {
            background: var(--signal) !important;
            color: white !important;
            padding: 0.5rem 1.1rem !important;
            border-radius: var(--radius) !important;
            font-weight: 700 !important;
            box-shadow: none !important;
        }

        .btn-login:hover {
            background: var(--signal-hover) !important;
            transform: none;
        }

        .btn-login::after { display: none !important; }

        .user-pill {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.12);
            padding: 0.3rem 0.65rem 0.3rem 0.3rem;
            border-radius: var(--radius);
            color: white;
            font-size: 0.82rem;
        }

        .user-avatar-circle {
            width: 30px;
            height: 30px;
            border-radius: 6px;
            background: var(--signal);
            color: white;
            font-weight: 700;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .container {
            /* Lebar konten mengikuti layar; batas lembut di monitor sangat lebar */
            max-width: min(100%, 1680px);
            width: 100%;
            margin: 1.5rem auto 2.5rem;
            padding: 0 clamp(0.85rem, 2vw, 1.75rem);
            flex: 1;
            position: relative;
            z-index: 0;
        }

        .container > * {
            animation: none;
        }

        .breadcrumb-bar {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.82rem;
            color: var(--text-muted);
            margin-bottom: 1rem;
            font-weight: 600;
        }
        .breadcrumb-bar a {
            color: var(--signal);
            text-decoration: none;
        }
        .breadcrumb-bar a:hover { text-decoration: underline; }

        .alert {
            padding: 0.9rem 1.1rem;
            border-radius: var(--radius);
            margin-bottom: 1.25rem;
            font-weight: 600;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: none;
            line-height: 1.45;
            border: 1px solid transparent;
        }

        .alert-success {
            background-color: #ECFDF8;
            color: #115E59;
            border-color: #99F6E4;
        }

        .alert-danger {
            background-color: #FEF2F2;
            color: #7F1D1D;
            border-color: #FECACA;
        }

        /* Toast popup pojok kanan atas */
        .app-toast-host {
            position: fixed;
            top: 4.9rem;
            right: 1rem;
            z-index: 10050;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 0.55rem;
            width: min(24rem, calc(100vw - 1.5rem));
            pointer-events: none;
        }
        .app-toast {
            pointer-events: auto;
            width: 100%;
            display: flex;
            align-items: flex-end;
            gap: 0.75rem;
            padding: 0.85rem 0.95rem;
            border-radius: 12px;
            border: 1px solid transparent;
            box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16);
            font-size: 0.88rem;
            font-weight: 650;
            line-height: 1.45;
            background: #fff;
            color: var(--ink);
            animation: app-toast-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
        }
        .app-toast.is-leaving {
            animation: app-toast-out 0.22s ease forwards;
        }
        .app-toast-icon {
            flex-shrink: 0;
            width: 1.55rem;
            height: 1.55rem;
            border-radius: 999px;
            display: grid;
            place-items: center;
            margin-top: 0.05rem;
            font-size: 0.78rem;
            font-weight: 800;
        }
        .app-toast-body { flex: 1; min-width: 0; word-break: break-word; }
        .app-toast-close {
            flex-shrink: 0;
            width: 1.7rem;
            height: 1.7rem;
            border-radius: 999px;
            border: 1px solid currentColor;
            background: rgba(255,255,255,0.55);
            cursor: pointer;
            display: inline-grid;
            place-items: center;
            font-size: 1.15rem;
            line-height: 1;
            opacity: 0.82;
            padding: 0;
            color: inherit;
            position: relative;
            overflow: hidden;
        }
        .app-toast-close:hover { opacity: 1; background: rgba(255,255,255,0.8); }
        .app-toast-close-mark {
            position: relative;
            z-index: 1;
            font-weight: 700;
            transform: translateY(-0.5px);
        }
        .app-toast-close-ring {
            position: absolute;
            inset: -1px;
            transform: rotate(-90deg);
            pointer-events: none;
        }
        .app-toast-close-ring-track {
            fill: none;
            stroke: currentColor;
            opacity: 0.16;
            stroke-width: 2;
        }
        .app-toast-close-ring-progress {
            fill: none;
            stroke: currentColor;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-dasharray: 59.7;
            stroke-dashoffset: 0;
        }
        .app-toast-close.has-countdown .app-toast-close-ring-progress {
            animation: app-toast-ring linear forwards;
            animation-duration: var(--toast-ms, 4500ms);
        }
        .app-toast--success {
            background: #ECFDF8;
            color: #115E59;
            border-color: #99F6E4;
        }
        .app-toast--success .app-toast-icon { background: #0F766E; color: #fff; }
        .app-toast--error {
            background: #FEF2F2;
            color: #7F1D1D;
            border-color: #FECACA;
        }
        .app-toast--error .app-toast-icon { background: #B91C1C; color: #fff; }
        .app-toast--warning {
            background: #FFFBEB;
            color: #92400E;
            border-color: #FDE68A;
        }
        .app-toast--warning .app-toast-icon { background: #D97706; color: #fff; }
        .app-toast--info {
            background: #EFF6FF;
            color: #1E3A8A;
            border-color: #BFDBFE;
        }
        .app-toast--info .app-toast-icon { background: #2563EB; color: #fff; }
        @keyframes app-toast-in {
            from { opacity: 0; transform: translateY(-8px) translateX(12px); }
            to { opacity: 1; transform: none; }
        }
        @keyframes app-toast-out {
            to { opacity: 0; transform: translateY(-6px) translateX(10px); }
        }
        @keyframes app-toast-ring {
            to { stroke-dashoffset: 59.7; }
        }
        @media (max-width: 720px) {
            .app-toast-host {
                top: 4.35rem;
                right: 0.75rem;
                left: 0.75rem;
                width: auto;
                align-items: stretch;
            }
        }
        @media (prefers-reduced-motion: reduce) {
            .app-toast, .app-toast.is-leaving { animation: none; }
        }

        .card {
            background: var(--surface);
            border-radius: var(--radius);
            border: 1px solid var(--border);
            box-shadow: none;
            padding: 1.5rem;
            margin-bottom: 1.25rem;
        }

        /* Shell halaman layanan (tanpa kartu bertumpuk) — lebar mengikuti .container */
        .page-shell,
        .page-shell-wide {
            max-width: none;
            margin: 0;
        }
        .page-head {
            margin-bottom: 1.75rem;
            padding-bottom: 1.15rem;
            border-bottom: 1px solid rgba(16, 42, 67, 0.12);
            scroll-margin-top: 4.75rem;
        }
        .page-head .card-title,
        .page-head h1 {
            font-family: var(--font-brand);
            font-size: clamp(1.45rem, 3vw, 1.85rem);
            font-weight: 600;
            letter-spacing: -0.025em;
            color: var(--ink);
            margin: 0.15rem 0 0.4rem;
        }
        .page-head p {
            margin: 0;
            font-size: 0.9rem;
            color: var(--text-muted);
            max-width: 40rem;
            line-height: 1.5;
        }
        .page-head-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-top: 1rem;
        }
        .page-toolbar {
            display: flex;
            flex-wrap: wrap;
            gap: 0.85rem 1rem;
            align-items: flex-end;
            margin-bottom: 1.5rem;
            padding-bottom: 1.25rem;
            border-bottom: 1px solid rgba(16, 42, 67, 0.08);
        }
        .page-section {
            margin-bottom: 2.25rem;
        }
        .page-section-title {
            font-family: var(--font-brand);
            font-size: 1.2rem;
            font-weight: 600;
            letter-spacing: -0.02em;
            color: var(--ink);
            margin: 0 0 0.85rem;
        }
        .feed-list {
            display: flex;
            flex-direction: column;
        }
        .feed-row {
            padding: 1.15rem 0;
            border-bottom: 1px solid rgba(16, 42, 67, 0.1);
        }
        .feed-row:last-child { border-bottom: none; }
        .day-board {
            display: flex;
            flex-direction: column;
            gap: 1.75rem;
        }
        .day-board-day {
            border-top: 2px solid var(--ink);
            padding-top: 0.75rem;
        }
        .day-board-day h3 {
            font-family: var(--font-brand);
            font-size: 1.05rem;
            font-weight: 600;
            color: var(--ink);
            margin: 0 0 0.65rem;
            letter-spacing: -0.01em;
        }
        .day-board-slot {
            display: flex;
            justify-content: space-between;
            gap: 1rem;
            padding: 0.7rem 0;
            border-bottom: 1px solid rgba(16, 42, 67, 0.08);
            align-items: flex-end;
        }
        .day-board-slot:last-child { border-bottom: none; }
        .day-board-slot strong {
            display: block;
            font-size: 0.95rem;
            color: var(--ink);
            margin-bottom: 0.15rem;
        }
        .day-board-slot .meta {
            font-size: 0.8rem;
            color: var(--text-muted);
        }
        .day-board-slot .time {
            text-align: right;
            flex-shrink: 0;
            font-size: 0.82rem;
            font-weight: 700;
            color: var(--signal);
            font-variant-numeric: tabular-nums;
        }
        .legend-row {
            display: flex;
            flex-wrap: wrap;
            gap: 0.45rem 0.75rem;
            margin-top: 0.75rem;
        }
        .legend-chip {
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--text-muted);
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
        }
        .legend-dot {
            width: 8px;
            height: 8px;
            border-radius: 2px;
            display: inline-block;
        }

        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-bottom: 1rem;
            margin-bottom: 1rem;
            border-bottom: 1px solid var(--border);
            flex-wrap: wrap;
            gap: 0.85rem;
        }

        .admin-hub {
            margin: 0 0 1.15rem;
        }
        .admin-hub-head {
            margin-bottom: 0.85rem;
        }
        .admin-hub-title {
            font-family: var(--font-brand);
            font-size: clamp(1.45rem, 2.8vw, 1.85rem);
            font-weight: 600;
            letter-spacing: -0.025em;
            color: var(--ink);
            margin: 0.1rem 0 0.3rem;
        }
        .admin-hub-desc {
            margin: 0;
            font-size: 0.88rem;
            color: var(--text-muted);
            max-width: 42rem;
            line-height: 1.45;
        }
        .admin-hub-tabs {
            display: flex;
            flex-wrap: nowrap;
            gap: 0.4rem;
            overflow-x: auto;
            padding: 0.38rem;
            border: 1px solid var(--border);
            border-radius: 12px;
            background: #F5F8FA;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: thin;
            scroll-snap-type: x proximity;
            overscroll-behavior-inline: contain;
        }
        .admin-hub-tabs-wrap { position: relative; }
        .admin-hub-scroll-hint { display:none; }
        .admin-hub-tab {
            flex: 0 0 auto;
            scroll-snap-align: start;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 2.6rem;
            text-decoration: none;
            font-family: var(--font-ui);
            font-size: 0.82rem;
            font-weight: 750;
            color: var(--text-muted);
            padding: 0.58rem 0.88rem;
            border-radius: 9px;
            border: 1px solid transparent;
            transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow .15s ease;
            white-space: nowrap;
        }
        .admin-hub-tab:hover {
            color: var(--ink);
            background: rgba(255,255,255,.72);
            border-color: #D8E2EA;
        }
        .admin-hub-tab:focus-visible {
            outline: 2px solid var(--signal);
            outline-offset: 2px;
        }
        .admin-hub-tab.is-active {
            color: var(--ink);
            background: var(--surface);
            border-color: #AFCBDA;
            box-shadow: 0 2px 7px rgba(16,42,67,.09), inset 0 -3px 0 var(--signal);
        }
        @media (max-width: 760px) {
            .admin-hub-tabs-wrap .admin-hub-tabs { padding-right:3.5rem; }
            .admin-hub-scroll-hint {
                position:absolute; right:.38rem; top:.38rem; bottom:.38rem; display:flex; align-items:center;
                padding:.56rem .3rem .56rem 1.35rem;
                background:linear-gradient(90deg,rgba(245,248,250,0),#F5F8FA 34%); color:#486581;
                font-size:.65rem; font-weight:800; pointer-events:none; border-radius:0 9px 9px 0;
            }
        }

        /* Tab fitur instan (button, bukan navigasi halaman) */
        button.admin-hub-tab.page-feature-tab {
            cursor: pointer;
            background: transparent;
            font-family: var(--font-ui);
            appearance: none;
            -webkit-appearance: none;
        }
        button.admin-hub-tab.page-feature-tab.is-active {
            color: var(--ink);
            background: var(--surface);
            border-color: #AFCBDA;
            box-shadow: 0 2px 7px rgba(16,42,67,.09), inset 0 -3px 0 var(--signal);
        }
        .page-feature-panel[hidden] {
            display: none !important;
        }

        /* Mode tabs — komponen rich seragam di seluruh layanan. */
        .mode-tabs-shell {
            position: relative;
            margin: 0 0 1.25rem;
            padding: 0.42rem;
            border: 1px solid var(--border);
            border-radius: 14px;
            background: #F5F8FA;
        }
        .mode-tabs {
            display: flex;
            gap: 0.42rem;
            overflow-x: auto;
            overflow-y: hidden;
            align-items: stretch;
            scroll-snap-type: x proximity;
            scrollbar-width: thin;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior-inline: contain;
        }
        .mode-tab {
            position: relative;
            min-width: min(13rem, 72vw);
            flex: 1 0 11.5rem;
            scroll-snap-align: start;
            display: flex;
            align-items: center;
            gap: 0.7rem;
            padding: 0.72rem 0.8rem;
            border: 1px solid transparent;
            border-radius: 10px;
            color: var(--text-muted);
            text-decoration: none;
            background: transparent;
            font-family: var(--font-ui);
            cursor: pointer;
            appearance: none;
            transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
        }
        .mode-tab:hover { color: var(--ink); background: rgba(255,255,255,.7); border-color: #D8E2EA; }
        .mode-tab:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
        .mode-tab.is-active {
            color: var(--ink);
            background: #fff;
            border-color: #B8D2E2;
            box-shadow: 0 2px 8px rgba(16,42,67,.08);
        }
        .mode-tab.is-active::after {
            content: '';
            position: absolute;
            left: .85rem;
            right: .85rem;
            bottom: .12rem;
            height: 3px;
            border-radius: 3px 3px 0 0;
            background: var(--signal);
        }
        .mode-tab-icon {
            width: 2.15rem;
            height: 2.15rem;
            flex: 0 0 2.15rem;
            display: grid;
            place-items: center;
            border-radius: 9px;
            color: #486581;
            background: #E7EDF2;
        }
        .mode-tab.is-active .mode-tab-icon { color: #fff; background: var(--signal); }
        .mode-tab-icon svg { width: 1.08rem; height: 1.08rem; }
        .mode-tab-copy { min-width: 0; display: block; text-align: left; }
        .mode-tab-label { display: block; color: inherit; font-size: .84rem; font-weight: 800; line-height: 1.25; }
        .mode-tab-description {
            display: block;
            margin-top: .12rem;
            color: var(--text-muted);
            font-size: .68rem;
            font-weight: 600;
            line-height: 1.25;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .mode-tabs-hint { display: none; }

        /* Sub-tab — SATU pola se-sistem, acuan Jam/Blok. Jangan pakai .mode-tab (bocor kartu main). */
        .jb-subnav-wrap {
            margin: 0 0 1.25rem;
        }
        .jb-subnav-tabs {
            display: flex;
            width: 100%;
            gap: 0.4rem;
            overflow-x: auto;
            padding: 0.3rem;
            background: rgba(226, 232, 240, 0.6);
            border: 1px solid var(--border, #d5dce3);
            border-radius: 12px;
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch;
        }
        .jb-subnav-tabs::-webkit-scrollbar { display: none; }
        .jb-subnav-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 1 1 0;
            min-width: 0;
            gap: 0.45rem;
            padding: 0.55rem 0.85rem;
            font-size: 0.84rem;
            font-weight: 600;
            font-family: var(--font-ui);
            line-height: 1.2;
            color: var(--text-muted);
            background: transparent;
            border: none;
            border-radius: 8px;
            box-shadow: none;
            cursor: pointer;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            text-decoration: none;
            appearance: none;
            -webkit-appearance: none;
            transition: background .18s ease, color .18s ease, box-shadow .18s ease;
        }
        .jb-subnav-btn:hover {
            color: var(--ink);
            background: rgba(255, 255, 255, 0.6);
        }
        .jb-subnav-btn:focus-visible,
        .jb-subnav-btn:focus-within {
            outline: 2px solid var(--signal);
            outline-offset: 2px;
        }
        .jb-subnav-btn.active,
        .jb-subnav-btn.is-active {
            color: var(--signal);
            background: #ffffff;
            box-shadow: 0 2px 6px rgba(16, 42, 67, 0.08);
        }
        .jb-subnav-icon,
        .jb-subnav-btn > svg {
            display: inline-flex;
            width: 15px;
            height: 15px;
            flex: 0 0 15px;
            color: inherit;
        }
        .jb-subnav-icon svg {
            width: 15px;
            height: 15px;
        }
        @media (max-width: 900px) {
            .mode-tabs-shell { overflow: hidden; }
            .mode-tabs { padding-right: 2.6rem; }
            .mode-tab { flex: 0 0 min(13rem, 72vw); }
            .jb-subnav-btn {
                flex: 1 1 0;
                min-width: min(8.5rem, 42vw);
            }
            .mode-tabs-hint {
                position: absolute;
                z-index: 2;
                right: .38rem;
                top: .38rem;
                bottom: .56rem;
                display: flex;
                align-items: center;
                padding-left: 1.4rem;
                color: #486581;
                font-size: .65rem;
                font-weight: 800;
                pointer-events: none;
                background: linear-gradient(90deg,rgba(245,248,250,0),#F5F8FA 42%);
            }
        }
        @media (prefers-reduced-motion: reduce) { .mode-tab { transition: none; } }

        .modal-close {
            background: none;
            border: none;
            font-size: 1.6rem;
            line-height: 1;
            cursor: pointer;
            color: var(--text-muted);
            padding: 0.15rem 0.4rem;
            border-radius: 6px;
            flex-shrink: 0;
        }
        .modal-close:hover {
            color: var(--ink);
            background: rgba(16, 42, 67, 0.06);
        }

        /* Overlay modal: class (bukan display:flex inline) agar Alpine x-show tidak merusak centering */
        .modal-overlay {
            position: fixed;
            inset: 0;
            width: 100vw;
            height: 100vh;
            max-width: 100%;
            box-sizing: border-box;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
            background: rgba(15, 23, 42, 0.65);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 10030;
            overflow-y: auto;
        }
        .modal-overlay > .card {
            margin: auto;
            width: 100%;
            max-height: min(92vh, 900px);
            overflow-y: auto;
            flex-shrink: 0;
        }
        [x-cloak] { display: none !important; }

        .card-title {
            font-family: var(--font-brand);
            font-size: 1.35rem;
            font-weight: 600;
            color: var(--ink);
            letter-spacing: -0.02em;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            padding: 0.6rem 1.15rem;
            border-radius: var(--radius);
            font-family: var(--font-ui);
            font-weight: 700;
            font-size: 0.88rem;
            cursor: pointer;
            border: 1px solid transparent;
            text-decoration: none;
            transition: background 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
            box-shadow: none;
            line-height: 1.2;
        }

        .btn:disabled { opacity: 0.55; cursor: not-allowed; }
        .btn:active:not(:disabled) { transform: translateY(1px); }

        /* Semantik warna aksi (seragam semua laman)
           primary   = Simpan / Tambah / Terbitkan / CTA utama
           secondary = Edit / Sunting / aksi sekunder
           ghost     = Batal / Tutup / Reset lembut
           success   = Setujui / status positif
           warning   = Tolak / peringatan
           danger    = Hapus                                      */
        .btn-primary { background: var(--ink); color: #fff; }
        .btn-primary:hover:not(:disabled) { background: var(--ink-soft); }

        .btn-secondary { background: var(--signal); color: #fff; }
        .btn-secondary:hover:not(:disabled) { background: var(--signal-hover); }

        .btn-ghost {
            background: #fff;
            color: var(--ink);
            border-color: var(--border);
        }
        .btn-ghost:hover:not(:disabled) {
            background: rgba(16, 42, 67, 0.05);
            border-color: #B8C4CE;
        }

        .btn-success { background: var(--success); color: #fff; }
        .btn-success:hover:not(:disabled) { background: #0D9488; }

        .btn-warning { background: var(--warning); color: #fff; }
        .btn-warning:hover:not(:disabled) { background: #92400E; }

        .btn-danger { background: var(--danger); color: #fff; }
        .btn-danger:hover:not(:disabled) { background: #991B1B; }

        .btn-sm { padding: 0.35rem 0.7rem; font-size: 0.8rem; gap: 5px; }

        /* Pagination (Laravel links) — tanpa Tailwind */
        .pager {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem 1rem;
            margin-top: 0.25rem;
        }
        .pager-meta {
            font-size: 0.85rem;
            color: var(--text-muted);
            margin: 0;
        }
        .pager-meta strong { color: var(--ink); font-weight: 700; }
        .pagination {
            display: inline-flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.35rem;
            list-style: none;
            margin: 0;
            padding: 0;
        }
        .pagination .page-item { display: inline-flex; }
        .pagination .page-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 2.15rem;
            height: 2.15rem;
            padding: 0 0.65rem;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            background: #fff;
            color: var(--ink);
            font-size: 0.85rem;
            font-weight: 700;
            text-decoration: none;
            line-height: 1;
            transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
        }
        .pagination .page-item:not(.disabled):not(.active) .page-link:hover {
            background: rgba(16, 42, 67, 0.05);
            border-color: #B8C4CE;
        }
        .pagination .page-item.active .page-link {
            background: var(--ink);
            border-color: var(--ink);
            color: #fff;
            cursor: default;
        }
        .pagination .page-item.disabled .page-link {
            color: var(--text-muted);
            background: #F8FAFC;
            cursor: not-allowed;
            opacity: 0.85;
        }
        @media (max-width: 640px) {
            .pager { justify-content: center; }
            .pager-meta { width: 100%; text-align: center; }
            .pagination { justify-content: center; }
        }

        .btn-edit { background: var(--signal); color: #fff; }
        .btn-edit:hover:not(:disabled) { background: var(--signal-hover); }
        .btn-cancel { background: #fff; color: var(--ink); border-color: var(--border); }
        .btn-cancel:hover:not(:disabled) { background: rgba(16, 42, 67, 0.05); border-color: #B8C4CE; }
        .btn-delete { background: var(--danger); color: #fff; }
        .btn-delete:hover:not(:disabled) { background: #991B1B; }

        .form-group { margin-bottom: 1.1rem; }

        .form-label {
            display: block;
            font-weight: 700;
            font-size: 0.78rem;
            margin-bottom: 0.4rem;
            color: var(--ink-soft);
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }

        /* Tanda wajib diisi (*) — otomatis dari atribut required */
        .form-group:has(input[required]:not([disabled]):not([type="checkbox"]):not([type="hidden"])) > .form-label::after,
        .form-group:has(select[required]:not([disabled])) > .form-label::after,
        .form-group:has(textarea[required]:not([disabled])) > .form-label::after,
        .form-group:has(.pass-wrap input[required]:not([disabled])) > .form-label::after {
            content: ' *';
            color: #DC2626;
            font-weight: 800;
        }

        .form-label .req {
            color: #DC2626;
            font-weight: 800;
        }

        .form-hint-required {
            font-size: 0.78rem;
            color: var(--text-muted);
            margin: 0 0 0.85rem;
        }
        .form-hint-required .req { color: #DC2626; font-weight: 800; }

        .pass-wrap { position: relative; }
        .pass-wrap .form-control { padding-right: 2.75rem; }
        .pass-wrap input::-ms-reveal,
        .pass-wrap input::-ms-clear,
        .pass-wrap input::-webkit-credentials-auto-fill-button,
        .pass-wrap input::-webkit-strong-password-auto-fill-button {
            display: none !important;
            visibility: hidden;
            pointer-events: none;
        }
        .pass-toggle {
            position: absolute;
            right: 0.3rem;
            top: 50%;
            transform: translateY(-50%);
            z-index: 2;
            box-sizing: border-box;
            width: 2.25rem;
            height: 2.25rem;
            margin: 0;
            border: 0;
            background: transparent;
            color: var(--text-muted, #64748b);
            cursor: pointer;
            padding: 0;
            border-radius: 6px;
            display: inline-grid;
            place-items: center;
            line-height: 0;
            overflow: visible;
        }
        .pass-toggle:hover { color: var(--ink, #102a43); background: rgba(16,42,67,.06); }
        .pass-toggle-icon {
            grid-area: 1 / 1;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 0;
            pointer-events: none;
        }
        .pass-toggle-icon svg {
            display: block;
            width: 1.25rem;
            height: 1.25rem;
            overflow: visible;
        }
        /* Default: mata terbuka (tampilkan). Saat .is-shown: mata dicoret (sembunyikan). */
        .pass-toggle-icon--hide { visibility: hidden; opacity: 0; }
        .pass-toggle.is-shown .pass-toggle-icon--show { visibility: hidden; opacity: 0; }
        .pass-toggle.is-shown .pass-toggle-icon--hide { visibility: visible; opacity: 1; }

        .form-control {
            width: 100%;
            padding: 0.7rem 0.9rem;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            font-family: var(--font-ui);
            font-size: 0.95rem;
            outline: none;
            transition: border-color 0.15s ease, box-shadow 0.15s ease;
            background: #ffffff;
            color: var(--text-main);
        }

        .form-control:focus {
            border-color: var(--signal);
            box-shadow: 0 0 0 3px rgba(11, 110, 153, 0.15);
        }

        .table-responsive {
            width: 100%;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            border-radius: var(--radius);
            border: 1px solid var(--border);
        }

        .table {
            width: 100%;
            border-collapse: collapse;
            text-align: left;
            font-size: 0.92rem;
            background: white;
        }

        .table th {
            background: #F5F7FA;
            padding: 0.85rem 1rem;
            font-weight: 700;
            color: var(--ink-soft);
            text-transform: uppercase;
            font-size: 0.72rem;
            letter-spacing: 0.05em;
            border-bottom: 1px solid var(--border);
        }

        .table th.table-sort {
            cursor: pointer;
            user-select: none;
            white-space: nowrap;
            transition: color 0.15s ease, background 0.15s ease;
        }
        .table th.table-sort:hover,
        .rekap-table th.table-sort:hover {
            color: var(--signal);
            background: #EEF2F6;
        }
        .table th.table-sort .table-sort-ind,
        .rekap-table th.table-sort .table-sort-ind {
            display: inline-block;
            margin-left: 0.35rem;
            font-size: 0.65rem;
            opacity: 0.35;
            vertical-align: middle;
        }
        .table th.table-sort.is-sorted .table-sort-ind,
        .rekap-table th.table-sort.is-sorted .table-sort-ind {
            opacity: 1;
            color: var(--signal);
        }

        .rekap-table th.table-sort {
            cursor: pointer;
            user-select: none;
        }

        .table td {
            padding: 0.85rem 1rem;
            border-bottom: 1px solid var(--border);
            vertical-align: middle;
        }

        .table tbody tr:hover { background-color: #F8FAFC; }

        .table-scroll { max-height: var(--table-scroll-max, 40rem); overflow-y: auto; }
        .table-scroll thead th { position: sticky; top: 0; z-index: 2; box-shadow: inset 0 -1px 0 var(--border); }

        @media (max-width: 760px) {
            .table-responsive:has(.responsive-cards) { border: 0; overflow: visible; }
            .responsive-cards thead { display: none; }
            .responsive-cards,
            .responsive-cards tbody { display: block; background: transparent; }
            .responsive-cards tbody tr {
                display: block;
                margin-bottom: .8rem;
                padding: .35rem .85rem;
                border: 1px solid var(--border);
                border-radius: 12px;
                background: var(--surface);
                box-shadow: 0 1px 2px rgba(16, 42, 67, .05);
            }
            .responsive-cards tbody td {
                display: grid;
                grid-template-columns: minmax(6.5rem, 34%) minmax(0, 1fr);
                gap: .75rem;
                align-items: start;
                padding: .65rem 0;
                border-bottom: 1px solid rgba(16, 42, 67, .08);
                text-align: left !important;
                overflow-wrap: anywhere;
            }
            .responsive-cards tbody td::before {
                content: attr(data-label);
                color: var(--text-muted);
                font-size: .69rem;
                font-weight: 800;
                letter-spacing: .04em;
                text-transform: uppercase;
            }
            .responsive-cards tbody td:last-child { border-bottom: 0; }
            .responsive-cards tbody td[colspan] { display: block; text-align: center !important; }
            .responsive-cards tbody td[colspan]::before { display: none; }
        }

        .badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 0.28rem 0.55rem;
            border-radius: 4px;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.02em;
        }

        .badge-primary { background: #E0F2FE; color: #075985; }
        .badge-secondary { background: #E8EEF3; color: #334E68; }
        .badge-success { background: #CCFBF1; color: #115E59; }
        .badge-warning { background: #FEF3C7; color: #92400E; }
        .badge-danger { background: #FEE2E2; color: #991B1B; }

        footer {
            background: var(--ink);
            color: rgba(255,255,255,0.72);
            /* Inset kiri=kanan agar teks/help tidak bentrok FAB scroll-up di kanan */
            padding: 0.55rem clamp(1.35rem, 3.5vw, 3.75rem);
            margin-top: auto;
            border-top: 2px solid var(--accent);
        }

        .site-footer-inner {
            width: 100%;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .site-footer-main {
            flex: 1;
            min-width: 0;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.25rem 1rem;
            align-items: center;
        }

        .site-footer-col {
            display: flex;
            flex-direction: column;
            gap: 0.08rem;
            min-width: 0;
        }

        .site-footer-col--right {
            text-align: right;
        }

        .site-footer-line-strong {
            font-family: var(--font-brand);
            font-weight: 700;
            font-size: 0.88rem;
            color: #fff;
            letter-spacing: -0.02em;
            line-height: 1.3;
        }

        .site-footer-line-muted {
            font-size: 0.72rem;
            font-weight: 400;
            color: rgba(255,255,255,0.55);
            line-height: 1.35;
        }

        .site-footer-dev {
            display: inline-flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.3rem;
        }

        .site-footer-col--right .site-footer-dev {
            justify-content: flex-end;
        }

        .site-footer-dev-badge {
            display: inline-flex;
            align-items: center;
            padding: 0.05rem 0.4rem;
            border-radius: 999px;
            background: rgba(255,255,255,0.12);
            border: 1px solid rgba(255,255,255,0.22);
            color: #fff;
            font-size: 0.7rem;
            font-weight: 700;
            letter-spacing: 0.02em;
        }

        .site-footer-help,
        .pwa-footer-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            align-self: center;
            width: 2.35rem;
            height: 2.35rem;
            border-radius: 999px;
            border: 2px solid rgba(255,255,255,0.7);
            background: rgba(255,255,255,0.08);
            color: #fff;
            text-decoration: none;
            flex-shrink: 0;
            font-family: var(--font-brand), Georgia, serif;
            font-size: 1.35rem;
            font-weight: 700;
            line-height: 1;
            transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
        }
        .pwa-footer-icon {
            appearance: none;
            -webkit-appearance: none;
            font: inherit;
            cursor: pointer;
            padding: 0;
            position: relative;
            z-index: 2;
        }
        .pwa-footer-icon svg {
            width: 1.15rem;
            height: 1.15rem;
            display: block;
        }
        .site-footer-help:hover,
        .site-footer-help:focus-visible,
        .pwa-footer-icon:hover,
        .pwa-footer-icon:focus-visible {
            background: rgba(255,255,255,0.18);
            border-color: #fff;
            color: #fff;
            outline: none;
            transform: scale(1.04);
        }

        .app-tip {
            position: relative;
        }
        .app-tip::after {
            content: attr(data-tooltip);
            position: absolute;
            z-index: 260;
            bottom: calc(100% + 0.45rem);
            left: 50%;
            transform: translateX(-50%) translateY(4px);
            padding: 0.32rem 0.55rem;
            border-radius: 6px;
            background: #fff;
            color: var(--ink);
            font-family: var(--font-ui);
            font-size: 0.72rem;
            font-weight: 700;
            line-height: 1.3;
            letter-spacing: 0;
            white-space: nowrap;
            box-shadow: 0 8px 20px rgba(16, 42, 67, 0.22);
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
        }
        .app-tip:hover::after,
        .app-tip:focus-visible::after {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
        }
        .app-tip--start::after {
            left: 0;
            right: auto;
            transform: translateY(4px);
        }
        .app-tip--start:hover::after,
        .app-tip--start:focus-visible::after {
            transform: translateY(0);
        }
        .app-tip[hidden]::after,
        .app-tip[aria-hidden="true"]::after {
            display: none;
        }

        .page-fab-dock {
            position: fixed;
            right: 1rem;
            bottom: 4.25rem;
            z-index: 90;
            display: flex;
            flex-direction: column-reverse;
            align-items: flex-end;
            gap: 0.5rem;
            pointer-events: none;
            max-width: min(22rem, calc(100vw - 2rem));
        }
        .page-fab-dock > .scroll-top-fab,
        .page-fab-dock > .page-action-fab {
            pointer-events: auto;
        }
        .scroll-top-fab {
            position: static;
            flex-shrink: 0;
            width: 2.55rem;
            height: 2.55rem;
            border: 1.5px solid transparent;
            border-radius: 999px;
            background: var(--signal);
            color: #fff;
            box-shadow: 0 8px 22px rgba(11, 110, 153, 0.28);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transform: translateY(10px);
            transition: opacity .2s ease, transform .2s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
        }
        .scroll-top-fab.is-visible {
            opacity: 1;
            pointer-events: auto;
            transform: none;
        }
        .scroll-top-fab:hover,
        .scroll-top-fab:focus-visible {
            background: var(--signal-hover);
            outline: none;
        }
        .scroll-top-fab.is-on-dark {
            background: #fff;
            color: var(--ink);
            border-color: rgba(255,255,255,0.55);
            box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
        }
        .scroll-top-fab.is-on-dark:hover,
        .scroll-top-fab.is-on-dark:focus-visible {
            background: #f1f5f9;
            color: var(--ink);
        }
        .page-action-fab {
            display: none;
            max-width: 100%;
            white-space: nowrap;
            overflow: visible;
            text-overflow: ellipsis;
            box-shadow: 0 8px 22px rgba(16, 42, 67, 0.22);
            padding: 0.65rem 1.1rem;
            font-size: 0.88rem;
        }
        .page-action-fab.is-visible {
            display: inline-flex;
        }
        .page-action-fab.is-on-dark {
            box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
        }

        #konten {
            scroll-margin-top: 4.75rem;
        }

        @media (max-width: 720px) {
            footer { padding: 0.55rem 0.85rem 0.55rem 0.85rem; }
            .site-footer-main { grid-template-columns: 1fr; gap: 0.4rem; }
            .site-footer-col--right { text-align: left; }
            .site-footer-col--right .site-footer-dev { justify-content: flex-start; }
            .site-footer-help,
            .pwa-footer-icon { width: 2.2rem; height: 2.2rem; font-size: 1.25rem; align-self: center; }
            .pwa-footer-icon svg { width: 1.05rem; height: 1.05rem; }
            .page-fab-dock { right: 0.85rem; bottom: 4.1rem; max-width: calc(100vw - 1.7rem); }
        }

        .nav-hamburger {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0.35rem;
            border-radius: 6px;
            color: white;
            flex-shrink: 0;
        }
        .nav-hamburger:hover { background: rgba(255,255,255,0.1); }

        .nav-mobile-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(16,42,67,0.55);
            z-index: 150;
        }

        .nav-mobile-menu {
            position: fixed;
            top: 0; right: -100%;
            width: min(88vw, 340px);
            height: 100%;
            background: var(--ink);
            z-index: 200;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding: 1.35rem 1.1rem;
            transition: right 0.28s ease;
            border-left: 1px solid rgba(255,255,255,0.08);
            pointer-events: none;
        }
        .nav-mobile-menu.open {
            right: 0;
            pointer-events: auto;
        }

        .nav-mobile-close {
            display: flex;
            justify-content: flex-end;
            margin-bottom: 1rem;
        }
        .nav-mobile-close button {
            background: rgba(255,255,255,0.1);
            border: none; color: white; cursor: pointer;
            width: 36px; height: 36px; border-radius: 6px;
            font-size: 1.3rem; display: flex; align-items: center; justify-content: center;
        }

        .nav-mobile-section { margin-bottom: 0.4rem; }
        .nav-mobile-section-title {
            font-size: 0.68rem;
            font-weight: 700;
            color: rgba(255,255,255,0.4);
            text-transform: uppercase;
            letter-spacing: 0.08em;
            padding: 0.7rem 0.45rem 0.25rem;
            border-top: 1px solid rgba(255,255,255,0.08);
            margin-top: 0.35rem;
        }
        .nav-mobile-section:first-child .nav-mobile-section-title {
            border-top: none; margin-top: 0;
        }
        .nav-mobile-link {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 0.65rem 0.75rem;
            color: rgba(255,255,255,0.88);
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 600;
            border-radius: 6px;
            transition: background 0.15s;
        }
        .nav-mobile-link:hover, .nav-mobile-link.active {
            background: rgba(255,255,255,0.1);
            color: white;
        }

        /* Utility for page-level editorial headers */
        .page-kicker {
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--accent);
            margin-bottom: 0.35rem;
        }

        .font-brand { font-family: var(--font-brand); }

        @media (min-width: 1025px) {
            .nav-hamburger { display: none !important; }
        }

        @media (max-width: 1024px) {
            .nav-links { display: none !important; }
            .nav-hamburger { display: flex !important; }
            .navbar { padding: 0.65rem 1.1rem; }
        }

        @media (max-width: 768px) {
            .container { margin: 1rem auto; padding: 0 0.85rem; }
            html.pwa-desktop-viewport .container {
                /* Saat PWA memaksa width=1280, pakai padding desktop agar tidak “sempit semu” */
                margin: 1.25rem auto 2rem;
                padding: 0 1.25rem;
            }
            .card { padding: 1.15rem; }
            .card-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.75rem;
            }
            .card-title { font-size: 1.2rem; }
            .table th, .table td { padding: 0.65rem 0.75rem; font-size: 0.82rem; }
            [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
            [style*="grid-template-columns:1fr 1fr 1fr"] { grid-template-columns: 1fr !important; }
            [style*="grid-template-columns:1fr 1.4fr"] { grid-template-columns: 1fr !important; }
            .settings-slideshow-grid { grid-template-columns: 1fr 1fr !important; }
            .settings-brand-grid { grid-template-columns: 1fr !important; }
            .settings-rollover-card { flex-wrap: wrap; }
        }

        /* Turbo Drive progress */
        .turbo-progress-bar {
            background: linear-gradient(90deg, var(--signal), #38bdf8);
            height: 3px;
        }
        html.is-navigating body { cursor: progress; }

        /* PWA install banner — kiri bawah, di atas footer */
        .pwa-install {
            position: fixed;
            right: 1rem;
            right: auto;
            bottom: 4.5rem;
            z-index: 240;
            display: none;
            gap: 0.75rem;
            align-items: center;
            justify-content: space-between;
            padding: 0.85rem 1rem;
            border-radius: 12px;
            background: var(--ink);
            color: #fff;
            box-shadow: 0 10px 30px rgba(16, 42, 67, 0.28);
            border: 1px solid rgba(255,255,255,0.08);
            max-width: min(22rem, calc(100vw - 2rem));
            margin: 0;
        }
        .pwa-install.is-open {
            display: flex;
        }
        .pwa-install[hidden] {
            display: none !important;
        }
        .pwa-install-actions .pwa-install-go[hidden] {
            display: none;
        }
        .pwa-install p {
            margin: 0;
            font-size: 0.86rem;
            line-height: 1.35;
            font-weight: 600;
        }
        .pwa-install small {
            display: block;
            margin-top: 0.15rem;
            font-size: 0.72rem;
            font-weight: 500;
            color: rgba(255,255,255,0.65);
        }
        .pwa-install-actions {
            display: flex;
            gap: 0.4rem;
            flex-shrink: 0;
        }
        .pwa-install-actions button {
            border: 0;
            border-radius: 8px;
            padding: 0.45rem 0.7rem;
            font-weight: 700;
            font-size: 0.78rem;
            cursor: pointer;
            font-family: inherit;
        }
        .pwa-install-actions .pwa-install-go {
            background: #0B6E99;
            color: #fff;
        }
        .pwa-install-actions .pwa-install-no {
            background: rgba(255,255,255,0.12);
            color: #fff;
        }
        @media (min-width: 640px) {
            .pwa-install { left: 1.25rem; right: auto; bottom: 4.75rem; }
        }

        /* Global Print Rules */
        @media print {
            *, *::before, *::after {
                -webkit-print-color-adjust: exact !important;
                print-color-adjust: exact !important;
            }
            body {
                background: #fff !important;
                color: #000 !important;
                font-size: 11pt !important;
                padding: 0 !important;
                margin: 0 !important;
            }
            .navbar, .bottom-nav, .nav-mobile-drawer, .nav-mobile-overlay,
            .pwa-install, .turbo-progress-bar, .flash-message,
            .admin-hub, .app-confirm-overlay, .modal-overlay,
            .btn, button, .no-print, form.page-toolbar, form[data-auto-filter],
            .page-actions, .site-footer, footer {
                display: none !important;
            }
            .container {
                max-width: 100% !important;
                width: 100% !important;
                margin: 0 !important;
                padding: 0 !important;
            }
            .card {
                border: none !important;
                box-shadow: none !important;
                padding: 0 !important;
                margin: 0 0 1rem 0 !important;
                background: transparent !important;
            }
            .table-responsive {
                overflow: visible !important;
                border: none !important;
                width: 100% !important;
            }
            table {
                width: 100% !important;
                page-break-inside: auto;
            }
            tr {
                page-break-inside: avoid !important;
                break-inside: avoid !important;
            }
            thead {
                display: table-header-group !important;
            }
            tfoot {
                display: table-footer-group !important;
            }
        }
