/* ==========================================================================
   GISConvert — A Quantox Product
   Dark-first. Deep navy ground with a blue glow rising behind the hero
   and again above the footer.
   ========================================================================== */

:root, [data-theme="dark"] {
  --bg:       #06080F;
  --bg-2:     #0A0E18;
  --card:     #0E1420;
  --card-2:   #121A28;
  --ink:      #FFFFFF;
  --ink-2:    #9BA9C4;
  --mute:     #6D7C99;
  --line:     rgba(255, 255, 255, .09);
  --line-2:   rgba(255, 255, 255, .18);
  --brand:    #2563FF;
  --brand-2:  #4C82FF;
  --brand-dk: #1747D6;
  --brand-t:  rgba(37, 99, 255, .12);
  --glow:     rgba(28, 78, 232, .55);
  --glow-mid: rgba(28, 78, 232, .16);
  --glow-top: rgba(63, 110, 255, .20);
  --ok:       #34D399;
  --warn:     #F0A05C;
  --shadow:   0 24px 60px -24px rgba(0, 0, 0, .9);
  --btn-ink:  #FFFFFF;

  --ui:   "Inter", -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --wrap: 1200px;
  --pad:  clamp(16px, 4.5vw, 40px);
  --r:    14px;
  --r-s:  10px;
}

[data-theme="light"] {
  --bg:       #FFFFFF;
  --bg-2:     #F5F7FB;
  --card:     #FFFFFF;
  --card-2:   #F5F7FB;
  --ink:      #080C16;
  --ink-2:    #4A5568;
  --mute:     #8593AC;
  --line:     rgba(8, 12, 22, .10);
  --line-2:   rgba(8, 12, 22, .20);
  --brand:    #1D4FE0;
  --brand-2:  #1740BC;
  --brand-dk: #1740BC;
  --brand-t:  rgba(29, 79, 224, .08);
  --glow:     rgba(37, 99, 255, .30);
  --glow-mid: rgba(37, 99, 255, .10);
  --glow-top: rgba(37, 99, 255, .13);
  --ok:       #0E9F6E;
  --warn:     #B4541F;
  --shadow:   0 24px 60px -30px rgba(8, 12, 22, .35);
  --btn-ink:  #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--ui); font-size: 16px; line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}

svg { max-width: 100%; }
.sprite { position: absolute; width: 0; height: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 14px; top: 14px; z-index: 99; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--r-s); }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; border-radius: 4px; }

/* ==========================================================================
   NAV
   ========================================================================== */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav__in { display: flex; align-items: center; gap: 16px; min-height: 74px; position: relative; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo__m {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #7EA5FF 0%, #2563FF 42%, #10228C 100%);
  display: grid; place-items: center; color: rgba(255,255,255,.9);
}
.logo__m svg { width: 20px; height: 20px; display: block; }
.logo__t { font-weight: 700; font-size: 21px; letter-spacing: -.03em; }

.nav__links { display: none; align-items: center; gap: 4px; margin-inline: auto; }
.nav__links a {
  font-size: 15px; font-weight: 500; color: var(--ink);
  text-decoration: none; padding: 9px 14px; border-radius: 8px; opacity: .88;
}
.nav__links a:hover { opacity: 1; background: var(--line); }

.nav__right { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.nav__ghost { display: none; font-size: 15px; font-weight: 500; text-decoration: none; opacity: .88; padding: 8px 10px; }
.nav__ghost:hover { opacity: 1; }

.toggle {
  position: relative; display: inline-flex; align-items: center; justify-content: space-between;
  width: 56px; height: 30px; padding: 0 6px; flex: none;
  border: 1px solid var(--line-2); border-radius: 30px;
  background: var(--card); cursor: pointer;
}
.toggle__i { position: relative; z-index: 2; width: 13px; height: 13px; color: var(--mute); }
.toggle__i svg { width: 13px; height: 13px; display: block; }
.toggle__k {
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--brand);
  transition: transform .24s cubic-bezier(.3, .8, .4, 1);
}
[data-theme="light"] .toggle__k { transform: translateX(0); }
[data-theme="dark"] .toggle__k, :root:not([data-theme="light"]) .toggle__k { transform: translateX(26px); }
[data-theme="light"] .toggle__i--sun { color: #fff; }
.toggle__i--moon { color: var(--mute); }
[data-theme="dark"] .toggle__i--moon, :root:not([data-theme="light"]) .toggle__i--moon { color: #fff; }

.burger {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--line-2); border-radius: 9px;
  background: var(--card); color: var(--ink); cursor: pointer;
}
.burger svg { width: 20px; height: 20px; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--ui); font-size: 15px; font-weight: 600;
  padding: 12px 24px; min-height: 46px;
  border: 1px solid transparent; border-radius: 999px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .16s, border-color .16s, color .16s, transform .16s, box-shadow .16s;
}
.btn--primary {
  background: var(--brand); color: var(--btn-ink);
  box-shadow: 0 8px 26px -12px rgba(37, 99, 255, .9);
}
.btn--primary:hover { background: var(--brand-dk); transform: translateY(-1px); }

.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }

.btn--sm { font-size: 14.5px; padding: 9px 18px; min-height: 40px; }
.btn--lg { font-size: 17px; padding: 16px 34px; min-height: 56px; }
.btn--full { width: 100%; border-radius: var(--r-s); }
.btn__i { width: 17px; height: 17px; }

.linkish {
  background: none; border: 0; padding: 2px 0; cursor: pointer;
  font-size: 12.5px; font-weight: 500; color: var(--mute); font-family: var(--ui);
}
.linkish:hover { color: var(--brand-2); }

/* ==========================================================================
   SECTION HEADINGS
   ========================================================================== */

