:root {
  --bg: #f6f5f3; --panel: #ffffff; --ink: #1c1917; --muted: #6b6560; --line: #e7e3df;
  --accent: #c2410c; --accent-ink: #ffffff; --accent-soft: #fff1e8;
  --ok: #15803d; --ok-soft: #e8f5ec; --warn: #b45309; --warn-soft: #fdf3e2; --bad: #b91c1c; --bad-soft: #fdecec;
  --k1: #7c2d12; --k2: #c2410c; --k3: #0e7490; --k4: #57534e;
  --radius: 8px; --shadow: 0 1px 2px rgba(28,25,23,.06);
  font-size: 14px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #161412; --panel: #1f1c1a; --ink: #f2efec; --muted: #a8a19b; --line: #34302c;
    --accent: #f97316; --accent-soft: #3a2316; --ok-soft: #13291b; --warn-soft: #33260f; --bad-soft: #3a1717;
    --k1: #fdba74; --k2: #fb923c; --k3: #67e8f9; --k4: #d6d3d1; --shadow: none; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; line-height: 1.45; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a.plain { color: inherit; }
h1 { font-size: 1.5rem; margin: 0 0 .25rem; letter-spacing: -.01em; }
h2 { font-size: 1rem; margin: 0 0 .75rem; }
code, .mono { font-family: Consolas, "Cascadia Mono", monospace; font-size: .85em; }
.muted { color: var(--muted); }
.note { color: var(--muted); font-size: .85rem; margin: .6rem 0 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

.shell { display: grid; grid-template-columns: 228px 1fr; min-height: 100vh; }
.side { background: var(--panel); border-right: 1px solid var(--line); padding: 1rem .75rem; position: sticky; top: 0;
  height: 100vh; display: flex; flex-direction: column; }
.brand { display: flex; gap: .6rem; align-items: center; padding: .25rem .5rem 1rem; }
.brand b { display: block; font-size: .95rem; } .brand small { color: var(--muted); }
.flame { width: 26px; height: 26px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg);
  background: linear-gradient(135deg, #f59e0b, #dc2626); flex: none; }
.side nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.side nav a { color: var(--ink); padding: .45rem .6rem; border-radius: 6px; }
.side nav a:hover { background: var(--bg); text-decoration: none; }
.side nav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.side .sep { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .9rem .6rem .3rem; }
.side .me { margin-top: auto; padding: .75rem .6rem 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between;
  align-items: center; font-size: .85rem; color: var(--muted); }
.main { padding: 1.5rem 2rem 3rem; max-width: 1500px; width: 100%; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; } .side { position: static; height: auto; }
  .side nav { flex-direction: row; flex-wrap: wrap; } .main { padding: 1rem; }
}

.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.crumb { margin: 0 0 .25rem; font-size: .85rem; color: var(--muted); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem;
  box-shadow: var(--shadow); margin-bottom: 1rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
@media (max-width: 1100px) { .grid2 { grid-template-columns: 1fr; } }

.status-strip { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .6rem 1rem; margin-bottom: 1rem; font-size: .9rem; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .35rem; background: var(--muted); }
.dot.ok { background: var(--ok); } .dot.bad { background: var(--bad); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; box-shadow: var(--shadow); }
.kpi span { color: var(--muted); font-size: .85rem; display: block; }
.kpi b { display: block; font-size: 1.9rem; font-variant-numeric: tabular-nums; margin: .15rem 0; }
.kpi small { color: var(--muted); }
.kpi.warn b { color: var(--warn); }

.tbl { width: 100%; border-collapse: collapse; background: var(--panel); }
.card .tbl { background: transparent; }
.main > .tbl { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; }
.tbl th { text-align: left; font-weight: 600; font-size: .8rem; color: var(--muted); border-bottom: 1px solid var(--line); padding: .5rem .6rem; }
.tbl td { border-bottom: 1px solid var(--line); padding: .5rem .6rem; vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.dim td { opacity: .55; }
.tbl tr.sub td { background: var(--bg); padding-top: .25rem; }
.tbl td.quote { font-size: .85rem; color: var(--muted); max-width: 520px; }
.mono-sm td:first-child { font-family: Consolas, monospace; white-space: nowrap; font-size: .85rem; }

.cats td { padding: .45rem .4rem; border-bottom: 1px solid var(--line); }
.cats td.num a { font-size: 1.15rem; font-weight: 600; }
.cat { display: inline-block; font-weight: 700; font-size: .78rem; padding: .1rem .45rem; border-radius: 4px; border: 1px solid currentColor; white-space: nowrap; }
.cat-K1 { color: var(--k1); } .cat-K2 { color: var(--k2); } .cat-K3 { color: var(--k3); } .cat-K4 { color: var(--k4); }
.cat-none { color: var(--muted); border-style: dashed; font-weight: 500; }

.pill { display: inline-block; font-size: .75rem; padding: .08rem .45rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); white-space: nowrap; }
.pill.warn, .pill.v-disputed { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.pub-published, .v-verified { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.pub-withdrawn, .v-rejected { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.ok-t { color: var(--ok); } .warn-t { color: var(--warn); font-weight: 600; }

.bars td { padding: .3rem .3rem; } .barcell { width: 55%; }
.bar { display: block; height: 10px; border-radius: 3px; background: var(--accent); min-width: 2px; }
.spark { display: flex; align-items: flex-end; gap: 2px; height: 140px; border-bottom: 1px solid var(--line); }
.spark .col { flex: 1; background: var(--accent); border-radius: 2px 2px 0 0; min-height: 0; }
.spark .col:hover { background: var(--k1); }
.spark-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; margin-top: .25rem; }

.filters { display: flex; flex-wrap: wrap; gap: .6rem .9rem; align-items: flex-end; }
.filters label, .stack label, .card > label { display: flex; flex-direction: column; font-size: .8rem; color: var(--muted); gap: .2rem; }
.filters .actions { display: flex; gap: .75rem; align-items: center; }
label.chk { flex-direction: row !important; align-items: center; gap: .35rem !important; color: var(--ink) !important; font-size: .9rem !important; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: .38rem .5rem; }
textarea { width: 100%; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
fieldset { border: 0; padding: 0; margin: 0; }
.btn { font: inherit; cursor: pointer; padding: .38rem .8rem; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); white-space: nowrap; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.danger { color: var(--bad); border-color: var(--bad); }
button.link { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0; }
.inline-form { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 0; }
.inline-form.small input, .inline-form.small select { font-size: .82rem; padding: .25rem .4rem; }
.stack { display: flex; flex-direction: column; gap: .6rem; }
.stack.small { font-size: .85rem; }
.row { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: flex-end; }

.flash { padding: .65rem .9rem; border-radius: var(--radius); margin-bottom: 1rem; background: var(--bg); border: 1px solid var(--line); }
.flash.ok { background: var(--ok-soft); border-color: transparent; }
.flash.error { background: var(--bad-soft); border-color: transparent; }
.flash.warn { background: var(--warn-soft); border-color: transparent; }
code.big { font-size: 1rem; user-select: all; word-break: break-all; }

.kv { display: grid; grid-template-columns: 200px 1fr; gap: .45rem 1rem; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.loc { border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem .9rem; margin-bottom: .75rem; }
.loc-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .4rem; }
.loc-body { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.loc-body p { margin: .25rem 0; }
@media (max-width: 1100px) { .loc-body { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: .25rem .7rem; font-size: .85rem; background: var(--panel); }
.log { list-style: none; padding: 0; margin: 0; font-size: .85rem; } .log li { padding: .2rem 0; border-bottom: 1px dashed var(--line); }
.links li { margin: .35rem 0; }
.pager { display: flex; gap: 1rem; justify-content: center; align-items: center; margin: 1rem 0; color: var(--muted); }
.kwgroup { display: flex; flex-direction: column; gap: .35rem; }

.map { height: calc(100vh - 230px); min-height: 480px; border-radius: var(--radius); border: 1px solid var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; padding: .6rem 1rem; }
.lg { display: inline-block; width: 12px; height: 12px; margin-right: .35rem; vertical-align: -1px; }
.lg.fire { background: #dc2626; border-radius: 50%; } .lg.action { background: #1d4ed8; }
.lg.area { background: rgba(234, 88, 12, .45); border: 1px solid #9a3412; }
.act-icon { color: #1d4ed8; font-size: 14px; line-height: 14px; text-align: center; text-shadow: 0 0 2px #fff; }

.login { min-height: 100vh; display: grid; place-items: center; }
.login .card { width: 340px; display: flex; flex-direction: column; gap: .8rem; }
.login label { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; color: var(--muted); }
details summary { cursor: pointer; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .9rem; }
.ph { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.ph img { width: 100%; height: 170px; object-fit: cover; display: block; background: var(--bg); }
.ph figcaption { padding: .5rem .6rem; font-size: .82rem; display: flex; flex-direction: column; gap: .25rem; }
.ph .cap { margin: 0; }
.ph.auth-field_documentation { border-color: var(--ok); }
.ph.auth-likely_field { border-color: #65a30d; }
.ph.auth-stock, .ph.auth-illustration, .ph.auth-reused_old { opacity: .75; border-style: dashed; }

.origins { min-width: 160px; }
.origin { display: inline-flex; gap: .25rem; align-items: center; font-size: .78rem; padding: .05rem .4rem; margin: 0 .2rem .2rem 0;
  border-radius: 4px; border: 1px solid var(--line); color: var(--ink); background: var(--panel); white-space: nowrap; }
.origin b { font-size: .68rem; padding: 0 .25rem; border-radius: 3px; background: var(--bg); color: var(--muted); }
.origin.o-telegram b { background: #229ed9; color: #fff; } .origin.o-youtube b { background: #e62117; color: #fff; }
.origin.o-bluesky b { background: #1185fe; color: #fff; } .origin.o-manual b { background: #6b7280; color: #fff; }
.origin.o-web b { background: var(--accent-soft); color: var(--accent); }

.cat-K5 { color: var(--muted); border-style: dashed; font-weight: 600; }

.action-list { display: flex; flex-direction: column; gap: .2rem; }
.action-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.action-head > div:last-child { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.action-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: .4rem; }
.action-cols h3 { font-size: .8rem; color: var(--muted); margin: .2rem 0; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.action .src { margin: .25rem 0; }
.quote-block { margin: .5rem 0; padding: .4rem .8rem; border-left: 3px solid var(--accent); background: var(--bg); font-size: .88rem; color: var(--ink); }
@media (max-width: 900px) { .action-cols { grid-template-columns: 1fr; } }

.msel { position: relative; min-width: 220px; }
.msel > summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 6px; padding: .38rem .6rem;
  background: var(--panel); font-size: .9rem; color: var(--ink); }
.msel > summary::-webkit-details-marker { display: none; }
.msel-box { position: absolute; z-index: 50; top: calc(100% + 4px); left: 0; width: 380px; max-height: 420px; overflow: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .6rem; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.msel-search { width: 100%; margin-bottom: .4rem; }
.msel-actions { font-size: .8rem; margin-bottom: .4rem; color: var(--muted); }
.msel-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: .5rem 0 .2rem; font-weight: 600; }
.msel-item { display: flex !important; flex-direction: row !important; align-items: center; gap: .4rem; padding: .15rem .1rem;
  color: var(--ink) !important; font-size: .86rem !important; cursor: pointer; }
.msel-item span { flex: 1; }

.live-chip { display: flex !important; align-items: center; gap: .4rem; font-size: .8rem; border: 1px solid var(--line); margin-bottom: .4rem; }
.dot.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(21,128,61,.6); } 50% { box-shadow: 0 0 0 5px rgba(21,128,61,0); } }
.dot.big { width: 16px; height: 16px; }
.status-hero { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 1rem; align-items: center; }
.hero-state { display: flex; gap: .7rem; align-items: center; }
.hero-kpi span { display: block; color: var(--muted); font-size: .8rem; }
.hero-kpi b { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.hero-kpi small { display: block; }
.prog { margin: .2rem 0 .9rem; }
.prog-head { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: .25rem; }
.bar-bg { height: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.bar-fg { height: 100%; width: 0; background: var(--accent); transition: width .6s ease; }
.running { list-style: none; padding: 0; margin: 0 0 1rem; font-size: .86rem; }
.running li { padding: .3rem 0; border-bottom: 1px dashed var(--line); }
@media (max-width: 1100px) { .status-hero { grid-template-columns: 1fr 1fr; } }

/* galeri foto: geotag */
.ph-badges { display: flex; flex-wrap: wrap; gap: .25rem; }
.pill.geo { background: #0e7490; color: #fff; border-color: #0e7490; }
.ph.has-geo { border-color: #0e7490; }
.geo-box { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: .35rem .45rem; font-size: .8rem; }
.geo-box .mono, .mono { font-family: ui-monospace, Consolas, monospace; }
pre.ocr { white-space: pre-wrap; font-size: .75rem; max-height: 9rem; overflow: auto; margin: .25rem 0 0; }
.pill.scene-lapangan { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }
.pill.scene-bukan_lapangan { background: var(--bad-soft); color: var(--bad); border-color: var(--bad); }
.pill.scene-belum_pasti { background: var(--warn-soft); color: var(--warn); border-color: var(--warn); }
.num-badge { display: inline-block; min-width: 1.6rem; padding: .05rem .4rem; margin-right: .3rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .8rem; text-align: center; }
.type-counts { display: flex; flex-wrap: wrap; gap: .35rem; margin: .2rem 0 .8rem; }
.pill.geo-place { background: #0369a1; color: #fff; border-color: #0369a1; }
.social-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; margin: .4rem 0; }
.social-media figure { margin: 0; }
.social-media img { width: 100%; height: 110px; object-fit: cover; border-radius: 6px; display: block; background: var(--bg); }
.social-media figcaption { font-size: .72rem; color: var(--muted); }
.social-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; align-items: start; }
@media (max-width: 1100px) { .social-cols { grid-template-columns: 1fr; } }
.social-col-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.social-col-head h2 { margin: 0; }
.social-col-kpi { margin: .4rem 0 .2rem; font-size: .9rem; }
.social-feed { display: flex; flex-direction: column; gap: .6rem; margin-top: .6rem; max-height: 75vh; overflow: auto; }
.social-post { border: 1px solid var(--line); border-radius: 8px; padding: .5rem .6rem; }
.social-post p { margin: .3rem 0; font-size: .86rem; }
.social-post-head { display: flex; justify-content: space-between; gap: .5rem; font-size: .85rem; }
.social-col-foot { display: flex; justify-content: space-between; margin-top: .6rem; font-size: .85rem; }
.small { font-size: .8rem; }
.bookmarklet ol { margin: .4rem 0 0; padding-left: 1.2rem; }
.bookmarklet li { margin: .35rem 0; }
.capture-img { position: relative; display: block; }
.capture-img input { position: absolute; top: 6px; left: 6px; width: 18px; height: 18px; }
.capture-img img { width: 100%; height: 130px; object-fit: cover; border-radius: 6px; display: block; background: var(--bg); }
