:root {
  --apc-green: #008751;
  --apc-green-dark: #006B3F;
  --apc-blue: #00A3E0;
  --apc-blue-dark: #0077B6;
  --apc-red: #E31C23;
  --apc-red-dark: #B8141A;
  --gold: #C9A84C;
  --cream: #F5F0E8;
  --bg: #F0F4F8;
  --card: #FFFFFF;
  --ink: #1A1A1A;
  --muted: #5A6A72;
  --border: #D8E0E6;
  --ok: #008751;
  --warn: #C9A84C;
  --bad: #E31C23;
  --r: 10px;
  --dg: #006B3F;
  --mg: #008751;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top header — PBAT-KOH palette */
.topbar {
  background: linear-gradient(90deg, var(--apc-green-dark) 0%, #0a3d2a 40%, #0a2a40 100%);
  color: #fff;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  flex-shrink: 0;
  border-bottom: 3px solid var(--apc-red);
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-logo {
  height: 42px;
  width: auto;
  display: block;
  border-radius: 4px;
  background: #fff;
  padding: 2px 4px;
}
.brand-text h1 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
}
.brand-text h1 span.gsam {
  color: #fff;
}
.brand-text h1 span.sub-acronym {
  color: var(--apc-blue);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  display: block;
  margin-top: 1px;
}
.brand-text p {
  font-size: 0.58rem;
  opacity: 0.8;
  margin-top: 1px;
}
.top-right { display: flex; align-items: center; gap: 0.85rem; }
.live {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(0,163,224,0.5);
  padding: 0.18rem 0.5rem; border-radius: 999px;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em;
}
.dot { width: 6px; height: 6px; background: #2ecc71; border-radius: 50%; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }
.clock { font-size: 0.75rem; opacity: 0.9; font-variant-numeric: tabular-nums; }

/* Tabs — APC colours */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
  background: var(--apc-green-dark);
  padding: 0 0.85rem 0;
  border-bottom: 3px solid var(--apc-red);
  flex-shrink: 0;
}
.tab {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  padding: 0.5rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  transition: background 0.12s, color 0.12s;
}
.tab:hover { color: #fff; background: rgba(255,255,255,0.1); }
.tab.active {
  color: #fff;
  background: var(--apc-red);
}

.content { padding: 0.85rem 1.15rem 1.25rem; flex: 1; max-width: 1600px; width: 100%; margin: 0 auto; }
.view { display: none; }
.view.active { display: block; }

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.kpi {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.75rem 0.9rem;
  border-top: 3px solid var(--apc-green);
}
.kpi .l { font-size: 0.62rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.kpi .v { font-size: 1.35rem; font-weight: 700; color: var(--apc-green-dark); margin-top: 0.15rem; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 0.65rem; color: var(--muted); margin-top: 0.15rem; }
.kpi .delta { font-size: 0.65rem; font-weight: 600; color: var(--ok); }
.kpi.accent {
  background: var(--apc-green-dark);
  border-color: var(--apc-green-dark);
  border-top-color: var(--apc-blue);
}
.kpi.accent .l, .kpi.accent .s { color: rgba(255,255,255,0.7); }
.kpi.accent .v { color: #fff; }
.kpi.accent .delta { color: #7ddeb0; }

.row-2 {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.row-2eq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.85rem 1rem;
}
.pt {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--apc-green-dark);
  margin-bottom: 0.55rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tag {
  font-size: 0.58rem;
  background: rgba(0,163,224,0.12);
  color: var(--apc-blue-dark);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
}

.chart-box { position: relative; height: 200px; }
.chart-box.sm { height: 140px; }

.plat-list { list-style: none; }
.plat-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
}
.plat-list li:last-child { border-bottom: none; }
.plat-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block; margin-right: 0.4rem;
}

.srow {
  display: grid;
  grid-template-columns: 60px 1fr 40px;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  margin-bottom: 0.4rem;
}
.sbg { height: 8px; background: #EAE7E0; border-radius: 4px; overflow: hidden; }
.sfill { height: 100%; border-radius: 4px; }
.sfill.pos { background: var(--apc-green); }
.sfill.neu { background: #9CA3AF; }
.sfill.neg { background: var(--apc-red); }

.prog-row { margin-bottom: 0.55rem; }
.prog-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  margin-bottom: 0.2rem;
}
.prog-label span:last-child { font-weight: 600; color: var(--apc-green-dark); }
.prog-track { height: 10px; background: #EAE7E0; border-radius: 4px; overflow: hidden; }
.prog-fill { height: 100%; border-radius: 4px; background: var(--apc-green); }
.prog-fill.gold { background: var(--gold); }
.prog-fill.dark { background: var(--apc-green-dark); }
.prog-fill.blue { background: var(--apc-blue); }
.prog-fill.red { background: var(--apc-red); }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}
table.data th {
  text-align: left;
  padding: 0.45rem 0.5rem;
  background: var(--apc-green-dark);
  color: #fff;
  font-weight: 600;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
table.data td {
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid var(--border);
}
table.data tr:last-child td { border-bottom: none; }
.badge {
  display: inline-block;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 700;
}
.badge.high { background: #FDECEA; color: var(--apc-red); }
.badge.mid { background: #F5F0E0; color: #9A7B1A; }
.badge.low { background: #F0F0F0; color: var(--muted); }

.feed { list-style: none; max-height: 220px; overflow-y: auto; }
.fi {
  display: flex;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
}
.fi:last-child { border-bottom: none; }
.fico {
  width: 24px; height: 24px; border-radius: 5px;
  background: rgba(0,135,81,0.1); color: var(--apc-green);
  display: grid; place-items: center;
  font-size: 0.65rem; font-weight: 700; flex-shrink: 0;
}
.ftime { font-size: 0.58rem; color: var(--muted); margin-top: 1px; }

.al {
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  border-left: 3px solid;
}
.al.watch { background: #FBF6E9; border-color: var(--warn); }
.al.info { background: #E8F6FC; border-color: var(--apc-blue); }
.al .at { font-weight: 700; }
.al .ad { color: var(--muted); }
.al .atm { font-size: 0.58rem; color: var(--muted); margin-top: 2px; }

.gotv-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.ward-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.ward-card {
  background: var(--cream);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
}
.ward-card .wn { font-weight: 700; font-size: 0.75rem; color: var(--apc-green-dark); }
.ward-card .ws { font-size: 0.65rem; color: var(--muted); margin-top: 0.15rem; }
.ward-card .wv { font-size: 0.9rem; font-weight: 700; color: var(--apc-green); margin-top: 0.25rem; }

.plat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.pcard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.75rem;
}
.phead { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.5rem; }
.pico {
  width: 28px; height: 28px; border-radius: 6px;
  display: grid; place-items: center;
  font-size: 0.7rem; font-weight: 800; color: #fff;
}
.pname { font-weight: 700; font-size: 0.8rem; color: var(--apc-green-dark); }
.phandle { font-size: 0.6rem; color: var(--muted); }
.pstats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem; }
.sb { background: #F3F7F5; border-radius: 6px; padding: 0.3rem 0.4rem; }
.sb .sl { font-size: 0.55rem; color: var(--muted); text-transform: uppercase; }
.sb .sv { font-size: 0.85rem; font-weight: 700; color: var(--apc-green-dark); font-variant-numeric: tabular-nums; }

.report-controls {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
  margin-bottom: 0.75rem; padding: 0.65rem 0.85rem;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r);
}
.report-controls select, .report-controls button {
  padding: 0.4rem 0.7rem; border-radius: 6px; font-size: 0.75rem; font-weight: 600;
  border: 1px solid var(--border); cursor: pointer;
}
.report-controls button { background: var(--apc-green-dark); color: #fff; border-color: var(--apc-green-dark); }
.report-controls button.secondary { background: #E8F6FC; color: var(--apc-blue-dark); }
#report-output {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.15rem 1.35rem; max-width: 920px;
}
#report-output h2 { color: var(--apc-green-dark); font-size: 1.05rem; margin-bottom: 0.2rem; }
#report-output .meta-line { font-size: 0.7rem; color: var(--muted); margin-bottom: 0.85rem; }
#report-output h3 {
  font-size: 0.78rem; color: var(--apc-green); text-transform: uppercase;
  letter-spacing: 0.04em; margin: 0.85rem 0 0.35rem;
  border-bottom: 1px solid var(--border); padding-bottom: 0.2rem;
}
#report-output ul { margin-left: 1rem; margin-bottom: 0.4rem; }
#report-output li { margin-bottom: 0.2rem; font-size: 0.78rem; }
#report-output table { width: 100%; border-collapse: collapse; font-size: 0.75rem; margin: 0.4rem 0; }
#report-output th, #report-output td { border: 1px solid var(--border); padding: 0.35rem 0.45rem; text-align: left; }
#report-output th { background: var(--apc-green-dark); color: #fff; }
.task-high { color: var(--bad); font-weight: 700; }
.task-med { color: var(--warn); font-weight: 600; }
.task-low { color: var(--muted); }

.footer {
  text-align: center;
  padding: 0.5rem;
  font-size: 0.62rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--card);
  flex-shrink: 0;
}

/* KPI detail + SWOT */
.kpi-detail-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}
.kpi-detail {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.7rem;
  border-top: 2px solid var(--apc-blue);
}
.kpi-detail .l { font-size: 0.58rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.kpi-detail .v { font-size: 1.05rem; font-weight: 700; color: var(--apc-green-dark); margin-top: 0.15rem; font-variant-numeric: tabular-nums; }
.kpi-detail .s { font-size: 0.62rem; color: var(--muted); margin-top: 0.1rem; }

.swot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.swot-card {
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--card);
}
.swot-card .swot-head {
  padding: 0.55rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.swot-card.s .swot-head { background: var(--apc-green); }
.swot-card.w .swot-head { background: #B8860B; }
.swot-card.o .swot-head { background: var(--apc-blue-dark); }
.swot-card.t .swot-head { background: var(--apc-red); }
.swot-card ul { list-style: none; padding: 0.65rem 0.85rem 0.75rem; margin: 0; }
.swot-card li {
  font-size: 0.75rem;
  color: var(--ink);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.35;
}
.swot-card li:last-child { border-bottom: none; }
.swot-card li::before {
  content: "•";
  color: var(--apc-green);
  font-weight: 700;
  margin-right: 0.4rem;
}
.swot-card.t li::before { color: var(--apc-red); }
.swot-card.w li::before { color: #B8860B; }
.swot-note {
  font-size: 0.7rem;
  color: var(--muted);
  margin: -0.35rem 0 0.75rem;
}

/* Notifications */
.notif-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-end;
  margin-bottom: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,107,63,0.04);
}
.notif-field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 140px;
}
.notif-field label {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-left: 0.15rem;
}
.notif-field select {
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--apc-green-dark);
  background-color: #FAFAF7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23006B3F' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 10px;
  cursor: pointer;
  min-width: 150px;
}
.notif-field select:hover { border-color: var(--apc-blue); background-color: #fff; }
.notif-field select:focus {
  outline: none;
  border-color: var(--apc-green);
  box-shadow: 0 0 0 3px rgba(0,135,81,0.15);
  background-color: #fff;
}
.notif-toolbar .spacer { flex: 1; min-width: 0.5rem; }
.notif-toolbar .result-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--apc-green-dark);
  background: rgba(0,135,81,0.08);
  border: 1px solid var(--border);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  align-self: center;
  white-space: nowrap;
}
.notif-list { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.notif-card {
  display: grid;
  grid-template-columns: 6px 1fr auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.notif-card:hover {
  box-shadow: 0 4px 16px rgba(0,107,63,0.1);
  transform: translateY(-1px);
}
.notif-card .accent { width: 6px; min-height: 100%; }
.notif-card.prio-high .accent { background: var(--apc-red); }
.notif-card.prio-medium .accent { background: var(--gold); }
.notif-card.prio-low .accent { background: #6B7280; }
.notif-card .body { padding: 0.75rem 0.9rem; min-width: 0; }
.notif-card .top-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-bottom: 0.35rem;
}
.notif-card .plat-pill {
  font-size: 0.62rem; font-weight: 700; padding: 0.18rem 0.5rem; border-radius: 999px; color: #fff;
}
.notif-card .prio-pill {
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.04em;
  padding: 0.18rem 0.5rem; border-radius: 999px; text-transform: uppercase;
}
.prio-pill.high { background: #FDECEA; color: var(--apc-red); }
.prio-pill.medium { background: #FBF6E9; color: #9A7B1A; }
.prio-pill.low { background: #F3F4F6; color: #6B7280; }
.notif-card .title { font-size: 0.88rem; font-weight: 700; color: var(--apc-green-dark); margin-bottom: 0.2rem; }
.notif-card .desc { font-size: 0.75rem; color: var(--muted); line-height: 1.4; }
.notif-card .side {
  padding: 0.75rem 0.9rem; text-align: right; border-left: 1px solid var(--border);
  background: #F7FAF8; min-width: 110px;
  display: flex; flex-direction: column; justify-content: center; gap: 0.25rem;
}
.notif-card .side .time { font-size: 0.72rem; font-weight: 600; color: var(--apc-green-dark); font-variant-numeric: tabular-nums; }
.notif-card .side .vol { font-size: 0.65rem; color: var(--muted); }
.pager {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  margin-top: 0.85rem; padding: 0.5rem;
}
.pager button {
  background: var(--apc-green-dark); color: #fff; border: none; border-radius: 6px;
  padding: 0.4rem 0.85rem; font-size: 0.72rem; font-weight: 600; cursor: pointer;
}
.pager button:disabled { opacity: 0.35; cursor: default; }
.pager span { font-size: 0.75rem; color: var(--muted); }
.notif-empty {
  text-align: center; padding: 2rem 1rem; color: var(--muted); font-size: 0.85rem;
  background: var(--card); border: 1px dashed var(--border); border-radius: 12px;
}

/* Toast */
.toast-wrap {
  position: fixed; top: 64px; right: 1rem; z-index: 200;
  display: flex; flex-direction: column; gap: 0.5rem; max-width: 360px; pointer-events: none;
}
.toast {
  pointer-events: auto; color: #fff; border-radius: 10px; padding: 0.75rem 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  display: flex; align-items: flex-start; gap: 0.65rem;
  animation: toastIn 0.35s ease, toastOut 0.35s ease 59.5s forwards;
  font-size: 0.78rem; line-height: 1.35;
}
.toast .t-icon {
  width: 28px; height: 28px; min-width: 28px; border-radius: 6px;
  background: rgba(255,255,255,0.2); display: grid; place-items: center;
  font-weight: 800; font-size: 0.7rem;
}
.toast .t-body { flex: 1; }
.toast .t-body strong { display: block; font-size: 0.72rem; margin-bottom: 0.15rem; opacity: 0.95; }
.toast .t-dismiss {
  background: transparent; border: none; color: rgba(255,255,255,0.85);
  cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 0.15rem;
}
.toast .t-view {
  display: inline-block; margin-top: 0.35rem; font-size: 0.68rem; font-weight: 700;
  text-decoration: underline; color: #fff; cursor: pointer; background: none; border: none; padding: 0;
}
.toast .t-agg { font-size: 0.65rem; opacity: 0.9; margin-top: 0.2rem; }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(24px); } }

/* HEAR MAP */
.hear-toolbar {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
  margin-bottom: 0.75rem; padding: 0.65rem 0.85rem;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
}
.hear-toolbar .level-btn {
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--apc-green-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.12s;
}
.hear-toolbar .level-btn:hover { border-color: var(--apc-blue); }
.hear-toolbar .level-btn.active {
  background: var(--apc-green-dark);
  color: #fff;
  border-color: var(--apc-green-dark);
}
.hear-toolbar .layer-select {
  margin-left: auto;
  appearance: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 2rem 0.4rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--apc-green-dark);
  background: #FAFAF7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23006B3F' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.6rem center;
  background-size: 10px;
  cursor: pointer;
}
.hear-legend {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center;
  margin-bottom: 0.65rem; font-size: 0.7rem; color: var(--muted);
}
.hear-legend span { display: inline-flex; align-items: center; gap: 0.3rem; }
.hear-legend i {
  width: 12px; height: 12px; border-radius: 3px; display: inline-block;
}
.hear-map-stage {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem;
  min-height: 320px;
}
.hear-breadcrumb {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.55rem;
}
.hear-breadcrumb button {
  background: none; border: none; color: var(--apc-blue-dark);
  font-weight: 700; cursor: pointer; font-size: 0.72rem; padding: 0;
}
.hear-breadcrumb button:hover { text-decoration: underline; }
.hear-units {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
}
.hear-unit {
  border-radius: 10px;
  padding: 0.65rem 0.7rem;
  cursor: pointer;
  border: 2px solid transparent;
  color: #fff;
  min-height: 72px;
  transition: transform 0.12s, box-shadow 0.12s;
  position: relative;
}
.hear-unit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.hear-unit .hu-name { font-weight: 800; font-size: 0.78rem; }
.hear-unit .hu-meta { font-size: 0.65rem; opacity: 0.95; margin-top: 0.25rem; }
.hear-unit .hu-issue { font-size: 0.62rem; margin-top: 0.35rem; opacity: 0.9; }
.hear-unit.sent-pos { background: var(--apc-green); }
.hear-unit.sent-mix { background: #B8860B; }
.hear-unit.sent-neg { background: var(--apc-red); }
.hear-unit.sent-quiet { background: #7A858F; }
.hear-unit.silent-flag::after {
  content: "SILENT";
  position: absolute;
  top: 6px; right: 6px;
  font-size: 0.55rem;
  font-weight: 800;
  background: rgba(0,0,0,0.35);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}
.hear-side {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.65rem;
  margin-top: 0.75rem;
}
.silent-list li, .issue-place li {
  font-size: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}
.silent-list li:last-child, .issue-place li:last-child { border-bottom: none; }
.amb-dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  margin-right: 0.35rem;
}
.amb-dot.on { background: var(--apc-green); }
.amb-dot.off { background: var(--apc-red); }

@media (max-width: 1100px) {
  .kpi-row, .gotv-stats { grid-template-columns: repeat(2, 1fr); }
  .kpi-detail-row { grid-template-columns: repeat(3, 1fr); }
  .plat-grid, .ward-grid { grid-template-columns: repeat(2, 1fr); }
  .row-2, .row-3, .row-2eq, .swot-grid, .hear-side { grid-template-columns: 1fr; }
}
@media print {
  .topbar, .tabs, .report-controls, .footer, .toast-wrap { display: none !important; }
}
