:root {
  --navy: #0b1220;
  --navy-2: #121a2c;
  --ink: #141820;
  --muted: #667085;
  --line: #e6e1d8;
  --paper: #f4f1ea;
  --panel: #fffcf7;
  --soft: #efe8dc;
  --gold: #b0893e;
  --gold-2: #c9a45a;
  --teal: #0f5e52;
  --mint: #dceee8;
  --danger: #9b2c2c;
  --danger-soft: #fde8e6;
  --side-text: #e8e2d6;
  --shadow: 0 20px 50px rgba(11, 18, 32, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
h1, h2 { font-family: Georgia, "Palatino Linotype", serif; font-weight: 600; letter-spacing: -0.02em; }
button, input, textarea { font: inherit; }
code, .mono, .snippet { font-family: Consolas, "Courier New", monospace; }

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background:
    radial-gradient(circle at 12% 18%, rgba(176, 137, 62, 0.16), transparent 32%),
    linear-gradient(180deg, #e9e4d8 0%, var(--paper) 55%);
}

.auth-card {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.auth-aside {
  padding: 44px 40px;
  background:
    linear-gradient(180deg, rgba(176, 137, 62, 0.12), transparent 28%),
    var(--navy);
  color: var(--side-text);
}
.brand-row { display: flex; align-items: center; gap: 12px; }
.brand-name { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: #cfc6b4; }
.mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #1a1408;
  font-weight: 800;
}
.auth-aside h1 { margin: 36px 0 14px; font-size: 38px; line-height: 1.12; color: #f7f1e6; }
.auth-aside p { margin: 0; color: #c3bbae; line-height: 1.7; }
.auth-points { margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.auth-points li {
  padding: 11px 13px;
  border: 1px solid #243044;
  border-radius: 12px;
  color: #d7d0c4;
  font-size: 13px;
}

.auth-main { padding: 48px 40px; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.auth-main h2 { margin: 0 0 8px; font-size: 30px; }
.lede { margin: 0 0 24px; color: var(--muted); line-height: 1.65; }
.auth-foot { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

label { display: block; margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.field { margin-bottom: 16px; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  color: var(--ink);
}
select { appearance: none; background-image: none; }
input:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(176, 137, 62, 0.16); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 88px; }
.toggle-pass {
  position: absolute;
  right: 8px;
  top: 7px;
  border: 0;
  background: var(--soft);
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--navy);
  color: #f4efe4;
  font-weight: 700;
  cursor: pointer;
}
.btn:hover { background: #162038; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-wide { width: 100%; }
.cf-field { min-height: 68px; }
#cf-turnstile { min-height: 65px; }
#cf-turnstile iframe { display: block; }
.btn-ghost {
  width: 100%;
  background: transparent;
  color: var(--side-text);
  border: 1px solid #2a354c;
}
.btn-ghost:hover { background: #162038; }

.alert {
  display: none;
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 14px;
}
.alert.show { display: block; }

.wa-box {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.wa-box img {
  width: 240px;
  height: 240px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
}
.wa-scan {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.wa-open {
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.wa-open:hover { text-decoration: underline; }
.btn-secondary {
  margin-top: 8px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-secondary:hover { background: var(--soft); }

.sec-banner {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f6e4d8;
  color: #8a3d12;
  font-size: 14px;
  font-weight: 700;
}
.sec-banner.ok {
  background: var(--mint);
  color: var(--teal);
}

.app-body { background: var(--paper); }
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 268px 1fr;
}
.sidebar {
  background: var(--navy);
  color: var(--side-text);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 8px 20px;
  margin-bottom: 8px;
  border-bottom: 1px solid #243044;
}
.brand strong { display: block; font-size: 16px; }
.brand span { color: #9aa3b5; font-size: 12px; }
.nav { display: grid; gap: 8px; }
.nav-btn {
  width: 100%;
  display: flex;
  gap: 12px;
  text-align: left;
  background: transparent;
  color: var(--side-text);
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
}
.nav-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #162038;
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 800;
  flex: 0 0 auto;
}
.nav-btn small { display: block; color: #8b95a8; margin-top: 3px; font-size: 12px; }
.nav-btn.active, .nav-btn:hover {
  background: var(--navy-2);
  border-color: #2a354c;
}
.sidebar-foot { margin-top: auto; padding-top: 18px; display: grid; gap: 10px; }
.user-chip {
  padding: 10px 12px;
  border-radius: 12px;
  background: #162038;
  color: #cfd6e4;
  font-size: 12px;
}

.workspace { padding: 36px 40px 48px; }
.topbar { margin-bottom: 24px; max-width: 820px; }
.topbar h1 { margin: 0 0 8px; font-size: 40px; }
.topbar p { margin: 0; color: var(--muted); line-height: 1.65; }

.grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
  align-items: start;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.card-pad { padding: 22px; }
.card h2 { margin: 0; font-size: 22px; }
.hint { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.hint.tight { margin: 0; }

.endpoint-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.endpoint-card, .share-note, .result-card, .cp-report {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.endpoint-card { padding: 20px; }
.endpoint-card .kicker, .kicker {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.endpoint-url {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--soft);
  border-radius: 12px;
  padding: 10px;
  margin: 12px 0;
}
.endpoint-url code { flex: 1; overflow-wrap: anywhere; font-size: 12px; }
.share-note {
  grid-column: 1 / -1;
  padding: 16px 18px;
  background: var(--mint);
  color: var(--teal);
  line-height: 1.6;
}

.preview {
  margin: 12px 0 16px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  min-height: 168px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #111;
  color: #b8b1a4;
  cursor: pointer;
}
.preview:focus, .preview.dragover { outline: 2px solid var(--gold); border-color: var(--gold); }
.preview-hint { text-align: center; padding: 24px 16px; pointer-events: none; }
.preview-hint strong { display: block; color: #f3eadc; margin-bottom: 6px; }
.preview-hint span { font-size: 12px; }
.preview img { width: 100%; height: 220px; object-fit: contain; background: #111; pointer-events: none; }
.upload-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -4px 0 16px;
}
.upload-actions .hint { margin: 0; }
.range-row { display: flex; justify-content: space-between; margin-bottom: 8px; }
input[type="range"] { padding: 0; accent-color: var(--gold); }

.results-head, .row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.stat { background: var(--soft); border-radius: 14px; padding: 12px; }
.stat b { display: block; font-size: 20px; }
.stat span { color: var(--muted); font-size: 12px; }

.result-list { display: grid; gap: 12px; }
.result-card { padding: 16px; }
.result-card header, .cp-report header {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.row dt { color: var(--muted); font-size: 12px; padding-top: 2px; }
.row dd { margin: 0; font-weight: 700; min-width: 0; overflow-wrap: break-word; word-break: normal; }

.copy {
  border: 0;
  background: var(--soft);
  border-radius: 9px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.copy:hover { background: #e5dccb; }

.snippet {
  background: var(--navy);
  color: #efe6d4;
  border-radius: 14px;
  padding: 14px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  max-height: 280px;
}
.json-block { margin-top: 18px; }
.cp-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
.cp-compare .snippet { margin-top: 12px; }
@media (max-width: 1100px) {
  .cp-compare { grid-template-columns: 1fr; }
}

.cp-report { padding: 18px; }
.cp-list { display: grid; gap: 8px; margin-bottom: 14px; }
.cp-line {
  display: grid;
  grid-template-columns: 14px 132px 1fr auto;
  gap: 8px;
  align-items: start;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0ebe3;
  font-size: 14px;
}
.cp-dot { color: var(--gold); }
.cp-line b { font-size: 11px; letter-spacing: 0.04em; color: var(--muted); padding-top: 2px; }
.cp-val { overflow-wrap: anywhere; font-weight: 700; }
.cp-maps { color: var(--teal); font-weight: 800; }

.empty {
  padding: 48px 18px;
  text-align: center;
  color: var(--muted);
  background: var(--soft);
  border-radius: 16px;
}
.hidden { display: none !important; }
.panel { min-width: 0; }

.keys-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
  align-items: start;
}
.limit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.service-limit {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 10px;
  background: #fff;
}
.service-limit .check { margin-bottom: 8px; }
.service-limit .cp-json-opt { margin: 8px 0 4px; }
.service-limit .cp-json-opt + .hint { margin: 0 0 2px 22px; }
.service-limit.is-off .limit-grid {
  opacity: 0.42;
  pointer-events: none;
}
.usage-service { margin: 12px 0 0; }
.usage-service h4 {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
}
.usage-service .usage-grid { margin: 0; }
.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 16px;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  margin: 0;
}
.check input { width: auto; margin: 0; }
.keys-list { display: grid; gap: 12px; }
.key-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}
.key-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
  margin-bottom: 10px;
}
.key-card h3 { margin: 0; font-size: 18px; }
.key-meta { color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.key-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: var(--soft);
}
.pill.ok { background: var(--mint); color: var(--teal); }
.pill.warn { background: #f4e3c4; color: #7a5410; }
.pill.bad { background: var(--danger-soft); color: var(--danger); }
.usage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.usage {
  background: var(--soft);
  border-radius: 12px;
  padding: 8px;
}
.usage b { display: block; font-size: 14px; }
.usage span { color: var(--muted); font-size: 11px; }
.key-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.keys-archive {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.keys-archive-toggle {
  width: 100%;
  border: 1px solid var(--line);
  background: #f7f4ee;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}
.keys-archive .hint { margin: 8px 0 0; }
.key-card.is-archived { background: #f7f4ee; }
.key-extend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.key-extend input[type="date"] {
  min-width: 160px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.key-edit {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.key-card.editing .key-edit { display: block; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #7f1f1f; }

.log-toolbar { display: grid; gap: 10px; margin-bottom: 16px; }
.log-toolbar input[type="search"] {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 11px 14px;
}
.log-filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 10px;
}
.logs-list { display: grid; gap: 10px; }
.log-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.log-card:hover {
  border-color: #d4c7ae;
  box-shadow: 0 12px 30px rgba(11, 18, 32, 0.07);
}
.log-card.open {
  border-color: #c9b48a;
  box-shadow: 0 16px 40px rgba(11, 18, 32, 0.1);
}
.log-head {
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 18px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
}
.log-head:hover { background: #faf7f1; }
.log-head:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
.log-kind {
  width: 48px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.log-kind.face { background: var(--mint); color: var(--teal); }
.log-kind.phone { background: #efe3c8; color: #7a5410; }
.log-kind.sim { background: #e4eef8; color: #1f4e79; }
.log-kind.imei { background: #ece4f6; color: #5b3d8f; }
.log-kind.linimasa { background: #dceee6; color: #1f5c45; }
.log-kind.identitas { background: #f6e4d8; color: #8a3d12; }
.log-kind.ewallet { background: #dde8f8; color: #1d4f91; }
.log-kind.bpjs { background: #e4f3ea; color: #1d6b3d; }
.log-kind.cdrwa { background: #e8f6f3; color: #0f6b5c; }
.log-kind.imigrasi { background: #efe7f8; color: #5c3d86; }
.log-kind.bpjstk { background: #e7f0e4; color: #2d5a28; }
.cdrwa-out { min-width: 0; }
.cdrwa-wrap { display: grid; gap: 16px; }
.cdrwa-hero {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 16px;
  align-items: start;
}
.cdrwa-hero-meta h3 { margin: 0 0 8px; font-size: 18px; }
.cdrwa-shot {
  margin: 0;
  background: #f7f1e7;
  border-radius: 14px;
  overflow: hidden;
}
.cdrwa-shot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  background: #efe6d6;
}
.cdrwa-shot figcaption {
  padding: 8px 10px;
  font-size: 12px;
  color: #6b5340;
}
.cdrwa-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
}
.cdrwa-table-wrap { overflow-x: auto; }
.cdrwa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.cdrwa-table th,
.cdrwa-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid #eadfce;
  vertical-align: top;
}
.cdrwa-table th {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a3d12;
}
.cdrwa-text summary {
  cursor: pointer;
  font-weight: 700;
  margin: 0 0 8px;
}
.cdrwa-text pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: #f7f1e7;
  font-size: 12px;
}
@media (max-width: 720px) {
  .cdrwa-hero { grid-template-columns: 1fr; }
}
.result-photo {
  width: 112px;
  height: 148px;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 0 10px;
  background: #f3eee6;
}
.identitas-card { padding-bottom: 14px; }
.identitas-layout { display: block; }
.identitas-layout.has-photo {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.nama-hit {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffcf7;
}
.nama-idx {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.nama-main { min-width: 0; }
.nama-main strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: normal;
}
.nama-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 4px;
}
.nama-meta span {
  font-weight: 700;
  font-size: 13px;
  overflow-wrap: break-word;
  word-break: normal;
}
.nama-meta .nama-nowrap {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.nama-meta b {
  margin-right: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.identitas-layout .result-photo { margin: 0; }
.identitas-fields { min-width: 0; }
.identitas-section {
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid #eadfce;
}
.identitas-section h3 {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a3d12;
}
.identitas-member {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f1e7;
}
.identitas-member > strong { display: block; margin: 0 0 6px; }
@media (max-width: 720px) {
  .identitas-layout.has-photo { grid-template-columns: 1fr; }
}
.tl-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  margin: 0 0 4px;
}
.tl-rail {
  position: relative;
  display: flex;
  justify-content: center;
}
.tl-rail::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: -12px;
  width: 2px;
  background: #d7e4dc;
}
.tl-item:last-child .tl-rail::before { display: none; }
.tl-dot {
  width: 12px;
  height: 12px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 4px #dff3ea;
  z-index: 1;
}
.tl-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  margin-bottom: 10px;
}
.tl-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 6px;
}
.tl-card header span { color: var(--muted); font-size: 12px; }
.tl-place {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}
.tl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.log-title { font-weight: 800; overflow-wrap: anywhere; }
.log-sub { color: var(--muted); font-size: 12px; margin-top: 4px; line-height: 1.45; }
.log-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  justify-self: end;
}
.log-card.open .log-chevron { transform: rotate(225deg); margin-top: 6px; }
.log-detail {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
  background: #fbf9f4;
}
.log-card.open .log-detail { display: block; }
.log-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 0;
}
.log-meta-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.log-meta-item span { display: block; color: var(--muted); font-size: 11px; }
.log-meta-item b { display: block; margin-top: 4px; font-size: 13px; overflow-wrap: anywhere; }
.log-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.log-hits { display: grid; gap: 10px; }
.log-hits .result-card,
.log-hits .cp-report {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.fo-status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.fo-tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.fo-tile span { display: block; color: var(--muted); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.fo-tile b { display: block; margin: 8px 0 4px; font-size: 20px; }
.fo-tile small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.fo-source-row {
  display: grid;
  grid-template-columns: 1fr 148px;
  gap: 8px;
  align-items: center;
}
.fo-source-row select {
  min-height: 46px;
  font-weight: 650;
}
.fo-probes { display: grid; gap: 10px; margin-top: 16px; }
.fo-probe {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.fo-probe b { display: block; margin-bottom: 4px; }
.fo-probe span { color: var(--muted); font-size: 12px; }

@media (max-width: 1020px) {
  .auth-card, .app-shell, .grid, .endpoint-grid, .keys-layout { grid-template-columns: 1fr; }
  .share-note { grid-column: auto; }
  .sidebar { flex-direction: row; flex-wrap: wrap; }
  .sidebar-foot { margin-top: 0; width: 100%; }
  .workspace { padding: 22px 16px 36px; }
  .topbar h1 { font-size: 30px; }
  .cp-line { grid-template-columns: 14px 1fr auto; }
  .cp-line b { grid-column: 2; }
  .usage-grid { grid-template-columns: 1fr 1fr; }
  .log-filters, .log-head, .log-meta, .fo-status { grid-template-columns: 1fr; }
  .fo-source-row { grid-template-columns: 1fr; }
  .log-chevron { display: none; }
}
