    /* ===== Layout admin (ringkas, palet web-jaringan) ===== */
    body { background: var(--bg-soft); }
    .hidden { display: none !important; }
    .loading-overlay {
      position: fixed; inset: 0; z-index: 2000;
      display: flex; align-items: center; justify-content: center;
      background: rgba(35, 20, 60, 0.45);
      backdrop-filter: blur(4px);
    }
    .loading-overlay[hidden] { display: none; }
    .loading-card {
      display: flex; align-items: center; gap: 0.8rem;
      background: #fff; border-radius: 14px; padding: 1.1rem 1.5rem;
      font-weight: 700; color: var(--primary-dark);
      box-shadow: var(--shadow-lg);
    }
    .loading-spinner {
      width: 26px; height: 26px; border-radius: 50%;
      border: 3px solid var(--brand-200); border-top-color: var(--primary);
      animation: spin 0.8s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }
    /* Login — split panel modern */
    #loginView {
      min-height: 100vh; margin-top: 0;
      display: flex; align-items: center; justify-content: center;
      padding: 2.5rem 1rem; position: relative; overflow: hidden;
      box-sizing: border-box;
      background:
        radial-gradient(600px 320px at 12% 8%, rgba(168,85,247,0.18), transparent 60%),
        radial-gradient(700px 380px at 88% 90%, rgba(76,29,149,0.14), transparent 60%),
        var(--bg-soft);
    }
    #loginView.hidden { display: none; }
    .login-shell {
      width: 100%; max-width: 920px; display: grid; grid-template-columns: 1fr 1fr;
      background: #fff; border: 1px solid var(--border); border-radius: 24px;
      box-shadow: var(--shadow-lg); overflow: hidden; position: relative; z-index: 1;
    }
    .login-brand {
      background: var(--gradient); color: #fff;
      padding: 2.6rem 2.3rem; display: flex; flex-direction: column; justify-content: center;
      position: relative; overflow: hidden;
    }
    .login-brand::before, .login-brand::after {
      content: ""; position: absolute; border-radius: 50%;
      background: rgba(255,255,255,0.12);
    }
    .login-brand::before { width: 280px; height: 280px; right: -90px; top: -90px; }
    .login-brand::after { width: 200px; height: 200px; left: -60px; bottom: -70px; background: rgba(255,255,255,0.08); }
    .brand-badge {
      display: inline-flex; align-items: center; gap: 0.6rem;
      background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.25);
      border-radius: 999px; padding: 0.4rem 0.9rem 0.4rem 0.5rem;
      font-size: 0.75rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
      width: fit-content; position: relative; z-index: 1;
    }
    .brand-badge .shield {
      width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--primary-dark);
      display: flex; align-items: center; justify-content: center;
    }
    .brand-badge .shield svg { width: 16px; height: 16px; }
    .login-brand h1 { font-size: 1.9rem; line-height: 1.2; margin: 1.1rem 0 0.5rem; position: relative; z-index: 1; }
    .login-brand > p { color: rgba(255,255,255,0.88); font-size: 0.93rem; max-width: 34ch; position: relative; z-index: 1; }
    .brand-features { list-style: none; margin: 1.4rem 0 0; display: flex; flex-direction: column; gap: 0.7rem; position: relative; z-index: 1; }
    .brand-features li { display: flex; align-items: center; gap: 0.7rem; font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.95); }
    .brand-features .check {
      width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
      background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.25);
      display: flex; align-items: center; justify-content: center;
    }
    .brand-features .check svg { width: 14px; height: 14px; }
    .brand-foot { margin-top: 1.8rem; font-size: 0.78rem; color: rgba(255,255,255,0.75); position: relative; z-index: 1; }
    .login-side { padding: 2.4rem 2.2rem; display: flex; flex-direction: column; justify-content: center; }
    .login-card {
      width: 100%; max-width: none; background: transparent;
      border: none; border-radius: 0; box-shadow: none; padding: 0; text-align: left;
      position: relative; overflow: visible;
    }
    .login-card::before { display: none; }
    .login-card .eyebrow {
      font-size: 0.7rem; font-weight: 800; letter-spacing: 1.6px;
      text-transform: uppercase; color: var(--primary);
    }
    .login-card h1 { font-size: 1.45rem; margin: 0.4rem 0 0.3rem; letter-spacing: -0.02em; }
    .login-card .btn { font-weight: 500; }
    .login-card > p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.3rem; }
    .login-card input {
      width: 100%; padding: 0.8rem 1rem; margin-bottom: 0.8rem;
      border: 1.5px solid var(--border); border-radius: 999px; font-size: 1rem; outline: none;
      background: #fff; transition: border-color 0.2s, box-shadow 0.2s;
    }
    .login-card input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(109,40,217,0.14); }
    .float-field { position: relative; margin-bottom: 0.8rem; }
    .float-field input {
      width: 100%; padding: 0.7rem 3rem 0.7rem 1rem;
      border: 1.5px solid var(--border); border-radius: 999px; font-size: 0.95rem; line-height: 1.5; outline: none;
      background: #fff; text-align: left; vertical-align: middle;
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    /* Sembunyikan tombol reveal/clear bawaan browser (Edge/Chromium)
       agar tidak duplikat dengan tombol mata kustom. */
    .float-field input::-ms-reveal,
    .float-field input::-ms-clear { display: none; width: 0; height: 0; }
    .float-field input::-webkit-credentials-auto-fill-button,
    .float-field input::-webkit-caps-lock-indicator { display: none !important; }
    .float-field input::-webkit-search-cancel-button,
    .float-field input::-webkit-search-decoration,
    .float-field input::-webkit-clear-button { display: none; -webkit-appearance: none; }
    .float-field input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(109,40,217,0.14); }
    .float-field label {
      position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
      font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
      pointer-events: none; transition: top 0.22s cubic-bezier(0.33,1,0.68,1), transform 0.22s cubic-bezier(0.33,1,0.68,1), font-size 0.22s cubic-bezier(0.33,1,0.68,1), color 0.2s ease;
      background: transparent;
    }
    .float-field input:focus + label,
    .float-field input:not(:placeholder-shown) + label {
      top: 0; transform: translateY(-50%); font-size: 0.7rem; font-weight: 700;
      letter-spacing: 0.8px; text-transform: uppercase; color: var(--primary);
      background: #fff; padding: 0 0.45rem; line-height: 1.4; z-index: 1;
    }
    .password-wrap { position: relative; margin-bottom: 0.8rem; }
    .password-wrap input { margin-bottom: 0; }
    .pass-toggle {
      position: absolute; right: 6px; top: 6px; bottom: 6px; width: 40px;
      border: none; background: transparent; border-radius: 50%;
      padding: 0; cursor: pointer;
      color: var(--primary-dark); display: inline-flex; align-items: center; justify-content: center;
      transition: background 0.2s ease, transform 0.15s ease;
    }
    .pass-toggle:hover { background: var(--brand-100); }
    .pass-toggle:active { transform: scale(0.94); }
    .pass-toggle:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(109,40,217,0.3); }
    .pass-toggle .eye-stack {
      position: relative; width: 20px; height: 20px; flex-shrink: 0;
      display: inline-block;
    }
    .pass-toggle .eye-stack svg {
      position: absolute; inset: 0; width: 20px; height: 20px;
      transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.34,1.56,0.64,1);
      transform-origin: 50% 50%;
    }
    .pass-toggle .eye-open { opacity: 1; transform: scale(1) rotate(0deg); }
    .pass-toggle .eye-off { opacity: 0; transform: scale(0.6) rotate(-25deg); }
    .pass-toggle .eye-off line.slash {
      stroke-dasharray: 24; stroke-dashoffset: 24;
      transition: stroke-dashoffset 0.28s ease 0.05s;
    }
    .pass-toggle[aria-pressed="true"] .eye-open { opacity: 0; transform: scale(0.6) rotate(25deg); }
    .pass-toggle[aria-pressed="true"] .eye-off { opacity: 1; transform: scale(1) rotate(0deg); animation: eyePop 0.28s cubic-bezier(0.34,1.56,0.64,1); }
    .pass-toggle[aria-pressed="true"] .eye-off line.slash { stroke-dashoffset: 0; }
    .pass-toggle[aria-pressed="false"] .eye-open { animation: eyePop 0.28s cubic-bezier(0.34,1.56,0.64,1); }
    @keyframes eyePop {
      0% { transform: scale(0.6); }
      60% { transform: scale(1.12); }
      100% { transform: scale(1); }
    }
    .back-home svg { width: 17px; height: 17px; flex-shrink: 0; }
    @media (prefers-reduced-motion: reduce) {
      .pass-toggle, .pass-toggle .eye-stack svg, .pass-toggle .eye-off line.slash { transition: none !important; animation: none !important; }
      .float-field label { transition: none !important; }
    }
    /* (Button admin pindah ke css/style.css) */
    /* ===== Sistem ikon Lucide: ukuran konsisten + responsif ===== */
    /* Aturan svg yang sudah ada (nav, icon-btn, tab, dropdown, stat, toast)
       otomatis berlaku untuk svg hasil generate Lucide. Tambahan di bawah
       khusus button teks + pengaman ukuran ikon. */
    .btn svg.lucide { width: clamp(16px, 3.5vw, 19px); height: clamp(16px, 3.5vw, 19px); flex-shrink: 0; }
    svg.lucide { flex-shrink: 0; }
    .toast {
      position: absolute; z-index: 3; left: 0.75rem; bottom: calc(100% + 0.55rem);
      max-width: calc(100% - 1.5rem);
      display: none; align-items: flex-start; gap: 0.55rem;
      background: var(--danger-100); color: var(--danger-700); border: 1px solid #fecaca;
      border-radius: 12px; padding: 0.7rem 0.9rem; font-size: 0.85rem; font-weight: 600;
      margin: 0; text-align: left; animation: toastIn 0.22s ease;
    }
    .toast.show { display: flex; }
    .toast svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
    @keyframes toastIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
    .login-secure { display: flex; align-items: center; gap: 0.45rem; margin-top: 1rem; font-size: 0.76rem; color: var(--text-muted); }
    .login-secure svg { width: 15px; height: 15px; color: var(--success-600); }
    /* App layout */
    .admin-layout { display: flex; min-height: 100vh; padding-top: 0; }
    .admin-layout[hidden] { display: none; }
    .sidebar {
      width: 230px; flex-shrink: 0; background: #fff; border-right: 1px solid var(--border);
      padding: 1.2rem 0.9rem; display: flex; flex-direction: column; gap: 0.3rem;
      position: sticky; top: 0; height: 100vh;
    }
    .sidebar .brand { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
    .brand-icon {
      width: 38px; height: 38px; flex: none; border-radius: 11px;
      background: var(--gradient-soft); color: #fff;
      display: flex; align-items: center; justify-content: center;
      box-shadow: 0 4px 12px rgba(109,40,217,0.3);
    }
    .brand-icon svg { width: 20px; height: 20px; }
    .brand-text { display: flex; flex-direction: column; min-width: 0; }
    .sidebar .brand small { font-size: 0.7rem; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--primary); }
    .sidebar .brand h1 { font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .nav-button {
      display: flex; align-items: center; gap: 0.7rem; width: 100%;
      padding: 0.65rem 0.8rem; border: none; background: none; border-radius: 999px;
      font-size: 0.92rem; font-weight: 500; color: var(--text); cursor: pointer; text-align: left;
      transition: background 0.2s ease, color 0.2s ease;
    }
    .nav-button svg { width: 19px; height: 19px; flex-shrink: 0; }
    .nav-button:hover { background: var(--bg-soft); }
    .nav-button.active { background: var(--brand-100); color: var(--primary-dark); }
    .nav-button .nav-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .sidebar-topbar {
      display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
      padding: 0 0.4rem 1rem; border-bottom: 1px solid var(--border); margin-bottom: 0.8rem;
    }
    .sidebar-nav { display: grid; gap: 0.3rem; align-content: start; }
    .sidebar-collapse-btn, .sidebar-expand-btn, .menu-close-btn {
      display: none; width: 40px; height: 40px; flex: none;
      border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--primary-dark);
      align-items: center; justify-content: center; cursor: pointer;
      transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
    }
    .sidebar-collapse-btn:hover, .sidebar-expand-btn:hover, .menu-close-btn:hover { background: var(--bg-soft); }
    .sidebar-collapse-btn svg, .sidebar-expand-btn svg, .menu-close-btn svg { width: 22px; height: 22px; }
    /* Mode mini ala aij-xii: rel ikon 76px (desktop saja) */
    @media (min-width: 901px) {
      .sidebar { transition: width 0.25s ease, padding 0.25s ease; }
      .sidebar-collapse-btn { display: inline-flex; }
      .sidebar.mini { width: 76px; padding: 1.2rem 0.6rem; }
      .sidebar.mini .sidebar-topbar { justify-content: center; padding: 0 0 1rem; }
      .sidebar.mini .brand { display: none; }
      .sidebar.mini .sidebar-expand-btn { display: inline-flex; }
      .sidebar.mini .sidebar-collapse-btn { display: none; }
      .sidebar.mini .sidebar-nav { margin-top: 0; }
      .sidebar.mini .nav-button { justify-content: center; padding: 0.65rem 0; }
      .sidebar.mini .nav-label { display: none; }
    }
    @media (max-width: 900px) {
      .menu-close-btn { display: inline-flex; }
    }
    @media (prefers-reduced-motion: reduce) {
      .sidebar { transition: none !important; }
    }
    .main-area { flex: 1; min-width: 0; padding: 1.5rem; position: relative; }
    /* Header topbar: sticky (menetap saat scroll), latar blur, menempatkan
       judul halaman di kiri dan tombol Administrator di kanan. */
    .topbar {
      position: sticky; top: 0; z-index: 800;
      display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
      margin: -1.5rem -1.5rem 1.2rem; padding: 0.85rem 1.5rem;
      background: rgba(255,255,255,0.82);
      -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
    }
    .topbar .eyebrow { font-size: 0.72rem; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--primary); }
    .topbar h2 { font-size: 1.35rem; margin: 0; }
    .menu-toggle {
      display: none;
      width: 44px; height: 44px;
      align-items: center; justify-content: center;
      background: #fff; border: 1px solid var(--border); border-radius: 50%;
      cursor: pointer; color: var(--primary-dark);
      transition: background 0.2s ease, transform 0.15s ease;
    }
    .menu-toggle svg { width: 22px; height: 22px; }
    .menu-toggle .icon-tutup { display: none; }
    .menu-toggle[aria-expanded="true"] .icon-buka { display: none; }
    .menu-toggle[aria-expanded="true"] .icon-tutup { display: block; }
    .sidebar-backdrop {
      position: fixed; inset: 0; z-index: 899;
      background: rgba(35, 20, 60, 0.5);
      opacity: 0; visibility: hidden; transition: opacity 0.25s;
    }
    .sidebar-backdrop.open { opacity: 1; visibility: visible; }
    .admin-menu { position: relative; }
    .admin-menu-btn {
      display: flex; align-items: center; gap: 0.6rem; background: #fff;
      border: 1px solid var(--border); border-radius: 999px; padding: 0.35rem 0.4rem 0.35rem 0.9rem;
      font-weight: 500; cursor: pointer;
    }
    .admin-menu-btn .avatar {
      width: 32px; height: 32px; border-radius: 50%;
      background: var(--gradient-soft); color: #fff;
      display: flex; align-items: center; justify-content: center; font-size: 0.8rem;
    }
    .admin-dropdown {
      position: absolute; right: 0; top: calc(100% + 8px); z-index: 500;
      background: #fff; border: 1px solid var(--border); border-radius: 12px;
      box-shadow: var(--shadow-lg); min-width: 210px; padding: 0.4rem;
    }
    .admin-dropdown[hidden] { display: none; }
    .dropdown-item {
      display: flex; align-items: center; gap: 0.6rem; width: 100%;
      padding: 0.6rem 0.8rem; border-radius: 999px; font-size: 0.88rem; font-weight: 500;
      color: var(--text); text-decoration: none; background: none; border: none; cursor: pointer;
      transition: background 0.2s ease;
    }
    .dropdown-item:hover { background: var(--bg-soft); }
    .dropdown-item.danger { color: var(--danger-600); }
    .dropdown-item svg { width: 17px; height: 17px; }
    .view { display: none; }
    .view.active { display: block; }
    .content-card {
      background: #fff; border: 1px solid var(--border); border-radius: 16px;
      box-shadow: var(--shadow); padding: 1.4rem;
    }
    .stats-grid {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
      gap: 0.9rem; margin-bottom: 1rem;
    }
    .overview-status-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.8rem;
      margin-top: 0.8rem;
    }
    .overview-status-grid .content-card { min-width: 0; }
    .overview-status-card {
      position: relative;
      overflow: hidden;
      border-left: 4px solid var(--status-accent);
      background: linear-gradient(135deg, var(--status-soft), #fff 68%);
      transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
    }
    .overview-status-card::after {
      content: "";
      position: absolute;
      width: 150px;
      height: 150px;
      right: -75px;
      bottom: -90px;
      border-radius: 50%;
      background: var(--status-glow);
      pointer-events: none;
      transition: transform 0.25s ease;
    }
    .overview-status-card:hover {
      transform: translateY(-3px);
      box-shadow: var(--shadow-lg);
      border-color: var(--status-accent);
    }
    .overview-status-card:hover::after { transform: scale(1.35); }
    .overview-status-card > * { position: relative; z-index: 1; }
    .overview-status-card.passed {
      --status-accent: #15803d;
      --status-soft: #ecfdf5;
      --status-glow: rgba(34, 197, 94, 0.18);
    }
    .overview-status-card.remedial-card {
      --status-accent: var(--danger-600);
      --status-soft: #fff1f2;
      --status-glow: rgba(239, 68, 68, 0.16);
    }
    .status-details { margin-top: 1rem; border-top: 1px solid rgba(148, 163, 184, 0.25); padding-top: 0.7rem; }
    .status-details summary { cursor: pointer; color: var(--primary-dark); font-size: 0.78rem; font-weight: 800; }
    .status-details summary::marker { color: var(--status-accent); }
    .status-name-list { display: grid; gap: 0.35rem; margin-top: 0.65rem; max-height: 180px; overflow-y: auto; }
    .status-name-item { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.45rem 0.55rem; border-radius: 8px; background: rgba(255,255,255,0.72); font-size: 0.8rem; }
    .status-name-item .status-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
    .status-name-item small { flex-shrink: 0; color: var(--text-muted); }
    .stat-card {
      --accent: var(--primary); --accent-bg: var(--brand-100);
      position: relative; overflow: hidden;
      background: #fff; border: 1px solid var(--border); border-radius: 16px;
      padding: 1rem 1.05rem; box-shadow: var(--shadow-sm);
      display: flex; align-items: center; gap: 0.8rem;
      transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
    }
    .stat-card::before {
      content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
      background: var(--accent); opacity: 0.9;
    }
    .stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-300); }
    .stat-card:hover .stat-icon svg { transform: scale(1.12) rotate(-4deg); }
    .stat-icon {
      width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0;
      background: var(--accent-bg); color: var(--accent);
      display: flex; align-items: center; justify-content: center;
    }
    .stat-icon svg { width: 22px; height: 22px; transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1); }
    .stat-text { display: flex; flex-direction: column; min-width: 0; }
    .stat-label { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-muted); }
    .stat-value { font-size: 1.65rem; font-weight: 800; color: var(--primary-dark); line-height: 1.15; font-variant-numeric: tabular-nums; }
    .stat-total { --accent: #6d28d9; --accent-bg: #ede7ff; }
    .stat-wait { --accent: #64748b; --accent-bg: #f1f5f9; }
    .stat-progress { --accent: #d97706; --accent-bg: #fef3c7; }
    .stat-done { --accent: #15803d; --accent-bg: #d1fae5; }
    .stat-avg { --accent: #1d4ed8; --accent-bg: #dbeafe; }
    .stat-viol { --accent: #dc2626; --accent-bg: #fee2e2; }
    @media (max-width: 560px) {
      .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
      .overview-status-grid { grid-template-columns: 1fr; }
    }
    @media (prefers-reduced-motion: reduce) {
      .stat-card, .podium-item { transition: none !important; }
      .stat-card:hover, .podium-item:hover { transform: none !important; }
      .stat-card:hover .stat-icon svg { transform: none !important; }
    }
    .section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
    .section-heading h3 { font-size: 1.05rem; }
    .section-heading p { font-size: 0.85rem; color: var(--text-muted); }
    .button-row { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
    .form-grid { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 0.6rem; align-items: end; }
    .form-grid .field { display: flex; flex-direction: column; gap: 0.25rem; }
    .form-grid label { font-size: 0.78rem; font-weight: 700; }
    .form-grid input:focus, .search-box input:focus { border-color: var(--primary); }
    .table-toolbar { display: flex; gap: 0.7rem; margin: 1.1rem 0 0.8rem; flex-wrap: wrap; align-items: center; }
    .search-box { position: relative; flex: 1; min-width: 200px; }
    .search-box input { width: 100%; padding-left: 2.3rem; }
    .search-box .search-icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--text-muted); }
    .filter-label { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); margin-right: 0.4rem; }
    .table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
    table { width: 100%; border-collapse: collapse; font-size: 0.87rem; }
    th, td { padding: 0.65rem 0.8rem; text-align: left; border-bottom: 1px solid var(--border); }
    th { background: var(--bg-soft); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); }
    tr:last-child td { border-bottom: none; }
    .status { display: inline-block; padding: 0.2rem 0.7rem; border-radius: 999px; font-size: 0.75rem; font-weight: 500; }
    .status.pending { background: #f1f5f9; color: #64748b; }
    .status.progress { background: #fef3c7; color: #92400e; }
    .status.done { background: #d1fae5; color: #15803d; }
    .status.blocked { background: var(--danger-100); color: var(--danger-700); }
    /* (Icon button pindah ke css/style.css) */
    .pagination { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin-top: 0.9rem; }
    .pagination-group { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
    .pagination-info { font-size: 0.82rem; color: var(--text-muted); }
    /* (Size button pindah ke css/style.css) */
    .recap-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.4rem; }
    .recap-chip { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; padding: 0.35rem 0.85rem; font-size: 0.82rem; font-weight: 600; }
    .recap-chip strong { color: var(--primary-dark); }
    .recap-chip.remedial strong { color: #92400e; }
    .violation-list { display: flex; flex-direction: column; gap: 0.6rem; }
    .violation-item { border: 1px solid var(--border); border-left: 4px solid var(--danger-600); border-radius: 10px; padding: 0.7rem 1rem; font-size: 0.87rem; }
    .violation-item span { color: var(--text-muted); font-size: 0.78rem; }
    .key-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.5rem; }
    .key-item { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 0.5rem 0.7rem; font-size: 0.85rem; }
    .key-item small { display: block; color: var(--text-muted); font-size: 0.72rem; }
    .rank-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.7rem; margin-top: 0.8rem; }
    .podium-item {
      position: relative; background: var(--bg-soft); border: 1px solid var(--border);
      border-radius: 14px; padding: 1rem 0.9rem; text-align: center;
      transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
    }
    .podium-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-300); }
    .podium-item.rank-1 { background: linear-gradient(180deg, #fffbeb, var(--bg-soft)); border-color: #f59e0b; }
    .rank-badge {
      display: inline-flex; align-items: center; justify-content: center;
      width: 38px; height: 38px; border-radius: 50%; font-weight: 800; font-size: 0.85rem;
      margin-bottom: 0.5rem; background: #fff; border: 1.5px solid var(--border); color: var(--text-muted);
    }
    .rank-1 .rank-badge { background: linear-gradient(135deg, #f59e0b, #fbbf24); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(245,158,11,0.4); }
    .rank-1 .rank-badge svg { width: 20px; height: 20px; }
    .rank-2 .rank-badge { border-color: #94a3b8; color: #475569; }
    .rank-3 .rank-badge { border-color: #d97706; color: #92400e; }
    .podium-score { font-size: 1.5rem; font-weight: 800; color: var(--primary-dark); margin-top: 0.3rem; }
    .heading-with-icon { display: flex; gap: 0.75rem; align-items: flex-start; }
    .heading-icon {
      width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      background: var(--brand-100); color: var(--primary-dark);
    }
    .heading-icon svg { width: 20px; height: 20px; }
    .heading-icon.gold { background: #fef3c7; color: #b45309; }
    .heading-icon.warn { background: #fee2e2; color: #b91c1c; }
    .remedial-card { border-left: 4px solid var(--danger-600); transition: transform 0.2s ease, box-shadow 0.25s ease; }
    .remedial-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
    .remedial-row { display: flex; align-items: baseline; gap: 0.5rem; }
    .remedial-row strong { font-size: 2rem; color: var(--primary-dark); font-variant-numeric: tabular-nums; }
    .remedial-row span { color: var(--text-muted); }
    .modal-backdrop { position: fixed; inset: 0; z-index: 1500; background: rgba(35,20,60,0.5); display: flex; align-items: center; justify-content: center; padding: 1rem; }
    .modal-backdrop[hidden] { display: none; }
    .edit-modal { background: #fff; border-radius: 16px; padding: 1.6rem; width: 100%; max-width: 440px; }
    .modal-form .field { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 0.8rem; }
    .modal-form label { font-size: 0.8rem; font-weight: 700; }
    /* (Input modal pindah ke css/style.css) */
    .modal-actions { display: flex; gap: 0.6rem; justify-content: flex-end; margin-top: 1rem; }
    .upload-box { align-items: center; }
    /* Kartu bertab: Tambah Manual | Import CSV */
    .add-tabs { border: 1px solid var(--border); border-radius: 16px; background: var(--bg-soft); padding: 0.8rem; margin-bottom: 1rem; }
    .tab-bar { display: inline-flex; flex-wrap: nowrap; width: fit-content; max-width: 100%; gap: 0; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; padding: 0.3rem; margin-bottom: 0.9rem; }
    .tab-bar .tab-btn { flex: 1 1 0; min-width: 0; padding: 0.4rem 1rem; min-height: 34px; border-radius: 999px; font-size: 0.85rem; }
    .tab-bar .tab-btn.active { box-shadow: 0 2px 8px rgba(109, 40, 217, 0.25); }
    /* (Tab button pindah ke css/style.css) */
    .tab-panel[hidden] { display: none; }
    .tab-desc { font-size: 0.83rem; color: var(--text-muted); margin-bottom: 0.7rem; }
    /* Tombol area import CSV lebih ringkas (Pilih File / Import / Download) */
    .upload-box .btn,
    .upload-box .file-btn {
      padding: 0.35rem 0.8rem;
      min-height: 32px;
      font-size: 0.8rem;
      border-radius: var(--radius-pill);
    }
    .upload-box .btn svg.lucide,
    .upload-box .file-btn svg { width: 15px; height: 15px; }
    .upload-box .file-name { font-size: 0.75rem; }
    /* Form tambah manual: input & tombol lebih ringkas */
    #manualTab .form-grid input {
      padding: 0.45rem 0.75rem;
      min-height: 34px;
      font-size: 0.85rem;
    }
    #manualTab .form-grid label { font-size: 0.72rem; font-weight: 500; }
    #manualTab .form-grid .btn {
      padding: 0.4rem 0.9rem;
      min-height: 34px;
      font-size: 0.82rem;
    }
    #manualTab .form-grid .btn svg.lucide { width: 15px; height: 15px; }
    @media (max-width: 560px) {
      .tab-bar { width: 100%; }
      /* HP: baris tombol tetap sebaris, geser horizontal bila sempit */
      .button-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.2rem; }
      .button-row .btn, .button-row .file-btn { flex-shrink: 0; }
      .pagination-group { flex-wrap: nowrap; }
    }
    /* Layar sentuh: target sentuh lebih besar */
    @media (pointer: coarse) {
      .icon-btn { width: 40px; height: 40px; }
      .sidebar-collapse-btn, .sidebar-expand-btn, .menu-close-btn { width: 44px; height: 44px; }
    }
    /* (File button pindah ke css/style.css) */
    .waktu-cell { display: flex; flex-direction: column; font-size: 0.82rem; }
    .waktu-durasi { font-size: 0.82rem; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text); }
    .waktu-muted { color: var(--text-muted); }
    .waktu-timer { font-weight: 800; font-variant-numeric: tabular-nums; }
    .waktu-timer.warning { color: var(--danger-600); }
    @media (max-width: 900px) {
      .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 900; transform: translateX(-105%); transition: transform 0.25s; height: auto; }
      .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
      .menu-toggle { display: inline-flex; }
      .form-grid { grid-template-columns: 1fr 1fr; }
    }
    /* Ikon ringkas di atas form — khusus layar kecil */
    .admin-mobile-icon {
      display: none; width: 60px; height: 60px; border-radius: 18px;
      background: var(--gradient); color: #fff;
      align-items: center; justify-content: center;
      box-shadow: 0 10px 24px rgba(109,40,217,0.35);
      margin-bottom: 1rem;
    }
    .admin-mobile-icon svg { width: 30px; height: 30px; }
    @media (max-width: 820px) {
      #loginView { padding: 1.5rem 0.9rem 2rem; align-items: center; }
      .login-shell { grid-template-columns: 1fr; border-radius: 20px; }
      .login-brand { display: none; }
      .login-side { padding: 1.8rem 1.4rem; }
      .admin-mobile-icon { display: flex; margin: 0 auto 1rem; }
      .login-card .eyebrow, .login-card h1, .login-card > p { text-align: center; }
      .login-card h1 { font-size: 1.35rem; }
    }
    @media (max-width: 560px) {
      .form-grid { grid-template-columns: 1fr; }
      .main-area { padding: 1rem; }
      .topbar { margin: -1rem -1rem 1rem; padding: 0.7rem 1rem; }
      .topbar h2 { font-size: 1.15rem; }
    }
    /* ===== Bank Soal (upload & kelola soal tambahan) ===== */
    .soal-q { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.82rem; font-weight: 600; color: var(--primary-dark); white-space: nowrap; }
    .soal-tag { max-width: 130px; }
    .soal-cell { max-width: 340px; min-width: 0; }
    .cell-clamp {
      display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
      overflow: hidden; word-break: break-word; white-space: normal;
    }
    td.expanded .cell-clamp { display: block; -webkit-line-clamp: unset; }
    /* Tombol "Baca" buka-tutup teks panjang (ikon chevron berputar saat terbuka) */
    .rm-btn {
      display: inline-flex; align-items: center; gap: 0.18rem;
      margin-top: 0.25rem; padding: 0.12rem 0.4rem;
      border: none; background: transparent; border-radius: 6px;
      color: var(--primary-dark); font-size: 0.7rem; font-weight: 600; cursor: pointer;
      transition: background 0.2s ease, color 0.2s ease;
    }
    .rm-btn:hover { background: var(--bg-soft); }
    .rm-btn svg, .rm-btn svg.lucide { width: 13px; height: 13px; transition: transform 0.22s ease; }
    td.expanded .rm-btn svg { transform: rotate(180deg); }
    /* Tombol aksi mini (Bank Soal): compact & ramah sentuh */
    .mini-btn {
      display: inline-flex; align-items: center; justify-content: center;
      width: 28px; height: 28px; padding: 0;
      border: 1px solid var(--border); border-radius: 8px;
      background: #fff; color: var(--text-muted); cursor: pointer;
      transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    }
    .mini-btn:hover { background: var(--bg-soft); color: var(--primary-dark); }
    .mini-btn.danger { color: var(--danger-600); }
    .mini-btn.danger:hover { background: #fef2f2; border-color: #f5c2c2; }
    .mini-btn svg, .mini-btn svg.lucide { width: 14px; height: 14px; }
    /* Modal Edit Soal responsif */
    .gm-modal { max-width: 640px; max-height: calc(100vh - 2.5rem); overflow-y: auto; }
    .gm-head { display: grid; grid-template-columns: 128px 1fr 108px; gap: 0.2rem 0.8rem; }
    .gm-opsi { display: grid; grid-template-columns: 1fr 1fr; gap: 0.2rem 0.8rem; }
    .gm-full { grid-column: 1 / -1; }
    .gm-actions {
      position: sticky; bottom: -1.6rem;
      margin: 1rem -1.6rem -1.6rem; padding: 0.9rem 1.6rem 1.1rem;
      background: #fff; border-top: 1px solid var(--border);
    }
    @media (max-width: 640px) {
      .gm-head { grid-template-columns: 1fr; }
      .gm-opsi { grid-template-columns: 1fr; }
      .gm-actions { margin: 1rem -1.2rem -1.2rem; padding: 0.85rem 1.2rem 1rem; }
      .gm-modal { padding: 1.2rem; }
      .modal-backdrop { padding: 0.6rem; }
    }
    .badge-aktif, .badge-nonaktif {
      display: inline-flex; align-items: center; gap: 0.35rem;
      padding: 0.18rem 0.65rem; border-radius: 999px;
      font-size: 0.74rem; font-weight: 600; white-space: nowrap;
    }
    .badge-aktif svg, .badge-nonaktif svg { width: 13px; height: 13px; }
    .badge-aktif { background: #d1fae5; color: #15803d; }
    .badge-nonaktif { background: #f1f5f9; color: #64748b; }
    .size-btn.danger { color: var(--danger-600); }
    .modal-form textarea {
      padding: 0.7rem 0.9rem; border: 1.5px solid var(--border);
      border-radius: 12px; outline: none; font: inherit; font-size: 0.88rem; line-height: 1.45;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }
    .modal-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(109,40,217,0.14); }
    /* Form tambah soal: input & tombol ringkas (senada dengan form peserta) */
    #soalManualTab .form-grid input {
      padding: 0.45rem 0.75rem;
      min-height: 34px;
      font-size: 0.85rem;
    }
    #soalManualTab .form-grid label { font-size: 0.72rem; font-weight: 500; }
    #soalManualTab .form-grid .btn {
      padding: 0.4rem 0.9rem;
      min-height: 34px;
      font-size: 0.82rem;
    }
    #soalManualTab .form-grid .btn svg.lucide { width: 15px; height: 15px; }
    #soalTable td { vertical-align: middle; }
    @media (max-width: 560px) {
      #soalManualTab .form-grid { grid-template-columns: 1fr 1fr !important; }
    }
  