.sec__head { margin-bottom: 40px; }
.sec__head--center { text-align: center; max-width: 640px; margin-inline: auto; }
.sec__h2 {
  font-size: clamp(28px, 4.6vw, 46px); font-weight: 800;
  letter-spacing: -.04em; line-height: 1.08; margin: 0 0 12px;
}
.sec__p { color: var(--ink-2); margin: 0; font-size: 17px; }

/* ==========================================================================
   HERO
   ========================================================================== */

.hero { position: relative; padding: 56px 0 0; overflow: hidden; text-align: center; }

/* A single wash of blue filling the whole hero: one pool above the headline,
   a wider one below the product frame, so the colour never stops at an edge. */
.hero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  inset: -120px -20vw -180px;
  background:
    radial-gradient(60% 45% at 50% 4%,  var(--glow-top) 0%, transparent 72%),
    radial-gradient(85% 60% at 50% 108%, var(--glow) 0%, var(--glow-mid) 42%, transparent 78%),
    radial-gradient(120% 100% at 50% 60%, var(--glow-mid) 0%, transparent 70%);
}

/* keep the top of the page from banding against the sticky bar */
.hero::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  left: 0; right: 0; top: 0; height: 160px;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 100%);
}
.hero__in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 0; text-decoration: none;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--card); padding: 4px 4px 4px 4px; margin-bottom: 30px;
  font-size: 13.5px; overflow: hidden;
}
.badge:hover { border-color: var(--brand); }
.badge__tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(100deg, #3E6DFF, #1B3FD8);
  color: #fff; font-weight: 600; border-radius: 999px; padding: 4px 12px;
}
.badge__tag svg { width: 13px; height: 13px; }
.badge__txt { padding: 0 14px 0 12px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.badge__txt svg { width: 14px; height: 14px; }
.badge:hover .badge__txt { color: var(--ink); }

.hero__h1 {
  font-size: clamp(38px, 8vw, 82px); font-weight: 800;
  letter-spacing: -.045em; line-height: 1.0; margin: 0 0 22px;
  max-width: 15ch;
}
.hero__sub {
  font-size: clamp(16px, 2.1vw, 20px); color: var(--ink-2);
  max-width: 46ch; margin: 0 0 34px; line-height: 1.5;
}
.hero__act { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 46px; }

/* tab switcher */
.tabs {
  display: inline-flex; gap: 4px; padding: 5px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 26px;
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  font-family: var(--ui); font-size: 14.5px; font-weight: 500;
  color: var(--ink-2); background: transparent;
  border: 1px solid transparent; border-radius: 9px;
  padding: 9px 18px; min-height: 40px; cursor: pointer; white-space: nowrap;
  transition: color .16s, background .16s, border-color .16s;
}
.tab:hover { color: var(--ink); }
.tab.is-on { color: var(--ink); background: var(--card-2); border-color: var(--line-2); }

/* product frame */
.showcase { width: 100%; position: relative; z-index: 1; }
.frame {
  border: 1px solid var(--line-2); border-radius: 18px 18px 0 0;
  background: var(--card); padding: 10px 10px 0;
  box-shadow: var(--shadow);
  max-width: 1080px; margin: 0 auto;
}
.app {
  border-radius: 12px 12px 0 0; overflow: hidden;
  background: var(--bg-2);
  display: grid; grid-template-columns: 1fr; text-align: left;
  min-height: 340px;
}

.app__side { padding: 16px; border-bottom: 1px solid var(--line); background: var(--card); }
.app__file { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.app__file svg { width: 17px; height: 17px; color: var(--brand-2); flex: none; }
.app__file b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.app__figs { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.app__figs li { background: var(--card-2); border: 1px solid var(--line); border-radius: 9px; padding: 10px 11px; }
.app__figs b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.app__figs span { font-size: 11px; color: var(--mute); }

.app__rows { display: grid; gap: 7px; }
.app__row { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-2); }
.app__row i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.app__row span { margin-inline-start: auto; font-family: var(--mono); font-size: 12px; color: var(--ink); }

.app__map { position: relative; background: var(--card-2); min-height: 240px; }
.app__map > div { position: absolute; inset: 0; }
.app__map svg { display: block; width: 100%; height: 100%; }
.app__chip {
  position: absolute; left: 14px; bottom: 14px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  border: 1px solid var(--line); border-radius: 6px; padding: 5px 9px; color: var(--ink-2);
}

.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; list-style: none; margin: 30px 0 0; padding: 0; }
.trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.trust svg { width: 16px; height: 16px; color: var(--brand-2); }

.hero__tail { padding-bottom: 78px; }

/* ==========================================================================
   POPULAR CARDS
   ========================================================================== */

.picks { padding: 84px 0; }
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

.ccard {
  display: flex; flex-direction: column; gap: 4px; position: relative;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--card); text-decoration: none; overflow: hidden;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.ccard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px 200px at 80% -20%, rgba(37, 99, 255, .16), transparent 70%);
  transition: opacity .25s;
}
a.ccard:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow); }
a.ccard:hover::after { opacity: 1; }

