/* Telaah SLR
   Layout: bilah atas tetap; ruang kerja = daftar rekaman + 3 panel sejajar (dokumen lebar, dua kolom reviewer);
   halaman lain = kolom baca terpusat dengan kartu per tugas. Netral kebiruan ala kertas lab, aksen biru petrol. */
:root {
  --bg: #eef2f3;
  --surface: #ffffff;
  --surface-2: #f5f8f9;
  --sunk: #e3e9eb;
  --ink: #142229;
  --ink-2: #44565f;
  --muted: #74858d;
  --line: #d3dcdf;
  --line-2: #e4eaec;
  --accent: #155e7d;
  --accent-ink: #ffffff;
  --accent-soft: #dcebf2;
  --r1: #5b45c2;
  --r1-soft: #ece8fb;
  --r2: #a3336f;
  --r2-soft: #f8e6f0;
  --ok: #1d7a46;
  --ok-soft: #dff1e6;
  --no: #b3261e;
  --no-soft: #fbe3e1;
  --warn: #8f5d00;
  --warn-soft: #fbefd5;
  --conf: #c2410c;
  --conf-soft: #fde6d8;
  --hl0: rgba(250, 204, 21, .45);
  --hl1: rgba(74, 222, 128, .42);
  --hl2: rgba(56, 189, 248, .38);
  --hl3: rgba(167, 139, 250, .40);
  --hl4: rgba(244, 114, 182, .36);
  --hl5: rgba(251, 146, 60, .42);
  --hl-exc: rgba(239, 68, 68, .22);
  --shadow: 0 1px 2px rgba(20, 34, 41, .06), 0 4px 16px rgba(20, 34, 41, .05);
  --font-ui: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-doc: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --radius: 8px;
  --top-h: 56px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1518; --surface: #151f24; --surface-2: #1a262c; --sunk: #0b1114;
    --ink: #e2eaed; --ink-2: #a8b7bd; --muted: #75878f; --line: #2a3a41; --line-2: #223137;
    --accent: #5cb4dc; --accent-ink: #06222e; --accent-soft: #163543;
    --r1: #a797f2; --r1-soft: #272042; --r2: #e58abf; --r2-soft: #3a1e2f;
    --ok: #4cc584; --ok-soft: #12301f; --no: #f27b72; --no-soft: #3a1714;
    --warn: #e2b04d; --warn-soft: #33270e; --conf: #f59a5b; --conf-soft: #3a2010;
    --hl0: rgba(250, 204, 21, .32); --hl1: rgba(74, 222, 128, .28); --hl2: rgba(56, 189, 248, .30);
    --hl3: rgba(167, 139, 250, .34); --hl4: rgba(244, 114, 182, .30); --hl5: rgba(251, 146, 60, .32);
    --hl-exc: rgba(239, 68, 68, .30);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1518; --surface: #151f24; --surface-2: #1a262c; --sunk: #0b1114;
  --ink: #e2eaed; --ink-2: #a8b7bd; --muted: #75878f; --line: #2a3a41; --line-2: #223137;
  --accent: #5cb4dc; --accent-ink: #06222e; --accent-soft: #163543;
  --r1: #a797f2; --r1-soft: #272042; --r2: #e58abf; --r2-soft: #3a1e2f;
  --ok: #4cc584; --ok-soft: #12301f; --no: #f27b72; --no-soft: #3a1714;
  --warn: #e2b04d; --warn-soft: #33270e; --conf: #f59a5b; --conf-soft: #3a2010;
  --hl0: rgba(250, 204, 21, .32); --hl1: rgba(74, 222, 128, .28); --hl2: rgba(56, 189, 248, .30);
  --hl3: rgba(167, 139, 250, .34); --hl4: rgba(244, 114, 182, .30); --hl5: rgba(251, 146, 60, .32);
  --hl-exc: rgba(239, 68, 68, .30);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font-ui); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; }
h1 { font-size: 1.75rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
h2 { font-size: 1.05rem; font-weight: 600; }
h3 { font-size: .9rem; font-weight: 600; margin-top: 1rem; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-mono); font-size: .85rem; }
.empty { color: var(--muted); font-style: italic; margin: .5rem 0; }
.pad { padding: 1rem; }
.hint { color: var(--ink-2); font-size: .85rem; margin: .25rem 0 .75rem; max-width: 72ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; font-weight: 600; color: var(--accent); margin: 0 0 .35rem; }
.lede { color: var(--ink-2); max-width: 68ch; margin: .5rem 0 0; }
.txt-conf { color: var(--conf); font-weight: 600; }
.txt-ok { color: var(--ok); font-weight: 600; }

/* ---------- Bilah atas ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  display: flex; align-items: center; gap: 1rem; min-height: var(--top-h);
  padding-inline: 16px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .55rem; flex: none; }
.brand-mark { display: inline-grid; grid-template-columns: repeat(3, 5px); gap: 2px; align-items: end; height: 18px; }
.brand-mark i { display: block; background: var(--accent); border-radius: 1px; }
.brand-mark i:nth-child(1) { height: 18px; } .brand-mark i:nth-child(2) { height: 12px; background: var(--r1); } .brand-mark i:nth-child(3) { height: 7px; background: var(--r2); }
.brand-name { font-family: var(--font-doc); font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
.brand-name em { font-family: var(--font-mono); font-style: normal; font-size: .7rem; font-weight: 500; color: var(--muted); margin-left: .3rem; letter-spacing: .08em; }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; border: 0; background: none; padding: .5rem .75rem; border-radius: 6px; color: var(--ink-2); cursor: pointer; font-weight: 500; white-space: nowrap; }
.tabs button:hover { background: var(--surface-2); color: var(--ink); }
.tabs button.on { background: var(--accent-soft); color: var(--accent); }
.tabs button.dim { opacity: .55; }
.top-right { display: flex; align-items: center; gap: .75rem; flex: none; }
.type-pill { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: .2rem .55rem; border-radius: 99px; border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.as-wrap { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--muted); }
.as-wrap select { padding: .3rem .4rem; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); font-size: .82rem; }
.save-state { font-size: .75rem; color: var(--muted); white-space: nowrap; font-family: var(--font-mono); }
.save-state.bad { color: var(--no); }

.sample-banner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .5rem 16px; background: var(--warn-soft); color: var(--ink); border-bottom: 1px solid var(--line); font-size: .85rem; }

/* ---------- Kerangka halaman ---------- */
.view { display: none; }
.view.on { display: block; }
.page { max-width: 1180px; margin: 0 auto; padding-inline: 16px; padding-block: 1.75rem 4rem; display: flex; flex-direction: column; gap: 1.25rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; min-width: 0; display: flex; flex-direction: column; gap: .5rem; }
.card > h2 + .hint { margin-top: 0; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 1.25rem; }
.count { font-family: var(--font-mono); font-weight: 500; font-size: .8rem; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; padding: 0 .5rem; margin-left: .35rem; }

