/* Gaya mengikuti dashboard "Rekap Mingguan Area" */
:root {
  color-scheme: light;
  --page: #f3f4f1; --surface: #ffffff; --surface-2: #f6f6f3; --ink: #0b0b0b; --ink-2: #52514e; --muted: #7d7b75;
  --grid: #e8e7e1; --border: rgba(11,11,11,.10); --border-2: rgba(11,11,11,.18);
  --accent: #1c5cab; --accent-ink: #ffffff; --accent-soft: #e7eefa;
  --good: #0ca30c; --warn: #fab219; --crit: #d03b3b;
  --warn-bg: #fff2d3; --warn-ink: #7a5200; --crit-bg: #fbe6e6; --crit-ink: #a32626;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 14px rgba(0,0,0,.05);
  --tabs-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --page: #0d0d0d; --surface: #1a1a19; --surface-2: #232321; --ink: #ffffff; --ink-2: #c3c2b7; --muted: #8f8d86;
    --grid: #2c2c2a; --border: rgba(255,255,255,.10); --border-2: rgba(255,255,255,.2);
    --accent: #5598e7; --accent-ink: #0b0b0b; --accent-soft: #1b2a3e;
    --warn-bg: #3a2e10; --warn-ink: #f7c85a; --crit-bg: #3d1a1a; --crit-ink: #f39292;
    --shadow: 0 1px 2px rgba(0,0,0,.4);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d; --surface: #1a1a19; --surface-2: #232321; --ink: #ffffff; --ink-2: #c3c2b7; --muted: #8f8d86;
  --grid: #2c2c2a; --border: rgba(255,255,255,.10); --border-2: rgba(255,255,255,.2);
  --accent: #5598e7; --accent-ink: #0b0b0b; --accent-soft: #1b2a3e;
  --warn-bg: #3a2e10; --warn-ink: #f7c85a; --crit-bg: #3d1a1a; --crit-ink: #f39292;
  --shadow: 0 1px 2px rgba(0,0,0,.4);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--page); color: var(--ink);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
  padding-bottom: calc(var(--tabs-h) + 20px + env(safe-area-inset-bottom));
}
@media (min-width: 900px) { body { padding-bottom: 40px; } }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
em { font-style: normal; font-weight: 600; }

