/* ============================================================
   showcase.css — hero flow rail, stack matrix, board storyboard,
   dan replika UI release control plane.
   Semua komponen di sini bersifat aditif: tidak menimpa base.css
   maupun components.css, hanya menambahkan blok baru.
   Token warna (--accent, --pass, --warn, --info, --danger, dst.)
   dimilik oleh base.css; berkas ini tidak mendeklarasikannya lagi.
   ============================================================ */

/* ============================================================
   1. HERO — rel pipeline
   ============================================================ */
.hero-flow-wrap { grid-area: flow; margin-top: 0; }
.hero-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  /* tanpa celah antar kolom, sublabel yang lebih lebar dari selnya menempel
     ke tetangga (terukur 10px jaraknya di 1440, 0px di 390) */
  column-gap: 10px;
  padding-top: 26px;
}.hf-line {
  position: absolute;
  left: 0; right: 0; top: 33px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-bright) 5%, var(--accent-bright) 95%, transparent);
}
.hf-packet {
  position: absolute;
  top: 28px; left: 0;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim), 0 0 16px var(--accent-line);
  /* satu putaran lalu diam: animasi hanya ada saat rel punya kelas .run,
     jadi melepas kelas itu benar-benar menyiapkan ulang perjalanan paket */
  opacity: 0;
  animation: none;
}
.hero-flow.run .hf-packet { animation: hf-travel 7s linear 1 both; }
.hf-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  /* tiap tahap diwarnai oleh alat yang mengerjakannya, bukan sebagai hiasan */
  --node: var(--ink-dim);
}
.hf-node[data-hf="0"] { --node: var(--tool-ink); }      /* commit - GitHub */
.hf-node[data-hf="1"] { --node: var(--pass-brand); }    /* build  - Jenkins */
.hf-node[data-hf="2"] { --node: var(--warn); }          /* scan   - Trivy/Sonar */
.hf-node[data-hf="3"] { --node: var(--danger-brand); }  /* gate   - OpenShift */
.hf-node[data-hf="4"] { --node: var(--info-brand); }    /* SIT    - Docker */
.hf-node[data-hf="5"] { --node: var(--info); }          /* UAT    - Jira */
.hf-node[data-hf="6"] { --node: var(--accent); }        /* PROD   - GitLab */
.hf-node i {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--node);
  transition: all 0.35s var(--ease);
  z-index: 1;
}
.hf-node span {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color 0.35s var(--ease);
}
.hf-node.lit i {
  background: var(--node);
  border-color: var(--node);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--node) 16%, transparent);
}
.hf-node.lit span { color: var(--ink); }
.hf-node.hf-prod.lit i { transform: scale(1.25); }

/* dua tahap yang bisa menghentikan rilis: dibedakan bentuknya, bukan hanya warnanya.
   lingkaran = tahap biasa, belah ketupat = scan, kotak = gate. */
.hf-node.hf-scan i {
  transform: rotate(45deg);
  border-radius: 2px;
}
.hf-node.hf-gate i { border-radius: 0; }
.hf-legend {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
}
.hf-legend .lm-scan { color: var(--warn); }
.hf-legend .lm-gate { color: var(--danger); }
@media (max-width: 620px) {
  .hero-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 26px; column-gap: 14px; }
  .hf-line, .hf-packet { display: none; }
  .hf-node { align-items: flex-start; }
}

/* ============================================================
   2. STACKS — konveyor + matriks artefak
   ============================================================ */
.conveyor { position: relative; }
.cv-rail {
  position: relative;
  height: 22px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.cv-rail::after {
  content: "artifact conveyor";
  position: absolute;
  right: 0; bottom: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.cv-packet {
  position: absolute;
  bottom: -4px; left: 0;
  width: 22px; height: 7px;
  border-radius: 1px;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent-line);
  animation: cv-run 6s linear infinite;
}
.stack-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stack-card {
  background: var(--bg-2);
  padding: clamp(18px, 2.2vw, 26px) clamp(14px, 1.8vw, 20px) clamp(20px, 2.4vw, 28px);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: background 0.35s var(--ease);
}
.stack-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}
.stack-card.hit { background: var(--bg-3); }
.stack-card.hit::before { transform: scaleY(1); }
.sc-idx { font-size: 10.5px; letter-spacing: 0.18em; color: var(--ink-faint); }
.stack-card h3 { font-size: 15.5px; margin-top: 10px; letter-spacing: -0.01em; }
.sc-art {
  align-self: flex-start;
  margin-top: 12px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  background: var(--accent-dim);
  border-radius: 2px;
  padding: 3px 8px;
}
.stack-card p { margin-top: 12px; font-size: 12.8px; line-height: 1.62; color: var(--ink-dim); }
.sc-tags { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 5px; }
.sc-tags span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 2px 6px;
}
@media (max-width: 1000px) { .stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cv-rail { display: none; } }
@media (max-width: 560px) { .stack-grid { grid-template-columns: 1fr; } }

.stack-facts, .rp-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: clamp(24px, 3.4vw, 38px);
}
.rp-facts { grid-template-columns: repeat(5, 1fr); }
.sf {
  background: var(--bg);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sf b {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}
.sf span { font-size: 12.2px; color: var(--ink-dim); line-height: 1.5; }
@media (max-width: 860px) { .stack-facts, .rp-facts { grid-template-columns: repeat(2, 1fr); } }

.stack-note {
  margin-top: 22px;
  font-size: 13.4px;
  color: var(--ink-dim);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--bg-2);
}
.stack-note .mono { color: var(--accent); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin-right: 6px; }

/* ============================================================
   3. BOARD — storyboard interaktif
   ============================================================ */
.bd {
  margin-top: clamp(26px, 3.6vw, 40px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
}
.bd-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-3);
}
.bd-bar-l, .bd-bar-r { display: flex; align-items: center; gap: 12px; }
.bd-live {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
}
.bd-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2s var(--ease) infinite; }
.bd-count { font-size: 12px; color: var(--ink-faint); letter-spacing: 0.08em; }
.bd-count b { color: var(--ink); }
.bd-btn {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1;
  transition: all 0.2s var(--ease);
}
.bd-btn:hover { border-color: var(--accent); color: var(--accent); }
.bd-play { width: 38px; }
.bd-play .ic-play { display: none; }
.bd-play.paused .ic-play { display: inline; }
.bd-play.paused .ic-pause { display: none; }

.bd-dots { display: flex; gap: 6px; padding: 6px 16px 0; flex-wrap: wrap; }
.bd-dot {
  flex: 1;
  min-width: 26px;
  /* tombolnya setinggi 24px (target sentuh minimum WCAG 2.2 AA); bar 3px yang
     lama digambar oleh ::after supaya tampilannya tidak berubah sedikit pun */
  position: relative;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.3s var(--ease);
}
.bd-dot::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 2px;
  background: var(--line-strong);
  transition: background 0.3s var(--ease);
}
.bd-dot.done::after { background: var(--accent-line); }
.bd-dot.on::after { background: var(--accent); }

