/* =========================================================================
   Assam Land Exchange — UI demo stylesheet
   One file for every page. Sections:
   1. Tokens  2. Base  3. Layout helpers  4. Components
   5. Header, footer, tab bar  6. Console (Government) layout
   7. Page styles (home, map, plot, compare, account, office, field, dept)
   8. Accessibility modes and print
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --paper: #F6F7F4;
  --surface: #FFFFFF;
  --surface-2: #F8F9F7;
  --surface-3: #EFF1ED;
  --ink: #15201B;
  --ink-2: #3F4A44;
  --muted: #58615C;
  --line: #E2E5E0;
  --line-2: #EDEFEB;
  --field: #CDD2CC;

  --green: #1F5B43;
  --green-d: #15402F;
  --green-dd: #0E2A1F;
  --green-t: #E3EEE7;
  --green-l: #B9D3C3;
  --green-ok: #1E8059;

  --gold: #C98A2B;
  --gold-t: #F7EBD3;
  --gold-l: #E2C48F;
  --gold-x: #6E4708;
  --cta: #F2B33D;
  --cta-d: #E0A024;

  --red: #9E3418;
  --red-t: #FBE9E2;
  --red-l: #EDC3B4;
  --blue: #1D4B73;
  --blue-t: #E5EDF5;
  --blue-l: #BDD0E3;

  --font: 'Plus Jakarta Sans', 'Noto Sans Bengali', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-bn: 'Noto Sans Bengali', 'Plus Jakarta Sans', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --pill: 999px;

  --sh-1: 0 1px 2px rgba(21, 32, 27, .06), 0 1px 1px rgba(21, 32, 27, .04);
  --sh-2: 0 6px 18px rgba(21, 32, 27, .08), 0 2px 6px rgba(21, 32, 27, .05);
  --sh-3: 0 18px 48px rgba(21, 32, 27, .16), 0 6px 16px rgba(21, 32, 27, .08);

  --wrap: 1240px;
  --header-h: 68px;
  --fs: 1;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: calc(16px * var(--fs)); scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15px; font-size: .9375rem; line-height: 1.5; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid #2F7DDB; outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--green-l); }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 10px; }
[lang="as"], [lang="bn"], .bn { font-family: var(--font-bn); }
.mono { font-family: var(--mono); letter-spacing: -.01em; }

/* Type scale */
.h-hero { font-size: clamp(2.2rem, 4.6vw, 4.1rem); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; }
.h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.12; font-weight: 800; letter-spacing: -.03em; }
.h2 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.12; font-weight: 800; letter-spacing: -.03em; }
.h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 800; letter-spacing: -.02em; }
.h4 { font-size: 1.0625rem; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.eyebrow { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.lead { font-size: 1.0625rem; color: var(--ink-2); line-height: 1.6; }
.small { font-size: .8125rem; }
.xs { font-size: .75rem; }
.muted { color: var(--muted); }
.ink2 { color: var(--ink-2); }
.green { color: var(--green); }
.red { color: var(--red); }
.gold { color: var(--gold-x); }
.strong { font-weight: 700; }
.bold { font-weight: 800; }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.right { text-align: right; }

/* ---------- 3. Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-wide { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.row { display: flex; align-items: center; gap: 12px; }
.row-top { display: flex; align-items: flex-start; gap: 12px; }
.col { display: flex; flex-direction: column; gap: 12px; }
.wrap-row { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid > *, .plot-layout > * { min-width: 0; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.only-mobile { display: none !important; }

/* ---------- 4. Components ---------- */
/* Icon */
.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 15px; height: 15px; }
.i-lg { width: 22px; height: 22px; }
.i-xl { width: 28px; height: 28px; }

/* Buttons */
.btn { --bg: var(--surface); --fg: var(--ink); --bd: var(--field); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: var(--pill); border: 1px solid var(--bd); background: var(--bg); color: var(--fg); font-weight: 700; font-size: .875rem; line-height: 1; white-space: nowrap; text-decoration: none !important; transition: background .15s, border-color .15s, box-shadow .15s, transform .1s; }
.btn:hover { box-shadow: var(--sh-1); filter: brightness(.98); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .45; cursor: not-allowed; box-shadow: none; filter: none; transform: none; }
.btn-primary { --bg: var(--green); --fg: #fff; --bd: var(--green); }
.btn-primary:hover { --bg: var(--green-d); --bd: var(--green-d); }
.btn-dark { --bg: var(--ink); --fg: #fff; --bd: var(--ink); }
.btn-cta { --bg: var(--cta); --fg: var(--ink); --bd: var(--cta); }
.btn-cta:hover { --bg: var(--cta-d); --bd: var(--cta-d); }
.btn-ghost { --bg: transparent; --fg: var(--green); --bd: transparent; }
.btn-ghost:hover { --bg: var(--green-t); box-shadow: none; }
.btn-danger { --bg: var(--surface); --fg: var(--red); --bd: var(--red-l); }
.btn-danger:hover { --bg: var(--red-t); }
.btn-tint { --bg: var(--green-t); --fg: var(--green-d); --bd: var(--green-l); }
.btn-light { --bg: #fff; --fg: var(--ink); --bd: #fff; }
.btn-outline-light { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, .45); }
.btn-sm { min-height: 34px; padding: 0 13px; font-size: .8125rem; gap: 6px; }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn-icon { width: 42px; padding: 0; }
.btn-icon.btn-sm { width: 34px; }
.btn-square { border-radius: var(--r-sm); }
.link-btn { background: none; border: 0; padding: 0; color: var(--green); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.link-btn:hover { text-decoration: underline; }

/* Badges and labels */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: var(--pill); font-size: .75rem; font-weight: 700; white-space: nowrap; background: var(--surface-3); color: var(--ink-2); border: 1px solid var(--line); }
.badge .i { width: 13px; height: 13px; }
.badge-green { background: var(--green-t); color: var(--green-d); border-color: var(--green-l); }
.badge-solid { background: var(--green); color: #fff; border-color: var(--green); }
.badge-amber { background: var(--gold-t); color: var(--gold-x); border-color: var(--gold-l); }
.badge-red { background: var(--red-t); color: var(--red); border-color: var(--red-l); }
.badge-blue { background: var(--blue-t); color: var(--blue); border-color: var(--blue-l); }
.badge-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.badge-count { min-width: 20px; height: 20px; padding: 0 6px; justify-content: center; font-size: .6875rem; }
/* Data-source labels: the core idea of the product */
.src { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: .6875rem; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.src .i { width: 12px; height: 12px; stroke-width: 2.2; }
.src-gov { background: var(--green-t); color: var(--green-d); border: 1px solid var(--green-l); }
.src-seller { background: var(--gold-t); color: var(--gold-x); border: 1px solid var(--gold-l); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-ok); flex: none; }
.dot-amber { background: var(--gold); } .dot-red { background: var(--red); } .dot-gray { background: var(--field); } .dot-blue { background: var(--blue); }
.pulse { position: relative; }
.pulse::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; opacity: .5; animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card-pad { padding: 24px; }
.card-pad-sm { padding: 16px; }
.card-hover { transition: box-shadow .2s, transform .2s, border-color .2s; }
.card-hover:hover { box-shadow: var(--sh-2); transform: translateY(-2px); border-color: var(--field); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.card-body { padding: 20px 22px; }
.panel-tint { background: var(--green-t); border: 1px solid var(--green-l); border-radius: var(--r); padding: 14px 16px; color: var(--green-d); }
.panel-amber { background: var(--gold-t); border: 1px solid var(--gold-l); border-radius: var(--r); padding: 14px 16px; color: var(--gold-x); }
.panel-red { background: var(--red-t); border: 1px solid var(--red-l); border-radius: var(--r); padding: 14px 16px; color: var(--red); }
.panel-blue { background: var(--blue-t); border: 1px solid var(--blue-l); border-radius: var(--r); padding: 14px 16px; color: var(--blue); }
.panel-gray { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label { font-size: .8125rem; font-weight: 700; color: var(--ink-2); }
.hint { font-size: .75rem; color: var(--muted); }
.input, .select, .textarea { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--field); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font-size: .9375rem; transition: border-color .15s, box-shadow .15s; }
.textarea { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31, 91, 67, .16); }
.input::placeholder, .textarea::placeholder { color: #8A928D; }
.select { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2358615C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input-sm, .select.input-sm { height: 36px; font-size: .875rem; }
.input-group { display: flex; align-items: stretch; border: 1px solid var(--field); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; }
.input-group:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(31, 91, 67, .16); }
.input-group .input { border: 0; box-shadow: none !important; }
.input-group .addon { display: flex; align-items: center; padding: 0 12px; background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: .875rem; border-right: 1px solid var(--line); white-space: nowrap; }
.input-group .addon-r { border-right: 0; border-left: 1px solid var(--line); }
.input-icon { position: relative; }
.input-icon > .i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon > .input { padding-left: 40px; }
.check, .radio { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .875rem; line-height: 1.4; }
.check input, .radio input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--green); cursor: pointer; }
.check-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--field); border-radius: var(--r); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.check-card:has(input:checked) { border-color: var(--green); background: var(--green-t); box-shadow: inset 0 0 0 1px var(--green); }
.check-card input { accent-color: var(--green); width: 18px; height: 18px; margin: 0; }
/* Switch */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .875rem; font-weight: 600; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 40px; height: 23px; border-radius: 99px; background: var(--field); position: relative; transition: background .2s; flex: none; }
.switch .track::after { content: ''; position: absolute; left: 3px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: transform .2s; }
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track::after { transform: translateX(17px); }
.switch input:focus-visible + .track { outline: 3px solid #2F7DDB; outline-offset: 2px; }
/* Chips */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--pill); border: 1px solid var(--field); background: var(--surface); font-size: .8125rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: all .15s; }
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-green[aria-pressed="true"], .chip-green.is-on { background: var(--green-t); border-color: var(--green); color: var(--green-d); }
.chip .i { width: 14px; height: 14px; }
.chip-x { height: 30px; padding: 0 8px 0 12px; background: var(--surface); }
.chip-x button { border: 0; background: var(--surface-3); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
/* Segmented control */
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-3); border-radius: var(--pill); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; height: 34px; padding: 0 14px; border-radius: var(--pill); font-weight: 700; font-size: .8125rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { border: 0; background: none; padding: 14px 14px 12px; font-weight: 700; font-size: .875rem; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none !important; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"], .tab.is-active { color: var(--green-d); border-bottom-color: var(--green); }
.pill-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-tab { border: 1px solid var(--field); background: var(--surface); height: 36px; padding: 0 16px; border-radius: var(--pill); font-size: .8125rem; font-weight: 700; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.pill-tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill-tab .badge-count { background: var(--surface-3); color: var(--ink-2); border: 0; }
.pill-tab[aria-selected="true"] .badge-count { background: rgba(255, 255, 255, .2); color: #fff; }
/* Tables */
.table { font-size: .875rem; }
.table th { text-align: left; font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; padding: 12px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
@media (max-width: 860px) {
  .table-wide { min-width: 760px; }
  .table-wide > thead > tr > th:first-child, .table-wide > tbody > tr > td:first-child { min-width: 150px; }
  .table-xwide { min-width: 920px; }
}
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.table-hover tbody tr:hover { background: var(--surface-2); }
/* Avatar */
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8125rem; background: var(--green); color: #fff; flex: none; letter-spacing: .02em; }
.avatar-sm { width: 30px; height: 30px; font-size: .6875rem; }
.avatar-lg { width: 52px; height: 52px; font-size: 1rem; }
.avatar-gold { background: var(--gold); }
.avatar-blue { background: var(--blue); }
.avatar-gray { background: var(--surface-3); color: var(--ink-2); }
/* Progress */
.progress { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--green); border-radius: inherit; transition: width .6s ease; }
.progress-amber > span { background: var(--gold); }
/* Key-value list */
.kv { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 10px 16px; font-size: .875rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
/* Stat tile */
.stat { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat .v { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat .k { font-size: .8125rem; color: var(--muted); font-weight: 600; }
.stat .d { font-size: .75rem; color: var(--muted); }
/* Accordion */
.acc-item { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.acc-item + .acc-item { margin-top: 10px; }
.acc-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; background: none; border: 0; padding: 18px 20px; font-weight: 700; font-size: 1rem; }
.acc-btn .acc-ic { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none; transition: transform .2s; }
.acc-btn[aria-expanded="true"] .acc-ic { transform: rotate(45deg); background: var(--surface-3); }
.acc-panel { padding: 0 20px 18px; color: var(--ink-2); line-height: 1.6; }
/* Stepper (horizontal) */
.steps { display: flex; gap: 0; counter-reset: s; }
.step { flex: 1; display: flex; flex-direction: column; gap: 8px; position: relative; min-width: 0; }
.step::before { content: ''; position: absolute; top: 15px; left: 32px; right: 0; height: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step .bul { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8125rem; background: var(--surface); border: 2px solid var(--field); color: var(--muted); position: relative; z-index: 1; }
.step.done .bul { background: var(--green); border-color: var(--green); color: #fff; }
.step.done::before { background: var(--green); }
.step.now .bul { border-color: var(--green); color: var(--green); box-shadow: 0 0 0 4px var(--green-t); }
.step .st { font-size: .8125rem; font-weight: 700; padding-right: 8px; }
.step .sd { font-size: .75rem; color: var(--muted); }
/* Vertical timeline */
.vtl { position: relative; display: flex; flex-direction: column; gap: 18px; }
.vtl-item { display: grid; grid-template-columns: 22px 1fr; gap: 12px; position: relative; }
.vtl-item::before { content: ''; position: absolute; left: 10px; top: 22px; bottom: -18px; width: 2px; background: var(--line); }
.vtl-item:last-child::before { display: none; }
.vtl-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--field); background: var(--surface); display: grid; place-items: center; position: relative; z-index: 1; }
.vtl-item.done .vtl-dot { background: var(--green); border-color: var(--green); color: #fff; }
.vtl-item.done::before { background: var(--green-l); }
.vtl-item.now .vtl-dot { border-color: var(--gold); background: var(--gold-t); }
.vtl-item.now .vtl-dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.vtl-dot .i { width: 12px; height: 12px; stroke-width: 3; }
/* Checklist rows (12 checks) */
.checklist { display: flex; flex-direction: column; }
.ck { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.ck:last-child { border-bottom: 0; }
.ck-ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--green-ok); color: #fff; }
.ck-ic .i { width: 14px; height: 14px; stroke-width: 3; }
.ck.fail .ck-ic { background: var(--red); }
.ck.warn .ck-ic { background: var(--gold); }
.ck.pending .ck-ic { background: var(--surface-3); color: var(--muted); }
.ck.running .ck-ic { background: transparent; border: 2px solid var(--green-l); border-top-color: var(--green); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ck-t { font-weight: 700; font-size: .875rem; line-height: 1.35; }
.ck-s { font-size: .75rem; color: var(--muted); margin-top: 2px; }
.ck-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(14, 26, 20, .55); z-index: 900; display: none; align-items: center; justify-content: center; padding: 20px; animation: fade .15s; }
.modal-backdrop.open { display: flex; }
.modal { width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--sh-3); animation: rise .2s ease; }
.modal-lg { max-width: 760px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 0; }
.modal-body { padding: 16px 24px 8px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px 22px; flex-wrap: wrap; }
.modal-x { border: 0; background: var(--surface-3); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }
/* Drawer / bottom sheet */
.drawer { position: fixed; z-index: 920; background: var(--surface); box-shadow: var(--sh-3); display: flex; flex-direction: column; transition: transform .25s ease; }
.drawer-right { top: 0; right: 0; bottom: 0; width: min(420px, 100vw); transform: translateX(100%); }
.drawer-left { top: 0; left: 0; bottom: 0; width: min(320px, 88vw); transform: translateX(-100%); }
.drawer-bottom { left: 0; right: 0; bottom: 0; max-height: 88vh; border-radius: 22px 22px 0 0; transform: translateY(100%); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-body { padding: 18px 20px; overflow: auto; flex: 1; }
.drawer-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.scrim { position: fixed; inset: 0; background: rgba(14, 26, 20, .45); z-index: 910; display: none; }
.scrim.open { display: block; }
/* Popover / dropdown */
.pop-wrap { position: relative; }
.pop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 400; min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-3); padding: 8px; display: none; }
.pop.open { display: block; animation: rise .15s; }
.pop-right { left: auto; right: 0; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 8px; background: none; border: 0; text-align: left; font-size: .875rem; font-weight: 600; color: var(--ink); text-decoration: none !important; }
.menu-item:hover { background: var(--surface-2); }
.menu-sep { height: 1px; background: var(--line); margin: 6px 0; }
.menu-label { font-size: .6875rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 8px 12px 4px; }
/* Toast */
.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 32px); max-width: 480px; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--ink); color: #fff; border-radius: 12px; box-shadow: var(--sh-3); font-size: .875rem; font-weight: 600; animation: rise .2s; }
.toast .i { color: #7FD3A8; }
.toast.warn .i { color: var(--cta); }
/* Tooltip */
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: .75rem; font-weight: 600; padding: 6px 9px; border-radius: 7px; white-space: nowrap; z-index: 500; pointer-events: none; }
/* Range (dual) */
.range { position: relative; height: 28px; }
.range input[type=range] { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 28px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: all; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--green); box-shadow: var(--sh-1); cursor: grab; position: relative; z-index: 2; }
.range input[type=range]::-moz-range-thumb { pointer-events: all; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--green); cursor: grab; }
.range .rtrack { position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 4px; background: var(--line); }
.range .rfill { position: absolute; top: 12px; height: 4px; border-radius: 4px; background: var(--green); }
/* Empty state */
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .i { width: 36px; height: 36px; margin: 0 auto 10px; color: var(--field); }
/* Upload */
.drop { border: 2px dashed var(--field); border-radius: var(--r); padding: 22px; text-align: center; background: var(--surface-2); color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.drag { border-color: var(--green); background: var(--green-t); color: var(--green-d); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.thumb { position: relative; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: var(--surface-3); border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .thumb-x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(21, 32, 27, .75); color: #fff; display: grid; place-items: center; }
.thumb .thumb-tag { position: absolute; left: 6px; bottom: 6px; background: rgba(21, 32, 27, .75); color: #fff; font-size: .6875rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
/* Sample-data ribbon */
.concept-tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--cta); color: var(--ink); font-size: .6875rem; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }

/* ---------- 5. Header, footer, tab bar ---------- */
.gov-strip { background: var(--green-dd); color: #DDE9E1; font-size: .75rem; }
.gov-strip .wrap-wide { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.gov-strip a, .gov-strip button { color: #DDE9E1; }
.gov-tools { display: flex; align-items: center; gap: 4px; }
.gov-tools button { background: transparent; border: 1px solid rgba(255, 255, 255, .18); border-radius: 6px; height: 24px; min-width: 28px; padding: 0 7px; font-size: .6875rem; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.gov-tools button:hover { background: rgba(255, 255, 255, .1); }
.gov-tools .sep { width: 1px; height: 16px; background: rgba(255, 255, 255, .2); margin: 0 6px; }
.gov-tools select { background: transparent; border: 1px solid rgba(255, 255, 255, .18); border-radius: 6px; height: 24px; color: #DDE9E1; font-size: .6875rem; padding: 0 6px; }
.gov-tools select option { color: var(--ink); }
.site-header { position: sticky; top: 0; z-index: 300; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap-wide { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; color: var(--ink); flex: none; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name b { font-size: 1.0625rem; font-weight: 800; letter-spacing: -.02em; }
.brand-name span { font-size: .6875rem; color: var(--muted); font-family: var(--font-bn); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 14px; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 600; font-size: .875rem; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface-3); color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--ink-2); flex: none; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn .badge-dot { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: .625rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.lang-btn { height: 40px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface); padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .8125rem; }
.app-search { flex: 1; max-width: 460px; }
.app-search .input { height: 42px; border-radius: var(--pill); background: var(--surface-2); }
.app-nav { display: flex; align-items: center; gap: 4px; }
.app-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: var(--pill); color: var(--ink-2); font-weight: 700; font-size: .8125rem; text-decoration: none; }
.app-nav a:hover { background: var(--surface-3); }
.app-nav a[aria-current="page"] { background: var(--green-t); color: var(--green-d); }
.user-btn { display: flex; align-items: center; gap: 10px; padding: 3px 10px 3px 3px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface); text-align: left; }
.user-btn .un { font-weight: 700; font-size: .8125rem; line-height: 1.2; }
.user-btn .ur { font-size: .6875rem; color: var(--muted); line-height: 1.2; }
.menu-toggle { display: none; }
.announce { background: var(--green-t); border-bottom: 1px solid var(--green-l); font-size: .8125rem; }
.announce .wrap-wide { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 42px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.notif-item { display: flex; gap: 10px; padding: 10px 12px; border-radius: 8px; text-decoration: none !important; color: var(--ink); }
.notif-item:hover { background: var(--surface-2); }
.notif-item .t { font-size: .8125rem; font-weight: 600; line-height: 1.35; }
.notif-item .d { font-size: .6875rem; color: var(--muted); margin-top: 2px; }
.site-footer { background: #101915; color: #B9C6BE; padding: 56px 0 28px; margin-top: 0; }
.site-footer a { color: #DDE7E1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-grid h4 { color: #fff; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid li { margin-bottom: 9px; font-size: .875rem; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 36px; padding-top: 20px; font-size: .75rem; line-height: 1.6; display: flex; flex-direction: column; gap: 8px; }
.tabbar { display: none; }
.mobile-nav { padding: 12px; }
.mobile-nav a { display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-radius: 10px; font-weight: 700; color: var(--ink); text-decoration: none; }
.mobile-nav a:hover { background: var(--surface-2); }
.demo-fab { position: fixed; right: 16px; bottom: 16px; z-index: 800; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-2); font-weight: 700; font-size: .8125rem; color: var(--ink); }
.demo-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; }
.demo-list a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: .875rem; }
.demo-list a:hover { background: var(--surface-2); text-decoration: none; }
.demo-list h5 { grid-column: 1 / -1; font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* ---------- 6. Console (Government) layout ---------- */
.console { display: grid; grid-template-columns: 264px 1fr; min-height: calc(100vh - 36px); }
.side { background: var(--green-d); color: #CFE0D5; display: flex; flex-direction: column; gap: 18px; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { color: #fff; padding: 0 6px; }
.side .brand-name span { color: #A9C4B4; }
.side-office { background: rgba(255, 255, 255, .07); border-radius: 12px; padding: 12px 14px; }
.side-office .k { font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: #9DBBA9; font-weight: 800; }
.side-office .v { color: #fff; font-weight: 800; font-size: .875rem; margin-top: 2px; }
.side-office .s { font-size: .75rem; color: #A9C4B4; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: #D4E3DA; font-weight: 600; font-size: .875rem; text-decoration: none; }
.side-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side-nav a[aria-current="page"] { background: #fff; color: var(--green-d); }
.side-nav a .badge-count { margin-left: auto; background: rgba(255, 255, 255, .14); color: #fff; border: 0; }
.side-nav a[aria-current="page"] .badge-count { background: var(--cta); color: var(--ink); }
.side-foot { margin-top: auto; font-size: .75rem; color: #9DBBA9; display: flex; flex-direction: column; gap: 10px; }
.main { min-width: 0; padding: 24px 32px 40px; }
.main-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.console-topbar { display: none; }

/* ---------- 7. Pages ---------- */
/* Home */
.hero { position: relative; overflow-x: clip; background: #F3F5F1; padding: 64px 0 0; }
.hero-bg { position: absolute; inset: 0; background: url('../img/hero-basemap.jpg') center/cover no-repeat; opacity: .9; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 38%, rgba(246, 247, 244, .96) 0%, rgba(246, 247, 244, .82) 42%, rgba(246, 247, 244, .2) 100%); }
.hero-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green-d); box-shadow: var(--sh-1); }
.hero h1 { max-width: 860px; }
.hero h1 .hl { color: var(--green); position: relative; white-space: nowrap; }
.hero h1 .hl svg { position: absolute; left: 0; right: 0; bottom: -.12em; width: 100%; height: .28em; }
.hero-sub { max-width: 660px; font-size: 1.125rem; color: var(--ink-2); line-height: 1.6; }
.search-card { width: 100%; max-width: 1020px; background: #fff; border-radius: 24px; box-shadow: var(--sh-3); border: 1px solid var(--line); padding: 14px; text-align: left; position: relative; z-index: 5; }
.search-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 4px 12px; flex-wrap: wrap; }
.search-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 10px; }
.sf { border: 1px solid var(--field); border-radius: 14px; padding: 8px 14px 6px; display: flex; flex-direction: column; justify-content: center; background: #fff; min-width: 0; position: relative; transition: border-color .15s, box-shadow .15s; }
.sf:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(31, 91, 67, .14); }
.sf label, .sf .sfl { font-size: .6875rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sf input, .sf select { border: 0; padding: 2px 0; font-size: .9375rem; font-weight: 600; background: transparent; width: 100%; outline: none; appearance: none; -webkit-appearance: none; }
.sf-where { flex-direction: row; align-items: center; gap: 10px; }
.sf-where > .grow { display: flex; flex-direction: column; }
.sf-select::after { content: ''; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.filter-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 10px; margin-top: 10px; }
.fbtn { border: 1px solid var(--field); border-radius: 14px; background: #fff; padding: 7px 34px 7px 14px; text-align: left; position: relative; min-width: 0; width: 100%; height: 100%; }
.fbtn::after { content: ''; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); }
.fbtn .k { display: block; font-size: .6875rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fbtn .v { display: block; font-weight: 700; font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fbtn.is-set { border-color: var(--green-l); background: var(--green-t); }
.fbtn.is-set .k { color: var(--green); }
.search-foot { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 0 4px; flex-wrap: wrap; }
.popular { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; font-size: .8125rem; color: var(--muted); padding: 18px 0 0; position: relative; z-index: 2; }
.popular a { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; color: var(--ink-2); font-weight: 600; }
.float-card { position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--sh-3); border: 1px solid var(--line); padding: 12px; z-index: 3; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.stats-band { position: relative; z-index: 4; margin-top: 44px; transform: translateY(40px); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh-2); }
.stats-grid > div { padding: 24px 26px; border-right: 1px solid var(--line); }
.stats-grid > div:last-child { border-right: 0; }
.stats-grid b { display: block; font-size: 2.2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.stats-grid span { font-size: .875rem; color: var(--muted); }
.plot-card { overflow: hidden; display: flex; flex-direction: column; }
.plot-img { position: relative; aspect-ratio: 4/3; background: #4D5A3E; overflow: hidden; }
.plot-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.plot-card:hover .plot-img img { transform: scale(1.04); }
.plot-img .pi-top { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: center; }
.plot-img .pi-dag { position: absolute; left: 10px; bottom: 10px; background: rgba(14, 26, 20, .82); color: #fff; font-family: var(--mono); font-size: .75rem; font-weight: 600; padding: 4px 8px; border-radius: 6px; }
.save-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); display: grid; place-items: center; color: var(--ink); box-shadow: var(--sh-1); }
.save-btn[aria-pressed="true"] { color: #D2462A; }
.save-btn[aria-pressed="true"] .i { fill: #D2462A; stroke: #D2462A; }
.plot-body { padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plot-price { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.plot-price b { font-size: 1.375rem; font-weight: 800; letter-spacing: -.03em; }
.plot-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.plot-meta span { font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 6px; background: var(--surface-3); color: var(--ink-2); }
.plot-foot { border-top: 1px solid var(--line-2); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: .875rem; }
.feature { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.feature-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--green-t); color: var(--green); display: grid; place-items: center; }
.phone { width: 290px; border-radius: 40px; background: #0F1713; padding: 11px; box-shadow: var(--sh-3); }
.phone-screen { background: #fff; border-radius: 30px; overflow: hidden; min-height: 500px; }
.laptop { background: #1A221E; border-radius: 18px 18px 0 0; padding: 12px 12px 0; box-shadow: var(--sh-3); }
.laptop-screen { border-radius: 8px 8px 0 0; overflow: hidden; position: relative; aspect-ratio: 16/10; background: #556043; }
.laptop-base { height: 16px; background: linear-gradient(#D7DBD6, #B7BDB7); border-radius: 0 0 16px 16px; width: 108%; margin-left: -4%; }
@media (max-width: 1100px) { .laptop-base { width: 100%; margin-left: 0; } }
.owner-band { background: var(--green-d) url('../img/sat-wide.jpg') center/cover; border-radius: 28px; position: relative; overflow: hidden; color: #fff; }
.owner-band::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 42, 31, .93), rgba(14, 42, 31, .86)); }
.owner-band > * { position: relative; }
.osteps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.osteps::before { content: ''; position: absolute; left: 12%; right: 12%; top: 30px; border-top: 2px dashed rgba(255, 255, 255, .3); }
.ostep { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.ostep .oc { width: 60px; height: 60px; border-radius: 50%; background: #fff; color: var(--green); display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(255, 255, 255, .12); }
.audience { border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; min-height: 230px; }
.audience .ai { width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; }
.help-band { background: #FBF0D6; border: 1px solid #F0DDB0; border-radius: 28px; text-align: center; padding: 48px 24px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Map */
.map-shell { display: grid; grid-template-columns: 300px minmax(0, 1fr) 400px; height: calc(100vh - var(--header-h) - 36px); min-height: 620px; }
.map-shell.list-mode { grid-template-columns: 300px minmax(0, 1fr); }
.filters { border-right: 1px solid var(--line); background: var(--surface); overflow-y: auto; display: flex; flex-direction: column; }
.filters-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.filters-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 18px; }
.filters-foot { position: sticky; bottom: 0; z-index: 5; background: var(--surface); padding: 14px 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.fgroup { display: flex; flex-direction: column; gap: 10px; }
.fgroup-t { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mapbox { position: relative; overflow: hidden; background: #56603F; touch-action: none; user-select: none; -webkit-user-select: none; }
.mapbox svg.map-svg { width: 100%; height: 100%; display: block; cursor: grab; }
.mapbox svg.map-svg.dragging { cursor: grabbing; }
.map-overlay { position: absolute; z-index: 5; }
.map-chips { top: 14px; left: 14px; right: 340px; display: flex; flex-wrap: wrap; gap: 8px; }
.map-ctrls { top: 14px; right: 14px; display: flex; flex-direction: column; gap: 8px; }
.map-ctrl { width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); display: grid; place-items: center; color: var(--ink); }
.map-ctrl-group { display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; box-shadow: var(--sh-1); border: 1px solid var(--line); }
.map-ctrl-group .map-ctrl { border-radius: 0; border: 0; box-shadow: none; }
.map-ctrl-group .map-ctrl + .map-ctrl { border-top: 1px solid var(--line); }
.layers-panel { top: 14px; right: 66px; width: 260px; background: #fff; border-radius: 14px; box-shadow: var(--sh-3); border: 1px solid var(--line); padding: 14px; }
.basemap-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 12px; }
.basemap-opt { border: 2px solid var(--line); border-radius: 10px; background: #fff; padding: 4px; font-size: .75rem; font-weight: 700; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.basemap-opt img { width: 100%; height: 46px; object-fit: cover; border-radius: 6px; }
.basemap-opt[aria-pressed="true"] { border-color: var(--green); background: var(--green-t); }
.layer-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; font-size: .8125rem; font-weight: 600; }
.map-legend { right: 14px; bottom: 14px; background: rgba(255, 255, 255, .96); border-radius: 12px; padding: 10px 12px; box-shadow: var(--sh-2); font-size: .75rem; display: flex; flex-direction: column; gap: 5px; }
.map-legend .lg { display: flex; align-items: center; gap: 8px; }
.map-legend .sw { width: 14px; height: 10px; border-radius: 3px; border: 2px solid #fff; }
.map-scale { left: 14px; bottom: 14px; background: rgba(255, 255, 255, .92); border-radius: 8px; padding: 6px 10px; font-size: .6875rem; font-family: var(--mono); }
.map-popup { position: absolute; z-index: 6; width: 300px; background: #fff; border-radius: 16px; box-shadow: var(--sh-3); border: 1px solid var(--line); padding: 14px; transform: translate(-50%, calc(-100% - 18px)); }
.map-popup::after { content: ''; position: absolute; left: 50%; bottom: -8px; width: 16px; height: 16px; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: translateX(-50%) rotate(45deg); }
.map-popup.below { transform: translate(-50%, 18px); }
.map-popup.below::after { top: -8px; bottom: auto; transform: translateX(-50%) rotate(225deg); }
.popup-kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 10px 0; margin: 10px 0; }
.popup-kv .k { font-size: .6875rem; color: var(--muted); font-weight: 600; }
.popup-kv .v { font-weight: 800; font-size: .9375rem; }
.results { border-left: 1px solid var(--line); background: var(--surface-2); display: flex; flex-direction: column; min-height: 0; }
.results-head { padding: 16px 18px 12px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.results-list { overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.res-card { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.res-card:hover { box-shadow: var(--sh-2); }
.res-card.is-active { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.res-card .rt { width: 92px; height: 92px; border-radius: 10px; overflow: hidden; background: #4D5A3E; }
.res-card .rt img { width: 100%; height: 100%; object-fit: cover; }
.compare-bar { background: var(--green-t); border: 1px solid var(--green-l); border-radius: 12px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .8125rem; font-weight: 700; color: var(--green-d); }
.list-view { overflow-y: auto; padding: 22px; background: var(--paper); }
.mapbar-mobile { display: none; }
[data-page="map"] .demo-fab { right: auto; left: 460px; }
[data-page="field"] .demo-fab { bottom: 100px; }
@media (max-width: 1280px) { [data-page="map"] .demo-fab { left: 440px; } }
@media (max-width: 1100px) { [data-page="map"] .demo-fab { left: 160px; } }

/* Plot page */
.crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .8125rem; color: var(--muted); }
.crumbs a { color: var(--muted); font-weight: 600; }
.crumbs .i { width: 14px; height: 14px; }
.gallery { display: grid; grid-template-columns: 1fr 300px; grid-template-rows: 1fr 1fr; gap: 10px; height: 420px; }
.gallery > * { position: relative; border-radius: 16px; overflow: hidden; background: #4D5A3E; }
.gallery .g-main { grid-row: 1 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.g-label { position: absolute; left: 12px; bottom: 12px; background: rgba(14, 26, 20, .78); color: #fff; font-size: .75rem; font-weight: 700; padding: 5px 10px; border-radius: 8px; display: inline-flex; gap: 6px; align-items: center; }
.g-tools { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; }
.g-tools .btn { min-height: 34px; padding: 0 12px; font-size: .75rem; }
.plot-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.sticky-tabs { position: sticky; top: var(--header-h); z-index: 50; background: var(--paper); }
.side-sticky { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 16px; }
.glance { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.glance .gk { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; position: relative; }
.glance .gk .k { font-size: .75rem; color: var(--muted); font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.glance .gk .v { font-weight: 800; font-size: 1.125rem; letter-spacing: -.02em; margin-top: 4px; }
.glance .gk .s { font-size: .75rem; color: var(--muted); }
.rec-table td:first-child { font-weight: 700; width: 24%; }
.rec-table td:last-child { width: 26%; font-size: .75rem; color: var(--muted); }
.rec-table .sync { font-family: var(--mono); font-size: .6875rem; }
.price-bar { position: relative; height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--green-l), #E8E2C6 55%, #F0D7B5); margin: 12px 0 6px; }
.price-bar .band { position: absolute; top: -3px; bottom: -3px; border-radius: 99px; background: rgba(31, 91, 67, .18); border: 1px solid var(--green-l); }
.price-bar .mk { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%, -50%); border: 2px solid #fff; box-shadow: var(--sh-1); }
.chart-box { width: 100%; }
.chart-box svg text { font-family: var(--font); }
.section-card { scroll-margin-top: calc(var(--header-h) + 64px); }
.mobile-actionbar { display: none; }
.lightbox { position: fixed; inset: 0; background: rgba(8, 14, 11, .92); z-index: 950; display: none; flex-direction: column; align-items: center; justify-content: center; padding: 24px; gap: 14px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 100%); max-height: 72vh; border-radius: 12px; object-fit: contain; }
.lightbox .lb-cap { color: #fff; font-weight: 600; font-size: .875rem; }

/* Compare */
.cmp-table { min-width: 760px; }
.cmp-table th, .cmp-table td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; font-size: .875rem; }
.cmp-table thead th { background: #fff; vertical-align: top; text-transform: none; letter-spacing: 0; font-size: .875rem; color: var(--ink); }
.cmp-table tbody th { font-weight: 600; color: var(--muted); width: 220px; position: sticky; left: 0; background: #fff; z-index: 1; }
.cmp-table .grp th { background: var(--surface-2); font-size: .6875rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); font-weight: 800; }
.cmp-table .best { background: var(--green-t); color: var(--green-d); font-weight: 700; }
.cmp-table .best .bl { display: inline-block; font-size: .625rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; background: var(--green); color: #fff; padding: 1px 6px; border-radius: 4px; margin-left: 6px; vertical-align: 1px; }
.cmp-table tr.same { display: table-row; }
.only-diff tr.same { display: none; }
.cmp-col-head { display: flex; flex-direction: column; gap: 8px; min-width: 200px; }
.cmp-col-head .ct { height: 110px; border-radius: 12px; overflow: hidden; position: relative; background: #4D5A3E; }
.cmp-col-head .ct img { width: 100%; height: 100%; object-fit: cover; }

/* Account pages */
.page-head { padding: 28px 0 8px; }
.wizard-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.wstep { display: flex; gap: 10px; align-items: flex-start; padding: 14px 12px; border-bottom: 3px solid var(--line); background: none; border-top: 0; border-left: 0; border-right: 0; text-align: left; }
.wstep .wn { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--field); display: grid; place-items: center; font-weight: 800; font-size: .75rem; color: var(--muted); flex: none; background: #fff; }
.wstep .wt { font-weight: 700; font-size: .875rem; line-height: 1.3; }
.wstep .wd { font-size: .75rem; color: var(--muted); }
.wstep.done { border-bottom-color: var(--green); }
.wstep.done .wn { background: var(--green); border-color: var(--green); color: #fff; }
.wstep.now { border-bottom-color: var(--green); }
.wstep.now .wn { border-color: var(--green); color: var(--green); box-shadow: 0 0 0 4px var(--green-t); }
.qblock { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.qblock:last-child { border-bottom: 0; }
.qnum { width: 34px; height: 34px; border-radius: 50%; background: var(--green-t); color: var(--green-d); font-weight: 800; display: grid; place-items: center; }
.otp { display: flex; gap: 8px; }
.otp input { width: 48px; height: 54px; text-align: center; font-size: 1.375rem; font-weight: 800; border: 1px solid var(--field); border-radius: 12px; background: #fff; }
.otp input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31, 91, 67, .16); }
.auth-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 36px); }
.auth-art { background: var(--green-d) url('../img/sat-wide.jpg') center/cover; position: relative; color: #fff; padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-art::before { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(14, 42, 31, .95), rgba(14, 42, 31, .78)); }
.auth-art > * { position: relative; }
.auth-form { display: flex; flex-direction: column; padding: 28px 40px; }
.auth-box { width: 100%; max-width: 460px; margin: auto; display: flex; flex-direction: column; gap: 18px; }
.chat { display: flex; flex-direction: column; gap: 10px; max-height: 460px; overflow-y: auto; padding: 4px 2px; }
.msg { max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: .875rem; line-height: 1.45; }
.msg .m-meta { display: block; font-size: .6875rem; color: var(--muted); margin-top: 4px; }
.msg-them { background: var(--surface-3); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg-me { background: var(--green); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg-me .m-meta { color: #CFE3D6; }
.msg-sys { align-self: center; background: none; color: var(--muted); font-size: .75rem; font-weight: 600; text-align: center; max-width: 92%; }
.doc-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.doc-row:last-child { border-bottom: 0; }
.doc-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--green-t); color: var(--green); flex: none; }
.doc-row.missing .doc-ic { background: var(--gold-t); color: var(--gold-x); }
.deal-steps { display: grid; grid-template-columns: repeat(9, 1fr); gap: 0; }
.deal-steps .ds { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; position: relative; padding: 0 2px; }
.deal-steps .ds::before { content: ''; position: absolute; top: 15px; left: 50%; right: -50%; height: 2px; background: var(--line); }
.deal-steps .ds:last-child::before { display: none; }
.deal-steps .ds.done::before { background: var(--green); }
.deal-steps .db { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; border: 2px solid var(--field); background: #fff; color: var(--muted); position: relative; z-index: 1; }
.deal-steps .done .db { background: var(--green); border-color: var(--green); color: #fff; }
.deal-steps .now .db { border-color: var(--gold); background: var(--gold-t); color: var(--gold-x); box-shadow: 0 0 0 4px rgba(242, 179, 61, .25); }
.deal-steps .dt { font-size: .75rem; font-weight: 700; line-height: 1.25; }
.deal-steps .dd { font-size: .6875rem; color: var(--muted); }
.cal-day { width: 52px; border-radius: 12px; border: 1px solid var(--line); text-align: center; overflow: hidden; flex: none; }
.cal-day .cd-m { background: var(--green); color: #fff; font-size: .625rem; font-weight: 800; letter-spacing: .1em; padding: 3px 0; }
.cal-day .cd-d { font-size: 1.25rem; font-weight: 800; padding: 3px 0 5px; }

/* Field app */
.field-shell { max-width: 460px; margin: 0 auto; min-height: 100vh; background: var(--paper); display: flex; flex-direction: column; box-shadow: 0 0 0 1px var(--line); }
.field-top { background: var(--green-d); color: #fff; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 0; z-index: 20; }
.field-body { padding: 14px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.fstep { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.fstep-h { display: flex; align-items: center; gap: 10px; }
.fstep-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8125rem; border: 2px solid var(--field); color: var(--muted); flex: none; }
.fstep.done .fstep-n { background: var(--green); border-color: var(--green); color: #fff; }
.photo-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.photo-slot { aspect-ratio: 1; border-radius: 12px; border: 2px dashed var(--field); display: grid; place-items: center; font-weight: 800; color: var(--muted); position: relative; overflow: hidden; background: var(--surface-2); cursor: pointer; }
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot.has { border-style: solid; border-color: var(--green); }
.photo-slot.has span { position: absolute; left: 4px; top: 4px; background: rgba(14, 26, 20, .8); color: #fff; font-size: .625rem; border-radius: 5px; padding: 1px 5px; z-index: 1; }
.field-foot { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); }

/* Department */
.funnel-row { display: grid; grid-template-columns: 150px 1fr 60px; align-items: center; gap: 12px; padding: 5px 0; font-size: .8125rem; }
.funnel-bar { height: 26px; border-radius: 6px; background: var(--green); position: relative; transition: width .8s ease; }
.funnel-row:nth-child(n+5) .funnel-bar { background: #3E7A60; }
.funnel-row:nth-child(n+7) .funnel-bar { background: #6B9C85; }
.hbar-row { display: grid; grid-template-columns: 200px 1fr 36px; align-items: center; gap: 12px; padding: 6px 0; font-size: .8125rem; }
.hbar { height: 14px; border-radius: 4px; background: var(--red); opacity: .8; transition: width .8s ease; }
.tilemap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tile { border-radius: 12px; padding: 12px; min-height: 78px; display: flex; flex-direction: column; justify-content: space-between; color: var(--ink); border: 1px solid rgba(0, 0, 0, .04); }
.tile b { font-size: 1.375rem; font-weight: 800; letter-spacing: -.03em; }
.tile span { font-size: .75rem; font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .map-shell { grid-template-columns: 280px minmax(0, 1fr) 360px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 1340px) { .hero .float-card { display: none; } }
@media (max-width: 1100px) {
  #mapsec-grid { grid-template-columns: 1fr !important; }
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .app-nav .lbl { display: none; }
  .plot-layout { grid-template-columns: 1fr; }
  .side-sticky { position: static; }
  .map-shell { grid-template-columns: minmax(0, 1fr) 360px; }
  .map-shell.list-mode { grid-template-columns: minmax(0, 1fr); }
  .filters { position: fixed; top: 0; left: 0; bottom: 0; width: min(340px, 92vw); z-index: 920; transform: translateX(-100%); transition: transform .25s; box-shadow: var(--sh-3); }
  .filters.open { transform: none; }
  .console { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 920; transform: translateX(-100%); transition: transform .25s; height: auto; }
  .side.open { transform: none; }
  .console-topbar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--green-d); color: #fff; position: sticky; top: 0; z-index: 100; }
  .main { padding: 20px 18px 40px; }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .only-desktop { display: none !important; }
  .only-mobile { display: revert !important; }
  .section { padding: 60px 0; }
  .g-3, .g-2 { grid-template-columns: 1fr; }
  .search-row { grid-template-columns: 1fr 1fr; }
  .search-row .sf-where { grid-column: 1 / -1; }
  .search-row .btn { grid-column: 1 / -1; }
  .filter-row { grid-template-columns: 1fr 1fr; }
  .filter-row .more-col { grid-column: 1 / -1; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid > div:nth-child(2) { border-right: 0; }
  .stats-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .float-card { display: none; }
  .osteps { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .osteps::before { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 120px; height: auto; }
  .gallery .g-main { grid-column: 1 / -1; grid-row: auto; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-form { padding: 20px; }
  .wizard-steps { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; }
  .deal-steps { grid-template-columns: repeat(9, 92px); overflow-x: auto; padding-bottom: 6px; }
  .ck-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .kv { grid-template-columns: 1fr 1fr; }
  .funnel-row { grid-template-columns: 96px 1fr 44px; }
  .hbar-row { grid-template-columns: 140px 1fr 30px; }
  .tilemap { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  :root { --header-h: 60px; }
  body { font-size: 15px; }
  .wrap, .wrap-wide { padding: 0 16px; }
  .gov-strip .gs-long, .gov-tools .gs-hide { display: none; }
  .header-actions .hide-sm { display: none !important; }
  .app-search { display: none; }
  .app-nav { display: none; }
  .brand-name span { display: none; }
  .user-btn .un, .user-btn .ur, .user-btn > .i { display: none !important; }
  .gov-strip .ct-long, .hide-xs { display: none; }
  .cta-head { width: 38px; padding: 0; }
  .brand-name b { font-size: .9375rem; }
  .site-header .wrap-wide { gap: 10px; }
  .user-btn { padding: 2px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 600; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .6875rem; font-weight: 700; color: var(--muted); padding: 4px 0; text-decoration: none; }
  .tabbar a[aria-current="page"] { color: var(--green); }
  body.has-tabbar { padding-bottom: 68px; }
  body.has-tabbar .demo-fab { bottom: 84px; }
  .hero { padding-top: 36px; }
  .hero-sub { font-size: 1rem; }
  .search-card { border-radius: 20px; padding: 12px; }
  .search-row, .filter-row { grid-template-columns: 1fr; }
  .stats-band { transform: translateY(28px); }
  .stats-grid b { font-size: 1.7rem; }
  .stats-grid > div { padding: 16px; }
  .map-shell { grid-template-columns: 1fr; height: calc(100vh - var(--header-h) - 36px - 68px); min-height: 520px; }
  .map-shell .results { position: fixed; left: 0; right: 0; bottom: 68px; height: 46vh; z-index: 200; border-radius: 20px 20px 0 0; border: 1px solid var(--line); box-shadow: var(--sh-3); transform: translateY(calc(100% - 64px)); transition: transform .25s; }
  .map-shell .results.open { transform: none; }
  .map-shell.list-mode .results { display: none; }
  .mapbar-mobile { display: flex; }
  .map-popup { width: calc(100vw - 32px); max-width: 340px; }
  .layers-panel { right: 14px; top: 66px; }
  .map-chips { right: 66px; top: 66px; }
  .map-ctrls { top: 66px; }
  .demo-fab span { display: none; }
  .demo-fab { width: 40px; padding: 0; justify-content: center; }
  body.has-actionbar .demo-fab { bottom: 148px; }
  .search-top .seg { width: 100%; }
  .search-top .seg button { flex: 1; padding: 0 8px; justify-content: center; font-size: .75rem; white-space: nowrap; }
  .cmp-table tbody th { width: 116px; min-width: 116px; }
  .cmp-col-head { min-width: 170px; }
  [data-page="map"] .demo-fab { left: 16px; right: auto; bottom: 150px !important; }
  .map-legend { display: none; }
  .plot-layout { gap: 18px; }
  .mobile-actionbar { display: flex; position: fixed; left: 0; right: 0; bottom: 68px; z-index: 590; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px; gap: 10px; }
  body.has-actionbar { padding-bottom: 136px; }
  .glance { grid-template-columns: 1fr 1fr; }
  .rec-table td:last-child { display: none; }
  .modal { border-radius: 20px; }
  .main-head .h1 { font-size: 1.5rem; }
  .demo-list { grid-template-columns: 1fr; }
  .msg { max-width: 92%; }
  .otp input { width: 42px; height: 50px; }
}
@media (min-width: 761px) { .tabbar { display: none; } }

/* ---------- 8. Accessibility modes and print ---------- */
html.hc { --ink: #000; --ink-2: #111; --muted: #2B2B2B; --line: #6B6B6B; --line-2: #8A8A8A; --field: #3D3D3D; --green: #0B4A31; --green-d: #062E1E; --paper: #fff; --surface-2: #fff; --surface-3: #ECECEC; }
html.hc .btn, html.hc .chip, html.hc .card { border-width: 2px; }
html.hc a { text-decoration: underline; }
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .gov-strip, .site-header, .site-footer, .tabbar, .demo-fab, .mobile-actionbar, .sticky-tabs, .no-print, .toasts { display: none !important; }
  body { background: #fff; }
  .plot-layout { grid-template-columns: 1fr; }
  .card { break-inside: avoid; }
}
