/* Tambahan aplikasi di atas design system v1 (styles.css adalah sumber token; berkas ini hanya memakai token itu). */
[hidden] { display: none !important; }

/* Pengguna di bilah atas (menggantikan pemilih peran mockup) */
button.user { cursor: pointer; font: inherit; color: var(--ink); }
.user .un { display: flex; flex-direction: column; line-height: 1.15; font-size: 12.5px; text-align: left; max-width: 160px; }
.user .un small { color: var(--ink-3); font-size: 11px; }
.user > svg { width: 14px; height: 14px; color: var(--ink-3); }
.fresh.old .dot { background: var(--crit); box-shadow: 0 0 0 3px var(--crit-soft); }

/* Menu filter */
.pop-sec { padding: 8px 10px 4px; font-size: 10.5px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.pop-months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 0 4px 4px; }
.pop .pop-months button { justify-content: center; padding: 6px 4px; font-size: 12.5px; }
.pop .pop-months button[aria-checked="true"] { background: var(--ink); color: var(--surface); }
.pop button span { display: flex; flex-direction: column; }
.pop button small { font-size: 11px; color: var(--ink-3); }
.pop button:disabled { cursor: not-allowed; color: var(--ink-3); }
.pop button:disabled:hover { background: transparent; }

/* Kartu */
.card-f .unf { display: inline-flex; align-items: center; gap: 5px; cursor: help; }
.card-h .tools .iconbtn.has-cmt { width: auto; padding: 0 6px; gap: 3px; color: var(--info-ink); }
.card-h .tools .iconbtn .n { font-size: 11px; font-weight: 500; }
.kpi .lbl .lbl-t { min-width: 0; }
.state .slot { font-size: 11px; color: var(--ink-3); }
.t tr.sel td { background: var(--info-soft); }
.t td .flag, .t th .flag { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 4px; border-radius: 3px; font-size: 10px; font-weight: 700; background: var(--warn-soft); color: var(--warn-ink); vertical-align: 1px; }
.t td.wrap { white-space: normal; text-align: left; min-width: 180px; }
.kv.wide { grid-template-columns: minmax(0, 1fr) auto; }
.rule { font-size: 11.5px; color: var(--ink-3); }
.rule code, .mono-s { font-family: var(--mono); font-size: 11.5px; }
details.how { font-size: 12px; color: var(--ink-2); }
details.how summary { cursor: pointer; color: var(--ink-3); }
details.how p { margin: 6px 0 0; }