.ccard__pair { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; position: relative; }
.tagf {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  background: var(--card-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 4px 9px; color: var(--ink);
}
.tagf--to { background: var(--brand-t); border-color: rgba(37, 99, 255, .3); color: var(--brand-2); }
.ccard__ar { width: 15px; height: 15px; color: var(--mute); }
.ccard__t { font-size: 16px; font-weight: 600; letter-spacing: -.02em; position: relative; }
.ccard__s { font-size: 13px; color: var(--mute); position: relative; }
.ccard--soon { opacity: .5; }

/* ==========================================================================
   STEPS / WHY
   ========================================================================== */

.how { padding: 84px 0; background: var(--bg-2); border-block: 1px solid var(--line); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.steps__n {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; background: var(--brand); color: #fff;
  font-size: 15px; font-weight: 700; margin-bottom: 16px;
}
.steps h3 { font-size: 18px; font-weight: 600; margin: 0 0 8px; letter-spacing: -.02em; }
.steps p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

.why { padding: 84px 0; }
.why__grid { display: grid; gap: 36px; }
.why__lead .sec__p { max-width: 44ch; }
.why__list { display: grid; gap: 26px; }
.why__list article svg { width: 24px; height: 24px; color: var(--brand-2); margin-bottom: 12px; }
.why__list h3 { font-size: 17px; font-weight: 600; margin: 0 0 7px; letter-spacing: -.02em; }
.why__list p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { padding: 84px 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.faq__in { max-width: 820px; }
.faq__list { display: grid; gap: 10px; }

.qa { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 0 20px; }
.qa[open] { border-color: var(--line-2); }
.qa summary {
  position: relative; list-style: none; cursor: pointer;
  font-size: 16.5px; font-weight: 600; letter-spacing: -.015em; padding: 19px 38px 19px 0;
}
.qa summary::-webkit-details-marker { display: none; }
.qa__x { position: absolute; right: 2px; top: 50%; width: 13px; height: 13px; margin-top: -6px; }
.qa__x::before, .qa__x::after { content: ""; position: absolute; background: var(--brand-2); transition: transform .2s, opacity .2s; }
.qa__x::before { left: 0; right: 0; top: 6px; height: 1.6px; }
.qa__x::after { top: 0; bottom: 0; left: 6px; width: 1.6px; }
.qa[open] .qa__x::after { transform: scaleY(0); opacity: 0; }
.qa__a p { margin: 0 0 20px; color: var(--ink-2); font-size: 14.5px; max-width: 70ch; }

/* ==========================================================================
   MATRIX
   ========================================================================== */

.matrix { padding: 84px 0; }
.matrix__groups { display: grid; gap: 28px; }
.mgroup__h { font-size: 13px; font-weight: 600; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mgroup__pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  font-size: 12.5px; color: var(--mute); background: var(--card);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; text-decoration: none;
  transition: border-color .16s, color .16s, background .16s;
}
.pill--live { color: var(--brand-2); border-color: rgba(37, 99, 255, .3); font-weight: 500; }
.pill--live:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.pill--here { color: var(--ink); border-color: var(--line-2); font-weight: 500; }

/* ==========================================================================
   CONVERT PAGE
   ========================================================================== */

.chero { position: relative; padding: 44px 0 60px; text-align: center; overflow: hidden; }
.chero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  left: 50%; top: -280px; transform: translateX(-50%);
  width: min(1300px, 150vw); height: 760px;
  background: radial-gradient(ellipse at center, var(--glow) 0%, transparent 66%);
  opacity: .75;
}
.chero__in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }

.crumb { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; font-size: 13px; color: var(--mute); margin-bottom: 20px; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--brand-2); }

.chero__h1 { font-size: clamp(30px, 5.8vw, 54px); font-weight: 800; letter-spacing: -.042em; line-height: 1.04; margin: 0 0 16px; max-width: 18ch; }
.chero__sub { font-size: clamp(15.5px, 2vw, 18.5px); color: var(--ink-2); max-width: 54ch; margin: 0 0 34px; }

.conv {
  width: 100%; max-width: 720px;
  background: var(--card); border: 1px solid var(--line-2);
  border-radius: 18px; padding: 12px; box-shadow: var(--shadow);
}
.conv__head { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 6px 4px 14px; }
.conv__side { display: inline-flex; align-items: center; gap: 8px; }
.conv__side em { font-style: normal; font-size: 10.5px; color: var(--mute); text-transform: uppercase; letter-spacing: .12em; }
.conv__side .tagf { font-size: 13px; padding: 6px 13px; }
.conv__ar { width: 18px; height: 18px; color: var(--mute); flex: none; }

.drop {
  position: relative; cursor: pointer; overflow: hidden;
  border: 1.5px dashed var(--line-2); border-radius: 12px;
  background: var(--bg-2); padding: clamp(30px, 6vw, 48px) 18px;
  transition: border-color .18s, background .18s;
}
.drop:hover { border-color: var(--brand); background: var(--brand-t); }
.drop__body { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.drop__ic { width: 42px; height: 42px; color: var(--brand-2); margin-bottom: 8px; }
.drop__t { font-size: clamp(16px, 2.6vw, 19px); font-weight: 600; margin: 0; letter-spacing: -.02em; }
.drop__s { font-size: 11.5px; color: var(--mute); text-transform: uppercase; letter-spacing: .14em; margin: 6px 0 14px; }
.drop__note { font-size: 12.5px; color: var(--mute); margin: 16px 0 0; }
.drop.is-armed { border-color: var(--brand); border-style: solid; background: var(--brand-t); }
.drop.is-busy { pointer-events: none; opacity: .7; }

.conv__bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding: 14px 4px 4px; }
.conv__free { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--mute); }
.conv__free svg { width: 14px; height: 14px; color: var(--ok); }

/* alerts */
.alerts { display: grid; gap: 8px; margin: 26px 0 0; }
.alert { border: 1px solid var(--line); border-left: 3px solid var(--warn); background: var(--card); border-radius: var(--r-s); padding: 13px 15px; font-size: 14px; color: var(--ink-2); }
.alert--note { border-left-color: var(--line-2); }
.alert b { display: block; color: var(--ink); font-weight: 600; }

/* workspace */
.result { display: grid; gap: 16px; margin: 26px 0 10px; }

.board { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; }
.board__bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 15px; border-bottom: 1px solid var(--line); }
.board__t { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin: 0; }
.board__doc { font-family: var(--mono); font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40%; }

