/* =========================================================================
   Pusat Kontrol — desain C (galeri sinematik, adaptasi Runway)
   ========================================================================= */

:root {
  --canvas: #090909;
  --surface: #121211;
  --raised: #1a1a18;
  --hover: #242421;
  --line: #2e2e2b;
  --strong: #464640;

  --text: #f8f7f3;
  --secondary: #deddd7;
  --muted: #aaa9a2;
  --faint: #6f6f6a;

  --accent: #7ec78a;
  --accent-hover: #93d49d;
  --accent-soft: rgba(126, 199, 138, 0.12);
  --accent-ink: #0a130c;

  --green: #a9c9a0;
  --amber: #dbca9e;
  --red: #e4a29b;
  --gray: #8a8a86;
  --blue: #8fb1d9;

  --radius: 6px;
  --radius-lg: 10px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --sidebar-w: 236px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------------------------------------------------------- typography */
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 22px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
.num { font-variant-numeric: tabular-nums; font-family: var(--mono); }

/* ---------------------------------------------------------------- login */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}
.login-brand { text-align: center; margin-bottom: 24px; }
.login-brand h1 { font-size: 20px; margin: 12px 0 4px; }
.login-brand p { color: var(--muted); margin: 0; font-size: 13px; }
.brand-mark {
  display: inline-block;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--accent);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute; inset: 9px;
  background: var(--accent-ink);
  border-radius: 4px;
}

/* ---------------------------------------------------------------- fields */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--secondary); margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  padding: 11px 12px;
  font-size: 15px;
  font-family: inherit;
  min-height: 42px;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-wrap .icon-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }

.form-error { color: var(--red); font-size: 13px; margin: 0 0 14px; }
.form-hint { color: var(--muted); font-size: 12.5px; margin: 4px 0 0; }

/* ---------------------------------------------------------------- buttons */
button { cursor: pointer; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.5; cursor: default; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  background: var(--raised);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
}
.btn-secondary:hover { background: var(--hover); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--secondary);
  min-height: 38px;
  padding: 7px 12px;
  border-radius: var(--radius);
  font-size: 13px;
}
.btn-ghost:hover { background: var(--hover); color: var(--text); }
.btn-danger {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--red);
  min-height: 38px;
  padding: 7px 12px;
  border-radius: var(--radius);
  font-size: 13px;
}
.btn-danger:hover { border-color: var(--red); background: rgba(228, 162, 155, 0.08); }
.icon-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--secondary);
  width: 42px; height: 42px;
  border-radius: var(--radius);
  font-size: 17px;
}
.icon-btn:hover { background: var(--hover); color: var(--text); }

/* ---------------------------------------------------------------- layout */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.side-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 20px 16px;
  font-weight: 600; font-size: 15px;
}
.side-brand .brand-mark { width: 26px; height: 26px; border-radius: 7px; }
.side-brand .brand-mark::after { inset: 7px; border-radius: 3px; }
.drawer-close { display: none; margin-left: auto; color: var(--muted); }

.nav { flex: 1; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  min-height: 42px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.nav-item svg { width: 18px; height: 18px; flex: 0 0 18px; }
.nav-item:hover { background: var(--hover); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); }

.side-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--muted);
}
.side-version { margin-left: auto; font-family: var(--mono); color: var(--faint); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
  position: sticky; top: 0; z-index: 20;
}
.menu-btn { display: none; }
.page-head { flex: 1; min-width: 0; }
.page-head h1 { font-size: 20px; }
.page-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }

.user-menu { position: relative; }
.user-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  padding: 9px 14px;
  min-height: 42px;
  font-size: 14px;
}
.user-btn:hover { background: var(--hover); }
.caret { color: var(--muted); font-size: 11px; }
.user-drop {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 180px;
  padding: 6px;
  z-index: 40;
}
.drop-item {
  display: block; width: 100%; text-align: left;
  background: transparent; border: 0;
  color: var(--text);
  padding: 10px 12px; border-radius: var(--radius);
  font-size: 14px;
}
.drop-item:hover { background: var(--hover); }

.content { flex: 1; padding: 24px; max-width: 1120px; width: 100%; }
.content.narrow { max-width: 760px; }

