@import url("fonts.css");
/* Layout concept: an OPMCM-style office band (deep-blue name block, skyline, BS date, flag) over a
   white navigation bar for the public site; signed-in users work at a desk: blue top band, white
   sidebar, pale-blue canvas, summary first, queues below. Single light theme by choice (government
   portal convention); every colour is set explicitly. */
:root {
  /* colour, taken from opmcm.gov.np */
  --gov: #0447af;          /* theme blue: links, primary actions */
  --gov-band: #2460b9;     /* header band */
  --gov-deep: #293e92;     /* office block, footer, sidebar active */
  --gov-ink: #172554;      /* headings on light */
  --crimson: #cc1424;      /* secondary: notices, emphasis, destructive */
  --tint: #f4f8ff;         /* page canvas */
  --tint-2: #d6e7ff;       /* selected rows, chips */
  --tint-3: #eaf2ff;
  /* blue-biased neutrals */
  --ink: #1b2540;
  --ink-2: #4b5675;
  --ink-3: #74809e;
  --line: #d9e1ef;
  --line-2: #e8eef8;
  --surface: #ffffff;
  --surface-2: #f8fbff;
  --hover: #f3f8ff;
  --muted-bg: #eef1f6;
  --input-line: #b8c4da;
  --map-land: #e3ecfb;
  --link: #0447af;
  --link-hover: #293e92;
  --tip-bg: #172554;
  --orange: #9a3f00; --orange-bg: #ffeadb;
  /* status (separate from brand) */
  --ok: #12703f;   --ok-bg: #e5f4ec;
  --warn: #8a5300; --warn-bg: #fff2d9;
  --bad: #b3141f;  --bad-bg: #fde8ea;
  --info: #0447af; --info-bg: #e7f0ff;
  /* type */
  --f-body: "Mukta", "Noto Sans Devanagari", system-ui, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --t-xs: .78rem; --t-sm: .875rem; --t-md: 1rem; --t-lg: 1.2rem; --t-xl: 1.55rem; --t-2xl: 2.1rem; --t-3xl: 2.8rem;
  --r: 6px; --r-lg: 10px;
  --shadow: 0 1px 2px rgba(23, 37, 84, .06), 0 4px 14px rgba(23, 37, 84, .06);
  --fs: 16px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --gov-ink: #dce6ff; --tint: #0b1324; --tint-2: #1c3363; --tint-3: #172a52;
  --ink: #e4eaf7; --ink-2: #aebad4; --ink-3: #8390ad; --line: #24345a; --line-2: #1c2a4a;
  --surface: #121d36; --surface-2: #0f1930; --hover: #17264a; --muted-bg: #1f2b47; --input-line: #34466f;
  --map-land: #1d3263; --link: #8ab4ff; --link-hover: #b3ceff; --tip-bg: #000814;
  --ok: #6fd39b; --ok-bg: #11331f; --warn: #f3c56b; --warn-bg: #352708; --bad: #ff8f98; --bad-bg: #3a1218;
  --info: #8ab4ff; --info-bg: #14284f; --orange: #ffad75; --orange-bg: #3a2010;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px rgba(0,0,0,.35);
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --gov-ink: #dce6ff; --tint: #0b1324; --tint-2: #1c3363; --tint-3: #172a52;
  --ink: #e4eaf7; --ink-2: #aebad4; --ink-3: #8390ad; --line: #24345a; --line-2: #1c2a4a;
  --surface: #121d36; --surface-2: #0f1930; --hover: #17264a; --muted-bg: #1f2b47; --input-line: #34466f;
  --map-land: #1d3263; --link: #8ab4ff; --link-hover: #b3ceff; --tip-bg: #000814;
  --ok: #6fd39b; --ok-bg: #11331f; --warn: #f3c56b; --warn-bg: #352708; --bad: #ff8f98; --bad-bg: #3a1218;
  --info: #8ab4ff; --info-bg: #14284f; --orange: #ffad75; --orange-bg: #3a2010;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px rgba(0,0,0,.35);
  color-scheme: dark;
}
:root:not([data-theme="light"]) .leaflet-tile-pane { }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9); } }
:root[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9); }
html.fs-sm { --fs: 15px; } html.fs-lg { --fs: 18px; }