/* ---------- Kontrol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: .5rem .9rem; border-radius: 6px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font-weight: 500; cursor: pointer; text-align: center; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn.ghost { background: transparent; color: var(--accent); border-color: var(--line); }
.btn.ghost:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
.btn.danger { background: var(--no); border-color: var(--no); color: #fff; }
.btn.sm { padding: .28rem .6rem; font-size: .8rem; }
.btn.r1 { background: var(--r1); border-color: var(--r1); color: #fff; }
.btn.r2 { background: var(--r2); border-color: var(--r2); color: #fff; }
.btn.d-inc { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.d-exc { background: var(--no); border-color: var(--no); color: #fff; }
.btn-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.icon-btn { width: 30px; height: 30px; flex: none; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 6px; background: none; cursor: pointer; color: var(--ink-2); font-size: 1rem; line-height: 1; }
.icon-btn:hover { background: var(--surface-2); border-color: var(--line); color: var(--ink); }
.link { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; text-align: left; }
.link.sm { font-size: .75rem; margin-left: .4rem; }

.fld { display: flex; flex-direction: column; gap: .3rem; min-width: 0; border: 0; padding: 0; margin: 0; }
.fld > span, .fld > legend { font-size: .78rem; font-weight: 600; color: var(--ink-2); padding: 0; }
.fld.inline { flex-direction: row; align-items: center; gap: .5rem; }
input[type="text"], input[type="search"], input[type="number"], select, textarea {
  width: 100%; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); min-width: 0;
}
textarea { resize: vertical; line-height: 1.45; }
input:disabled, select:disabled, textarea:disabled { background: var(--surface-2); color: var(--ink-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.check { display: flex; gap: .55rem; align-items: flex-start; cursor: pointer; font-size: .88rem; }
.check input { margin-top: .2rem; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.check.sm { font-size: .8rem; align-items: center; }
.check.sm input { margin-top: 0; }
.req { color: var(--no); font-weight: 600; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; margin-left: .3rem; }
select.need { border-color: var(--no); box-shadow: 0 0 0 3px var(--no-soft); }

.seg { display: inline-flex; background: var(--sunk); border-radius: 8px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: .4rem .75rem; border-radius: 6px; cursor: pointer; color: var(--ink-2); font-weight: 500; }
.seg button:hover:not(:disabled) { color: var(--ink); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg button:disabled { opacity: .45; cursor: not-allowed; }
.seg.sm button { padding: .25rem .6rem; font-size: .8rem; }
.seg-lg { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); width: 100%; margin-bottom: .5rem; }
.seg-lg button { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; padding: .65rem .8rem; text-align: left; }
.seg-lg small { font-size: .72rem; color: var(--muted); font-weight: 400; }
.type-switch-note { background: var(--accent-soft); border-radius: 6px; padding: .6rem .8rem; font-size: .85rem; display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }

.pill { display: inline-flex; align-items: center; font-size: .7rem; font-weight: 600; padding: .08rem .45rem; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.pill.no { background: var(--no-soft); color: var(--no); border-color: transparent; }
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill.conf { background: var(--conf-soft); color: var(--conf); border-color: transparent; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; vertical-align: middle; }
.dot.r1 { background: var(--r1); } .dot.r2 { background: var(--r2); }

/* ---------- Tabel ---------- */
.table-wrap { overflow-x: auto; min-width: 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: .86rem; }
.tbl th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: .5rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: .5rem .6rem; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl.small td { font-size: .8rem; }
.tbl input, .tbl select { padding: .35rem .5rem; }
.row-actions { white-space: nowrap; text-align: right; }
.confirm { display: inline-flex; gap: .4rem; align-items: center; flex-wrap: wrap; font-size: .82rem; }

/* ---------- Kriteria & penanda ---------- */
.fw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .6rem; }
.fw-key { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); font-size: .7rem; margin-right: .2rem; }
.rev-names { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.card > .fld, .card > .check { margin-bottom: .35rem; }
.crit-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 1.25rem; }
.crit-cols h3 { margin: 0 0 .5rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.inc-h { color: var(--ok); } .exc-h { color: var(--no); }
.crit-list { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .6rem; }
.crit-row { display: grid; grid-template-columns: 6px 1fr auto; gap: .6rem; align-items: stretch; padding: .5rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); }
.crit-row .crit-swatch { width: 6px; height: auto; border-radius: 3px; }
.crit-fields { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.crit-label { font-weight: 600; }
.crit-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; flex: none; }
.hl-c0 { background: var(--hl0); } .hl-c1 { background: var(--hl1); } .hl-c2 { background: var(--hl2); }
.hl-c3 { background: var(--hl3); } .hl-c4 { background: var(--hl4); } .hl-c5 { background: var(--hl5); }
.crit-swatch.hl-exc, .hl-exc.crit-swatch { background: var(--no); }
mark { color: inherit; border-radius: 2px; padding: 0 1px; }
mark.hl-inc { box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .12); }
mark.hl-exc { background: var(--hl-exc); text-decoration: underline wavy var(--no); text-decoration-thickness: 1px; text-underline-offset: 3px; }
mark.hl-find { background: transparent; outline: 2px solid var(--accent); outline-offset: 0; }
mark.hl-find.cur { background: var(--accent); color: var(--accent-ink); }
.tester { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1rem; margin-top: .75rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.tester h3 { margin: 0 0 .4rem; }
.tester-out { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; min-width: 0; }
.flag-summary { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin-top: .75rem; font-size: .82rem; }
.flag { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 600; padding: .15rem .55rem; border-radius: 4px; white-space: nowrap; }
.flag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.flag-inc { background: var(--ok-soft); color: var(--ok); }
.flag-mix { background: var(--warn-soft); color: var(--warn); }
.flag-part { background: var(--accent-soft); color: var(--accent); }
.flag-exc { background: var(--no-soft); color: var(--no); }
.flag-none { background: var(--surface-2); color: var(--muted); }
.crit-chips, .flag-line { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; padding: .12rem .5rem; border-radius: 99px; border: 1px dashed var(--line); color: var(--muted); }
.chip.on { border-style: solid; color: var(--ink); background: var(--surface); }
.chip.exc.on { border-color: var(--no); color: var(--no); }
.chip:not(.on) .crit-swatch { opacity: .35; }

/* ---------- Impor ---------- */
.import-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 1.25rem; }
.import-meta { display: flex; flex-direction: column; gap: .75rem; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .35rem; border: 2px dashed var(--line); border-radius: var(--radius); padding: 2rem 1rem; cursor: pointer; background: var(--surface-2); transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop-icon { font-size: 1.8rem; color: var(--accent); line-height: 1; }
.drop-progress { font-family: var(--font-mono); font-size: .78rem; color: var(--accent); min-height: 1.2em; }
.mapping { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .75rem; }
.map-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .6rem; }
.mini-list { display: flex; flex-direction: column; max-height: 300px; overflow-y: auto; border: 1px solid var(--line-2); border-radius: 6px; }
.mini-list .empty { padding: .5rem .75rem; }
.mini-item { display: flex; justify-content: space-between; gap: .75rem; align-items: center; padding: .5rem .75rem; border-bottom: 1px solid var(--line-2); }
.mini-item:last-child { border-bottom: 0; }
.mini-item > div { display: flex; flex-direction: column; min-width: 0; font-size: .84rem; }
.mini-item b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ---------- Ruang kerja 3 panel ---------- */
body.is-work { overflow: hidden; display: flex; flex-direction: column; }
body.is-work main { flex: 1; min-height: 0; }
.view-work.on { display: flex; flex-direction: column; height: 100%; }
.work-bar { display: flex; align-items: center; gap: .75rem 1.25rem; flex-wrap: wrap; padding: .6rem 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.stage-seg .n { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); margin-left: .2rem; }
.work-progress { display: flex; align-items: center; gap: .6rem; font-size: .8rem; color: var(--ink-2); }
.bar { width: 120px; height: 6px; border-radius: 3px; background: var(--sunk); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .3s; }
.work-filters { display: flex; gap: .5rem; margin-left: auto; flex-wrap: wrap; }
.work-filters input[type="search"] { width: 220px; }
.work-filters select { width: auto; max-width: 210px; }
.mobile-switch { display: none; }