/* ---------- Header & tab ---------- */
.top { background: var(--surface); border-bottom: 1px solid var(--border); padding-top: env(safe-area-inset-top); }
.top-inner { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.logo { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; flex: none; }
.logo svg { width: 20px; height: 20px; stroke: var(--accent-ink); }
.brand { min-width: 0; }
.brand h1 { font-size: 17px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand p { margin: 0; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
@media (max-width: 420px) { .brand p { display: none; } }
.sync { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; white-space: nowrap; margin-left: auto; }
.sync::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.sync.ok::before { background: var(--good); }
.sync.busy::before { background: var(--warn); }
.sync.err::before { background: var(--crit); }
@media (min-width: 900px) { .sync { margin-left: 12px; } }

.tabs { display: flex; gap: 4px; margin-left: auto; }
.tabs button {
  position: relative; display: flex; align-items: center; gap: 8px; border: 0; background: transparent; cursor: pointer;
  padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 14px;
}
.tabs button svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs button:hover { background: var(--surface-2); color: var(--ink); }
.tabs button[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.tab-dot { position: absolute; top: 6px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--crit); }
@media (max-width: 899px) {
  .tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100; margin: 0; gap: 0;
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around;
  }
  .tabs button { flex: 1; flex-direction: column; gap: 2px; font-size: 11.5px; padding: 6px 2px; }
  .tabs button[aria-current="page"] { background: transparent; }
  .tab-dot { right: calc(50% - 18px); }
}

/* ---------- Filter center ---------- */
.filterbar { position: sticky; top: 0; z-index: 1000; background: var(--page); border-bottom: 1px solid var(--border); }
.fb { display: flex; align-items: center; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
.fb-label { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; flex: none; }
@media (max-width: 560px) { .fb-label { display: none; } }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border-2); background: var(--surface); color: var(--ink);
  border-radius: 10px; padding: 6px 12px; font-size: 13.5px; font-weight: 700; cursor: pointer; min-height: 36px;
}
.chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.chip .n { font-weight: 500; opacity: .7; font-variant-numeric: tabular-nums; }
.chip[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.chip[aria-selected="true"] .dot { box-shadow: 0 0 0 2px rgba(255,255,255,.8); }

/* ---------- Progress ---------- */
.progress { background: var(--surface); border-bottom: 1px solid var(--border); padding: 10px 0; }
.progress-row { display: flex; align-items: center; gap: 12px; }
.progress-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.progress-text strong { font-size: 14px; }
#progDetail { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bar { height: 6px; background: var(--grid); border-radius: 999px; margin-top: 8px; overflow: hidden; }
#progBar { height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .4s; }
.progress-live { margin: 6px 0 0; font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress-live.warn { color: var(--crit-ink); white-space: normal; }
.progress-note { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.progress-live:empty, .progress-note:empty { display: none; }
.progress.error .progress-note { color: var(--crit-ink); }

/* ---------- Kontrol umum ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border-2);
  background: var(--surface); cursor: pointer; font-weight: 600; font-size: 14px; white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--crit-ink); }
.btn.sm { min-height: 34px; padding: 0 10px; font-size: 13px; }
.btn.full { width: 100%; margin-top: 10px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.file-btn { position: relative; }
.file-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
select, input[type="url"], input[type="search"], .search {
  min-height: 40px; border: 1px solid var(--border-2); border-radius: 10px; background: var(--surface);
  padding: 8px 10px; font-size: 16px; width: 100%;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; padding: 3px; gap: 2px; flex: none; }
.seg button { border: 0; background: transparent; padding: 6px 11px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 700; border-radius: 6px; padding: 1px 6px; background: var(--accent-soft); color: var(--accent); }

main { padding-top: 14px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); min-width: 0; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 0 12px; flex-wrap: wrap; }
.sec-head:first-child { margin-top: 4px; }
.sec-head h2 { font-size: 16px; font-weight: 650; }
.sec-head .hint { font-size: 12.5px; color: var(--muted); }
.sec-head .search { flex: 1 1 180px; max-width: 280px; }

/* ---------- Peta ---------- */
.map-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.map-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
#map { height: calc(100vh - 290px - env(safe-area-inset-bottom)); min-height: 340px; max-height: 760px; background: #e9e7e1; }
@media (min-width: 900px) { #map { height: calc(100vh - 230px); } }
.kpis-mini { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.mini { display: inline-flex; align-items: baseline; gap: 5px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 5px 10px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
@media (max-width: 560px) {
  .map-head { gap: 8px; }
  .kpis-mini { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; }
  .kpis-mini::-webkit-scrollbar { display: none; }
  .mini { padding: 4px 8px; font-size: 12px; }
  .mini b { font-size: 14px; }
  .map-head .seg { width: 100%; }
  .map-head .seg button { flex: 1; }
}
.mini b { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }

.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 10px; font-size: 12px; }
.legend .lg-title { font-weight: 700; color: var(--ink-2); margin-right: 2px; }
.legend .row {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; min-height: 30px;
  border: 1px solid var(--border-2); border-radius: 999px; background: var(--surface); color: var(--ink);
  font-size: 12.5px; font-weight: 650; cursor: pointer;
}
.legend .row.static { cursor: default; }
.legend .row.off { opacity: .45; text-decoration: line-through; }
.legend .row .sw { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px var(--border-2); }
.legend .row .sw.sq { border-radius: 3px; width: 14px; }
.legend .row .n { color: var(--ink-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.legend .reset { border: 0; background: none; color: var(--accent); font-size: 12.5px; font-weight: 650; cursor: pointer; padding: 4px; }
.legend .hint { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 11.5px; }

.cmark {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 26px; border-radius: 7px;
  background: var(--c); color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .03em;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.cluster {
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: #fff; font-weight: 700; font-size: 12px;
  background: rgba(11, 11, 11, .78); border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.3); font-variant-numeric: tabular-nums;
}
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface); color: var(--ink); }
.leaflet-container a.leaflet-popup-close-button { color: var(--ink-2); }
.leaflet-popup-content { margin: 12px 14px; font-size: 13px; line-height: 1.45; }
.pop h3 { margin: 0 0 6px; font-size: 15px; }
.pop dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; }
.pop dt { color: var(--muted); }
.pop dd { margin: 0; }
.pop .approx { margin: 8px 0 0; padding: 6px 8px; border-radius: 8px; background: var(--warn-bg); color: var(--warn-ink); font-size: 12px; }
.ring-label { background: transparent; border: 0; box-shadow: none; color: #52514e; font-weight: 600; font-size: 11px; }
.ring-label::before { display: none; }

/* ---------- Statistik ---------- */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) { .kpis { grid-template-columns: 1fr; } }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); min-width: 0; }
.k-label { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.card-body { margin-top: 4px; }
.card-body p { margin: 2px 0; }
.hero { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: 2px 0 6px; }
.hero small { font-size: 15px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.who { font-weight: 650; }
.sub { color: var(--ink-2); font-size: 13px; overflow-wrap: anywhere; }
.link-btn { border: 0; background: none; padding: 0; color: var(--accent); font-size: 13px; font-weight: 650; cursor: pointer; margin-top: 6px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; font-size: 13px; margin-top: 8px; }
.kv span:nth-child(even) { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; }
.kv span:nth-child(odd) { color: var(--ink-2); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl th { font-size: 12px; color: var(--ink-2); font-weight: 650; background: var(--surface-2); white-space: nowrap; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover { background: var(--surface-2); }
.kel-name { font-weight: 650; }
.kel-sub { color: var(--muted); font-size: 12px; }
.bar-cell { width: 30%; }
.mini-bar { height: 6px; border-radius: 3px; background: var(--accent); min-width: 2px; }
.cdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: 6px; vertical-align: -1px; }
.empty { color: var(--muted); font-size: 13px; padding: 8px 0; }
.note { font-size: 12.5px; color: var(--muted); margin: 10px 2px 0; }

/* ---------- Data ---------- */
.dgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.dgrid h2 { font-size: 16px; margin-bottom: 6px; }
.dgrid h2.mt { margin-top: 18px; }
.dgrid p { margin: 0 0 10px; font-size: 13.5px; color: var(--ink-2); }
.lbl { display: block; font-size: 13px; font-weight: 650; color: var(--ink-2); margin: 8px 0 6px; }
.card .actions { margin-top: 10px; }
.status, #cloudInfo { margin-top: 10px !important; }
#cloudInfo:empty { display: none; }
.status:empty { display: none; }
.status.err { color: var(--crit-ink); }
details.alt { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 10px; }
details.alt summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--accent); padding: 4px 0; }

.fail-list { list-style: none; margin: 8px 0 0; padding: 0; }
.fail-list li { border-top: 1px solid var(--border); padding: 10px 0; }
.fail-list .addr { font-weight: 650; overflow-wrap: anywhere; }
.fail-list .meta { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.fail-list .acts { display: flex; gap: 14px; margin-top: 6px; flex-wrap: wrap; align-items: center; }
.fail-list .acts a, .fail-list .acts button { font-size: 13px; font-weight: 650; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.fail-list form { display: flex; gap: 6px; margin-top: 8px; }
.fail-list form input { flex: 1; min-width: 0; font-size: 15px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--border-2); background: var(--surface); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabs-h) + 20px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(10px);
  background: var(--ink); color: var(--page); padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600;
  opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 1200; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 900px) { .toast { bottom: 28px; } }
@media (prefers-reduced-motion: reduce) { .toast, #progBar { transition: none; } }

/* ---------- Kompetitor ---------- */
:root { --comp: #d9442b; --comp-soft: #fbe5e0; }
.map-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.toggle-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--border-2); background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 650; cursor: pointer;
}
.toggle-btn[aria-pressed="true"] { background: var(--comp-soft); color: #9c2a17; border-color: var(--comp); }
.omark-mini { width: 9px; height: 9px; background: var(--comp); transform: rotate(45deg); border-radius: 2px; display: inline-block; }
@media (max-width: 560px) { .map-tools { width: 100%; } .map-tools .toggle-btn { flex: 1; justify-content: center; } }

.omark { position: relative; width: 16px; height: 16px; }
.omark i { position: absolute; inset: 3px; background: #8f8d86; transform: rotate(45deg); border-radius: 2px; border: 1.5px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.omark.hit i { background: var(--bc, var(--comp)); inset: 1px; }
.omark.trk i { box-shadow: 0 0 0 3px rgba(217,68,43,.35), 0 1px 3px rgba(0,0,0,.35); }
.opill {
  position: absolute; left: 50%; bottom: 17px; transform: translateX(-50%); white-space: nowrap;
  background: var(--bc, var(--comp)); color: #fff; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 6px;
  border: 1px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); font-variant-numeric: tabular-nums;
}

.ksrc { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }
.ksrc .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.ksrc.ok .dot { background: var(--good); } .ksrc.warn .dot { background: var(--warn); } .ksrc.err .dot { background: var(--crit); }
.ksrc.err .msg { color: var(--crit-ink); }
.ksrc .msg { flex: 1 1 200px; color: var(--ink-2); }
.ksrc .acts { display: flex; gap: 6px; }

.kcontrols { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 12px; }
.kcontrols .grp { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; font-weight: 650; color: var(--ink-2); }
.kcontrols select { width: auto; min-width: 150px; }
.kcontrols .check { font-weight: 600; cursor: pointer; }
.kcontrols .check input { width: 18px; height: 18px; accent-color: var(--accent); }

.khead h2 { font-size: 17px; }
.khead p { margin: 2px 0 10px; font-size: 13px; }
.kstats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.kstats div { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.kstats b { font-size: 22px; font-variant-numeric: tabular-nums; }
.kstats small { font-size: 12px; color: var(--ink-2); }
.kcards { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.kcard { text-align: left; display: grid; grid-template-columns: auto 1fr auto; gap: 2px 8px; align-items: baseline; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.kcard:hover { background: var(--surface-2); }
.kcard .code { font-weight: 800; color: var(--c); }
.kcard .nm { font-weight: 650; }
.kcard .km { font-weight: 700; color: var(--comp); font-variant-numeric: tabular-nums; }
.kcard .meta { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-2); }
.spbox { display: flex; flex-direction: column; gap: 2px; background: var(--accent-soft); border-radius: 10px; padding: 9px 12px; font-size: 13px; margin-bottom: 10px; }
.knote { background: var(--warn-bg); color: var(--warn-ink); border-radius: 10px; padding: 8px 12px; font-size: 13px; margin-bottom: 10px; }
.knote.ok { background: #e4f4e4; color: #0a6b0a; }
.olist { list-style: none; margin: 0; padding: 0; }
.olist li { border-top: 1px solid var(--border); }
.olist button { width: 100%; text-align: left; display: grid; grid-template-columns: auto 1fr auto; gap: 2px 8px; align-items: baseline; padding: 10px 2px; border: 0; background: none; cursor: pointer; }
.olist button:hover { background: var(--surface-2); }
.olist .odot { width: 9px; height: 9px; background: var(--c, var(--comp)); transform: rotate(45deg); border-radius: 2px; }
.olist .odot.trk { box-shadow: 0 0 0 3px rgba(217,68,43,.3); }
.olist .nm { font-weight: 650; }
.olist .km { font-weight: 700; font-variant-numeric: tabular-nums; }
.olist .meta { grid-column: 2 / -1; font-size: 12.5px; color: var(--ink-2); }
.ktag { display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 6px; padding: 1px 6px; margin-right: 4px; background: var(--surface-2); color: var(--ink-2); }
.ktag.price { background: var(--comp-soft); color: #9c2a17; }
.ktag.trk { background: var(--comp); color: #fff; }
.ktag.down { background: #e4f4e4; color: #0a6b0a; }
.ktag.up { background: var(--crit-bg); color: var(--crit-ink); }
.pill { display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.pill.ok { background: #e4f4e4; color: #0a6b0a; } .pill.warn { background: var(--warn-bg); color: var(--warn-ink); } .pill.bad { background: var(--crit-bg); color: var(--crit-ink); }
.ktbl { min-width: 860px; }
.kpi-wide .hero small { display: inline; }
.kmethod p { margin: 0 0 8px; font-size: 13.5px; color: var(--ink-2); }
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) { --comp-soft: #3d1d17; }
  :root:where(:not([data-theme="light"])) .knote.ok, :root:where(:not([data-theme="light"])) .pill.ok, :root:where(:not([data-theme="light"])) .ktag.down { background: #13301a; color: #74d874; }
}

.klist { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin: -4px 2px 12px; }
.klist > span { flex: 1 1 260px; }
.warn-txt { color: var(--warn-ink); }
.legend .row .sw.dia { border-radius: 2px; transform: rotate(45deg); width: 9px; height: 9px; }
.seg.multi button { display: inline-flex; align-items: center; gap: 6px; }
.seg.multi button[aria-pressed="false"] { opacity: .5; text-decoration: line-through; }
.bdot { width: 9px; height: 9px; background: var(--c); transform: rotate(45deg); border-radius: 2px; display: inline-block; }
.pop .overlap-note { margin: 0 0 6px; padding: 4px 8px; border-radius: 6px; background: #fde4ee; color: #a3184f; font-size: 12px; font-weight: 650; }