.segs { display: flex; margin-inline-start: auto; background: var(--card-2); border: 1px solid var(--line); border-radius: 9px; padding: 3px; gap: 3px; }
.seg {
  font-family: var(--ui); font-size: 12.5px; color: var(--ink-2);
  background: transparent; border: 1px solid transparent; border-radius: 7px;
  padding: 6px 12px; min-height: 32px; cursor: pointer;
}
.seg:hover { color: var(--ink); }
.seg.is-on { background: var(--brand); color: #fff; border-color: var(--brand); }

.map { height: clamp(300px, 46vh, 420px); background: var(--bg-2); }

.hud { display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--ink-2); min-height: 42px; }
.hud__tag { font-size: 10px; letter-spacing: .12em; background: var(--brand); color: #fff; border-radius: 4px; padding: 3px 8px; flex: none; }
.hud__v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.side { display: grid; gap: 16px; align-content: start; }
.panel { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 17px; }
.panel__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.panel__t { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin: 0; }

.figs { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.figs li { background: var(--card-2); border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; }
.figs b { display: block; font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -.025em; }
.figs span { font-size: 11.5px; color: var(--mute); }

.tally { width: 100%; border-collapse: collapse; font-size: 14px; }
.tally th { text-align: left; padding: 0 0 8px; border-bottom: 1px solid var(--line); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.tally th:last-child, .tally td:last-child { text-align: right; }
.tally td { padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.tally tbody tr { cursor: crosshair; transition: background .14s; }
.tally tbody tr:hover { background: var(--card-2); }
.tally tbody tr:last-child td { border-bottom: 0; }
.tally td:last-child { font-family: var(--mono); color: var(--ink); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 10px; }

.hintline { font-size: 11.5px; color: var(--mute); margin: 9px 0 0; }
.minih { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin: 20px 0 9px; }

.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 18px; }
.chip { font-family: var(--mono); font-size: 11.5px; background: var(--card-2); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; color: var(--ink-2); }

.acts { display: grid; gap: 9px; }
.fineprint { font-size: 12px; color: var(--mute); margin: 13px 0 0; }

.fld { display: block; }
.fld__l { display: block; font-size: 13.5px; margin-bottom: 7px; color: var(--ink-2); }
.fld__i { width: 100%; font-family: var(--mono); font-size: 14px; min-height: 44px; padding: 10px 12px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--card-2); color: var(--ink); }
.fld__h { font-size: 12px; color: var(--mute); margin: 8px 0 12px; }

.chk { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--ink-2); padding: 8px 0; cursor: pointer; }
.chk input { margin: 2px 0 0; accent-color: var(--brand); flex: none; width: 16px; height: 16px; }
.chk:hover { color: var(--ink); }

.filelist { display: grid; gap: 6px; margin-top: 15px; }
.fileitem { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 11.5px; padding: 9px 11px; border-radius: 8px; background: var(--card-2); border-left: 2px solid var(--brand); color: var(--ink-2); }
.fileitem--bad { border-left-color: var(--warn); color: var(--warn); }
.fileitem__n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fileitem__c { flex: none; color: var(--mute); }

/* ==========================================================================
   CTA + FOOTER
   ========================================================================== */

.cta {
  position: relative; padding: 96px 0 104px; text-align: center; overflow: hidden;
  border-top: 1px solid var(--line);
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(90% 70% at 50% 118%, var(--glow) 0%, var(--glow-mid) 45%, transparent 80%),
    radial-gradient(130% 110% at 50% 50%, var(--glow-mid) 0%, transparent 72%);
}
.cta__in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.cta__h { font-size: clamp(28px, 4.6vw, 46px); font-weight: 800; letter-spacing: -.04em; line-height: 1.08; margin: 0 0 12px; max-width: 18ch; }
.cta__p { color: var(--ink-2); margin: 0 0 30px; max-width: 50ch; font-size: 17px; }

.foot { background: var(--bg-2); border-top: 1px solid var(--line); padding: 62px 0 0; }
.foot__cols { display: grid; gap: 30px; padding-bottom: 46px; }
.foot__cols h3 { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink); margin: 0 0 16px; }
.foot__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.foot__cols a { text-decoration: none; font-size: 14.5px; color: var(--ink-2); }
.foot__cols a:hover { color: var(--ink); }
.foot__cols li span { font-size: 14.5px; color: var(--mute); opacity: .6; }

.foot__bar { border-top: 1px solid var(--line); padding: 28px 0 40px; display: grid; gap: 14px; }
.foot__bar .logo__t { font-size: 22px; }
.foot__meta { margin: 0; font-size: 13.5px; color: var(--mute); }
.foot__owner { font-size: 13.5px; font-weight: 600; color: var(--brand-2); text-decoration: none; }
.foot__owner:hover { color: var(--ink); }
.foot__social { display: flex; gap: 10px; }
.foot__social a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-2); }
.foot__social a:hover { color: var(--ink); border-color: var(--line-2); }
.foot__social svg { width: 16px; height: 16px; }

/* ==========================================================================
   LEAFLET
   ========================================================================== */