/* ---------------------------------------------------------------- pills / badges */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--secondary);
  white-space: nowrap;
}
.pill-green { color: var(--green); border-color: rgba(169, 201, 160, 0.35); background: rgba(169, 201, 160, 0.08); }
.pill-amber { color: var(--amber); border-color: rgba(219, 202, 158, 0.35); background: rgba(219, 202, 158, 0.08); }
.pill-red { color: var(--red); border-color: rgba(228, 162, 155, 0.35); background: rgba(228, 162, 155, 0.08); }
.pill-gray { color: var(--gray); }
.pill-blue { color: var(--blue); border-color: rgba(143, 177, 217, 0.35); background: rgba(143, 177, 217, 0.08); }

.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gray); }
.status-dot.green { background: var(--green); }
.status-dot.amber { background: var(--amber); }
.status-dot.red { background: var(--red); }
.status-dot.gray { background: var(--gray); }
.status-dot.blue { background: var(--blue); }

/* ---------------------------------------------------------------- cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.card + .card { margin-top: 16px; }
.card-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.card-head h2 { font-size: 15px; }
.card-head .sub { color: var(--muted); font-size: 12.5px; }
.card-head .spacer { flex: 1; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  cursor: pointer;
}
.stat-card:hover { border-color: var(--strong); }
.stat-card .label { color: var(--muted); font-size: 12.5px; margin-bottom: 6px; }
.stat-card .value { font-size: 26px; font-weight: 600; font-family: var(--mono); letter-spacing: -0.02em; }
.stat-card .value.green { color: var(--green); }
.stat-card .value.amber { color: var(--amber); }
.stat-card .value.red { color: var(--red); }
.stat-card .value.blue { color: var(--blue); }
.stat-card .value.gray { color: var(--gray); }

/* ---------------------------------------------------------------- table / list */
.toolbar {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.toolbar .search { flex: 1; min-width: 200px; max-width: 360px; position: relative; }
.toolbar .search::before {
  content: '\2315';
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--faint); font-size: 14px; pointer-events: none;
}
.toolbar .search input { padding-left: 34px; }
.toolbar select { width: auto; min-width: 150px; }

.table { width: 100%; border-collapse: collapse; }
.mobile-cards { display: none; }
.table th {
  text-align: left; font-size: 12px; font-weight: 500;
  color: var(--muted); padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.table td {
  padding: 12px; border-bottom: 1px solid var(--line);
  font-size: 14px; vertical-align: middle;
}
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--raised); }
.mono { font-family: var(--mono); font-size: 13px; color: var(--secondary); }