.bd-grid {
  display: grid;
  /* papan 5 kolom butuh ruang lebih dari panel tiket: dengan 1.05/0.95 tiap
     kolom cuma 97px dan badge "Dev Planning" keluar kartu sampai 36px */
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  margin-top: 12px;
}
@media (max-width: 900px) { .bd-grid { grid-template-columns: 1fr; } }

.bd-board {
  background: var(--bg-2);
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
}
.bd-col { min-width: 0; }
.bd-col h3 {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  gap: 4px;
  padding: 6px 7px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
  transition: all 0.3s var(--ease);
}
.bd-col h3 .cc { color: var(--ink-faint); }
.bd-col.active h4 { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); }
.bd-colbody { min-height: 10px; margin-top: 8px; }

.bd-card {
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--accent);
  border-radius: 2px;
  background: var(--bg-3);
  padding: 9px 10px;
  font-size: 11px;
  line-height: 1.45;
  grid-column: 1;
  transition: box-shadow 0.3s var(--ease);
}
.bd-card.moved { animation: card-pop 0.5s var(--ease); }
.bd-card.ghost { border-left-color: var(--line-strong); }
.bd-card.ghost .bc-title { color: var(--ink-dim); font-weight: 500; }
.bc-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; align-items: center; }
.bc-iid { font-size: 9.5px; color: var(--ink-faint); }
.bc-phase {
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  border: 1px solid var(--accent-line);
  background: var(--accent-dim);
  border-radius: 2px;
  padding: 1px 5px;
  white-space: nowrap;
}
.bc-title { margin-top: 6px; color: var(--ink); font-weight: 600; font-size: 11px; }
.bc-meta { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 4px; }
.bc-lbl {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1px 4px;
}
.bc-lbl.sev { color: var(--warn); border-color: var(--warn); }
.bc-approve { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 4px; }
.ap-chip {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1px 5px;
  color: var(--ink-faint);
}
.ap-chip.ok { color: var(--accent-strong); border-color: var(--accent-line); background: var(--accent-dim); }
.bc-bot { margin-top: 8px; display: none; }
.bc-bot.on { display: block; }
.bc-bot span {
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
}
.bc-bot code {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--accent);
  background: var(--bg);
  border: 1px dashed var(--accent-line);
  border-radius: 2px;
  padding: 3px 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bd-ticket { background: var(--bg-2); padding: 16px; display: flex; flex-direction: column; min-height: 320px; }
.bt-head { display: flex; gap: 10px; align-items: flex-start; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.bt-ic { color: var(--accent); font-size: 15px; line-height: 1.3; }
.bt-title { font-size: 12.5px; font-weight: 600; }
.bt-sub { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-top: 3px; }
.bt-feed { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; overflow-y: auto; max-height: 340px; padding-right: 4px; }
/* kartu boleh mengecil sekecil kolomnya; tanpa ini tabel di dalamnya
   memaksa feed 384px jadi 644px dan memunculkan scroll horizontal di panel */
.bt-feed > .act { min-width: 0; }
.bt-feed::-webkit-scrollbar { width: 5px; }
.bt-feed::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }

.act {
  border: 1px solid var(--line);
  border-left: 2px solid var(--line-strong);
  border-radius: 2px;
  background: var(--bg);
  padding: 9px 11px;
  animation: act-in 0.4s var(--ease);
}
.act.bot { border-left-color: var(--accent); }
.act.human { border-left-color: var(--info); }
.act.gate { border-left-color: var(--warn); }
.act-who {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.act.bot .act-who { color: var(--accent); }
.act.human .act-who { color: var(--info); }
.act.gate .act-who { color: var(--warn); }
.act-title { margin-top: 5px; font-size: 12px; font-weight: 600; color: var(--ink); }
.act-body { margin-top: 5px; font-size: 12px; color: var(--ink-dim); line-height: 1.55; }
.act-body code {
  font-family: var(--font-mono);
  font-size: 10.4px;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 2px;
  padding: 0 4px;
}
.mini-tbl { margin-top: 7px; width: 100%; table-layout: fixed; border-collapse: collapse; font-family: var(--font-mono); font-size: 10px; }
.mini-tbl th, .mini-tbl td { text-align: left; padding: 3px 6px; border-bottom: 1px solid var(--line); color: var(--ink-dim); overflow-wrap: anywhere; }
.mini-tbl th { color: var(--ink-faint); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; font-size: 8.5px; }
.mini-tbl td.ok { color: var(--accent); }
.mini-tbl td.bad { color: var(--danger); }

.bd-narr {
  padding: 16px;
  border-top: 1px solid var(--line);
  background: var(--bg-3);
  font-size: 13.4px;
  color: var(--ink-dim);
  line-height: 1.65;
  min-height: 74px;
}
.bd-narr b { color: var(--ink); font-weight: 600; }
.bd-narr::before {
  content: "step";
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 7px;
}

/* ---------- panel gerbang & insiden ---------- */
.board-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 28px);
  margin-top: clamp(26px, 3.6vw, 40px);
}
@media (max-width: 860px) { .board-panels { grid-template-columns: 1fr; } }
.bpanel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: clamp(22px, 2.8vw, 30px);
}
.bpanel h3 { font-size: 16.5px; letter-spacing: -0.01em; }
.bpanel h3 .n { font-family: var(--font-mono); color: var(--accent); font-size: 12px; margin-right: 8px; }
.bp-lead { margin-top: 14px; font-size: 13.4px; color: var(--ink-dim); line-height: 1.62; }
.chain { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.chain-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  border: 1px solid var(--accent-line);
  background: var(--accent-dim);
  color: var(--accent-strong);
  border-radius: 2px;
  padding: 4px 9px;
}
.chain i { color: var(--ink-faint); font-style: normal; font-size: 11px; }
.blist { margin-top: 18px; display: grid; gap: 10px; }
.blist li { position: relative; padding-left: 20px; font-size: 13.2px; color: var(--ink-dim); line-height: 1.6; }
.blist li::before { content: "▸"; position: absolute; left: 0; top: 0; color: var(--accent); }
.layers { margin-top: 18px; display: grid; gap: 8px; }
.layer {
  display: flex;
  gap: 12px;
  align-items: baseline;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
  padding: 9px 12px;
}
.layer b { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.1em; flex: none; }
.layer span { font-size: 12.6px; color: var(--ink-dim); }
.cool { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.cool-chip {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-dim);
  border: 1px dashed var(--line-strong);
  border-radius: 2px;
  padding: 4px 8px;
  background: var(--bg);
}

