:root {
  color-scheme: light;
  --bg: #f4f5f2; --surface: #ffffff; --surface-2: #f8f8f6; --border: #e1e2dc; --border-strong: #c9cac2;
  --text: #16181a; --text-2: #4d5156; --muted: #74787d;
  --brand: #0b6b45; --brand-ink: #ffffff; --brand-soft: #e3f1ea; --accent: #1f5fa8; --accent-soft: #e6eef8;
  --good: #137a3a; --good-soft: #e3f3e8; --warn: #9a6400; --warn-soft: #fbf0d9; --bad: #b42318; --bad-soft: #fbe6e3;
  --info: #1f5fa8; --info-soft: #e6eef8;
  --series-1: #2a78d6; --series-2: #1baf7a;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  --radius: 10px; --sidebar: 248px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111312; --surface: #1a1c1b; --surface-2: #202322; --border: #2c302e; --border-strong: #3c413e;
    --text: #eef0ec; --text-2: #c2c6c0; --muted: #9a9f99;
    --brand: #2f9e6c; --brand-ink: #06140d; --brand-soft: #173326; --accent: #6aa5ec; --accent-soft: #182a40;
    --good: #4cc27a; --good-soft: #15301f; --warn: #e3a82b; --warn-soft: #33270f; --bad: #f2786b; --bad-soft: #3a1a17;
    --info: #6aa5ec; --info-soft: #182a40; --series-1: #3987e5; --series-2: #199e70;
    --shadow: 0 1px 2px rgba(0,0,0,.4);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111312; --surface: #1a1c1b; --surface-2: #202322; --border: #2c302e; --border-strong: #3c413e;
  --text: #eef0ec; --text-2: #c2c6c0; --muted: #9a9f99;
  --brand: #2f9e6c; --brand-ink: #06140d; --brand-soft: #173326; --accent: #6aa5ec; --accent-soft: #182a40;
  --good: #4cc27a; --good-soft: #15301f; --warn: #e3a82b; --warn-soft: #33270f; --bad: #f2786b; --bad-soft: #3a1a17;
  --info: #6aa5ec; --info-soft: #182a40; --series-1: #3987e5; --series-2: #199e70;
  --shadow: 0 1px 2px rgba(0,0,0,.4);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; } h1 { font-size: 22px; font-weight: 650; } h2 { font-size: 16px; font-weight: 650; } h3 { font-size: 14px; font-weight: 650; }
p { margin: 0 0 8px; } small, .muted { color: var(--muted); } .t2 { color: var(--text-2); }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }

/* layout */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 16px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.brand { display: flex; gap: 10px; align-items: center; padding: 4px 8px 16px; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, #0b6b45 0 50%, #1f5fa8 50%); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; flex: none; }
.brand b { display: block; font-size: 14px; } .brand span { font-size: 11.5px; color: var(--muted); }
.nav-group { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 12px 10px 4px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text-2); font-weight: 500; }
.nav a:hover { background: var(--surface-2); text-decoration: none; }
.nav a.active { background: var(--brand-soft); color: var(--brand); }
.nav a .count { margin-left: auto; background: var(--bad); color: #fff; border-radius: 10px; font-size: 11px; padding: 0 7px; }
.sidebar .me { margin-top: auto; border-top: 1px solid var(--border); padding: 12px 8px 0; font-size: 12.5px; }
.main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 12px 24px; border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 5; }
.topbar .menu { display: none; }
.content { padding: 24px; max-width: 1240px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--text-2); }