/* ---------------------------------------------------------------- accordion (pelanggan) */
.acc { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.acc + .acc { margin-top: 10px; }
.acc-head {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; cursor: pointer; width: 100%;
  background: transparent; border: 0; text-align: left;
}
.acc-head:hover { background: var(--raised); }
.acc-head .acc-title { flex: 1; min-width: 0; }
.acc-head .acc-name { font-weight: 600; font-size: 15px; }
.acc-head .acc-meta { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.acc-chevron { color: var(--muted); transition: transform 0.15s; }
.acc.open .acc-chevron { transform: rotate(180deg); }
.acc-body { border-top: 1px solid var(--line); padding: 8px 18px 16px; }

/* ---------------------------------------------------------------- tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tab {
  background: transparent; border: 0; border-bottom: 2px solid transparent;
  color: var(--muted); padding: 10px 14px; font-size: 14px; min-height: 42px;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------------------------------------------------------------- dialog */
.modal-scrim {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px;
  z-index: 100;
  overflow-y: auto;
}
.modal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 460px;
  padding: 22px;
}
.modal-head { display: flex; align-items: center; margin-bottom: 18px; }
.spacer { flex: 1 1 auto; }
.modal-head h2 { font-size: 16px; flex: 1; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.modal .close-x { font-size: 18px; }

/* ---------------------------------------------------------------- alur kode bernomor */
.code-flow { display: flex; flex-wrap: wrap; gap: 12px; }
.code-step {
  flex: 1 1 200px;
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}
.code-step-num {
  flex: 0 0 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 600;
}
.code-step-body { flex: 1; min-width: 0; }
.code-step-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.code-flow-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; }

/* ---------------------------------------------------------------- misc */
.empty {
  text-align: center; padding: 40px 20px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}
.empty h3 { color: var(--secondary); margin-bottom: 6px; }
.empty p { margin: 0 0 16px; font-size: 13.5px; }
.loading { padding: 40px; text-align: center; color: var(--muted); }
.spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2px solid var(--line); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: -3px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.kv { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; }
.kv .k { color: var(--muted); font-size: 13px; }
.kv .v { font-size: 14px; word-break: break-word; }

.audit-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.audit-row:last-child { border-bottom: 0; }
.audit-row .a-time { font-family: var(--mono); font-size: 12px; color: var(--muted); flex: 0 0 96px; }
.audit-row .a-actor { font-family: var(--mono); font-size: 13px; color: var(--secondary); flex: 0 0 120px; }
.audit-row .a-action { color: var(--accent); font-size: 13px; flex: 0 0 190px; }
.audit-row .a-detail { color: var(--muted); font-size: 12.5px; word-break: break-word; }

.toast {
  position: fixed; bottom: 20px; right: 20px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  max-width: 360px;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.toast.error { border-left-color: var(--red); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
}

@media (max-width: 600px) {
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 90;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 80; }
  .menu-btn { display: inline-flex; }
  .drawer-close { display: inline-block; }
  .card-head { flex-wrap: wrap; }
  .topbar { padding: 10px 14px; }
  .content { padding: 16px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card .value { font-size: 22px; }
  .table { display: none; }
  .mobile-cards { display: block; }
  .topbar-right .pill { display: none; }
  .page-head h1 { font-size: 17px; }
  .modal-scrim { padding: 0; align-items: flex-end; }
  .modal { max-width: none; border-radius: 16px 16px 0 0; padding-bottom: 28px; }
  .kv { grid-template-columns: 1fr; }
  .audit-row { flex-wrap: wrap; }
  .audit-row .a-actor, .audit-row .a-action { flex-basis: auto; }
}

@media (max-width: 380px) {
  .stat-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Pembaruan (draf, penerima, terbitkan, hasil), Pemasang, Download, Panduan
   ========================================================================= */
.muted { color: var(--muted); }
.flow-note { background: var(--accent-soft); border: 1px solid rgba(126, 199, 138, 0.3); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 14px; font-size: 13.5px; color: var(--secondary); }
.adv-box { margin-bottom: 14px; }
.rel-acc .acc-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rel-acc .acc-meta { line-height: 1.4; }
.sec { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: none; margin: 16px 0 6px; }
.note-text { margin: 0 0 6px; white-space: pre-wrap; word-break: break-word; font-size: 14px; }
.cmd { display: block; word-break: break-all; margin: 4px 0 0; }
.file-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.file-row:last-child { border-bottom: 0; }
.file-plat { font-family: var(--mono); color: var(--secondary); min-width: 110px; }
.sub-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--canvas); padding: 12px 14px; margin-top: 14px; }
.sub-card .sec { margin-top: 0; }
.target-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.target-row:last-of-type { border-bottom: 0; }
.target-name { font-size: 14px; word-break: break-word; }
.preview { margin-top: 4px; }
.preview-count { margin: 6px 0; font-size: 14px; }
.preview-count.zero { color: var(--amber); }
.name-list { margin: 4px 0 8px; padding-left: 18px; font-size: 13.5px; max-height: 190px; overflow: auto; }
.name-list li { margin: 2px 0; word-break: break-word; }
.incompat summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.res-counts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.res-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.res-row { display: grid; grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1fr); gap: 6px 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.res-row:last-child { border-bottom: 0; }
.res-name { font-weight: 600; font-size: 14px; word-break: break-word; }
.res-sub { color: var(--muted); font-size: 12.5px; }
.res-time { font-size: 13px; }
.res-err { grid-column: 1 / -1; color: var(--red); font-size: 12.5px; word-break: break-word; }
.explain { margin: 10px 0 0; padding-left: 18px; font-size: 13px; color: var(--secondary); }
.explain li { margin: 3px 0; }
.explain .warn-line { color: var(--amber); }
.inst-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; }
.inst-head .acc-title { flex: 1 1 260px; min-width: 0; }
.check-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 14px; }
.check-row input { width: auto; min-height: 0; }
.instruction-box { min-height: 130px; resize: vertical; font-size: 12.5px; }
.modal .instruction-box { width: 100%; }