/* ---------- chatops ---------- */
.chatops {
  margin-top: clamp(26px, 3.6vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
}
.co-head { padding: clamp(20px, 2.6vw, 28px); border-bottom: 1px solid var(--line); }
.co-head h3 { font-size: 17px; }
.co-head p { margin-top: 8px; font-size: 13.2px; color: var(--ink-dim); }
.co-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px clamp(20px, 2.6vw, 28px); }
.co-chip {
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 7px 12px;
  background: var(--bg);
  transition: all 0.2s var(--ease);
}
.co-chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.co-chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.co-out {
  display: flex;
  gap: 12px;
  padding: 18px clamp(20px, 2.6vw, 28px);
  border-top: 1px solid var(--line);
  background: var(--bg-3);
  min-height: 96px;
}
.co-prompt { color: var(--accent); font-size: 12.5px; }
.co-text { font-family: var(--font-mono); font-size: 12.2px; line-height: 1.75; color: var(--ink-dim); white-space: pre-wrap; }
.co-text b { color: var(--ink); font-weight: 600; }
.co-text .ok { color: var(--accent); }
.co-text .no { color: var(--danger); }

/* ============================================================
   4. PLATFORM — replika UI release control plane
   ============================================================ */
.rp {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
  position: relative;
}
.rp-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 14px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
}
.rp-dots { display: flex; gap: 6px; }
.rp-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.rp-dots i:first-child { background: var(--accent); }
.rp-url {
  flex: 1;
  font-size: 11px;
  color: var(--ink-dim);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 5px 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rp-url em { font-style: normal; color: var(--ink-faint); }
.rp-sse {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  transition: all 0.3s var(--ease);
}
.rp-sse i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint); transition: background 0.3s var(--ease); }
/* teks terpilih di atas tint: accent #C2410C diukur 4,32:1 di atas accent-dim + bg-3,
   jadi memakai --accent-strong (5,49:1) yang memang token untuk kasus ini */
.rp-sse.on { color: var(--accent-strong); border-color: var(--accent-line); background: var(--accent-dim); }
.rp-sse.on i { background: var(--accent); animation: pulse 1.6s var(--ease) infinite; }

.rp-body { display: grid; grid-template-columns: 176px minmax(0, 1fr); min-height: 520px; }
@media (max-width: 760px) { .rp-body { grid-template-columns: 1fr; } .rp-side { flex-direction: row; overflow-x: auto; } .rp-side-foot { display: none; } }

.rp-side {
  border-right: 1px solid var(--line);
  background: var(--bg);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.rp-brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.04em; color: var(--ink);
  padding: 4px 8px 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
  white-space: nowrap;
}
.rp-brand .rp-mark { color: var(--accent); font-size: 14px; }
.rp-brand span span { color: var(--accent); }
.rp-nav { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 760px) { .rp-nav { flex-direction: row; } }
.rp-ni {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--ink-dim);
  padding: 8px 10px;
  border-radius: 2px;
  border: 1px solid transparent;
  text-align: left;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
}
.rp-ni i { font-style: normal; color: var(--ink-faint); font-size: 11px; width: 13px; text-align: center; }
.rp-ni:hover { color: var(--ink); background: var(--bg-3); }
.rp-ni.on { color: var(--accent-strong); background: var(--accent-dim); border-color: var(--accent-line); }
.rp-ni.on i { color: var(--accent-strong); }
.rp-ni[hidden] { display: none; }
.rp-side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.rp-role { display: grid; gap: 5px; }
.rp-role label { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.rp-role select, .rp-proj {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 5px 7px;
  width: 100%;
}
.rp-user { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--ink-dim); }
.rp-user .av {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border: 1px solid var(--accent-line);
  color: var(--accent-strong);
  background: var(--accent-dim);
  border-radius: 2px;
  font-size: 9px;
}

.rp-main { display: flex; flex-direction: column; min-width: 0; background: var(--bg-2); }
.rp-top {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.rp-proj { width: auto; min-width: 130px; }
.rp-crumb { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.rp-clock { margin-left: auto; font-size: 11px; color: var(--ink-faint); letter-spacing: 0.06em; }
.rp-view { padding: 16px; overflow-x: auto; flex: 1; }

/* --- komponen dalam replika --- */
.rp-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.rp-h h4 { font-size: 14.5px; letter-spacing: -0.01em; }
.rp-h .sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.rp-tabs { display: flex; gap: 4px; margin-bottom: 14px; flex-wrap: wrap; }
.rp-tab {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 5px 11px;
  background: var(--bg);
  transition: all 0.2s var(--ease);
}
.rp-tab:hover { border-color: var(--accent-line); color: var(--accent); }
.rp-tab.on { background: var(--accent-dim); border-color: var(--accent-line); color: var(--accent-strong); }

.rp-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
@media (max-width: 620px) { .rp-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rp-metric { border: 1px solid var(--line); border-radius: 2px; background: var(--bg); padding: 12px 13px; }
.rp-metric .k { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.rp-metric .n { font-family: var(--font-mono); font-size: 24px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); margin-top: 7px; line-height: 1; }
.rp-metric .n.acc { color: var(--accent); }
.rp-metric .n.warn { color: var(--warn); }
.rp-metric .d { font-size: 10.5px; color: var(--ink-faint); margin-top: 6px; }

.rp-panel { border: 1px solid var(--line); border-radius: 2px; background: var(--bg); overflow: hidden; margin-bottom: 14px; }
.rp-panel > h5 {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-3);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.rp-panel > h5 .r { color: var(--accent); }

.rp-tbl { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.rp-tbl th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.rp-tbl td { padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--ink-dim); vertical-align: middle; }
.rp-tbl tr:last-child td { border-bottom: none; }
.rp-tbl tr:hover td { background: var(--bg-3); }
.rp-tbl td.svc { color: var(--ink); font-weight: 600; white-space: nowrap; }
.rp-tbl td.mono, .rp-tbl .mono { font-family: var(--font-mono); font-size: 10.5px; }

.rp-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 2px 6px;
  color: var(--ink-dim);
  white-space: nowrap;
}
.rp-badge.ok { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); }
.rp-badge.bad { color: var(--danger); border-color: var(--danger); background: var(--danger-dim); }
.rp-badge.warn { color: var(--warn); border-color: var(--warn); background: var(--warn-dim); }
.rp-badge.info { color: var(--info); border-color: var(--info); background: var(--info-dim); }
.rp-badge.type { color: var(--ink-faint); border-style: dashed; }

.rp-btn {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 6px 12px;
  color: var(--ink-dim);
  background: var(--bg);
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.rp-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.rp-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.rp-btn.primary:hover:not(:disabled) { filter: brightness(1.08); color: var(--accent-ink); }
.rp-btn.danger:hover:not(:disabled) { border-color: var(--danger); color: var(--danger); }
.rp-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.rp-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.rp-bars { display: flex; align-items: flex-end; gap: 5px; height: 84px; padding: 12px; }
.rp-bars b {
  flex: 1;
  background: var(--line-strong);
  border-radius: 1px 1px 0 0;
  position: relative;
  min-height: 3px;
  transition: height 0.6s var(--ease), background 0.3s var(--ease);
}
.rp-bars b.hot { background: var(--accent); }
.rp-bars b::after {
  content: attr(data-l);
  position: absolute;
  bottom: -17px; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--ink-faint);
  font-weight: 400;
}
.rp-bars-wrap { padding-bottom: 20px; }

.rp-note { font-size: 12px; color: var(--ink-faint); padding: 10px 12px; border-top: 1px solid var(--line); line-height: 1.55; }
.rp-empty { padding: 26px 14px; text-align: center; font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.rp-lock {
  border: 1px dashed var(--warn);
  background: var(--warn-dim);
  color: var(--warn);
  border-radius: 2px;
  padding: 10px 12px;
  font-size: 12px;
  margin-bottom: 14px;
}

/* kanban replika */
.rp-kanban { display: grid; grid-template-columns: repeat(5, minmax(110px, 1fr)); gap: 8px; }
.rp-kcol { border: 1px solid var(--line); border-radius: 2px; background: var(--bg); padding: 8px; }
.rp-kcol h6 {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between;
}
.rp-kcard {
  margin-top: 7px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent-line);
  border-radius: 2px;
  background: var(--bg-2);
  padding: 7px 8px;
  font-size: 10.5px;
  color: var(--ink-dim);
  line-height: 1.4;
}
.rp-kcard .id { font-family: var(--font-mono); font-size: 8.5px; color: var(--ink-faint); display: block; }
.rp-kcard .qg { margin-top: 5px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.06em; }
.rp-kcard .qg .y { color: var(--accent); }
.rp-kcard .qg .n { color: var(--danger); }

/* service picker */
.rp-svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 7px; padding: 12px; }
.rp-svc {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg-2);
  padding: 8px 10px;
  font-size: 11px;
  color: var(--ink-dim);
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.rp-svc:hover { border-color: var(--accent-line); }
.rp-svc.on { border-color: var(--accent); background: var(--accent-dim); color: var(--ink); }
.rp-svc input { accent-color: var(--accent); width: 13px; height: 13px; flex: none; }
.rp-svc .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-cat {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 6px;
}
.rp-sel { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 12px 12px; align-items: center; }
.rp-inp {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 6px 9px;
  min-width: 0;
  flex: 1;
}
.rp-inp::placeholder { color: var(--ink-faint); }

