
  :root {
    --ink: #1a1a2e;
    --ink-light: #2d2d44;
    --parchment: #f8f6f0;
    --cream: #fdfcf8;
    --gold: #c9a84c;
    --gold-light: #e8d5a3;
    --gold-pale: #f5edd6;
    --sage: #4a7c59;
    --sage-light: #e8f0eb;
    --rust: #b85c38;
    --rust-light: #f5e8e3;
    --slate: #5b6fa6;
    --slate-light: #e8ecf5;
    --lavender: #7c5cbf;
    --lavender-light: #ede8f5;
    --border: #e0dbd0;
    --shadow: rgba(26,26,46,0.08);
    --shadow-md: rgba(26,26,46,0.14);
    /* Dark mode tokens (overridden below) */
    --bg-page: var(--parchment);
    --bg-card: var(--cream);
    --bg-input: var(--parchment);
    --text-main: var(--ink);
    --text-muted: #666;
    --topbar-bg: var(--cream);
  }

  /* ===== DARK MODE ===== */
  body.dark-mode {
    --parchment: #12131a;
    --cream: #1a1c27;
    --ink: #e8e6f0;
    --ink-light: #c8c5d8;
    --border: #2e3045;
    --shadow: rgba(0,0,0,0.3);
    --shadow-md: rgba(0,0,0,0.5);
    --gold-pale: #2a2410;
    --gold-light: #4a3e18;
    --sage-light: #0e1f14;
    --rust-light: #1f0e08;
    --slate-light: #0e1422;
    --lavender-light: #160e22;
    --bg-page: #12131a;
    --bg-card: #1a1c27;
    --bg-input: #0e0f18;
    --text-main: #e8e6f0;
    --text-muted: #8884a8;
    --topbar-bg: #1a1c27;
  }
  body.dark-mode label { color: #9896b0; }
  body.dark-mode .topbar { background: var(--cream); border-color: var(--border); }

  /* ===== DARK MODE — SIDEBAR ===== */
  body.dark-mode #sidebar {
    background: #0d1117;
  }
  body.dark-mode .sidebar-header {
    border-bottom-color: rgba(255,255,255,.07);
  }
  body.dark-mode .sidebar-sub { color: rgba(255,255,255,.38); }
  body.dark-mode .sidebar-pin-btn {
    border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: rgba(255,255,255,.4);
  }
  body.dark-mode .sidebar-pin-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
  body.dark-mode .sidebar-section-label { color: rgba(255,255,255,.28); }
  body.dark-mode .journal-nav-item { color: rgba(255,255,255,.65); }
  body.dark-mode .journal-nav-item:hover { background: rgba(255,255,255,.05); color: #fff; }
  body.dark-mode .nav-item-icon { color: rgba(255,255,255,.65); }
  body.dark-mode .nav-item-num { color: rgba(255,255,255,.35) !important; }
  body.dark-mode .journal-nav-item.active {
    background: rgba(201,168,76,.12); color: var(--gold);
  }
  body.dark-mode .journal-nav-item .nav-count {
    background: rgba(255,255,255,.10); color: rgba(255,255,255,.50);
  }
  body.dark-mode .journal-nav-item.active .nav-count { background: rgba(201,168,76,.20); color: var(--gold); }
  body.dark-mode .nav-chevron { color: rgba(255,255,255,.30); }
  body.dark-mode .issue-nav-item { color: rgba(255,255,255,.45); }
  body.dark-mode .issue-nav-item:hover { background: rgba(255,255,255,.04); color: rgba(255,255,255,.8); }
  body.dark-mode .issue-nav-item.active {
    background: rgba(201,168,76,.08); color: var(--gold-light); border-left-color: rgba(201,168,76,.5);
  }
  body.dark-mode .issue-nav-item .nav-count { background: rgba(255,255,255,.07); color: rgba(255,255,255,.35); }
  body.dark-mode .issue-nav-item.active .nav-count { background: rgba(201,168,76,.15); color: var(--gold); }
  body.dark-mode .issue-add-btn { color: rgba(255,255,255,.25); }
  body.dark-mode .sidebar-actions { border-top-color: rgba(255,255,255,.08); }

  /* ===== DARK MODE — ISSUE TABS & FILTER BUTTONS ===== */
  body.dark-mode .issue-tab {
    background: var(--bg-card); border-color: var(--border); color: var(--text-muted);
  }
  body.dark-mode .issue-tab:hover { border-color: var(--gold); color: var(--gold); }
  body.dark-mode .issue-tab.active {
    background: var(--gold); border-color: var(--gold); color: #fff;
  }
  body.dark-mode .issue-tab.active .issue-tab-count { background: rgba(255,255,255,.25); color: #fff; }

  body.dark-mode .filter-btn {
    background: var(--bg-card); border-color: var(--border); color: var(--text-muted);
  }
  body.dark-mode .filter-btn:hover:not(.active) { border-color: var(--gold); color: var(--gold); }
  body.dark-mode .filter-btn.active {
    background: var(--gold); border-color: var(--gold); color: #fff;
  }

  /* ===== DARK MODE — ISSUE OVERVIEW HEADER HOVER ===== */
  body.dark-mode .issue-overview-header:hover {
    background: var(--gold);
  }
  body.dark-mode .issue-overview-header:hover .issue-overview-title,
  body.dark-mode .issue-overview-header:hover .issue-overview-meta {
    color: #000;
  }
  body.dark-mode input, body.dark-mode textarea, body.dark-mode select {
    background: var(--bg-input); color: var(--ink); border-color: var(--border);
  }
  body.dark-mode input:focus, body.dark-mode textarea:focus, body.dark-mode select:focus {
    background: #1e2035;
  }
  body.dark-mode .stat-card,
  body.dark-mode .article-card,
  body.dark-mode .reviewer-row,
  body.dark-mode .reviewer-form-card,
  body.dark-mode .issue-overview-block,
  body.dark-mode .journal-card { background: var(--cream); border-color: var(--border); }
  body.dark-mode .modal { background: var(--cream); }
  body.dark-mode .confirm-modal { background: var(--cream); }
  body.dark-mode .login-box { background: #1a1c27; }

  /* ===== NOTIFICATION BELL ===== */
  .notif-btn {
    position: relative; background: var(--parchment); border: 1px solid var(--border);
    border-radius: 50%; width: 36px; height: 36px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; transition: all .15s; flex-shrink: 0;
  }
  .notif-btn:hover { border-color: var(--gold); background: var(--gold-pale); }
  body.dark-mode .notif-btn svg { stroke: rgba(255,255,255,.85); }
  body.dark-mode .notif-btn:hover svg { stroke: var(--gold); }
  .notif-badge {
    position: absolute; top: -3px; right: -3px;
    background: var(--rust); color: #fff; border-radius: 50%;
    width: 17px; height: 17px; font-size: 10px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--cream);
  }
  .notif-panel {
    position: fixed; width: 360px; max-width: 95vw;
    background: var(--cream); border: 1px solid var(--border);
    border-radius: 14px; box-shadow: 0 8px 32px var(--shadow-md);
    z-index: 250; overflow: hidden;
    display: none; max-height: 80vh; overflow-y: auto;
  }
  .notif-panel.open { display: block; }
  /* Layar kecil: panel notif full width dari atas */
  @media (max-width: 640px) {
    .notif-panel {
      width: calc(100vw - 20px);
      max-width: calc(100vw - 20px);
      left: 10px !important;
      right: 10px !important;
      max-height: 70vh;
    }
  }
  .notif-panel-header {
    padding: 14px 18px 10px; border-bottom: 1px solid var(--border);
    font-size: 13px; font-weight: 700; color: var(--ink);
    display: flex; align-items: center; justify-content: space-between;
  }
  .notif-item {
    padding: 11px 18px; border-bottom: 1px solid var(--border);
    display: flex; gap: 10px; align-items: flex-start;
    transition: background .1s; cursor: pointer;
  }
  .notif-item:hover { background: var(--parchment); }
  .notif-item:last-child { border-bottom: none; }
  .notif-item-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
  .notif-item-body { flex: 1; min-width: 0; }
  .notif-item-title { font-size: 12px; font-weight: 600; color: var(--ink); }
  .notif-item-sub { font-size: 11px; color: #888; margin-top: 2px; }
  .notif-item.urgent .notif-item-title { color: var(--rust); }
  .notif-item.warning .notif-item-title { color: #c8920a; }
  .notif-item.info .notif-item-title { color: #2563ab; }
  .notif-empty { padding: 24px; text-align: center; color: #bbb; font-size: 13px; }

  /* ===== GLOBAL SEARCH ===== */
  .global-search-overlay {
    position: fixed; inset: 0; z-index: 600;
    background: rgba(0,0,0,.5); backdrop-filter: blur(3px);
    display: flex; align-items: flex-start; justify-content: center;
    padding-top: 80px;
    opacity: 0; pointer-events: none; transition: opacity .2s;
  }
  .global-search-overlay.open { opacity: 1; pointer-events: all; }
  .global-search-box {
    background: var(--cream); border-radius: 16px;
    width: 620px; max-width: 96vw;
    box-shadow: 0 24px 60px rgba(0,0,0,.4);
    overflow: hidden;
    transform: translateY(-12px); transition: transform .2s;
  }
  .global-search-overlay.open .global-search-box { transform: translateY(0); }
  .global-search-input-wrap {
    display: flex; align-items: center; gap: 10px; padding: 16px 20px;
    border-bottom: 1px solid var(--border);
  }
  .global-search-input {
    flex: 1; border: none; background: transparent; font-size: 16px;
    font-family: 'Poppins', Arial, sans-serif; color: var(--ink); outline: none;
  }
  .global-search-input::placeholder { color: #bbb; }
  .global-search-results { max-height: 420px; overflow-y: auto; }
  .gs-result-item {
    padding: 12px 20px; display: flex; gap: 12px; align-items: center;
    cursor: pointer; transition: background .1s; border-bottom: 1px solid var(--border);
  }
  .gs-result-item:hover { background: var(--parchment); }
  .gs-result-item:last-child { border-bottom: none; }
  .gs-result-icon { font-size: 20px; flex-shrink: 0; }
  .gs-result-body { flex: 1; min-width: 0; }
  .gs-result-title { font-size: 13px; font-weight: 600; color: var(--ink); }
  .gs-result-title mark { background: var(--gold-pale); color: var(--ink); border-radius: 3px; padding: 0 2px; }
  .gs-result-sub { font-size: 11px; color: #888; margin-top: 2px; }
  .gs-result-badge { font-size: 11px; padding: 2px 8px; border-radius: 10px; flex-shrink: 0; }
  .gs-section-label { padding: 8px 20px 4px; font-size: 10px; font-weight: 700; color: #aaa; text-transform: uppercase; letter-spacing: .8px; background: var(--parchment); }
  .gs-empty { padding: 32px; text-align: center; color: #bbb; font-size: 13px; }

  /* ===== TAG / KATEGORI ===== */
  .tag-chip {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; padding: 2px 8px; border-radius: 12px;
    background: var(--lavender-light); color: var(--lavender);
    font-weight: 500; cursor: default;
  }
  .tag-input-wrap { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--parchment); min-height: 38px; cursor: text; }
  .tag-input { border: none; background: transparent; outline: none; font-size: 13px; font-family: 'Poppins', Arial, sans-serif; min-width: 100px; color: var(--ink); }
  .tag-remove { cursor: pointer; opacity: .6; font-size: 12px; }
  .tag-remove:hover { opacity: 1; color: var(--rust); }

  /* ===== LAPORAN / PRINT ===== */
  .print-modal-body { display: flex; flex-direction: column; gap: 16px; }
  .print-preview {
    border: 1px solid var(--border); border-radius: 10px;
    background: #fff; padding: 24px; min-height: 200px;
    font-size: 13px; color: #333; max-height: 60vh;
    overflow-y: auto; overflow-x: hidden; width:100%; box-sizing:border-box;
  }
  @media print {
    /* Paksa seluruh halaman putih — termasuk dark mode */
    html, body {
      background: #fff !important;
      color: #000 !important;
      -webkit-print-color-adjust: exact;
      print-color-adjust: exact;
    }
    body > *:not(#printArea) { display: none !important; }
    #printArea {
      display: block !important;
      position: static !important;
      width: 100% !important;
      margin: 0 !important; padding: 0 !important;
      background: #fff !important;
      color: #111 !important;
    }
    #printArea * {
      visibility: visible !important;
      background-color: transparent !important;
    }
    /* Kembalikan warna background tabel agar zebra stripe tetap terlihat */
    #printArea table tr:nth-child(even) td { background-color: #f7f7f7 !important; }
    #printArea table thead tr { background-color: #1a3a5c !important; color: #fff !important; }
    #printArea table { page-break-inside: auto; }
    #printArea tr    { page-break-inside: avoid; }
    @page { size: A4; margin: 20mm; background: #fff; }
  }
  #printArea { display: none; }

  /* ===== KALENDER EDITORIAL ===== */
  .calendar-grid {
    display: grid; grid-template-columns: repeat(7, 1fr);
    gap: 2px; margin-top: 8px;
  }
  .cal-header-cell {
    text-align: center; font-size: 10px; font-weight: 700;
    color: #888; padding: 4px 2px; text-transform: uppercase;
  }
  .cal-cell {
    min-height: 45px; border-radius: 6px; padding: 3px 5px;
    border: 1px solid var(--border); background: var(--cream);
    font-size: 10px; position: relative; transition: background .1s;
  }
  .cal-cell.other-month { opacity: .35; }
  .cal-cell.today { border-color: var(--gold); background: var(--gold-pale); }
  .cal-cell-date { font-weight: 700; font-size: 11px; color: var(--ink); margin-bottom: 1px; }
  .cal-event {
    font-size: 9px; padding: 1px 4px; border-radius: 3px;
    margin-bottom: 1px; overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; cursor: pointer;
  }
  .cal-event.deadline { background: var(--rust-light); color: var(--rust); }
  .cal-event.publish  { background: var(--sage-light); color: var(--sage); }
  .cal-event.submit   { background: var(--slate-light); color: var(--slate); }
  .cal-event:hover { filter: brightness(.92); transform: translateY(-1px); transition: all .1s; }
  .cal-more {
    font-size: 9px; color: #888; cursor: pointer; padding: 1px 4px;
    border-radius: 3px; transition: background .1s;
  }
  .cal-more:hover { background: var(--parchment); color: var(--ink); }
  .cal-nav { display: flex; align-items: center; gap: 8px; }
  .cal-nav-btn {
    background: var(--parchment); border: 1px solid var(--border);
    border-radius: 7px; width: 28px; height: 28px; cursor: pointer;
    font-size: 12px; display: flex; align-items: center; justify-content: center;
    transition: all .15s;
  }
  .cal-nav-btn:hover { border-color: var(--gold); color: var(--gold); }
  .cal-month-label { font-size: 13px; font-weight: 700; color: var(--ink); min-width: 130px; text-align: center; }
  /* Toggle bulanan/tahunan */
  .cal-view-toggle {
    display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  }
  .cal-view-btn {
    padding: 5px 14px; font-size: 11px; font-weight: 600;
    background: none; border: none; cursor: pointer;
    color: #888; font-family: 'Poppins', Arial, sans-serif; transition: all .15s;
  }
  .cal-view-btn.active { background: var(--gold); color: var(--ink); }
  /* Grid tahunan */
  .cal-year-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px;
  }
  .cal-month-card {
    border: 1px solid var(--border); border-radius: 8px; padding: 10px 8px;
    background: var(--cream); cursor: pointer; text-align: center;
    transition: all .15s; font-size: 12px; font-weight: 600; color: var(--ink);
  }
  .cal-month-card:hover { border-color: var(--gold); background: var(--gold-pale); }
  .cal-month-card .month-event-count {
    font-size: 10px; font-weight: 400; color: #888; margin-top: 3px;
  }

  /* Responsif kalender di layar kecil */
  @media (max-width: 480px) {
    .cal-year-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .cal-month-label { min-width: 90px; font-size: 12px; }
    .cal-cell { min-height: 36px; padding: 2px 3px; }
    .cal-cell-date { font-size: 10px; }
    .cal-event { font-size: 8px; padding: 1px 3px; }
    .cal-header-cell { font-size: 9px; padding: 3px 1px; }
    .cal-nav-btn { width: 24px; height: 24px; font-size: 11px; }
    /* Navigasi bulan & tahun jadi dua baris di layar kecil */
    #calMonthNav + div { margin-top: 0; }
  }
  @media (max-width: 360px) {
    .cal-year-grid { grid-template-columns: repeat(2, 1fr); }
    .calendar-grid { gap: 1px; }
    .cal-cell { min-height: 30px; padding: 2px; }
  }

  /* ===== RESPONSIF MODAL — SEMUA UKURAN LAYAR ===== */

  /* Tablet (≤768px): modal lebih compact */
  @media (max-width: 768px) {
    .modal { max-width: 98vw !important; }
    .modal-header { padding: 16px 18px 12px; }
    .modal-title { font-size: 15px; }
    .modal-body { padding: 16px 18px; gap: 12px; }
    .modal-footer { padding: 12px 18px; gap: 8px; }
    .form-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  }

  /* HP besar / tablet kecil (≤560px): 1 kolom form */
  @media (max-width: 560px) {
    .modal-header { padding: 14px 16px 10px; }
    .modal-title { font-size: 14px; }
    .modal-body { padding: 14px 16px; gap: 10px; }
    .modal-footer { padding: 10px 16px; flex-wrap: wrap; gap: 6px; }
    .modal-footer .btn { flex: 1; min-width: 0; justify-content: center; }
    .form-grid { grid-template-columns: 1fr !important; gap: 8px; }
    .form-grid .form-group.full { grid-column: 1; }
    /* Sembunyikan nama user pada topbar-user di dalam modal */
    .modal .topbar-user-name,
    .modal .topbar-user-role { font-size: 11px; }
  }

  /* HP kecil (≤400px): sangat kompak */
  @media (max-width: 400px) {
    .modal-header { padding: 12px 14px 8px; }
    .modal-title { font-size: 13px; }
    .modal-body { padding: 12px 14px; gap: 8px; }
    .modal-footer { padding: 8px 14px; }
    .modal-footer .btn { font-size: 12px; padding: 7px 10px; }
    .section-title { font-size: 11px; }
    .form-group label { font-size: 11px; }
    .form-group input,
    .form-group select,
    .form-group textarea { font-size: 12px; padding: 7px 10px; }
    /* Article modal form fields */
    .article-form-row { flex-direction: column !important; }
  }

  /* Modal dari bawah di HP (sudah ada di ≤640px) — pastikan scroll bekerja */
  @media (max-width: 640px) {
    .modal {
      max-height: 92vh !important;
      overflow-y: auto;
      border-radius: 16px 16px 0 0 !important;
    }
    .modal-body { max-height: none; }
    /* Kalender nav jadi dua baris di HP */
    #calMonthNav { order: 1; }
    #calYearNav  { order: 2; }
    .cal-nav-row { flex-wrap: wrap; gap: 6px; }
    /* User modal: table atau list jadi lebih compact */
    .user-table-row { flex-wrap: wrap; gap: 4px; }
    /* Sort modal drag list */
    .sort-journal-row { padding: 8px 10px; font-size: 12px; }
    /* Assign SE modal */
    #assignSEBody label { padding: 6px 10px; }
    /* Broadcast modal history */
    .broadcast-history-item { padding: 8px 10px; font-size: 12px; }
    /* Letter modal preview */
    .letter-preview { font-size: 12px; padding: 14px; }
    /* Report modal */
    .rep-row-2col { grid-template-columns: 1fr !important; }
    .rep-type-bar { flex-wrap: wrap; }
    .print-preview { padding: 14px; max-height: 45vh; }
  }

  /* Dark mode compatibility */
  body.dark-mode .modal-footer .btn { border-color: rgba(255,255,255,.1); }

  /* ===== RESPONSIF KONTEN SPESIFIK MODAL ===== */

  /* Letter modal — textarea dan tombol aksi */
  @media (max-width: 560px) {
    #letterModal .modal-body { padding: 12px 14px; }
    #lt_preview { min-height: 140px !important; font-size: 12px !important; }
    /* Letter action buttons wrap */
    #letterModal .modal-footer { flex-wrap: wrap; }
    #letterModal .modal-footer .btn { flex: 1 1 auto; font-size: 11px; }
  }

  /* Article modal — 2-col similarity jadi 1 col */
  @media (max-width: 480px) {
    #articleModal .form-grid { grid-template-columns: 1fr !important; }
    /* Reviewer rows */
    .reviewer-row { padding: 8px 10px; }
    .reviewer-row-top { flex-wrap: wrap; gap: 4px; }
  }

  /* User modal — add user form dan user list */
  @media (max-width: 480px) {
    #userModal .form-grid { grid-template-columns: 1fr !important; }
    .user-row { align-items: flex-start; }
  }

  /* Chief journal modal — form edit jurnal */
  @media (max-width: 480px) {
    #chiefJournalModal .form-grid { grid-template-columns: 1fr !important; }
  }

  /* IO modal — ekspor/impor responsif */
  @media (max-width: 520px) {
    #ioModal .modal { width: 100% !important; max-width: 100vw !important;
      border-radius: 14px 14px 0 0; margin-top: auto; }
    #ioModal .modal-overlay { align-items: flex-end; }
    #ioModal .modal-body { max-height: 65vh; overflow-y: auto;
      -webkit-overflow-scrolling: touch; padding: 12px 14px; }
    .io-section { padding: 10px 12px !important; }
    .io-title { font-size: 12px !important; }
    .io-section-header { gap: 6px; }
    /* Tombol-tombol import/ekspor full width di HP */
    #ioModal .btn { width: 100%; justify-content: center; }
    /* Preview list lebih pendek di HP */
    #doajPreviewList { max-height: 180px !important; }
    /* Tombol preview footer wrap ke baris baru */
    #doajPreviewArea > div:last-child {
      flex-direction: column; align-items: stretch;
    }
    #doajPreviewArea > div:last-child .btn { width: 100%; justify-content: center; }
    /* File input font */
    #doajXmlFile, #importFile { font-size: 11px; }
  }
  @media (max-width: 380px) {
    .io-title { font-size: 11px !important; }
    #ioModal .modal-body { padding: 10px 12px; }
  }

  /* Broadcast modal — form kirim pesan */
  @media (max-width: 480px) {
    #bc_body { min-height: 80px; }
  }

  /* Sort journals modal — drag list */
  @media (max-width: 480px) {
    .sort-journal-row { padding: 8px 10px; gap: 8px; }
    .sort-journal-row span { font-size: 12px; }
  }

  /* Confirm modal */
  @media (max-width: 480px) {
    .confirm-modal { margin: 0 12px; max-width: calc(100vw - 24px) !important; }
    .confirm-modal-icon { font-size: 28px; }
    .confirm-modal-title { font-size: 15px; }
    .confirm-modal-msg { font-size: 12px; }
  }

  /* Profile modal — foto profil */
  @media (max-width: 480px) {
    #profileModal .form-grid { grid-template-columns: 1fr !important; }
    .profile-photo-area { flex-direction: column; align-items: flex-start; }
  }

  .chart-container { position: relative; width: 100%; }
  .chart-bar-wrap { display: flex; flex-direction: column; gap: 8px; }
  .chart-bar-row { display: flex; align-items: center; gap: 10px; }
  .chart-bar-label { font-size: 12px; color: #666; width: 100px; text-align: right; flex-shrink: 0; }
  .chart-bar-track { flex: 1; height: 18px; background: var(--parchment); border-radius: 20px; overflow: hidden; }
  .chart-bar-fill { height: 100%; border-radius: 20px; transition: width .6s cubic-bezier(.4,0,.2,1); }
  .chart-bar-val { font-size: 12px; font-weight: 600; color: var(--ink); min-width: 28px; }
  .chart-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
  .chart-legend-item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #666; }
  .chart-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

  /* ===== DARK MODE TOGGLE ===== */
  .dark-toggle {
    background: var(--parchment); border: 1px solid var(--border);
    border-radius: 50%; width: 36px; height: 36px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; transition: all .15s; flex-shrink: 0;
  }
  .dark-toggle:hover { border-color: var(--gold); background: var(--gold-pale); }
  /* Ikon SVG topbar: terang di dark mode */
  body.dark-mode .dark-toggle svg { stroke: rgba(255,255,255,.85); }
  body.dark-mode .dark-toggle:hover svg { stroke: var(--gold); }

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

  body {
    font-family: 'Poppins', Arial, sans-serif;
    background: var(--parchment);
    color: var(--ink);
    min-height: 100vh;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
  }

  /* ===== SIDEBAR ===== */
  #sidebar {
    position: fixed; top: 0; left: 0;
    width: 260px; height: 100vh;
    background: #dddbd4;
    display: flex; flex-direction: column;
    z-index: 100; overflow: hidden;
    transition: width .3s cubic-bezier(.4,0,.2,1), background .3s;
  }
  #sidebar.minimized { width: 56px; }
  #sidebar.minimized .sidebar-text { display: none; }
  #sidebar.minimized .sidebar-header { padding: 12px 0; align-items: center; justify-content: center; }
  #sidebar.minimized .sidebar-logo-full { display: none; }
  #sidebar.minimized .sidebar-section-label { display: none; }
  #sidebar.minimized .journal-nav-item { padding: 10px 0; justify-content: center; gap: 0; }
  #sidebar.minimized .journal-nav-item .nav-count { display: none; }
  #sidebar.minimized .journal-nav-item span:last-child { display: none; }
  #sidebar.minimized .sidebar-actions { padding: 12px 8px; align-items: center; }
  #sidebar.minimized .btn-sidebar { padding: 7px; justify-content: center; font-size: 16px; }
  #sidebar.minimized .btn-sidebar .sidebar-text { display: none; }
  #sidebar.minimized .nav-item-icon { font-size: 18px; }

  .sidebar-header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(0,0,0,.10);
    display: flex; align-items: center; gap: 10px;
    flex-shrink: 0;
  }

  .sidebar-logo-full {
    flex: 1; min-width: 0;
  }
  .sidebar-logo {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 18px; font-weight: 700;
    color: #8a6a1a; letter-spacing: -.3px;
    white-space: nowrap;
  }
  body.dark-mode .sidebar-logo { color: var(--gold); }
  .sidebar-sub {
    font-size: 10px; color: rgba(0,0,0,.45);
    margin-top: 2px; letter-spacing: .5px; text-transform: uppercase;
    white-space: nowrap;
  }
  .sidebar-logo-icon {
    display: flex; font-size: 20px; color: #8a6a1a;
    width: 36px; height: 36px; align-items: center; justify-content: center;
    flex-shrink: 0; cursor: pointer; border-radius: 50%;
    transition: background .15s;
  }
  .sidebar-logo-icon:hover { background: rgba(0,0,0,.08); }
  body.dark-mode .sidebar-logo-icon { color: var(--gold); }
  body.dark-mode .sidebar-logo-icon:hover { background: rgba(255,255,255,.08); }

  /* Saat expanded: tampil ikon buku, sembunyikan hamburger */
  .sidebar-logo-icon .icon-expanded  { display: block; }
  .sidebar-logo-icon .icon-minimized { display: none; }

  /* Saat minimized: sembunyikan ikon buku, tampil hamburger */
  #sidebar.minimized .sidebar-logo-icon .icon-expanded  { display: none; }
  #sidebar.minimized .sidebar-logo-icon .icon-minimized { display: block; }

  /* Warna ikon hamburger: gelap di mode terang, terang di mode gelap */
  .sidebar-logo-icon .icon-minimized { stroke: rgba(0,0,0,.65); }
  body.dark-mode .sidebar-logo-icon .icon-minimized { stroke: rgba(255,255,255,.85); }

  .sidebar-pin-btn {
    width: 26px; height: 26px; border-radius: 6px;
    border: 1px solid rgba(0,0,0,.15); background: rgba(0,0,0,.06);
    color: rgba(0,0,0,.55); cursor: pointer; font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s; flex-shrink: 0;
  }
  .sidebar-pin-btn:hover { background: rgba(0,0,0,.14); color: #000; }

  .sidebar-section-label {
    padding: 14px 20px 5px;
    font-size: 10px; font-weight: 600;
    color: rgba(0,0,0,.55);
    letter-spacing: 1.2px; text-transform: uppercase;
    white-space: nowrap; flex-shrink: 0;
  }

  .sidebar-nav-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; }

  /* ===== SIDEBAR ISSUE DROPDOWN ===== */
  .sb-drag-handle {
    display: flex; align-items: center; justify-content: center;
    width: 14px; flex-shrink: 0; cursor: grab;
    color: rgba(255,255,255,.2); padding: 0 2px; align-self: stretch;
    transition: color .15s;
  }
  .sb-drag-handle:hover { color: rgba(255,255,255,.55); }
  .sb-drag-handle:active { cursor: grabbing; }
  #sidebar.minimized .sb-drag-handle { display: none; }
  .journal-nav-group.sidebar-dragging { opacity: .4; }
  .journal-nav-group.sidebar-drag-over > .journal-nav-item {
    border-top: 2px solid var(--gold);
  }

  .journal-nav-item {
    padding: 8px 12px 8px 10px;
    cursor: pointer; display: flex; align-items: center; gap: 8px;
    color: rgba(0,0,0,.82); font-size: 13px; font-weight: 400;
    transition: all .15s; border-left: 3px solid transparent;
    white-space: nowrap; min-height: 42px;
    overflow: hidden;
  }
  .journal-nav-item:hover { background: rgba(0,0,0,.06); color: #000; }
  .journal-nav-item.active {
    background: rgba(201,168,76,.18);
    color: #7a5c10; border-left-color: var(--gold);
    font-weight: 500;
  }
  .journal-nav-item .nav-count {
    margin-left: auto; font-family: 'Poppins', Arial, sans-serif;
    font-size: 11px; background: rgba(0,0,0,.10);
    padding: 1px 7px; border-radius: 20px;
    color: rgba(0,0,0,.60); flex-shrink: 0;
  }
  .journal-nav-item.active .nav-count { background: rgba(201,168,76,.25); color: #7a5c10; }
  .nav-item-icon {
    font-size: 11px; flex-shrink: 0;
    width: 26px; height: 26px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; background: rgba(0,0,0,.08);
    font-weight: 700; color: rgba(0,0,0,.7);
    transition: background .2s, color .2s;
  }
  .nav-item-icon img {
    width: 100%; height: 100%; object-fit: contain; border-radius: 50%;
  }
  /* minimized: ikon lingkaran penuh lebih besar */
  #sidebar.minimized .nav-item-icon {
    width: 36px; height: 36px; border-radius: 50%;
    font-size: 12px; font-weight: 700;
    background: rgba(0,0,0,.12);
    color: rgba(0,0,0,.75);
  }
  #sidebar.minimized .nav-item-icon img { border-radius: 50%; }

  /* Dark mode: teks gold pada ikon jurnal tanpa logo */
  body.dark-mode .nav-item-icon {
    background: rgba(255,255,255,.08); color: var(--gold);
  }
  body.dark-mode #sidebar.minimized .nav-item-icon {
    background: rgba(201,168,76,.15); color: var(--gold);
  }
  .nav-item-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; font-size: 13px; font-weight: 500; }
  .nav-item-num-inline { font-size: 10px; color: rgba(0,0,0,.35); white-space: nowrap; flex-shrink: 0; }

  /* chevron toggle */
  .nav-chevron {
    font-size: 10px; flex-shrink: 0; margin-left: 2px;
    transition: transform .2s; color: rgba(0,0,0,.50);
  }
  .journal-nav-group.open .nav-chevron { transform: rotate(90deg); }

  /* Sembunyikan issue-list saat sidebar minimized */
  #sidebar.minimized .issue-list { max-height: 0 !important; overflow: hidden; }
  #sidebar.minimized .issue-add-btn { display: none; }
  #sidebar.minimized .journal-nav-group.open .issue-list { max-height: 0 !important; }

  /* Flyout panel edisi saat sidebar minimized */
  .sidebar-flyout {
    position: fixed; left: 60px; top: 0;
    background: var(--cream); border: 1px solid var(--border);
    border-radius: 0 12px 12px 0;
    box-shadow: 4px 0 20px rgba(0,0,0,.15);
    min-width: 200px; max-width: 240px;
    z-index: 1050; padding: 8px 0;
    display: none; flex-direction: column;
    max-height: 70vh; overflow-y: auto;
  }
  .sidebar-flyout.open { display: flex; }
  .sidebar-flyout-title {
    padding: 10px 16px 6px;
    font-size: 11px; font-weight: 700; color: #888;
    text-transform: uppercase; letter-spacing: .5px;
    border-bottom: 1px solid var(--border); margin-bottom: 4px;
  }
  .sidebar-flyout-item {
    padding: 8px 16px; font-size: 12px; cursor: pointer;
    color: var(--ink); display: flex; align-items: center; gap: 8px;
    transition: background .1s;
  }
  .sidebar-flyout-item:hover { background: var(--parchment); }
  .sidebar-flyout-item.active {
    background: rgba(201,168,76,.12); color: #7a5c10; font-weight: 600;
    border-left: 3px solid var(--gold);
  }
  .sidebar-flyout-count {
    margin-left: auto; font-size: 10px;
    background: rgba(0,0,0,.08); padding: 1px 6px; border-radius: 10px;
    color: #888; flex-shrink: 0;
  }
  body.dark-mode .sidebar-flyout {
    background: #1a1c27; border-color: rgba(255,255,255,.1);
    box-shadow: 4px 0 20px rgba(0,0,0,.4);
  }
  body.dark-mode .sidebar-flyout-item { color: rgba(255,255,255,.8); }
  body.dark-mode .sidebar-flyout-item.active { background: rgba(201,168,76,.15); color: var(--gold); }

  /* issues sub-list */
  .issue-list {
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  .journal-nav-group.open .issue-list { max-height: 600px; }

  .issue-nav-item {
    padding: 7px 20px 7px 42px;
    cursor: pointer; display: flex; align-items: center; gap: 8px;
    color: rgba(0,0,0,.72); font-size: 12px;
    transition: all .15s; border-left: 3px solid transparent;
    white-space: nowrap;
  }
  .issue-nav-item:hover { background: rgba(0,0,0,.05); color: rgba(0,0,0,.80); }
  .issue-nav-item.active {
    background: rgba(201,168,76,.12);
    color: #7a5c10; border-left-color: rgba(201,168,76,.6);
    font-weight: 500;
  }
  .issue-nav-item .nav-count {
    margin-left: auto; font-size: 10px; background: rgba(0,0,0,.08);
    padding: 1px 6px; border-radius: 20px; color: rgba(0,0,0,.55);
  }
  .issue-nav-item.active .nav-count { background: rgba(201,168,76,.20); color: #7a5c10; }

  .issue-add-btn {
    padding: 5px 20px 5px 42px; font-size: 11px;
    color: rgba(0,0,0,.50); cursor: pointer;
    display: flex; align-items: center; gap: 6px;
    transition: color .15s;
  }
  .issue-add-btn:hover { color: var(--gold); }

  /* ===== ISSUE BADGE on topbar ===== */
  .topbar-issue-badge {
    font-size: 11px; font-weight: 600; padding: 3px 10px;
    border-radius: 20px; background: var(--gold-pale); color: #7a5c10;
    white-space: nowrap;
  }

  /* ===== ISSUE MANAGER in modal ===== */
  .issue-manager-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
  .issue-manager-row {
    display: flex; align-items: center; gap: 8px;
    background: var(--parchment); border: 1px solid var(--border);
    border-radius: 8px; padding: 8px 12px;
  }
  .issue-manager-row.active-issue { border-color: var(--gold); background: var(--gold-pale); }
  .issue-label { font-size: 13px; font-weight: 500; flex: 1; }
  .issue-meta { font-size: 11px; color: #aaa; }
  .issue-active-badge {
    font-size: 10px; padding: 2px 8px; border-radius: 12px;
    background: var(--gold); color: var(--ink); font-weight: 600;
  }

  .sidebar-actions {
    padding: 10px 12px; flex-shrink: 0;
    border-top: 1px solid rgba(0,0,0,.10);
    display: flex; flex-direction: column; gap: 2px;
    overflow: hidden;
  }

  .btn-sidebar {
    background: transparent; color: rgba(0,0,0,.65);
    border: none; border-radius: 10px;
    padding: 6px 10px; font-size: 12px; font-weight: 500;
    cursor: pointer; text-align: left; display: flex; align-items: center; gap: 9px;
    transition: all .15s; font-family: 'Poppins', Arial, sans-serif;
    white-space: nowrap; overflow: hidden; width: 100%;
  }
  .btn-sidebar:hover { background: rgba(0,0,0,.08); color: #000; }
  .btn-sidebar:hover .sb-icon { background: rgba(0,0,0,.12); }

  /* Ikon rounded untuk btn-sidebar */
  .sb-icon {
    width: 28px; height: 28px; border-radius: 8px;
    background: rgba(0,0,0,.07);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: background .15s;
  }
  .sb-icon svg { width: 15px; height: 15px; }

  /* Minimized: ikon lingkaran */
  #sidebar.minimized .sb-icon {
    width: 36px; height: 36px; border-radius: 50%;
  }
  #sidebar.minimized .btn-sidebar {
    padding: 6px; justify-content: center;
  }

  /* Logout button */
  .btn-sidebar-logout { color: var(--rust) !important; margin-top: 4px; border-top: 1px solid rgba(0,0,0,.08); padding-top: 8px; }
  .btn-sidebar-logout .sb-icon { background: rgba(184,92,56,.10); }
  .btn-sidebar-logout:hover { background: rgba(184,92,56,.08) !important; }
  .btn-sidebar-logout:hover .sb-icon { background: rgba(184,92,56,.18) !important; }

  body.dark-mode .btn-sidebar { color: rgba(255,255,255,.6); }
  body.dark-mode .btn-sidebar:hover { background: rgba(255,255,255,.07); color: rgba(255,255,255,.9); }
  body.dark-mode .sb-icon { background: rgba(255,255,255,.08); }
  body.dark-mode .btn-sidebar:hover .sb-icon { background: rgba(201,168,76,.22); }
  body.dark-mode .btn-sidebar-logout { color: #e07a5f !important; }
  body.dark-mode .btn-sidebar-logout .sb-icon { background: rgba(224,122,95,.12); }

  /* ===== MAIN ===== */
  #main {
    margin-left: 260px;
    min-height: 100vh;
    display: flex; flex-direction: column;
    transition: margin-left .3s cubic-bezier(.4,0,.2,1);
  }
  body.sidebar-minimized #main { margin-left: 56px; }

  /* ===== TOPBAR — SCROLL-RESPONSIVE ===== */
  .topbar {
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    display: flex; align-items: center; gap: 12px;
    position: sticky; top: 0; z-index: 50;
    height: 70px;
    overflow: hidden;
    transition: height .28s cubic-bezier(.4,0,.2,1),
                transform .28s cubic-bezier(.4,0,.2,1),
                box-shadow .28s, opacity .28s;
    box-shadow: 0 1px 4px var(--shadow);
    will-change: transform;
  }
  /* collapsed: slide up out of view */
  .topbar.tb-hidden {
    transform: translateY(-100%);
    box-shadow: none;
    pointer-events: none;
  }
  /* thin peek indicator when hidden */
  .topbar.tb-hidden::after {
    content: '▾';
    position: fixed; top: 0; left: 50%; transform: translateX(-50%);
    background: var(--gold); color: var(--ink);
    font-size: 11px; line-height: 1;
    padding: 2px 16px 3px;
    border-radius: 0 0 8px 8px;
    cursor: pointer; pointer-events: auto;
    box-shadow: 0 2px 8px var(--shadow-md);
    opacity: .85;
  }

  .topbar-title-wrap {
    display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1;
  }
  .topbar-title {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 15px; font-weight: 600; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    min-width: 0;
  }
  body.is-admin .topbar-title[onclick] { cursor: pointer; }
  body.is-admin .topbar-title[onclick]:hover { color: var(--gold); }
  .topbar-dash-btn {
    flex-shrink: 0; background: none; border: 1px solid var(--border);
    border-radius: 8px; cursor: pointer; color: #888;
    padding: 4px 8px; transition: all .15s; display: none;
    align-items: center; justify-content: center;
  }
  .topbar-dash-btn:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-pale); }
  body.dark-mode .topbar-dash-btn { border-color: rgba(255,255,255,.15); color: rgba(255,255,255,.4); }
  body.dark-mode .topbar-dash-btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,.1); }
  /* Topbar title: clickable untuk edit saat di jurnal */
  .topbar-title.editable { cursor: pointer; }
  .topbar-title.editable:hover { color: var(--gold); }
  .topbar-title.editable::after {
    content: '';
    display: inline-block; width: 6px; height: 6px;
    border-radius: 50%; background: var(--gold);
    margin-left: 6px; vertical-align: middle; opacity: .7;
  }
  .topbar-meta {
    font-size: 11px; color: #888; white-space: nowrap;
    display: flex; align-items: center; gap: 5px;
  }
  .topbar-accr-badge {
    font-size: 10px; font-weight: 700; padding: 2px 7px;
    border-radius: 5px; flex-shrink: 0; letter-spacing: .2px;
    transition: filter .15s;
  }
  .topbar-accr-badge:hover { filter: brightness(.9); }
  .topbar-publisher {
    font-size: 11px; color: #666; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
    font-style: italic;
  }
  body.dark-mode .topbar-publisher { color: rgba(255,255,255,.45); }
  .topbar-actions {
    margin-left: auto; display: flex; gap: 8px;
    align-items: center; flex-shrink: 0; min-width: 0;
  }

  /* search box sizing */
  .search-box {
    border: 1px solid var(--border); border-radius: 20px;
    padding: 0 14px 0 34px; font-size: 12px;
    font-family: 'Poppins', Arial, sans-serif;
    background: var(--parchment) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 12px center;
    color: var(--ink); width: 180px; height: 36px;
    transition: border-color .15s, width .2s, background .15s;
    box-sizing: border-box;
  }
  .search-box:focus { outline: none; border-color: var(--gold); width: 220px; background-color: var(--gold-pale); }
  body.dark-mode .search-box { background-color: var(--bg-input); color: var(--ink); }
  body.dark-mode .search-box:focus { background-color: var(--bg-input); border-color: var(--gold); }

  /* ── Responsive breakpoints ── */

  /* ≤1100px: shrink title, narrow search */
  @media (max-width: 1100px) {
    .topbar { padding: 0 20px; gap: 8px; }
    .topbar-title { font-size: 13px; }
    .search-box { width: 140px; }
    .search-box:focus { width: 170px; }
  }

  /* ≤860px: hide search text box (keep icon search), hide meta */
  @media (max-width: 860px) {
    .topbar-meta { display: none; }
    .search-box { display: none; }
    .topbar { padding: 0 16px; }
  }

  /* ≤640px: compact, semua ikon tetap tampil via overflow menu */
  @media (max-width: 640px) {
    .topbar { padding: 0 10px; gap: 4px; height: 60px; overflow: visible; }
    .topbar-title { font-size: 12px; }
    .topbar-actions { gap: 4px; }
    /* Sembunyikan ikon sekunder di layar kecil */
    .topbar-btn-report,
    .topbar-btn-calendar { display: none; }
    /* Tampilkan tombol "more" */
    .topbar-more-btn { display: flex !important; }
    .topbar-user-name,
    .topbar-user-role { display: none; }
    .topbar-user { padding: 4px 6px; gap: 0; }
    .topbar-user span[style*="▾"] { display: none; }
    .content { padding: 12px; }
    .issue-tab-bar { gap: 4px; }
    .issue-tab { font-size: 11px; padding: 5px 10px; }
    .card-header { padding: 10px 12px 8px; }
    .card-action-btn { width: 28px; height: 28px; }
    .card-drag-handle { width: 16px; }
    .modal { max-width: 100vw !important; border-radius: 14px 14px 0 0; }
    .modal-overlay { align-items: flex-end; }
    .issue-mini-stats { flex-wrap: wrap; }
    .issue-mini-stat { min-width: 50%; border-right: none !important; border-bottom: 1px solid var(--border); }
  }

  /* ≤400px: ultra compact */
  @media (max-width: 400px) {
    .topbar-title { font-size: 11px; }
    .notif-btn, .dark-toggle { width: 30px; height: 30px; font-size: 13px; }
  }

  /* Tombol more — default tersembunyi, tampil di layar kecil */
  .topbar-more-btn {
    display: none;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--parchment); border: 1px solid var(--border);
    cursor: pointer; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all .15s; position: relative;
  }
  .topbar-more-btn:hover { border-color: var(--gold); background: var(--gold-pale); }
  body.dark-mode .topbar-more-btn svg { stroke: rgba(255,255,255,.85); }

  /* Dropdown panel dari tombol more */
  .topbar-more-panel {
    display: none; position: fixed;
    top: 54px; right: 10px;
    background: var(--cream); border: 1px solid var(--border);
    border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.15);
    padding: 8px; z-index: 200;
    flex-direction: column; gap: 4px; min-width: 180px;
  }
  .topbar-more-panel.open { display: flex; }
  .topbar-more-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; border-radius: 8px; cursor: pointer;
    font-size: 12px; font-weight: 500; color: var(--ink);
    background: none; border: none; font-family: 'Poppins',Arial,sans-serif;
    transition: background .1s; text-align: left; width: 100%;
  }
  .topbar-more-item:hover { background: var(--parchment); }
  .topbar-more-item svg { flex-shrink: 0; }
  body.dark-mode .topbar-more-panel {
    background: #1a1c27; border-color: rgba(255,255,255,.1);
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
  }
  body.dark-mode .topbar-more-item { color: rgba(255,255,255,.8); }
  body.dark-mode .topbar-more-item:hover { background: rgba(255,255,255,.07); }

  .btn { border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 500;
    cursor: pointer; border: none; font-family: 'Poppins', Arial, sans-serif;
    display: inline-flex; align-items: center; gap: 6px; transition: all .15s; }
  .btn-primary { background: var(--gold); color: var(--ink); }
  .btn-primary:hover { background: #b8943d; }
  .btn-secondary { background: var(--parchment); border: 1px solid var(--border); color: var(--ink); }
  .btn-secondary:hover { background: var(--border); }
  .btn-danger { background: var(--rust); color: #fff; }
  .btn-danger:hover { background: #a04d2e; }
  .btn-sm { padding: 5px 10px; font-size: 12px; }

  /* ===== CONTENT ===== */
  .content { padding: 28px 32px; flex: 1; }

  /* ===== FILE UPLOAD WIDGET ===== */
  .file-upload-group {
    border: 1.5px dashed var(--border); border-radius: 8px;
    padding: 10px 14px; background: var(--parchment);
    display: flex; flex-direction: column; gap: 6px;
  }
  .file-upload-group:hover { border-color: var(--gold); }
  .file-upload-row {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  }
  .file-upload-label {
    font-size: 12px; font-weight: 600; color: #666; min-width: 120px;
  }
  .pct-input {
    width: 70px; padding: 5px 8px; font-size: 13px; text-align: center;
    border: 1px solid var(--border); border-radius: 6px;
    background: var(--cream); font-family: 'Poppins', Arial, sans-serif;
  }
  .pct-unit { font-size: 12px; color: #888; }
  .file-pick-btn {
    padding: 5px 12px; font-size: 12px; border-radius: 6px;
    border: 1px solid var(--border); background: var(--cream);
    cursor: pointer; font-family: 'Poppins', Arial, sans-serif;
    color: var(--ink); transition: all .15s; display: inline-flex; align-items: center; gap: 5px;
  }
  .file-pick-btn:hover { border-color: var(--gold); color: var(--gold); }
  .file-name-display {
    font-size: 11px; color: var(--slate); font-family: 'Poppins', Arial, sans-serif;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px;
  }
  .file-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; padding: 2px 8px; border-radius: 12px;
    font-weight: 500;
  }
  .file-badge-turnitin { background: #fff3e0; color: #e65100; }
  .file-badge-ai { background: var(--lavender-light); color: var(--lavender); }
  .pct-high { color: var(--rust); font-weight: 700; }
  .pct-mid { color: #c8920a; font-weight: 600; }
  .pct-low { color: var(--sage); font-weight: 600; }

  /* ===== CONFIRM MODAL ===== */
  .confirm-modal {
    background: var(--cream); border-radius: 14px;
    width: 400px; max-width: 94vw;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    transform: translateY(12px) scale(.97); transition: transform .2s;
    overflow: hidden;
  }
  .modal-overlay.open .confirm-modal { transform: translateY(0) scale(1); }
  .confirm-modal-icon { font-size: 36px; text-align: center; padding: 24px 24px 0; }
  .confirm-modal-title {
    font-family: 'Poppins', Arial, sans-serif; font-size: 18px; font-weight: 700;
    text-align: center; padding: 10px 24px 6px;
  }
  .confirm-modal-msg {
    font-size: 13px; color: #666; text-align: center;
    padding: 0 24px 20px; line-height: 1.6;
  }
  .confirm-modal-footer {
    display: flex; gap: 10px; padding: 16px 24px;
    border-top: 1px solid var(--border); justify-content: center;
  }

  /* ===== STATS STRIP ===== */
  .stats-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
  .stats-toggle-btn {
    background: none; border: 1px solid var(--border); border-radius: 6px;
    padding: 3px 10px; font-size: 11px; font-weight: 600; cursor: pointer;
    color: #888; font-family: 'Poppins', Arial, sans-serif;
    display: flex; align-items: center; gap: 5px; transition: all .15s;
  }
  .stats-toggle-btn:hover { border-color: var(--gold); color: var(--gold); }
  .stats-section-label { font-size: 11px; font-weight: 600; color: #aaa; text-transform: uppercase; letter-spacing: .8px; flex: 1; }

  /* ===== STATS / PIPELINE ===== */
  .stats-strip-wrap {
    overflow: hidden;
    transition: max-height .35s ease, opacity .3s ease, margin-bottom .3s ease;
    max-height: 300px; opacity: 1; margin-bottom: 14px;
  }
  .stats-strip-wrap.collapsed { max-height: 0; opacity: 0; margin-bottom: 0; }
  .stats-strip {
    display: flex; flex-direction: column; gap: 10px;
    padding: 14px 16px; border: 1px solid var(--border);
    border-radius: 12px; background: var(--cream);
  }
  .stat-cards-row {
    display: flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  }
  /* stat-card: angka di atas, label di bawah */
  .stat-card {
    background: var(--cream); border: none; border-right: 1px solid var(--border);
    padding: 8px 6px; flex: 1; cursor: pointer; transition: background .12s;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
  }
  .stat-card:last-child { border-right: none; }
  .stat-card:hover, .stat-card.active { background: var(--gold-pale); }
  .stat-value { font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.1; }
  .stat-label { font-size: 10px; color: #999; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
  .stat-card.gold     .stat-value { color: var(--gold); }
  .stat-card.sage     .stat-value { color: var(--sage); }
  .stat-card.rust     .stat-value { color: var(--rust); }
  .stat-card.slate    .stat-value { color: var(--slate); }
  .stat-card.lavender .stat-value { color: var(--lavender); }
  .stat-card.teal     .stat-value { color: #2a7f7f; }
  .stat-card.red      .stat-value { color: #c0392b; }

  /* issue-mini-stat: sama ukuran dengan stat-card pipeline */
  .issue-mini-stats {
    display: flex; gap: 0; border-bottom: 1px solid var(--border);
  }
  .issue-mini-stat {
    flex: 1; padding: 8px 6px; text-align: center;
    border-right: 1px solid var(--border); cursor: pointer; transition: background .12s;
  }
  .issue-mini-stat:last-child { border-right: none; }
  .issue-mini-stat:hover { background: var(--gold-pale); }
  .issue-mini-stat-val {
    font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.1;
  }
  .issue-mini-stat-lbl {
    font-size: 10px; color: #aaa; text-transform: uppercase; letter-spacing: .4px; margin-top: 2px;
  }
  .issue-mini-stat.sage    .issue-mini-stat-val { color: var(--sage); }
  .issue-mini-stat.slate   .issue-mini-stat-val { color: var(--slate); }
  .issue-mini-stat.gold    .issue-mini-stat-val { color: var(--gold); }
  .issue-mini-stat.rust    .issue-mini-stat-val { color: var(--rust); }
  .issue-mini-stat.lavender .issue-mini-stat-val { color: var(--lavender); }
  .issue-mini-stat.red     .issue-mini-stat-val { color: #c0392b; }

  /* Responsif issue-mini-stats: 6 kolom → wrap di layar kecil */
  @media (max-width: 640px) {
    .issue-mini-stats { flex-wrap: wrap; }
    .issue-mini-stat {
      flex: 1 1 calc(33.33% - 1px);
      min-width: calc(33.33% - 1px);
      border-bottom: 1px solid var(--border);
    }
    /* Baris 1: kolom 1,2,3 — hapus border-bottom baris terakhir (4,5,6) */
    .issue-mini-stat:nth-last-child(-n+3) { border-bottom: none; }
    /* Kolom ke-3 tiap baris: hapus border-right */
    .issue-mini-stat:nth-child(3n) { border-right: none; }
    .issue-mini-stat-val { font-size: 16px; }
    .issue-mini-stat-lbl { font-size: 9px; }
  }
  @media (max-width: 380px) {
    .issue-mini-stat { flex: 1 1 50%; min-width: 50%; }
    /* Reset rule 3n, terapkan 2n */
    .issue-mini-stat:nth-child(3n)        { border-right: 1px solid var(--border); }
    .issue-mini-stat:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
    .issue-mini-stat:nth-child(2n)        { border-right: none; }
    /* 6 item dalam 2 kolom = 3 baris, baris terakhir = item 5,6 */
    .issue-mini-stat:nth-last-child(-n+2) { border-bottom: none; }
    .issue-mini-stat-val { font-size: 15px; }
  }
  .pipeline-bar {
    display: flex; height: 22px; border-radius: 6px; overflow: hidden; gap: 2px;
  }
  .pipeline-seg {
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700; color: #fff;
    cursor: pointer; transition: filter .12s; border-radius: 4px;
    overflow: hidden; min-width: 0; white-space: nowrap;
  }
  .pipeline-seg:hover { filter: brightness(1.15); }
  .pipeline-seg span { padding: 0 5px; overflow: hidden; text-overflow: ellipsis; }
  .completion-track { height: 5px; background: var(--border); border-radius: 4px; overflow: hidden; }
  .completion-fill { height: 100%; border-radius: 4px; background: var(--sage); transition: width .5s cubic-bezier(.4,0,.2,1); }
  /* Responsif control bar */

  /* ===== ISSUE CONTROL BAR ===== */
  .issue-control-bar {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 12px; flex-wrap: wrap;
  }
  .issue-control-title {
    font-size: 15px; font-weight: 700; color: var(--ink);
    flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px;
    overflow: hidden;
  }
  .issue-control-title > span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .issue-control-sub { font-size: 11px; color: #999; font-weight: 400; white-space: nowrap; flex-shrink: 0; }

  /* Tombol + Artikel Baru — gaya sama dengan issue-ctrl-btn */
  .btn-add-article {
    display: inline-flex; align-items: center; gap: 5px;
    border: 1px solid var(--border); border-radius: 7px;
    background: none; padding: 4px 10px;
    font-size: 11px; font-weight: 600; cursor: pointer;
    color: #888; font-family: 'Poppins', Arial, sans-serif;
    transition: all .15s; flex-shrink: 0; white-space: nowrap;
  }
  .btn-add-article:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-pale); }
  body.dark-mode .btn-add-article { border-color: rgba(255,255,255,.15); color: rgba(255,255,255,.5); }
  body.dark-mode .btn-add-article:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,.1); }

  /* Sembunyikan tombol Artikel Baru di topbar — sudah ada di control bar edisi */
  #topbarAddArticleBtn { display: none !important; }

  /* Tombol kontrol kecil: Filter & Show/Hide */
  .issue-ctrl-btn {
    display: inline-flex; align-items: center; gap: 5px;
    border: 1px solid var(--border); border-radius: 7px;
    background: none; padding: 4px 10px;
    font-size: 11px; font-weight: 600; cursor: pointer;
    color: #888; font-family: 'Poppins', Arial, sans-serif;
    transition: all .15s; flex-shrink: 0; white-space: nowrap; position: relative;
  }
  .issue-ctrl-btn:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-pale); }
  .issue-ctrl-btn.active { border-color: var(--ink); background: var(--ink); color: #fff; }
  .issue-ctrl-btn.active:hover { border-color: var(--gold); background: var(--gold); color: #fff; }
  body.dark-mode .issue-ctrl-btn { border-color: rgba(255,255,255,.15); color: rgba(255,255,255,.5); }
  body.dark-mode .issue-ctrl-btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,.1); }
  body.dark-mode .issue-ctrl-btn.active { border-color: var(--gold); background: rgba(201,168,76,.18); color: var(--gold); }

  /* Badge filter aktif */
  .filter-active-badge {
    background: var(--gold); color: #111;
    border-radius: 10px; font-size: 9px; font-weight: 700;
    padding: 1px 6px; margin-left: 2px;
  }

  /* ===== FILTER POPUP ===== */
  .filter-popup {
    position: fixed; z-index: 501;
    background: var(--cream); border: 1px solid var(--border);
    border-radius: 12px; padding: 6px;
    box-shadow: 0 8px 28px var(--shadow-md);
    min-width: 200px;
    animation: fpIn .15s ease;
  }
  @keyframes fpIn {
    from { opacity:0; transform: translateY(-6px) scale(.97); }
    to   { opacity:1; transform: translateY(0) scale(1); }
  }
  .filter-popup-label {
    font-size: 10px; font-weight: 700; color: #bbb;
    text-transform: uppercase; letter-spacing: .6px;
    padding: 4px 10px 6px; border-bottom: 1px solid var(--border); margin-bottom: 4px;
  }
  .filter-popup-item {
    display: flex; align-items: center; gap: 9px;
    padding: 7px 10px; border-radius: 7px; cursor: pointer;
    font-size: 12px; font-weight: 500; color: var(--ink); transition: background .1s;
  }
  .filter-popup-item:hover { background: var(--parchment); }
  .filter-popup-item.active { background: var(--gold-pale); }
  body.dark-mode .filter-popup-item:hover { background: rgba(255,255,255,.06); }
  body.dark-mode .filter-popup-item.active { background: rgba(201,168,76,.12); }
  .filter-popup-dot { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
  .filter-popup-count { margin-left: auto; font-size: 11px; color: #aaa; font-weight: 600; }
  .filter-popup-check { margin-left: 4px; color: var(--gold); flex-shrink: 0; }
  @media (max-width: 640px) {
    .filter-popup {
      position: fixed !important; left: 12px !important; right: 12px !important;
      bottom: 16px !important; top: auto !important;
      min-width: unset; border-radius: 14px;
      animation: fpInMobile .2s ease;
    }
    @keyframes fpInMobile {
      from { opacity:0; transform: translateY(10px); }
      to   { opacity:1; transform: translateY(0); }
    }
  }

  /* Responsif control bar */
  @media (max-width: 480px) {
    .issue-control-title { font-size: 13px; }
    .issue-ctrl-btn { padding: 4px 8px; font-size: 10px; }
    .btn-add-article { padding: 4px 8px; font-size: 10px; }
    .stat-value { font-size: 15px; }
    .stat-label { font-size: 9px; }
    .pipeline-bar { height: 18px; }
    .stats-strip { padding: 10px 12px; gap: 8px; }
  }
  @media (max-width: 360px) {
    .issue-control-bar { gap: 5px; }
    .issue-ctrl-btn { padding: 3px 7px; }
  }

  /* Responsif stat-cards-row: wrap di layar kecil */
  @media (max-width: 640px) {
    .stats-strip-wrap { max-height: 500px; }
    .stat-cards-row {
      flex-wrap: wrap;
      border-radius: 10px;
      overflow: hidden;
    }
    .stat-card {
      /* 4 kartu per baris: Total + 3 status pertama di baris 1,
         sisanya di baris 2 dst */
      flex: 1 1 calc(25% - 1px);
      min-width: calc(25% - 1px);
      border-right: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }
    .stat-card:last-child { border-right: none; }
    /* Hapus border bawah pada baris terakhir (4 kartu terakhir dari 8) */
    .stat-card:nth-last-child(-n+4) { border-bottom: none; }
    /* Hapus border kanan setiap kartu ke-4 */
    .stat-card:nth-child(4n) { border-right: none; }
  }

  @media (max-width: 400px) {
    .stat-cards-row { }
    .stat-card {
      flex: 1 1 calc(33.33% - 1px);
      min-width: calc(33.33% - 1px);
    }
    /* Reset nth rules lama, terapkan untuk 3 per baris */
    .stat-card:nth-child(4n)       { border-right: 1px solid var(--border); }
    .stat-card:nth-last-child(-n+4){ border-bottom: 1px solid var(--border); }
    .stat-card:nth-child(3n)       { border-right: none; }
    /* 8 kartu dalam 3 kolom = 3 baris (3+3+2), baris terakhir 2 kartu */
    .stat-card:nth-last-child(-n+2){ border-bottom: none; }
    .stat-value { font-size: 14px; }
    .stat-label { font-size: 8px; letter-spacing: 0; }
    .stats-strip-wrap { max-height: 600px; }
  }

  /* ===== ISSUE TAB BAR ===== */
  .issue-tab-bar {
    display: flex; gap: 6px; flex-wrap: wrap;
    margin-bottom: 18px; align-items: center;
  }
  .issue-tab {
    padding: 6px 14px; border-radius: 8px; border: 1px solid var(--border);
    background: var(--cream); font-size: 12px; font-weight: 500; cursor: pointer;
    color: #666; font-family: 'Poppins', Arial, sans-serif; transition: all .15s;
    display: inline-flex; align-items: center; gap: 6px;
  }
  .issue-tab:hover { border-color: var(--gold); color: var(--gold); }
  .issue-tab.active {
    background: var(--ink); color: #fff; border-color: var(--ink);
  }
  .issue-tab-count {
    font-size: 10px; background: rgba(0,0,0,.1); padding: 1px 6px;
    border-radius: 10px; font-weight: 600;
  }
  .issue-tab.active .issue-tab-count { background: rgba(255,255,255,.2); }
  .issue-tab-add {
    border-style: dashed; color: var(--sage); border-color: var(--sage);
    background: var(--sage-light);
  }
  .issue-tab-add:hover { background: var(--sage); color: #fff; }

  /* ===== ISSUE OVERVIEW (Semua Edisi view) ===== */
  .issue-overview-grid {
    display: flex; flex-direction: column; gap: 24px;
  }
  .issue-overview-block {
    background: var(--cream); border: 1px solid var(--border);
    border-radius: 14px; overflow: hidden;
    border-left: 5px solid var(--slate);
  }
  .issue-overview-header {
    padding: 12px 16px; background: var(--slate-light);
    display: flex; align-items: center; gap: 10px;
    border-bottom: 1px solid var(--border); cursor: pointer;
    transition: background .15s;
  }
  .issue-overview-header:hover { background: #dde3f0; }
  .issue-overview-title {
    font-size: 14px; font-weight: 700; color: var(--ink); flex: 1;
    display: flex; align-items: center; gap: 6px;
  }
  .issue-overview-meta { font-size: 12px; color: #888; flex-shrink: 0; }
  .issue-mini-stats {
    display: flex; gap: 0; border-bottom: 1px solid var(--border);
  }
  .issue-articles-list {
    padding: 12px 16px; display: flex; flex-direction: column; gap: 8px;
  }
  .issue-article-row {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 8px;
    background: var(--parchment); border: 1px solid var(--border);
    cursor: pointer; transition: border-color .15s, background .15s;
  }
  .issue-article-row:hover { border-color: var(--gold); background: var(--gold-pale); }
  .issue-article-num {
    font-family: 'Poppins', Arial, sans-serif; font-size: 11px;
    color: #bbb; min-width: 20px; font-weight: 600;
  }
  .issue-article-info { flex: 1; min-width: 0; }
  .issue-article-title {
    font-size: 13px; font-weight: 600; color: var(--ink);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-style: italic;
  }
  .issue-article-authors {
    font-size: 11px; color: #888; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
  }
  .issue-no-articles {
    padding: 16px 20px; font-size: 13px; color: #bbb; text-align: center;
    font-style: italic;
  }

  /* ===== FILTER BAR ===== */
  /* ===== DASHBOARD LAMAN UTAMA ===== */
  .dashboard-header {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px; margin-bottom: 20px;
  }
  .dashboard-title {
    font-size: 18px; font-weight: 700; color: var(--ink);
    display: flex; align-items: center; gap: 8px;
  }
  .dashboard-title-sub { font-size: 12px; color: #aaa; font-weight: 400; }
  .dashboard-year-selector {
    display: flex; align-items: center; gap: 8px;
    background: var(--cream); border: 1px solid var(--border);
    border-radius: 10px; padding: 6px 12px;
  }
  .dashboard-year-selector select {
    font-size: 13px; font-weight: 600; border: none; background: transparent;
    color: var(--ink); cursor: pointer; font-family: inherit; outline: none;
  }
  .dashboard-summary {
    display: flex; gap: 0;
    background: var(--cream); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden; margin-bottom: 20px;
  }
  .dashboard-summary-item {
    flex: 1; padding: 14px 16px; text-align: center;
    border-right: 1px solid var(--border);
  }
  .dashboard-summary-item:last-child { border-right: none; }
  .dashboard-summary-val {
    font-size: 26px; font-weight: 700; color: var(--ink); line-height: 1;
  }
  .dashboard-summary-lbl {
    font-size: 10px; color: #aaa; text-transform: uppercase;
    letter-spacing: .5px; margin-top: 4px; font-weight: 600;
  }
  .dashboard-grid { display: flex; flex-direction: column; gap: 18px; }

  /* Journal card — vertical stack */
  .db-journal-card {
    background: var(--cream); border: 1px solid var(--border);
    border-radius: 14px; overflow: hidden;
    border-left: 4px solid var(--gold);
    transition: box-shadow .2s;
  }
  .db-journal-card:hover { box-shadow: 0 4px 20px var(--shadow-md); }

  /* ① Header */
  .db-journal-header {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px; cursor: pointer;
    background: var(--parchment); transition: background .15s;
  }
  .db-journal-header:hover { background: var(--gold-pale); }
  .db-journal-logo {
    width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--cream);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0;
    font-size: 11px; font-weight: 700; color: #aaa;
  }
  .db-journal-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
  .db-journal-identity { flex: 1; min-width: 0; }
  .db-journal-name {
    font-size: 15px; font-weight: 700; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .db-journal-meta {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px;
  }
  .db-journal-meta-item {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 11px; color: #888;
  }
  .db-journal-meta-item a { color: var(--slate); text-decoration: none; }
  .db-journal-meta-item a:hover { color: var(--gold); }
  .db-meta-sep { color: #ccc; font-size: 10px; }

  /* ② Statistik per edisi */
  .db-issues-section {
    border-top: 1px solid var(--border);
    padding: 14px 18px;
  }
  .db-section-title {
    font-size: 10px; font-weight: 700; color: #bbb;
    text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px;
  }
  .db-issue-block { margin-bottom: 12px; }
  .db-issue-block:last-child { margin-bottom: 0; }
  .db-issue-label {
    font-size: 12px; font-weight: 600; color: var(--ink);
    margin-bottom: 6px; display: flex; align-items: center; gap: 6px;
    cursor: pointer;
  }
  .db-issue-label:hover { color: var(--gold); }
  /* stat-cards-row reuse dari pipeline */
  .db-issue-stats {
    display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  }
  .db-issue-stat {
    flex: 1; padding: 6px 4px; text-align: center;
    border-right: 1px solid var(--border);
    cursor: pointer; transition: background .12s;
    display: flex; flex-direction: column; align-items: center; gap: 1px;
  }
  .db-issue-stat:last-child { border-right: none; }
  .db-issue-stat:hover { background: var(--gold-pale); }
  .db-issue-stat-val { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.1; }
  .db-issue-stat-lbl { font-size: 9px; color: #aaa; text-transform: uppercase; letter-spacing: .3px; font-weight: 600; }

  /* ③ Tim */
  .db-people-section {
    border-top: 1px solid var(--border);
    padding: 12px 18px;
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  }
  .db-person-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--parchment); border: 1px solid var(--border);
    border-radius: 20px; padding: 3px 10px 3px 4px;
    transition: border-color .15s, background .15s;
  }
  .db-person-chip:hover { border-color: var(--gold); background: var(--gold-pale); }
  .db-person-avatar {
    width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700; color: #fff; flex-shrink: 0;
  }
  .db-person-name { font-size: 12px; font-weight: 500; color: var(--ink); }
  .db-person-role-badge {
    font-size: 9px; padding: 1px 5px; border-radius: 6px;
    background: rgba(0,0,0,.07); color: #888; font-weight: 600;
  }
  /* User identity popup */
  .user-identity-popup {
    position: fixed; z-index: 600;
    background: var(--cream); border: 1px solid var(--border);
    border-radius: 14px; box-shadow: 0 8px 32px var(--shadow-md);
    padding: 20px; min-width: 240px; max-width: 92vw;
    animation: fpIn .18s ease;
  }
  .user-identity-overlay { position: fixed; inset: 0; z-index: 599; }
  .user-id-avatar {
    width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700; color: #fff;
    margin: 0 auto 10px; overflow: hidden; position: relative;
  }
  .user-id-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:50%; }
  .user-id-name { font-size: 15px; font-weight: 700; color: var(--ink); text-align: center; }
  .user-id-username { font-size: 12px; color: #aaa; text-align: center; margin-top: 2px; }
  .user-id-divider { height: 1px; background: var(--border); margin: 12px 0; }
  .user-id-row { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 6px; font-size: 12px; }
  .user-id-lbl { color: #aaa; font-weight: 600; min-width: 64px; flex-shrink: 0; }
  .user-id-val { color: var(--ink); word-break: break-all; }
  @media (max-width: 480px) {
    .user-identity-popup { left: 12px !important; right: 12px !important; bottom: 16px !important; top: auto !important; }
  }

  /* Responsive */
  @media (max-width: 640px) {
    .db-journal-header { padding: 12px 14px; }
    .db-journal-logo { width: 38px; height: 38px; font-size: 10px; }
    .db-journal-name { font-size: 13px; }
    .db-issues-section { padding: 12px 14px; }
    .db-people-section { padding: 10px 14px; }
    .db-issue-stat-val { font-size: 14px; }
    .dashboard-summary-val { font-size: 20px; }
  }
  @media (max-width: 480px) {
    .db-issue-stats { flex-wrap: wrap; }
    .db-issue-stat { flex: 1 1 calc(33.33% - 1px); border-bottom: 1px solid var(--border); }
    .db-issue-stat:nth-child(3n) { border-right: none; }
    .db-issue-stat:nth-last-child(-n+3) { border-bottom: none; }
    .dashboard-summary { flex-wrap: wrap; }
    .dashboard-summary-item { flex: 1 1 50%; border-bottom: 1px solid var(--border); }
    .dashboard-summary-item:nth-child(2n) { border-right: none; }
    .dashboard-summary-item:nth-last-child(-n+2) { border-bottom: none; }
  }
  .article-card-ghost {
    background: transparent;
    border: 2px dashed var(--border);
    border-radius: 12px; border-left: 2px dashed var(--border);
    cursor: pointer;
    transition: border-color .2s, background .2s;
    display: flex; align-items: center; justify-content: center;
    padding: 20px 18px; gap: 14px;
    color: #bbb;
  }
  .article-card-ghost:hover {
    border-color: var(--gold);
    background: var(--gold-pale);
    color: var(--gold);
  }
  .article-card-ghost .ghost-num {
    font-size: 11px; font-weight: 500; color: inherit;
    min-width: 22px; padding-top: 2px; opacity: .6;
  }
  .article-card-ghost .ghost-icon {
    width: 32px; height: 32px; border-radius: 50%;
    border: 2px dashed currentColor;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: border-color .2s;
  }
  .article-card-ghost .ghost-text {
    flex: 1;
  }
  .article-card-ghost .ghost-title {
    font-size: 13px; font-weight: 600; color: inherit;
    font-style: italic;
  }
  .article-card-ghost .ghost-sub {
    font-size: 11px; color: inherit; opacity: .7; margin-top: 3px;
  }
  body.dark-mode .article-card-ghost { border-color: rgba(255,255,255,.15); color: rgba(255,255,255,.3); }
  body.dark-mode .article-card-ghost:hover { border-color: var(--gold); background: rgba(201,168,76,.1); color: var(--gold); }
  .articles-list { display: flex; flex-direction: column; gap: 14px; }

  .article-card {
    background: var(--cream); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden;
    transition: box-shadow .25s, border-color .25s, transform .2s;
    border-left: 4px solid transparent;
    will-change: transform;
  }
  .article-card:hover {
    box-shadow: 0 6px 24px var(--shadow-md);
    border-color: rgba(201,168,76,.35);
    transform: translateY(-1px);
  }
  .article-card.card-hover-expanded {
    box-shadow: 0 8px 32px var(--shadow-md);
    border-color: rgba(201,168,76,.45);
    transform: translateY(-2px);
  }

  /* Card body: animasi smooth dengan max-height untuk expand/collapse via hover */
  .card-body-hover-wrap {
    overflow: hidden;
    max-height: 0;
    transition: max-height .35s cubic-bezier(.4,0,.2,1), opacity .3s ease;
    opacity: 0;
  }
  .card-body-hover-wrap.hover-open {
    max-height: 600px;
    opacity: 1;
  }
  /* Preview singkat yang selalu terlihat di hover (sebelum expand penuh) */
  .card-hover-preview {
    display: none;
    padding: 0 18px 10px 52px;
    font-size: 11.5px; color: #888; line-height: 1.5;
    border-top: 1px solid var(--border);
    overflow: hidden;
    max-height: 0; opacity: 0;
    transition: max-height .25s ease, opacity .2s ease;
  }
  .article-card:hover .card-hover-preview:not(.hidden-preview) {
    display: block;
  }
  .card-hover-preview.preview-visible {
    max-height: 80px; opacity: 1;
  }
  .article-card.status-published   { border-left-color: var(--sage); }
  .article-card.status-review      { border-left-color: var(--slate); }
  .article-card.status-revision    { border-left-color: var(--gold); }
  .article-card.status-editorial   { border-left-color: var(--rust); }
  .article-card.status-copyediting { border-left-color: var(--lavender); }
  .article-card.status-pending     { border-left-color: #bbb; }
  .article-card.status-rejected    { border-left-color: #c0392b; }

  .card-header {
    padding: 14px 18px 12px;
    display: flex; align-items: center; gap: 12px; cursor: pointer;
  }

  .card-number {
    font-family: 'Poppins', Arial, sans-serif; font-size: 11px; font-weight: 500;
    color: #aaa; padding-top: 3px; min-width: 22px;
  }

  .card-main { flex: 1; min-width: 0; }

  .card-title {
    font-size: 14px; font-weight: 600; color: var(--ink);
    line-height: 1.4; margin-bottom: 5px;
    font-style: italic;
  }

  .card-authors {
    font-size: 12px; color: #666; margin-bottom: 8px;
  }

  .card-meta {
    display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  }

  .badge {
    font-size: 11px; font-weight: 500; padding: 3px 9px; border-radius: 20px;
    display: inline-flex; align-items: center; gap: 4px;
  }
  .badge-published  { background: var(--sage-light);     color: var(--sage); }
  .badge-review     { background: var(--slate-light);    color: var(--slate); }
  .badge-revision   { background: var(--gold-pale);      color: #8a6a1a; }
  .badge-editorial  { background: var(--rust-light);     color: var(--rust); }
  .badge-copyediting{ background: var(--lavender-light); color: var(--lavender); }
  .badge-pending    { background: #f0f0f0;               color: #888; }
  .badge-rejected   { background: #fde8e8;               color: #c0392b; }
  .badge-se { background: var(--gold-pale); color: #7a5c10; }
  .badge-url { background: var(--slate-light); color: var(--slate); cursor: pointer; }

  .card-actions {
    display: flex; flex-direction: column; align-items: center;
    gap: 4px; flex-shrink: 0; justify-content: center;
    padding-left: 12px; margin-left: auto;
    border-left: 1px solid var(--border);
  }
  body.dark-mode .card-actions { border-left-color: rgba(255,255,255,.08); }

  /* Tombol aksi — lingkaran seperti ikon topbar */
  .card-action-btn {
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--parchment);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0;
    transition: border-color .15s, background .15s, color .15s;
    color: #999;
  }
  .card-action-btn svg { display: block; }
  .card-action-btn:hover { border-color: var(--gold); background: var(--gold-pale); color: var(--ink); }
  .card-action-btn.edit:hover  { border-color: var(--gold);  background: var(--gold-pale);    color: #8a6a1a; }
  .card-action-btn.assign:hover{ border-color: var(--slate); background: var(--slate-light);  color: var(--slate); }
  .card-action-btn.delete:hover{ border-color: var(--rust);  background: var(--rust-light);   color: var(--rust); }

  body.dark-mode .card-action-btn { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: rgba(255,255,255,.4); }
  body.dark-mode .card-action-btn:hover { border-color: var(--gold); background: rgba(201,168,76,.12); color: var(--gold); }
  body.dark-mode .card-action-btn.assign:hover { border-color: var(--slate); background: var(--slate-light); color: var(--slate); }
  body.dark-mode .card-action-btn.delete:hover { border-color: #e07a5f; background: var(--rust-light); color: #e07a5f; }

  /* Drag handle — muncul di kiri card saat drag mode */
  .card-drag-handle {
    display: flex; align-items: center; justify-content: center;
    width: 20px; flex-shrink: 0; cursor: grab; color: #ccc;
    padding: 0 2px; align-self: stretch;
    transition: color .15s;
  }
  .card-drag-handle:hover { color: var(--gold); }
  .card-drag-handle:active { cursor: grabbing; }
  body.dark-mode .card-drag-handle { color: rgba(255,255,255,.2); }

  /* Card drag state */
  .article-card.dragging {
    opacity: .4; box-shadow: none;
  }
  .article-card.drag-over {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 2px var(--gold-light);
  }

  /* ===== EXPANDED CARD ===== */
  .card-body {
    padding: 0 18px 20px 52px;
    border-top: 1px solid var(--border);
    display: none;
    overflow: hidden;
  }
  .card-body.open { display: block; animation: cardOpen .3s ease; }
  @keyframes cardOpen {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .card-body.closing {
    display: block;
    animation: cardClose .3s ease forwards;
  }
  @keyframes cardClose {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-6px); }
  }

  .section-title {
    font-size: 11px; font-weight: 600; color: #888;
    text-transform: uppercase; letter-spacing: .8px;
    margin: 14px 0 8px;
  }

  /* ===== ARTICLE FORM COLLAPSIBLE SECTIONS (af-section) ===== */
  .af-section {
    border: 1px solid var(--border); border-radius: 11px;
    overflow: hidden; background: var(--cream);
    transition: border-color .18s;
  }
  .af-section:has(.af-section-body.open) {
    border-color: rgba(201,168,76,.4);
  }
  .af-section-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 11px 14px; cursor: pointer; user-select: none;
    transition: background .15s;
  }
  .af-section-header:hover { background: var(--parchment); }
  body.dark-mode .af-section-header:hover { background: rgba(255,255,255,.04); }
  .af-section-title {
    display: flex; align-items: center; gap: 7px;
    font-size: 12px; font-weight: 600; color: var(--ink);
    letter-spacing: .2px;
  }
  .af-section-title svg { stroke: #aaa; flex-shrink: 0; }
  .af-section-header:hover .af-section-title svg { stroke: var(--gold); }
  .af-chevron {
    width: 14px; height: 14px; flex-shrink: 0; color: #bbb;
    transition: transform .25s cubic-bezier(.4,0,.2,1);
  }
  .af-section-body {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height .32s cubic-bezier(.4,0,.2,1), opacity .25s ease;
    padding: 0 14px;
  }
  .af-section-body.open {
    max-height: 1200px;
    opacity: 1;
    padding-bottom: 14px;
  }
  .af-section-header.open .af-chevron {
    transform: rotate(180deg);
    color: var(--gold);
  }
  .af-section-header.open .af-section-title svg { stroke: var(--gold); }
  body.dark-mode .af-section { background: var(--bg-card); border-color: var(--border); }

  .reviewers-grid {
    display: flex; flex-direction: column; gap: 8px;
  }

  .reviewer-row {
    background: var(--parchment); border-radius: 8px;
    padding: 10px 12px; border: 1px solid var(--border);
  }

  .reviewer-row-top {
    display: flex; align-items: center; gap: 8px; margin-bottom: 5px;
  }

  .reviewer-row-dates {
    display: flex; gap: 12px; flex-wrap: wrap;
    padding-left: 32px;
  }

  .reviewer-date-item {
    display: flex; align-items: center; gap: 4px;
    font-size: 11px; color: #888;
  }
  .reviewer-date-item .date-lbl {
    font-weight: 600; color: #aaa; text-transform: uppercase;
    letter-spacing: .4px; font-size: 10px;
  }
  .reviewer-date-item .date-val {
    font-family: 'Poppins', Arial, sans-serif; color: #666;
  }
  .reviewer-date-item.overdue .date-val { color: var(--rust); font-weight: 600; }

  .reviewer-label {
    font-family: 'Poppins', Arial, sans-serif; font-size: 11px; font-weight: 700;
    color: #fff; background: var(--slate); padding: 2px 7px;
    border-radius: 6px; min-width: 28px; text-align: center;
  }

  .reviewer-name { font-size: 13px; font-weight: 500; flex: 1; min-width: 0; }
  .reviewer-name a { color: var(--slate); text-decoration: none; }
  .reviewer-name a:hover { text-decoration: underline; }

  .reviewer-decision {
    font-size: 11px; font-weight: 500; padding: 2px 8px;
    border-radius: 12px; white-space: nowrap;
  }
  .dec-accepted { background: var(--sage-light); color: var(--sage); }
  .dec-revision { background: var(--gold-pale); color: #8a6a1a; }
  .dec-declined { background: var(--rust-light); color: var(--rust); }
  .dec-resubmit { background: var(--slate-light); color: var(--slate); }
  .dec-pending { background: #f0f0f0; color: #999; }

  .notes-box {
    background: var(--parchment); border: 1px solid var(--border);
    border-radius: 8px; padding: 10px 14px;
    font-size: 13px; line-height: 1.6; color: #555;
    white-space: pre-wrap;
  }

  .timeline-list { display: flex; flex-direction: column; gap: 5px; }
  .timeline-item {
    display: flex; gap: 10px; align-items: flex-start;
    font-size: 12px; color: #555; padding: 5px 0;
    border-bottom: 1px solid var(--border);
  }
  .timeline-item:last-child { border-bottom: none; }
  .timeline-date {
    font-family: 'Poppins', Arial, sans-serif; font-size: 11px;
    color: #aaa; min-width: 90px; padding-top: 1px;
  }
  .timeline-text { flex: 1; }

  /* ===== MODAL ===== */
  .modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.45);
    z-index: 200; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity .2s;
  }
  .modal-overlay.open { opacity: 1; pointer-events: all; }

  /* Confirm modal always sits on top of any other open modal */
  #confirmModal {
    z-index: 1200;
    background: rgba(0,0,0,.55);
  }
  /* Issue modal sits above journal manager modal */
  #issueModal {
    z-index: 300;
  }

  /* ===== ADD ARTICLE CHOICE MODAL ===== */
  #addArticleChoiceModal { z-index: 500; }
  .add-choice-card {
    flex: 1; border: 2px solid var(--border); border-radius: 14px;
    padding: 22px 18px; cursor: pointer; text-align: center;
    background: var(--parchment);
    transition: border-color .18s, background .18s, transform .15s, box-shadow .18s;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    min-width: 0;
  }
  .add-choice-card:hover {
    border-color: var(--gold); background: var(--gold-pale);
    transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,168,76,.18);
  }
  .add-choice-card:hover .add-choice-icon { background: var(--gold); }
  .add-choice-card:hover .add-choice-icon svg { stroke: #fff; }
  .add-choice-icon {
    width: 48px; height: 48px; border-radius: 14px;
    background: var(--border); display: flex; align-items: center; justify-content: center;
    transition: background .18s;
    flex-shrink: 0;
  }
  .add-choice-icon svg { stroke: #888; transition: stroke .18s; }
  .add-choice-title {
    font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.3;
  }
  .add-choice-desc {
    font-size: 11.5px; color: #888; line-height: 1.55;
  }
  body.dark-mode .add-choice-card { background: var(--bg-card); border-color: var(--border); }
  body.dark-mode .add-choice-card:hover { background: rgba(201,168,76,.08); border-color: var(--gold); }
  body.dark-mode .add-choice-icon { background: rgba(255,255,255,.08); }

  /* ===== DOCX UPLOAD AREA ===== */
  #docxUploadModal { z-index: 500; }
  .docx-drop-zone {
    border: 2px dashed var(--border); border-radius: 12px;
    padding: 36px 24px; text-align: center; cursor: pointer;
    transition: border-color .18s, background .18s;
    background: var(--parchment);
  }
  .docx-drop-zone:hover, .docx-drop-zone.dragover {
    border-color: var(--gold); background: var(--gold-pale);
  }
  .docx-drop-zone.dragover { box-shadow: 0 0 0 4px rgba(201,168,76,.15); }
  .docx-drop-icon {
    width: 56px; height: 56px; border-radius: 16px; background: var(--border);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
    transition: background .18s;
  }
  .docx-drop-zone:hover .docx-drop-icon,
  .docx-drop-zone.dragover .docx-drop-icon { background: var(--gold); }
  .docx-drop-zone:hover .docx-drop-icon svg,
  .docx-drop-zone.dragover .docx-drop-icon svg { stroke: #fff; }
  .docx-info-banner {
    background: #e8f0fb; border: 1px solid #b8d0f5; border-radius: 10px;
    padding: 11px 14px; font-size: 12px; color: #2563ab; line-height: 1.6;
    display: flex; gap: 10px; align-items: flex-start;
  }
  body.dark-mode .docx-info-banner { background: rgba(37,99,171,.12); border-color: rgba(37,99,171,.3); color: #7eb3f5; }

  /* ===== EXTRACTION PREVIEW MODAL ===== */
  #docxPreviewModal { z-index: 550; }
  .extract-field-wrap { display: flex; flex-direction: column; gap: 5px; }
  .extract-field-label {
    font-size: 10.5px; font-weight: 700; color: #888;
    text-transform: uppercase; letter-spacing: .6px;
  }
  .extract-field-val {
    background: var(--parchment); border: 1.5px solid var(--border);
    border-radius: 9px; padding: 10px 13px; font-size: 13px; color: var(--ink);
    line-height: 1.5; min-height: 40px; word-break: break-word;
  }
  .extract-field-val.editable {
    cursor: text; transition: border-color .15s, box-shadow .15s;
    outline: none; font-family: 'Poppins', Arial, sans-serif;
  }
  .extract-field-val.editable:focus {
    border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.15);
    background: var(--cream);
  }
  .extract-confidence {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 10px; font-weight: 600; padding: 2px 8px;
    border-radius: 20px; margin-left: 8px;
  }
  .conf-high { background: var(--sage-light); color: var(--sage); }
  .conf-med  { background: var(--gold-pale);  color: #8a6a1a; }
  .conf-low  { background: var(--rust-light); color: var(--rust); }

  @media (max-width: 600px) {
    .add-choice-card { padding: 18px 12px; }
    .add-choice-icon { width: 40px; height: 40px; border-radius: 11px; }
    .add-choice-title { font-size: 13px; }
  }

  .modal {
    background: var(--cream); border-radius: 14px;
    width: 680px; max-width: 96vw; max-height: 90vh;
    overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3);
    transform: translateY(12px); transition: transform .2s;
    /* Smooth scroll di iOS */
    -webkit-overflow-scrolling: touch;
  }
  .modal-overlay.open .modal { transform: translateY(0); }

  .modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 12px;
  }
  .modal-title {
    font-family: 'Poppins', Arial, sans-serif; font-size: 18px; font-weight: 600;
  }
  .modal-close {
    margin-left: auto; width: 32px; height: 32px;
    border-radius: 50%; border: none; background: var(--parchment);
    cursor: pointer; font-size: 16px; color: #666;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
  }
  .modal-close:hover { background: var(--border); }

  .modal-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
  .modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

  .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .form-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
  /* Pada layar sangat sempit, form-grid turun ke 1 kolom */
  @media (max-width: 480px) {
    .form-grid { grid-template-columns: 1fr; }
  }
  .form-group { display: flex; flex-direction: column; gap: 5px; }
  .form-group.full { grid-column: 1 / -1; }
  .form-group input, .form-group select, .form-group textarea { width: 100%; }

  label { font-size: 12px; font-weight: 600; color: #555; letter-spacing: .3px; }

  input, textarea, select {
    border: 1px solid var(--border); border-radius: 8px;
    padding: 8px 12px; font-size: 13px; font-family: 'Poppins', Arial, sans-serif;
    background: var(--parchment); color: var(--ink);
    transition: border-color .15s;
  }
  input:focus, textarea:focus, select:focus {
    outline: none; border-color: var(--gold); background: #fff;
  }
  textarea { resize: vertical; min-height: 70px; }

  .reviewers-form { display: flex; flex-direction: column; gap: 10px; }
  .reviewer-form-card {
    background: var(--parchment); border: 1px solid var(--border);
    border-radius: 10px; padding: 12px 14px;
    position: relative;
  }
  .reviewer-form-card-header {
    display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  }
  .reviewer-form-card-label {
    font-family: 'Poppins', Arial, sans-serif; font-size: 11px; font-weight: 700;
    color: #fff; background: var(--slate); padding: 2px 8px;
    border-radius: 6px;
  }
  .reviewer-form-card-title {
    font-size: 12px; font-weight: 600; color: #888; flex: 1;
  }
  .reviewer-form-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px;
  }
  .reviewer-form-grid .full { grid-column: 1 / -1; }
  .reviewer-date-group { display: flex; flex-direction: column; gap: 4px; }
  .reviewer-date-group label { font-size: 11px; font-weight: 600; color: #888; }
  .btn-icon {
    width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--border);
    background: var(--parchment); cursor: pointer; font-size: 15px;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s; color: #666;
  }
  .btn-icon:hover { background: var(--rust-light); color: var(--rust); border-color: var(--rust); }
  .btn-icon.add { color: var(--sage); border-color: var(--sage); }
  .btn-icon.add:hover { background: var(--sage-light); }

  .timeline-form { display: flex; flex-direction: column; gap: 6px; }
  .timeline-form-row {
    display: grid; grid-template-columns: 130px 1fr 32px; gap: 6px; align-items: center;
  }

  /* ===== JOURNAL MANAGER ===== */
  .journal-manager-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px;
  }
  .journal-card {
    background: var(--cream); border: 1px solid var(--border);
    border-radius: 12px; padding: 18px;
    transition: all .15s; border-left: 4px solid var(--gold);
    display: flex; flex-direction: column; gap: 0;
  }
  .journal-card:hover { box-shadow: 0 4px 16px var(--shadow-md); }
  .journal-card.active { border-left-color: var(--sage); background: var(--sage-light); }
  .journal-card-name { font-family: 'Poppins', Arial, sans-serif; font-size: 14px; font-weight: 600; line-height: 1.4; }
  .journal-card-vol { font-size: 11px; color: #888; margin-top: 2px; }
  .journal-card-divider { height: 1px; background: var(--border); margin: 12px 0; }
  .journal-card-stats {
    display: flex; gap: 0; font-size: 12px;
    background: var(--parchment); border-radius: 8px;
    border: 1px solid var(--border); overflow: hidden;
  }
  .journal-card-stat {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    padding: 8px 4px; border-right: 1px solid var(--border);
  }
  .journal-card-stat:last-child { border-right: none; }
  .journal-card-stat-val { font-family: 'Poppins', Arial, sans-serif; font-size: 16px; font-weight: 700; color: var(--ink); }
  .journal-card-stat-lbl { color: #888; font-size: 9px; text-transform: uppercase; letter-spacing: .4px; margin-top: 1px; }

  /* Accreditation badges */
  .accr-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 600; padding: 3px 10px;
    border-radius: 20px; cursor: pointer; border: none;
    font-family: 'Poppins', Arial, sans-serif; transition: all .15s;
  }
  .accr-badge.sinta1 { background: #fdecea; color: #c0392b; }
  .accr-badge.sinta2 { background: #fff3e0; color: #e67e22; }
  .accr-badge.sinta3 { background: var(--gold-pale); color: #8a6a1a; }
  .accr-badge.sinta4 { background: var(--sage-light); color: var(--sage); }
  .accr-badge.sinta5 { background: var(--slate-light); color: var(--slate); }
  .accr-badge.issn   { background: var(--lavender-light); color: var(--lavender); }
  .accr-badge.none   { background: #f0f0f0; color: #aaa; }
  .accr-badge:hover  { filter: brightness(.93); }

  /* ===== ACCREDITATION DROPDOWN ===== */
  .accr-dropdown {
    position: fixed; z-index: 9999;
    background: var(--cream); border: 1px solid var(--border);
    border-radius: 12px; box-shadow: 0 8px 28px var(--shadow-md);
    overflow: hidden; min-width: 180px;
    animation: dropIn .12s ease;
  }
  .accr-dropdown-header {
    padding: 8px 14px 6px;
    font-size: 10px; font-weight: 700; color: #aaa;
    text-transform: uppercase; letter-spacing: .6px;
    border-bottom: 1px solid var(--border);
  }
  .accr-option {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 14px; cursor: pointer; font-size: 12px;
    font-weight: 500; transition: background .1s;
    border: none; background: none; width: 100%; text-align: left;
    font-family: 'Poppins', Arial, sans-serif; color: var(--ink);
  }
  .accr-option:hover { background: var(--parchment); }
  .accr-option.selected { font-weight: 700; }
  .accr-option .accr-dot {
    width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  }
  .accr-option .accr-check {
    margin-left: auto; font-size: 13px; opacity: 0;
  }
  .accr-option.selected .accr-check { opacity: 1; }

  /* ===== EMPTY STATE ===== */
  .empty-state {
    text-align: center; padding: 60px 20px; color: #aaa;
  }
  .empty-state-icon { font-size: 48px; margin-bottom: 12px; }
  .empty-state-title { font-family: 'Poppins', Arial, sans-serif; font-size: 20px; color: #bbb; margin-bottom: 6px; }
  .empty-state-sub { font-size: 13px; }

  /* ===== SCROLLBAR ===== */
  ::-webkit-scrollbar { width: 5px; height: 5px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }

  /* ===== RESPONSIVE ===== */

  /* ── Tablet (769px–1024px): sidebar auto-minimized, expands on hover ── */
  @media (max-width: 1024px) and (min-width: 769px) {
    #sidebar { width: 56px; }
    #sidebar .sidebar-text { display: none; }
    #sidebar .sidebar-header { padding: 18px 0; align-items: center; justify-content: center; }
    #sidebar .sidebar-logo-icon { display: flex !important; }
    #sidebar .sidebar-logo-full { display: none; }
    #sidebar .sidebar-section-label { display: none; }
    #sidebar .journal-nav-item { padding: 10px 0; justify-content: center; gap: 0; }
    #sidebar .journal-nav-item .nav-count { display: none; }
    #sidebar .journal-nav-item span:last-child { display: none; }
    #sidebar .sidebar-actions { padding: 12px 8px; align-items: center; }
    #sidebar .btn-sidebar { padding: 10px; justify-content: center; font-size: 16px; }
    #sidebar .btn-sidebar .sidebar-text { display: none; }
    #sidebar .nav-item-icon { font-size: 18px; }
    #sidebar .nav-chevron { display: none; }
    #main { margin-left: 56px !important; }
    .content { padding: 16px; }
  }

  /* ── Mobile (≤768px): sidebar slides in as overlay drawer ── */
  @media (max-width: 768px) {
    #sidebar {
      width: 260px !important;
      transform: translateX(-260px);
      transition: transform .3s cubic-bezier(.4,0,.2,1), width .3s;
      box-shadow: none;
      /* reset any minimized state forced by JS on desktop */
    }
    #sidebar .sidebar-text { display: inline !important; }
    #sidebar .sidebar-header { padding: 20px 20px 16px !important; align-items: center; justify-content: flex-start; }
    #sidebar .sidebar-logo-icon { display: none !important; }
    #sidebar .sidebar-logo-full { display: block !important; }
    #sidebar .sidebar-section-label { display: block !important; }
    #sidebar .journal-nav-item { padding: 9px 20px !important; justify-content: flex-start !important; gap: 10px !important; }
    #sidebar .journal-nav-item .nav-count { display: inline-flex !important; }
    #sidebar .sidebar-actions { padding: 12px 14px !important; align-items: stretch !important; }
    #sidebar .btn-sidebar { padding: 8px 12px !important; justify-content: flex-start !important; font-size: 12px !important; }
    #sidebar .nav-chevron { display: inline !important; }
    #sidebar.mobile-open {
      transform: translateX(0);
      box-shadow: 4px 0 24px rgba(0,0,0,.25);
    }
    /* dim overlay behind drawer */
    #sidebar.mobile-open ~ #main::before,
    body.mobile-nav-open::before {
      content: '';
      position: fixed; inset: 0; z-index: 99;
      background: rgba(0,0,0,.35);
      backdrop-filter: blur(1px);
    }
    #main { margin-left: 0 !important; }
    .content { padding: 12px; }
  }

  .hamburger {
    display: none; background: none; border: none;
    font-size: 20px; cursor: pointer; color: var(--ink); padding: 4px;
    flex-shrink: 0;
  }
  @media (max-width: 768px) { .hamburger { display: block; } }

  /* Import/Export */
  .io-section { background: var(--parchment); border-radius: 10px; padding: 16px; border: 1px solid var(--border); }
  .io-title { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
  .io-desc { font-size: 12px; color: #888; margin-bottom: 12px; }
  /* ===== APP HIDDEN UNTIL LOGIN ===== */
  body:not(.logged-in) #sidebar,
  body:not(.logged-in) #main {
    display: none !important;
  }
  body.logged-in #loginScreen {
    display: none !important;
  }

  /* ===== LOGIN SCREEN — SPLIT PANEL LAYOUT ===== */
  #loginScreen {
    position: fixed; inset: 0; z-index: 1000;
    background: #0d1117;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    font-family: 'Poppins', Arial, sans-serif;
  }
  .login-bg {
    position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  }
  .login-bg-circle {
    position: absolute; border-radius: 50%;
    background: radial-gradient(circle, rgba(201,168,76,.18) 0%, transparent 70%);
  }
  .login-box {
    display: flex; width: 900px; max-width: 100%; min-height: 560px;
    background: transparent; border-radius: 20px;
    box-shadow: 0 40px 100px rgba(0,0,0,.65);
    overflow: hidden; position: relative; z-index: 1;
    animation: loginFadeIn .45s ease both;
  }
  @keyframes loginFadeIn {
    from { opacity: 0; transform: translateY(18px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }
  /* LEFT PANEL */
  .login-left {
    flex: 1; background: linear-gradient(145deg, #131825 0%, #1a2235 55%, #0f1620 100%);
    padding: 44px 48px; display: flex; flex-direction: column;
    justify-content: space-between; position: relative; overflow: hidden;
  }
  .login-left::before {
    content: ''; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(201,168,76,.04) 1px,transparent 1px),
      linear-gradient(90deg,rgba(201,168,76,.04) 1px,transparent 1px);
    background-size: 40px 40px; pointer-events: none;
  }
  .login-left::after {
    content: ''; position: absolute; width: 360px; height: 360px;
    border-radius: 50%; background: radial-gradient(circle,rgba(201,168,76,.10) 0%,transparent 65%);
    top: -80px; right: -80px; pointer-events: none;
  }
  .login-left-orb2 {
    position: absolute; width: 280px; height: 280px; border-radius: 50%;
    background: radial-gradient(circle,rgba(91,111,166,.15) 0%,transparent 65%);
    bottom: -60px; left: -60px; pointer-events: none;
  }
  .login-brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
  .login-brand-icon {
    width: 44px; height: 44px; border-radius: 12px; background: var(--gold);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .login-brand-icon svg { stroke: #1a2235; }
  .login-brand-name { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: -.2px; }
  .login-brand-tagline { font-size: 9px; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: 1.2px; margin-top: 2px; }
  .login-hero { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 32px 0; }
  .login-hero-title { font-size: 28px; font-weight: 700; color: #fff; line-height: 1.3; letter-spacing: -.4px; margin-bottom: 12px; }
  .login-hero-desc { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.7; max-width: 320px; margin-bottom: 28px; }
  .login-features { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
  .login-feature-item { display: flex; align-items: flex-start; gap: 12px; }
  .login-feature-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .login-feature-icon svg { stroke: var(--gold); }
  .login-feature-title { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.85); line-height: 1.3; }
  .login-feature-desc { font-size: 11px; color: rgba(255,255,255,.38); line-height: 1.5; margin-top: 2px; }
  .login-left-footer {
    font-size: 11px; color: rgba(255,255,255,.22); letter-spacing: .3px;
    position: relative; z-index: 1; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.07);
  }
  /* RIGHT PANEL */
  .login-right {
    width: 380px; flex-shrink: 0; background: #f4f2ed;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 36px 40px; position: relative;
  }
  .login-form-wrap { width: 100%; position: relative; z-index: 1; }
  .login-form-icon {
    width: 48px; height: 48px; border-radius: 14px; background: var(--gold);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
  }
  .login-form-icon svg { stroke: #1a2235; }
  .login-header { text-align: center; margin-bottom: 22px; background: transparent; padding: 0; border: none; }
  .login-title { font-size: 20px; font-weight: 700; color: #1a3a5c; letter-spacing: -.3px; margin-bottom: 3px; }
  .login-subtitle { font-size: 9.5px; color: #888; letter-spacing: 1px; text-transform: uppercase; }
  .login-body { width: 100%; display: flex; flex-direction: column; gap: 13px; padding: 0; }
  .login-group { display: flex; flex-direction: column; gap: 5px; }
  .login-label { font-size: 10.5px; font-weight: 700; color: #7a7a8c; text-transform: uppercase; letter-spacing: .7px; }
  .login-input {
    border: 1.5px solid #ddd8ce; border-radius: 10px;
    padding: 11px 14px; font-size: 14px; font-family: 'Poppins', Arial, sans-serif;
    background: #fff; color: #1a2235;
    transition: border-color .15s, box-shadow .15s;
    width: 100%; box-sizing: border-box;
  }
  .login-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.16); }
  .login-input::placeholder { color: #bbb; }
  .login-btn {
    background: var(--gold); color: #1a2235; border: none; border-radius: 10px; padding: 13px;
    font-size: 14px; font-weight: 700; font-family: 'Poppins', Arial, sans-serif;
    cursor: pointer; width: 100%; transition: all .18s; letter-spacing: .3px;
    box-shadow: 0 4px 14px rgba(201,168,76,.35);
  }
  .login-btn:hover { background: #b8943d; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,168,76,.45); }
  .login-btn:active { transform: translateY(0); }
  .login-error {
    background: #fef0ec; color: var(--rust); border: 1px solid #f5c4b4;
    border-radius: 8px; padding: 9px 13px; font-size: 12.5px; font-weight: 500; display: none;
  }
  .login-error.show { display: block; }
  .login-footer { text-align: center; font-size: 10px; color: #bbb; padding-top: 4px; }
  .login-remember-row { display: flex; align-items: center; justify-content: space-between; margin: -2px 0 0; }
  .login-remember-left { display: flex; align-items: center; gap: 6px; }
  .login-divider { display: flex; align-items: center; gap: 10px; margin: 2px 0; }
  .login-divider-line { flex: 1; height: 1px; background: #ddd8ce; }
  .login-divider-text { font-size: 11px; color: #aaa; white-space: nowrap; }
  @media (max-width: 720px) {
    #loginScreen { padding: 12px; }
    .login-box { flex-direction: column; width: 100%; min-height: unset; border-radius: 16px; }
    .login-left { padding: 28px 28px 24px; }
    .login-hero-title { font-size: 22px; }
    .login-features { display: none; }
    .login-right { width: 100%; padding: 28px 28px 24px; }
  }

  /* ===== LOG MODAL — RESPONSIF ===== */

  /* Modal container */
  .log-modal {
    width: 860px;
    max-width: 96vw;
  }

  /* Modal body: no padding, no gap */
  .log-modal-body {
    padding: 0 !important;
    gap: 0 !important;
    flex-direction: column;
    overflow: hidden;
  }

  /* Tab bar */
  .log-tabbar {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0 16px;
    background: var(--parchment);
    border-bottom: 1px solid var(--border);
    min-height: 44px;
  }

  /* Tab button */
  .log-tab {
    display: flex; align-items: center; gap: 6px;
    padding: 11px 12px; background: none; border: none;
    border-bottom: 2px solid transparent; margin-bottom: -1px;
    cursor: pointer; font-size: 12px; font-weight: 600;
    color: #aaa; font-family: 'Poppins', Arial, sans-serif;
    transition: color .15s, border-color .15s;
    white-space: nowrap; flex-shrink: 0;
  }
  .log-tab:hover { color: var(--ink); }
  .log-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
  .log-tab svg { flex-shrink: 0; }

  /* Pemisah vertikal antar tab group */
  .log-tabbar-sep {
    width: 1px; height: 18px;
    background: var(--border);
    margin: 0 8px; flex-shrink: 0;
  }

  /* Info teks kanan */
  .log-tab-info {
    margin-left: auto;
    display: flex; align-items: center;
    padding: 0; flex-shrink: 0;
  }
  .log-tab-info span {
    font-size: 10px; color: #aaa; font-style: italic;
    white-space: nowrap;
  }

  /* Ikon hapus di samping tab — lingkaran deboss tanpa outline */
  .log-tab-del {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 50%;
    background: rgba(0,0,0,.07);
    border: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.18), inset 0 1px 1px rgba(0,0,0,.10);
    cursor: pointer;
    color: #999; margin-left: 3px; flex-shrink: 0;
    transition: color .15s, background .15s, box-shadow .15s, transform .1s;
  }
  .log-tab-del:hover {
    color: var(--rust);
    background: rgba(184,92,56,.15);
    box-shadow: inset 0 2px 4px rgba(184,92,56,.2), inset 0 1px 2px rgba(184,92,56,.12);
  }
  .log-tab-del:active {
    box-shadow: inset 0 3px 6px rgba(0,0,0,.22), inset 0 1px 3px rgba(0,0,0,.14);
    transform: scale(.93);
  }
  .log-tab-del svg { pointer-events: none; }
  body.dark-mode .log-tab-del {
    background: rgba(0,0,0,.25);
    box-shadow: inset 0 1px 4px rgba(0,0,0,.4), inset 0 1px 2px rgba(0,0,0,.25);
    color: rgba(255,255,255,.35);
  }
  body.dark-mode .log-tab-del:hover {
    background: rgba(184,92,56,.2);
    color: #e07a5f;
  }

  /* Log body scroll area */
  .log-body-wrap {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 60vh;
  }

  /* Footer rata kanan */
  .log-modal-footer {
    justify-content: flex-end !important;
    gap: 8px;
    flex-wrap: wrap;
  }

  /* Log table */
  .log-table-wrap { overflow-x: auto; width: 100%; }
  .log-table {
    width: 100%; border-collapse: collapse; font-size: 12px;
    min-width: 520px;
  }
  .log-table th {
    padding: 8px 10px; text-align: left; font-weight: 700;
    color: #555; background: var(--parchment);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
  }
  .log-table td {
    padding: 7px 10px; border-bottom: 1px solid var(--border);
    vertical-align: middle;
  }
  .log-table tr:nth-child(even) td { background: var(--parchment); }
  .log-table tr:nth-child(odd)  td { background: var(--cream); }

  /* ≤600px: bottom sheet + kolom tersembunyi */
  @media (max-width: 600px) {
    .log-modal { max-width: 100vw; border-radius: 14px 14px 0 0; }
    #logModal.modal-overlay { align-items: flex-end; }
    .log-body-wrap { max-height: 52vh; }
    .log-col-hide { display: none; }
    .log-table { min-width: 0; }
    .log-tab { font-size: 11px; padding: 10px 8px; gap: 4px; }
    .log-tab svg { display: none; }          /* sembunyikan ikon tab */
    .log-tab-info { display: none; }         /* sembunyikan teks kanan */
    .log-tabbar-sep { margin: 0 4px; }
    .log-modal-footer { justify-content: stretch !important; }
    .log-modal-footer .btn { flex: 1; justify-content: center; }
  }

  /* ≤400px: ultra compact */
  @media (max-width: 400px) {
    .log-tab { font-size: 10px; padding: 9px 6px; }
    .log-table th, .log-table td { padding: 6px 7px; font-size: 11px; }
  }

  /* ===== DROPDOWN ACCORDION GROUPS ===== */
  .dd-group {
    display: block;            /* selalu block — jangan flex */
    border-bottom: 0.5px solid var(--border);
  }
  .dd-group:last-of-type { border-bottom: none; }

  /* Sembunyikan grup berdasarkan role via class khusus */
  .dd-group-admin  { display: none; }
  .dd-group-chief  { display: none; }
  .dd-group-sa     { display: none; }

  body.is-admin      .dd-group-admin  { display: block; }
  body.is-superadmin .dd-group-admin  { display: block; }
  body.is-superadmin .dd-group-sa     { display: block; }
  body.is-chief      .dd-group-chief  { display: block; }

  .dd-group-header {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 9px 14px; background: none; border: none;
    cursor: pointer; font-family: 'Poppins', Arial, sans-serif;
    text-align: left; transition: background .12s;
  }
  .dd-group-header:hover { background: var(--parchment); }
  body.dark-mode .dd-group-header:hover { background: rgba(255,255,255,.05); }

  .dd-group-label {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600; color: var(--ink);
  }
  .dd-group-label svg { stroke: #aaa; flex-shrink: 0; width: 13px; height: 13px; }
  .dd-group-header:hover .dd-group-label svg { stroke: var(--gold); }
  .dd-group-header.open .dd-group-label { color: var(--gold); }
  .dd-group-header.open .dd-group-label svg { stroke: var(--gold); }

  .dd-chevron {
    width: 12px; height: 12px; flex-shrink: 0;
    stroke: #bbb;
    transition: transform .22s cubic-bezier(.4,0,.2,1), stroke .15s;
  }
  .dd-group-header.open .dd-chevron { transform: rotate(180deg); stroke: var(--gold); }

  /* Sub-items body — smooth expand/collapse */
  .dd-group-body {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height .28s cubic-bezier(.4,0,.2,1), opacity .2s ease;
    background: var(--parchment);
  }
  body.dark-mode .dd-group-body { background: rgba(255,255,255,.03); }
  .dd-group-body.open {
    max-height: 400px;
    opacity: 1;
  }

  .dd-sub-item {
    width: 100%; display: flex; align-items: center; gap: 9px;
    padding: 7px 14px 7px 22px; /* indented */
    background: none; border: none; cursor: pointer;
    font-size: 12px; font-weight: 500; color: var(--ink);
    font-family: 'Poppins', Arial, sans-serif;
    text-align: left; transition: background .1s, color .1s;
    border-bottom: 0.5px solid var(--border);
  }
  .dd-sub-item:last-child { border-bottom: none; }
  .dd-sub-item:hover { background: var(--gold-pale); color: var(--ink); }
  body.dark-mode .dd-sub-item:hover { background: rgba(201,168,76,.10); }
  .dd-sub-item:hover .dd-sub-icon svg { stroke: var(--gold); }

  .dd-sub-icon {
    width: 22px; height: 22px; border-radius: 6px;
    background: rgba(0,0,0,.05);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .dd-sub-icon svg { width: 12px; height: 12px; stroke: #888; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .1s; }
  body.dark-mode .dd-sub-icon { background: rgba(255,255,255,.07); }
  body.dark-mode .dd-sub-icon svg { stroke: rgba(255,255,255,.5); }

  /* ===== TOPBAR USER DROPDOWN ===== */
  .topbar-user {
    display: flex; align-items: center; gap: 6px;
    background: var(--parchment); border: 1px solid var(--border);
    border-radius: 20px; padding: 4px 10px 4px 4px;
    cursor: pointer; user-select: none; position: relative;
    transition: border-color .15s, background .15s;
    height: 36px; box-sizing: border-box;
  }
  .topbar-user:hover { border-color: var(--gold); background: var(--gold-pale); }

  .user-dropdown {
    position: fixed;
    width: 230px;
    background: var(--cream); border: 1px solid var(--border);
    border-radius: 14px; box-shadow: 0 8px 32px var(--shadow-md);
    z-index: 9999;
    overflow-y: auto; overflow-x: hidden;
    max-height: 85vh;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(.98);
    transition: opacity .18s ease, transform .18s ease;
    transform-origin: top right;
  }
  .user-dropdown.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
  .user-dropdown-divider { height: 1px; background: var(--border); margin: 2px 0; }
  .user-dropdown-item {
    width: 100%; display: flex; align-items: center; gap: 10px;
    padding: 8px 16px; font-size: 13px; font-weight: 500;
    background: none; border: none; cursor: pointer; text-align: left;
    color: var(--ink); font-family: 'Poppins', Arial, sans-serif;
    transition: background .1s;
  }
  .user-dropdown-item:hover { background: var(--parchment); }
  .user-dropdown-item--danger { color: var(--rust); }
  .user-dropdown-item--danger:hover { background: var(--rust-light); }

  /* Ikon di dropdown — konsisten dengan sidebar */
  .dd-icon {
    width: 26px; height: 26px; border-radius: 7px;
    background: rgba(0,0,0,.06);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .dd-icon svg { width: 14px; height: 14px; }
  body.dark-mode .dd-icon { background: rgba(255,255,255,.08); }
  .user-dropdown-item--danger .dd-icon { background: rgba(184,92,56,.10); }
  .user-dropdown-item--danger:hover .dd-icon { background: rgba(184,92,56,.18); }
  .user-dropdown-section-label {
    padding: 8px 16px 4px;
    font-size: 10px; font-weight: 700; color: #aaa;
    text-transform: uppercase; letter-spacing: .7px;
  }
  /* Role visibility dalam dropdown */
  .admin-only-dd    { display: none; }
  .superadmin-only-dd { display: none; }
  .chief-only-dd    { display: none; }
  body.is-admin     .admin-only-dd { display: flex; }
  body.is-superadmin .admin-only-dd { display: flex; }
  body.is-superadmin .superadmin-only-dd { display: flex; }
  body.is-chief     .chief-only-dd { display: flex; }
  /* section-label pakai block bukan flex */
  .user-dropdown-section-label.admin-only-dd { display: none; }
  body.is-admin      .user-dropdown-section-label.admin-only-dd { display: block; }
  body.is-superadmin .user-dropdown-section-label.admin-only-dd { display: block; }
  .user-dropdown-section-label.chief-only-dd { display: none; }
  body.is-chief      .user-dropdown-section-label.chief-only-dd { display: block; }
  /* Reset data hanya untuk admin & superadmin */
  .admin-only-io { display: none; }
  body.is-admin .admin-only-io,
  body.is-superadmin .admin-only-io { display: block; }
  /* Reset data hanya untuk superadmin */
  .superadmin-only-io { display: none; }
  body.is-superadmin .superadmin-only-io { display: block; }
  /* Chief hanya lihat io-section yang diizinkan */
  .chief-io { display: none; }
  body.is-chief .chief-io { display: block; }
  /* Chief dapat akses tombol sidebar yang berlabel chief-only */
  .btn-sidebar.chief-only { display: none; }
  body.is-chief .btn-sidebar.chief-only { display: flex; }
  /* Collapsible io-section */
  .io-section-header {
    display: flex; align-items: center; justify-content: space-between;
    cursor: pointer; user-select: none;
  }
  .io-section-header:hover .io-title { color: var(--gold); }
  .io-chevron {
    width: 16px; height: 16px; flex-shrink: 0; color: #aaa;
    transition: transform .2s;
  }
  .io-section.collapsed .io-chevron { transform: rotate(-90deg); }
  .io-section-body { overflow: hidden; transition: max-height .25s ease, opacity .2s; }
  .io-section.collapsed .io-section-body { max-height: 0 !important; opacity: 0; pointer-events: none; }
  /* admin-only elements */
  /* Report modal responsive grid */
  .rep-row { display:grid; gap:10px; }
  .rep-row-2col { grid-template-columns: 1fr 1fr; }

  /* Jenis laporan horizontal bar */
  .rep-type-bar {
    display:flex; flex-wrap:wrap; gap:6px;
    padding:8px 10px; border:1px solid var(--border);
    border-radius:8px; background:var(--cream);
  }
  .rep-type-item {
    display:flex; align-items:center; gap:5px;
    cursor:pointer; font-size:12px; font-weight:500;
    padding:4px 10px; border-radius:6px; border:1px solid var(--border);
    background:var(--parchment); transition:all .15s; user-select:none;
    white-space:nowrap;
  }
  .rep-type-item:hover { border-color:var(--gold); background:var(--gold-pale); }
  .rep-type-item input { width:13px; height:13px; flex-shrink:0; margin:0; }

  /* Konten laporan — uniform width wrapper */
  .rep-content-wrap {
    width:100%; overflow-x:auto;
  }
  .rep-content-wrap table {
    width:100%; min-width:100%; table-layout:auto;
  }

  /* ===== LAPORAN & CETAK MODAL ===== */
  .rep-modal {
    width: 600px;
    max-width: 94vw;
  }

  /* Sub-tab bar */
  .rep-subtab-bar {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--parchment);
    padding: 0 20px;
  }
  .rep-subtab {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 14px; background: none; border: none;
    border-bottom: 2px solid transparent; margin-bottom: -1px;
    cursor: pointer; font-size: 12px; font-weight: 600;
    color: #aaa; font-family: 'Poppins', Arial, sans-serif;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
  }
  .rep-subtab:hover { color: var(--ink); }
  .rep-subtab.active { color: var(--gold); border-bottom-color: var(--gold); }
  .rep-subtab svg { flex-shrink: 0; }

  /* Panel body */
  .rep-subpanel {
    display: flex; flex-direction: column;
    gap: 12px;
    padding: 20px 24px;
  }
  .rep-subpanel .form-group { margin-bottom: 0; }

  /* Daftar artikel checkbox */
  .er-article-list {
    border: 1px solid var(--border); border-radius: 8px;
    max-height: 200px; overflow-y: auto;
    background: var(--cream);
  }
  .er-art-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 8px 12px; border-bottom: 1px solid var(--border);
    cursor: pointer; transition: background .1s;
    user-select: none;
  }
  .er-art-item:last-child { border-bottom: none; }
  .er-art-item:hover { background: var(--parchment); }
  .er-art-item:has(input:checked) { background: var(--gold-pale); }
  .er-art-item:has(input:checked):hover { background: var(--gold-pale); }
  .er-art-item input[type="checkbox"] {
    width: 14px; height: 14px; flex-shrink: 0;
    margin-top: 3px; accent-color: var(--gold); cursor: pointer;
    pointer-events: none; /* biarkan label yang handle klik */
  }
  .er-art-title { font-size: 12px; font-weight: 600; color: var(--ink); line-height: 1.4; }
  .er-art-meta  { font-size: 11px; color: #888; margin-top: 2px; }

  /* Preview modal bertingkat */
  .er-preview-modal {
    width: 700px;
    max-width: 96vw;
  }
  .er-preview-content {
    border: none !important;
    border-radius: 0 !important;
    min-height: 300px;
    max-height: 72vh;
    overflow-y: auto;
    padding: 28px 32px !important;
  }

  /* ≤480px: bottom sheet + compact */
  @media (max-width: 480px) {
    .rep-modal { max-width: 100vw; border-radius: 14px 14px 0 0; }
    #reportModal.modal-overlay { align-items: flex-end; }
    .rep-subpanel { padding: 14px 16px; gap: 10px; }
    .rep-subtab { font-size: 11px; padding: 9px 10px; gap: 4px; }
    .rep-subtab svg { display: none; }
    .rep-row-2col { grid-template-columns: 1fr; }
    .rep-row-3col { grid-template-columns: 1fr; }
    .rep-type-bar { gap: 4px; }
    .rep-type-item { font-size: 11px; padding: 3px 8px; }
    .er-article-list { max-height: 150px; }
    .er-preview-modal { max-width: 100vw; border-radius: 14px 14px 0 0; }
    #erPreviewModal.modal-overlay,
    #allPreviewModal.modal-overlay { align-items: flex-end; }
    .er-preview-content { padding: 18px 16px !important; max-height: 65vh; }
  }

  /* 3 kolom untuk filter baris */
  .rep-row-3col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
  }
  @media (max-width: 560px) {
    .rep-row-3col { grid-template-columns: 1fr; }
  }
  .admin-only { display: none; }
  body.is-admin .admin-only { display: flex; }
  body.is-admin .admin-only-block { display: block; }
  .admin-only-block { display: none; }
  /* superadmin-only */
  .superadmin-only { display: none; }
  body.is-superadmin .superadmin-only { display: flex; }
  /* chief-only sidebar */
  .chief-only { display: none; }
  body.is-chief .chief-only { display: flex; }

  /* Trash button visible untuk admin DAN chief */
  #sbTrashBtn { display: none !important; }
  body.is-admin #sbTrashBtn,
  body.is-superadmin #sbTrashBtn,
  body.is-chief #sbTrashBtn { display: flex !important; }
  /* profile avatar hover overlay */
  #profileAvatarPreview:hover .avatar-hover-overlay { opacity: 1 !important; }

  /* color dot selected state */
  .color-dot { box-sizing: border-box; }
  .color-dot:hover { transform: scale(1.12); border-color: rgba(255,255,255,.7) !important; }
  .color-dot.selected {
    border-color: var(--ink) !important;
    transform: scale(1.08);
    box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--ink);
  }
  body.dark-mode .color-dot.selected {
    box-shadow: 0 0 0 2px #1a1c27, 0 0 0 4px #fff;
    border-color: #fff !important;
  }
  .topbar-user-avatar {
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: #fff;
    flex-shrink: 0;
  }
  .topbar-user-name { font-size: 12px; font-weight: 600; color: var(--ink); line-height: 1.2; }
  .topbar-user-role { font-size: 10px; color: #aaa; font-weight: 400; line-height: 1.2; }
  .topbar-logout-btn {
    background: none; border: none; cursor: pointer;
    color: #bbb; font-size: 14px; padding: 2px 4px;
    transition: color .15s; margin-left: 2px;
  }
  .topbar-logout-btn:hover { color: var(--rust); }

  /* Ikon kalender pada input date */
  input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: .5; cursor: pointer; border-radius: 3px; padding: 2px;
  }
  input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }
  body.dark-mode input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1); opacity: .65;
    border: 1px solid rgba(255,255,255,.25); border-radius: 4px; padding: 2px;
  }
  body.dark-mode input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1; border-color: rgba(255,255,255,.55);
  }

  .badge-overdue {
    background: #fdecea; color: #b71c1c; border: 1px solid #f5c6cb;
    font-weight: 700; animation: pulse-overdue 2s infinite;
  }
  .badge-deadline-soon {
    background: #fff8e1; color: #e65100; border: 1px solid #ffe0b2;
    font-weight: 700;
  }
  @keyframes pulse-overdue {
    0%, 100% { opacity: 1; }
    50%       { opacity: .65; }
  }
  .assign-chip { position: relative; }
  .assign-chip:hover { border-color: var(--gold) !important; filter: brightness(.97); }
  #assignSEModal .modal { width: 560px; max-width: 98vw; }
  #assignSEBody { max-height: 65vh; overflow-y: auto; }
  @media (max-width: 520px) {
    #assignSEModal .modal { width: 100% !important; border-radius: 14px 14px 0 0; }
    #assignSEModal .modal-overlay { align-items: flex-end; }
    #assignSEBody { max-height: 60vh; }
    #assignAddEditorForm .full { grid-column: 1/-1; }
    #assignAddEditorForm > div[style*="grid"] { grid-template-columns: 1fr !important; }
  }
  .trash-tab-bar {
    display: flex; border-bottom: 1px solid var(--border);
    padding: 0 16px; gap: 0; overflow-x: auto;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .trash-tab-bar::-webkit-scrollbar { display: none; }
  .trash-tab-btn {
    padding: 10px 14px; font-size: 12px; font-weight: 600;
    border: none; background: none; cursor: pointer;
    border-bottom: 2px solid transparent; color: #aaa;
    font-family: inherit; white-space: nowrap; flex-shrink: 0;
    transition: color .15s, border-color .15s;
  }
  .trash-tab-btn.active { border-bottom-color: var(--gold); color: var(--ink); }
  .trash-tab-cnt {
    font-size: 10px; background: rgba(0,0,0,.08);
    border-radius: 8px; padding: 1px 6px; margin-left: 4px;
  }
  body.dark-mode .trash-tab-cnt { background: rgba(255,255,255,.12); }
  .trash-item {
    border: 1px solid var(--border); border-radius: 10px;
    padding: 10px 12px; margin-bottom: 8px; background: var(--parchment);
  }
  .trash-item-inner { display: flex; align-items: flex-start; gap: 10px; }
  .trash-item-info { flex: 1; min-width: 0; }
  .trash-item-title { font-size: 13px; font-weight: 600; margin-bottom: 3px; line-height: 1.3; }
  .trash-item-meta { font-size: 11px; color: #888; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
  .trash-item-date { font-size: 10px; color: #aaa; margin-top: 3px; }
  .trash-item-actions { display: flex; flex-direction: column; gap: 5px; flex-shrink: 0; }
  @media (max-width: 520px) {
    #trashBody { padding: 12px 14px; }
    .trash-tab-btn { padding: 8px 10px; font-size: 11px; }
    .trash-item-inner { flex-wrap: wrap; }
    .trash-item-actions {
      flex-direction: row; width: 100%; margin-top: 6px;
    }
    .trash-item-actions .btn { flex: 1; justify-content: center; }
  }
  @media (max-width: 360px) {
    .trash-tab-btn { padding: 7px 8px; font-size: 10px; }
    .trash-tab-cnt { display: none; }
  }

  /* ===== USER MANAGER (admin only) ===== */
  .user-manager-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
  .user-row {
    display: flex; align-items: center; gap: 10px;
    background: var(--parchment); border: 1px solid var(--border);
    border-radius: 10px; padding: 10px 14px;
    flex-wrap: wrap;
  }
  @media (max-width: 480px) {
    .user-row { padding: 8px 10px; gap: 8px; }
    .user-row-actions { width: 100%; display: flex; justify-content: flex-end; gap: 6px; }
  }
  .user-row-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0;
  }
  .user-row-info { flex: 1; min-width: 0; }
  .user-row-name { font-size: 13px; font-weight: 600; }
  .user-row-meta { font-size: 11px; color: #888; margin-top: 2px; }
  .user-row-badge { font-size:10px;font-weight:700;padding:2px 8px;border-radius:10px; }
  .badge-admin { background: var(--gold-pale); color: #7a5c10; }
  .badge-chief { background: #e8f0fe; color: #2563ab; }
  .badge-user  { background: var(--slate-light); color: var(--slate); }
  .journal-access-chips { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
  .journal-chip {
    font-size: 10px; padding: 1px 7px; border-radius: 10px;
    background: var(--sage-light); color: var(--sage); font-weight: 500;
  }

  /* ===== TOMBOL AKSI USER — icon-only, label muncul saat hover ===== */
  .btn-usr {
    position: relative;
    width: 32px; height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--cream);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    color: #888;
    transition: border-color .15s, background .15s, color .15s;
    flex-shrink: 0;
  }
  .btn-usr svg { display: block; pointer-events: none; }
  .btn-usr:hover { border-color: var(--gold); background: var(--gold-pale); color: var(--ink); }
  .btn-usr.danger  { border-color: var(--border); }
  .btn-usr.danger:hover { border-color: var(--rust); background: var(--rust-light); color: var(--rust); }

  /* Tooltip label */
  .btn-usr::after {
    content: attr(data-label);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%; transform: translateX(-50%);
    background: var(--ink); color: #fff;
    font-size: 10px; font-weight: 600;
    white-space: nowrap;
    padding: 3px 8px; border-radius: 6px;
    pointer-events: none;
    opacity: 0; transition: opacity .15s;
    font-family: 'Poppins', Arial, sans-serif;
    letter-spacing: .2px;
    z-index: 10;
  }
  /* Panah kecil tooltip */
  .btn-usr::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%; transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--ink);
    pointer-events: none;
    opacity: 0; transition: opacity .15s;
    z-index: 10;
  }
  .btn-usr:hover::after,
  .btn-usr:hover::before { opacity: 1; }

  body.dark-mode .btn-usr { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.5); }
  body.dark-mode .btn-usr:hover { background: rgba(201,168,76,.12); border-color: var(--gold); color: var(--gold); }
  body.dark-mode .btn-usr.danger:hover { background: var(--rust-light); border-color: #e07a5f; color: #e07a5f; }
  body.dark-mode .btn-usr::after { background: #e8e6f0; color: #1a1a2e; }
  body.dark-mode .btn-usr::before { border-top-color: #e8e6f0; }

  /* Di layar kecil: tampilkan label permanen di bawah ikon (karena hover tidak tersedia) */
  @media (max-width: 480px) {
    .btn-usr { width: auto; padding: 4px 10px; gap: 5px; }
    .btn-usr::after, .btn-usr::before { display: none; }
    .btn-usr .btn-usr-lbl { display: inline; font-size: 11px; font-weight: 600; }
  }
  @media (min-width: 481px) {
    .btn-usr .btn-usr-lbl { display: none; }
  }

  /* Tombol urutan artikel ↑↓ */
  .btn-icon {
    background: var(--parchment); border: 1px solid var(--border);
    cursor: pointer; color: #888; display: flex; align-items: center;
    justify-content: center; transition: all .15s; line-height: 1;
    border-radius: 4px; padding: 3px 5px;
  }
  .btn-icon:hover { background: var(--gold-pale); border-color: var(--gold); color: var(--ink); }
  body.dark-mode .btn-icon { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.5); }
  body.dark-mode .btn-icon:hover { background: rgba(201,168,76,.15); border-color: var(--gold); color: var(--gold); }
  .sb-icon svg { stroke: rgba(0,0,0,.55); transition: stroke .2s; }
  .btn-sidebar:hover .sb-icon svg { stroke: #000; }
  body.dark-mode .sb-icon svg { stroke: rgba(255,255,255,.75); }
  body.dark-mode .btn-sidebar:hover .sb-icon svg { stroke: var(--gold); }
  /* Logout tetap merah */
  .btn-sidebar-logout .sb-icon svg { stroke: var(--rust) !important; }
  body.dark-mode .btn-sidebar-logout .sb-icon svg { stroke: #e07a5f !important; }

  /* Setting button */
  .btn-sidebar-setting {
    border-top: 1px solid rgba(0,0,0,.08);
    padding-top: 8px; margin-top: 2px;
  }
  /* Highlight tombol setting saat hover atau panel terbuka */
  .btn-sidebar-setting:hover,
  .btn-sidebar-setting.sb-setting-open {
    background: var(--gold-pale);
    color: var(--gold);
  }
  body.dark-mode .btn-sidebar-setting:hover,
  body.dark-mode .btn-sidebar-setting.sb-setting-open {
    background: rgba(201,168,76,.10);
    color: var(--gold);
  }
  .btn-sidebar-setting:hover .sb-icon svg,
  .btn-sidebar-setting.sb-setting-open .sb-icon svg {
    stroke: var(--gold);
  }
  .sb-setting-chevron {
    margin-left: auto; font-size: 9px;
    color: rgba(0,0,0,.4);
    transition: transform .28s cubic-bezier(.4,0,.2,1), color .18s;
    flex-shrink: 0;
  }
  .sb-setting-open .sb-setting-chevron {
    transform: rotate(180deg);
    color: var(--gold);
  }
  body.dark-mode .sb-setting-chevron { color: rgba(255,255,255,.35); }

  /* Panel transition: smooth max-height + opacity */
  #sbSettingPanel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height .32s cubic-bezier(.4,0,.2,1), opacity .25s ease;
  }
  #sbSettingPanel.panel-open {
    opacity: 1;
  }

  /* Minimized: setting btn jadi lingkaran saja, panel via flyout */
  #sidebar.minimized .sb-setting-chevron { display: none; }
  #sidebar.minimized #sbSettingPanel { max-height: 0 !important; opacity: 0 !important; }
  .sidebar-pin-btn svg { stroke: rgba(255,255,255,.6); transition: stroke .15s; }
  .sidebar-pin-btn:hover svg { stroke: var(--gold); }

  /* ===== SORT JOURNALS DRAG LIST ===== */
  .sort-journal-row {
    display: flex; align-items: center; gap: 10px;
    background: var(--cream); border: 1px solid var(--border);
    border-radius: 10px; padding: 10px 14px;
    cursor: grab; user-select: none;
    transition: box-shadow .15s, background .15s, transform .15s;
  }
  .sort-journal-row:active { cursor: grabbing; }
  .sort-journal-row.drag-over {
    border-color: var(--gold);
    background: var(--gold-pale);
    box-shadow: 0 4px 16px var(--shadow-md);
  }
  .sort-journal-row.dragging {
    opacity: .45; transform: scale(.98);
  }
  .sort-journal-row.sort-placeholder {
    background: var(--gold-pale); border: 2px dashed var(--gold);
    border-radius: 10px; pointer-events: none;
  }
  .sort-journal-row.drag-target-above { border-top: 2px solid var(--gold); }
  .sort-journal-row.drag-target-below { border-bottom: 2px solid var(--gold); }
  .sort-num {
    font-size: 11px; font-weight: 700; color: #aaa;
    min-width: 22px; text-align: center; flex-shrink: 0;
  }
  .sort-logo {
    width: 32px; height: 32px; border-radius: 6px;
    border: 1px solid var(--border); background: var(--parchment);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700; color: #888;
    overflow: hidden; flex-shrink: 0;
  }
  .sort-logo img { width: 100%; height: 100%; object-fit: contain; }
  .sort-name { flex: 1; font-size: 13px; font-weight: 500; color: var(--ink); min-width: 0; }
  .sort-abbr { font-size: 11px; color: #aaa; flex-shrink: 0; }
  .sort-handle { font-size: 16px; color: #ccc; flex-shrink: 0; cursor: grab; }
  .sort-handle:hover { color: var(--gold); }

  /* ===== CHANGE PASSWORD LINK ===== */
  .change-pwd-link {
    font-size: 11px; color: var(--slate); cursor: pointer;
    text-decoration: underline; background: none; border: none;
    font-family: 'Poppins', Arial, sans-serif; padding: 0;
  }
  .change-pwd-link:hover { color: var(--gold); }


/* === Loading Spinner === */

@keyframes spin { to { transform: rotate(360deg); } }