/* ---- halaman publik + Download & Instalasi ---- */
.public-wrap { min-height: 100vh; }
.public-head { display: flex; align-items: center; gap: 10px; padding: 12px 24px; border-bottom: 1px solid var(--line); background: var(--surface); }
.public-brand { font-weight: 600; }
.public-content { max-width: 960px; margin: 0 auto; padding: 24px; }
.dl-page { max-width: 960px; }
.dl-title { font-size: 26px; margin-bottom: 8px; }
.dl-lead { color: var(--secondary); max-width: 70ch; }
.dl-steps { color: var(--secondary); padding-left: 20px; margin: 0 0 20px; font-size: 14px; }
.dl-steps li { margin: 3px 0; }
.dl-group { margin-top: 22px; }
.dl-group h2 { font-size: 18px; }
.dl-sub { color: var(--muted); font-size: 13px; margin: 2px 0 10px; }
.dl-row { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 14px 16px; margin-bottom: 10px; }
.dl-row-empty { border-style: dashed; }
.dl-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dl-head h3 { font-size: 15.5px; flex: 1 1 200px; }
.dl-arch { color: var(--muted); font-size: 12.5px; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 8px 0; font-size: 13.5px; }
.dl-meta .k, .dl-pre .k, .dl-sha .k { color: var(--muted); font-size: 12px; margin-right: 6px; }
.dl-testnote { color: var(--amber); font-size: 13px; margin: 4px 0; }
.dl-pre ul { margin: 2px 0 6px; padding-left: 18px; font-size: 13.5px; }
.dl-sha { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 2px; }
.dl-sha .sha { word-break: break-all; font-size: 12px; flex: 1 1 260px; }
.dl-sig { color: var(--muted); font-size: 12.5px; margin: 2px 0 8px; }
.dl-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0 4px; }
.dl-actions a.btn-primary { text-decoration: none; }
.dl-why { color: var(--amber); font-size: 13px; flex: 1 1 220px; }
.dl-guide, .dl-verify { margin-top: 8px; font-size: 14px; }
.dl-guide summary, .dl-verify summary { cursor: pointer; color: var(--blue); min-height: 32px; display: flex; align-items: center; }
.dl-guide ol { padding-left: 20px; }
.dl-guide li { margin: 4px 0; }
.dl-note { color: var(--amber); font-size: 13px; }
.dl-verify { border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 14px 8px; margin-top: 22px; }
.dl-verify code { user-select: all; }
.dl-honest { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 18px; background: var(--surface); }
.dl-honest h2 { font-size: 15px; margin-bottom: 6px; }
.dl-honest ul { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--secondary); }
.dl-honest li { margin: 4px 0; }

/* ---- panduan ---- */
.guide-version { color: var(--muted); font-size: 12.5px; margin: 0 0 12px; }
.guide-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.guide-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 12px; }
.guide-topic { text-align: left; background: transparent; border: 1px solid transparent; color: var(--secondary); border-radius: var(--radius); padding: 9px 12px; font-size: 14px; min-height: 42px; }
.guide-topic:hover { background: var(--hover); }
.guide-topic.active { background: var(--accent-soft); color: var(--accent); border-color: rgba(126, 199, 138, 0.3); }
.guide-page { outline: none; min-width: 0; }
.guide-sum { color: var(--secondary); }
.guide-step { border-top: 1px solid var(--line); padding: 14px 0; }
.guide-step h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.guide-n { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; flex: 0 0 24px; }
.guide-zoom { display: block; width: 100%; padding: 0; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius); cursor: zoom-in; overflow: hidden; }
.guide-img { display: block; width: 100%; height: auto; }
.guide-cap { color: var(--secondary); font-size: 13.5px; margin: 8px 0 4px; }
.guide-markers { margin: 4px 0 0; padding-left: 22px; font-size: 13.5px; color: var(--secondary); }
.lb-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.88); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 16px; }
.lb { width: 100%; max-width: 1200px; max-height: 100%; display: flex; flex-direction: column; gap: 8px; }
.lb-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lb-count { color: var(--secondary); font-size: 13px; }
.lb-stage { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--canvas); max-height: calc(100vh - 150px); }
.lb-img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.lb-cap { color: var(--secondary); font-size: 13.5px; margin: 0; }

@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .guide-topic { border-color: var(--line); }
}
@media (max-width: 600px) {
  .public-head { padding: 10px 14px; }
  .public-content { padding: 16px; }
  .dl-title { font-size: 21px; }
  .res-row { grid-template-columns: 1fr; }
  .inst-head .btn-secondary, .inst-head .btn-danger { flex: 1 1 auto; }
  .dl-actions .btn-primary { flex: 1 1 100%; }
  .toolbar select { width: 100%; }
  .lb-stage { max-height: calc(100vh - 190px); }
}

/* audit: detail panjang (hash, JSON) harus terpotong di HP, bukan melebarkan halaman */
.audit-row > * { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .audit-row .a-detail { flex: 1 1 100%; }
  .audit-row .a-time { flex-basis: auto; }
  .audit-row .a-actor, .audit-row .a-action { flex: 0 1 auto; max-width: 100%; }
}