/* console */
.rp-console {
  background: var(--surface-dark);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 10.8px;
  line-height: 1.75;
  color: var(--pass-brand);
  height: 220px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.rp-console .c-dim { color: #a9a29a; }
.rp-console .c-ok { color: var(--pass-brand); }
.rp-console .c-warn { color: var(--warn-brand); }
.rp-console::-webkit-scrollbar { width: 5px; }
.rp-console::-webkit-scrollbar-thumb { background: #3a2f27; border-radius: 3px; }
.rp-stages { display: flex; gap: 5px; flex-wrap: wrap; padding: 12px 12px 0; }
.rp-stage {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 4px 8px;
  color: var(--ink-faint);
  transition: all 0.3s var(--ease);
}
.rp-stage.run { color: var(--warn); border-color: var(--warn); background: var(--warn-dim); }
.rp-stage.done { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); }
.rp-building { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--warn); }
.rp-building i { width: 6px; height: 6px; border-radius: 50%; background: var(--warn); animation: pulse 1s var(--ease) infinite; }

/* pre-uat */
.rp-pre {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.8;
  color: var(--ink-dim);
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 12px 14px;
  white-space: pre-wrap;
  max-height: 230px;
  overflow-y: auto;
}
.rp-chg { display: flex; gap: 9px; align-items: baseline; font-size: 11px; padding: 6px 12px; border-bottom: 1px solid var(--line); color: var(--ink-dim); }
.rp-chg:last-child { border-bottom: none; }
.rp-chg .s { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; width: 62px; flex: none; }
.rp-chg .s.add { color: var(--accent); }
.rp-chg .s.mod { color: var(--warn); }
.rp-chg .s.del { color: var(--danger); }

/* secrets */
.rp-secrets { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 12px; }
@media (max-width: 700px) { .rp-secrets { grid-template-columns: 1fr; } }
.rp-path {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
  padding: 7px 10px;
  margin-bottom: 5px;
  cursor: pointer;
  transition: all 0.18s var(--ease);
  display: flex; justify-content: space-between; gap: 8px;
  width: 100%;
  text-align: left;
}
.rp-path:hover { border-color: var(--accent-line); color: var(--accent); }
.rp-path.on { border-color: var(--accent); background: var(--accent-dim); color: var(--accent-strong); }
.rp-kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; padding: 12px; font-family: var(--font-mono); font-size: 10.5px; }
.rp-kv dt { color: var(--ink-faint); }
.rp-kv dd { color: var(--ink); letter-spacing: 0.08em; }

/* testing */
.rp-suite { border: 1px solid var(--line); border-radius: 2px; background: var(--bg); margin-bottom: 8px; overflow: hidden; }
.rp-suite-h { display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-size: 11.5px; color: var(--ink); }
.rp-suite-h .sp { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: var(--ink-faint); }
.rp-rec {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  padding: 0 12px 11px;
}
.rp-frame {
  aspect-ratio: 9 / 16;
  max-height: 92px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background:
    linear-gradient(180deg, var(--bg-3), var(--bg)),
    repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 7px);
  display: grid;
  place-items: center;
  color: var(--ink-faint);
  font-size: 13px;
  position: relative;
}
.rp-frame::after {
  content: attr(data-t);
  position: absolute;
  bottom: 3px; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 7.5px;
  color: var(--ink-faint);
}

/* audit */
.rp-audit { font-family: var(--font-mono); font-size: 10.5px; }

/* toast */
.rp-toasts {
  position: absolute;
  right: 14px; bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 5;
  pointer-events: none;
}
.rp-toast {
  border: 1px solid var(--accent-line);
  background: var(--bg-3);
  color: var(--ink);
  border-radius: 2px;
  padding: 9px 13px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  box-shadow: 0 14px 34px -20px rgba(0, 0, 0, 0.8);
  animation: toast-in 0.3s var(--ease);
  max-width: 280px;
}
.rp-toast.bad { border-color: var(--danger); color: var(--danger); }
.rp-toast.warn { border-color: var(--warn); color: var(--warn); }

.rp-caption {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
  line-height: 1.7;
}

/* ---------- tautan demo di kartu proyek ---------- */
.w-demo {
  margin-top: auto;
  padding-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: 3px;
  align-self: flex-start;
  transition: all 0.2s var(--ease);
}
.w-demo:hover { border-color: var(--accent); gap: 12px; }

/* ============================================================
   5. KEYFRAMES baru
   ============================================================ */
