/* =========================================================
   SIAP — kategori aturan (SOP / IK / SP / IBPR), dashboard,
   Cek Aturan (toggle hasil, detail dokumen) & kelola dokumen
   Warna kategori: palet referensi dataviz (slot biru, oranye, aqua, violet),
   selalu disertai label teks → identitas tidak bergantung warna saja.
   ========================================================= */
:root {
  --c-SOP: #2a78d6; --c-IK: #eb6834; --c-SP: #1baf7a; --c-IBPR: #4a3aa7; --c-AU: #d6457f;
  --c-AU-ink: #a8285c; --c-AU-bg: rgba(214,69,127,.11);
  --c-SOP-ink: #1f5fae; --c-IK-ink: #b84a1c; --c-SP-ink: #0d7650; --c-IBPR-ink: #4a3aa7;
  --c-SOP-bg: rgba(42,120,214,.11); --c-IK-bg: rgba(235,104,52,.12); --c-SP-bg: rgba(27,175,122,.13); --c-IBPR-bg: rgba(74,58,167,.11);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-SOP: #3987e5; --c-IK: #d95926; --c-SP: #199e70; --c-IBPR: #9085e9; --c-AU: #e0689a; --c-AU-ink: #f4a3c4; --c-AU-bg: rgba(224,104,154,.2);
    --c-SOP-ink: #86b8f2; --c-IK-ink: #f2a07c; --c-SP-ink: #5fd3a6; --c-IBPR-ink: #b7affa;
    --c-SOP-bg: rgba(57,135,229,.18); --c-IK-bg: rgba(217,89,38,.2); --c-SP-bg: rgba(25,158,112,.2); --c-IBPR-bg: rgba(144,133,233,.2);
  }
}
:root[data-theme="dark"] {
  --c-SOP: #3987e5; --c-IK: #d95926; --c-SP: #199e70; --c-IBPR: #9085e9; --c-AU: #e0689a; --c-AU-ink: #f4a3c4; --c-AU-bg: rgba(224,104,154,.2);
  --c-SOP-ink: #86b8f2; --c-IK-ink: #f2a07c; --c-SP-ink: #5fd3a6; --c-IBPR-ink: #b7affa;
  --c-SOP-bg: rgba(57,135,229,.18); --c-IK-bg: rgba(217,89,38,.2); --c-SP-bg: rgba(25,158,112,.2); --c-IBPR-bg: rgba(144,133,233,.2);
}

/* ---------- Warna & badge kategori ---------- */
.cat-SOP { --c: var(--c-SOP); --ci: var(--c-SOP-ink); --cb: var(--c-SOP-bg); }
.cat-IK { --c: var(--c-IK); --ci: var(--c-IK-ink); --cb: var(--c-IK-bg); }
.cat-SP { --c: var(--c-SP); --ci: var(--c-SP-ink); --cb: var(--c-SP-bg); }
.cat-IBPR { --c: var(--c-IBPR); --ci: var(--c-IBPR-ink); --cb: var(--c-IBPR-bg); }
.sw.cat-SOP, .seg.cat-SOP, .hbar__fill.cat-SOP { background: var(--c-SOP); }
.sw.cat-IK, .seg.cat-IK, .hbar__fill.cat-IK { background: var(--c-IK); }
.sw.cat-SP, .seg.cat-SP, .hbar__fill.cat-SP { background: var(--c-SP); }
.sw.cat-IBPR, .seg.cat-IBPR, .hbar__fill.cat-IBPR { background: var(--c-IBPR); }

.cat-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; font-size: 11px; font-weight: 800; letter-spacing: .04em;
  padding: 2px 7px; border-radius: 6px; line-height: 1.5; text-transform: none; }
.cat-badge--SOP { background: var(--c-SOP-bg); color: var(--c-SOP-ink); }
.cat-badge--IK { background: var(--c-IK-bg); color: var(--c-IK-ink); }
.cat-badge--SP { background: var(--c-SP-bg); color: var(--c-SP-ink); }
.cat-badge--IBPR { background: var(--c-IBPR-bg); color: var(--c-IBPR-ink); }

/* ---------- Dashboard ---------- */
.kpi__label { display: flex; align-items: center; gap: 2px; }
.kpi--cat .kpi__label .sw { margin-right: 6px; }
.dash__section { grid-column: 1 / -1; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  margin: 14px 0 -4px; display: flex; align-items: center; gap: 12px; }
.dash__section::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.stack-wrap { display: flex; min-width: 0; }
.stack-wrap .stack { flex: 1; }
.stack .seg.cat-SOP, .stack .seg.cat-IK, .stack .seg.cat-SP, .stack .seg.cat-IBPR { min-width: 4px; }
.comp { display: grid; gap: 16px; }
.stack--big { height: 26px; transform: scaleX(0); }
.is-drawn .stack--big { transform: scaleX(1); }
.stack--big .seg:first-child { border-radius: 4px 0 0 4px; }
.stack--big .seg:last-child { border-radius: 0 4px 4px 0; }
.comp__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.comp__list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.comp__list li:last-child { border-bottom: 0; }
.comp__list .sw { width: 12px; height: 12px; margin: 0; }
.comp__name { flex: 1; min-width: 0; display: grid; }
.comp__name b { font-size: 14px; }
.comp__name small, .comp__val small { font-size: 11.5px; color: var(--muted); }
.comp__val { text-align: right; display: grid; }
.comp__val b { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }

/* modal rincian */
.crumbs { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.crumbs__path { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; color: var(--text-2); }
.crumbs__path b { color: var(--text); font-size: 15px; }
.catcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .catcards { grid-template-columns: repeat(4, 1fr); } }
.catcard { text-align: left; font: inherit; color: inherit; display: grid; gap: 2px; align-content: start; background: var(--surface); border: 1px solid var(--line);
  border-top: 4px solid var(--c, var(--line)); border-radius: 14px; padding: 12px 14px; cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; min-width: 0; }
.catcard--SOP { --c: var(--c-SOP); } .catcard--IK { --c: var(--c-IK); } .catcard--SP { --c: var(--c-SP); } .catcard--IBPR { --c: var(--c-IBPR); }
.catcard:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--c); }
.catcard:disabled { cursor: default; opacity: .55; }
.catcard__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.catcard__go { font-size: 20px; line-height: 1; color: var(--muted); }
.catcard b { font-size: 26px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.catcard small { font-size: 12px; color: var(--muted); }
.catcard__sub { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.hbar[data-cat] { cursor: pointer; border-radius: 8px; margin: 0 -6px; padding: 0 6px; transition: background .15s; }
.hbar[data-cat]:hover, .hbar[data-cat]:focus-visible { background: var(--surface-2); }
.table--matrix { min-width: 380px; }
.table--matrix td:first-child { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Cek Aturan: chip jenis & filter ---------- */
.chips--kind { align-items: center; }
.chips--kind .chip { display: inline-flex; align-items: center; gap: 4px; }
.chips--kind .chip .sw { width: 9px; height: 9px; margin-right: 3px; }
.chip:disabled { opacity: .4; cursor: default; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.fsel { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 0 4px 0 12px; }
.fsel[hidden] { display: none; }
.fsel span { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.fsel select { font: inherit; font-size: 13.5px; font-weight: 600; color: #fff; background: transparent; border: 0; height: 36px; padding: 0 6px; outline: 0; cursor: pointer; max-width: 220px; }
.fsel select option { color: #0f1b2d; }
.fsel:focus-within { border-color: rgba(255,255,255,.5); }
.suggest__kind { flex: none; width: 46px; display: grid; place-items: center; }
.suggest.is-loading { opacity: .75; }
.suggest__name { line-height: 1.4; }

/* ---------- Kartu kategori (jelajah) ---------- */
.catgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 860px) { .catgrid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.catgrid .catcard { padding: 16px; box-shadow: var(--shadow); gap: 4px; }
.catgrid .catcard.is-on { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent), var(--shadow); }
.catcard__ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; color: #fff; background: var(--c); }
.catcard__num { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.catcard__name { font-size: 14px; font-weight: 700; line-height: 1.3; }
.browse__hint { grid-column: 1 / -1; font-size: 14px; margin-top: 18px; }
.bdoc { display: grid; min-width: 0; }
.bdoc small { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.loading { padding: 28px; text-align: center; color: var(--muted); font-size: 14px; grid-column: 1 / -1; }
.loading::before { content: ""; display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); margin-right: 8px; vertical-align: -2px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Hasil: toggle per kategori ---------- */
.results[hidden], .detail[hidden], .catgrid[hidden] { display: none; }
.results { padding: 28px 0 40px; display: grid; gap: 12px; animation: rise .35s ease both; }
.results__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.results__head h2 { font-size: 20px; font-weight: 800; }
.results__head .pill.ghost { margin-left: 0; }
.acc { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--c, var(--line)); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.acc--SOP { --c: var(--c-SOP); } .acc--IK { --c: var(--c-IK); } .acc--SP { --c: var(--c-SP); } .acc--IBPR { --c: var(--c-IBPR); }
.acc.is-empty { box-shadow: none; opacity: .6; }
.acc__head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.acc__head:disabled { cursor: default; }
.acc__head:hover:not(:disabled) { background: var(--surface-2); }
.acc__ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; color: #fff; background: var(--c); flex: none; }
.acc__title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acc__title b { font-size: 15px; }
.acc__count { font-size: 13px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.acc__chev { color: var(--muted); font-size: 18px; transition: transform .2s; }
.acc.is-open .acc__chev { transform: rotate(180deg); }
.acc__body { display: none; padding: 4px 12px 12px; gap: 6px; }
.acc.is-open .acc__body { display: grid; }
@media (max-width: 520px) { .acc__title b { font-size: 13.5px; } .acc__count { font-size: 12px; } }
.hit { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: inherit; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: border-color .15s, transform .15s; }
.hit:hover { border-color: var(--c, var(--accent)); transform: translateY(-1px); }
.hit.is-sel { border-color: var(--c, var(--accent)); box-shadow: 0 0 0 3px var(--focus); }
.hit__main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.hit__main b { font-size: 14.5px; line-height: 1.35; }
.hit__main small { font-size: 12px; color: var(--muted); }
.hit__no { font-size: 11.5px; font-weight: 700; color: var(--ci, var(--muted)); letter-spacing: .02em; }
.acc--SOP .hit__no { color: var(--c-SOP-ink); } .acc--IK .hit__no { color: var(--c-IK-ink); } .acc--SP .hit__no { color: var(--c-SP-ink); }
.hit__snip { font-size: 12.5px; color: var(--text-2); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hit__snip em { font-style: normal; font-weight: 700; color: var(--muted); }
.hit mark, .doc mark { background: rgba(255,90,79,.28); color: inherit; border-radius: 3px; padding: 0 1px; }
.hit__go { color: var(--muted); font-size: 18px; flex: none; }

/* ---------- Detail dokumen SOP / IK / SP ---------- */
.detail { padding: 24px 0 0; }
.detail + .result { padding-top: 12px; }
.backbar { margin-bottom: 14px; }
.backbar .pill svg { font-size: 15px; }
.doc { display: grid; gap: 14px; padding-bottom: 40px; animation: rise .35s ease both; }
.doc--SOP { --c: var(--c-SOP); } .doc--IK { --c: var(--c-IK); } .doc--SP { --c: var(--c-SP); }
.doc__head { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 18px; box-shadow: var(--shadow); padding: 20px; display: grid; gap: 10px; }
.doc__head .crumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; text-transform: none; letter-spacing: 0; color: var(--text-2); font-weight: 600; }
.doc__head .crumb .dept-badge { margin-right: 0; }
.doc__head h2 { font-size: clamp(20px, 3.2vw, 27px); font-weight: 800; line-height: 1.25; }
.doc__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.doc__tools { display: flex; gap: 8px; flex-wrap: wrap; }
.doc__tools .pill.ghost { margin-left: 0; }
.doc__h { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; margin-top: 8px; }
.doc__h svg { color: var(--c); font-size: 18px; }
.dsec { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.dsec summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 13px 16px; font-weight: 800; font-size: 14.5px; }
.dsec summary::-webkit-details-marker { display: none; }
.dsec summary svg { color: var(--muted); transition: transform .2s; }
.dsec[open] summary svg { transform: rotate(90deg); }
.dsec summary .tag { margin-left: auto; font-size: 11.5px; padding: 2px 8px; }
.dsec__body { padding: 0 16px 14px 18px; }
.dsteps { display: grid; gap: 10px; }
.dstep { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); display: grid; gap: 8px; }
.dstep__head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.dstep__head b { flex: 1; min-width: 180px; font-size: 15px; line-height: 1.4; padding-top: 4px; }
.dstep__no { flex: none; min-width: 34px; height: 30px; padding: 0 8px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 13px;
  background: var(--c); color: #fff; font-variant-numeric: tabular-nums; }
.dstep__head .tag { font-size: 12px; }
.dstep__body { padding-left: 46px; }
@media (max-width: 560px) { .dstep__body { padding-left: 0; } }
.dstep__docs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-left: 46px; }
@media (max-width: 560px) { .dstep__docs { padding-left: 0; } }
.dstep__lbl { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--muted); margin-right: 2px; }
.dl { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; color: var(--text-2); }
.dl li { overflow-wrap: anywhere; }
.dl li::marker { color: var(--c, var(--muted)); }
.dl--0 { padding-left: 18px; }
.dl .dl { margin-top: 4px; list-style: circle; }
.dl .dl .dl { list-style: square; }
.dtable .table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.table--doc { font-size: 13.5px; min-width: 0; }
.table--doc th { white-space: nowrap; }
.table--doc td { vertical-align: top; overflow-wrap: anywhere; }
.table--doc td.num { width: 48px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .table--doc, .table--doc tbody, .table--doc tr, .table--doc td { display: revert; width: auto; }
  .table--doc thead { display: table-header-group; }
  .table--doc tr { border: 0; padding: 0; margin: 0; background: none; }
  .table--doc td { display: table-cell; }
}
.doc__note { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }

@media print {
  .filters, .chips, .backbar, .doc__tools, .results { display: none !important; }
  .doc__head, .dstep, .dsec { box-shadow: none; break-inside: avoid; }
  .dsec__body { display: block !important; }
}

/* ---------- Kelola dokumen (admin) ---------- */
.dept__cats { display: flex; flex-wrap: wrap; gap: 6px; }
.dept__cat { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }
.dept__cat b { font-size: 14px; color: var(--text); font-variant-numeric: tabular-nums; }
.dept__cat .sw { margin: 0; }
.ctabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin: 18px 0 14px; }
.ctabs::-webkit-scrollbar { display: none; }
.ctab { flex: none; display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; font: inherit; font-weight: 700; font-size: 14px; color: var(--muted);
  padding: 10px 14px; border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer; }
.ctab .n { font-size: 12px; font-weight: 700; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; color: var(--text-2); }
.ctab:hover { color: var(--text); }
.ctab.is-on { color: var(--text); border-bottom-color: var(--c, var(--accent)); }
.ctab--SOP { --c: var(--c-SOP); } .ctab--IK { --c: var(--c-IK); } .ctab--SP { --c: var(--c-SP); } .ctab--IBPR { --c: var(--c-IBPR); }
.doc-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.doc-tools input[type="search"], .doc-tools select { height: 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; padding: 0 12px; }
.doc-tools input[type="search"] { flex: 1; min-width: 180px; }
.doc-tools .btn { margin-left: auto; }
.doc-list { display: grid; gap: 8px; }
.doc-row { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--c, var(--line)); border-radius: 12px; background: var(--surface-2); }
@media (min-width: 760px) { .doc-row { grid-template-columns: 1fr auto; align-items: center; } }
.doc-row__main { min-width: 0; display: grid; gap: 3px; }
.doc-row__no { font-size: 12px; font-weight: 800; color: var(--ci, var(--muted)); letter-spacing: .02em; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.doc-row__title { font-size: 15px; font-weight: 700; line-height: 1.35; }
.doc-row__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.doc-row__meta b { color: var(--text-2); }
.doc-row__act { display: flex; gap: 6px; align-items: center; }
.sec-tag { font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 6px; background: rgba(37,99,235,.12); color: #2563eb; }
:root[data-theme="dark"] .sec-tag { color: #7aa7ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sec-tag { color: #7aa7ff; } }
.sec-tag--umum { background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.sec-card { margin-bottom: 4px; }
.sec-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.sec-pill { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; padding: 4px 4px 4px 12px; font-size: 13.5px; font-weight: 700; }
.sec-pill small { font-weight: 600; color: var(--muted); margin: 0 4px; }
.sec-pill .ibtn { width: 28px; height: 28px; }
.up-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; max-height: 260px; overflow: auto; }
.up-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; padding: 8px 10px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); }
.up-list li span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.up-list li small { display: block; color: var(--muted); }
.up-list li.ok { border-color: color-mix(in srgb, var(--low) 45%, var(--line)); }
.up-list li.err { border-color: color-mix(in srgb, var(--crit) 45%, var(--line)); }
.up-list li.err small { color: var(--crit); }
.up-list i { font-style: normal; font-weight: 800; flex: none; width: 18px; text-align: center; }
.up-list li.ok i { color: var(--low); } .up-list li.err i { color: var(--crit); } .up-list li.wait i { color: var(--muted); }
.field select { height: 44px; }
.auth__slogan { font-weight: 700; color: #fff; margin-bottom: 6px; }

/* ---------- Brand SIAP ---------- */
.brand__siap { width: 38px; height: 38px; flex: none; border-radius: 11px; box-shadow: 0 4px 12px rgba(227,6,19,.28); }
.brand__text strong { font-size: 18px; letter-spacing: .06em; }
.brand__logos--sm { margin-left: 6px; padding: 3px 5px; border-radius: 10px; }
.brand__logos--sm img { width: 26px; height: 26px; }
@media (max-width: 1040px) { .brand__logos--sm { display: none; } }
.auth__sub { font-size: 16px; font-weight: 700; color: var(--text-2); margin: -4px 0 4px; letter-spacing: .01em; }
body.auth .auth__sub { color: rgba(255,255,255,.8); }
html:not([data-theme="dark"]) body.auth .auth__sub { color: var(--text-2); }
.auth__intro h1 .accent { letter-spacing: .04em; }
.footer__slogan { color: var(--text); font-weight: 800; }

/* ---------- Statistik akses (admin) ---------- */
:root { --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; }
:root[data-theme="dark"] { --s1: #3987e5; --s2: #d95926; --s3: #199e70; }
.sw.s1, .colchart i.s1 { background: var(--s1); } .sw.s2, .colchart i.s2 { background: var(--s2); } .sw.s3, .colchart i.s3 { background: var(--s3); }
.stats-filter { display: grid; gap: 8px; padding: 14px 16px; }
.stats-filter__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.seg-mini { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg-mini button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--text-2); padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.seg-mini button.is-on { background: var(--surface); color: var(--accent); box-shadow: 0 1px 3px rgba(15,27,45,.1); }
.fld-sm { display: grid; gap: 3px; }
.fld-sm span { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.fld-sm input, .fld-sm select { height: 36px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); font: inherit; font-size: 13.5px; padding: 0 10px; }
.btn--danger-ghost { margin-left: auto; color: var(--crit); border-color: color-mix(in srgb, var(--crit) 35%, var(--line)); background: var(--surface); }
.btn--danger-ghost:hover { background: color-mix(in srgb, var(--crit) 8%, var(--surface)); }
#statBody { display: grid; gap: 16px; }
.stat-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .stat-kpis { grid-template-columns: repeat(4, 1fr); } }
.stat-kpi { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; gap: 2px; box-shadow: var(--shadow); }
.stat-kpi::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--line); }
.stat-kpi--s1::before { background: var(--s1); } .stat-kpi--s2::before { background: var(--s2); } .stat-kpi--s3::before { background: var(--s3); }
.stat-kpi span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.stat-kpi b { font-size: 28px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-kpi small { font-size: 12px; color: var(--muted); }
.stat-grid { display: grid; gap: 16px; }
@media (min-width: 960px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
#statBody .card__head { flex-wrap: wrap; gap: 10px; }
#statBody .legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.hbar[data-sdept] { cursor: pointer; border-radius: 8px; margin: 0 -6px; padding: 0 6px; }
.hbar[data-sdept]:hover { background: var(--surface-2); }
.stat-search { height: 36px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); font: inherit; font-size: 13.5px; padding: 0 12px; min-width: 220px; }
.stat-table { max-height: 520px; overflow: auto; }
.stat-table--sm { max-height: 360px; }
.stat-table thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
.stat-table a { color: var(--text); text-decoration: none; }
.stat-table a:hover { color: var(--accent); text-decoration: underline; }
.colchart { display: grid; grid-template-columns: auto 1fr; gap: 8px; height: 230px; }
.colchart--empty { display: grid; place-items: center; height: 160px; grid-template-columns: 1fr; }
.colchart__y { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--muted); text-align: right; padding-bottom: 20px; font-variant-numeric: tabular-nums; }
.colchart__plot { display: flex; align-items: stretch; gap: 2px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0;
  background: repeating-linear-gradient(to top, transparent 0, transparent calc(50% - 1px), var(--line) calc(50% - 1px), var(--line) 50%); background-size: 100% calc(100% - 20px); background-repeat: no-repeat; }
.colchart__col { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 4px; cursor: default; }
.colchart__col:hover { background: var(--surface-2); }
.colchart__bars { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 1px; padding: 0 1px; }
.colchart__bars i { flex: 1; max-width: 14px; border-radius: 3px 3px 0 0; min-height: 0; }
.colchart__x { height: 20px; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: visible; padding-top: 4px; text-align: left; }

/* ---------- Erika (chat asisten AI) ---------- */
.assiap-fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer;
  padding: 6px 16px 6px 6px; border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px;
  box-shadow: 0 10px 30px rgba(15,27,45,.18), 0 0 0 1px var(--line); transition: transform .15s, box-shadow .15s; }
.assiap-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(227,6,19,.22), 0 0 0 1px rgba(227,6,19,.25); }
.assiap-fab img { width: 38px; height: 38px; border-radius: 50%; }
.assiap-fab b { color: var(--accent); }
.assiap-fab.is-hidden { display: none; }
.assiap { position: fixed; right: 18px; bottom: 18px; z-index: 70; width: min(410px, calc(100vw - 24px)); height: min(640px, calc(100vh - 100px));
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(15,27,45,.25); animation: rise .25s ease both; }
.assiap[hidden] { display: none; }
.assiap__head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: linear-gradient(135deg, #e30613, #ff5a3d); color: #fff; }
.assiap__head img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.6); background: #fff; }
.assiap__who { flex: 1; min-width: 0; display: grid; }
.assiap__who b { font-size: 16px; letter-spacing: .02em; }
.assiap__who small { font-size: 12px; opacity: .92; display: flex; align-items: center; gap: 6px; }
.assiap__dot { width: 8px; height: 8px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 0 2px rgba(255,255,255,.35); flex: none; }
.assiap__dot.on { background: #4ade80; }
.assiap__btn { width: 34px; height: 34px; border-radius: 10px; border: 0; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center; cursor: pointer; }
.assiap__btn:hover { background: rgba(255,255,255,.28); }
.assiap__btn svg { font-size: 16px; }
.assiap__log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.assiap__msg { display: flex; flex-direction: column; gap: 6px; max-width: 92%; }
.assiap__msg.me { align-self: flex-end; align-items: flex-end; }
.assiap__bubble { padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.assiap__msg.bot .assiap__bubble { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; color: var(--text); }
.assiap__msg.me .assiap__bubble { background: linear-gradient(135deg, #e30613, #ff4d3a); color: #fff; border-bottom-right-radius: 6px; }
.assiap__bubble.is-err { border-color: color-mix(in srgb, var(--crit) 40%, var(--line)) !important; color: var(--crit) !important; }
.assiap__bubble p { margin: 0 0 6px; } .assiap__bubble p:last-child { margin-bottom: 0; }
.assiap__bubble ul, .assiap__bubble ol { margin: 4px 0 8px; padding-left: 20px; display: grid; gap: 3px; }
.assiap__ref { font-weight: 700; color: var(--accent); white-space: nowrap; }
.assiap__src { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.assiap__src > span { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.assiap__src a { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; font-size: 12.5px; font-weight: 600; color: var(--text); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 4px 9px 4px 4px; }
.assiap__src a:hover { border-color: var(--accent); color: var(--accent); }
.assiap__src .cat-badge { min-width: 0; font-size: 10px; padding: 1px 6px; }
.assiap__chips { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.assiap__chips button { text-align: left; font: inherit; font-size: 13px; color: var(--text-2); background: var(--surface); border: 1px dashed #cfd5e0; border-radius: 12px; padding: 7px 11px; cursor: pointer; }
.assiap__chips button:hover { border-color: var(--accent); border-style: solid; color: var(--accent); }
.assiap__typing { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-size: 13px; }
.assiap__typing i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: blink 1.2s infinite ease-in-out; }
.assiap__typing i:first-of-type { margin-left: 4px; }
.assiap__typing i:nth-of-type(2) { animation-delay: .2s; } .assiap__typing i:nth-of-type(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.assiap__caret { display: inline-block; width: 7px; height: 15px; margin-left: 2px; background: var(--accent); vertical-align: -2px; animation: blink 1s infinite; }
.assiap__form { display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--surface); }
.assiap__form textarea { flex: 1; resize: none; min-height: 42px; max-height: 120px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  font: inherit; font-size: 14px; color: var(--text); background: var(--surface-2); outline: 0; line-height: 1.4; }
.assiap__form textarea:focus { border-color: rgba(227,6,19,.45); box-shadow: 0 0 0 3px rgba(227,6,19,.12); }
.assiap__send { width: 42px; height: 42px; flex: none; border: 0; border-radius: 12px; display: grid; place-items: center; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, #e30613, #ff5a3d); box-shadow: 0 6px 14px rgba(227,6,19,.3); }
.assiap__send:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.assiap__send svg { font-size: 18px; }
.assiap__foot { margin: 0; padding: 0 12px 10px; background: var(--surface); font-size: 11px; color: var(--muted); text-align: center; }
@media (max-width: 859px) {
  body.has-tabbar .assiap-fab { bottom: calc(80px + env(safe-area-inset-bottom)); right: 12px; }
  body.has-tabbar .to-top { bottom: calc(140px + env(safe-area-inset-bottom)); }
  .assiap { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
}
@media (max-width: 480px) { .assiap-fab span { display: none; } .assiap-fab { padding: 6px; } }
@media print { .assiap-fab, .assiap { display: none !important; } }
.stat-table--sm .table--mini { min-width: 0; }
.stat-grid > .card:only-child { grid-column: 1 / -1; }

/* ---------- Aturan Umum (AU) ---------- */
.cat-AU { --c: var(--c-AU); --ci: var(--c-AU-ink); --cb: var(--c-AU-bg); }
.sw.cat-AU, .seg.cat-AU, .hbar__fill.cat-AU { background: var(--c-AU); }
.cat-badge--AU { background: var(--c-AU-bg); color: var(--c-AU-ink); }
.catcard--AU, .acc--AU, .doc--AU, .ctab--AU { --c: var(--c-AU); }
.kpi--AU::before { background: var(--c-AU); }
html:not([data-theme="dark"]) .kpi--AU { background: linear-gradient(180deg, var(--c-AU-bg), #fff 70%); }
html:not([data-theme="dark"]) .catgrid .catcard--AU { background: linear-gradient(180deg, var(--c-AU-bg), #fff 65%); }
.acc--AU .hit__no, .doc-row.cat-AU .doc-row__no { color: var(--c-AU-ink); }
@media (min-width: 860px) { .catgrid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1040px) { .kpis { grid-template-columns: repeat(6, 1fr); } }
.kpis .kpi { min-width: 0; }
/* pilihan jenis (dropdown) */
.fsel--kind select { min-width: 150px; }
/* detail aturan umum */
.gen-toc { display: flex; flex-wrap: wrap; gap: 6px; }
.gen-toc a { font-size: 12.5px; font-weight: 700; color: var(--text-2); text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; }
.gen-toc a:hover { border-color: var(--c-AU); color: var(--c-AU-ink); }
.gen-bab { font-size: 15px; font-weight: 800; letter-spacing: .02em; color: var(--c-AU-ink); margin: 14px 0 2px; padding-bottom: 6px; border-bottom: 2px solid var(--c-AU-bg); scroll-margin-top: 80px; }
.gen-pasal { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; scroll-margin-top: 80px; }
.gen-pasal summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-weight: 800; font-size: 14.5px; }
.gen-pasal summary::-webkit-details-marker { display: none; }
.gen-pasal summary svg { color: var(--muted); transition: transform .2s; flex: none; }
.gen-pasal[open] summary svg { transform: rotate(90deg); }
.gen-pasal summary .tag { margin-left: auto; font-size: 11.5px; padding: 2px 8px; flex: none; }
.gen-pasal .dsec__body p { margin: 0 0 6px; font-size: 14px; color: var(--text-2); }
.gen-pasal.is-hit, .gen-row.is-hit td { background: color-mix(in srgb, var(--c-AU) 6%, var(--surface)); }
.gen-list { display: grid; gap: 8px; }
.gen-notes { margin-top: 10px; font-size: 13px; color: var(--text-2); display: grid; gap: 4px; }
.gen-notes p { margin: 0; }
.gen-page { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.gen-page h3 { font-size: 13px; font-weight: 800; color: var(--muted); margin-bottom: 8px; }
.gen-page p { margin: 0 0 8px; font-size: 14px; color: var(--text-2); }
.table--doc td.gen-sanksi { font-weight: 700; color: var(--text); white-space: nowrap; }
/* admin: aturan umum */
.mode-opts { display: grid; gap: 8px; }
.gen-preview { max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface-2); font-size: 12.5px; display: grid; gap: 8px; }
.gen-preview b { font-size: 13px; }
.gen-preview table { width: 100%; border-collapse: collapse; font-size: 12px; }
.gen-preview td, .gen-preview th { border-bottom: 1px solid var(--line); padding: 3px 4px; text-align: left; vertical-align: top; }
.gen-preview .muted { font-size: 12px; }
.field-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.role--au { background: var(--c-AU-bg); color: var(--c-AU-ink); }
.btn-row--start { justify-content: flex-start; align-items: center; gap: 10px; flex-wrap: wrap; }
#generalField[hidden] { display: none; }

/* ---------- Tautan dari Erika: banner & sorotan bagian yang dituju ---------- */
.assist-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; padding: 10px 14px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(227,6,19,.07), rgba(255,106,61,.05)); border: 1px solid rgba(227,6,19,.2); }
.assist-banner img { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.assist-banner > div { flex: 1; min-width: 200px; display: grid; }
.assist-banner b { font-size: 13.5px; color: var(--accent); }
.assist-banner span { font-size: 13.5px; color: var(--text-2); }
.assist-banner .pill { margin-left: auto; }
.is-target { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 12px; animation: target-pulse 1.2s ease 2; scroll-margin-top: 90px; }
tr.is-target { outline-offset: -3px; }
tr.is-target td { background: rgba(227,6,19,.07) !important; }
@keyframes target-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(227,6,19,0); } 50% { box-shadow: 0 0 0 8px rgba(227,6,19,.18); } }
.doc__tools:empty { display: none; }

/* ---------- Pengaturan (admin) ---------- */
.set-grid { display: grid; gap: 16px; }
@media (min-width: 960px) { .set-grid { grid-template-columns: 1fr 1fr; } }
.set-area { width: 100%; min-height: 220px; resize: vertical; border: 1px solid var(--line); border-radius: 12px; padding: 12px; font: 13.5px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--text); background: var(--surface-2); }
.set-area:focus { outline: 0; border-color: rgba(227,6,19,.45); box-shadow: 0 0 0 3px rgba(227,6,19,.12); }
#panel-settings code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 12px; }

/* ---------- Penampil dokumen asli (hanya lihat) ---------- */
.pill--orig { border-color: rgba(227,6,19,.3); color: var(--accent); font-weight: 700; }
.pill--orig svg { font-size: 15px; }
.pill--orig:hover { background: rgba(227,6,19,.06); border-color: var(--accent); }
.hit-row { display: flex; gap: 6px; align-items: stretch; }
.hit-row .hit { flex: 1; min-width: 0; }
.hit__orig { flex: none; width: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); cursor: pointer; display: grid; place-items: center; font-size: 18px; }
.hit__orig:hover { color: var(--accent); border-color: var(--accent); }
.modal__dialog--viewer { width: min(1180px, 96vw); max-width: none; height: 92vh; max-height: none; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.viewer__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.viewer__head > svg { font-size: 20px; color: var(--accent); flex: none; }
.viewer__head > div { flex: 1; min-width: 0; display: grid; }
.viewer__head b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer__head small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer__close { position: static; }
.viewer__body { flex: 1; overflow: auto; background: #e9ecf1; user-select: none; -webkit-user-select: none; }
.viewer__body.is-pdf { overflow: hidden; }
.viewer__body iframe { width: 100%; height: 100%; border: 0; display: block; background: #e9ecf1; }
.viewer__body.is-docx .docx-wrapper { background: #e9ecf1 !important; padding: 24px 12px !important; }
.viewer__body.is-docx .docx-wrapper > section.docx { box-shadow: 0 4px 18px rgba(15,27,45,.15); margin-bottom: 24px !important; }
.xlsx-sheet { padding: 12px; }
.xlsx-name { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.xlsx-sheet table { border-collapse: collapse; background: #fff; font-size: 12px; color: #111; }
.xlsx-sheet td { border: 1px solid #d5dae2; padding: 4px 6px; vertical-align: top; min-width: 40px; max-width: 360px; white-space: pre-wrap; }
@media (max-width: 640px) { .modal__dialog--viewer { width: 100vw; height: 100dvh; border-radius: 0; } }

/* ---------- PDF tampilan (admin) ---------- */
.pdf-tag { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; border: 1px solid var(--line); }
.pdf-tag--resmi { color: #117a55; border-color: rgba(27,175,122,.35); background: rgba(27,175,122,.08); }
.pdf-tag--auto { color: #1f5fae; border-color: rgba(42,120,214,.3); background: rgba(42,120,214,.07); }
.pdf-tag--none { color: #9a5a00; border-color: rgba(214,140,0,.35); background: rgba(214,140,0,.08); }
.set-pdf { margin-top: 18px; }
.pdf-stat { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; margin: 4px 0 14px; color: var(--muted); }
.pdf-stat b { color: var(--text, #111); }
.pdf-ok { color: #117a55; font-weight: 700; }
.pdf-bad { color: #b3261e; font-weight: 700; }
/* poin tujuan tautan Erika di dalam pasal panjang */
.is-target-item { background: rgba(227,6,19,.07); outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; animation: target-pulse 1.2s ease 2; scroll-margin-top: 110px; }

/* Erika: hitung mundur masa simpan chat */
.assiap__timer { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #fff7e6; border-top: 1px solid #f3d9a4; color: #7a4b00; font-size: 12.5px; }
.assiap__timer svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.assiap__timer span { flex: 1; }
.assiap__timer b { font-variant-numeric: tabular-nums; }
.assiap__timer button { flex: none; border: 1px solid currentColor; background: transparent; color: inherit; border-radius: 999px; padding: 3px 10px; font: inherit; font-weight: 700; cursor: pointer; }
.assiap__timer button:hover { background: rgba(122,75,0,.08); }
.assiap__timer.is-urgent { background: #fdecea; border-top-color: #f5c2bd; color: #b3261e; }
.assiap__note { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2, #f3f5f8); color: var(--muted); font-size: 12.5px; text-align: center; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .assiap__timer { background: #3a2c10; border-top-color: #5c4718; color: #f5cf7a; } :root:not([data-theme="light"]) .assiap__timer.is-urgent { background: #3d1714; color: #ff9d94; } }
:root[data-theme="dark"] .assiap__timer { background: #3a2c10; border-top-color: #5c4718; color: #f5cf7a; }
:root[data-theme="dark"] .assiap__timer.is-urgent { background: #3d1714; color: #ff9d94; }.assiap__timer[hidden] { display: none; }

/* Erika: tombol & panel bisa digeser */
.assiap-fab { touch-action: none; }
.assiap-fab.is-dragging, .assiap.is-dragging { transition: none; cursor: grabbing; user-select: none; animation: none; }
.assiap-fab.is-dragging { transform: scale(1.04); box-shadow: 0 18px 40px rgba(15,27,45,.28); }
@media (min-width: 860px) {
  .assiap__head { cursor: grab; touch-action: none; user-select: none; }
  .assiap.is-dragging .assiap__head { cursor: grabbing; }
}
/* Erika: pilihan pertanyaan balik */
.assiap__chips--clarify { margin-top: 8px; }
.assiap__chips--clarify button { border-style: solid; border-color: rgba(227,6,19,.35); color: var(--accent); font-weight: 600; text-align: left; }
.assiap__chips--clarify button:hover { background: rgba(227,6,19,.06); }

/* label di atas judul boleh turun baris (nama ERIKA panjang) agar halaman tidak melebar di HP */
.eyebrow { max-width: 100%; white-space: normal; line-height: 1.45; }
@media (max-width: 600px) { .eyebrow { border-radius: 14px; font-size: 11px; letter-spacing: .05em; } }

/* Judul & teks pembuka memakai lebar layar penuh; turun baris hanya bila layarnya tidak cukup (HP / jendela sempit) */
.hero h1, .hero__lead { max-width: none; }

/* Dashboard: kotak Cek Aturan & ajakan Tanya Erika */
.search--dash { margin-top: 20px; max-width: 820px; }
.search--dash .suggest__item { text-decoration: none; color: inherit; }
.dash-ask { margin: 12px 0 0; font-size: 14px; color: var(--text-2); display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.dash-ask__btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(227,6,19,.25); background: var(--surface); color: var(--accent); font: inherit; font-weight: 700; border-radius: 999px; padding: 3px 12px 3px 3px; cursor: pointer; }
.dash-ask__btn img { width: 22px; height: 22px; border-radius: 50%; }
.dash-ask__btn:hover { border-color: var(--accent); background: rgba(227,6,19,.05); }
.hero--dash .kpis { margin-top: 24px; }
@media (max-width: 600px) { .dash-ask { font-size: 13px; } }