/* components */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.card-b { padding: 16px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

.stat { padding: 16px; } .stat .label { color: var(--text-2); font-size: 12.5px; } .stat .value { font-size: 28px; font-weight: 650; letter-spacing: -.01em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: 12px; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 550; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); } .btn.primary:hover { filter: brightness(1.07); }
.btn.danger { color: var(--bad); border-color: var(--bad); } .btn.small { padding: 4px 10px; font-size: 12.5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.link { border: 0; background: none; color: var(--accent); padding: 0; }

label.f { display: block; margin-bottom: 12px; } label.f > span { display: block; font-weight: 550; margin-bottom: 4px; font-size: 13px; }
input, select, textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
input[type=checkbox] { width: auto; } textarea { min-height: 80px; resize: vertical; }
.hint { font-size: 12px; color: var(--muted); margin-top: 3px; }

table.t { width: 100%; border-collapse: collapse; }
.t th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-2); padding: 8px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.t td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.t tr:last-child td { border-bottom: 0; } .t tr.click { cursor: pointer; } .t tr.click:hover td { background: var(--surface-2); }
.t .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 550; white-space: nowrap; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.badge.good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.badge.info { background: var(--info-soft); color: var(--info); border-color: transparent; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 8px 12px; color: var(--text-2); border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 550; }
.tabs a.active { color: var(--brand); border-color: var(--brand); } .tabs a:hover { text-decoration: none; color: var(--text); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; } .timeline li::before { content: ""; position: absolute; left: 5px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.timeline li::after { content: ""; position: absolute; left: 8.5px; top: 18px; bottom: 0; width: 1px; background: var(--border); } .timeline li:last-child::after { display: none; }
.timeline li.internal::before { background: var(--muted); }

.steps { display: flex; gap: 0; margin: 4px 0 8px; }
.steps div { flex: 1; text-align: center; font-size: 11.5px; color: var(--muted); position: relative; padding-top: 22px; }
.steps div::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 3px; background: var(--border); }
.steps div::after { content: ""; position: absolute; top: 2px; left: calc(50% - 6px); width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-strong); }
.steps div.done { color: var(--text); } .steps div.done::before { background: var(--brand); } .steps div.done::after { background: var(--brand); border-color: var(--brand); }
.steps div.now { color: var(--brand); font-weight: 650; } .steps div.now::after { border-color: var(--brand); background: var(--brand-soft); }

.notice { padding: 12px 14px; border-radius: 8px; background: var(--info-soft); color: var(--text); border-left: 3px solid var(--info); margin-bottom: 12px; }
.notice.warn { background: var(--warn-soft); border-color: var(--warn); } .notice.bad { background: var(--bad-soft); border-color: var(--bad); } .notice.good { background: var(--good-soft); border-color: var(--good); }

.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 12px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-word; }
.doclist { list-style: none; margin: 0; padding: 0; } .doclist li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.doclist li > div { flex: 1; min-width: 0; } .doclist li > .badge, .doclist li > .btn { flex: none; }
@media (max-width: 520px) { .doclist li { flex-wrap: wrap; } } .doclist li:last-child { border: 0; }