@keyframes hf-travel {
  0%   { left: 0%;   opacity: 0; }
  6%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@keyframes cv-run {
  0%   { left: 0%;   opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { left: calc(100% - 22px); opacity: 0; }
}
@keyframes card-pop {
  0%   { transform: scale(0.94); box-shadow: 0 0 0 0 var(--accent-line); }
  60%  { transform: scale(1.02); box-shadow: 0 0 0 5px var(--accent-dim); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; }
}
@keyframes act-in {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: none; }
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: none; }
}

/* sinkronisasi kartu stack dengan paket konveyor: 6s loop, 5 kolom */
.stack-card { animation: none; }
.conveyor.run .stack-card { animation: stack-hit 6s linear infinite; animation-delay: calc(0.6s + var(--i) * 1.2s); }
@keyframes stack-hit {
  0%, 3%      { background: var(--bg-3); }
  4%          { background: var(--bg-3); }
  14%         { background: var(--bg-2); }
  100%        { background: var(--bg-2); }
}
.conveyor.run .stack-card::before { animation: stack-bar 6s linear infinite; animation-delay: calc(0.6s + var(--i) * 1.2s); }
@keyframes stack-bar {
  0%   { transform: scaleY(0); }
  3%   { transform: scaleY(1); }
  14%  { transform: scaleY(1); }
  18%  { transform: scaleY(0); }
  100% { transform: scaleY(0); }
}

/* ============================================================
   6. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hf-packet, .cv-packet { animation: none; display: none; }
  .conveyor.run .stack-card, .conveyor.run .stack-card::before { animation: none; }
  .bd-card.moved, .act, .rp-toast { animation: none; }
  .rp-sse.on i, .bd-live i, .rp-building i { animation: none; }
}

/* ============================================================
   7. GLANCE-PASS: sublabel tool, chips, before/after, care notes
   ============================================================ */

/* --- hero node sublabels --- */
.hf-sub {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin-top: -4px;
  text-align: center;
  /* nowrap membuat sublabel yang lebih lebar dari kolomnya meluber ke
     tetangga; biarkan membungkus di dalam kolom sendiri */
  white-space: normal;
}
@media (max-width: 620px) { .hf-sub { text-align: left; } }

/* --- chip stack di hero ---
   Kelas .t-daily/.t-regular dari components.css yang memberi warna teks.
   /* Strip hero: satu warna tinta untuk mark dan nama. Tier hijau/biru sengaja tidak
   dipakai di sini - di hero yang dibaca adalah DAFTARNYA, rincian seberapa sering
   tiap alat dipakai ada di Toolbox. .sc tetap mengalahkan .t-* (showcase.css dimuat
   setelah components.css) supaya chip lama yang masih membawa kelas tier tidak bocor. */
.sc {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink);
  border: 0;
  background: transparent;
  padding: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
/* mark ikut warna teks chip: satu tinta, bukan warna brand */
.sc-ic { width: 14px; height: 14px; flex: none; fill: currentColor; }
/* --- artifact line --- */
.artifact-line {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.artifact-line b { color: var(--ink-dim); font-weight: 400; }

/* --- care notes (annotation style) --- */
.care-note {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-faint);
  border-left: 2px solid var(--accent-line);
  padding: 2px 0 2px 12px;
  margin-top: 14px;
}
.care-note::selection { background: var(--accent-dim); }
.co-line { margin-top: 26px; }
.co-line .mono { color: var(--ink-dim); }

/* --- board before/after --- */
.ba {
  display: grid;
  grid-template-columns: 0.8fr auto 1.5fr;
  gap: 18px;
  align-items: stretch;
  margin: 8px 0 34px;
}
.ba-side {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 16px;
  min-width: 0;
}
/* Sisi "before" dibuat surut lewat warna, bukan opacity: opacity di bawah 1
   ikut menurunkan kontras teksnya sampai di bawah AA (Lighthouse color-contrast).
   Teks di dalam blok ini memakai --ink-faint, yang sudah 6.4:1 (gelap) / 5.5:1 (terang). */
.ba-before { border-color: var(--line); }
.ba-tag {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}
.ba-tag em { font-style: normal; color: var(--ink-dim); }
.ba-after .ba-tag em { color: var(--accent); }
.ba-cols { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
/* tanpa min-width:0, satu kolom memaksa dirinya lebih lebar dari yang lain
   (terukur 40px vs 67px dalam lima kolom yang seharusnya rata) */
.ba-col { min-width: 0; }
/* setelah .ba-card boleh membesar, tinggi kotak dalam satu baris jadi tidak rata
   (34/43/34/43/43); biarkan kotak non-placeholder mengisi tinggi kolomnya */
.ba-col { display: flex; flex-direction: column; }
.ba-col > .ba-card:not(.sm) { flex: 1; }
.ba-col h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-bottom: 6px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ba-card {
  display: block;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg-3);
  /* min-height, bukan height: dengan height tetap, teks yang membungkus
     keluar dari garis kotak (terukur 4-20px di 1440, sampai 36px di 390) */
  min-height: 34px;
  margin-bottom: 6px;
  padding: 5px 7px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-faint);
}
.ba-card.sm { min-height: 22px; }
.ba-before .ba-card { border-style: dashed; }
.ba-card.on { border-left: 2px solid var(--accent); color: var(--ink); }
.ba-card.lit { border-color: var(--line-strong); color: var(--ink-dim); background: var(--bg-2); }
.ba-badge {
  position: absolute;
  top: 5px; right: 5px;
  font-style: normal;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 2px;
  padding: 1px 4px;
}
.ba-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 5px;
  vertical-align: middle;
}
.ba-chips {
  font-style: normal;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-right: 5px;
  /* lima tanda centang ini satu "kata" yang tidak bisa putus; di kolom 57px
     ia mendorong keluar kotak 2px. Boleh putus antar-tanda. */
  word-break: break-all;
}
.ba-note { font-size: 12px; color: var(--ink-faint); margin-top: 12px; line-height: 1.5; }
.ba-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 120px;
}
.ba-arrow-ic { font-size: 30px; color: var(--accent); line-height: 1; }
.ba-arrow-txt {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
  text-align: center;
  line-height: 1.5;
  max-width: 150px;
}
@media (max-width: 900px) {
  .ba { grid-template-columns: 1fr; }
  .ba-arrow { flex-direction: row; min-width: 0; }
  .ba-arrow-ic { transform: rotate(90deg); }
  .ba-arrow-txt { max-width: none; }
}

/* --- gate di dalam architecture --- */
.arch-gate { margin-top: 40px; }
.ag-title {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}
.arch-gate .gate { min-width: 0; }
.arch-gate .diagram-shell { overflow: visible; }
@media (max-width: 700px) { .arch-gate .gate { min-width: 0; } }

/* ============================================================
   8. TAHAP 6: proof cards, subnav, decisions, threat, scan
   ============================================================ */