.work-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 270px minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1fr); background: var(--line); gap: 1px; }
.work-grid.list-closed { grid-template-columns: 0 minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); }
.work-grid.list-closed .rec-list { visibility: hidden; }
.rec-list, .panel { background: var(--surface); min-height: 0; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.list-head { display: flex; justify-content: space-between; align-items: center; padding: .35rem .5rem .35rem .85rem; border-bottom: 1px solid var(--line); font-size: .75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.list-body { overflow-y: auto; flex: 1; }
.rec-item { display: flex; gap: .55rem; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line-2); background: none; padding: .6rem .75rem; cursor: pointer; border-left: 3px solid transparent; }
.rec-item:hover { background: var(--surface-2); }
.rec-item.sel { background: var(--accent-soft); border-left-color: var(--accent); }
.flag-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; margin-top: .35rem; background: currentColor; }
.flag-dot.flag-inc { color: var(--ok); } .flag-dot.flag-mix { color: var(--warn); } .flag-dot.flag-part { color: var(--accent); }
.flag-dot.flag-exc { color: var(--no); } .flag-dot.flag-none { color: var(--line); }
.ri-main { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.ri-title { font-size: .84rem; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ri-meta { font-size: .74rem; color: var(--muted); }
.pdf-tag { font-family: var(--font-mono); font-size: .65rem; color: var(--accent); }
.ri-foot { display: flex; gap: .3rem; align-items: center; margin-top: .15rem; }
.ri-foot .b { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; font-style: normal; font-size: .68rem; font-weight: 700; border: 1.5px solid; }
.ri-foot .b.r1 { border-color: var(--r1); color: var(--r1); }
.ri-foot .b.r2 { border-color: var(--r2); color: var(--r2); }
.ri-foot .b.d-inc { background: var(--ok); color: #fff; }
.ri-foot .b.d-exc { background: var(--no); color: #fff; }
.ri-foot .b.d-may { background: var(--warn); color: #fff; }
.ri-foot .b.hidden-d { color: var(--muted); }

/* Panel A */
.panel-a { overflow: hidden; }
.pa-head { padding: .75rem 1.1rem .6rem; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: .3rem; }
.pa-nav { display: flex; align-items: center; gap: .3rem; }
.panel-tag { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--accent); margin-right: auto; }
.doc-title { font-family: var(--font-doc); font-size: 1.2rem; font-weight: 600; line-height: 1.3; letter-spacing: -.005em; }
.doc-meta { margin: 0; color: var(--ink-2); font-size: .85rem; }
.src-chip { font-family: var(--font-mono); font-size: .72rem; background: var(--surface-2); border: 1px solid var(--line); padding: 0 .4rem; border-radius: 4px; color: var(--ink-2); }
.flag-line { margin-top: .2rem; }
.cbanner { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; padding: .5rem 1.1rem; font-size: .83rem; background: var(--surface-2); border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
.cbanner.ok { background: var(--ok-soft); color: var(--ok); }
.cbanner.no { background: var(--no-soft); color: var(--no); }
.cbanner.conf { background: var(--conf-soft); color: var(--ink); }
.cbanner.conf b { color: var(--conf); }
.cb-actions { display: inline-flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.cb-actions select { width: auto; padding: .25rem .4rem; font-size: .8rem; }
.pa-tools { display: flex; gap: .5rem .75rem; align-items: center; flex-wrap: wrap; padding: .5rem 1.1rem; border-bottom: 1px solid var(--line-2); }
.find { display: flex; align-items: center; gap: .2rem; flex: 1; min-width: 180px; max-width: 320px; }
.find input { padding: .3rem .5rem; font-size: .82rem; }
.find-n { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); min-width: 34px; text-align: center; }
.pa-actions { display: flex; gap: .6rem; align-items: center; margin-left: auto; }
.doc-content { flex: 1; overflow-y: auto; padding: 1rem 1.25rem 3rem; background: var(--surface); }
.doc-text { font-family: var(--font-doc); font-size: 1.02rem; line-height: 1.7; max-width: 72ch; color: var(--ink); }
.doc-text.small { font-size: .9rem; line-height: 1.6; }
.doc-text p { margin: .3rem 0 1rem; }
.doc-sub { font-family: var(--font-ui); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.page-txt { position: relative; padding-top: 1.4rem; border-top: 1px dashed var(--line); margin-top: .5rem; }
.page-txt:first-of-type { border-top: 0; }
.pg-no { position: absolute; top: .35rem; left: 0; font-family: var(--font-mono); font-size: .68rem; color: var(--muted); }
.term-hits { border: 1px solid var(--line); border-radius: 6px; padding: .4rem .75rem; margin: 0 0 1rem; background: var(--surface-2); font-size: .8rem; }
.term-hits summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.th-grid { display: flex; flex-direction: column; gap: .45rem; margin-top: .5rem; }
.th-group { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.th-label { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; margin-right: .3rem; }
.th-term { border: 1px solid var(--line); background: var(--surface); border-radius: 4px; padding: .05rem .4rem; font-size: .75rem; cursor: pointer; color: var(--muted); }
.th-term.on { color: var(--ink); }
.th-term b { font-family: var(--font-mono); font-weight: 500; color: var(--accent); }
.pdf-pages { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.pdf-page { position: relative; box-shadow: var(--shadow); background: #fff; max-width: 100%; }
.pdf-page canvas { display: block; max-width: 100%; height: auto; }
.pdf-page .pg-no { top: auto; bottom: -1.2rem; }
.panel-empty { margin: auto; text-align: center; padding: 2rem; color: var(--ink-2); display: flex; flex-direction: column; gap: .6rem; align-items: center; max-width: 340px; }

/* Panel reviewer */
.panel-r { border-top: 3px solid var(--line); }
.panel-r[data-rv="r1"] { border-top-color: var(--r1); }
.panel-r[data-rv="r2"] { border-top-color: var(--r2); }
.rv-head { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line-2); }
.rv-dot { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; }
.rv-head.r1 .rv-dot { background: var(--r1-soft); box-shadow: inset 0 0 0 2px var(--r1); }
.rv-head.r2 .rv-dot { background: var(--r2-soft); box-shadow: inset 0 0 0 2px var(--r2); }
.rv-name { display: flex; flex-direction: column; line-height: 1.2; margin-right: auto; min-width: 0; }
.rv-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-name span { font-size: .72rem; color: var(--muted); }
.rv-body { padding: .9rem 1rem 2rem; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: .8rem; }
.rv-q { margin: 0; font-size: .85rem; color: var(--ink-2); }
.decide { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.dec { position: relative; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .6rem .3rem; border: 1.5px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; font-weight: 600; font-size: .82rem; color: var(--ink-2); }
.dec:hover:not(:disabled) { border-color: var(--ink-2); }
.dec:disabled { cursor: not-allowed; opacity: .6; }
.dec-i { font-size: 1.1rem; line-height: 1; }
.dec kbd { position: absolute; top: 3px; right: 5px; font-family: var(--font-mono); font-size: .6rem; color: var(--muted); }
.dec.d-inc.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.dec.d-may.on { background: var(--warn); border-color: var(--warn); color: #fff; }
.dec.d-exc.on { background: var(--no); border-color: var(--no); color: #fff; }
.dec.on kbd { color: rgba(255, 255, 255, .75); }
.masked { margin: 1.5rem 1rem; padding: 1.5rem 1rem; text-align: center; border-radius: 8px; background: repeating-linear-gradient(135deg, var(--surface-2) 0 8px, var(--surface) 8px 16px); border: 1px dashed var(--line); display: flex; flex-direction: column; gap: .5rem; align-items: center; color: var(--ink-2); font-size: .85rem; }
.masked p { margin: 0; }
.mask-icon { width: 30px; height: 18px; border-radius: 50% / 60%; border: 2px solid var(--muted); position: relative; }
.mask-icon::after { content: ""; position: absolute; left: -4px; right: -4px; top: 6px; height: 2px; background: var(--muted); transform: rotate(-25deg); }
.ex-body { gap: .6rem; }
.ex-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; padding-bottom: .5rem; border-bottom: 1px solid var(--line-2); }
.ex-group { border: 0; padding: 0; margin: 0 0 .5rem; display: flex; flex-direction: column; gap: .55rem; min-width: 0; }
.ex-group legend { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--muted); margin-bottom: .35rem; padding: 0; }
.ex-group .fld { padding-left: .5rem; border-left: 2px solid transparent; }
.ex-group .fld.active { border-left-color: var(--accent); }
.ex-group textarea { min-height: 2.6rem; }

/* Konsensus ekstraksi */
.cons { display: flex; flex-direction: column; gap: .75rem; }
.cons-head { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; align-items: center; font-size: .86rem; }
.cons-tbl td { font-size: .84rem; white-space: pre-wrap; }
.cons-tbl td:first-child { width: 22%; } .cons-tbl td:last-child { width: 30%; }
.cons-tbl tr.diff td { background: var(--conf-soft); }
.cons-tbl .pill { margin-left: .35rem; }

/* Bilah kutip & tooltip & toast */
.selbar { position: fixed; z-index: 50; display: flex; gap: .35rem; align-items: center; background: var(--ink); color: var(--bg); padding: .35rem .45rem .35rem .65rem; border-radius: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.selbar-label { font-size: .75rem; font-weight: 600; }
.tooltip { position: fixed; z-index: 60; pointer-events: none; background: var(--ink); color: var(--bg); font-size: .78rem; padding: .35rem .55rem; border-radius: 6px; max-width: 320px; font-variant-numeric: tabular-nums; }
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 70; background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: 8px; font-size: .86rem; max-width: min(560px, calc(100% - 32px)); transition: opacity .2s, transform .2s; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { border-left: 4px solid var(--ok); } .toast.bad { border-left: 4px solid var(--no); } .toast.warn { border-left: 4px solid var(--warn); }

/* ---------- Statistik & grafik ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: .9rem 1rem; display: flex; flex-direction: column; gap: .1rem; }
.stat-l { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.stat-v { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.stat-v small { font-size: .9rem; color: var(--muted); }
.stat-s { font-size: .78rem; color: var(--ink-2); }
.controls-row { flex-direction: row; flex-wrap: wrap; gap: .75rem; }
.controls-row .fld { flex: 1 1 200px; }
.plot-wrap { overflow-x: auto; }
.forest { min-width: 720px; width: 100%; height: auto; font-family: var(--font-ui); }
.funnel { width: 100%; max-width: 520px; height: auto; }
.forest text, .funnel text { fill: var(--ink); font-size: 12px; }
.forest .ax-h, .funnel .ax-h { fill: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.forest .tick, .funnel .tick { fill: var(--muted); font-size: 11px; font-family: var(--font-mono); }
.forest .num { font-family: var(--font-mono); font-size: 11.5px; }
.forest .b { font-weight: 600; }
.forest .note { fill: var(--ink-2); font-size: 11px; }
.forest .grid, .funnel .grid { stroke: var(--line-2); stroke-width: 1; }
.forest .null, .funnel .null { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; }
.forest .sep { stroke: var(--line); }
.forest .ci { stroke: var(--ink); stroke-width: 1.5; }
.forest .pi { stroke: var(--accent); stroke-width: 2; opacity: .5; }
.forest .pt { fill: var(--accent); stroke: var(--surface); stroke-width: 1; }
.forest .dia { fill: var(--accent); stroke: var(--accent); }
.forest .hit { fill: transparent; }
.forest .frow:hover .hit { fill: var(--surface-2); }
.funnel .cone { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1; stroke-dasharray: 4 3; }
.funnel .dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.funnel .dot:hover { r: 7; }

/* ---------- PRISMA ---------- */
.prisma-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.paper { background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; overflow-x: auto; box-shadow: var(--shadow); }
.paper svg { display: block; width: 100%; height: auto; min-width: 640px; }
.notice { padding: .7rem 1rem; border-radius: 6px; font-size: .86rem; }
.notice.warn { background: var(--warn-soft); color: var(--ink); border-left: 4px solid var(--warn); }
.ov-input { width: 100px !important; }

/* ---------- Checklist ---------- */
.progress-block { display: flex; align-items: center; gap: .9rem; }
.progress-block .bar { width: 160px; }
.checklist .sec-row td { background: var(--surface-2); font-size: .7rem; font-weight: 700; letter-spacing: .1em; color: var(--accent); padding: .4rem .6rem; }
.checklist .c-ok { width: 70px; text-align: center; }
.checklist .c-ok input { width: 18px; height: 18px; accent-color: var(--ok); }
.checklist tr.is-done td { background: color-mix(in srgb, var(--ok-soft) 45%, transparent); }
.checklist td:last-child { width: 30%; min-width: 180px; }
.export-list { display: flex; flex-direction: column; gap: .5rem; align-items: stretch; margin-top: .5rem; }
.danger-zone { border-color: color-mix(in srgb, var(--no) 35%, var(--line)); }

/* ---------- Responsif ---------- */
@media (max-width: 1280px) {
  .work-grid { grid-template-columns: 230px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
  .as-wrap span { display: none; }
}
@media (max-width: 1100px) {
  .topbar { flex-wrap: wrap; padding-block: .4rem; gap: .4rem 1rem; }
  .tabs { order: 3; flex-basis: 100%; }
  :root { --top-h: 96px; }
  .work-grid, .work-grid.list-closed { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
  .rec-list { display: none; }
  .work-grid[data-mp="list"] { grid-template-columns: 260px minmax(0, 1.3fr) minmax(0, 1fr); }
  .work-grid[data-mp="list"] .rec-list { display: flex; visibility: visible; }
  .work-grid[data-mp="list"] #panel-r2 { display: none; }
  .mobile-switch { display: flex; margin: .4rem 16px; }
  .prisma-layout { grid-template-columns: 1fr; }
  .import-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .work-grid, .work-grid.list-closed, .work-grid[data-mp="list"] { grid-template-columns: minmax(0, 1fr); }
  .work-grid .panel, .work-grid .rec-list { display: none; }
  .work-grid[data-mp="list"] .rec-list, .work-grid[data-mp="a"] .panel-a, .work-grid[data-mp="r1"] #panel-r1, .work-grid[data-mp="r2"] #panel-r2 { display: flex; visibility: visible; }
  .work-grid[data-mp="list"] #panel-r2 { display: none; }
  .mobile-switch { display: grid; grid-template-columns: repeat(4, 1fr); }
  .work-filters { margin-left: 0; width: 100%; }
  .work-filters input[type="search"] { width: 100%; }
  .work-filters select { flex: 1; max-width: none; }
  .save-state { display: none; }
  .rev-names { grid-template-columns: 1fr; }
  h1 { font-size: 1.4rem; }
  .pa-actions { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Mode satu reviewer & kolom pilihan banyak */
.work-grid.single { grid-template-columns: 270px minmax(0, 1.6fr) minmax(0, 1.1fr); }
.work-grid.single.list-closed { grid-template-columns: 0 minmax(0, 1.6fr) minmax(0, 1.1fr); }
@media (max-width: 1280px) { .work-grid.single { grid-template-columns: 230px minmax(0, 1.5fr) minmax(0, 1fr); } }
@media (max-width: 1100px) { .work-grid.single, .work-grid.single.list-closed { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } .work-grid.single[data-mp="list"] { grid-template-columns: 260px minmax(0, 1.4fr) minmax(0, 1fr); } }
@media (max-width: 760px) { .work-grid.single, .work-grid.single.list-closed, .work-grid.single[data-mp="list"] { grid-template-columns: minmax(0, 1fr); } .mobile-switch:has(+ .work-grid.single) { grid-template-columns: repeat(3, 1fr); } }
.multi { display: flex; flex-wrap: wrap; gap: .25rem .9rem; padding: .35rem 0; }
.fields-tbl .grp-input { min-width: 8rem; }

/* Lampu indikator kriteria (warna padat, sejalan dengan --hl0..5) */
:root { --cc0: #d4a106; --cc1: #16a34a; --cc2: #0284c7; --cc3: #7c3aed; --cc4: #db2777; --cc5: #ea580c; --ccx: #dc2626; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --cc0: #facc15; --cc1: #4ade80; --cc2: #38bdf8; --cc3: #a78bfa; --cc4: #f472b6; --cc5: #fb923c; --ccx: #f87171; } }
:root[data-theme="dark"] { --cc0: #facc15; --cc1: #4ade80; --cc2: #38bdf8; --cc3: #a78bfa; --cc4: #f472b6; --cc5: #fb923c; --ccx: #f87171; }
.lc0 { --c: var(--cc0); } .lc1 { --c: var(--cc1); } .lc2 { --c: var(--cc2); } .lc3 { --c: var(--cc3); } .lc4 { --c: var(--cc4); } .lc5 { --c: var(--cc5); } .lexc { --c: var(--ccx); }
.lamps { display: inline-flex; align-items: center; gap: 3px; vertical-align: middle; }
.lamp { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; flex: none; }
.lamp.on { background: var(--c); border-color: var(--c); box-shadow: 0 0 5px color-mix(in srgb, var(--c) 70%, transparent); }
.ri-foot .lamps { margin-right: .35rem; }
.indicator { display: grid; gap: .45rem; padding: .6rem .7rem; margin-top: .5rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.ind-head { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; }
.ind-count { font-size: .85rem; }
.ind-count b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.lamps-lg { flex-wrap: wrap; gap: .4rem; }
.lamps-lg .lamp { width: auto; height: auto; border-radius: 99px; display: inline-flex; align-items: center; gap: .4rem; padding: .22rem .65rem .22rem .4rem; font-size: .78rem; border: 1px dashed var(--line); color: var(--muted); box-shadow: none; background: var(--surface); }
.lamps-lg .lamp i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; }
.lamps-lg .lamp b { font-weight: 500; }
.lamps-lg .lamp em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.lamps-lg .lamp.on { border: 1px solid var(--c); color: var(--ink); background: color-mix(in srgb, var(--c) 13%, var(--surface)); }
.lamps-lg .lamp.on i { background: var(--c); border-color: var(--c); box-shadow: 0 0 7px var(--c); }
.lamp-legend { display: flex; flex-wrap: wrap; gap: .3rem .8rem; font-size: .76rem; color: var(--muted); }
.lamp-legend span { display: inline-flex; align-items: center; gap: .3rem; }
mark.hl-c0 { box-shadow: inset 0 -2px var(--cc0); } mark.hl-c1 { box-shadow: inset 0 -2px var(--cc1); } mark.hl-c2 { box-shadow: inset 0 -2px var(--cc2); }
mark.hl-c3 { box-shadow: inset 0 -2px var(--cc3); } mark.hl-c4 { box-shadow: inset 0 -2px var(--cc4); } mark.hl-c5 { box-shadow: inset 0 -2px var(--cc5); }

/* Laporan skrining */
.rep-tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat-btn { text-align: left; cursor: pointer; font: inherit; color: inherit; }
.stat-btn.on { outline: 2px solid var(--accent); outline-offset: -2px; }
.rep-seg { flex-wrap: wrap; }
.rep-tbl td { vertical-align: top; }
.rep-study { min-width: 16rem; max-width: 34rem; }
.rep-study .link { text-align: left; font-weight: 600; display: block; }
.rep-why { display: block; font-size: .74rem; color: var(--muted); margin-top: .2rem; max-width: 16rem; }
.rep-note { color: var(--muted); max-width: 18rem; }
.nowrap { white-space: nowrap; }

/* Papan: Belum diperiksa → Include → Exclude */
.mode-seg button { font-weight: 600; }
.board { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 12px 16px; overflow: hidden; }
.bcol { min-height: 0; display: flex; flex-direction: column; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; transition: box-shadow .15s, border-color .15s; }
.bcol.over { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.bcol-head { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .5rem; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
.bcol-head .n { font-variant-numeric: tabular-nums; font-weight: 700; padding: 0 .45rem; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: .8rem; }
.bcol-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.bcol-include .bcol-dot { background: var(--ok); } .bcol-exclude .bcol-dot { background: var(--no); }
.bcol-include { border-top: 3px solid var(--ok); } .bcol-exclude { border-top: 3px solid var(--no); } .bcol-todo { border-top: 3px solid var(--muted); }
.bcol-body { flex: 1; min-height: 0; overflow-y: auto; padding: .6rem; display: flex; flex-direction: column; gap: .5rem; }
.bcol-empty { color: var(--muted); font-size: .85rem; text-align: center; padding: 1.5rem .5rem; border: 1px dashed var(--line); border-radius: 10px; }
.bcard { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .7rem; display: grid; gap: .35rem; cursor: grab; }
.bcard[draggable="false"] { cursor: default; }
.bcard.dragging { opacity: .45; }
.bcard.need { border-color: var(--warn); }
.bc-top { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; }
.bc-title { all: unset; cursor: pointer; font-weight: 600; font-size: .88rem; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bc-title:hover { text-decoration: underline; }
.bc-title:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.bc-meta { margin: 0; font-size: .76rem; color: var(--muted); }
.bc-act { display: flex; flex-wrap: wrap; gap: .35rem; }
.bc-reason { font-size: .78rem; padding: .3rem .4rem; }
.bc-reason.need { border-color: var(--warn); }
.board-confirm { flex-wrap: wrap; }
@media (max-width: 900px) { .board { grid-template-columns: 1fr; overflow-y: auto; } .bcol { max-height: 70vh; } }

/* Pratinjau impor pengaturan */
.settings-draft { border: 2px solid var(--accent); }
.sd-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .35rem 1rem; margin: .5rem 0 1rem; font-size: .88rem; }
.sd-list dt { color: var(--muted); font-weight: 600; }
.sd-list dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .sd-list { grid-template-columns: 1fr; } .sd-list dd { margin-bottom: .4rem; } }
.rep-skip td { background: var(--surface-2); }

/* Kotak daftar per keputusan */
.lsec { border-bottom: 1px solid var(--line); }
.lsec-head { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: .45rem; width: 100%; padding: .45rem .75rem; cursor: pointer; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); background: var(--surface-2); position: sticky; top: 0; z-index: 1; }
.lsec-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.lsec-head .n { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 700; }
.lsec-caret { width: .8rem; color: var(--muted); }
.lsec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.lsec-inc .lsec-dot, .lsec-done .lsec-dot { background: var(--ok); } .lsec-exc .lsec-dot { background: var(--no); }
.lsec-empty { margin: 0; padding: .7rem .9rem; font-size: .8rem; color: var(--muted); }
.list-head .check { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; }
/* Keputusan terkunci */
.locked { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); }
.locked > div { display: grid; gap: .1rem; flex: 1; min-width: 0; }
.locked-i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; flex: none; }
.locked.ok { border-color: var(--ok); } .locked.ok .locked-i { background: var(--ok); }
.locked.no { border-color: var(--no); } .locked.no .locked-i { background: var(--no); }

.integrity summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: baseline; }
.integrity.ok summary b { color: var(--ok); }
.integrity.bad { border-color: var(--warn); }
.integrity.bad summary b { color: var(--warn); }
.integrity table { margin-top: .6rem; }

/* Terjemahan */
.lang-seg button { font-size: .76rem; }
.tr-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .8rem; padding: .45rem .7rem; margin-bottom: .6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); font-size: .8rem; color: var(--ink-2); }
.tr-bar .tr-status { flex: 1; min-width: 0; }
.tr-bar.consent { border-color: var(--accent); align-items: flex-start; }
.tr-bar.consent p { margin: .25rem 0 0; color: var(--ink-2); }
.tr-unit { margin-bottom: .9rem; }
.tr-src { margin: 0 0 .3rem; color: var(--ink-2); font-size: .92em; }
.tr-out { margin: 0; padding-left: .7rem; border-left: 3px solid var(--accent); }
.tr-out.pending { opacity: .6; }
.tr-page .tr-src + .tr-out { background: color-mix(in srgb, var(--accent) 6%, transparent); border-radius: 0 6px 6px 0; padding-block: .25rem; }
.selbar-sep { width: 1px; align-self: stretch; background: var(--line); margin-inline: .15rem; }
.tr-pop { position: fixed; z-index: 60; width: min(370px, calc(100vw - 16px)); max-height: 50vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: .7rem .8rem; }
.tr-pop-text { margin: 0 0 .5rem; line-height: 1.55; }
.tr-pop-foot { display: flex; align-items: center; gap: .4rem; }
.tr-pop-foot .muted { flex: 1; }

/* Galeri model bagan PRISMA */
.pr-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .7rem; }
.pr-thumb { display: grid; gap: .25rem; text-align: left; padding: .5rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; font: inherit; color: inherit; }
.pr-thumb:hover { border-color: var(--accent); }
.pr-thumb.on { border: 2px solid var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pr-thumb-img { display: block; height: 120px; overflow: hidden; border-radius: 6px; background: #fff; border: 1px solid var(--line-2); }
.pr-thumb-img svg { width: 100%; height: auto; display: block; pointer-events: none; }
.pr-custom { display: grid; gap: .2rem; }
.pr-custom input[type="color"] { width: 100%; height: 34px; padding: 2px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); }
.pr-custom input[type="range"] { width: 100%; }

.src-edit { display: grid; gap: .35rem; margin-bottom: .5rem; }
.src-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .35rem; align-items: center; }
.src-row input, .src-row select { min-width: 0; padding: .35rem .45rem; font-size: .85rem; }

/* Kriteria bahasa */
.lang-crit { margin-top: 1rem; padding: .7rem .8rem; border: 1px dashed var(--line); border-radius: 10px; display: grid; gap: .5rem; }
.lang-crit.on { border-style: solid; border-color: var(--no); background: color-mix(in srgb, var(--no) 4%, var(--surface)); }
.lang-grid { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
/* nama sumber: kolom nama selebar panel */
.src-row { grid-template-columns: minmax(0, 1fr) auto; }
.src-row input { grid-column: 1 / -1; }

/* Rekap hasil ekstraksi */
.ex-sum-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem 1.5rem; }
.ex-field h3 { margin: 0 0 .4rem; font-size: .9rem; }
.ex-bar { all: unset; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr) 2.2rem 2.6rem; align-items: center; gap: .5rem; width: 100%; padding: .28rem .35rem; border-radius: 6px; cursor: pointer; font-size: .82rem; }
.ex-bar:hover:not([disabled]) { background: var(--surface-2); }
.ex-bar.on { background: var(--accent-soft); }
.ex-bar[disabled] { cursor: default; opacity: .55; }
.ex-bar:focus-visible { outline: 2px solid var(--accent); }
.ex-bar-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-bar-track { height: 10px; background: var(--line-2); border-radius: 0 4px 4px 0; overflow: hidden; }
.ex-bar-track i { display: block; height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; }
.ex-bar-n { text-align: right; font-variant-numeric: tabular-nums; }
.ex-bar-p { text-align: right; font-variant-numeric: tabular-nums; font-size: .76rem; }
.ex-list { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.ex-list-head { display: flex; gap: .5rem; align-items: baseline; margin-bottom: .5rem; }
.ex-list-head .link { margin-left: auto; }

/* Pilihan basis data */
.db-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.db-chip { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); overflow: hidden; }
.db-chip button { all: unset; cursor: pointer; padding: .3rem .6rem; font-size: .84rem; }
.db-chip button small { color: var(--muted); font-variant-numeric: tabular-nums; margin-left: .15rem; }
.db-chip .db-x { padding: .3rem .5rem .3rem .2rem; color: var(--muted); }
.db-chip .db-x:hover { color: var(--no); }
.db-chip button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.db-chip.on { border-color: var(--accent); background: var(--accent-soft); }
.db-chip.on button:first-child { font-weight: 600; }
.db-add { display: flex; gap: .4rem; margin-top: .45rem; }
.db-add input { flex: 1; min-width: 0; }
.map-src { min-width: 14rem; }
select.bsrc { max-width: 13rem; padding: .25rem .4rem; font-size: .85rem; }

/* Papan: kirim alasan & bersihkan */
.bcol-tools { margin-left: auto; display: flex; gap: .3rem; }
.bcol-note { margin: .4rem .8rem 0; }
.bclean-confirm { margin: .5rem .6rem 0; padding: .6rem .7rem; border: 1px solid var(--no); border-radius: 8px; background: color-mix(in srgb, var(--no) 6%, var(--surface)); font-size: .84rem; }
.bclean-confirm p { margin: 0 0 .45rem; }
.bc-send { display: grid; gap: .35rem; }
.bc-note { font: inherit; font-size: .8rem; padding: .3rem .4rem; resize: vertical; min-height: 2.4rem; }
.bc-send .btn { justify-self: start; }
.bc-sent { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .45rem; padding: .35rem .5rem; border-radius: 6px; background: var(--surface-2); font-size: .8rem; }
.bc-sent b { color: var(--no); }
.bc-sent .link { margin-left: auto; }

.clean-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; padding: .5rem .8rem; border-bottom: 1px solid var(--line); }
.lsec .clean-tools { padding: .4rem .6rem; background: var(--surface-2); }
.clean-tools .bclean-confirm { flex-basis: 100%; margin: .2rem 0 0; }
.clean-btn:not([disabled]) { background: var(--no); border-color: var(--no); color: #fff; }

/* Penilaian kualitas */
.ap-set-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.ap-set-row .muted { flex: 1 1 18rem; min-width: 0; }
.ap-prog { font-variant-numeric: tabular-nums; }
.ap-grid { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 1rem; align-items: start; }
.ap-list { padding: .4rem; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 9rem); overflow: auto; position: sticky; top: .75rem; }
.ap-item { all: unset; box-sizing: border-box; display: flex; gap: .55rem; align-items: flex-start; padding: .5rem .55rem; border-radius: 8px; cursor: pointer; }
.ap-item:hover { background: var(--surface-2); }
.ap-item.sel { background: var(--accent-soft); }
.ap-item:focus-visible { outline: 2px solid var(--accent); }
.ap-it-main { display: flex; flex-direction: column; gap: .1rem; min-width: 0; font-size: .84rem; }
.ap-it-main b { font-weight: 600; line-height: 1.3; }
.ap-dot { flex: none; width: .65rem; height: .65rem; margin-top: .3rem; border-radius: 50%; border: 2px solid var(--muted); }
.ap-dot.ap-partial { border-color: var(--warn); background: linear-gradient(90deg, var(--warn) 50%, transparent 50%); }
.ap-dot.ap-done { border-color: var(--ok); background: var(--ok); }
.ap-form { display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.ap-head { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; }
.ap-head h2 { margin: 0 0 .2rem; font-size: 1.05rem; line-height: 1.35; text-wrap: balance; }
.ap-sug { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; padding: .55rem .7rem; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-size: .86rem; }
.ap-sug.ok { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.ap-tool-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .6rem; }
.ap-sec { border: 1px solid var(--line); border-radius: 10px; padding: .3rem .8rem .6rem; margin: 0; display: flex; flex-direction: column; }
.ap-sec legend { font-weight: 700; font-size: .9rem; padding: 0 .35rem; }
.ap-q { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem .8rem; padding: .6rem 0; border-top: 1px solid var(--line-2); }
.ap-q:first-of-type { border-top: 0; }
.ap-qtext { display: flex; gap: .55rem; font-size: .9rem; line-height: 1.4; }
.ap-qtext > span:last-child { display: flex; flex-direction: column; gap: .1rem; }
.ap-code { flex: none; font-family: var(--font-mono); font-size: .78rem; font-weight: 700; color: var(--accent); min-width: 2.2rem; padding-top: .1rem; }
.ap-en { font-size: .76rem; color: var(--muted); font-style: italic; }
.ap-opts { display: flex; flex-wrap: wrap; gap: .25rem; align-self: start; justify-content: flex-end; }
.ap-opt { position: relative; }
.ap-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ap-opt span { display: inline-block; padding: .28rem .6rem; border: 1px solid var(--line); border-radius: 99px; font-size: .78rem; white-space: nowrap; background: var(--surface); }
.ap-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.ap-opt.o-y input:checked + span { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); font-weight: 600; }
.ap-opt.o-n input:checked + span { background: var(--no-soft); color: var(--no); border-color: var(--no); font-weight: 600; }
.ap-opt.o-u input:checked + span { background: var(--warn-soft); color: var(--warn); border-color: var(--warn); font-weight: 600; }
.ap-opt.o-na input:checked + span { background: var(--surface-2); color: var(--ink-2); border-color: var(--ink-2); font-weight: 600; }
.ap-note { grid-column: 1 / -1; font-size: .8rem; padding: .3rem .45rem; margin-left: 2.75rem; min-width: 0; width: calc(100% - 2.75rem); box-sizing: border-box; }
.ap-foot { display: flex; flex-direction: column; gap: .7rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.ap-score { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .6rem; }
.ap-score b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.ap-stars { color: var(--warn); letter-spacing: .1em; }
.ap-legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3rem; font-size: .8rem; }
.ap-gtitle { margin: 1rem 0 .4rem; font-size: .95rem; }
.ap-tbl .ap-th { text-align: center; font-family: var(--font-mono); font-size: .75rem; cursor: help; }
.ap-cell { text-align: center; font-weight: 700; min-width: 1.9rem; display: table-cell; }
span.ap-cell { display: inline-block; min-width: 1.4rem; padding: .05rem .2rem; border-radius: 4px; }
.ap-cell.c-y { background: var(--ok-soft); color: var(--ok); }
.ap-cell.c-n { background: var(--no-soft); color: var(--no); }
.ap-cell.c-u { background: var(--warn-soft); color: var(--warn); }
.ap-cell.c-na { background: var(--surface-2); color: var(--muted); }
.ap-refs { display: flex; flex-direction: column; gap: .4rem; padding-left: 1.1rem; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 820px) {
  .ap-grid { grid-template-columns: 1fr; }
  .ap-list { position: static; max-height: 16rem; }
  .ap-q { grid-template-columns: 1fr; }
  .ap-opts { justify-content: flex-start; margin-left: 2.75rem; }
  .ap-note { margin-left: 0; }
}
.ap-dl { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
.ap-dl-grp { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 10px; }
.ap-dl-grp > span { margin-right: .3rem; }
/* Kerangka konseptual */
.cf-dl-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.cf-dl-row > span { margin-right: auto; }
.cf-chosen { display: flex; flex-wrap: wrap; gap: .35rem; margin: .3rem 0 .6rem; }
.cf-pick { display: flex; flex-direction: column; gap: .55rem; max-height: 22rem; overflow: auto; margin-top: .5rem; padding-right: .3rem; }
.cf-pg { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.cf-gl { flex-basis: 100%; font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cf-chip { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: .25rem; padding: .25rem .6rem; border: 1px solid var(--line); border-radius: 99px; font-size: .8rem; cursor: pointer; background: var(--surface); }
.cf-chip small { color: var(--muted); font-variant-numeric: tabular-nums; }
.cf-chip.hit { border-style: dashed; border-color: var(--accent); }
.cf-chip.on { background: var(--accent-soft); border: 1px solid var(--accent); font-weight: 600; }
.cf-chip .db-x { all: unset; cursor: pointer; color: var(--muted); padding-left: .15rem; }
.cf-chip:focus-visible, .cf-chip .db-x:focus-visible { outline: 2px solid var(--accent); }
.cf-add { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: .4rem; margin-top: .6rem; }
.cf-roles { display: grid; gap: .35rem; }
.cf-role { display: flex; gap: .5rem; align-items: flex-start; padding: .45rem .55rem; border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer; }
.cf-role span { display: flex; flex-direction: column; gap: .05rem; font-size: .86rem; }
.cf-role:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.cf-probs { display: grid; gap: .3rem; }
.cf-h3 { margin-top: 1rem; }
.cf-gline { display: flex; justify-content: space-between; gap: .5rem; margin: .2rem 0; }
.cf-cat { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: .6rem; }
.cf-card { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .75rem; }
.cf-card p { margin: .3rem 0 0; }
.cf-plist { display: flex; flex-direction: column; gap: .3rem; }
@media (max-width: 820px) { .cf-add { grid-template-columns: 1fr; } }

/* Kirim massal Exclude tahap Judul & abstrak */
.bc-auto { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .4rem; font-size: .8rem; line-height: 1.35; padding: .35rem .5rem; border-radius: 6px; background: var(--surface-2); }
.bc-auto > span:nth-child(2) { flex: 1 1 10rem; min-width: 0; }
.bulk-send { display: flex; flex-direction: column; gap: .45rem; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.bulk-send p { margin: 0; }
.bc-why { display: block; color: var(--no); font-size: .76rem; margin-top: .15rem; }
.bulk-note { width: 100%; box-sizing: border-box; font-size: .82rem; }

.autolow { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; white-space: nowrap; }
.autolow input[type=number] { width: 3.2rem; padding: .15rem .3rem; font-size: .8rem; }

.autolow { flex-wrap: wrap; gap: .25rem .6rem; white-space: normal; }
.autolow label { display: inline-flex; align-items: center; gap: .25rem; }
.autolow .ak { padding: .1rem .45rem; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); }

/* Saran skrining abstrak */
.sg-how { padding: .8rem 1rem; }
.sg-how-row { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; align-items: flex-start; }
.sg-how-row > div:first-child { flex: 1 1 26rem; min-width: 0; }
.sg-how-row p { margin: .25rem 0 0; max-width: 72ch; }
.sg-model { display: flex; flex-direction: column; gap: .3rem; flex: 0 1 18rem; }
.sg-tabs { margin: .8rem 0 .4rem; flex-wrap: wrap; }
.sg-grp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.sg-list { display: flex; flex-direction: column; gap: .5rem; }
.sg-row { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr) auto; gap: .8rem; align-items: start; padding: .7rem .8rem; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 8px; background: var(--surface); }
.sg-row.sg-inc { border-left-color: var(--ok); }
.sg-row.sg-maybe { border-left-color: var(--warn); }
.sg-row.sg-exc { border-left-color: var(--no); }
.sg-score { display: flex; flex-direction: column; align-items: center; gap: .1rem; font-variant-numeric: tabular-nums; }
.sg-score b { font-size: 1.1rem; }
.sg-stars { color: var(--warn); font-size: .72rem; letter-spacing: .05em; white-space: nowrap; }
.sg-stars .off { color: var(--line); }
.sg-main { min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.sg-main .bc-title { text-align: left; }
.sg-ev { display: flex; flex-direction: column; gap: .25rem; border-left: 2px solid var(--line); padding-left: .6rem; }
.sg-ev p { margin: 0; font-size: .84rem; line-height: 1.45; }
.sg-why { margin: 0; font-size: .8rem; }
.sg-why .ok, .sg-why.ok { color: var(--ok); }
.sg-why .no, .sg-why.no { color: var(--no); }
.sg-act { display: flex; flex-direction: column; gap: .3rem; }
@media (max-width: 720px) {
  .sg-row { grid-template-columns: 3.4rem minmax(0, 1fr); }
  .sg-act { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}

.autolow .ak-min, .autolow .ak-inc { display: inline-flex; align-items: center; gap: .25rem; }
.autolow #autoMin { width: 2.8rem; padding: .15rem .3rem; font-size: .8rem; }

.ft-min { width: 3.2rem; padding: .1rem .3rem; font-size: .85rem; }

.folder-btn { align-self: flex-start; margin-top: .5rem; cursor: pointer; }

/* Impor keputusan */
.dec-card .card-head { align-items: flex-start; }
.dec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: .6rem; margin: .4rem 0 .8rem; }
.dec-card .btn-row { margin-top: .6rem; }
.pill.tier { background: var(--accent-soft); color: var(--accent); }

/* Pembaca teks lengkap di Penilaian kualitas */
.ap-page.has-reader { max-width: min(100%, 1680px); }
.ap-grid.with-reader { grid-template-columns: minmax(0, 15rem) minmax(0, 1.15fr) minmax(0, 1fr); }
.ap-reader { position: sticky; top: .75rem; display: flex; flex-direction: column; gap: .5rem; padding: .7rem; height: calc(100vh - 1.5rem); min-width: 0; }
.apr-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.apr-find { display: inline-flex; align-items: center; gap: .25rem; margin-left: auto; min-width: 0; }
.apr-find input { width: 11rem; max-width: 100%; padding: .25rem .45rem; font-size: .82rem; }
.apr-jumps { display: flex; flex-wrap: wrap; gap: .25rem; }
.chip-btn { all: unset; box-sizing: border-box; cursor: pointer; padding: .2rem .55rem; border: 1px solid var(--line); border-radius: 99px; font-size: .76rem; background: var(--surface); color: var(--ink-2); }
.chip-btn small { color: var(--muted); font-family: var(--font-mono); font-size: .68rem; }
.chip-btn:hover { background: var(--surface-2); }
.chip-btn.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chip-btn:focus-visible { outline: 2px solid var(--accent); }
.apr-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: .2rem .4rem 1.5rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 1.6rem; }
.apr-body .doc-text { font-size: .9rem; line-height: 1.6; }
@media (max-width: 1180px) {
  .ap-grid.with-reader { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ap-grid.with-reader .ap-list { grid-column: 1 / -1; position: static; max-height: 13rem; }
}
@media (max-width: 820px) {
  .ap-grid.with-reader { grid-template-columns: 1fr; }
  .ap-reader { position: static; height: 70vh; }
}
.ap-q input.ap-note { width: calc(100% - 2.75rem); }

/* Pendeteksi bukti MMAT: kalimat di pembaca diberi warna butirnya */
.ev { border-radius: 3px; padding: .05em .1em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.ev-tag { font: 700 .62rem/1 var(--font-mono); vertical-align: super; margin-right: .2em; opacity: .7; }
.ev.ev-cur, .ev-unit.ev-cur { outline: 2px solid var(--accent); outline-offset: 2px; }
.ev-unit { border-left: 4px solid var(--evc, var(--line)); padding-left: .55rem; }
.ev-badges { display: flex; gap: .2rem; margin-bottom: .15rem; }
.ev-badges i { font: 700 .66rem/1.4 var(--font-mono); font-style: normal; padding: 0 .3rem; border-radius: 4px; }
.ev-slot { grid-column: 1 / -1; margin-left: 2.75rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .7rem; font-size: .8rem; min-width: 0; }
.ev-slot:empty { display: none; }
.ev-chip { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 600; color: var(--accent); }
.ev-chip:hover { text-decoration: underline; }
.ev-chip:focus-visible { outline: 2px solid var(--accent); border-radius: 4px; }
.ev-dot { display: inline-block; width: .75rem; height: .75rem; border-radius: 50%; }
.ev-snip { order: 3; flex: 1 1 100%; padding: .35rem .55rem; border-radius: 6px; line-height: 1.45; min-width: 0; overflow-wrap: anywhere; }
.ev-code { align-self: flex-start; padding: .05rem .3rem; border-radius: 4px; }
.apr-ev { font-size: .8rem; }

/* ---------- Bibliometrik ---------- */
:root { --bc0: #2a78d6; --bc1: #eb6834; --bc2: #1baf7a; --bc3: #eda100; --bc4: #e87ba4; --bc5: #008300; --bc6: #4a3aa7; --bc7: #e34948; --bcx: #a3acb0; --bcl: #b9c4c8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bc0: #3987e5; --bc1: #d95926; --bc2: #199e70; --bc3: #c98500; --bc4: #d55181; --bc5: #008300; --bc6: #9085e9; --bc7: #e66767; --bcx: #5d6b71; --bcl: #3b4a50; } }
:root[data-theme="dark"] { --bc0: #3987e5; --bc1: #d95926; --bc2: #199e70; --bc3: #c98500; --bc4: #d55181; --bc5: #008300; --bc6: #9085e9; --bc7: #e66767; --bcx: #5d6b71; --bcl: #3b4a50; }
.bb-set { display: flex; flex-direction: column; gap: .3rem; align-items: flex-end; }
.bb-n { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); margin-left: .2rem; }
.seg button.on .bb-n { color: var(--accent); }
.bb-bar-row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
.bb-chart-wrap, .bb-net-wrap { overflow-x: auto; min-width: 0; }
.bb-chart, .bb-net { display: block; width: 100%; height: auto; min-width: 520px; }
.bb-net { border: 1px solid var(--line-2); border-radius: var(--radius); }
.bb-net circle { cursor: pointer; transition: opacity .15s; }
.bb-net text { pointer-events: none; transition: opacity .15s; }
.bb-net.focus line:not(.hot), .bb-net.focus circle:not(.hot), .bb-net.focus text:not(.hot) { opacity: .12; }
.bb-net.focus line.hot { stroke-opacity: .85; }
.bb-tbl .bb-barcol { width: 28%; min-width: 80px; }
.bb-bar { display: block; height: 8px; border-radius: 0 4px 4px 0; background: var(--accent); min-width: 2px; margin-top: .35rem; }
.bb-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: .35rem 1rem; font-size: .8rem; color: var(--ink-2); }
.bb-legend li { display: flex; gap: .4rem; align-items: baseline; min-width: 0; }
.bb-legend b { white-space: nowrap; }
.bb-legend i, .bb-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
.bb-dot { margin-right: .4rem; vertical-align: -1px; }
.bb-ctl { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.bb-ctl input[type=number] { width: 5rem; }
.bb-details summary { cursor: pointer; font-size: .82rem; color: var(--ink-2); }
.bb-tip { position: fixed; z-index: 60; pointer-events: none; background: var(--ink); color: var(--surface); padding: .4rem .6rem; border-radius: 6px; font-size: .78rem; line-height: 1.35; max-width: 280px; box-shadow: var(--shadow); }
.bb-steps { margin: 0; padding-left: 1.4rem; display: flex; flex-direction: column; gap: 1rem; }
.bb-steps li { padding-left: .25rem; }
.bb-steps li > div { margin-bottom: .45rem; }
.bb-code { background: var(--sunk); border: 1px solid var(--line-2); border-radius: 6px; padding: .75rem; font: .78rem/1.5 var(--font-mono); overflow-x: auto; white-space: pre; margin: 0 0 .5rem; }
.bb-url { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.bb-url input { flex: 1 1 220px; min-width: 0; }
.bb-steps kbd { font: .75rem var(--font-mono); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 .3rem; background: var(--surface-2); }
@media (max-width: 700px) { .bb-set { align-items: flex-start; } }

/* PRISMA: editor kotak */
#prismaPaper [data-box] { cursor: pointer; }
#prismaPaper [data-box]:hover rect { filter: brightness(0.96); }
.pr-box-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .6rem; margin-top: .75rem; align-items: start; }
.pr-box { border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .75rem; background: var(--surface, transparent); }
.pr-box[open] { box-shadow: var(--shadow); }
.pr-box summary { cursor: pointer; }
.pr-box textarea { width: 100%; font-family: inherit; }
