    /* Font Arab self-host — tidak bergantung CDN */
    @font-face { font-family: 'Scheherazade New'; src: url('/fonts/ScheherazadeNew-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
    @font-face { font-family: 'Scheherazade New'; src: url('/fonts/ScheherazadeNew-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
    /* ── Themes ──────────────────────────────────────────────────── */
    :root {
      --bg:          #FFFFFF;
      --bg-sub:      #F7F7F7;
      --bg-hover:    #F1F1F1;
      --text:        #111111;
      --muted:       #888888;
      --faint:       #DDDDDD;
      --border:      #E8E8E8;
      --border-f:    oklch(0.75 0.09 192);
      --accent:      oklch(0.50 0.13 192);
      --accent-lt:   oklch(0.95 0.04 192);
      --accent-mid:  oklch(0.72 0.09 192);
      --shadow-lg:   0 8px 32px rgba(0,0,0,0.10);
      --footer-bg:   oklch(0.50 0.13 192);
      --footer-text: rgba(255,255,255,0.85);
      --differs:     oklch(0.50 0.13 192);

      /* Skala radius/spacing — diselaraskan dengan editor Marktaba */
      --radius-sm: 6px;
      --radius:    10px;
      --radius-lg: 16px;
      --space-2xs: 1px;
      --space-xs:  2px;
      --space-sm:  4px;
      --space-md:  6px;
      --space-lg:  8px;
      --space-xl:  10px;
      --space-2xl: 12px;
      --space-3xl: 14px;
    }
    [data-theme="dark"] {
      --bg:          #0E0E10;
      --bg-sub:      #161618;
      --bg-hover:    #1C1C1F;
      --text:        #EBEBEB;
      --muted:       #52525A;
      --faint:       #252530;
      --border:      #202025;
      --border-f:    oklch(0.55 0.12 192);
      --accent:      oklch(0.66 0.14 192);
      --accent-lt:   oklch(0.18 0.05 192);
      --accent-mid:  oklch(0.42 0.10 192);
      --shadow-lg:   0 10px 40px rgba(0,0,0,0.60);
      --footer-bg:   oklch(0.28 0.05 192);
      --footer-text: oklch(0.78 0.05 192 / 0.9);
      --differs:     oklch(0.66 0.14 192);
    }

    /* ── Reset ───────────────────────────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: 'DM Sans', sans-serif;
      background: var(--bg); color: var(--text);
      min-height: 100vh; display: flex; flex-direction: column;
      transition: background 0.2s, color 0.2s;
    }
    ::-webkit-scrollbar { width: 4px; height: 4px; }
    ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
    ::-webkit-scrollbar-thumb:hover { background: var(--faint); }

    /* ── Topbar ──────────────────────────────────────────────────── */
    .topbar {
      position: sticky; top: 0; z-index: 100;
      height: 46px; display: flex; align-items: center;
      padding: 0 0.875rem; gap: var(--space-md); flex-shrink: 0;
      border-bottom: 1px solid var(--border);
      background: var(--bg);
    }
    .topbar-brand {
      font-weight: 600; font-size: 13px; letter-spacing: -0.015em;
      color: var(--text); text-decoration: none; transition: color 0.13s;
    }
    .topbar-brand:hover { color: var(--accent); }
    .topbar-nav {
      display: flex; align-items: center; gap: var(--space-xs);
      padding-left: 0.6rem; border-left: 1px solid var(--border); margin-left: 4px;
    }
    .topbar-link {
      height: 24px; padding: 0 8px; background: none; border: none;
      cursor: pointer; color: var(--muted); font-size: 12px; font-weight: 400;
      border-radius: 5px; text-decoration: none; display: inline-flex;
      align-items: center; font-family: 'DM Sans', sans-serif;
      transition: color 0.13s;
    }
    .topbar-link:hover { color: var(--accent); }
    .topbar-link.active { color: var(--accent); font-weight: 500; }
    .topbar-sep { color: var(--faint); font-size: 12px; user-select: none; }
    .topbar-spacer { flex: 1; }
    .topbar-btn {
      width: 24px; height: 24px; display: flex; align-items: center;
      justify-content: center; background: none; border: 1px solid transparent;
      border-radius: 8px; cursor: pointer; color: var(--muted);
      transition: all 0.13s; line-height: 0;
    }
    .topbar-btn:hover { background: var(--bg-hover); color: var(--text); }
    .topbar-btn.active { background: var(--accent-lt); border-color: var(--border-f); color: var(--accent); }
    .topbar-btn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }
    .lang-btn {
      height: 24px; padding: 0 9px; background: var(--bg-sub);
      border: 1px solid var(--border); border-radius: 7px; cursor: pointer;
      color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
      font-family: 'DM Sans', sans-serif; transition: all 0.13s;
    }
    .lang-btn:hover { color: var(--accent); border-color: var(--border-f); }

    /* ── Layout ──────────────────────────────────────────────────── */
    main {
      flex: 1; padding: 2.5rem 1.25rem 5rem;
      max-width: 940px; width: 100%; margin: 0 auto;
    }

    /* ── Page header ─────────────────────────────────────────────── */
    .page-header { margin-bottom: 2.5rem; }
    .page-header h1 {
      font-family: 'DM Sans', sans-serif;
      font-size: 1.6rem; font-weight: 600; color: var(--text);
      letter-spacing: -0.02em; margin-bottom: 0.4rem;
    }
    .page-header p {
      font-size: 13px; color: var(--muted); line-height: 1.65; max-width: 580px;
    }

    /* ── Section label ───────────────────────────────────────────── */
    .section-label {
      font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
      text-transform: uppercase; color: var(--muted); margin-bottom: 0.85rem;
    }

    /* ── Table ───────────────────────────────────────────────────── */
    .table-section { margin-bottom: 3rem; }
    .table-scroll-wrap {
      border: 1px solid var(--border); border-radius: var(--radius);
      overflow-x: auto; overflow-y: visible;
      -webkit-overflow-scrolling: touch;
    }
    table.comparison {
      border-collapse: collapse; width: max-content; min-width: 100%;
      font-size: 12px;
    }
    table.comparison thead tr { background: var(--bg-sub); }
    table.comparison th {
      padding: 0.5rem 0.7rem; text-align: center;
      font-weight: 600; color: var(--accent); white-space: nowrap;
      font-size: 10px; letter-spacing: 0.04em;
      border-bottom: 1px solid var(--border);
    }
    table.comparison th.col-arabic {
      font-family: 'Scheherazade New', serif; font-size: 1.05rem;
      font-weight: 400; color: var(--text); direction: rtl;
    }
    table.comparison td {
      padding: 0.5rem 0.7rem; text-align: center;
      border-bottom: 1px solid var(--border);
      color: var(--text); white-space: nowrap;
    }
    table.comparison tbody tr:last-child td { border-bottom: none; }
    table.comparison tbody tr:hover td { background: var(--bg-hover); }
    /* sticky first col */
    table.comparison th.col-system,
    table.comparison td.col-system {
      position: sticky; left: 0; z-index: 3; text-align: left;
      min-width: 168px; border-right: 1px solid var(--border);
      box-shadow: 2px 0 6px -2px rgba(0,0,0,0.08);
    }
    table.comparison th.col-system { background: var(--bg-sub); }
    table.comparison td.col-system { background: var(--bg); font-weight: 500; }
    table.comparison tbody tr:hover td.col-system { background: var(--bg-hover); }
    tr.group-header th { background: var(--bg-sub); color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-align: left; padding: 0.3rem 0.7rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
    tr.group-header th.group-span { border-left: 1px solid var(--border); }
    tr.group-header th.col-system { z-index: 4; }
    td.differs { color: var(--differs); font-weight: 600; }
    a.cite-sup {
      font-size: 0.55rem; font-weight: 700; color: var(--accent-mid);
      vertical-align: super; text-decoration: none; margin-left: 0.2em;
      line-height: 1; transition: color 0.15s; letter-spacing: 0;
    }
    a.cite-sup:hover { color: var(--accent); text-decoration: underline; }

    /* ── Divider ─────────────────────────────────────────────────── */
    .section-divider { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

    /* ── Cards ───────────────────────────────────────────────────── */
    .cards-grid { display: flex; flex-direction: column; gap: 0.875rem; margin-bottom: 3rem; }
    .card {
      border: 1px solid var(--border); border-radius: var(--radius);
      padding: 1.1rem 1.25rem; background: var(--bg);
      display: flex; flex-direction: row; align-items: stretch; gap: 1.25rem;
      transition: border-color 0.15s, box-shadow 0.15s;
      scroll-margin-top: 60px;
    }
    .card:hover { border-color: var(--accent-mid); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
    .card:target, .card.highlight {
      border-color: var(--accent-mid);
      box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
    }
    .card-left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.4rem; }
    .card-title { font-size: 13px; font-weight: 600; color: var(--text); }
    .card-meta { font-size: 12px; color: var(--muted); line-height: 1.65; flex: 1; }
    .card-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
    .card-citation {
      margin-top: 0.15rem; padding-top: 0.55rem; border-top: 1px dashed var(--border);
    }
    .card-citation-label {
      font-size: 9px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
      color: var(--muted); margin-bottom: 0.3rem;
    }
    .card-citation-entry {
      font-size: 11px; line-height: 1.5; color: var(--muted);
      padding-left: 1em; text-indent: -1em; /* hanging indent APA */
      overflow-wrap: break-word; word-break: break-word;
    }
    .card-citation-entry + .card-citation-entry { margin-top: 0.35rem; }
    .card-citation-entry i { font-style: italic; color: var(--text); }
    .tag {
      font-size: 9px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
      padding: 0.15rem 0.45rem; border-radius: 4px;
      background: var(--accent-lt); color: var(--accent); border: 1px solid var(--accent-mid);
    }
    .card-actions { display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; gap: 0.3rem; flex-shrink: 0; }
    .card-btn-row { display: flex; gap: 0.5rem; }
    .btn-dl {
      display: inline-flex; align-items: center; gap: 0.35rem;
      font-size: 11px; font-weight: 600; color: var(--accent);
      background: var(--accent-lt); border: 1px solid var(--accent-mid);
      border-radius: var(--radius-sm); padding: 0.3rem 0.65rem; cursor: pointer;
      text-decoration: none; transition: background 0.15s;
      font-family: 'DM Sans', sans-serif;
    }
    .btn-dl:hover { background: color-mix(in srgb, var(--accent) 15%, transparent); }
    .btn-dl.disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }
    .btn-dl.btn-ref {
      background: none; color: var(--muted);
      border-color: var(--border);
    }
    .btn-dl.btn-ref:not(.disabled):hover { background: var(--bg-hover); color: var(--text); border-color: var(--faint); }
    .btn-dl.btn-ref.disabled { opacity: 0.35; }
    .btn-dl svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .coming-soon { font-size: 11px; color: var(--muted); font-style: italic; }

    /* ── Notes ───────────────────────────────────────────────────── */
    .notes-section {
      background: var(--bg-sub); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 1rem 1.25rem;
      font-size: 12px; color: var(--muted); line-height: 1.7;
    }
    .notes-section strong { color: var(--text); }

    /* ── Footer ──────────────────────────────────────────────────── */
    .site-footer {
      position: fixed; bottom: 0; left: 0; right: 0;
      height: 24px; display: flex; align-items: center; justify-content: center;
      gap: var(--space-md); background: var(--footer-bg); color: var(--footer-text);
      font-size: 10px; letter-spacing: 0.04em; z-index: 100;
      transition: background 0.2s;
    }
    .site-footer a { color: inherit; text-decoration: none; font-weight: 600; transition: opacity 0.15s; }
    .site-footer a:hover { opacity: 0.7; }

    /* ── About Modal ─────────────────────────────────────────────── */
    .modal-overlay {
      position: fixed; inset: 0; background: rgba(0,0,0,0.5);
      backdrop-filter: blur(8px); display: none; align-items: center;
      justify-content: center; z-index: 2000; opacity: 0; transition: opacity 0.25s;
    }
    .modal-overlay.show { display: flex; opacity: 1; }
    .modal-card {
      background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
      width: 580px; max-width: 92vw; max-height: 85vh;
      box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
      transform: scale(0.95) translateY(16px);
      transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
    }
    .modal-overlay.show .modal-card { transform: scale(1) translateY(0); }
    .modal-header {
      padding: 0.875rem 1.25rem; border-bottom: 1px solid var(--border);
      display: flex; align-items: center; justify-content: space-between;
      background: var(--bg-sub); flex-shrink: 0;
    }
    .modal-header-title { display: flex; align-items: center; gap: var(--space-lg); font-weight: 600; font-size: 13px; color: var(--text); }
    .modal-header-title svg { color: var(--accent); width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .modal-close { background: none; border: none; cursor: pointer; color: var(--muted); padding: 4px; line-height: 0; border-radius: var(--radius-sm); transition: color 0.13s; }
    .modal-close:hover { color: var(--text); }
    .modal-close svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
    .modal-body { padding: 1.5rem; overflow-y: auto; font-size: 13px; line-height: 1.75; color: var(--text); }
    .modal-body h4 { color: var(--accent); font-weight: 600; font-size: 13px; margin: 1.25rem 0 0.5rem; padding-left: 10px; border-left: 3px solid var(--accent); }
    .modal-body h4:first-child { margin-top: 0; }
    .modal-body p { margin-bottom: 0.875rem; color: var(--muted); }
    .modal-body strong { color: var(--text); }
    .modal-body a { color: var(--accent); }
    .modal-body code { background: var(--bg-sub); padding: 2px 6px; border-radius: 4px; color: var(--accent); font-family: monospace; font-size: 0.92em; }
    .modal-body ul { padding-left: 1.25rem; margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.4rem; }
    .modal-body li { color: var(--muted); }
    .modal-logo { display: flex; justify-content: center; padding: 1rem 0 1.75rem; }
    .modal-logo img { max-width: 160px; height: auto; }
    .modal-maktabah { display: flex; justify-content: center; padding: 0.5rem 0 0.25rem; }
    [data-theme="dark"] .maktabah-icon path[style*="#23292a"],
    [data-theme="dark"] .maktabah-icon path[style*="#999999"] { fill: #ffffff !important; }
    .app-badges { display: flex; gap: 0.75rem; margin: 0.75rem 0 1.25rem; flex-wrap: wrap; }
    .app-badge img { height: 36px; width: auto; transition: transform 0.2s; }
    .app-badge:hover img { transform: translateY(-2px); }
    .contact-links { display: flex; flex-direction: column; gap: var(--space-lg); margin-top: 0.75rem; }
    .contact-link { display: flex; align-items: center; gap: var(--space-lg); color: var(--accent); text-decoration: none; font-size: 13px; font-weight: 500; }
    .contact-link svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }

    /* ── Tooltip ─────────────────────────────────────────────────── */
    #ui-tooltip {
      position: fixed; background: rgba(20,20,24,0.92); color: #F0F0F0;
      font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 400;
      padding: 4px 9px; border-radius: var(--radius-sm); pointer-events: none;
      opacity: 0; transition: opacity 0.12s; z-index: 9999; white-space: nowrap;
      box-shadow: 0 2px 8px rgba(0,0,0,0.25); letter-spacing: 0.01em;
    }
    #ui-tooltip.visible { opacity: 1; }

    /* ── Responsive ──────────────────────────────────────────────── */
    @media (pointer: coarse) {
      /* Target sentuh lebih besar di layar touch (icon tetap 14px, cuma area tap-nya) */
      .topbar-btn { width: 40px; height: 40px; }
      .lang-btn { height: 34px; }
      .modal-close { padding: 8px; }
    }
    @media (max-width: 768px) {
      /* Topbar */
      .topbar { flex-wrap: wrap; height: auto; padding: 6px 0.75rem; gap: 0.4rem; }
      .topbar-spacer { display: none; }
      .topbar-divider { display: none; }
      .topbar-nav { gap: var(--space-2xs); }
      .topbar-link { padding: 0 5px; font-size: 11px; }
      .sys-panel { left: auto; right: 0; min-width: 160px; }
      /* Main content */
      main { padding: 1.25rem 0.875rem 4rem; }
      .page-header h1 { font-size: 1.25rem; }
      .card { flex-direction: column; }
      .card-actions { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
      /* Comparison table */
      table.comparison th, table.comparison td { padding: 0.35rem 0.5rem; font-size: 11px; }
      table.comparison th.col-system, table.comparison td.col-system { min-width: 110px; }
    }