/* --- proof cards (About) --- */
/* satu strip dengan garis pemisah, bukan empat kotak */
.pf-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 10px 0 34px;
}
.pf-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: none;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 18px 16px;
}
.pf-card:first-child { border-left: none; }
.pf-card b {
  font-family: var(--font-mono);
  font-size: 30px;
  color: var(--accent);
  line-height: 1;
}
.pf-card span { font-size: 13px; color: var(--ink-dim); line-height: 1.45; flex: 1; }
.pf-card em { font-style: normal; font-size: 12px; letter-spacing: 0.08em; color: var(--ink-faint); }
.pf-card:hover em { color: var(--accent); }
@media (max-width: 900px) {
  .pf-strip { grid-template-columns: repeat(2, 1fr); }
  .pf-card:nth-child(odd) { border-left: none; }
}
@media (max-width: 520px) {
  .pf-strip { grid-template-columns: 1fr; }
  .pf-card { border-left: none; border-top: 1px solid var(--line); }
  .pf-card:first-child { border-top: none; }
  /* kolom 57px: header tidak boleh dipotong jadi "IN REV…" (12px mono = 65px,
     10px = 54px masih satu baris, sama seperti label papan walkthrough 9.5px),
     dan badge Intake yang di-position absolute menimpa teks "#471" */
  .ba-col h3 { font-size: 10px; }
  .ba-card .ba-badge { position: static; display: inline-block; margin-left: 4px; }
}

/* --- before-line --- */
.before-line {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-faint);
}
.before-line > span:first-child {
  color: var(--danger);
  text-decoration: line-through;
  text-decoration-color: var(--line-strong);
  margin-right: 8px;
}

/* --- work subnav --- */
.work-subnav {
  position: sticky;
  top: 64px;
  z-index: 40;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px var(--pad);
  margin: 0 auto 8px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.wsn-label { font-size: 12px; letter-spacing: 0.18em; color: var(--ink-faint); margin-right: 6px; }
.wsn {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  white-space: nowrap;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.wsn:hover { color: var(--ink); border-color: var(--line-strong); }
.wsn.on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

/* --- decisions cards --- */
.dec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 860px) { .dec-grid { grid-template-columns: 1fr; } }
.dec-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 20px 20px 14px;
}
.dec-card h3 { font-size: 16.5px; letter-spacing: -0.01em; margin-bottom: 14px; }
/* kolom label 86px, padahal "ALTERNATIVE" pada 12px mono + tracking 0.14em
   lebarnya 97px: label menumpang 11px ke gap 14px, sisa 3px sebelum isinya */
.dec-card dl { display: grid; grid-template-columns: 98px minmax(0, 1fr); gap: 6px 14px; }
.dec-card dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 3px;
}
.dec-card dd { font-size: 13.5px; line-height: 1.55; color: var(--ink-dim); }
/* kartu build-vs-buy: empat baris penuh lebarnya jadi paragraf 1.100px. Dibelah dua
   kolom (decision|alternative, why|cost) sehingga tetap satu baris per pasangan.
   Urutan DOM dt tidak berubah, jadi pewarnaan nth-child di bawah tetap berlaku. */
.dec-wide { grid-column: 1 / -1; }
.dec-wide dl { grid-template-columns: 98px minmax(0, 1fr) 98px minmax(0, 1fr); }
@media (max-width: 860px) {
  .dec-wide dl { grid-template-columns: 98px minmax(0, 1fr); }
}
.dec-card dt:nth-child(4n+1) { color: var(--accent); }
.dec-card dt:nth-child(4n+3) { color: var(--warn); }
/* kartu penutup runtime: satu paragraf, tanpa baris decision/alternative/why/cost */
.rt-body { font-size: 13.5px; line-height: 1.6; color: var(--ink-dim); margin: 0; }

/* --- threat model --- */
.tm-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.tm-tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.tm-tbl th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.tm-tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--ink-dim); vertical-align: top; line-height: 1.5; }
.tm-tbl tr:last-child td { border-bottom: none; }
.tm-tbl tr:hover td { background: var(--bg-3); }
.tm-tbl td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.tm-tbl td:nth-child(2) { color: var(--warn); }
.tm-tbl td:last-child { color: var(--ink-dim); }

/* --- scan summary card --- */
.scan-card {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
}
.sc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-dim);
}
.sc-tag {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--info);
  border: 1px dashed var(--info);
  border-radius: 2px;
  padding: 2px 6px;
  white-space: nowrap;
}
.sc-rows { padding: 10px 14px 12px; }
.sc-rows > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 12px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
}
.sc-rows > div:last-child { border-bottom: none; }
.sc-rows > div > span { width: 110px; flex-shrink: 0; color: var(--ink-faint); }
.sc-rows > div > b { color: var(--ink); font-weight: 400; }
.sc-rows > div > b.ok { color: var(--accent); }
.sc-rows > div > i { font-style: normal; color: var(--ink-faint); font-size: 10.5px; }
@media (max-width: 620px) { .sc-rows > div { flex-wrap: wrap; gap: 6px; } .sc-rows > div > span { width: auto; } }

/* --- experience signals --- */
.exp-signals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(40px, 6vw, 64px); padding-top: clamp(24px, 4vw, 36px); border-top: 1px solid var(--line); }
@media (max-width: 860px) { .exp-signals { grid-template-columns: 1fr; } }
.sig {
  display: flex;
  gap: 12px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent-line);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 16px;
}
.sig-ic { color: var(--accent); font-size: 14px; line-height: 1.4; }
.sig p { font-size: 13.5px; line-height: 1.6; color: var(--ink-dim); }

/* ============================================================
   9. LIFECYCLE + EMAIL PREVIEW + TWO ECOSYSTEMS
   ============================================================ */

.lc { margin-top: 54px; border-top: 1px solid var(--line); padding-top: 34px; }
.lc-head { margin-bottom: 22px; }
.lc-head h3 { font-size: 24px; letter-spacing: -0.02em; }
.lc-sub { font-size: 12px; color: var(--ink-faint); margin-top: 6px; }

.lc-rail {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding-top: 24px;
  flex-wrap: wrap;
}
.lc-line {
  position: absolute;
  left: 0; right: 0; top: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 4%, var(--line-strong) 96%, transparent);
}
.lc-packet {
  position: absolute;
  top: 27px; left: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-line);
  animation: lc-run 14s linear infinite;
}
@keyframes lc-run { 0% { left: 1%; } 100% { left: 98%; } }
.lc-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0 6px;
  flex: 1 1 90px;
  min-width: 88px;
  font: inherit;
}
.lc-node > i {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.lc-node > span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-dim);
  text-align: center;
  padding-top: 2px;
  transition: color 0.3s var(--ease);
}
.lc-node.lit > i, .lc-node.on > i { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 8px var(--accent-line); }
.lc-node.lit > span, .lc-node.on > span { color: var(--ink); }
.lc-node.on > span { color: var(--accent); }
.lc-gate > i { border-radius: 2px; transform: rotate(45deg); }
.lc-prod > i { width: 13px; height: 13px; }

