/* ============================================================
   KAIRO KONSOL — STRUKTUR (tata letak; warna ada di theme.css)
   ============================================================ */
@font-face { font-family:'Space Grotesk';
  src:url('../aset/font/space-grotesk.woff2') format('woff2');
  font-weight:300 700; font-display:swap; }
@font-face { font-family:'JetBrains Mono';
  src:url('../aset/font/jetbrains-mono.woff2') format('woff2');
  font-weight:100 800; font-display:swap; }

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: var(--font); font-size: 13.5px; line-height: 1.65; }

/* latar markas */
.latar-ruang { position: fixed; inset: -4%; z-index: 0; }
.latar-tirai { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.pindai { position: fixed; inset: 0; pointer-events: none; z-index: 40; }

.konsol { position: relative; z-index: 2; display: flex; flex-direction: column;
  height: 100%; max-width: 1280px; margin: 0 auto; }

/* ---------- bilah atas ---------- */
.bilah { display: flex; justify-content: space-between; align-items: center;
  flex-shrink: 0; padding: 13px 22px; }
.merek { display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-judul); font-weight: 700; font-size: 15px;
  letter-spacing: .24em; text-decoration: none; }
.merek .ikon svg { width: 18px; height: 18px; display: block; }
.bilah-status { display: flex; align-items: center; gap: 9px;
  font-size: 10.5px; letter-spacing: .18em; }
.titik-hidup { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }

/* ---------- badan: log + rel ---------- */
.badan { flex: 1; display: grid; grid-template-columns: 1fr 268px;
  gap: 18px; min-height: 0; padding: 0 22px; }
.layar { overflow-y: auto; padding: 6px 4px 10px; overflow-wrap: anywhere;
  scrollbar-width: thin; }
.baris { white-space: pre-wrap; min-height: 1.65em; }
.besar-judul { font-family: var(--font-judul); font-weight: 700;
  font-size: 26px; letter-spacing: .04em; line-height: 1.2; }
.kecil-kaki { font-size: 11px; margin: 14px 0 6px; }
.echo { margin-top: 16px; font-weight: 500; }
.sigil { user-select: none; }

/* pemisah bab */
.pemisah { display: flex; align-items: center; gap: 12px;
  margin: 22px 0 10px; font-size: 10px; letter-spacing: .26em; }
.pemisah::after { content: ''; flex: 1; height: 1px; }

/* baris proses */
.proses { display: flex; align-items: center; gap: 10px; padding: 3px 0; }
.proses-label { display: inline-flex; align-items: center; gap: 8px; }
.ikon { display: inline-flex; }
.ikon svg { width: 15px; height: 15px; display: block; }
.proses-titik { flex: 1; border-bottom: 1px dotted; transform: translateY(-3px); }
.proses-status { font-size: 11px; letter-spacing: .14em; white-space: nowrap;
  text-transform: uppercase; }

/* ---------- kotak ---------- */
.kotak { position: relative; margin: 12px 0; padding: 14px 16px; border-radius: 6px; }
.kotak::before, .kotak::after { content: ''; position: absolute;
  width: 10px; height: 10px; pointer-events: none; }
.kotak::before { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.kotak::after { bottom: -1px; right: -1px; border-bottom: 2px solid; border-right: 2px solid; }
.kotak-judul { display: flex; align-items: center; gap: 10px;
  font-size: 11.5px; letter-spacing: .18em; margin-bottom: 10px;
  font-family: var(--font-judul); font-weight: 600; }
.kotak-judul-teks { flex: 1; }
.kotak-tanda { font-size: 10px; letter-spacing: .18em; padding: 4px 9px;
  border-radius: 3px; white-space: nowrap; }
.ikon-judul svg { width: 16px; height: 16px; }
.kotak-avatar { width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0; }
.kotak-baris { white-space: pre-wrap; padding: 1px 0; }
.kotak-data { display: flex; justify-content: space-between; gap: 16px;
  align-items: baseline; padding: 3.5px 0; }
.kotak-data .nilai { text-align: right; white-space: nowrap; font-weight: 500; }
.kotak-data.besar { font-size: 16px; padding-top: 8px; }
.catatan { margin-top: 2px; font-size: 12px; }

/* gauge */
.gauge { display: flex; align-items: center; gap: 20px; padding: 8px 0 4px; }
.gauge svg { width: 104px; height: 104px; transform: rotate(-90deg); flex-shrink: 0; }
.gauge circle { fill: none; stroke-width: 8; }
.gauge-isi { stroke-linecap: round;
  transition: stroke-dashoffset .9s cubic-bezier(.22,.9,.28,1); }
.gauge-tengah b { display: block; font-family: var(--font-judul);
  font-weight: 700; font-size: 36px; line-height: 1.1; }
.gauge-tengah span { font-size: 10.5px; letter-spacing: .22em; }

/* ---------- rel operator ---------- */
.rel-op { overflow-y: auto; padding: 6px 0 10px; scrollbar-width: thin;
  display: flex; flex-direction: column; gap: 10px; }
.rel-judul { font-size: 10px; letter-spacing: .26em; padding: 0 2px 2px; }
.rel-kartu { position: relative; padding: 11px 12px 10px; border-radius: 6px;
  transition: border-color .25s, box-shadow .25s, transform .25s; }
.rel-atas { display: flex; align-items: center; gap: 10px; }
.rel-kartu img { width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0; transition: box-shadow .25s; }
.rel-nama b { display: block; font-family: var(--font-judul);
  font-size: 12.5px; letter-spacing: .2em; }
.rel-nama span { font-size: 10.5px; letter-spacing: .12em; }
.rel-bar { height: 2px; margin: 9px 0 7px; border-radius: 2px; overflow: hidden; }
.rel-bar i { display: block; height: 100%; width: 0; border-radius: 2px;
  transition: width .5s ease; }
.rel-kaki { display: flex; justify-content: space-between; gap: 8px;
  font-size: 9.5px; letter-spacing: .12em; }

/* ---------- prompt ---------- */
.prompt { display: flex; align-items: center; gap: 12px; flex-shrink: 0;
  margin: 12px 22px 18px; padding: 14px 16px; border-radius: 8px; }
.prompt input { flex: 1; font: inherit; padding: 0; border: none;
  outline: none; background: transparent; }
.prompt input:disabled { opacity: .45; }
.prompt-kirim { display: grid; place-items: center; width: 30px; height: 30px;
  border: none; border-radius: 5px; cursor: pointer; padding: 0; }
.prompt-kirim svg { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .badan { grid-template-columns: 1fr; gap: 12px; }
  .rel-op { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .rel-judul { display: none; }
  .rel-kartu { min-width: 190px; flex-shrink: 0; }
}
@media (max-width: 560px) {
  body { font-size: 12.5px; }
  .kotak-data { flex-direction: column; gap: 0; }
  .kotak-data .nilai { text-align: left; }
  .badan, .prompt { padding-left: 14px; padding-right: 14px; }
  .prompt { margin-left: 14px; margin-right: 14px; }
}

/* baris alamat kontrak + tombol salin */
.baris-salin .salin-bungkus { display: inline-flex; align-items: center; gap: 9px; }
.mono-ca { font-size: 11.5px; letter-spacing: .01em; word-break: break-all;
  text-align: right; white-space: normal; }
.tombol-salin { font: inherit; font-size: 9.5px; letter-spacing: .16em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 3px;
  cursor: pointer; flex-shrink: 0; }
