  :root {
    --bg-dark: #04070f;
    --bg-dark-2: #081120;
    --panel-bg: rgba(255, 255, 255, 0.045);
    --panel-border: rgba(255, 255, 255, 0.09);
    --cyan: #00c2ff;
    --purple: #f4b400;
    --gold: #f4b400;
    --pink: #ff8a3d;
    --green: #22ffb3;
    --text-main: #e8ecff;
    --text-dim: #8a90b3;
    --radius: 16px;
  }

  * { box-sizing: border-box; }

  html, body {
    margin: 0;
    padding: 0;
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Segoe UI', Roboto, -apple-system, sans-serif;
    overflow-x: hidden;
  }

  /* Supaya .ocean-layer (position:absolute) menempel di ujung TOTAL
     tinggi halaman, bukan cuma setinggi 1 layar dari atas. */
  body { position: relative; }

  #bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: block;
  }

  /* ---------- Ocean / maritime decoration ----------
     position:absolute (bukan fixed) supaya dekorasi ini nempel di UJUNG
     HALAMAN (ikut discroll), bukan nempel terus di bawah layar -- kalau
     fixed, ombaknya "tembus" menimpa konten kartu yang transparan setiap
     kali kontennya kebetulan ada di 150px bawah layar. */
  .ocean-layer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 150px;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .wave-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
  }

  .wave-back { fill: rgba(0, 194, 255, 0.10); animation: wave-scroll 26s linear infinite; }
  .wave-front { fill: rgba(0, 194, 255, 0.16); animation: wave-scroll 16s linear infinite reverse; }

  @keyframes wave-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  .boat-drift {
    position: absolute;
    bottom: 42px;
    left: -10%;
    animation: boat-drift 48s linear infinite;
  }

  .boat-bob { animation: boat-bob 3.4s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(0, 194, 255, 0.35)); }

  @keyframes boat-drift {
    from { left: -10%; }
    to { left: 108%; }
  }

  @keyframes boat-bob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-4px) rotate(-2deg); }
  }

  /* ---------- Radar widget ---------- */
  .radar-widget {
    position: relative;
    width: 56px;
    height: 56px;
    margin: 4px auto 12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 194, 255, 0.07), transparent 72%);
    border: 1px solid rgba(0, 194, 255, 0.25);
    overflow: hidden;
  }

  .radar-widget::before,
  .radar-widget::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 194, 255, 0.18);
  }
  .radar-widget::before { inset: 8px; }
  .radar-widget::after { inset: 18px; }

  .radar-sweep {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(0, 194, 255, 0.65), transparent 28%, transparent 100%);
    animation: radar-spin 2.6s linear infinite;
  }

  @keyframes radar-spin {
    to { transform: rotate(360deg); }
  }

  .radar-blip {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 6px var(--gold);
    animation: pulse-dot 1.8s ease-in-out infinite;
  }
  .radar-blip-1 { top: 16px; left: 20px; animation-delay: 0.3s; }
  .radar-blip-2 { top: 34px; left: 36px; animation-delay: 1s; }

  .sidebar-office {
    text-align: center;
    font-size: 10px;
    line-height: 1.4;
    color: var(--text-dim);
    letter-spacing: 0.4px;
    padding-top: 6px;
  }

  #app {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
  }

  /* ---------- Sidebar ---------- */
  .sidebar {
    width: 240px;
    flex-shrink: 0;
    background: linear-gradient(180deg, rgba(10, 13, 31, 0.9), rgba(5, 6, 15, 0.9));
    border-right: 1px solid var(--panel-border);
    backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    padding: 22px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
  }

  /* ---------- Toggle collapse sidebar (desktop) ---------- */
  .desktop-collapse-btn {
    display: none;
    position: fixed;
    top: 26px;
    left: 226px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    color: var(--text-dim);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 60;
    transition: left 0.3s ease, color 0.2s ease, border-color 0.2s ease;
  }
  .desktop-collapse-btn:hover { color: var(--cyan); border-color: var(--cyan); }
  .desktop-collapse-btn svg { transition: transform 0.3s ease; }

  @media (min-width: 881px) {
    .desktop-collapse-btn { display: flex; }

    .sidebar.collapsed {
      width: 0;
      min-width: 0;
      flex-basis: 0;
      padding-left: 0;
      padding-right: 0;
      border-right: none;
      overflow: hidden;
    }
    .sidebar.collapsed > * { opacity: 0; pointer-events: none; }

    body.sidebar-collapsed .desktop-collapse-btn { left: -13px; }
    body.sidebar-collapsed .desktop-collapse-btn svg { transform: rotate(180deg); }
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px 26px 8px;
  }

  .sidebar-close-btn {
    display: none;
    margin-left: auto;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    color: var(--text-dim);
    cursor: pointer;
    flex-shrink: 0;
  }
  .sidebar-close-btn:hover { color: var(--pink); border-color: var(--pink); }

  .brand-mark {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 8px rgba(244, 180, 0, 0.55));
    animation: logo-glow 3.2s ease-in-out infinite;
  }
  .brand-logo { width: 100%; height: 100%; object-fit: contain; }

  @keyframes logo-glow {
    0%, 100% { filter: drop-shadow(0 0 6px rgba(244, 180, 0, 0.4)); }
    50% { filter: drop-shadow(0 0 14px rgba(0, 194, 255, 0.55)); }
  }

  .brand-text { display: flex; flex-direction: column; line-height: 1.15; }
  .brand-title {
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .brand-sub { font-size: 11px; color: var(--text-dim); letter-spacing: 0.5px; }

  .nav { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }

  .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-dim);
    padding: 12px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    transition: all 0.25s ease;
  }

  .nav-item:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--panel-border);
  }

  .nav-item.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(0, 246, 255, 0.14), rgba(168, 85, 247, 0.14));
    border-color: rgba(0, 246, 255, 0.35);
    box-shadow: 0 0 18px rgba(0, 246, 255, 0.15) inset, 0 0 14px rgba(168, 85, 247, 0.15);
  }

  .sidebar-clock {
    margin-top: auto;
    padding: 16px 10px;
    text-align: center;
    border-top: 1px solid var(--panel-border);
  }

  .clock-time {
    font-size: 24px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(0, 246, 255, 0.25);
  }
  .clock-date { font-size: 11px; color: var(--text-dim); margin-top: 2px; text-transform: capitalize; }

  .sidebar-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    font-size: 11px;
    color: var(--text-dim);
    padding-top: 10px;
  }

  .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulse-dot 1.6s ease-in-out infinite;
  }

  @keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
  }

  /* ---------- Main ---------- */
  .main { flex: 1; padding: 28px 34px 190px; min-width: 0; }

  .topbar { margin-bottom: 22px; animation: fade-slide-down 0.5s ease both; }
  .topbar-row { display: flex; align-items: flex-start; gap: 12px; }
  .topbar h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.3px;
  }
  .topbar p { margin: 4px 0 0; color: var(--text-dim); font-size: 13.5px; }

  /* Selalu terlihat di HP/tablet supaya navigasi tidak bergantung pada
     buka-tutup drawer sidebar -- lebih andal untuk tap di layar sentuh. */
  .mobile-tabbar {
    display: none;
    gap: 8px;
    margin: 14px 0 22px;
    padding: 5px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    position: sticky;
    top: 10px;
    z-index: 30;
    backdrop-filter: blur(10px);
  }
  .tab-item {
    flex: 1;
    justify-content: center;
    padding: 11px 10px;
    font-size: 13px;
  }
  .tab-item.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(0, 246, 255, 0.18), rgba(244, 180, 0, 0.18));
    border-color: rgba(0, 246, 255, 0.35);
  }

  .hamburger-btn {
    display: none;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    color: var(--text-main);
    cursor: pointer;
    margin-top: 2px;
  }
  .hamburger-btn:hover { border-color: var(--cyan); color: var(--cyan); }

  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 40;
    opacity: 0;
    transition: opacity 0.25s ease;
  }
  .sidebar-backdrop.show { display: block; opacity: 1; }

  @keyframes fade-slide-down {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .view { display: none; }
  .view.active { display: block; animation: fade-slide-up 0.45s ease both; }

  @keyframes fade-slide-up {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ---------- Stat cards ---------- */
  .stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
    margin-bottom: 26px;
  }

  .stat-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    padding: 20px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .stat-card:hover { transform: translateY(-4px); }

  .stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120px 80px at 85% 0%, var(--glow-color, var(--cyan)) 0%, transparent 70%);
    opacity: 0.18;
    pointer-events: none;
  }

  .glow-cyan { --glow-color: #00f6ff; }
  .glow-purple { --glow-color: #a855f7; }
  .glow-pink { --glow-color: #ff2ea6; }
  .glow-green { --glow-color: #22ffb3; }

  .glow-cyan:hover { box-shadow: 0 8px 30px rgba(0, 246, 255, 0.18); }
  .glow-purple:hover { box-shadow: 0 8px 30px rgba(168, 85, 247, 0.18); }
  .glow-pink:hover { box-shadow: 0 8px 30px rgba(255, 46, 166, 0.18); }
  .glow-green:hover { box-shadow: 0 8px 30px rgba(34, 255, 179, 0.18); }

  .stat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }

  .stat-icon {
    width: 32px; height: 32px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--glow-color, var(--cyan));
  }

  .stat-value { font-size: 30px; font-weight: 800; line-height: 1; }
  .stat-label { color: var(--text-dim); font-size: 12.5px; }

  /* ---------- Panels ---------- */
  .panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    padding: 22px;
    backdrop-filter: blur(10px);
    margin-bottom: 22px;
  }

  .panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
  }

  .panel-head h2 { margin: 0; font-size: 16px; font-weight: 700; }

  .filter-group { display: flex; gap: 10px; }

  input, select, textarea, button {
    font-family: inherit;
    color: var(--text-main);
  }

  #searchBox, #filterStatus {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  #searchBox:focus, #filterStatus:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 246, 255, 0.12);
  }

  /* ---------- Jadwal slider (dashboard, ala apple.com) ---------- */
  .slider-wrap { position: relative; }

  .jadwal-slider {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 2px 10px;
    margin: 0 -2px;
    -webkit-overflow-scrolling: touch;
  }
  .jadwal-slider::-webkit-scrollbar { height: 6px; }
  .jadwal-slider::-webkit-scrollbar-thumb { background: var(--panel-border); border-radius: 999px; }
  .jadwal-slider::-webkit-scrollbar-track { background: transparent; }

  .jadwal-card {
    flex: 0 0 min(440px, 86vw);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--panel-border);
    overflow: hidden;
    animation: fade-slide-up 0.4s ease both;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  }

  .jadwal-card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35); border-color: rgba(0, 194, 255, 0.3); }

  .jc-hero {
    position: relative;
    padding: 20px 18px 18px;
    background: linear-gradient(135deg, rgba(0, 194, 255, 0.16), rgba(4, 7, 15, 0.5));
  }
  .day-count {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--cyan);
    background: rgba(0, 194, 255, 0.10);
    border: 1px solid rgba(0, 194, 255, 0.32);
    border-radius: 999px;
    padding: 4px 9px;
  }

  .jc-date { display: flex; align-items: baseline; gap: 7px; }
  .jc-date .d { font-size: 36px; font-weight: 800; line-height: 1; }
  .jc-date .m { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1.5px; }

  .day-agenda-list {
    display: flex;
    flex-direction: column;
    max-height: 300px;
    overflow-y: auto;
    padding: 4px 0;
  }
  .day-agenda-list::-webkit-scrollbar { width: 5px; }
  .day-agenda-list::-webkit-scrollbar-thumb { background: var(--panel-border); border-radius: 999px; }
  .day-agenda-item {
    position: relative;
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    border-top: 1px solid var(--panel-border);
  }
  .day-agenda-item::before {
    content: '';
    position: absolute;
    inset: 15px auto 15px 0;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: var(--cyan);
  }
  .day-agenda-item.prio-Tinggi::before { background: var(--pink); }
  .day-agenda-item.prio-Rendah::before { background: var(--text-dim); }
  .day-agenda-time {
    color: var(--cyan);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
  }
  .day-agenda-time small { display: block; color: var(--text-dim); font-size: 9px; font-weight: 600; letter-spacing: 0.6px; }
  .day-agenda-main { min-width: 0; }
  .day-agenda-title { font-size: 14px; font-weight: 700; line-height: 1.35; }
  .day-agenda-meta { display: flex; flex-wrap: wrap; gap: 4px 9px; margin-top: 5px; color: var(--text-dim); font-size: 11px; }
  .day-agenda-actions { display: flex; gap: 5px; }

  /* ---------- Navigasi slider ---------- */
  .slider-nav { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
  .slider-dots { display: flex; gap: 6px; margin-right: auto; }
  .slider-dot {
    width: 6px; height: 6px;
    border-radius: 999px;
    background: var(--panel-border);
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    padding: 0;
  }
  .slider-dot.active { background: linear-gradient(90deg, var(--cyan), var(--gold)); width: 20px; }

  .slider-arrow {
    width: 36px; height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .slider-arrow:hover { color: #fff; border-color: var(--cyan); box-shadow: 0 0 10px rgba(0, 194, 255, 0.25); }
  .slider-arrow:disabled { opacity: 0.3; cursor: default; box-shadow: none; border-color: var(--panel-border); color: var(--text-dim); }

  .badge {
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.3px;
    white-space: nowrap;
  }
  .badge-Terjadwal { background: rgba(0, 246, 255, 0.12); color: var(--cyan); border: 1px solid rgba(0, 246, 255, 0.3); }
  .badge-Selesai { background: rgba(34, 255, 179, 0.12); color: var(--green); border: 1px solid rgba(34, 255, 179, 0.3); }
  .badge-Dibatalkan { background: rgba(255, 46, 166, 0.12); color: var(--pink); border: 1px solid rgba(255, 46, 166, 0.3); }

  .tag-multihari {
    display: inline-block;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(244, 180, 0, 0.14);
    color: var(--gold);
    border: 1px solid rgba(244, 180, 0, 0.35);
    vertical-align: middle;
  }

  .jc-actions { display: flex; gap: 6px; flex-shrink: 0; }

  .icon-btn {
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-border);
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .icon-btn:hover { color: #fff; border-color: var(--cyan); box-shadow: 0 0 10px rgba(0, 246, 255, 0.25); }
  .icon-btn.danger:hover { color: var(--pink); border-color: var(--pink); box-shadow: 0 0 10px rgba(255, 46, 166, 0.25); }

  .empty-state { text-align: center; color: var(--text-dim); padding: 30px; font-size: 13.5px; }

  /* ---------- Form ---------- */
  .form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .field { display: flex; flex-direction: column; gap: 6px; }
  .field.span-2 { grid-column: span 2; }

  .field label { font-size: 12px; color: var(--text-dim); font-weight: 600; letter-spacing: 0.3px; }

  .field-hint {
    grid-column: span 2;
    margin: -6px 0 0;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--text-dim);
  }

  .field input, .field select, .field textarea {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13.5px;
    outline: none;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 246, 255, 0.12);
  }

  .form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }

  .btn-primary, .btn-ghost {
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
  }

  .btn-primary {
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    color: #05060f;
    box-shadow: 0 0 20px rgba(0, 246, 255, 0.25);
  }
  .btn-primary:hover { filter: brightness(1.1); box-shadow: 0 0 26px rgba(0, 246, 255, 0.4); }
  .btn-primary:active { transform: scale(0.98); }

  .btn-ghost {
    background: transparent;
    border-color: var(--panel-border);
    color: var(--text-dim);
  }
  .btn-ghost:hover { color: var(--text-main); border-color: var(--text-dim); }

  /* ---------- Table ---------- */
  .table-wrap { overflow-x: auto; }
  .jadwal-table { width: 100%; border-collapse: collapse; font-size: 13px; }
  .jadwal-table th {
    text-align: left;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--panel-border);
  }
  .jadwal-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
  }
  .jadwal-table tbody tr { transition: background 0.2s ease; animation: fade-slide-up 0.35s ease both; }
  .jadwal-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }

  .prio-tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
  .prio-tag.Tinggi { background: rgba(255, 46, 166, 0.12); color: var(--pink); }
  .prio-tag.Sedang { background: rgba(0, 246, 255, 0.12); color: var(--cyan); }
  .prio-tag.Rendah { background: rgba(255, 255, 255, 0.07); color: var(--text-dim); }

  /* ---------- Toast ---------- */
  .toast {
    position: fixed;
    bottom: 26px;
    right: 26px;
    background: rgba(10, 13, 31, 0.95);
    border: 1px solid rgba(0, 246, 255, 0.35);
    box-shadow: 0 0 24px rgba(0, 246, 255, 0.2);
    color: var(--text-main);
    padding: 13px 20px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    z-index: 100;
    transform: translateY(30px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(.2,.9,.3,1.3);
  }
  .toast.show { transform: translateY(0); opacity: 1; }
  .toast.error { border-color: rgba(255, 46, 166, 0.5); box-shadow: 0 0 24px rgba(255, 46, 166, 0.25); }

  /* ---------- Responsif: tablet & hp ---------- */
  @media (max-width: 880px) {
    .hamburger-btn { display: flex; }
    .sidebar-close-btn { display: flex; }
    .mobile-tabbar { display: flex; }

    .sidebar {
      position: fixed;
      inset: 0 auto 0 0;
      width: 260px;
      z-index: 50;
      transform: translateX(-100%);
      transition: transform 0.3s ease;
      box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    }
    .sidebar.open { transform: translateX(0); }

    .main { padding: 18px 18px 180px; }
    .topbar h1 { font-size: 22px; }

    .form-grid { grid-template-columns: 1fr 1fr; }
    .field.span-2 { grid-column: span 2; }

    .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat-card { padding: 16px; }
    .stat-value { font-size: 24px; }
  }

  @media (max-width: 600px) {
    .main { padding: 14px 14px 120px; }
    .panel { padding: 16px; }
    .topbar h1 { font-size: 19px; }
    .topbar p { font-size: 12.5px; }

    .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 14px; }
    .stat-icon { width: 28px; height: 28px; }
    .stat-head { margin-bottom: 8px; gap: 8px; }
    .stat-value { font-size: 21px; }
    .stat-label { font-size: 11px; }

    .panel-head { align-items: stretch; }
    .filter-group { flex-direction: column; width: 100%; }
    #searchBox, #filterStatus { width: 100%; }

    .jadwal-card { flex-basis: min(340px, 86vw); }
    .day-agenda-item { grid-template-columns: 1fr auto; gap: 8px; }
    .day-agenda-time { grid-column: 1; }
    .day-agenda-main { grid-column: 1; }
    .day-agenda-actions { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
    .icon-btn { width: 34px; height: 34px; }
    .slider-nav { justify-content: space-between; }

    .form-grid { grid-template-columns: 1fr; }
    .field.span-2 { grid-column: span 1; }
    .field-hint { grid-column: span 1; }
    .form-actions { flex-direction: column-reverse; }
    .form-actions .btn-primary, .form-actions .btn-ghost { width: 100%; text-align: center; }

    /* Tabel "Semua Jadwal" berubah jadi kartu, bukan tabel scroll-samping */
    .jadwal-table thead { display: none; }
    .jadwal-table, .jadwal-table tbody, .jadwal-table tr, .jadwal-table td { display: block; width: 100%; }
    .jadwal-table tr {
      margin-bottom: 12px;
      border: 1px solid var(--panel-border);
      border-radius: 12px;
      overflow: hidden;
      background: rgba(255, 255, 255, 0.03);
    }
    .jadwal-table td {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      padding: 10px 14px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      text-align: right;
    }
    .jadwal-table td:last-child { border-bottom: none; }
    .jadwal-table td::before {
      content: attr(data-label);
      font-size: 10.5px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--text-dim);
      text-align: left;
    }
    .jadwal-table td[data-label="Aksi"] .jc-actions { justify-content: flex-end; width: 100%; }

    .ocean-layer { height: 90px; }
  }

  /* ---------- Token GitHub ---------- */
  .token-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 10px;
    background: transparent;
    border: 1px dashed var(--panel-border);
    border-radius: 8px;
    color: var(--text-dim);
    font-size: 10.5px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .token-btn:hover { color: var(--gold); border-color: var(--gold); }
  .token-btn.token-set { border-style: solid; border-color: rgba(34, 255, 179, 0.35); color: var(--green); }

  /* ---------- Pengaturan notifikasi ---------- */
  .reminder-setting {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--panel-border);
  }
  .reminder-setting label {
    display: block;
    font-size: 10px;
    color: var(--text-dim);
    margin-bottom: 5px;
    text-align: center;
  }
  .reminder-setting select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 11px;
    color: var(--text-main);
    outline: none;
  }
  .reminder-setting select:focus { border-color: var(--cyan); }

  /* ---------- Modal ---------- */
  .modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  .modal-backdrop.show { display: flex; }

  .modal {
    width: 100%;
    max-width: 440px;
    background: var(--bg-dark-2);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: fade-slide-up 0.3s ease both;
  }
  .modal h3 { margin: 0 0 10px; font-size: 16px; }
  .modal p { margin: 0 0 14px; font-size: 12.5px; line-height: 1.6; color: var(--text-dim); }
  .modal p code {
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11.5px;
  }
  .modal input {
    width: 100%;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    outline: none;
    color: var(--text-main);
  }
  .modal input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 246, 255, 0.12); }
  .modal-note { margin-top: 8px !important; font-size: 11px !important; }
  .modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

  /* ---------- Login ---------- */
  #app.locked { display: none; }

  .login-screen {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  .login-screen.hidden { display: none; }

  .login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 360px;
    background: var(--bg-dark-2);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    animation: fade-slide-up 0.4s ease both;
  }

  .login-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    filter: drop-shadow(0 0 10px rgba(244, 180, 0, 0.5));
  }
  .login-logo img { width: 100%; height: 100%; object-fit: contain; }

  .login-card h1 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .login-card > p {
    margin: 0 0 24px;
    font-size: 12px;
    color: var(--text-dim);
  }

  .login-card .field { text-align: left; margin-bottom: 14px; }

  .login-error {
    min-height: 16px;
    margin: 0 0 8px;
    font-size: 12px;
    color: var(--pink);
  }

  .login-submit { width: 100%; margin-top: 6px; }