.leaflet-container { background: var(--bg-2); font-family: var(--ui); }
.leaflet-control-attribution { background: var(--card) !important; color: var(--mute) !important; font-size: 10px !important; }
.leaflet-control-attribution a { color: var(--ink-2) !important; }
.leaflet-control-zoom a { background: var(--card) !important; color: var(--ink) !important; border-color: var(--line) !important; }
.leaflet-control-zoom a:hover { background: var(--card-2) !important; }
.leaflet-control-scale-line { background: var(--card) !important; border-color: var(--line-2) !important; color: var(--ink-2) !important; font-family: var(--mono); font-size: 10px; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--card); color: var(--ink); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.leaflet-popup-content-wrapper { border-radius: var(--r-s); }
.leaflet-popup-content { margin: 13px 15px; font-size: 13px; }
.leaflet-popup-close-button { color: var(--mute) !important; }
.pop__t { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.pop__tbl { border-collapse: collapse; font-size: 12px; }
.pop__tbl td { padding: 2px 0; vertical-align: top; color: var(--ink-2); }
.pop__tbl td:first-child { color: var(--mute); padding-inline-end: 12px; font-family: var(--mono); font-size: 11px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (min-width: 560px) {
  .figs, .app__figs { grid-template-columns: repeat(4, 1fr); }
  .acts { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .why__list { grid-template-columns: repeat(3, 1fr); }
  .matrix__groups { grid-template-columns: 1fr 1fr; gap: 28px 40px; }
  .foot__cols { grid-template-columns: repeat(3, 1fr); }
  .foot__bar { grid-template-columns: 1fr auto; align-items: center; }
  .app { grid-template-columns: 268px 1fr; min-height: 400px; }
  .app__side { border-bottom: 0; border-inline-end: 1px solid var(--line); }
  .app__figs { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__ghost { display: inline-flex; }
  .burger { display: none; }
  .hero { padding-top: 76px; }
  .why__grid { grid-template-columns: 1fr 1.6fr; gap: 56px; }
  .why__list { grid-template-columns: 1fr; gap: 30px; }
  .foot__cols { grid-template-columns: repeat(5, 1fr); }
}

@media (min-width: 1000px) {
  .result { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .figs { grid-template-columns: 1fr 1fr; }
  .acts { grid-template-columns: 1fr; }
  .map { height: clamp(430px, 56vh, 570px); }
}

@media (max-width: 899px) {
  .nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: var(--bg); border: 1px solid var(--line); border-radius: 0 0 14px 14px;
    padding: 6px var(--pad) 14px;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__links a:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   COLUMN PICKER  (phase 2)
   ========================================================================== */

.picker { margin: 26px 0 0; }

.picker__card {
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--card); padding: 20px; box-shadow: var(--shadow);
}

.picker__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.picker__t { font-size: 19px; font-weight: 700; letter-spacing: -.025em; margin: 0; }
.picker__count { font-family: var(--mono); font-size: 12px; color: var(--mute); flex: none; }
.picker__lead { color: var(--ink-2); font-size: 14.5px; margin: 8px 0 18px; max-width: 62ch; }

.picker__modes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.picker__mode {
  font-family: var(--ui); font-size: 13.5px; font-weight: 500;
  color: var(--ink-2); background: var(--card-2);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; min-height: 38px; cursor: pointer;
  transition: color .16s, border-color .16s, background .16s;
}
.picker__mode:hover { color: var(--ink); }
.picker__mode.is-on { color: var(--brand-2); border-color: var(--brand); background: var(--brand-t); }

.picker__fields { display: grid; gap: 14px; margin-bottom: 18px; }
.picker__field { display: block; }
.picker__label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.picker__input {
  width: 100%; font-family: var(--ui); font-size: 14.5px; min-height: 44px;
  padding: 10px 12px; border-radius: var(--r-s);
  border: 1px solid var(--line-2); background: var(--card-2); color: var(--ink);
}

.picker__preview {
  overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-s);
  margin-bottom: 16px; -webkit-overflow-scrolling: touch;
}
.picker__table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.picker__table th, .picker__table td {
  text-align: left; padding: 8px 12px; white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.picker__table th {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: var(--mute); background: var(--card-2); position: sticky; top: 0;
}
.picker__table td { color: var(--ink-2); }
.picker__table tr:last-child td { border-bottom: 0; }

.picker__note { font-size: 12.5px; color: var(--warn); margin: 0 0 12px; min-height: 1em; }
.picker__acts { display: flex; flex-wrap: wrap; gap: 9px; }

@media (min-width: 620px) {
  .picker__fields { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   COORDINATE TOOLS  (phase 4)
   ========================================================================== */

.coords { max-width: 760px; text-align: left; }

.ctabs { display: flex; gap: 4px; padding: 4px; background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 16px; }
.ctab {
  flex: 1; font-family: var(--ui); font-size: 14px; font-weight: 500;
  color: var(--ink-2); background: transparent; border: 1px solid transparent;
  border-radius: 8px; padding: 9px 14px; min-height: 40px; cursor: pointer;
}
.ctab:hover { color: var(--ink); }
.ctab.is-on { color: var(--ink); background: var(--card); border-color: var(--line-2); }

.crsrow { display: grid; gap: 12px; margin-bottom: 14px; }
.cfield { display: block; }
.cfield__l { display: block; font-size: 12.5px; color: var(--mute); margin-bottom: 6px; }
.cfield__i {
  width: 100%; font-family: var(--mono); font-size: 15px; min-height: 46px;
  padding: 11px 13px; border-radius: var(--r-s);
  border: 1px solid var(--line-2); background: var(--card-2); color: var(--ink);
}
.cfield__i:focus { border-color: var(--brand); outline: none; }
.cfield__area { font-size: 13.5px; line-height: 1.6; resize: vertical; min-height: 130px; }

.cnote { font-size: 12.5px; color: var(--mute); margin: 0 0 12px; }

.cresult {
  margin-top: 16px; padding: 16px; border-radius: var(--r-s);
  background: var(--card-2); border: 1px solid var(--line);
}
.cresult--bad { border-color: rgba(240,160,92,.4); color: var(--warn); }
.cout { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); }
.cout:last-of-type { border-bottom: 0; }
.cout span { font-size: 12.5px; color: var(--mute); flex: none; }
.cout b { font-family: var(--mono); font-size: 15px; text-align: right; word-break: break-all; }
.cresult .btn { margin-top: 12px; }

.cbulk { margin-top: 16px; }
.cbulk__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; color: var(--mute); }
.ctable-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-s); max-height: 380px; overflow-y: auto; }
.ctable { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.ctable th, .ctable td { text-align: left; padding: 8px 12px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.ctable th { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--mute); background: var(--card-2); position: sticky; top: 0; }
.ctable td { color: var(--ink-2); font-family: var(--mono); }
.ctable td:first-child { color: var(--mute); }

.cmap { height: 280px; margin-top: 16px; border-radius: var(--r-s); overflow: hidden; border: 1px solid var(--line); background: var(--card-2); }

@media (min-width: 620px) {
  .crsrow { grid-template-columns: 1fr 1fr; }
}

/* footer: keep every column short and level */
.foot__cols ul { max-width: 22ch; }
.foot__more { color: var(--brand-2) !important; font-weight: 500; }
.foot__formats {
  margin: 0; font-size: 13.5px; color: var(--ink-2);
  line-height: 1.85; max-width: 20ch;
}

/* ==========================================================================
   LAYER PICKER  (phase 6)
   ========================================================================== */

.lpick {
  display: grid; gap: 1px; margin-bottom: 16px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-s);
  overflow: hidden; max-height: 340px; overflow-y: auto;
}
.lpick__row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; background: var(--card); cursor: pointer;
}
.lpick__row:hover { background: var(--card-2); }
.lpick__row input { accent-color: var(--brand); width: 16px; height: 16px; flex: none; margin: 0; }
.lpick__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.lpick__body b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lpick__body span { font-size: 12px; color: var(--mute); }
.lpick__n { font-family: var(--mono); font-size: 12px; color: var(--mute); flex: none; }

.picker__crswarn {
  font-size: 13px; color: var(--ink-2); margin: 0 0 14px;
  padding: 12px 14px; border-radius: var(--r-s);
  background: var(--card-2); border-left: 3px solid var(--warn);
}

/* ==========================================================================
   VALIDATOR  (phase 8)
   ========================================================================== */

.vresult { margin-top: 16px; text-align: left; }
.vhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.vhead b { font-size: 16px; }
.vhead span { font-size: 13px; color: var(--mute); }

.vrow { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.vrow:last-of-type { border-bottom: 0; }
.vrow__i {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.vrow--ok .vrow__i { background: rgba(52,211,153,.15); color: var(--ok); }
.vrow--bad .vrow__i { background: rgba(240,160,92,.15); color: var(--warn); }
.vrow__t { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vrow__t b { font-size: 14.5px; font-weight: 600; }
.vrow__t span { font-size: 12.5px; color: var(--mute); }
.vrow__n { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); flex: none; text-align: right; max-width: 45%; }
.vrow__at { display: block; color: var(--mute); font-size: 11px; }

.vfix { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.vfix h3 { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.vfix .btn { margin-top: 12px; }

/* ==========================================================================
   MEASUREMENT TOOLS  (phase 9)
   ========================================================================== */

.measure { max-width: 860px; text-align: left; }
.mresult { margin-top: 18px; text-align: left; }

.mhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.mhead b { font-size: 16px; }
.mhead span { font-size: 13px; color: var(--mute); }

.mtotals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.mtot { background: var(--card-2); border: 1px solid var(--line); border-radius: var(--r-s); padding: 13px 14px; }
.mtot b { display: block; font-size: 23px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.mtot span { font-size: 12px; color: var(--mute); }

.mrow { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mrow span { color: var(--mute); flex: none; font-size: 13px; }
.mrow b { text-align: right; font-weight: 600; }
.mrow b.mono { font-family: var(--mono); font-weight: 400; font-size: 13px; }

.munit { margin: 16px 0 10px; max-width: 260px; }

.mtable-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-s); max-height: 420px; overflow-y: auto; margin-top: 6px; }
.mtable { border-collapse: collapse; width: 100%; font-size: 13px; }
.mtable th, .mtable td { text-align: left; padding: 9px 12px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.mtable th { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--mute); background: var(--card-2); position: sticky; top: 0; }
.mtable td { color: var(--ink-2); }
.mtable td.mono { font-family: var(--mono); font-size: 12px; }
.mtable tbody tr { cursor: pointer; }
.mtable tbody tr:hover { background: var(--card-2); }
.mtable tbody tr.is-on { background: var(--brand-t); }
.mtable tbody tr.is-on td { color: var(--ink); }

.macts { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }

@media (min-width: 620px) {
  .mtotals { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   OPERATION TOOLS  (phase 10)
   ========================================================================== */

.opview { max-width: 900px; text-align: left; }

.opinputs { display: grid; gap: 14px; }
.opinput__l { display: block; font-size: 12.5px; color: var(--mute); margin-bottom: 7px; }
.opinput__n { font-size: 12.5px; color: var(--ink-2); margin: 8px 0 0; min-height: 1em; font-family: var(--mono); }

.drop--sm { padding: 22px 16px; }
.drop--sm .drop__t { font-size: 15px; margin-bottom: 10px; }

.opparams { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.opparams .fld { max-width: 340px; }
.opparams input[type="range"] { padding: 0; height: 34px; min-height: 34px; accent-color: var(--brand); }
.opparams select[multiple] { min-height: 96px; font-family: var(--ui); }

.opresult { margin-top: 18px; }
.opstats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }

.opdl { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 18px; }
.opdl .fld { max-width: 240px; margin: 0; }

.opmapwrap { margin-top: 18px; }
.opmap__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.opmap__key { font-size: 12.5px; color: var(--mute); display: inline-flex; align-items: center; gap: 7px; }
.key { width: 16px; height: 3px; border-radius: 2px; display: inline-block; }
.key--before { background: var(--mute); }
.key--after { background: var(--brand); margin-left: 8px; }
.chk--inline { padding: 0; font-size: 13px; }

@media (min-width: 700px) {
  .opinputs { grid-template-columns: 1fr 1fr; }
  .opstats { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   ANALYSIS TOOLS  (phase 11)
   ========================================================================== */

.mtot--bad b { color: var(--warn); }
.tclean { padding: 14px 16px; border-radius: var(--r-s); background: rgba(52,211,153,.10);
          border-left: 3px solid var(--ok); font-size: 14px; margin: 14px 0; }

.tsec { margin-top: 22px; }
.tsec h3 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.tsec .cnote { margin-top: 0; margin-bottom: 10px; }

.tlist { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line);
         border-radius: var(--r-s); overflow: hidden; max-height: 320px; overflow-y: auto; }
.trow { display: flex; align-items: center; justify-content: space-between; gap: 14px;
        width: 100%; text-align: left; padding: 10px 13px; background: var(--card);
        border: 0; cursor: pointer; font-family: var(--ui); color: var(--ink); }
.trow:hover { background: var(--card-2); }
.trow.is-on { background: var(--brand-t); }
.trow__l { font-size: 13.5px; font-weight: 500; }
.trow__l em { font-style: normal; color: var(--mute); font-weight: 400; }
.trow__d { font-size: 12.5px; color: var(--mute); font-family: var(--mono); flex: none; text-align: right; }
.tflag { display: inline-block; font-family: var(--ui); font-size: 10px; letter-spacing: .06em;
         text-transform: uppercase; color: var(--warn); border: 1px solid var(--warn);
         border-radius: 20px; padding: 1px 7px; margin-left: 7px; }

.gbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 14px 0 10px; }
.gsearch { max-width: 260px; min-height: 40px; font-family: var(--ui); font-size: 14px; }

.gtable-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--r-s); max-height: 460px; }
.gtable { border-collapse: collapse; width: 100%; font-size: 13px; }
.gtable th, .gtable td { text-align: left; padding: 8px 11px; white-space: nowrap;
                         border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.gtable th { background: var(--card-2); position: sticky; top: 0; font-size: 12px; font-weight: 600; z-index: 2; }
.gtable td { color: var(--ink-2); }
.gtable td[contenteditable]:focus { outline: 2px solid var(--brand); outline-offset: -2px; background: var(--brand-t); color: var(--ink); }
.gnum { color: var(--mute) !important; font-family: var(--mono); font-size: 12px; }
.gmuted { color: var(--mute) !important; }
.gth { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.gdel { background: none; border: 0; color: var(--mute); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 2px; }
.gdel:hover { color: var(--warn); }

.gpage { display: flex; align-items: center; justify-content: space-between; gap: 12px;
         flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--mute); }

/* ==========================================================================
   DRAWING AND CREATION  (phase 12)
   ========================================================================== */

.drawview .cmap { height: clamp(360px, 55vh, 560px); }

.dbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.dmodes { display: flex; gap: 4px; padding: 4px; background: var(--card-2);
          border: 1px solid var(--line); border-radius: 10px; }
.dmode { font-family: var(--ui); font-size: 14px; font-weight: 500; color: var(--ink-2);
         background: transparent; border: 1px solid transparent; border-radius: 7px;
         padding: 8px 16px; min-height: 38px; cursor: pointer; }
.dmode:hover { color: var(--ink); }
.dmode.is-on { background: var(--brand); color: #fff; border-color: var(--brand); }
.dcount { margin-left: auto; font-family: var(--mono); font-size: 12.5px; color: var(--mute); }

.dgrid { display: grid; gap: 20px; margin-top: 16px; }
.dgrid .minih { margin-top: 0; }
.dback { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r-s); padding: 0 16px; }
.dback summary { font-size: 14.5px; padding: 13px 30px 13px 0; }

.vhandle { cursor: move; }

@media (min-width: 760px) {
  .dgrid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   LAND RECORD PARSER  (phase 13)
   ========================================================================== */

.lrcard { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; }
.lrcard h3 { font-size: 14.5px; font-weight: 600; margin: 0; padding: 11px 14px;
             background: var(--card-2); border-bottom: 1px solid var(--line); }
.lrcard .gtable td { white-space: normal; }
.lrlabel { width: 42%; color: var(--ink) !important; font-size: 13px; }
.lrmatch, .lrmiss { display: block; font-size: 11px; margin-top: 2px; font-family: var(--mono); }
.lrmatch { color: var(--ok); }
.lrmiss { color: var(--mute); }

/* survey tools (phase 14) */
.alert--soft { border-left-color: var(--mute); }

/* ==========================================================================
   MEGA MENU
   ========================================================================== */

.mm { position: relative; }

.mm__btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--ui); font-size: 14.5px; font-weight: 500;
  color: var(--ink-2); background: none; border: 0; cursor: pointer;
  padding: 8px 2px; min-height: 40px;
}
.mm__btn:hover, .mm.is-open .mm__btn { color: var(--ink); }
.mm__chev { width: 15px; height: 15px; transition: transform .18s ease; opacity: .7; }
.mm.is-open .mm__chev { transform: rotate(180deg); }

.mm__panel {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(-6px);
  width: min(720px, calc(100vw - 32px));
  background: var(--card); border: 1px solid var(--line-2);
  border-radius: 16px; box-shadow: 0 24px 60px -12px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.02);
  padding: 20px; z-index: 120;
  opacity: 0; pointer-events: none; transition: opacity .16s ease, transform .16s ease;
}
.mm--wide .mm__panel { width: min(980px, calc(100vw - 32px)); }
.mm.is-open .mm__panel { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }

/* an invisible bridge so the pointer can cross the gap */
.mm__panel::before {
  content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px;
}

.mm__head { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mm__head h3 { font-size: 15px; font-weight: 600; margin: 0 0 3px; }
.mm__head p { font-size: 13px; color: var(--mute); margin: 0; }

.mm__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mm__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 18px; }
.mm__col h4 {
  font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--mute); margin: 10px 0 4px; padding-left: 10px;
}
.mm__col:first-child h4 { margin-top: 0; }

.mmi {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px; border-radius: 10px; text-decoration: none; color: inherit;
  transition: background .13s ease;
}
.mmi:hover { background: var(--card-2); }
.mmi__ic {
  flex: none; width: 36px; height: 36px; border-radius: 9px;
  background: var(--card-2); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink-2);
}
.mmi:hover .mmi__ic { color: var(--brand-2); border-color: var(--line-2); }
.mmi__ic svg { width: 18px; height: 18px; }
.mmi__tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mmi__tx b { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.mmi__tx span { font-size: 12.5px; color: var(--mute); line-height: 1.4; }

.mmi--sm { padding: 7px 10px; gap: 10px; }
.mmi--sm .mmi__ic { width: 30px; height: 30px; border-radius: 8px; }
.mmi--sm .mmi__ic svg { width: 15px; height: 15px; }
.mmi--sm .mmi__tx b { font-size: 13.5px; }
.mmi--sm .mmi__tx span { font-size: 11.5px; }

.mm__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
}
.mm__foot a { font-size: 13.5px; color: var(--ink-2); text-decoration: none; }
.mm__foot a:hover { color: var(--ink); }
.mm__cta { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-2) !important; font-weight: 500; }
.mm__cta svg { width: 15px; height: 15px; }

/* ---- format hub page ---- */
.fmeta { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px;
         padding: 12px 18px; border-radius: var(--r-s); background: var(--card-2); border: 1px solid var(--line); }
.fmeta__i { width: 38px; height: 38px; border-radius: 9px; background: var(--card);
            border: 1px solid var(--line); display: grid; place-items: center; color: var(--brand-2); }
.fmeta__i svg { width: 20px; height: 20px; }
.fmeta b { display: block; font-family: var(--mono); font-size: 15px; }
.fmeta span { font-size: 12.5px; color: var(--mute); }

.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.fcard { display: flex; align-items: center; justify-content: space-between; gap: 10px;
         padding: 13px 15px; border-radius: var(--r-s); background: var(--card);
         border: 1px solid var(--line); text-decoration: none; color: inherit; transition: all .13s ease; }
.fcard:hover { border-color: var(--brand); background: var(--card-2); }
.fcard__t { font-size: 14px; font-weight: 500; }
.fcard__s { font-family: var(--mono); font-size: 11.5px; color: var(--mute); flex: none; }

/* ---- mobile: the panels become plain accordions ---- */
@media (max-width: 900px) {
  .mm { width: 100%; }
  .mm__btn { width: 100%; justify-content: space-between; font-size: 16px; padding: 12px 0; }
  .mm__panel {
    position: static; transform: none; width: 100%; padding: 0 0 12px;
    border: 0; box-shadow: none; background: none; border-radius: 0;
    opacity: 1; pointer-events: auto;
  }
  .mm.is-open .mm__panel { transform: none; }
  .mm__panel::before { display: none; }
  .mm__head { display: none; }
  .mm__grid, .mm__cols { grid-template-columns: 1fr; gap: 2px; }
  .mm__foot { margin-top: 10px; }
  .mmi { padding: 9px 0; }
}

/* export-only note under the matrix */
.matrix__note {
  max-width: 62ch; margin: 26px auto 0; text-align: center;
  font-size: 13.5px; line-height: 1.7; color: var(--mute);
  padding: 14px 18px; border-radius: var(--r-s);
  background: var(--card-2); border: 1px solid var(--line);
}
.matrix__note--lead { margin-top: 0; font-size: 14.5px; color: var(--ink-2); max-width: 70ch; }

/* ==========================================================================
   OPEN DATA TOOLS
   ========================================================================== */

.mm__grid--one { grid-template-columns: 1fr; }
.mm__note { font-size: 12.5px; color: var(--mute); }

.notice {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 15px 17px; border-radius: var(--r-s); margin-bottom: 18px;
  font-size: 13.5px; line-height: 1.65; color: var(--ink-2);
  background: var(--card-2); border: 1px solid var(--line);
}
.notice--send { border-left: 3px solid var(--warn); }
.notice svg { width: 19px; height: 19px; flex: none; margin-top: 2px; color: var(--warn); }
.notice b { color: var(--ink); }

.fbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.fbtn.is-on { border-color: var(--brand); color: var(--brand-2); background: var(--brand-t); }
.fhint { font-size: 12.5px; color: var(--mute); }

.consent {
  padding: 20px 22px; border-radius: var(--r-s); margin-top: 16px;
  background: var(--card-2); border: 1px solid var(--brand);
}
.consent h3 { font-size: 16px; font-weight: 600; margin: 0 0 10px; }
.consent p { font-size: 14px; line-height: 1.65; color: var(--ink-2); margin: 0 0 12px; }
.consent ul { margin: 0 0 4px; padding-left: 20px; }
.consent li { font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }
.attrib { border-left: 3px solid var(--line-2); padding-left: 13px; }

/* home showcase */
.showcase { padding: clamp(48px, 7vw, 84px) 0; }
.sgrid { display: grid; gap: 14px; max-width: 980px; margin: 0 auto; }
.scard {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px;
  border-radius: var(--r-m); background: var(--card); border: 1px solid var(--line);
  text-decoration: none; color: inherit; transition: all .15s ease;
}
a.scard:hover { border-color: var(--brand); transform: translateY(-2px); }
.scard__ic {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  background: var(--card-2); border: 1px solid var(--line-2);
  display: grid; place-items: center; color: var(--brand-2);
}
.scard__ic--warn { color: var(--warn); }
.scard__ic svg { width: 22px; height: 22px; }
.scard__b { display: flex; flex-direction: column; gap: 5px; }
.scard__b b { font-size: 17px; font-weight: 600; }
.scard__b > span { font-size: 14px; line-height: 1.6; color: var(--mute); }
.scard__go { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-2) !important; font-size: 13.5px !important; font-weight: 500; margin-top: 3px; }
.scard__go svg { width: 15px; height: 15px; }
.scard--note { background: var(--card-2); }
.scard--note:hover { transform: none; }

@media (min-width: 860px) {
  .sgrid { grid-template-columns: 1fr 1fr; }
}