/* fan-out node: tiga check paralel */
.lc-fan { flex: 1 1 120px; }
.lc-fan em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent-line);
  border-radius: 2px;
  padding: 2px 7px;
  background: var(--bg-2);
  white-space: nowrap;
}
.lc-fan.lit em, .lc-fan.on em { color: var(--ink-dim); border-left-color: var(--accent); }

.lc-detail {
  min-height: 20px;
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-dim);
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}

/* --- schedule rail --- */
.lc-sched { margin-top: 30px; padding-top: 8px; flex-wrap: wrap; gap: 8px; }
.lc-sched .lc-line, .lc-sched .lc-packet { display: none; }
.lc-chip {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 10px 14px;
  cursor: pointer;
  flex: 1 1 150px;
  /* chip sekarang <button> sungguhan supaya bisa di-Tab dan di-Enter:
       buang gaya bawaan tombol, pertahankan tampilan yang lama */
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  min-width: 0;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.lc-chip:hover, .lc-chip.on { border-color: var(--accent-line); border-style: solid; }
.lc-chip.on { background: var(--accent-dim); }
/* sublabel chip terpilih: --ink-faint di atas accent-dim + bg-3 terukur 4,34:1 (axe,
   dan Lighthouse tidak menemukannya karena state ini butuh klik). Naikkan ke
   --ink-dim = 6,30:1; penanda terpilih tetap garis tepi + latar, bukan warna teks. */
.lc-chip.on span { color: var(--ink-dim); }
.lc-chip b { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--ink); }
.lc-chip span { font-size: 12px; color: var(--ink-faint); }
.lc-sep { align-self: center; color: var(--ink-faint); font-size: 13px; }
.lc-mail-chip b { color: var(--accent); }

/* --- enam aturan baku (std-band) ---
   Sinyal senior yang sebelumnya hanya muncul setelah klik di rel lifecycle atau
   kartu board. Bidang cekung yang sama dipakai .mailshow supaya section ini punya
   satu bahasa visual; angka aksen adalah ornamen, teks tetap --ink-dim (7,05:1 di atas --bg-3). */
.std-band {
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-3);
  padding: clamp(18px, 2.4vw, 26px);
}
.std-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 14px; }
.std-title { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.std-note { font-size: 12px; color: var(--ink-faint); }
.std-list {
  list-style: none;
  counter-reset: std;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
}
.std-list li {
  counter-increment: std;
  position: relative;
  padding-left: 28px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-dim);
}
.std-list li::before {
  content: counter(std, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}
@media (max-width: 760px) {
  .std-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

/* --- email preview --- */
.lc-mailgrid { margin-top: 22px; }
.mail-card {
  max-width: 680px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--bg-2);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.mail-top {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-3);
}
.mail-av {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.mail-from { font-size: 11px; color: var(--ink-faint); }
.mail-subj { font-size: 12.5px; color: var(--ink); margin-top: 2px; }
.mail-body { padding: 18px 18px 14px; background: var(--bg-2); }
.mail-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 4px solid var(--accent-bright);
  padding-top: 10px;
  color: var(--ink);
}
.mail-head > span:first-child { font-size: 12px; letter-spacing: 0.12em; font-weight: 700; }
.mail-wm { font-size: 10px; letter-spacing: 0.2em; color: var(--ink-faint); border-bottom: 2px solid var(--accent-bright); }
.mail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 10px;
  color: var(--ink-faint);
  padding: 8px 0 12px;
}
.mail-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 12px; }
.ms {
  border: 1px solid var(--line);
  border-top-width: 3px;
  border-radius: 3px;
  background: var(--bg-2);
  padding: 8px 6px;
  text-align: center;
}
.ms b { display: block; font-size: 17px; color: var(--ink); }
.ms span { font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); font-family: var(--font-mono); }
.ms.ok { border-top-color: var(--pass); } .ms.warn { border-top-color: var(--warn); }
.ms.bad { border-top-color: var(--danger); } .ms.dim { border-top-color: var(--line-strong); } .ms.gray { border-top-color: var(--line-strong); }
.mail-tbl { width: 100%; border-collapse: collapse; font-size: 10.5px; color: var(--ink); }
.mail-tbl .th td {
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 7px 9px;
  border: 0;
}
.mail-tbl td { padding: 7px 9px; border-bottom: 1px solid var(--line); }
.mail-tbl tr:nth-child(even) td { background: var(--bg-3); }
.mail-tbl .ok { color: var(--pass); font-weight: 600; }
.mail-tbl .warn { color: var(--warn); font-weight: 600; }
.mail-tbl .bad { color: var(--danger); font-weight: 600; }
.mail-tbl .dim { color: var(--ink-faint); }
.mail-tbl .lk { color: var(--accent); text-decoration: underline; cursor: default; }
.mail-note { margin-top: 10px; font-size: 9.5px; color: var(--ink-faint); }
.lc-mailcap { margin-top: 14px; }
@media (max-width: 700px) {
  .mail-stats { grid-template-columns: repeat(3, 1fr); }
  .lc-node { flex: 0 0 calc(33% - 12px); margin-bottom: 10px; }
  .lc-line, .lc-packet { display: none; }
}

/* --- two ecosystems --- */
.eco {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
  margin-top: 54px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}