.empty { padding: 32px; text-align: center; color: var(--muted); }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; z-index: 100; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.toast.err { background: var(--bad); color: #fff; }
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: var(--surface); border-radius: 12px; width: min(560px, 100%); max-height: 90vh; overflow: auto; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.modal .card-b { padding: 20px; }

.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.auth .hero {
  position: relative; isolation: isolate; overflow: hidden; min-height: 530px;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  gap: 24px; padding: clamp(24px, 5vw, 72px); color: #173d39; background: #fbf3df;
}
.auth .hero::before {
  position: absolute; inset: 0; z-index: -1; content: "";
  background: linear-gradient(90deg, #fbf3dfe8, #fbf3df8c 36%, transparent 68%),
    url("zanzibar-waterfront.png") right center / cover no-repeat;
}
.auth .auth-brand { padding: 0; color: #173d39; }
.auth .auth-brand b { color: inherit; }
.auth .auth-brand .brand-mark { color: #fff; background: #0b6b54; box-shadow: 0 5px 12px #24554835; }
.auth-intro { max-width: 440px; }
.auth .hero h1 { margin: 0 0 14px; color: #123d37; font-size: clamp(37px, 5vw, 74px); letter-spacing: -.065em; line-height: .99; }
.auth-intro p { max-width: 285px; margin: 0; color: #234d46; font-size: 15px; }
.auth .hero.has-role-art { background: linear-gradient(145deg, #fbf6e9, #edf7f2); }
.auth .hero.has-role-art::before { background: none; }
.auth-role-intro { width: 100%; }
.auth-role-intro[hidden] { display: none; }
.auth-role-copy { margin-bottom: 15px; }
.auth .auth-role-copy h1 { font-size: clamp(32px, 4vw, 62px); margin-bottom: 8px; }
.auth-role-copy p { max-width: 440px; margin: 0; color: #234d46; font-size: 15px; }
.auth-role-photo { margin: 0; }
.auth-role-photo figcaption { margin-top: 9px; color: #31554e; font-size: 11px; }
.auth-role-photo figcaption a { color: inherit; }
.auth-role-art { display: block; width: 100%; height: auto; max-height: min(48vh, 530px); aspect-ratio: 3 / 2;
  object-fit: cover; border: 1px solid #fff; border-radius: 17px; box-shadow: 0 18px 36px #2249432b; background: #f9f5e9; }
.auth-links { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 7px 12px; background: #fff8; border-radius: 8px; font-size: 12px; }
.auth-links a { color: #18574a; font-weight: 700; }
.auth .panel { display: grid; place-items: center; align-content: center; gap: 12px; padding: 32px 20px; background: radial-gradient(ellipse at top right, #dff2eb, transparent 65%), #f8faf7; }
.auth .panel .card { width: min(440px, 100%); border-radius: 16px; box-shadow: 0 3px 8px #22494310, 0 22px 48px #22494324; }

.chart { position: relative; } .chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .tip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 6px; padding: 6px 8px; font-size: 12px; box-shadow: var(--shadow); white-space: nowrap; display: none; z-index: 2; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-2); } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.bar-inline { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; min-width: 60px; } .bar-inline > div { height: 100%; background: var(--series-1); border-radius: 3px; }

/* Intelligence dashboard – "command centre" sci-fi styling (visual only) */
.intel-scifi { --ink: #d6f3ff; --cyan: #35e3ff; --grid: rgba(53,227,255,.08); position: relative; }
.intel-scifi { background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 100% 26px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 26px 100%,
    radial-gradient(1200px 400px at 80% -10%, rgba(53,227,255,.14), transparent 60%),
    linear-gradient(160deg, #06121f, #081a2b 55%, #04101b);
  border: 1px solid rgba(53,227,255,.25); border-radius: 14px; padding: 18px; margin: -4px 0; box-shadow: inset 0 0 60px rgba(4,16,27,.8), 0 0 0 1px rgba(53,227,255,.05); color: var(--ink); }
.intel-scifi h1, .intel-scifi h2, .intel-scifi h3 { color: #eafcff; letter-spacing: .02em; }
.intel-scifi .page-head p, .intel-scifi .muted, .intel-scifi small { color: #8fb6cc !important; }
.intel-scifi .badge.info { background: rgba(53,227,255,.14); color: var(--cyan); border: 1px solid rgba(53,227,255,.4); text-transform: uppercase; letter-spacing: .12em; font-size: 10.5px; }
.intel-scifi .card { background: rgba(10,26,42,.72); border: 1px solid rgba(53,227,255,.22); box-shadow: 0 0 24px rgba(0,0,0,.35); backdrop-filter: blur(2px); }
.intel-scifi .card-h { border-bottom-color: rgba(53,227,255,.18); }
.intel-scifi .card-h h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--cyan); }
.intel-scifi .card.stat { background: rgba(10,26,42,.72); } .intel-scifi .stat .value { color: #eafcff; text-shadow: 0 0 14px rgba(53,227,255,.5); } .intel-scifi .stat .label { color: #8fb6cc; }
.intel-scifi .t th { background: rgba(53,227,255,.07); color: #bfe6f5; border-bottom-color: rgba(53,227,255,.18); }
.intel-scifi .t td { border-bottom-color: rgba(53,227,255,.1); } .intel-scifi .t tr.click:hover td { background: rgba(53,227,255,.08); }
.intel-scifi a { color: var(--cyan); } .intel-scifi .btn { background: rgba(53,227,255,.08); color: var(--ink); border-color: rgba(53,227,255,.35); }
.intel-scifi .btn:hover { background: rgba(53,227,255,.18); } .intel-scifi .btn.primary { background: linear-gradient(180deg, #0bbbe0, #0893b4); border-color: #35e3ff; color: #04121b; }
.intel-scifi input, .intel-scifi select, .intel-scifi textarea { background: rgba(4,16,27,.7); color: var(--ink); border-color: rgba(53,227,255,.3); }
.intel-scifi .bar-inline { background: rgba(53,227,255,.1); } .intel-scifi .bar-inline > div { background: var(--cyan); }
.intel-scifi .tbar { background: rgba(53,227,255,.1); } .intel-scifi .chart svg line { stroke: rgba(53,227,255,.14); }
.intel-scifi .badge { background: rgba(53,227,255,.1); color: #bfe6f5; border-color: rgba(53,227,255,.25); }
.intel-scifi .badge.bad { background: rgba(255,90,90,.16); color: #ff9a9a; } .intel-scifi .badge.warn { background: rgba(255,196,62,.16); color: #ffd98a; } .intel-scifi .badge.good { background: rgba(53,227,255,.14); color: #8ff0cf; }
.intel-scifi .empty { color: #6f97ad; }
@keyframes intel-scan { 0% { transform: translateY(0); opacity: .5; } 100% { transform: translateY(26px); opacity: .5; } }

/* Zanzibar identity strip – the colours of the Zanzibar flag (blue, black, green) across the top of every screen */
body::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 60;
  background: linear-gradient(90deg, #0a72ba 0 33.34%, #111 33.34% 66.67%, #1eb53a 66.67% 100%); }
.topbar { top: 4px; } .sidebar { padding-top: 20px; } .auth { padding-top: 4px; }

/* language selector */
.lang { display: inline-flex; align-items: center; gap: 4px; }
.lang select { width: auto; max-width: 190px; padding: 5px 8px; font-size: 12.5px; border-radius: 999px; background: var(--surface-2); }
.auth .panel { position: relative; } .lang-bar { position: absolute; top: 14px; right: 16px; }
/* hide the translator's own toolbar and hover pop-ups */
.goog-te-banner-frame, iframe.skiptranslate, .goog-te-balloon-frame, #goog-gt-tt, .goog-tooltip, .goog-te-spinner-pos { display: none !important; }
body { top: 0 !important; } .goog-text-highlight { background: none !important; box-shadow: none !important; }
@media (max-width: 860px) { .lang select { max-width: 120px; } .lang-bar { position: static; display: flex; justify-content: flex-end; margin-bottom: 8px; } }

/* search */
.gs { position: relative; width: min(420px, 46vw); }
.gs input { padding: 7px 12px; border-radius: 999px; background: var(--surface-2); }
.gs-res { position: absolute; right: 0; top: calc(100% + 6px); width: min(520px, 92vw); max-height: 70vh; overflow: auto; background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.18); z-index: 40; padding: 6px; }
.gs-group { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px 4px; }
.gs-item { display: flex; gap: 10px; align-items: flex-start; padding: 7px 10px; border-radius: 8px; color: var(--text); }
.gs-item:hover { background: var(--surface-2); text-decoration: none; } .gs-item small { display: block; color: var(--muted); font-size: 12px; } .gs-item b { font-weight: 600; }
.gs-ic { flex: none; width: 22px; text-align: center; color: var(--brand); }
.gs-all { display: block; text-align: center; padding: 8px; border-top: 1px solid var(--border); margin-top: 4px; font-weight: 600; }
.gs-empty { padding: 14px; text-align: center; color: var(--muted); }
.gs-list .gs-item { border-bottom: 1px solid var(--border); border-radius: 0; } .gs-list .gs-item:last-child { border: 0; }
@media (max-width: 860px) { .hide-sm { display: none; } .gs { width: 100%; } }

/* ministries & departments directory and infographics */
.ig-tile { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; text-align: left; box-shadow: var(--shadow); }
.ig-tile:hover { border-color: var(--brand); background: var(--brand-soft); }
.ig-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; background: var(--brand); color: #fff; }
.ig-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { display: inline-flex; flex-direction: column; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface-2); font-size: 12px; color: var(--text); cursor: pointer; font-family: inherit; text-align: left; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.big { border-radius: 10px; padding: 8px 12px; font-size: 13px; font-weight: 600; } .chip.big small { font-weight: 400; color: var(--muted); font-size: 11.5px; }
.ig-role { font-size: 15px; margin: 10px 0 0; }
.ig-quote { border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 8px; padding: 10px 12px; } .ig-quote p { margin: 4px 0 0; font-style: italic; }
.ig-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.ig-kpi { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--surface-2); }
.ig-kpi .v { font-size: 24px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; } .ig-kpi .l { font-size: 12px; color: var(--text-2); } .ig-kpi .s { font-size: 11.5px; color: var(--muted); }
.ig-delivery { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.ig-delivery .l { font-size: 12px; color: var(--text-2); margin-bottom: 4px; } .ig-big { font-size: 26px; font-weight: 700; }
.ig-ring { --p: 0; width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; margin: 4px 0;
  background: conic-gradient(var(--good) calc(var(--p) * 1%), var(--surface-2) 0); }
.ig-ring span { width: 58px; height: 58px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 700; }
@media (max-width: 700px) { .ig-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* service timer */
.tmr small { white-space: nowrap; }
.tbar { height: 8px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.tbar > div { height: 100%; background: var(--good); transition: width .8s linear; }
.tbar.warn > div { background: var(--warn); } .tbar.bad > div { background: var(--bad); } .tbar.info > div { background: var(--info); }
.clock { font: 650 34px/1.1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.timer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.mile { list-style: none; margin: 0; padding: 0; } .mile li { display: flex; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.mile li:last-child { border: 0; } .mile li b { flex: 1; font-weight: 550; } .mile li .mono { color: var(--text-2); }
@media (max-width: 860px) { .timer-grid { grid-template-columns: 1fr; } .clock { font-size: 28px; } }

.graph { width: 100%; min-height: 380px; background: var(--surface-2); border-radius: 8px; }
.graph text { font-size: 11px; fill: var(--text); } .graph line { stroke: var(--border-strong); stroke-width: 1.5; }

.phone { width: 300px; max-width: 100%; margin: 0 auto; border: 10px solid #1d1f20; border-radius: 34px; background: #0f1a14; color: #e7f5ec; padding: 22px 16px; min-height: 520px; font-family: ui-monospace, monospace; }
.phone .scr { background: #172a20; border-radius: 10px; padding: 14px; margin-bottom: 12px; font-size: 13px; }
.phone input { background: #0f1a14; color: #e7f5ec; border-color: #2f5a43; text-align: center; letter-spacing: .4em; font-size: 18px; }

.intel-console {
  padding: clamp(12px, 2vw, 24px);
  border: 1px solid #245367;
  border-radius: 14px;
  background-color: #081722;
  background-image: linear-gradient(90deg, #49d9ef0d 1px, transparent 1px),
    linear-gradient(#49d9ef0d 1px, transparent 1px);
  background-size: 24px 24px;
  color: #e9faff;
}
.intel-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.intel-header h1 { margin: 3px 0; font-size: clamp(23px, 3vw, 34px); }
.intel-label { margin: 0; color: #77e9f7; font: 700 12px ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.intel-subtitle, .intel-query p { margin: 0; color: #b5cbd5; }
.intel-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 12px; border: 1px solid #59c6d8; border-radius: 6px;
  background: #143343; color: #d5faff; text-decoration: none; font: inherit; cursor: pointer;
}
.intel-action:hover { background: #225064; color: #fff; }
.intel-lookup { margin-bottom: 16px; padding: 10px 14px; border: 1px solid #36596b; border-radius: 8px; background: #102534; }
.intel-lookup summary { color: #a3edf7; cursor: pointer; font-weight: 700; }
.intel-query { display: grid; gap: 8px; margin-top: 12px; max-width: 640px; }
.intel-query-fields { display: flex; flex-wrap: wrap; gap: 8px; }
.intel-query input { flex: 1 1 220px; min-width: 0; width: auto; background: #081722; color: #e9faff; border-color: #527584; }
.intel-query input::placeholder { color: #a6bdc9; }
.intel-query p { font-size: 13px; }
.intel-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; margin-top: 12px; }
.intel-tools > * { margin: 0; padding: 12px; border: 1px solid #36596b; border-radius: 6px; align-content: start; }
.intel-tools h2 { margin: 0 0 4px; font-size: 16px; color: #e9faff; }
.intel-tools select { background: #081722; color: #e9faff; border-color: #527584; }
.intel-tools a { color: #a3edf7; }
.intel-tools [role="status"]:empty { display: none; }
.intel-evidence { margin: 10px 0 0; padding-left: 22px; }
.intel-evidence li + li { margin-top: 10px; }
.intel-evidence small { color: #b5cbd5; }
.intel-biometric { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.intel-biometric figure { margin: 0; text-align: center; }
.intel-biometric svg { width: 100%; max-width: 104px; height: auto; }
.intel-biometric figcaption { font-size: 12px; color: #b5cbd5; }
.intel-console [aria-current="page"] { background: #225064; }
.intel-priority { display: inline-block; padding: 3px 8px; border: 1px solid currentColor; border-radius: 5px; color: #9fe1c7; font-size: 12px; font-weight: 700; }
.intel-priority[data-level="medium"] { color: #ffd78e; }
.intel-priority[data-level="high"] { color: #ffb2b9; }
.intel-workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(180px, 28vw, 300px); gap: 14px; align-items: start; }
.intel-workspace-grid > * { min-width: 0; }
.intel-rail { display: grid; gap: 10px; }
.intel-rail .intel-lookup { margin: 0; }
.intel-rail-nav { display: grid; gap: 3px; }
.intel-rail-nav a { display: flex; justify-content: space-between; align-items: center; gap: 7px; padding: 7px 0; color: #c3f5fb; border-bottom: 1px solid #36596b; text-decoration: none; }
.intel-rail-nav a:last-child { border-bottom: 0; }
.intel-rail-nav a:hover { text-decoration: underline; }
.intel-rail .intel-tools { grid-template-columns: minmax(0, 1fr); }
.intel-social h2, .intel-workspace-grid h2 { margin: 5px 0; font-size: 18px; }
.intel-console .intel-query select { min-width: 0; background: #081722; color: #e9faff; border-color: #527584; }
.intel-social-post { margin-top: 10px; padding: 10px; border: 1px solid #36596b; border-radius: 6px; }
.intel-social-post p { margin: 5px 0; }
.intel-social-post small { color: #b5cbd5; }
.intel-results-table { overflow-x: auto; }
.intel-results-table table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.intel-results-table th, .intel-results-table td { padding: 7px; border-bottom: 1px solid #36596b; }
@media (max-width: 520px) { .intel-workspace-grid { grid-template-columns: minmax(0, 1fr); } }
.fraud-board { margin: 0 0 18px; padding: clamp(14px, 2vw, 24px); background: #f4f9ff; border: 1px solid #c9d9eb; border-radius: 16px; color: #142944; }
.fraud-board-header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; }
.fraud-board-header h2 { margin: 4px 0; font-size: clamp(24px, 3vw, 33px); letter-spacing: -.035em; }
.fraud-board-header p, .fraud-evidence-panel p { margin: 0 0 8px; }
.fraud-kicker { color: #315f92; font: 700 12px ui-monospace, monospace; letter-spacing: .08em; }
.fraud-demo-badge { padding: 5px 9px; background: #e3efff; color: #1d4e82; border-radius: 5px; font-size: 11px; font-weight: 800; }
.fraud-map-scroll { overflow-x: auto; border: 1px solid #d6e5f2; border-radius: 10px; margin: 10px 0; }
.fraud-map { position: relative; min-width: 710px; height: 292px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 92px 78px 86px; column-gap: 11.11%; padding: 22px 2.22% 0; box-sizing: border-box; background: radial-gradient(circle, #bad0e4 1px, #f9fcff 1px) 0 0 / 16px 16px; }
.fraud-lines { position: absolute; inset: 0; width: 100%; height: 100%; stroke: #4972a5; stroke-width: 2; pointer-events: none; }
.fraud-lines marker path { stroke: none; }
.fraud-node { position: relative; grid-row: 1; display: grid; align-content: center; gap: 4px; text-align: left; padding: 9px 11px; border: 1px solid #92b2d6; border-left: 4px solid #427bb5; border-radius: 9px; background: #fff; color: #142944; box-shadow: 0 3px 9px #355b8115; cursor: pointer; }
.fraud-node span { color: #335f8d; font: 700 11px ui-monospace, monospace; }
.fraud-node strong { font-size: 14px; line-height: 1.2; }
.fraud-node small { color: #4a5e75; }
.fraud-node[aria-pressed="true"] { outline: 2px solid #2d69a8; outline-offset: 2px; background: #eaf4ff; }
.fraud-node[data-fraud-node="alert"] { grid-column: 1; border-left-color: #b94a59; }
.fraud-node[data-fraud-node="company"] { grid-column: 2; }
.fraud-node[data-fraud-node="bank"] { grid-column: 3; border-left-color: #218677; }
.fraud-node[data-fraud-node="tax"], .fraud-node[data-fraud-node="wealth"] { grid-row: 3; border-left-color: #ae6b24; }
.fraud-node[data-fraud-node="tax"] { grid-column: 2; }
.fraud-node[data-fraud-node="wealth"] { grid-column: 3; }
.fraud-edge-label { position: absolute; transform: translateX(-50%); background: #f9fcff; color: #315678; padding: 0 3px; font-size: 11px; font-weight: 700; white-space: nowrap; pointer-events: none; }
.fraud-edge-a { left: 32.2%; top: 43px; }
.fraud-edge-b { left: 67.7%; top: 43px; }
.fraud-edge-tax { left: 50%; top: 147px; }
.fraud-edge-wealth { left: 85.5%; top: 147px; }
.fraud-evidence-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; padding: 12px 15px; border-radius: 9px; background: #fff; border: 1px solid #d6e5f2; }
.fraud-evidence-panel h3 { margin: 0 0 5px; font-size: 15px; }
.fraud-evidence-panel small, .fraud-board-note { color: #45627b; }
.fraud-evidence-panel ul { margin: 0; padding-left: 18px; }
.fraud-board-note { margin: 10px 0 0; font-size: 12px; }
.fraud-replay { margin: 12px 0; padding: 12px 14px; background: #edf5ff; border: 1px solid #cadced; border-radius: 9px; }
.fraud-replay h3, .fraud-geography h3 { margin: 4px 0 8px; color: #142944; }
.fraud-controls { display: flex; flex-wrap: wrap; gap: 6px; }
.fraud-controls button { padding: 5px 9px; border: 1px solid #9bbad9; background: #fff; border-radius: 6px; color: #173d67; cursor: pointer; }
.fraud-controls button:disabled { opacity: .55; cursor: default; }
.fraud-controls #fraud-play { background: #205b92; color: #fff; border-color: #205b92; }
.fraud-timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(116px, 1fr)); gap: 6px; }
.fraud-timeline button { display: grid; gap: 4px; align-content: start; padding: 7px; text-align: left; border: 1px solid #b6cde4; border-top: 3px solid #9dbad7; border-radius: 6px; color: #173d67; background: #fff; cursor: pointer; }
.fraud-timeline button span { font: 700 11px ui-monospace, monospace; }
.fraud-timeline button strong { font-size: 12px; line-height: 1.2; }
.fraud-timeline button[aria-current="step"] { background: #dceeff; border-top-color: #2267a4; }
#fraud-replay-status { margin: 9px 0 0; letter-spacing: 0; }
.fraud-investigation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fraud-investigation-grid .fraud-evidence-panel { grid-template-columns: minmax(0, 1fr); align-content: start; }
.fraud-geography { padding: 12px 15px; background: #fff; border: 1px solid #d6e5f2; border-radius: 9px; }
.fraud-geography p { margin: 0 0 6px; }
.fraud-geography iframe { display: block; width: 100%; height: 240px; border: 1px solid #cbdbe8; border-radius: 6px; background: #e7f0f8; }
.fraud-geography a { color: #225c94; }
.investigation-dashboard-map { display: block; width: 100%; height: 190px; margin: 8px 0; border: 1px solid #9bbad9; border-radius: 8px; background: #e7f0f8; }
.ministry-priorities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.ministry-priorities > .card { border-top: 3px solid #2a8174; }
@media (max-width: 800px) { .ministry-priorities { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .fraud-investigation-grid { grid-template-columns: minmax(0, 1fr); } }
.intel-frame { display: block; width: 100%; height: max(500px, calc(100dvh - 245px)); border: 1px solid #36596b; border-radius: 8px; background: #fff; }

@media (max-width: 1080px) { .split { grid-template-columns: 1fr; } .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 30; left: 0; width: 270px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
  .sidebar.open { transform: none; }
  .topbar .menu { display: inline-flex; }
  .content { padding: 16px; } .topbar { padding: 10px 16px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth .hero { min-height: 330px; padding: 24px 20px; }
  .auth .hero::before { background-position: right 68%; }
  .auth-role-art { max-height: none; }
  .kv { grid-template-columns: 1fr; } .kv dt { margin-top: 6px; }
}
@media (max-width: 520px) { .g4 { grid-template-columns: 1fr 1fr; } .stat .value { font-size: 22px; } }
@media print { .sidebar, .topbar, .no-print { display: none !important; } .shell { display: block; } }