/* Laci */
.kamus { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; padding: 8px 10px; border-radius: var(--r-md); background: var(--surface-2); font-size: 12px; }
.kamus .u { color: var(--ink-3); }
.kamus i { color: var(--ink-3); }
.kamus .more { color: var(--ink-3); }
.ctxl { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--info-ink); font-size: 11.5px; cursor: pointer; }
.check { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.formerr { margin: 0; padding: 8px 10px; border-radius: var(--r-md); background: var(--crit-soft); color: var(--crit-ink); font-size: 12.5px; }
.qres, .notif { display: flex; flex-direction: column; gap: 2px; }
.qres a, .notif a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-md); color: var(--ink); text-decoration: none; font-size: 13px; }
.qres a:hover, .notif a:hover { background: var(--surface-2); }
.qres a svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.qres a > span, .notif a > span:not(.badge) { display: flex; flex-direction: column; }
.notif a > .badge { flex: none; }
.qres small, .notif small { color: var(--ink-3); font-size: 11.5px; }
.notif a { align-items: flex-start; border-bottom: 1px solid var(--line); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 95; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--r-md); background: var(--ink); color: var(--surface); font-size: 13px; box-shadow: var(--shadow-pop); transition: opacity .15s, transform .15s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 16px; height: 16px; }
.toast.err { background: var(--crit-ink); color: #fff; }

/* Masuk */
.login-body { min-height: 100%; }
.login { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 16px; padding: 24px 16px; }
.login-card { width: min(400px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 28px 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 1px 3px rgba(21,23,26,.06); }
.login-card .logo { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.login-card .logo img { height: 40px; width: auto; }
.login-card .logo .prod { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); line-height: 1.2; border-left: 1px solid var(--line); padding-left: 10px; }
.login-card h1 { margin: 0; font-size: 24px; font-weight: 500; }
.login-card .q { margin: -8px 0 4px; color: var(--ink-2); font-size: 13.5px; }
.login-card .field input { height: 38px; font-size: 14px; }
.login-card .btn.primary { height: 38px; justify-content: center; font-size: 14px; }
.login-card .btn.primary:disabled { opacity: .7; cursor: progress; }
.login-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.login-co { margin: 0; font-size: 11.5px; color: var(--ink-3); }

@media (max-width: 1279px) {
  .user .un, button.user > svg { display: none; }
}
@media print { .toast, .pop { display: none !important; } }

/* Perlu perhatian (Ringkasan) */
.alerts { display: flex; flex-direction: column; gap: 8px; }
.alerts .alert { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: start; padding-bottom: 8px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.alerts .alert:last-child { border-bottom: 0; padding-bottom: 0; }
.alerts .alert > span:not(.badge) { display: flex; flex-direction: column; gap: 2px; }
.alerts .alert .t { font-size: 13px; }
.alerts .alert small { font-size: 11.5px; color: var(--ink-3); }
.alerts .alert:hover .t { text-decoration: underline; text-underline-offset: 2px; }
.alerts details summary { cursor: pointer; font-size: 12px; color: var(--info-ink); list-style: none; padding-top: 2px; }
.alerts details summary::-webkit-details-marker { display: none; }
.alerts details[open] summary { display: none; }
.alerts details > div { display: flex; flex-direction: column; gap: 8px; }

/* Unggah data */
.drop { border: 1.5px dashed var(--line-2, var(--line)); border-radius: var(--r-lg); background: var(--surface-2); padding: 22px 16px; transition: border-color .12s, background .12s; }
.drop.over { border-color: var(--info); background: var(--info-soft); }
.drop-in { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--ink-2); font-size: 13px; }
.drop-in > svg { width: 28px; height: 28px; color: var(--ink-3); }
.drop-in small { color: var(--ink-3); font-size: 11.5px; }
.drop select, .card-h .tools select, .t select { height: 30px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font: inherit; font-size: 12.5px; padding: 0 8px; }
.card-h .tools input[type="search"] { height: 30px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font: inherit; font-size: 12.5px; padding: 0 8px; }
label.btn { cursor: pointer; }
.pv { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); }
.pv-h { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; font-size: 13px; }
.pv-h small { color: var(--ink-3); }
.pv-a { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.checks li { display: flex; gap: 8px; align-items: flex-start; }
.checks li.detail { padding-left: 24px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.checks li .badge { flex: none; }
.secret { padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); font-size: 18px; letter-spacing: .04em; user-select: all; }

/* Produksi: small multiples, grouped line table, history heat tables, findings list */
.card.mini { padding: 12px 14px; gap: 6px; }
.card.mini .card-h h3 { font-size: 13px; }
.card.mini .card-h .sub { font-size: 11.5px; }
.card.mini.dim { opacity: .55; }
.lnk { all: unset; cursor: pointer; color: inherit; font: inherit; }
.lnk:hover, .lnk:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.sub-h { margin: 14px 0 6px; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.sub-h:first-child { margin-top: 0; }
.t tr.grp td { background: var(--surface-2); font-size: 11.5px; letter-spacing: .02em; padding-top: 6px; padding-bottom: 6px; }
.tbl-wrap.dense .t td, .tbl-wrap.dense .t th { padding-left: 6px; padding-right: 6px; font-size: 11.5px; }
.qlist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; }
.qlist li { line-height: 1.5; }
.qlist .rule { display: inline-block; margin-top: 2px; }
.rule a, .qlist a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.rule a:hover, .qlist a:hover { text-decoration-color: currentColor; }
.drawer .tbl-wrap.tall { max-height: calc(100vh - 230px); }
.card.mini .mini-b { flex: none; }

/* Paket BOD: page list with drag reorder and include toggles, scaled live preview, history */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pk-thumbs { grid-template-columns: 1fr 1fr; }
.pk-t { position: relative; }
.pk-t button { width: 100%; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-md); padding: 8px; font-size: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
.pk-t button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pk-t .pg { aspect-ratio: 297/210; border-radius: 3px; background: var(--surface-2); border: 1px solid var(--line); position: relative; overflow: hidden; }
.pk-t .pg::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--brand-logo); }
.pk-t .pg i { position: absolute; left: 10%; right: 10%; height: 5%; background: var(--line-strong); border-radius: 2px; }
.pk-t .num { font-weight: 500; }
.pk-t.off button { opacity: .5; }
.pk-t.off button[aria-pressed="true"] { opacity: .8; }
.pk-t.drag { opacity: .4; }
.pk-t.over button { border-color: var(--s1); box-shadow: inset 0 0 0 1px var(--s1); }
.pk-chk { position: absolute; top: 12px; right: 12px; display: inline-flex; }
.pk-chk input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.pk-chk .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pk-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pk-frame { position: relative; width: 100%; aspect-ratio: 1123 / 794; overflow: hidden; border-radius: 4px; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); background: #fff; }
.pk-frame iframe { position: absolute; left: 0; top: 0; width: 1123px; height: 794px; border: 0; transform-origin: 0 0; pointer-events: none; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.pk-prose p { margin: 0 0 10px; font-size: 13px; line-height: 1.55; }
.pk-prose code { font-family: var(--mono); font-size: 12px; background: var(--surface-2); padding: 1px 4px; border-radius: 3px; }

/* ---------- Dokumen (pustaka dokumen) ---------- */
.mute { color: var(--ink-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dk { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 16px; align-items: start; }
.dk-side { position: sticky; top: calc(var(--top-h) + 16px); padding: 10px; gap: 8px; max-height: calc(100vh - var(--top-h) - 32px); }
.dk-nav { display: flex; flex-direction: column; gap: 1px; overflow: auto; min-height: 0; }
.dk-nb, .dk-tn { display: flex; align-items: center; gap: 10px; min-height: 32px; padding: 0 10px; border-radius: var(--r-md); border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: 13px; text-align: left; text-decoration: none; cursor: pointer; }
.dk-nb svg, .dk-tn svg { width: 16px; height: 16px; flex: none; color: var(--ink-3); }
.dk-nb span, .dk-tn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-nb:hover, .dk-tn:hover { background: var(--surface-2); color: var(--ink); }
.dk-nb[aria-current="page"], .dk-tn[aria-current="page"] { background: var(--surface-3); color: var(--ink); font-weight: 500; }
.dk-nb[aria-current="page"] svg, .dk-tn[aria-current="page"] svg { color: var(--ink); }
.dk-tree { display: flex; flex-direction: column; gap: 1px; margin-bottom: 6px; }
.dk-tn { padding-left: calc(18px + var(--d) * 14px); min-height: 28px; font-size: 12.5px; }
.dk-over { background: var(--seq-1) !important; box-shadow: inset 0 0 0 1.5px var(--s1); border-radius: var(--r-md); }
.dk-usage { border-top: 1px solid var(--line); padding-top: 8px; }
.dk-ub { width: 100%; display: flex; flex-direction: column; gap: 6px; padding: 6px 10px; border: 0; border-radius: var(--r-md); background: transparent; color: var(--ink-2); font: inherit; text-align: left; cursor: pointer; }
.dk-ub:hover { background: var(--surface-2); }
.dk-ub .k { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink); }
.dk-ub .k svg { width: 16px; height: 16px; color: var(--ink-3); }
.dk-ub small { font-size: 11px; color: var(--ink-3); line-height: 1.45; }
.dk-ub .bar, .dk-queue .bar, .dk-kinds .bar { display: block; height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.dk-ub .bar i, .dk-queue .bar i, .dk-kinds .bar i { display: block; height: 100%; background: var(--s1); border-radius: 2px; transition: width .2s; }
.dk-main { position: relative; min-height: 420px; gap: 10px; }
.dk-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 34px; }
.dk-crumb { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dk-crumb nav { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.dk-crumb a { color: var(--ink-2); text-decoration: none; font-size: 14px; padding: 2px 4px; border-radius: var(--r-sm); }
.dk-crumb a:hover { color: var(--ink); background: var(--surface-2); }
.dk-crumb .sep { color: var(--ink-3); }
.dk-crumb h2 { margin: 0; font-size: 16px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-search { display: flex; align-items: center; gap: 6px; height: 32px; width: min(340px, 100%); padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); color: var(--ink-3); }
.dk-search:focus-within { border-color: var(--ink-3); box-shadow: 0 0 0 3px var(--focus); }
.dk-search svg { width: 16px; height: 16px; flex: none; }
.dk-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13px; }
.dk-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 32px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.dk-tools select, .dk-acl-add select, .dk-ae select { height: 30px; padding: 0 8px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-size: 12.5px; }
.dk-tools .mini-seg button { display: inline-grid; place-items: center; padding: 3px 7px; }
.dk-tools .mini-seg svg { width: 15px; height: 15px; }
.dk-sort { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.dk-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.dk-hint svg { width: 15px; height: 15px; }
.dk-seln { font-size: 13px; margin-right: 4px; }
.dk-tools .btn.ghost { height: 30px; padding: 0 8px; }
.dk-t { width: 100%; }
.dk-t th.cb, .dk-t td.cb { width: 34px; padding-right: 0; }
.dk-t th.act, .dk-t td.act { width: 1%; padding-top: 2px; padding-bottom: 2px; white-space: nowrap; }
.dk-t td.act { text-align: right; }
.dk-t td.act .iconbtn { width: 28px; height: 28px; }
.dk-t th.sortable button { border: 0; background: transparent; padding: 0; font: inherit; color: inherit; display: inline-flex; align-items: center; gap: 3px; cursor: pointer; }
.dk-t th.sortable button svg { width: 13px; height: 13px; }
.dk-t td.nm { max-width: 0; width: 46%; white-space: nowrap; }
.dk-t td.nm .n { font-weight: 500; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; display: inline-block; max-width: calc(100% - 120px); }
.dk-t tbody tr.dk-r { cursor: pointer; }
.dk-t tbody tr.dk-r:hover td { background: var(--surface-2); }
.dk-t tbody tr.dk-r:focus-visible { outline: 2px solid var(--s1); outline-offset: -2px; }
.dk-t tbody tr.sel td { background: var(--seq-1); }
.dk-t td.dk-loc a { color: var(--ink-2); text-decoration: none; }
.dk-t td.dk-loc a:hover { text-decoration: underline; }
.dk-t td.dk-loc { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.dk-ic { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; vertical-align: middle; border-radius: var(--r-sm); color: var(--ink-2); }
.dk-ic svg { width: 18px; height: 18px; }
.dk-ic.k-folder { color: var(--ink-2); }
.dk-ic.k-folder svg { fill: var(--surface-3); }
.dk-ic.k-pdf { color: var(--brand); }
.dk-ic.k-sheet { color: var(--s6); }
.dk-ic.k-doc { color: var(--s1); }
.dk-ic.k-slide { color: var(--s2); }
.dk-ic.k-image { color: var(--s7); }
.dk-ic.k-video { color: var(--s5); }
.dk-ic.k-archive { color: var(--s4); }
.dk-tag { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; margin-left: 6px; border-radius: 9px; background: var(--surface-3); color: var(--ink-2); font-size: 11px; vertical-align: middle; }
.dk-sh { display: inline-grid; place-items: center; margin-left: 6px; color: var(--ink-3); vertical-align: middle; }
.dk-sh svg { width: 14px; height: 14px; }
.dk-sh.warn { color: var(--warn); }
.dk-snip { margin: 2px 0 0 32px; font-size: 11.5px; color: var(--ink-3); white-space: normal; line-height: 1.45; max-width: 72ch; }
.dk-snip mark { background: var(--warn-soft); color: var(--ink); border-radius: 2px; padding: 0 1px; }
.dk-star svg { transition: color .1s; }
.dk-star.on { color: var(--s4); }
.dk-star.on svg { fill: var(--s4); }
.dk-count { margin: 6px 2px 0; font-size: 12px; color: var(--ink-3); }
.dk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 12px; padding-top: 2px; }
.dk-tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); cursor: pointer; min-width: 0; }
.dk-tile:hover { border-color: var(--line-strong); background: var(--surface-2); }
.dk-tile:focus-visible { outline: 2px solid var(--s1); outline-offset: 1px; }
.dk-tile.sel { border-color: var(--s1); background: var(--seq-1); }
.dk-tile.fo { flex-direction: row; flex-wrap: wrap; align-items: center; }
.dk-tile.fo .nm { flex: 1; }
.dk-tile.fo small { width: 100%; padding-left: 32px; }
.dk-tile .th { height: 104px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--surface-2); overflow: hidden; }
.dk-tile .th img { width: 100%; height: 100%; object-fit: cover; }
.dk-tile .th .dk-ic { width: 48px; height: 48px; margin: 0; }
.dk-tile .th .dk-ic svg { width: 40px; height: 40px; stroke-width: 1.4; }
.dk-tile .nm { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-tile small { font-size: 11.5px; color: var(--ink-3); }
.dk-tile .dk-cb { position: absolute; top: 14px; left: 14px; z-index: 1; opacity: 0; }
.dk-tile:hover .dk-cb, .dk-tile.sel .dk-cb { opacity: 1; }
.dk-tile > .dk-star { position: absolute; top: 14px; right: 14px; z-index: 1; }
.dk-tile > .dk-star svg { width: 16px; height: 16px; }
.dk-drop { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; border: 2px dashed var(--s1); border-radius: var(--r-lg); background: color-mix(in srgb, var(--surface) 86%, var(--s1)); pointer-events: none; }
.dk-drop > div { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink); }
.dk-drop svg { width: 32px; height: 32px; color: var(--s1); }
.dk-drop small { color: var(--ink-2); }
.dk-empty { min-height: 300px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); }
.pop button.danger, .pop button.danger svg { color: var(--crit); }
.btn.primary.danger { background: var(--crit); border-color: var(--crit); }
.toast .toast-a { margin-left: 10px; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 500; text-decoration: underline; cursor: pointer; }
.dk-dlg-a { display: flex; gap: 8px; flex-wrap: wrap; }
.dk-dlg-col { flex-direction: column; align-items: stretch; }
.dk-dlg-col .btn { justify-content: center; }
.dk-p { margin: 0; font-size: 13px; line-height: 1.5; }
.dk-ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.6; }
.dk-pick { display: flex; flex-direction: column; gap: 1px; border: 1px solid var(--line); border-radius: var(--r-md); padding: 6px; max-height: calc(100vh - 230px); overflow: auto; }
.dk-pr { display: flex; align-items: center; gap: 2px; padding-left: calc(var(--d) * 16px); border-radius: var(--r-md); }
.dk-pr .tw { width: 22px; height: 28px; border: 0; background: transparent; color: var(--ink-3); cursor: pointer; display: grid; place-items: center; }
.dk-pr .tw svg { width: 14px; height: 14px; }
.dk-pr .tw[disabled] { cursor: default; }
.dk-pr .nm { flex: 1; display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 8px; border: 0; border-radius: var(--r-md); background: transparent; color: var(--ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.dk-pr .nm svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.dk-pr .nm span { flex: 1; }
.dk-pr .nm:hover { background: var(--surface-2); }
.dk-pr.on .nm { background: var(--seq-1); box-shadow: inset 0 0 0 1px var(--s1); font-weight: 500; }
.dk-pr.no .nm { color: var(--ink-3); cursor: not-allowed; }
.dk-acl { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-md); }
.dk-ae { display: flex; align-items: center; gap: 10px; padding: 8px 10px; font-size: 13px; }
.dk-ae + .dk-ae { border-top: 1px solid var(--line); }
.dk-ae > svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.dk-ae > span:not(.lv) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.dk-ae small { font-size: 11.5px; color: var(--ink-3); }
.dk-ae .lv { display: flex; flex-direction: column; align-items: flex-end; font-size: 12.5px; }
.dk-ae.mute { color: var(--ink-2); }
.dk-acl-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dk-acl-add select:first-child { flex: 1; min-width: 180px; }
.drawer.wide { width: min(1040px, 100vw); }
.dk-dh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dk-dt { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.dk-pv { display: flex; flex-direction: column; gap: 10px; }
.dk-frame { width: 100%; height: calc(100vh - 190px); min-height: 420px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.dk-img { display: grid; place-items: center; min-height: 320px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px; }
.dk-img img { max-width: 100%; max-height: calc(100vh - 230px); object-fit: contain; }
.dk-video { width: 100%; max-height: calc(100vh - 200px); border-radius: var(--r-md); background: #000; }
.dk-sheets { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.dk-sheets button { flex: none; border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 6px 10px; font: inherit; font-size: 12.5px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.dk-sheets button[aria-pressed="true"] { color: var(--ink); font-weight: 500; border-bottom-color: var(--s6); }
.dk-xl { max-height: calc(100vh - 260px); }
.dk-xl .t td, .dk-xl .t th { font-size: 12px; padding: 4px 8px; border-right: 1px solid var(--line); max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.dk-xl .t thead th { text-align: center; }
.dk-xl .t td.rn { color: var(--ink-3); background: var(--surface-2); text-align: right; font-size: 11px; }
.dk-doc { max-width: 72ch; margin: 0 auto; padding: 28px 36px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); font-size: 14px; line-height: 1.65; }
.dk-doc h3 { font-size: 17px; font-weight: 500; margin: 18px 0 6px; }
.dk-doc p { margin: 0 0 10px; }
.dk-doc table { border-collapse: collapse; margin: 8px 0 14px; font-size: 12.5px; }
.dk-doc td { border: 1px solid var(--line-strong); padding: 4px 8px; vertical-align: top; }
.dk-slides { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.dk-slides section { position: relative; aspect-ratio: 16 / 9; padding: 16px 16px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; font-size: 12px; }
.dk-slides section .n { position: absolute; right: 10px; bottom: 8px; font-size: 11px; color: var(--ink-3); }
.dk-slides h4 { margin: 0 0 6px; font-size: 14px; font-weight: 500; }
.dk-slides p { margin: 0 0 3px; color: var(--ink-2); }
.dk-text { margin: 0; padding: 14px; max-height: calc(100vh - 230px); overflow: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); font: 12.5px/1.55 var(--mono); white-space: pre-wrap; }
.dk-kv dd { min-width: 0; }
.dk-sha { word-break: break-all; }
.dk-links { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.dk-lk { display: inline-flex; align-items: center; gap: 2px; height: 28px; padding: 0 2px 0 10px; border: 1px solid var(--line-strong); border-radius: 14px; font-size: 12.5px; }
.dk-lk a { color: var(--ink); text-decoration: none; }
.dk-lk a:hover { text-decoration: underline; }
.dk-lk .iconbtn { width: 24px; height: 24px; }
.dk-vn { font-size: 11.5px; margin-top: 2px; }
.dk-act { display: flex; flex-direction: column; gap: 12px; }
.dk-act > div { display: flex; gap: 10px; font-size: 13px; line-height: 1.45; }
.dk-act .av { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-size: 11px; font-weight: 500; }
.dk-act small { display: block; font-size: 11.5px; color: var(--ink-3); }
.dk-kinds { display: flex; flex-direction: column; gap: 10px; }
.dk-kinds > div { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 4px; row-gap: 4px; font-size: 13px; }
.dk-kinds > div > span:nth-child(2) { display: flex; flex-direction: column; }
.dk-kinds small { font-size: 11.5px; color: var(--ink-3); }
.dk-kinds .bar { grid-column: 2 / 4; }
.dk-queue { position: fixed; right: 20px; bottom: 20px; z-index: 65; width: min(400px, calc(100vw - 32px)); max-height: 60vh; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); overflow: hidden; }
.dk-queue header { display: flex; align-items: center; gap: 4px; padding: 8px 8px 8px 14px; font-size: 13px; border-bottom: 1px solid var(--line); }
.dk-queue header b { font-weight: 500; }
.dk-queue > .bar { border-radius: 0; }
.dk-queue ul { list-style: none; margin: 0; padding: 4px 0; overflow: auto; }
.dk-queue li { display: flex; align-items: center; gap: 4px; padding: 6px 8px 6px 12px; }
.dk-queue li .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dk-queue li .nm b { font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-queue li .nm small { font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-queue li.s-err .nm small { color: var(--crit); white-space: normal; }
.dk-queue li .iconbtn { width: 28px; height: 28px; }
.dk-queue li .iconbtn.ok { color: var(--good); }
@media (max-width: 1100px) { .dk { grid-template-columns: 1fr; } .dk-side { position: static; max-height: none; } }
.dk-xl .t { width: auto; min-width: 100%; }
.dk-xl .t thead th:first-child, .dk-xl .t td.rn { width: 44px; min-width: 44px; }
.dk-xl .t td { min-width: 72px; }
.dk-empty.state { background: none; }
.dk-grid.fo { margin-bottom: 4px; }
.dk-grid + .sub-h, #dk-body > .sub-h:first-child { margin-top: 4px; }
.dk-tile.fo { padding: 10px 12px; }
.dk-tile.fo .dk-sh { margin-left: 0; }
.dk-tile .dk-tm { position: absolute; top: 14px; right: 14px; z-index: 2; width: 28px; height: 28px; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.12); opacity: 0; }
.dk-tile:hover .dk-tm, .dk-tile:focus-within .dk-tm { opacity: 1; }
.dk-tile:hover > .dk-star, .dk-tile:focus-within > .dk-star { right: 46px; }
/* The sticky first column inherits its row background; header rows have none, so the first header cell showed white
   in a gray header band (also in the mockup). Give it the header background explicitly. */
.t thead th:first-child { background: var(--surface-2); }
.dk-dt .sub-h { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.dk-dt .sub-h svg { width: 15px; height: 15px; color: var(--ink-3); }
.dk-dt .field + .field { margin-top: 8px; }
.dk-dt .field + div { margin-top: 8px; }
.dk-usage[hidden] { display: none; }

/* ---------- Keamanan akun ---------- */
.ac-gate { width: min(440px, 100%); }
.ac-form { display: flex; flex-direction: column; gap: 12px; }
.ac-form .field input { height: 36px; }
.ac-p { margin: 0; font-size: 13px; line-height: 1.5; }
.ac-sec { display: flex; flex-direction: column; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.ac-sec:last-child { border-bottom: 0; }
.ac-sec .sub-h { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--ink); }
.ac-sec .sub-h svg { width: 16px; height: 16px; color: var(--ink-3); }
.ac-steps { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.ac-qr { display: grid; place-items: center; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); align-self: center; }
.ac-qr svg { display: block; width: 200px; height: 200px; }
.ac-secret { word-spacing: 4px; letter-spacing: .04em; user-select: all; }
.ac-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 12px; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); background: var(--surface-2); }
.ac-codes code { font: 500 14px/1.6 var(--mono); letter-spacing: .06em; user-select: all; }
.login-foot .linkbtn { margin-left: auto; }
#ac-body { display: flex; flex-direction: column; gap: 14px; }
#ac-body h1 { margin: 0; font-size: 22px; font-weight: 500; }
#ac-mfa { display: flex; flex-direction: column; gap: 12px; }
.ac-qr { width: max-content; margin: 0 auto; }
.ac-dev { display: flex; align-items: center; gap: 8px; }
.mx-ok { display: inline-grid; place-items: center; color: var(--good); }
.mx-ok svg { width: 16px; height: 16px; }
.seg-lbl { font-size: 11.5px; color: var(--ink-3); margin-right: 6px; white-space: nowrap; }

/* ---------- Simulasi bahan baku ---------- */
.sim-sites { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.sim-asm { display: flex; flex-direction: column; gap: 14px; }
.sim-asm .field input, .sim-asm .field select { width: 100%; }
.sim-asm .hint a { color: var(--info-ink); }
.sim-state { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.sim-right, .sim-below { min-width: 0; }
.sim-in { padding: 0; }
.sim-rf th.c { text-align: center; border-left: 1px solid var(--line); }
.sim-rf td:nth-child(3n+2), .sim-rf th:nth-child(3n+2) { border-left: 1px solid var(--line); }
.sim-rf tr:first-child th:first-child + th { border-left: 1px solid var(--line); }
.sim-rf tr.muted td { color: var(--ink-3); }
.sim-vers { display: flex; flex-direction: column; gap: 8px; }
.sim-v { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.sim-v:hover { border-color: var(--line-strong); }
.sim-v.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.sim-v b { font-weight: 500; }
.sim-v small { color: var(--ink-3); font-size: 11.5px; }
.rule > svg, p.rule svg { width: 14px; height: 14px; vertical-align: -2px; color: var(--good); }
.sim-vt td.l:first-child { white-space: nowrap; }
.sim-vt td.ty { white-space: normal; min-width: 0; font-size: 11.5px; }
.sp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sp-h { font-size: 11.5px; color: var(--ink-3); margin-bottom: 2px; }
@media (max-width: 720px) { .sp-two { grid-template-columns: 1fr; } }

/* Rekonsiliasi & mutu data */
.rk-ctl td.l { white-space: normal; }
.rk-ctl tr.stale td { color: var(--ink-3); }
.rk-ctl .cmt-n { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; color: var(--ink-3); }
.rk-ctl .cmt-n svg { width: 12px; height: 12px; }
.rk-bars { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.rk-bar { cursor: pointer; }
.rk-bar:hover .rk-n { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.rk-n { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 4px; }
.rk-n span { color: var(--ink-3); font-size: 11.5px; white-space: nowrap; }
.rk-track { display: flex; height: 14px; border-radius: 3px; overflow: hidden; min-width: 40px; }
.rk-track i { display: block; min-width: 2px; }
.rk-track i + i { border-left: 1px solid var(--surface); }
.rk-xl { margin-top: 14px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.rk-xl svg { width: 14px; height: 14px; flex: none; }
.rk-xl:hover { color: var(--ink-2); }
.rk-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; margin: 0 0 6px; font-size: 12.5px; }
.rk-dl dt { color: var(--ink-3); }
.rk-dl dd { margin: 0; }
.rk-note { white-space: pre-wrap; max-height: 220px; overflow: auto; }
.rk-own { display: grid; grid-template-columns: 1fr; gap: 8px; }
.rk-own label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-2); }
.rk-own select, .rk-own input { height: 32px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; }
.rk-own .btn { justify-self: start; }
.t td.rk-best { font-weight: 600; background: var(--good-soft); color: var(--good-ink); }
.t td.rk-best.warn { background: var(--warn-soft); color: var(--warn-ink); }
.t td.rk-best.crit { background: var(--crit-soft); color: var(--crit-ink); }
.rk-link { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.t tr.rk-fig td { border-bottom: 0; padding-bottom: 2px; }
.t tr.rk-why td { padding-top: 0; font-size: 11.5px; white-space: normal; }
.t tr.rk-why .mono { font-size: 11px; color: var(--ink-2); }
