/* SkyLens: dark satellite UI with a lime accent. */

:root {
  --bg: #070b09;
  --panel: #0e1512;
  --panel-2: #131c18;
  --line: #1e2a24;
  --line-2: #2a3a32;
  --text: #eef4f0;
  --muted: #95a59c;
  --dim: #5d6d65;
  --lime: #b8f040;
  --lime-dim: #8fc427;
  --lime-ink: #0c1603;
  --lime-soft: rgba(184, 240, 64, .1);
  --amber: #f2c94c;
  --bad: #ef6b5e;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --top: 64px;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

button, input, textarea { font: inherit; color: inherit; }

button { cursor: pointer; background: none; border: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; letter-spacing: -.02em; margin: 6px 0 8px; font-weight: 700; }
h2 { font-size: 18px; margin: 0 0 10px; font-weight: 650; }
h3 { font-size: 15px; margin: 0 0 8px; }
p { margin: 0 0 10px; }

.muted { color: var(--muted); }
.sm { font-size: 13px; }
.lead { color: var(--muted); font-size: 16px; max-width: 640px; }
.fineprint { color: var(--dim); font-size: 11.5px; margin-top: 28px; }
.notice { color: var(--amber); font-size: 14px; margin-top: 10px; }
.notice a { text-decoration: underline; }
.ic { flex: none; vertical-align: -3px; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------ buttons */

.btn-lime, .btn-outline, .btn-ghost, .btn-icon {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: background .15s, border-color .15s, opacity .15s;
}
.btn-lime { background: var(--lime); color: var(--lime-ink); padding: 10px 20px; }
.btn-lime:hover { background: #c8f865; }
.btn-outline { border: 1px solid var(--line-2); background: var(--panel); padding: 9px 16px; border-radius: 10px; }
.btn-outline:hover { border-color: var(--muted); }
.btn-ghost { border: 1px solid var(--line-2); padding: 7px 16px; font-size: 13px; }
.btn-ghost:hover { border-color: var(--muted); }
.btn-icon { width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); }
.btn-icon:hover { border-color: var(--muted); }
.lg { padding: 14px 26px; font-size: 15px; }
.link { color: var(--lime); text-decoration: underline; font-size: inherit; }
.row-gap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.go {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  background: var(--lime); color: var(--lime-ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.go:hover { background: #c8f865; }

.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.back:hover { color: var(--text); }

/* ------------------------------------------------------------ badges, tags */

.badge { display: inline-block; border: 1px solid currentColor; border-radius: 6px; padding: 1px 9px; font-size: 12px; font-weight: 600; }
.badge-high { color: var(--lime); }
.badge-medium { color: var(--amber); }
.badge-low { color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; color: var(--muted); }
.tag-lime { color: var(--lime); border-color: rgba(184, 240, 64, .45); }

/* ------------------------------------------------------------ header */

.topbar {
  position: sticky; top: 0; z-index: 1000; height: var(--top);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 28px; background: rgba(7, 11, 9, .78); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; flex-direction: column; line-height: 1.05; }
.wordmark { font-weight: 800; font-size: 21px; letter-spacing: .14em; }
.wordmark span { margin-left: .35em; }
.tagline { font-size: 10.5px; color: var(--muted); letter-spacing: .12em; margin-top: 3px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.pill {
  border: 1px solid var(--lime); color: var(--lime); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.pill-out { border-color: var(--amber); color: var(--amber); }

/* ------------------------------------------------------------ cards */

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: 12px; }
.section-title { margin-top: 36px; }

/* ------------------------------------------------------------ leaflet */

.leaflet-container { background: #0b100e; font-family: inherit; }
.leaflet-control-attribution { background: rgba(0, 0, 0, .55) !important; color: #b9c4be !important; font-size: 10px; }
.leaflet-control-attribution a { color: #dfe7e2 !important; }
.leaflet-bar a { background: var(--panel-2); color: var(--text); border-color: var(--line-2) !important; }
.leaflet-bar a:hover { background: var(--line-2); }
.leaflet-control-scale-line { background: rgba(0, 0, 0, .6); color: #fff; border-color: #fff; }
.leaflet-tooltip { background: var(--panel-2); color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }
.leaflet-tooltip-top:before { border-top-color: var(--line-2); }

.map-pin {
  width: 26px; height: 26px; border-radius: 50%; background: var(--lime); color: var(--lime-ink);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px;
  border: 2px solid #0c1603; box-shadow: 0 2px 8px rgba(0, 0, 0, .6); cursor: pointer;
}
.map-pin.top { width: 34px; height: 34px; font-size: 15px; box-shadow: 0 0 0 6px rgba(184, 240, 64, .25), 0 2px 10px rgba(0, 0, 0, .6); }
.map-tag {
  display: inline-block; transform: translate(-50%, -160%); white-space: nowrap;
  background: rgba(8, 12, 10, .82); border: 1px solid rgba(255, 255, 255, .55);
  color: #fff; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 6px;
}

/* ------------------------------------------------------------ thumbnails */

.thumb { position: relative; overflow: hidden; background: #111a16; border-radius: 10px; aspect-ratio: 16 / 10; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; display: block; }
.thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.thumb polygon, .thumb circle { fill: rgba(184, 240, 64, .18); stroke: var(--lime); stroke-width: 2.5; vector-effect: non-scaling-stroke; }

/* ------------------------------------------------------------ 1. workspace */

.view-workspace, .view-analyzing { position: relative; min-height: calc(100vh - var(--top)); overflow: hidden; }
/* Leaflet panes use z-index 400+; keep the map in its own layer. */
.hero-bg, .an-map { position: absolute; inset: 0 0 0 26%; z-index: 0; isolation: isolate; }
#hero-map, #an-map { position: absolute; inset: 0; z-index: 0; }
.hero-fade, .an-fade {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    linear-gradient(90deg, var(--bg) 0%, var(--bg) 28%, rgba(7, 11, 9, .9) 40%, rgba(7, 11, 9, .55) 55%, rgba(7, 11, 9, .15) 78%, rgba(7, 11, 9, .35) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 11, 9, 0) 30%);
}
.hero-bg .leaflet-control-attribution { display: none; }

.workspace { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 56px 28px 40px; }
.workspace h1 { font-size: clamp(36px, 5vw, 58px); max-width: 720px; }
.workspace .lead { font-size: 17px; max-width: 540px; margin-bottom: 26px; }

.ask {
  display: flex; align-items: center; gap: 14px; max-width: 660px;
  background: #fff; border-radius: 16px; padding: 16px 16px 16px 22px; box-shadow: var(--shadow);
}
.ask:focus-within { box-shadow: 0 0 0 3px rgba(184, 240, 64, .55), var(--shadow); }
.ask textarea {
  flex: 1; border: 0; resize: none; outline: none; background: transparent;
  color: #12160f; font-size: 16px; line-height: 1.45; min-height: 46px;
}
.ask textarea::placeholder { color: #7b847e; }

.examples { margin-top: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; max-width: 700px; }
.chip {
  background: rgba(19, 28, 24, .85); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 9px 13px; font-size: 13px; text-align: left; max-width: 230px; line-height: 1.35;
}
.chip:hover { border-color: var(--lime-dim); }

.categories { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; max-width: 900px; }
.cat {
  display: flex; flex-direction: column; text-align: left; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s, transform .15s;
}
.cat:hover { border-color: var(--lime-dim); transform: translateY(-2px); }
.cat-img { position: relative; aspect-ratio: 3 / 2; background: #111a16; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-icon {
  position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(8, 12, 10, .8); display: flex; align-items: center; justify-content: center;
}
.cat-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.cat-body b { font-size: 14px; }
.cat-body small { color: var(--muted); font-size: 12px; line-height: 1.35; }

/* ------------------------------------------------------------ 2. analyzing */

.analyzing { position: relative; z-index: 2; pointer-events: none; max-width: 1240px; margin: 0 auto; padding: 48px 28px 40px; }
.analyzing > * { max-width: 520px; pointer-events: auto; }
.an-query { color: var(--muted); font-style: italic; font-size: 14px; }

.stepper { list-style: none; margin: 26px 0 0; padding: 0; }
.st { position: relative; display: flex; gap: 16px; padding-bottom: 20px; }
.st:not(:last-child)::before {
  content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; background: var(--line-2);
}
.st-done:not(:last-child)::before { background: var(--lime-dim); }
.st-icon {
  flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2);
  display: flex; align-items: center; justify-content: center; background: var(--bg);
}
.st b { display: block; font-size: 16px; font-weight: 600; }
.st small { color: var(--muted); font-size: 13px; }
.st-pending b { color: var(--muted); }
.st-done .st-icon { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.st-running .st-icon { border-color: var(--lime); border-top-color: transparent; animation: spin 1s linear infinite; }
.st-failed .st-icon { background: var(--bad); border-color: var(--bad); color: #2a0703; }
@keyframes spin { to { transform: rotate(360deg); } }

.layers-panel {
  margin-top: 10px; background: rgba(14, 21, 18, .9); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px;
}
.analyzing .layers-panel { max-width: 680px; }
.lp-title { font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.lp-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 10px; }
.lp { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12px; color: var(--muted); }
.lp-icon { position: relative; color: var(--text); }
.lp-icon .ok { position: absolute; right: -9px; bottom: -4px; background: var(--lime); color: var(--lime-ink); border-radius: 50%; padding: 1px; }
.lp-icon .spin {
  position: absolute; right: -9px; bottom: -4px; width: 11px; height: 11px; border-radius: 50%;
  border: 2px solid var(--lime); border-top-color: transparent; animation: spin 1s linear infinite;
}
.lp-used .lp-icon { color: var(--lime); }
.lp em { font-style: normal; font-size: 10.5px; color: var(--dim); }
.lp-unavailable, .lp-unused { opacity: .5; }
.lp-failed .lp-icon { color: var(--bad); }

.an-error { border: 1px solid var(--bad); border-radius: 14px; background: rgba(239, 107, 94, .08); padding: 16px; margin-bottom: 14px; }
.an-error b { display: block; margin-bottom: 6px; }

/* ------------------------------------------------------------ pages */

.page { max-width: 1280px; margin: 0 auto; padding: 26px 28px 64px; }
.page.narrow { max-width: 920px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.head-actions { display: flex; gap: 10px; align-items: center; }
.q-echo { color: var(--dim); font-style: italic; font-size: 13.5px; }
.empty-page { text-align: center; padding-top: 80px; }

.menu-wrap { position: relative; }
.menu {
  position: absolute; right: 0; top: 46px; z-index: 1100; min-width: 230px; padding: 6px;
  background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow);
}
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 14px; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--line); }

/* ------------------------------------------------------------ 3. results */

.decision-grid { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 16px; margin-top: 18px; }
.top-card { display: flex; flex-direction: column; gap: 12px; }
.top-card .btn-lime { align-self: flex-start; }
.top-score { display: flex; align-items: center; gap: 10px; }
.rank-badge { background: var(--lime); color: var(--lime-ink); font-weight: 800; border-radius: 6px; padding: 2px 9px; font-size: 14px; }
.top-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-big { margin-left: auto; color: var(--muted); font-size: 13px; display: flex; align-items: baseline; gap: 5px; }
.score-big b { color: var(--text); font-size: 34px; line-height: 1; }

.map-card { padding: 0; overflow: hidden; position: relative; min-height: 480px; z-index: 0; isolation: isolate; }
#res-map, #site-map { position: absolute; inset: 0; }

.facts { display: grid; grid-template-columns: minmax(120px, 42%) 1fr; margin: 0; font-size: 13.5px; }
.facts dt, .facts dd { padding: 8px 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { color: var(--muted); padding-right: 12px; }
.facts .na { color: var(--dim); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }

.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 190px); gap: 12px; overflow-x: auto; padding: 16px 2px 8px; }
.strip-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color .15s; }
.strip-card:hover { border-color: var(--lime-dim); }
.strip-card.sel { border-color: var(--lime); }
.strip-card .thumb { border-radius: 0; }
.strip-rank { position: absolute; left: 8px; top: 8px; background: var(--lime); color: var(--lime-ink); font-weight: 800; font-size: 12px; border-radius: 6px; padding: 1px 7px; }
.strip-body { display: flex; align-items: baseline; gap: 4px; padding: 8px 12px 10px; flex-wrap: wrap; }
.strip-body b { font-size: 20px; }
.strip-body small { color: var(--muted); }
.strip-body .sm { width: 100%; }

.decision-note { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 16px; }
.decision-note p:first-of-type { font-weight: 600; margin-bottom: 4px; }
.limits { margin-top: 12px; }
.limits summary { cursor: pointer; font-weight: 600; }
.limits ul { color: var(--muted); padding-left: 20px; margin: 12px 0; }
.empty-result { margin-top: 18px; }
.understood { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.understood h2 { margin: 6px 0 0; }
.det { display: flex; flex-direction: column; gap: 6px; }

/* ------------------------------------------------------------ 4. site */

.site-head { display: flex; justify-content: space-between; align-items: center; }
.site-nav { display: flex; align-items: center; gap: 10px; }
.site-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.site-title h1 { font-size: clamp(24px, 3vw, 32px); }
.score-pill { border: 1px solid var(--lime); color: var(--lime); border-radius: 999px; padding: 6px 16px; font-weight: 700; white-space: nowrap; }
.site-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-top: 14px; }
.map-card.tall { min-height: 620px; }
.site-side { display: flex; flex-direction: column; gap: 14px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -6px -6px 10px; overflow-x: auto; }
.tabs button { padding: 10px 12px; white-space: nowrap; color: var(--muted); font-size: 14px; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.active { color: var(--text); border-bottom-color: var(--lime); }

.why { background: var(--lime-soft); border-color: rgba(184, 240, 64, .35); }
.why h3 { color: var(--lime); }
.why ul { margin: 0; padding: 0; list-style: none; }
.why li { position: relative; padding-left: 18px; margin: 5px 0; font-size: 14px; }
.why li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }

.breakdown { display: flex; flex-direction: column; gap: 12px; }
.bd-top { display: flex; justify-content: space-between; font-size: 14px; }
.bd-top em { font-style: normal; color: var(--dim); font-size: 12.5px; }
.bar { height: 6px; background: var(--line); border-radius: 3px; margin: 6px 0 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--lime); border-radius: 3px; }
.bd-meta { color: var(--muted); font-size: 12px; }
.bd-na { opacity: .7; }

/* ------------------------------------------------------------ 5. next, compare */

.next-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.next-card {
  position: relative; display: flex; flex-direction: column; gap: 8px; text-align: left;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  transition: border-color .15s;
}
.next-card .ic { color: var(--lime); }
.next-card b { font-size: 16px; }
.next-card small { color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.next-card:not(.disabled):not(:disabled):hover { border-color: var(--lime-dim); }
.next-card.disabled, .next-card:disabled { opacity: .5; cursor: default; }
.soon { position: absolute; top: 16px; right: 16px; font-size: 11px; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 8px; color: var(--muted); }

.ask-dark {
  display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 8px 8px 8px 16px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; color: var(--muted);
}
.ask-dark input { flex: 1; background: transparent; border: 0; outline: none; color: var(--text); font-size: 15px; }
.ask-dark .go { width: 38px; height: 38px; }

.table-wrap { overflow-x: auto; margin-top: 16px; padding: 0; }
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp th, .cmp td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp thead th { min-width: 210px; }
.cmp tbody th { color: var(--muted); font-weight: 500; width: 200px; }
.cmp small { display: block; color: var(--dim); font-size: 12px; font-weight: 400; }
.cmp .best b, .cmp .best { color: var(--lime); }
.cmp-name { display: block; margin-top: 8px; }

/* ------------------------------------------------------------ 6. upgrade, projects */

.upgrade { display: flex; justify-content: center; padding: 40px 20px 60px; }
.up-card { max-width: 880px; width: 100%; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 40px 32px; }
.up-check { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); display: flex; align-items: center; justify-content: center; }
.up-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0 30px; }
.up-stats div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.up-stats .ic { color: var(--lime); }
.up-stats b { font-size: 30px; line-height: 1.1; }
.up-stats small { color: var(--muted); }
.up-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 18px 0; }

.projects { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.project { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.project p { margin: 8px 0 4px; }

/* ------------------------------------------------------------ report */

body[data-view="report"] { background: #eef0ec; }
.report-bar { max-width: 900px; margin: 20px auto 0; padding: 0 16px; display: flex; justify-content: space-between; align-items: center; }
.report-bar .back { color: #4b5750; margin: 0; }
.report {
  max-width: 900px; margin: 16px auto 48px; background: #fff; color: #17201b;
  border-radius: 12px; padding: 44px 48px; box-shadow: 0 6px 30px rgba(0, 0, 0, .12); font-size: 14px;
}
.report h1 { font-size: 28px; }
.report h2 { font-size: 17px; margin: 28px 0 10px; padding-bottom: 6px; border-bottom: 2px solid #17201b; }
.report .wordmark { color: #17201b; font-size: 18px; }
.rp-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #d7dcd8; padding-bottom: 14px; margin-bottom: 20px; }
.rp-meta, .rp-q { color: #5b6760; }
.rp-q { font-style: italic; }
.rp-table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.rp-table th, .rp-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid #e2e6e3; vertical-align: top; }
.rp-table th { color: #5b6760; font-weight: 600; }
.rp-site { break-inside: avoid; margin-top: 22px; }
.rp-site-grid { display: grid; grid-template-columns: 300px 1fr; gap: 18px; }
.report .facts dt, .report .facts dd { border-color: #e2e6e3; }
.report .facts dt { color: #5b6760; }
.report .facts .na { color: #8a948e; }
.report .badge-high { color: #3d7a00; }
.report .badge-medium { color: #9a6b00; }
.report .badge-low { color: #5b6760; }
.report .thumb polygon, .report .thumb circle { stroke: #9bdc1a; }
.rp-foot { margin-top: 32px; padding-top: 12px; border-top: 1px solid #d7dcd8; color: #5b6760; font-size: 12px; }

@media print {
  .topbar, .no-print { display: none !important; }
  body, body[data-view="report"] { background: #fff; }
  .report { box-shadow: none; margin: 0; padding: 0; max-width: none; border-radius: 0; }
  .thumb { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ------------------------------------------------------------ toast */

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 3000; transform: translate(-50%, 20px);
  background: #fff; color: #111; padding: 10px 18px; border-radius: 10px; font-size: 14px;
  box-shadow: var(--shadow); opacity: 0; transition: opacity .25s, transform .25s; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1000px) {
  .categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .decision-grid, .site-grid { grid-template-columns: 1fr; }
  .map-card, .map-card.tall { min-height: 380px; }
  .hero-bg, .an-map { inset: 0; }
  .hero-fade, .an-fade { background: linear-gradient(180deg, rgba(7, 11, 9, .7), rgba(7, 11, 9, .92) 60%, var(--bg)); }
}

@media (max-width: 640px) {
  :root { --top: 58px; }
  .topbar { padding: 0 16px; }
  .wordmark { font-size: 17px; }
  .tagline { display: none; }
  .top-actions { gap: 8px; }
  .pill { font-size: 11.5px; padding: 5px 10px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .top-actions { min-width: 0; }
  .btn-ghost { padding: 6px 10px; font-size: 12px; }
  .workspace, .analyzing, .page { padding-left: 16px; padding-right: 16px; }
  .workspace { padding-top: 32px; }
  .ask { padding: 12px 12px 12px 16px; }
  .categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chip { max-width: none; }
  .next-grid, .up-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-grid { grid-template-columns: 1fr; }
  .head-actions { flex-wrap: wrap; }
  .decision-note { flex-direction: column; align-items: flex-start; }
  .project { flex-direction: column; align-items: flex-start; }
  .rp-site-grid { grid-template-columns: 1fr; }
  .report { padding: 24px 18px; }
  .up-card { padding: 28px 16px; }
}

/* ------------------------------------------------------------ login */

.login { display: flex; justify-content: center; padding: 60px 20px; }
.login-card {
  width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 32px;
}
.login-card h1 { margin: 0; font-size: 28px; }
.login-card label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.login-card input {
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 11px 12px; font-size: 15px; color: var(--text);
}
.login-card input:focus { outline: none; border-color: var(--lime); }
.login-card .btn-lime { width: 100%; }
.login-card .btn-lime:disabled { opacity: .6; cursor: wait; }
.login-card .back { align-self: center; margin: 0; }
.login-error { color: var(--bad); font-size: 14px; margin: 0; }

.searched { color: var(--muted); font-size: 13.5px; display: flex; gap: 6px; align-items: baseline; }
.searched .ic { color: var(--lime); vertical-align: -2px; }
.empty-map { margin-top: 12px; min-height: 520px; }

/* ------------------------------------------------------------ about */

body[data-view="about"] .about-link { border-color: var(--lime-dim); color: var(--lime); }

.about { max-width: 1120px; padding-top: 56px; }
.ab-kicker { color: var(--lime); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.about em { font-style: normal; color: var(--lime); }
.about .lead { margin-bottom: 0; }

.ab-hero { padding-bottom: 56px; }
.ab-hero h1 { font-size: clamp(34px, 5vw, 56px); max-width: 780px; margin-bottom: 16px; }
.ab-hero .lead { font-size: 17px; max-width: 600px; margin-bottom: 26px; }

.ab-section { border-top: 1px solid var(--line); padding: 56px 0; }
.ab-h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; max-width: 820px; margin: 0 0 14px; }
.ab-big { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.3; font-weight: 600; margin-bottom: 14px; }

.ab-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; margin-top: 28px; align-items: start; }
.ab-questions { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ab-questions li { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15.5px; }

.ab-grid { display: grid; gap: 14px; margin-top: 28px; }
.ab-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ab-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ab-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ab-grid h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.ab-grid .card p { margin-bottom: 0; }
.ab-num { color: var(--lime); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.ab-app { display: flex; flex-direction: column; gap: 10px; padding: 22px; }
.ab-app-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ab-app-icon { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--lime-soft); color: var(--lime); display: flex; align-items: center; justify-content: center; }
.ab-app h3 { font-size: 19px; line-height: 1.2; margin: 8px 0 0; }
.ab-list { list-style: none; margin: auto 0 0; padding: 12px 0 0; }
.ab-list li { border-top: 1px solid var(--line); padding: 8px 0; font-size: 13px; color: var(--muted); }
.ab-list li::before { content: "→"; color: var(--lime); margin-right: 8px; }

.ab-sensor { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ab-sensor h3 { margin: 6px 0 0; }
.ab-sensor .tag { margin-top: 6px; }
.ab-visual { width: 100%; height: 110px; border-radius: 12px; background: var(--panel-2); margin-bottom: 6px; }
.ab-sat { background: radial-gradient(circle at 60% 40%, #6e8a55 0 8%, transparent 9%), linear-gradient(135deg, #2b3f32, #6f8458); }
.ab-rgb { background: linear-gradient(135deg, #2c4230, #86925e); }
.ab-thermal { background: radial-gradient(circle at 64% 45%, #f1b047 0 9%, #9b563b 10% 18%, #22332e 19%); }
.ab-lidar { background-color: #131c18; background-image: radial-gradient(circle, rgba(184, 240, 64, .75) 1px, transparent 1px); background-size: 8px 8px; }

.ab-signal { margin: 14px 0 0; }
.ab-signal div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 10px 0; font-size: 13px; }
.ab-signal dt { color: var(--muted); }
.ab-signal dd { margin: 0; color: var(--lime); font-weight: 600; }

.ab-impact { display: flex; flex-direction: column; gap: 8px; padding: 22px; }
.ab-impact h3 { font-size: 18px; margin: 6px 0 0; }
.ab-impact .ab-q { margin-top: auto; padding-top: 10px; color: var(--lime); font-size: 13.5px; font-weight: 600; }

.ab-principle { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: end; margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.ab-principle .ab-big { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.05; font-weight: 700; margin: 0; }
.ab-principle p.muted { margin: 0; }
.ab-principle-card h3 .ic { color: var(--lime); }

.ab-quote { margin: 32px 0 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--lime); font-size: clamp(18px, 2.2vw, 24px); line-height: 1.35; font-weight: 600; max-width: 760px; }

.ab-cta { text-align: center; padding: 48px 24px; margin-top: 8px; }
.ab-cta .ab-h2, .ab-cta .lead { margin-left: auto; margin-right: auto; }
.ab-cta .lead { margin-bottom: 24px; }
.ab-cta .row-gap { justify-content: center; }

@media (max-width: 1000px) {
  .ab-grid-3, .ab-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-split, .ab-principle { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  .about-link { padding: 6px 8px; }
  .about-link span { display: none; }
  .about { padding-top: 32px; }
  .ab-section { padding: 40px 0; }
  .ab-grid-2, .ab-grid-3, .ab-grid-4 { grid-template-columns: 1fr; }
  .ab-cta { padding: 36px 18px; }
}