* { box-sizing: border-box; }
html { font-size: var(--fs); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-size: var(--t-md); line-height: 1.55; color: var(--ink); background: var(--tint); }
h1, h2, h3, h4 { color: var(--gov-ink); line-height: 1.25; margin: 0; font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--t-xl); font-weight: 800; }
h2 { font-size: var(--t-lg); }
h3 { font-size: var(--t-md); font-weight: 600; }
p { margin: 0 0 .75em; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid #ffb703; outline-offset: 2px; border-radius: 2px; }
.sprite { display: none; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mono, .uin { font-family: var(--f-mono); font-weight: 500; letter-spacing: .01em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); } .faint { color: var(--ink-3); } .small { font-size: var(--t-sm); } .xs { font-size: var(--t-xs); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #ffb703; color: #000; padding: 8px 14px; font-weight: 700; }
.skip:focus { left: 8px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.prewrap { white-space: pre-line; }
.stack-sm > * + * { margin-top: 8px; }

/* ===================================================================== */
/* Masthead (public)                                                      */
/* ===================================================================== */
.band { background: var(--gov-band); color: #fff; position: relative; overflow: hidden; }
.band .skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; color: #8fb3ef; opacity: .55; pointer-events: none; }
.band-inner { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: stretch; min-height: 118px; }
.office { background: var(--gov-deep); display: flex; align-items: center; gap: 14px; padding-block: 16px; padding-right: 32px; text-decoration: none; color: #fff; }
.office:hover { color: #fff; }
.office .mark { width: 62px; height: 62px; flex: none; }
.office { position: relative; }
.office::before { content: ""; position: absolute; right: 100%; top: 0; bottom: 0; width: 100vw; background: var(--gov-deep); }
.office > span { display: grid; }
.office .pre { font-size: var(--t-xs); opacity: .85; letter-spacing: .02em; }
.office .name { font-size: 1.35rem; font-weight: 800; line-height: 1.15; }
.office .name-en { font-size: var(--t-sm); font-weight: 500; opacity: .9; }
.band-notice { display: flex; align-items: center; gap: 12px; padding: 0 28px; font-size: var(--t-sm); min-width: 0; }
.band-notice b { font-weight: 700; white-space: nowrap; padding-right: 12px; border-right: 1px solid rgba(255,255,255,.5); }
.band-notice a { color: #fff; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.band-notice a:hover { text-decoration: underline; }
.band-date { display: flex; align-items: center; gap: 12px; padding-left: 16px; font-size: var(--t-sm); line-height: 1.35; }
.band-date .flag { width: 34px; height: auto; flex: none; }
.band-date strong { font-weight: 600; display: block; }
@media (max-width: 1080px) { .band-notice { display: none; } .band-inner { grid-template-columns: 1fr auto; } }
.office::after { content: ""; position: absolute; left: 100%; top: 0; bottom: 0; width: 0; }
@media (max-width: 680px) {
  .band-inner { grid-template-columns: 1fr; min-height: 0; }
  .office { padding-right: 0; }
  .office::after { width: 100vw; background: var(--gov-deep); }
  .office .mark { width: 46px; height: 46px; }
  .office .name { font-size: 1.1rem; }
  .band-date { padding: 8px 0; }
}

.mainnav { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.mainnav-inner { display: flex; align-items: center; gap: 18px; min-height: 60px; }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.mainnav ul a { display: block; padding: 8px 12px; color: var(--ink); text-decoration: none; font-weight: 600; border-radius: var(--r); }
.mainnav ul a:hover { background: var(--tint); color: var(--link); }
.mainnav ul a[aria-current="page"] { color: var(--link); box-shadow: inset 0 -3px 0 var(--crimson); border-radius: 0; }
.navsearch { margin-left: auto; display: flex; align-items: center; background: var(--tint); border: 1px solid var(--line); border-radius: 999px; padding: 2px 4px 2px 14px; }
.navsearch input { border: 0; background: transparent; padding: 6px 4px; font: inherit; font-size: var(--t-sm); width: 200px; color: var(--ink); }
.navsearch input:focus { outline: none; }
.navsearch:focus-within { outline: 3px solid #ffb703; }
.navsearch button { border: 0; background: var(--gov); color: #fff; border-radius: 999px; width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer; }
.nav-actions { display: flex; gap: 8px; }
.fs-tools { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.fs-tools button { border: 0; background: var(--surface); font: inherit; font-size: var(--t-xs); font-weight: 600; padding: 4px 8px; cursor: pointer; color: var(--ink-2); }
.fs-tools button[aria-pressed="true"] { background: var(--gov); color: #fff; }
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 6px 10px; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink); }
@media (max-width: 920px) {
  .mainnav-inner { flex-wrap: wrap; padding-block: 8px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 6px; }
  .mainnav ul { display: none; width: 100%; flex-direction: column; order: 5; }
  .mainnav.open ul { display: flex; }
  .navsearch { order: 4; width: 100%; margin: 0; }
  .navsearch input { width: 100%; }
}

.ticker { background: var(--surface); }
.ticker-inner { display: flex; align-items: center; gap: 12px; padding-block: 10px; }
.ticker-box { flex: 1; display: flex; gap: 14px; align-items: center; background: var(--tint); border-radius: var(--r); padding: 8px 14px; min-width: 0; }
.ticker-box b { color: var(--link); font-weight: 800; padding-right: 12px; border-right: 2px solid var(--line); white-space: nowrap; }
.ticker-box a { color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticker-box a:hover { color: var(--link); text-decoration: underline; }

/* ===================================================================== */
/* Public page building blocks                                            */
/* ===================================================================== */
.hero { position: relative; background: #0b1f4d; color: #fff; isolation: isolate; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 28, 72, .88) 0%, rgba(10, 28, 72, .62) 46%, rgba(10, 28, 72, .05) 80%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 620px) 1fr; padding-block: 56px 64px; align-items: end; }
.hero .eyebrow { font-weight: 700; color: #ffd6d9; font-size: var(--t-sm); letter-spacing: .04em; }
.hero h1 { color: #fff; font-size: var(--t-3xl); line-height: 1.12; margin: 6px 0 14px; }
.hero h1 span { display: block; font-size: .5em; font-weight: 600; opacity: .9; margin-top: 8px; }
.hero p.lead { font-size: 1.12rem; max-width: 34em; opacity: .95; }
.hero .btn-row { margin-top: 22px; }
.hero .credit { position: absolute; right: 12px; bottom: 8px; font-size: .7rem; opacity: .75; }
.hero .credit a { color: #fff; }
.verify-card { justify-self: end; background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: 20px; width: min(360px, 100%); box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.verify-card h2 { font-size: var(--t-md); margin-bottom: 4px; }
.verify-card form { display: flex; gap: 8px; margin-top: 12px; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; gap: 24px; padding-block: 36px 48px; } .verify-card { justify-self: start; } .hero h1 { font-size: var(--t-2xl); } }

.section { padding-block: 44px; }
.section.white { background: var(--surface); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head .ne { color: var(--crimson); font-weight: 700; font-size: var(--t-sm); display: block; }
.section-head h2 { font-size: var(--t-xl); font-weight: 800; }

.eservices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.eservice { display: grid; grid-template-columns: 52px 1fr; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.eservice:hover { border-color: var(--gov); box-shadow: var(--shadow); transform: translateY(-1px); color: var(--ink); }
.eservice .ic { width: 52px; height: 52px; border-radius: 12px; background: var(--tint-3); color: var(--link); display: grid; place-items: center; }
.eservice .ic .ico { width: 28px; height: 28px; }
.eservice .ne { font-weight: 700; color: var(--crimson); font-size: var(--t-sm); }
.eservice strong { display: block; color: var(--gov-ink); font-size: 1.05rem; }
.eservice span.d { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.45; display: block; margin-top: 2px; }
@media (max-width: 900px) { .eservices { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .eservices { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.split figure { margin: 0; position: relative; }
.split figure img { border-radius: var(--r-lg); width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; }
.split figcaption { font-size: .72rem; color: var(--ink-3); margin-top: 6px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.checks li .n { width: 28px; height: 28px; border-radius: 50%; background: var(--gov); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: var(--t-sm); }

.mapteaser { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 860px) { .mapteaser { grid-template-columns: 1fr; } }
.npmap { width: 100%; height: auto; display: block; }
.npmap-land { fill: var(--map-land); stroke: var(--gov-deep); stroke-width: 1.4; stroke-linejoin: round; }
.npmap-zone { stroke-width: .8; }
.npmap-zone.z-no_fly { fill: rgba(204, 20, 36, .22); stroke: rgba(204, 20, 36, .7); }
.npmap-zone.z-permit { fill: rgba(196, 140, 0, .14); stroke: rgba(160, 110, 0, .55); }
.npmap-zone.z-restricted { fill: rgba(230, 81, 0, .2); stroke: rgba(230, 81, 0, .7); }
.npmap-pt { stroke: var(--surface); stroke-width: 2; cursor: pointer; }
.npmap-pt.s-approved { fill: var(--ok); } .npmap-pt.s-submitted, .npmap-pt.s-security { fill: #d08a00; } .npmap-pt.s-rejected { fill: var(--bad); }
.npmap-pt:hover, .npmap-pt:focus { stroke: var(--gov-ink); stroke-width: 3; outline: none; }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--t-xs); color: var(--ink-2); }
.map-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }

/* notice list with BS calendar tile */
.nlist { list-style: none; margin: 0; padding: 0; }
.nlist li { display: grid; grid-template-columns: 58px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-2); align-items: start; }
.nlist li:last-child { border-bottom: 0; }
.caltile { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-align: center; background: var(--surface); }
.caltile .m { background: var(--crimson); color: #fff; font-size: .7rem; font-weight: 700; padding: 1px 0; }
.caltile .d { font-size: 1.35rem; font-weight: 800; color: var(--gov-ink); line-height: 1.3; }
.nlist a { font-weight: 600; color: var(--gov-ink); text-decoration: none; }
.nlist a:hover { color: var(--link); text-decoration: underline; }
.nlist .meta { font-size: var(--t-xs); color: var(--ink-3); }

/* page header (public inner pages) */
.pagehead { background: var(--surface); border-bottom: 1px solid var(--line); }
.pagehead-inner { padding-block: 22px 24px; display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.pagehead .ne { color: var(--crimson); font-weight: 700; font-size: var(--t-sm); }
.pagehead h1 { font-size: var(--t-2xl); }
.pagehead p { color: var(--ink-2); max-width: 46em; margin: 6px 0 0; }
.pagehead.photo { position: relative; color: #fff; border: 0; isolation: isolate; }
.pagehead.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.pagehead.photo::after { content: ""; position: absolute; inset: 0; background: rgba(15, 33, 82, .72); z-index: -1; }
.pagehead.photo h1, .pagehead.photo p, .pagehead.photo .ne { color: #fff; }
.pagehead.photo .ne { color: #ffd6d9; }
.pagehead.photo .pagehead-inner { padding-block: 44px; }
.crumbs { font-size: var(--t-xs); color: var(--ink-3); margin-bottom: 6px; }
.crumbs a { color: inherit; }
.pagehead.photo .crumbs, .pagehead.photo .crumbs a { color: #dbe6ff; }
main.public { padding-block: 28px 56px; }

/* footer */
.footer { background: var(--gov-deep); color: #d5def5; position: relative; overflow: hidden; font-size: var(--t-sm); }
.footer .skyline { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 90px; color: #3a55ad; opacity: .9; }
.footer-inner { position: relative; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; padding-block: 110px 28px; }
.footer h2 { color: #fff; font-size: var(--t-md); margin-bottom: 10px; }
.footer a { color: #fff; text-decoration: none; } .footer a:hover { text-decoration: underline; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-bottom { position: relative; border-top: 1px solid rgba(255,255,255,.15); }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 12px; font-size: var(--t-xs); color: #b5c3e8; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-inner { grid-template-columns: 1fr; } }

/* ===================================================================== */
/* Workspace (signed-in)                                                   */
/* ===================================================================== */
body.app { min-height: 100vh; }
.topbar { background: var(--gov-band); color: #fff; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; }
.topbar .skyline { position: absolute; inset: 0; width: 100%; height: 100%; color: #6f9be3; opacity: .35; pointer-events: none; }
.topbar-inner { position: relative; display: flex; align-items: center; gap: 14px; min-height: 60px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.topbar .brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.topbar .brand .mark { width: 36px; height: 36px; }
.topbar .brand b { display: block; font-size: 1.02rem; line-height: 1.1; }
.topbar .brand small { display: block; font-size: .72rem; opacity: .85; }
.topbar .date { margin-left: auto; font-size: var(--t-sm); text-align: right; line-height: 1.3; }
.topbar .date span { display: block; font-size: .72rem; opacity: .8; }
.topbar .flag { width: 22px; }
.who { display: flex; align-items: center; gap: 10px; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.25); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--gov-deep); display: grid; place-items: center; font-weight: 800; }
.who .nm { font-size: var(--t-sm); font-weight: 600; line-height: 1.15; }
.who .nm small { display: block; font-weight: 400; opacity: .85; font-size: .72rem; }
.side-toggle { display: none; background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: var(--r); padding: 4px 8px; cursor: pointer; }
@media (max-width: 760px) { .topbar .date, .who .nm { display: none; } .topbar .brand small { display: none; } }

.desk { display: grid; grid-template-columns: 248px 1fr; min-height: calc(100vh - 60px); }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); padding: 18px 12px 24px max(12px, env(safe-area-inset-left, 0px)); position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; }
.sidebar h4 { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 18px 10px 6px; font-weight: 700; }
.sidebar h4:first-child { margin-top: 0; }
.sidebar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sidebar a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.sidebar a:hover { background: var(--tint); color: var(--link); }
.sidebar a[aria-current="page"] { background: var(--tint-2); color: var(--gov-deep); font-weight: 700; }
.sidebar a .count { margin-left: auto; background: var(--crimson); color: #fff; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 0 7px; line-height: 1.6; }
.sidebar .side-foot { margin-top: 22px; padding: 12px 10px 0; border-top: 1px solid var(--line-2); font-size: var(--t-xs); color: var(--ink-3); }
.canvas { padding: 24px max(16px, env(safe-area-inset-right, 0px)) 56px 28px; min-width: 0; }
@media (max-width: 980px) {
  .desk { grid-template-columns: 1fr; }
  .side-toggle { display: inline-flex; }
  .sidebar { display: none; position: fixed; inset: 60px 0 0 0; z-index: 25; height: auto; box-shadow: var(--shadow); }
  body.side-open .sidebar { display: block; }
  .canvas { padding-left: max(16px, env(safe-area-inset-left, 0px)); }
}

.deskhead { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.deskhead .ne { color: var(--crimson); font-weight: 700; font-size: var(--t-sm); display: block; }
.deskhead h1 { font-size: 1.7rem; }
.deskhead p { color: var(--ink-2); margin: 4px 0 0; max-width: 52em; }

/* summary tiles */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; display: grid; gap: 2px; text-decoration: none; color: var(--ink); position: relative; }
a.kpi:hover { border-color: var(--gov); color: var(--ink); }
.kpi .l { font-size: var(--t-sm); color: var(--ink-2); font-weight: 500; }
.kpi .v { font-size: 2rem; font-weight: 800; color: var(--gov-ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: var(--t-xs); color: var(--ink-3); }
.kpi.attn { border-color: #f1c2c6; background: var(--surface); box-shadow: inset 4px 0 0 var(--crimson); }
.kpi.attn .v { color: var(--crimson); }
@media (max-width: 1100px) { .kpis { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .kpis { grid-template-columns: 1fr 1fr; gap: 10px; } .kpi { padding: 12px; } .kpi .v { font-size: 1.6rem; } }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.grid-2.even { grid-template-columns: 1fr 1fr; }
@media (max-width: 1100px) { .grid-2, .grid-2.even { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 18px; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.card-h h2 { font-size: 1.02rem; }
.card-h .ne { font-weight: 500; color: var(--ink-3); font-size: var(--t-sm); margin-left: 6px; }
.card-b { padding: 16px 18px; }
.card-b.flush { padding: 0; }
.card.accent { border-top: 3px solid var(--crimson); }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-2); padding: 0 12px; overflow-x: auto; }
.tabs a { padding: 10px 12px; font-weight: 600; font-size: var(--t-sm); color: var(--ink-2); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a[aria-selected="true"] { color: var(--link); border-bottom-color: var(--gov); }
.tabs a .c { background: var(--tint-2); color: var(--gov-deep); border-radius: 999px; padding: 0 7px; font-size: .72rem; margin-left: 4px; }
.tabpanel[hidden] { display: none !important; }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; background: var(--surface-2); white-space: nowrap; }
tbody tr:hover { background: var(--hover); }
tbody tr:last-child td { border-bottom: 0; }
tr.flagged td:first-child { box-shadow: inset 3px 0 0 #d08a00; }
tr.blocked td:first-child { box-shadow: inset 3px 0 0 var(--crimson); }
td .sub { display: block; font-size: var(--t-xs); color: var(--ink-3); }
td.empty { text-align: center; color: var(--ink-3); padding: 28px; }
td.right, th.right { text-align: right; }
@media (max-width: 680px) {
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
  table.stack td { border: 0; padding: 3px 0; display: grid; grid-template-columns: 36% 1fr; gap: 8px; }
  table.stack td::before { content: attr(data-label); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); padding-top: 3px; }
  table.stack td.right { text-align: left; }
  table.stack td.empty { display: block; } table.stack td.empty::before { content: none; }
  tr.flagged td:first-child, tr.blocked td:first-child { box-shadow: none; }
  tr.flagged { box-shadow: inset 3px 0 0 #d08a00; } tr.blocked { box-shadow: inset 3px 0 0 var(--crimson); }
}

/* status tags */
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px 1px 8px; font-size: .74rem; font-weight: 700; border-radius: 999px; white-space: nowrap; line-height: 1.6; background: var(--muted-bg); color: var(--ink-2); }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.t-approved, .t-ok, .t-green, .t-active { background: var(--ok-bg); color: var(--ok); }
.t-pending, .t-submitted, .t-security, .t-yellow, .t-permit, .t-investigating, .t-open { background: var(--warn-bg); color: var(--warn); }
.t-rejected, .t-suspended, .t-expired, .t-red, .t-no_fly, .t-high { background: var(--bad-bg); color: var(--bad); }
.t-orange, .t-restricted, .t-medium { background: var(--orange-bg); color: var(--orange); }
.t-cancelled, .t-closed, .t-muted, .t-low { background: var(--muted-bg); color: var(--ink-2); }
.t-caution, .t-info { background: var(--info-bg); color: var(--info); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 18px; font: inherit; font-size: .95rem; font-weight: 600; line-height: 1.25; border-radius: var(--r); border: 1px solid var(--gov); background: var(--gov); color: #fff; text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--gov-deep); border-color: var(--gov-deep); color: #fff; }
.btn.light { background: var(--surface); color: var(--link); border-color: var(--line); }
.btn.light:hover { border-color: var(--gov); background: var(--tint); color: var(--link); }
.btn.white { background: #fff; color: var(--gov-deep); border-color: #fff; }
.btn.white:hover { background: var(--tint-2); color: var(--gov-deep); }
.btn.ghost-w { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn.ghost-w:hover { background: rgba(255,255,255,.12); }
.btn.red { background: var(--crimson); border-color: var(--crimson); } .btn.red:hover { background: #a10f1c; border-color: #a10f1c; }
.btn.green { background: var(--ok); border-color: var(--ok); } .btn.green:hover { background: #0c5a31; }
.btn.sm { padding: 5px 12px; font-size: var(--t-sm); }
.btn .ico { width: 18px; height: 18px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* alerts */
.alert { display: flex; gap: 10px; align-items: flex-start; border-radius: var(--r); padding: 12px 16px; margin-bottom: 16px; border: 1px solid; }
.alert p { margin: 0; }
.alert.success { background: var(--ok-bg); border-color: #b5dfc6; color: #0b4d2b; }
.alert.error { background: var(--bad-bg); border-color: #f2b9be; color: #7c0d16; }
.alert.warning { background: var(--warn-bg); border-color: #f0d49a; color: #5c3a00; }
.alert.info { background: var(--info-bg); border-color: #bcd3fb; color: #08306f; }
.verdict { border-radius: var(--r); padding: 12px 14px; font-weight: 600; margin-bottom: 10px; border-left: 5px solid; }
.verdict.v-green { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.verdict.v-yellow { background: var(--warn-bg); border-color: #d08a00; color: var(--warn); }
.verdict.v-orange { background: var(--orange-bg); border-color: #e65100; color: var(--orange); }
.verdict.v-red { background: var(--bad-bg); border-color: var(--crimson); color: var(--bad); }

/* key/value */
dl.kv { display: grid; grid-template-columns: 200px 1fr; margin: 0; }
dl.kv dt, dl.kv dd { padding: 9px 0; border-bottom: 1px solid var(--line-2); margin: 0; }
dl.kv dt { color: var(--ink-3); font-size: var(--t-sm); padding-right: 12px; }
dl.kv > :nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 600px) { dl.kv { grid-template-columns: 1fr; } dl.kv dt { border: 0; padding-bottom: 0; } }

/* forms */
.form-section { padding: 18px; border-bottom: 1px solid var(--line-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .f-wide { grid-column: 1 / -1; }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field > label { display: block; font-weight: 600; font-size: var(--t-sm); margin-bottom: 5px; color: var(--ink); }
.field .req { color: var(--crimson); margin-left: 3px; }
.field .help { display: block; font-size: var(--t-xs); color: var(--ink-3); margin-top: 4px; }
.field .err { color: var(--bad); font-size: var(--t-sm); font-weight: 600; margin: 4px 0 0; padding: 0; list-style: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--bad); background: var(--bad-bg); }
.field.check { display: flex; gap: 10px; align-items: flex-start; }
.field.check > label { order: 2; font-weight: 500; margin: 0; }
.field.check .help { order: 3; flex-basis: 100%; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=search], input[type=tel], select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--input-line); border-radius: var(--r); font: inherit; font-size: .95rem; background: var(--surface); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid #ffb703; outline-offset: 0; border-color: var(--gov); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--gov); margin-top: 3px; flex: none; }
input[type=file] { font: inherit; font-size: var(--t-sm); max-width: 100%; }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; border: 1px solid var(--line); background: var(--tint); color: var(--link); border-radius: var(--r); padding: 5px 12px; margin-right: 10px; cursor: pointer; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; padding: 16px 18px; background: var(--surface-2); border-top: 1px solid var(--line-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.errorsum { border: 1px solid #f2b9be; background: var(--bad-bg); border-radius: var(--r); padding: 12px 16px; margin: 18px 18px 0; }
.errorsum h2 { color: var(--bad); font-size: var(--t-md); }
.errorsum ul { margin: 6px 0 0; padding-left: 18px; }
.checklist { background: var(--tint); border-radius: var(--r); padding: 12px 16px; font-size: var(--t-sm); }
.checklist ul { margin: 6px 0 0; padding-left: 18px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form input, .inline-form select { width: auto; flex: 1; min-width: 180px; }

/* charts */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid line { stroke: var(--line-2); stroke-width: 1; }
.chart .axis text, .chart .ytick { fill: var(--ink-3); font-size: 11px; font-family: var(--f-body); }
.chart .bar { fill: #7ea6e6; transition: fill .1s; }
.chart .bar.today { fill: var(--gov); }
.chart .bar:hover, .chart .hit:hover + .bar { fill: var(--gov-deep); }
.chart .hit { fill: transparent; cursor: pointer; }
.hbar { display: grid; grid-template-columns: 120px 1fr 40px; gap: 10px; align-items: center; padding: 6px 0; font-size: var(--t-sm); }
.hbar .track { background: var(--line-2); height: 10px; border-radius: 0 4px 4px 0; overflow: hidden; }
.hbar .fill { background: var(--gov); height: 100%; border-radius: 0 4px 4px 0; display: block; }
.hbar .fill.w0 { width: 0; }
.tip { position: fixed; z-index: 60; pointer-events: none; background: var(--tip-bg); color: #fff; font-size: var(--t-xs); padding: 5px 9px; border-radius: 4px; max-width: 260px; box-shadow: var(--shadow); }
.tip[hidden] { display: none; }

/* map (leaflet) */
.map { height: 520px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface-2); }
.map.sm { height: 360px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--t-sm); margin-bottom: 10px; color: var(--ink-2); }
.legend i { display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; border-radius: 3px; }
.lg-no_fly { background: #c62828; } .lg-restricted { background: #e65100; } .lg-permit { background: #d4a000; } .lg-caution { background: #1e5bd6; }
.lg-border { background: repeating-linear-gradient(90deg, #c62828 0 5px, transparent 5px 8px) !important; height: 3px !important; vertical-align: 3px !important; border-radius: 0 !important; }
.zlist { list-style: none; margin: 8px 0 0; padding: 0; font-size: var(--t-sm); }
.zlist li { padding: 7px 0; border-top: 1px solid var(--line-2); }
.sticky { position: sticky; top: 76px; }

/* misc */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--link); }
.timeline li:last-child { border-color: transparent; }
.timeline .when { font-size: var(--t-xs); color: var(--ink-3); }
ul.flags { margin: 0 0 10px; padding-left: 18px; font-size: var(--t-sm); }
ul.flags li { margin-bottom: 5px; }
ol.approvals { margin: 0; padding-left: 20px; font-size: var(--t-sm); display: grid; gap: 6px; }
.idcard { background: linear-gradient(135deg, var(--gov-deep), var(--gov)); color: #fff; border-radius: var(--r-lg); padding: 18px; position: relative; overflow: hidden; }
.idcard .skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 60%; color: #fff; opacity: .1; }
.idcard .l { font-size: .72rem; opacity: .8; text-transform: uppercase; letter-spacing: .08em; }
.idcard .v { font-family: var(--f-mono); font-size: 1.15rem; font-weight: 600; letter-spacing: .03em; }
.idcard .row { display: flex; justify-content: space-between; gap: 12px; position: relative; margin-top: 12px; }
.idcard .flag { width: 26px; position: absolute; right: 18px; top: 16px; }
.auth-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 180px); }
.auth-photo { position: relative; color: #fff; isolation: isolate; display: flex; align-items: flex-end; padding: 36px; }
.auth-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.auth-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 22, 60, .85), rgba(8, 22, 60, .15) 60%); z-index: -1; }
.auth-photo blockquote { margin: 0; max-width: 30em; font-size: 1.15rem; font-weight: 500; }
.auth-photo .credit { position: absolute; right: 10px; bottom: 6px; font-size: .68rem; opacity: .75; }
.auth-photo .credit a { color: #fff; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 36px 16px; background: var(--surface); }
.auth-form .box { width: min(400px, 100%); }
@media (max-width: 860px) { .auth-shell { grid-template-columns: 1fr; } .auth-photo { min-height: 200px; } }
.error-page { text-align: center; padding: 64px 16px; }
.error-page .code { font-size: 3.5rem; font-weight: 800; color: var(--crimson); line-height: 1; }
.rule-item { padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.rule-item:last-child { border-bottom: 0; }
.rule-item .ref { font-family: var(--f-mono); font-size: .72rem; color: var(--ink-3); margin-left: 8px; font-weight: 500; }
.limits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.limits > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; }
.limits b { display: block; font-size: 1.6rem; color: var(--gov-ink); font-weight: 800; line-height: 1.2; }
@media (max-width: 760px) { .limits { grid-template-columns: 1fr 1fr; } }
.result-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 14px; overflow: hidden; }
.result-card .rc-h { padding: 14px 18px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line-2); }
.result-card.valid { border-top: 4px solid var(--ok); } .result-card.invalid { border-top: 4px solid var(--crimson); }
.result-card .card-b { padding-block: 6px; }
.photo-credit { font-size: .7rem; color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .band, .mainnav, .ticker, .footer, .sidebar, .topbar, .btn, .no-print { display: none !important; } .desk { display: block; } body { background: #fff; } }
.linkish { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; font: inherit; font-weight: 500; font-size: .95rem; color: var(--ink); border-radius: var(--r); cursor: pointer; text-align: left; }
.linkish:hover { background: var(--tint); color: var(--crimson); }
.band .flag, .topbar .flag { height: auto; }
.mb0 { margin-bottom: 0 !important; } .mt-sm { margin-top: 10px; } .mt { margin-top: 18px; }
.kicker { color: var(--crimson); font-weight: 700; font-size: var(--t-sm); display: block; }
.h-section { font-size: 1.55rem; font-weight: 800; margin: 4px 0 10px; }
.lgd-red { background: rgba(204, 20, 36, .6); } .lgd-amber { background: rgba(196, 140, 0, .6); }
.lgd-ok { background: var(--ok); } .lgd-wait { background: #d08a00; } .lgd-bad { background: var(--bad); }
ul.flags.big { font-size: 1rem; }
.kpis.kpis-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .kpis.kpis-3 { grid-template-columns: 1fr; } }
.mb-card { margin-bottom: 18px; }
.idcard .v.name { font-family: var(--f-body); font-size: 1.3rem; font-weight: 700; letter-spacing: 0; position: relative; }
.idcard .right { text-align: right; }
.idcard .l, .idcard .v { position: relative; }

.dash-row { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 1200px) { .dash-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .dash-row { grid-template-columns: 1fr; } }
td .ref { font-weight: 700; white-space: nowrap; }
.desk { background: linear-gradient(90deg, var(--surface) 248px, transparent 248px); }
@media (max-width: 980px) { .desk { background: none; } }
td .uin, td a.uin, td .mono, .sub.mono, .sub.uin { white-space: nowrap; }
.queue-more { padding: 12px 18px; border-top: 1px solid var(--line-2); font-size: var(--t-sm); }
:root { color-scheme: light; }
.protostrip { background: #11214f; color: #c9d6f5; font-size: .76rem; text-align: center; padding: 3px 16px; letter-spacing: .01em; }
.office .emblem { width: 72px; height: 72px; flex: none; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.topbar .brand .emblem { width: 40px; height: 40px; object-fit: contain; }
.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; } .foot-brand h2 { margin: 0; }
.prefs { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--surface); }
.pref { font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; color: var(--ink-2); text-decoration: none; line-height: 1.4; }
.pref:hover { color: var(--link); }
.pref.on { background: var(--gov); color: #fff; }
.pref.theme { display: inline-flex; padding: 3px 8px; }
.pref.theme .ico { width: 16px; height: 16px; }
.pref.theme .ico:last-child { display: none; }
:root[data-theme="dark"] .pref.theme .ico:first-child { display: none; }
:root[data-theme="dark"] .pref.theme .ico:last-child { display: inline; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pref.theme .ico:first-child { display: none; } :root:not([data-theme="light"]) .pref.theme .ico:last-child { display: inline; } }
.topbar .prefs { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); }
.topbar .pref { color: #e3ebff; } .topbar .pref.on { background: #fff; color: var(--gov-deep); }
.ticker-inner { flex-wrap: wrap; }
@media (max-width: 760px) { .topbar .prefs { display: none; } .ticker-box { flex-basis: 100%; } }
.side-prefs { display: none; margin: 16px 10px 0; } @media (max-width: 760px) { .side-prefs { display: block; } }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line-2); }
.mini-stats dt { font-size: .72rem; color: var(--ink-3); } .mini-stats dd { margin: 0; font-size: 1.25rem; font-weight: 800; color: var(--gov-ink); font-variant-numeric: tabular-nums; }
.auth-emblem { width: 72px; height: 72px; margin-bottom: 10px; }
.btn.wide { width: 100%; }
.kpis.kpis-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1400px) { .kpis.kpis-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .kpis.kpis-6 { grid-template-columns: 1fr 1fr; } }
.kpi .v small { font-size: .9rem; font-weight: 600; color: var(--ink-3); }
.kpi.live { box-shadow: inset 4px 0 0 var(--ok); }
.kpi.live .v::after { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); margin-left: 8px; vertical-align: middle; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(18,112,63,.5); } 70% { box-shadow: 0 0 0 10px rgba(18,112,63,0); } 100% { box-shadow: 0 0 0 0 rgba(18,112,63,0); } }
ul.alerts { list-style: none; margin: 0; padding: 0; }
ul.alerts li { padding: 10px 18px; border-bottom: 1px solid var(--line-2); box-shadow: inset 3px 0 0 transparent; }
ul.alerts li.a-violation, ul.alerts li.a-unmatched { box-shadow: inset 3px 0 0 var(--crimson); }
ul.alerts li.a-warn { box-shadow: inset 3px 0 0 #d08a00; }
ul.alerts li a { text-decoration: none; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
ul.alerts li.empty { padding: 22px 18px; }
.hbar { grid-template-columns: 110px 1fr 36px; }
.kpis.kpis-4 { grid-template-columns: repeat(4, 1fr); } .kpis.kpis-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .kpis.kpis-4, .kpis.kpis-5 { grid-template-columns: 1fr 1fr; } }
.lgd-track { background: #0447af; border-radius: 2px !important; height: 4px !important; vertical-align: 3px !important; }
.lgd-permit { background: transparent; border: 2px dashed #12703f; }
.lgd-live { background: #fff; border: 3px solid #0447af; }
ul.flags li.f-bad { color: var(--bad); font-weight: 600; } ul.flags li.f-warn { color: var(--warn); }
.chart .alt-line { fill: none; stroke: var(--link); stroke-width: 2; }
.chart .alt-area { fill: var(--link); opacity: .12; }
.chart .limit { stroke: var(--crimson); stroke-dasharray: 5 4; stroke-width: 1.5; }
.chart .limit-label { fill: var(--crimson); font-size: 11px; font-weight: 600; }
.drone-dot { width: 14px !important; height: 14px !important; border-radius: 50%; background: #fff; border: 3px solid #0447af; box-shadow: 0 0 0 4px rgba(4,71,175,.25); }
.drone-dot.v { border-color: #cc1424; box-shadow: 0 0 0 4px rgba(204,20,36,.3); }
/* contrast fixes for both themes */
.sidebar a[aria-current="page"] { color: var(--gov-ink); }
.tabs a .c { color: var(--gov-ink); }
.sub { display: block; font-size: var(--t-xs); color: var(--ink-3); }
ul.alerts li a + .sub { margin-top: 2px; }

/* ===================================================================== */
/* CAAN-style district map                                               */
/* ===================================================================== */
:root {
  --pv-koshi: #d6e3fb; --pv-madhesh: #fde2d1; --pv-bagmati: #f7d6f1; --pv-gandaki: #d3f5f9;
  --pv-lumbini: #f9d4da; --pv-karnali: #d7f5d6; --pv-sudur: #fcf7cc; --pv-stroke: #8d97ad;
  --ap-intl: #1d4ed8; --ap-dom: #15803d; --ap-hub: #14b8a6; --ap-off: #8a929f; --ap-prop: #7e3fb5; --ap-cons: #f28c18;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --pv-koshi: #22345e; --pv-madhesh: #4a3226; --pv-bagmati: #46284a; --pv-gandaki: #1d4049; --pv-lumbini: #4a2a33; --pv-karnali: #233f2a; --pv-sudur: #45421f; --pv-stroke: #5c6a8f;
  --ap-intl: #7aa7ff; --ap-dom: #52d07f; --ap-hub: #4fe0cf; --ap-off: #a3acbb; --ap-prop: #c69cf0; --ap-cons: #ffb057; } }
:root[data-theme="dark"] {
  --pv-koshi: #22345e; --pv-madhesh: #4a3226; --pv-bagmati: #46284a; --pv-gandaki: #1d4049; --pv-lumbini: #4a2a33; --pv-karnali: #233f2a; --pv-sudur: #45421f; --pv-stroke: #5c6a8f;
  --ap-intl: #7aa7ff; --ap-dom: #52d07f; --ap-hub: #4fe0cf; --ap-off: #a3acbb; --ap-prop: #c69cf0; --ap-cons: #ffb057; }
.dmap-wrap { position: relative; }
.dmap { width: 100%; height: auto; display: block; overflow: visible; }
.dst { stroke: var(--pv-stroke); stroke-width: .6; stroke-linejoin: round; transition: filter .12s; }
.dst:hover { filter: brightness(.93) saturate(1.3); }
.p-Koshi { fill: var(--pv-koshi); } .p-Madhesh { fill: var(--pv-madhesh); } .p-Bagmati { fill: var(--pv-bagmati); } .p-Gandaki { fill: var(--pv-gandaki); }
.p-Lumbini { fill: var(--pv-lumbini); } .p-Karnali { fill: var(--pv-karnali); } .p-Sudurpashchim { fill: var(--pv-sudur); }
.ap { cursor: pointer; outline: none; }
.ap .ap-hit { fill: transparent; }
.ap use { transition: transform .12s; transform-origin: center; transform-box: fill-box; }
.ap:hover use, .ap:focus use, .ap.on use { transform: scale(1.45); }
.ap:focus-visible .ap-hit, .ap.on .ap-hit { fill: rgba(255,255,255,.75); stroke: currentColor; stroke-width: 1.5; }
.ap-intl { color: var(--ap-intl); } .ap-dom { color: var(--ap-dom); } .ap-hub { color: var(--ap-hub); }
.ap-off { color: var(--ap-off); } .ap-prop { color: var(--ap-prop); } .ap-cons { color: var(--ap-cons); }
.dmap-leader { stroke: var(--crimson); stroke-width: 1.4; stroke-dasharray: 5 4; }
.dmap-leader[hidden] { display: none; }
.dmap-card { position: absolute; width: min(300px, 80%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 10px 30px rgba(15, 30, 70, .18); padding: 16px 18px; z-index: 5; }
.dmap-card h3 { font-size: 1.08rem; margin: 0 24px 2px 0; color: var(--gov-ink); }
.dmap-card .dc-place { margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.dmap-card .dc-kv { display: grid; gap: 4px; margin: 0 0 10px; } .dmap-card .dc-kv div { display: flex; justify-content: space-between; gap: 10px; }
.dmap-card dt { color: var(--ink-3); } .dmap-card dd { margin: 0; font-weight: 600; text-align: right; }
.dmap-card .dc-link { color: var(--crimson); font-weight: 600; text-decoration: none; }
.dmap-x { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 1.3rem; color: var(--ink-3); cursor: pointer; line-height: 1; }
.dpt { stroke: var(--surface); stroke-width: 1.8; cursor: pointer; }
.dpt.s-approved, .dpt.s-ok { fill: var(--ok); } .dpt.s-submitted, .dpt.s-security, .dpt.s-warn { fill: #d08a00; } .dpt.s-rejected, .dpt.s-violation, .dpt.s-unmatched { fill: var(--bad); }
.ap-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 18px; }
.ap-tile { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 14px 12px; text-align: center; display: grid; gap: 4px; justify-items: center; }
.ap-tile .n { font-size: 2rem; font-weight: 800; line-height: 1.1; color: currentColor; font-variant-numeric: tabular-nums; }
.ap-tile .l { font-size: .8rem; color: var(--ink-2); line-height: 1.3; display: flex; gap: 6px; align-items: center; text-align: left; }
.ap-tile .ico-plane { width: 18px; height: 18px; flex: none; color: currentColor; }
.ap-tile.ap-intl { color: var(--ap-intl); } .ap-tile.ap-dom { color: var(--ap-dom); } .ap-tile.ap-hub { color: var(--ap-hub); }
.ap-tile.ap-off { color: var(--ap-off); } .ap-tile.ap-prop { color: var(--ap-prop); } .ap-tile.ap-cons { color: var(--ap-cons); }
@media (max-width: 1000px) { .ap-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .ap-tiles { grid-template-columns: 1fr 1fr; } .dmap-card { left: 8px !important; right: 8px; width: auto; top: auto !important; bottom: -8px; position: relative; margin-top: 10px; } }

/* section label with red bar (CAAN / OPMCM convention) */
.label-bar { display: inline-block; color: var(--crimson); font-weight: 700; font-size: var(--t-sm); padding: 4px 12px; border-left: 3px solid var(--crimson); background: linear-gradient(90deg, rgba(204,20,36,.08), transparent); }
.big-title { font-size: 2rem; font-weight: 800; color: var(--gov-ink); margin: 10px 0 6px; letter-spacing: -.01em; }
.section.topo { background-color: var(--surface); background-image: url("img/topo.svg"); background-size: 900px auto; }
:root[data-theme="dark"] .section.topo { background-image: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .section.topo { background-image: none; } }
@media (max-width: 520px) { .dmap-leader { display: none !important; } }