.eco-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 20px;
}
.eco-old { background: var(--bg-3); }
.eco-old .eco-tag { color: var(--ink-faint); }
.eco-new { border-color: var(--accent-line); }
.eco-new .eco-tag { color: var(--accent-strong); }
.eco-tag {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.eco-card ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.eco-card li {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-dim);
  padding-left: 16px;
  position: relative;
}
.eco-card li::before { content: "—"; position: absolute; left: 0; color: var(--ink-faint); }
.eco-new li::before { color: var(--accent); }
.eco-arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 120px; }
.ea-ic { font-size: 26px; color: var(--accent); }
.ea-txt { font-size: 12px; letter-spacing: 0.06em; color: var(--ink-dim); text-align: center; max-width: 130px; line-height: 1.6; }
@media (max-width: 900px) {
  .eco { grid-template-columns: 1fr; }
  .eco-arrow { flex-direction: row; min-width: 0; }
  .ea-ic { transform: rotate(90deg); }
  .ea-txt { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lc-packet { display: none; }
}

/* ============================================================
   10. MAILSHOW: header frame + tabs + SAST/Sonar variants
   ============================================================ */
.mailshow {
  max-width: 720px;
  /* wadahnya 1044px di desktop: tanpa ini panel duduk di kiri dengan sisa 324px
     di kanan (terukur gapLeft 0 / gapRight 324) */
  margin-inline: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
}
.mailshow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-3);
}
.ms-title { font-size: 12px; letter-spacing: 0.14em; color: var(--accent); display: block; }
.ms-sub { font-size: 12px; color: var(--ink-faint); }
.ms-tabs { display: flex; gap: 6px; }
.ms-tab {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.ms-tab:hover { color: var(--ink); border-color: var(--line-strong); }
.ms-tab.on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.mailshow .mail-card {
  max-width: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.mailshow .mail-top { border-bottom: 1px solid var(--line); }

/* --- amber disclaimer callout (faithful to the real report) --- */
.mail-callout {
  border: 1px solid rgba(217, 151, 6, 0.45);
  border-left: 4px solid var(--warn-brand);
  background: #fdf3e3;
  border-radius: 4px;
  padding: 12px 14px;
  margin: 12px 0 14px;
}
.mail-callout b { color: var(--warn); font-size: 12px; }
.mail-callout p { color: var(--ink); font-size: 12px; line-height: 1.6; margin-top: 5px; }
.mail-callout p b { color: var(--warn); font-size: 12px; }

/* --- ms2 stats (SAST/Sonar color system) --- */
.ms2 { grid-template-columns: repeat(5, 1fr); }
.ms.t { border-top-color: var(--ink); }
.ms.c { border-top-color: var(--danger); }
.ms.h { border-top-color: var(--warn-brand); }
.ms.m { border-top-color: var(--warn); }   /* ungu Terraform dicoret -> amber */
.ms.l { border-top-color: var(--info-brand); }   /* Docker blue */
.ms.ok2 { border-top-color: var(--pass); }
.ms.p { border-top-color: var(--pass); }
.ms.n { border-top-color: var(--line-strong); }

.mail-sect {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  margin: 12px 0 6px;
}
.pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  border-radius: 2px;
  padding: 2px 8px;
  border-left: 3px solid;
}
/* sama: pass #2E7D32 di atas pass-dim + bg-3 = 4,33:1; --pass-strong = 5,58:1.
   Garis tepi tetap --pass supaya warna status tidak berubah makna */
.pill.ok { color: var(--pass-strong); border-color: var(--pass); background: var(--pass-dim); }
.pill.bad { color: var(--danger); border-color: var(--danger); background: var(--danger-dim); }
.pill.dim { color: var(--ink-faint); border-color: var(--line-strong); background: var(--bg-3); }
.mail-tbl td.dim { color: var(--ink-faint); }
.mail-tbl td b { color: var(--ink); }
.mail-branches { color: var(--pass); }
.mail-att {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.mail-att span {
  font-size: 10px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-3);
  padding: 6px 10px;
}
@media (max-width: 700px) { .ms2 { grid-template-columns: repeat(3, 1fr); } }

/* anchor jump tidak tertutup sub-nav sticky */
#board, #platform, #architecture, #runtime, #decisions, #threat, #about, #work, #toolbox, #experience, #contact {
  scroll-margin-top: 118px;
}


/* work grid: 3 kartu = 3 kolom di layar lebar */
@media (min-width: 1080px) { .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* exp education line */
.exp-edu { font-size: 12px; color: var(--ink-faint); margin: 18px 0 4px; letter-spacing: 0.04em; }
.exp-edu span:first-child { color: var(--ink-dim); }

/* sr-only */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}


/* ============================================================
   11. GATEWAY FLOW + MOBILE 390px HARDENING
   ============================================================ */
.dgfp { fill: var(--accent); filter: drop-shadow(0 0 5px var(--accent-line)); }
.n-gateway rect { animation: gw-pulse 3.2s var(--ease) infinite; }
@keyframes gw-pulse { 0%, 100% { stroke-opacity: 1; } 50% { stroke-opacity: 0.4; } }

@media (max-width: 620px) {
  .hero-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hf-sub, .hf-node > span { white-space: normal; }
  .lc-node { min-width: 0; }
  .lc-node > span { font-size: 12px; }
}

/* papan walkthrough: geser horizontal, bukan saling menimpa */
@media (max-width: 700px) {
  .bd-board { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; }
  .bd-col { flex: 0 0 130px; }
  .bd-colbody { min-height: 200px; }
  #bd-card { max-width: none; }
  .bd-card { width: 100%; }
}

/* gate: tumpuk vertikal di layar sempit */
@media (max-width: 700px) {
  .arch-gate .gate { grid-template-columns: 1fr; }
  .arch-gate .gate-result { min-width: 0; width: 100%; }
  .mailshow-head { flex-direction: column; align-items: flex-start; }
  .lc-chip { flex: 1 1 100%; }
  .lc-sep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dg-flow { display: none; }
  .n-gateway rect { animation: none; }
}

/* ---------- CSP-safe utility classes (menggantikan style="..." di JS & HTML) ---------- */
.profile-links { display: grid; gap: 6px; }
.rp-note--plain { border-top: none; }
.rp-sel--pad { padding-top: 12px; }
.rp-w190 { flex: 0 0 190px; }
.rp-or { font-size: 10px; color: var(--ink-faint); }
.rp-pad { padding: 12px; }
.rp-meta-r { margin-left: auto; color: var(--ink-faint); }
.rp-note--ok { border: 1px solid var(--accent-line); background: var(--accent-dim); color: var(--accent); border-radius: 2px; margin-bottom: 14px; }
.rp-warn-inline { font-size: 10px; color: var(--warn); align-self: center; }
.rp-mb14 { margin-bottom: 14px; }
.rp-mt10 { margin-top: 10px; }
.rp-locked { color: var(--ink-faint); }
.rp-dimline { font-size: 10.5px; color: var(--ink-dim); }
.rp-mla { margin-left: auto; }
.qg-ok { color: var(--pass); }
.qg-warn { color: var(--warn); }
.sev-crit { color: var(--danger); }
.sev-warn { color: var(--warn); }
.sev-faint { color: var(--ink-faint); }


/* ============================================================
   12. TOOLBOX TIER FILTER
   ============================================================ */
.tier-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 clamp(24px, 3vw, 36px);
}
.tf-label { font-size: 10.5px; letter-spacing: 0.16em; color: var(--ink-faint); margin-right: 4px; }
.tf-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.tf-btn:hover { color: var(--ink); border-color: var(--accent-line); }
.tf-btn[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

/* ============================================================
   12. CHROME SITUS MEMAKAI SANS (Batch D #9)
   Mono dipertahankan untuk kode, perintah, versi dan nilai teknis
   (rail hero, chip tool, nomor, artefak, periode, ID proyek) serta
   untuk seluruh isi replika (.rp-*), storyboard board (.bd-*, .ba-*,
   .bt-*), diagram (.lc-*, .eco-*, .ag-*) dan mockup email (.mail-*,
   .ms-*). Blok ini berada di akhir berkas supaya menang atas kelas
   utilitas .mono dari base.css tanpa mengubah kelas tersebut.
   ============================================================ */
.kicker,
.brand, .nav a, .tool-btn,
.btn,
.hero-role,
.wsn-label, .wsn,
.tf-label, .tf-btn,
.cm-row .cm-k, .copy-btn,
.footer-in,
.w-demo,
.pf-card em,
.dec-card dt,
.skill-group h3,
.tier,
.exp-edu { font-family: var(--font-sans); }
