:root {
  color-scheme: dark;
  --ink: #f2f6ef;
  --muted: #a9b7b0;
  --panel: #10211f;
  --panel-soft: #152b28;
  --line: rgba(214, 233, 223, .14);
  --lime: #a8da5a;
  --lime-bright: #c9f47d;
  --blue: #66b7dc;
  --amber: #f0b45f;
  --green: #72d69a;
  --danger: #e87868;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  overflow: hidden;
  background: #0c1716;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.public-landing {
  min-height: 100%;
  overflow: auto;
  background:
    radial-gradient(circle at 81% 13%, rgba(168, 218, 90, .15), transparent 24%),
    radial-gradient(circle at 58% 68%, rgba(86, 171, 166, .12), transparent 28%),
    linear-gradient(121deg, #071311 0%, #0d211e 54%, #0a1716 100%);
}

.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding: 18px clamp(24px, 5vw, 78px);
  border-bottom: 1px solid rgba(219, 239, 229, .13);
}

.landing-brand { display: inline-flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.landing-header-status { display: flex; align-items: center; gap: 16px; }
.landing-header-note { display: inline-flex; align-items: center; gap: 8px; color: #b4c3bd; font-size: 12px; font-weight: 700; }
.landing-header-note i, .visual-card-signal i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(168, 218, 90, .12); }
.landing-user-identity { display: grid; gap: 2px; padding-right: 16px; border-right: 1px solid rgba(219, 239, 229, .13); font-size: 12px; line-height: 1.15; text-align: right; }
.landing-user-identity strong { font-weight: 800; }
.landing-user-identity span { color: var(--muted); font-size: 10px; text-transform: capitalize; }

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
  align-items: center;
  gap: clamp(38px, 7vw, 120px);
  width: min(1380px, 100%);
  min-height: min(650px, calc(100vh - 88px));
  margin: 0 auto;
  padding: clamp(54px, 8vh, 112px) clamp(24px, 5vw, 78px) clamp(44px, 6vh, 78px);
}

.landing-copy { max-width: 690px; }
.landing-kicker { margin: 0 0 18px; color: var(--lime); font-size: 11px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.landing-copy h1 { max-width: 660px; margin: 0; font-size: clamp(42px, 5vw, 76px); line-height: .98; letter-spacing: -.065em; }
.landing-lede { max-width: 585px; margin: 28px 0 0; color: #bdcdc6; font-size: clamp(16px, 1.45vw, 20px); line-height: 1.55; }
.landing-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 22px; margin-top: 34px; }
.landing-sign-in { display: inline-flex; align-items: center; gap: 24px; border: 0; padding: 14px 17px 14px 19px; border-radius: 8px; background: var(--lime); color: #0b1917; cursor: pointer; font-size: 14px; font-weight: 900; text-decoration: none; box-shadow: 0 14px 30px rgba(0, 0, 0, .2); transition: transform .16s ease, background .16s ease; }
.landing-sign-in[hidden] { display: none; }
.landing-sign-in:hover { background: var(--lime-bright); transform: translateY(-2px); }
.landing-sign-in:focus-visible { outline: 2px solid var(--lime-bright); outline-offset: 4px; }
.landing-sign-in span { font-size: 20px; line-height: .7; }
.landing-status { margin: 0; color: #c5d1cb; font-size: 13px; font-weight: 650; }
.landing-access-note { margin: 16px 0 0; color: #83958d; font-size: 12px; line-height: 1.5; }
.landing-auth { max-width: 430px; margin-top: 22px; padding: 20px; border: 1px solid rgba(217, 240, 226, .16); border-radius: 12px; background: rgba(6, 21, 18, .58); box-shadow: 0 18px 45px rgba(0, 0, 0, .17); }
.landing-auth-form { display: grid; gap: 13px; }
.landing-auth-form[hidden] { display: none; }
.landing-auth-form h2 { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.landing-auth-form p { margin: -4px 0 2px; color: #aabdb4; font-size: 13px; line-height: 1.45; }
.landing-auth-form label { display: grid; gap: 6px; color: #d7e4dd; font-size: 12px; font-weight: 750; }
.landing-auth-form input { min-width: 0; border: 1px solid rgba(217, 240, 226, .2); border-radius: 7px; padding: 11px 12px; background: rgba(1, 12, 10, .58); color: var(--ink); outline: none; }
.landing-auth-form input:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(168, 218, 90, .14); }
.landing-auth-submit { display: inline-flex; justify-content: center; align-items: center; gap: 15px; min-height: 43px; border: 0; border-radius: 7px; background: var(--lime); color: #0b1917; cursor: pointer; font-weight: 900; }
.landing-auth-submit:disabled { cursor: progress; opacity: .68; }
.landing-auth-error { margin: 14px 0 0; color: #ffc1b7; font-size: 13px; font-weight: 650; }

.public-landing.landing-auth-active .landing-hero {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  width: min(620px, 100%);
  min-height: calc(100svh - 88px);
  padding-top: clamp(24px, 4vh, 42px);
  padding-bottom: 42px;
}
.public-landing.landing-auth-active .landing-copy { max-width: 520px; }
.public-landing.landing-auth-active .landing-kicker { margin-bottom: 12px; }
.public-landing.landing-auth-active .landing-copy h1 { max-width: 480px; font-size: clamp(38px, 4.7vw, 58px); line-height: 1; letter-spacing: -.05em; }
.public-landing.landing-auth-active .landing-lede { max-width: 470px; margin-top: 16px; font-size: 16px; line-height: 1.45; }
.public-landing.landing-auth-active .landing-actions { margin-top: 22px; }
.public-landing.landing-auth-active .landing-auth { margin-top: 16px; }
.public-landing.landing-auth-active .landing-access-note { margin-top: 12px; }
.public-landing.landing-auth-active .landing-visual,
.public-landing.landing-auth-active .landing-proof { display: none; }

.landing-visual { position: relative; isolation: isolate; min-height: 430px; overflow: hidden; border: 1px solid rgba(211, 235, 222, .13); border-radius: 22px; background: linear-gradient(145deg, rgba(33, 71, 64, .68), rgba(7, 22, 20, .92)); box-shadow: 0 38px 90px rgba(0, 0, 0, .28); }
.landing-visual::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(203, 235, 219, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(203, 235, 219, .06) 1px, transparent 1px); background-size: 52px 52px; content: ""; mask-image: linear-gradient(to bottom, black, transparent); }
.visual-orbit { position: absolute; z-index: -1; border: 1px solid rgba(168, 218, 90, .2); border-radius: 50%; }
.orbit-one { width: 500px; height: 500px; top: -220px; right: -150px; }
.orbit-two { width: 360px; height: 360px; bottom: -215px; left: -170px; border-color: rgba(102, 183, 220, .22); }
.visual-lake { position: absolute; top: 53%; left: 51%; width: 72%; height: 47%; transform: translate(-50%, -50%) rotate(-15deg); border-radius: 48% 52% 43% 57% / 48% 39% 61% 52%; background: radial-gradient(ellipse at 35% 36%, #7ec3c7 0 3%, transparent 3.5%), radial-gradient(ellipse at 54% 67%, #9bd16b 0 3%, transparent 3.5%), linear-gradient(130deg, #2f8d8f, #176065 48%, #0f3d43); box-shadow: inset 0 0 70px rgba(189, 237, 225, .23), 0 0 0 28px rgba(76, 144, 122, .13), 0 0 0 58px rgba(76, 144, 122, .07); }
.visual-lake span { position: absolute; width: 42%; height: 2px; border-radius: 4px; background: rgba(232, 254, 244, .42); transform: rotate(18deg); }
.visual-lake span:nth-child(1) { top: 30%; left: 20%; }
.visual-lake span:nth-child(2) { top: 49%; right: 10%; width: 30%; }
.visual-lake span:nth-child(3) { bottom: 20%; left: 26%; width: 34%; }
.visual-card { position: absolute; border: 1px solid rgba(225, 245, 234, .16); border-radius: 11px; background: rgba(7, 23, 20, .8); box-shadow: 0 16px 34px rgba(0, 0, 0, .2); backdrop-filter: blur(12px); }
.visual-card-main { top: 34px; left: 30px; width: min(300px, calc(100% - 60px)); padding: 17px 18px; }
.visual-card small { display: block; color: var(--lime); font-size: 9px; font-weight: 850; letter-spacing: .14em; }
.visual-card-main strong { display: block; margin-top: 8px; font-size: 18px; line-height: 1.13; }
.visual-card-main p { margin: 8px 0 0; color: #a5b8b0; font-size: 11px; }
.visual-card-signal { right: 24px; bottom: 25px; display: grid; grid-template-columns: auto 1fr; column-gap: 9px; align-items: center; padding: 13px 15px; }
.visual-card-signal i { grid-row: span 2; width: 7px; height: 7px; }
.visual-card-signal span { color: #a4b4ad; font-size: 10px; }
.visual-card-signal strong { margin-top: 2px; font-size: 12px; }

.landing-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(1380px, 100%); margin: 0 auto; padding: 0 clamp(24px, 5vw, 78px) 55px; }
.landing-proof article { padding: 20px clamp(16px, 2vw, 28px); border-top: 1px solid rgba(215, 236, 226, .16); }
.landing-proof article:first-child { padding-left: 0; }
.landing-proof span { color: var(--lime); font-size: 10px; font-weight: 850; letter-spacing: .15em; }
.landing-proof strong { display: block; margin-top: 8px; font-size: 16px; }
.landing-proof p { max-width: 255px; margin: 7px 0 0; color: #91a49c; font-size: 12px; line-height: 1.5; }

button, input, select { font: inherit; }

.app-shell {
  display: grid;
  grid-template-rows: 54px minmax(0, 1fr);
  height: 100%;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  background: #111827;
  border-bottom: 1px solid var(--line);
}

.app-header .brand-mark { width: 34px; height: 34px; border-radius: 50%; font-size: 18px; }
.app-header .brand-copy strong { font-size: 16px; }
.app-header .eyebrow { color: #8fc7ee; font-size: 9px; }

.app-layout {
  display: grid;
  grid-template-columns: 306px minmax(0, 1fr);
  min-height: 0;
}

.site-rail {
  min-height: 0;
  overflow-y: auto;
  padding: 18px 8px;
  border-right: 1px solid #263244;
  background: #111827;
}

.site-rail h2 { margin: 0 4px; font-size: 16px; }
.site-rail > p { margin: 5px 4px 14px; color: #8fb1d1; font-size: 12px; }
.site-rail .site-list { display: grid; gap: 5px; margin: 0; }
.site-button {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 10px 8px;
  background: transparent;
  color: #f3f7fb;
  cursor: pointer;
  text-align: left;
}
.site-button strong { font-size: 13px; }
.site-button small { color: #8fb1d1; font-size: 11px; }
.site-button.active { background: #183149; }
.site-button:hover, .site-button:focus-visible { background: #1a3852; outline: 2px solid #7dc6f4; outline-offset: -2px; }

.application-main {
  display: grid;
  grid-template-rows: 42px auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
}

.workspace-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  border-bottom: 1px solid #d7e0eb;
  background: #f7f9fc;
}

.workspace-switch { display: flex; gap: 4px; }
.workspace-switch button, .logout-button {
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 6px 10px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}
.workspace-switch button { color: #53657c; }
.workspace-switch button.active { border-color: #b9c9da; background: #fff; color: #172235; }
.workspace-switch button:focus-visible, .logout-button:focus-visible { outline: 2px solid #7dc6f4; outline-offset: 2px; }
.logout-button { margin-left: 2px; border-color: #3c4b61; color: #edf4fb; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
  background: var(--lime);
  color: #0c1917;
  font-weight: 900;
  font-size: 21px;
}

.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 18px; letter-spacing: -.02em; }
.eyebrow { color: var(--lime); font-size: 10px; font-weight: 800; letter-spacing: .16em; }

.tenant-switcher-label {
  display: none;
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tenant-switcher {
  display: none;
  min-width: 158px;
  max-width: 240px;
  padding: 8px 30px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #152926;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.tenant-switcher:hover:not(:disabled) { border-color: rgba(168, 218, 90, .55); }
.tenant-switcher:focus-visible { outline: 2px solid var(--lime-bright); outline-offset: 2px; }
.tenant-switcher:disabled { cursor: wait; opacity: .64; }

.record-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.app-header:has(.tenant-switcher:not([hidden])) .record-badge { margin-left: 0; }

.record-badge span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(168, 218, 90, .12);
}

.user-identity {
  display: grid;
  gap: 2px;
  min-width: 112px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.15;
}

.user-identity strong { font-weight: 800; }
.user-identity span { color: var(--muted); font-size: 10px; text-transform: capitalize; }

.beat-nav {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: #10201e;
  border-bottom: 1px solid var(--line);
  padding: 0 18px;
}

.beat-tab {
  position: relative;
  border: 0;
  background: transparent;
  color: #8da099;
  cursor: pointer;
  text-align: left;
  padding: 9px 14px 8px;
}

.beat-tab::after {
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 3px;
  border-radius: 4px 4px 0 0;
  background: transparent;
  content: "";
}

.beat-tab span { display: block; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.beat-tab strong { display: block; margin-top: 3px; color: inherit; font-size: 14px; }
.beat-tab.active { color: var(--ink); }
.beat-tab.active span { color: var(--lime); }
.beat-tab.active::after { background: var(--lime); }

.ops-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 18px 0; }
.ops-summary > div { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(4, 17, 15, .25); }
.ops-summary span { display: block; color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.ops-summary strong { display: block; margin-top: 6px; font-size: 13px; line-height: 1.2; }
.ops-priority { width: 100%; border: 1px solid var(--line); background: #152522; color: inherit; cursor: pointer; text-align: left; }
.ops-priority:hover, .ops-priority:focus-visible { border-color: var(--amber); outline: none; }
.ops-agent { display: grid; gap: 10px; margin-top: 18px; padding: 15px; border: 1px solid rgba(102, 183, 220, .34); border-radius: 10px; background: rgba(31, 73, 80, .16); }
.ops-agent .panel-kicker { margin: 0; }
.ops-agent strong { display: block; margin-top: 4px; font-size: 15px; }
.ops-agent p { margin: 0; color: #b3c5be; font-size: 12px; line-height: 1.45; }
.ops-agent .primary-button { justify-self: start; }
@media (max-width: 820px) { .ops-summary { grid-template-columns: 1fr; } }

.workspace {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 410px;
}

.workspace.console-mode { grid-template-columns: minmax(0, 1fr) 365px; }

.console-inspector {
  min-width: 0;
  overflow-y: auto;
  border-left: 1px solid #d5deea;
  background: #fff;
  color: #1c293d;
}
.console-inspector > section { padding: 15px 16px; border-bottom: 1px solid #dce4ee; }
.console-inspector h2 { margin: 0 0 10px; color: #60738c; font-size: 12px; font-weight: 800; }
.console-section-title { margin: 0 0 10px; color: #60738c; font-size: 12px; font-weight: 800; }
.console-unavailable { margin: 8px 0 0; color: #6c7c91; font-size: 11px; line-height: 1.4; }
.console-timeline-chart { display: block; width: 100%; height: 108px; color: #17a45b; }
.console-timeline-chart circle { fill: #17a45b; cursor: pointer; }
.console-timeline-chart circle:focus { outline: none; stroke: #172235; stroke-width: 2px; }
.console-timeline-note { margin: 4px 0 0; color: #73839a; font-size: 10px; text-align: center; }
.console-metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.console-metric-card { padding: 10px; border: 1px solid #d6e0eb; border-radius: 8px; background: #f7f9fc; }
.console-metric-card span, .console-metric-card small { display: block; color: #6b7b91; font-size: 10px; }
.console-metric-card strong { display: block; margin: 3px 0; color: #172235; font-size: 17px; }
.console-chips, .console-observation-list { display: flex; flex-wrap: wrap; gap: 7px; }
.console-chip, .console-observation {
  border: 1px solid #d3deea;
  border-radius: 999px;
  padding: 5px 10px;
  background: #fff;
  color: #213249;
  font-size: 10px;
}
.console-observation { cursor: pointer; }
.console-observation.active { border-color: #1aae62; background: #ebfff3; color: #08713c; }
.console-observation:focus-visible { outline: 2px solid #1876b6; outline-offset: 2px; }
.console-source-id { overflow-wrap: anywhere; margin: 0; color: #61738b; font-size: 11px; }
.console-sample-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.console-sample-table th, .console-sample-table td { padding: 4px 5px; border-bottom: 1px solid #e0e7ef; text-align: left; }

.console-layer-control {
  position: absolute;
  z-index: 600;
  top: 12px;
  left: 12px;
  display: grid;
  gap: 8px;
  min-width: 162px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 7px;
  padding: 0 10px 10px;
  background: rgba(17, 27, 40, .9);
  color: #eef4fa;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  backdrop-filter: blur(9px);
}
.console-mode-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 -10px; }
.console-mode-tabs button { border: 0; border-bottom: 1px solid rgba(255,255,255,.12); padding: 8px; background: transparent; color: #8f9cac; cursor: pointer; font-size: 11px; font-weight: 800; }
.console-mode-tabs button.active { background: #29384a; color: #fff; }
.console-mode-tabs button:disabled { cursor: not-allowed; opacity: .42; }
.console-layer-control > strong { margin-top: 2px; color: #8694a5; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.console-layer-control label { display: flex; align-items: center; gap: 7px; color: #d8e0e8; font-size: 11px; }
.console-layer-control label.unavailable { opacity: .45; }
.console-layer-control input { accent-color: #1db66b; }

.workspace.console-mode .map-heading { top: auto; right: 14px; bottom: 12px; left: auto; max-width: 48%; padding: 7px 10px; }
.workspace.console-mode .map-legend { display: none; }
.workspace.console-mode .map-source { right: 14px; bottom: 62px; }

.map-stage { position: relative; min-width: 0; overflow: hidden; background: #162724; }
#map { width: 100%; height: 100%; background: radial-gradient(circle at 48% 48%, #243d37 0, #172c28 42%, #10211f 100%); }

.map-stage.comparison-mode #map,
.map-stage.comparison-mode .map-heading,
.map-stage.comparison-mode .map-legend,
.map-stage.comparison-mode .map-source { display: none; }

.hyperspectral-stage {
  display: none;
  height: 100%;
  overflow-y: auto;
  padding: 28px 30px 34px;
  background:
    radial-gradient(circle at 78% 14%, rgba(102, 183, 220, .09), transparent 28%),
    radial-gradient(circle at 12% 2%, rgba(168, 218, 90, .08), transparent 25%),
    #122320;
}

.map-stage.comparison-mode .hyperspectral-stage { display: block; }
.hyperspectral-content { max-width: 1240px; margin: 0 auto; }
.hyperspectral-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.hyperspectral-header h2 { margin: 5px 0 0; font-size: 34px; line-height: 1; letter-spacing: -.04em; }
.hyperspectral-header p { margin: 0; color: var(--muted); font-size: 12px; }

.spectral-card { padding: 20px 20px 13px; border: 1px solid rgba(220, 238, 228, .13); border-radius: 14px; background: linear-gradient(155deg, #152c28 0, #0b1d1a 100%); box-shadow: 0 22px 55px rgba(0, 0, 0, .25); }
.spectral-card-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 6px 5px; }
.spectral-card-header strong { display: block; color: var(--ink); font-size: 17px; }
.spectral-card-header span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.spectral-chart { display: block; width: 100%; height: auto; min-height: 300px; }
.spectral-zone { opacity: .035; }
.spectral-grid-line { stroke: rgba(207, 229, 218, .12); stroke-width: 1; }
.spectral-difference { fill: #e4cc76; opacity: .09; }
.spectral-range { opacity: .1; }
.spectral-line { fill: none; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.spectral-target { stroke: #10231f; stroke-width: 1.5; }
.spectral-region-label { fill: #edf5f0; font-size: 18px; font-weight: 850; }
.spectral-region-subtitle { fill: #82968e; font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.spectral-range-label { fill: #82968e; font-size: 11px; }
.spectral-axis-cue { fill: #71877e; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.spectral-axis-break { fill: none; stroke: #71877e; stroke-width: 2; stroke-linecap: round; opacity: .7; }
.spectral-leader { fill: none; stroke-width: 1.5; opacity: .75; }
.spectral-direct-label { font-size: 14px; font-weight: 900; }
.spectral-note { margin: 0 6px 2px; color: #82968e; font-size: 11px; }

.spectral-insights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 24px; }
.spectral-insights article { min-height: 82px; padding: 13px 14px; border: 1px solid var(--line); border-top: 3px solid var(--insight-tone); border-radius: 9px; background: rgba(255, 255, 255, .025); }
.spectral-insights span { display: block; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.spectral-insights strong { display: block; margin-top: 6px; font-size: 15px; line-height: 1.3; }

.sample-context { padding: 17px 18px; border: 1px solid var(--line); border-radius: 11px; background: rgba(7, 19, 17, .45); }
.sample-context > header { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 14px; }
.sample-context > header span { display: block; color: var(--lime); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.sample-context > header strong { display: block; margin-top: 4px; font-size: 16px; }
.sample-context > header p { max-width: 420px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.sample-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sample-card { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, .025); }
.sample-card img { display: block; width: 92px; height: 92px; object-fit: cover; image-rendering: pixelated; }
.sample-card span { display: block; color: var(--lime); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.sample-card strong { display: block; margin-top: 4px; font-size: 14px; }
.sample-card small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }

.leaflet-tile-pane { filter: saturate(.52) brightness(.76) contrast(1.12); }
.leaflet-control-attribution { opacity: .55; font-size: 9px; }

.map-heading {
  position: absolute;
  z-index: 500;
  top: 20px;
  left: 22px;
  max-width: min(560px, 65%);
  padding: 10px 14px;
  border: 1px solid rgba(220, 238, 228, .15);
  border-radius: 8px;
  background: rgba(8, 22, 20, .84);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
  backdrop-filter: blur(9px);
}

.map-heading span { display: block; color: var(--lime); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.map-heading strong { display: block; margin-top: 3px; font-size: 17px; }

.map-legend {
  position: absolute;
  z-index: 500;
  bottom: 32px;
  left: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(220, 238, 228, .13);
  border-radius: 7px;
  background: rgba(8, 22, 20, .86);
  font-size: 11px;
  color: #d4dfda;
}

.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch { width: 11px; height: 11px; border: 2px solid currentColor; border-radius: 3px; background: currentColor; opacity: .9; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }

.map-source {
  position: absolute;
  z-index: 500;
  right: 72px;
  bottom: 8px;
  color: rgba(225, 235, 230, .58);
  font-size: 9px;
  letter-spacing: .04em;
}

.story-panel {
  overflow-y: auto;
  padding: 28px 28px 22px;
  background: linear-gradient(180deg, var(--panel) 0, #0d1c1a 100%);
  border-left: 1px solid var(--line);
}

.panel-kicker { color: var(--lime); font-size: 10px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.story-panel h1 { margin: 8px 0 10px; font-size: 30px; line-height: 1.03; letter-spacing: -.04em; }
.lede { margin: 0 0 20px; color: #c6d2cc; font-size: 14px; line-height: 1.55; }
.boundary { display: flex; gap: 9px; margin: 16px 0; padding: 11px 12px; border-left: 3px solid var(--amber); background: rgba(240, 180, 95, .08); color: #e4d7c4; font-size: 12px; line-height: 1.45; }
.data-warning { display: grid; gap: 3px; margin: 14px 0; padding: 11px 12px; border: 1px solid rgba(240, 180, 95, .42); border-radius: 8px; background: rgba(240, 180, 95, .09); color: #eadbc5; font-size: 12px; line-height: 1.45; }
.data-warning strong { color: #ffd99c; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.treatment-list { display: grid; gap: 7px; margin: 12px 0 16px; }
.treatment-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .025); }
.treatment-row span, .treatment-row small { color: var(--muted); font-size: 11px; }
.treatment-row small { grid-column: 1 / -1; }

.app-shell.limited-release-mode { grid-template-rows: 72px minmax(0, 1fr); }
.app-shell.limited-release-mode .beat-nav { display: none; }
.workspace.limited-release-mode { grid-template-columns: minmax(0, 1fr); }
.release-status-panel { display: grid; place-items: center; padding: clamp(28px, 6vw, 80px); background: radial-gradient(circle at 75% 20%, rgba(102, 183, 220, .1), transparent 34%), #122320; }
.release-status-panel[hidden] { display: none; }
.release-status-copy { width: min(820px, 100%); padding: clamp(24px, 5vw, 50px); border: 1px solid rgba(168, 218, 90, .24); border-radius: 16px; background: linear-gradient(145deg, rgba(20, 55, 49, .92), rgba(10, 29, 26, .92)); box-shadow: 0 24px 70px rgba(0, 0, 0, .25); }
.release-status-copy h1 { max-width: 650px; margin: 9px 0 12px; font-size: clamp(28px, 4vw, 46px); line-height: 1.03; letter-spacing: -.04em; }
.release-status-copy > p:not(.panel-kicker) { max-width: 690px; color: #c6d2cc; line-height: 1.6; }
.release-status-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 28px 0 22px; }
.release-status-facts div { padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, .025); }
.release-status-facts dt { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.release-status-facts dd { margin: 7px 0 0; color: var(--ink); font-size: 15px; font-weight: 800; line-height: 1.4; }
.release-status-guidance { margin-bottom: 0; padding: 13px 14px; border-left: 3px solid var(--amber); background: rgba(240, 180, 95, .08); color: #e4d7c4; }

.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin: 18px 0; }
.metric { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .025); }
.metric span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.acquisition-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 7px; margin: 15px 0; }
.acquisition-card { display: grid; gap: 4px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .025); }
.acquisition-card span, .acquisition-card small { color: var(--muted); font-size: 10px; }
.acquisition-card strong { overflow: hidden; font-size: 11px; line-height: 1.3; text-overflow: ellipsis; }
.metric strong { display: block; margin-top: 4px; font-size: 21px; }

.control-card { margin: 18px 0; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-soft); }
.control-row { display: flex; align-items: center; gap: 10px; }
.primary-button, .secondary-button, .toggle-button {
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 800;
}
.primary-button { padding: 10px 14px; background: var(--lime); color: #10201e; }
.secondary-button { padding: 9px 12px; border-color: var(--line); background: transparent; color: var(--ink); }
.primary-button:hover { background: var(--lime-bright); }
.control-date { margin-left: auto; font-size: 12px; color: #d6e0dc; }
.range { width: 100%; margin: 13px 0 2px; accent-color: var(--lime); }

.rank-list, .candidate-list, .site-list { display: grid; gap: 7px; margin: 15px 0; }
.rank-row, .candidate-row, .site-row {
  display: grid;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, .022);
  font-size: 12px;
}
.rank-row { grid-template-columns: 24px minmax(0, 1fr) auto; }
.rank-number { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--blue); color: #0b1a19; font-weight: 900; }
.rank-row em { color: var(--muted); font-style: normal; }

.candidate-row { grid-template-columns: 28px minmax(0, 1fr) auto; cursor: pointer; text-align: left; color: var(--ink); }
.candidate-row.active { border-color: var(--lime); background: rgba(168, 218, 90, .08); }
.candidate-row .rank-number { background: var(--amber); }
.candidate-row small, .site-row small { display: block; margin-top: 2px; color: var(--muted); }

.toggle-group { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.toggle-button { padding: 9px; border-color: var(--line); background: transparent; color: var(--muted); }
.toggle-button.active { border-color: var(--lime); background: rgba(168, 218, 90, .1); color: var(--ink); }

.site-row { grid-template-columns: 12px minmax(0, 1fr); padding: 11px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone) 15%, transparent); }
.request-list { margin: 15px 0 18px; padding: 0; list-style: none; }
.request-list li { position: relative; padding: 7px 0 7px 23px; color: #ced8d3; font-size: 13px; border-bottom: 1px solid rgba(214, 233, 223, .08); }
.request-list li::before { position: absolute; left: 1px; color: var(--lime); content: "→"; }

.takeaway-card { margin: 15px 0; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, .025); }
.takeaway-card.impact { border-color: rgba(168, 218, 90, .3); background: rgba(168, 218, 90, .065); }
.takeaway-card > span { display: block; color: var(--lime); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.takeaway-card strong { display: block; margin-top: 6px; font-size: 14px; line-height: 1.35; }
.takeaway-card p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }

details.evidence { margin-top: 18px; border-top: 1px solid var(--line); }
details.evidence summary { padding: 14px 0; cursor: pointer; color: #c7d3cd; font-size: 12px; font-weight: 800; }
.evidence-body { padding: 0 0 8px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.evidence-body ul { margin: 0; padding-left: 18px; }
.evidence-body li { margin: 5px 0; }
.method-row { display: grid; grid-template-columns: 1fr 45px; gap: 8px; margin-top: 5px; }
.method-bar { grid-column: 1 / -1; height: 4px; background: rgba(255,255,255,.08); border-radius: 4px; }
.method-bar span { display: block; height: 100%; background: var(--lime); border-radius: inherit; }

.number-marker, .site-marker {
  display: grid;
  place-items: center;
  border: 2px solid #ecf5ef;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0,0,0,.48);
  color: #0b1917;
  font-weight: 900;
}
.number-marker { width: 25px; height: 25px; background: var(--blue); font-size: 11px; }
.number-marker.amber { background: var(--amber); }
.number-marker.green { background: var(--green); }
.site-marker { width: 18px; height: 18px; border-width: 3px; }

.leaflet-tooltip.map-label { border: 0; border-radius: 4px; background: rgba(8, 22, 20, .92); color: #edf5f1; box-shadow: 0 4px 12px rgba(0,0,0,.28); font-size: 11px; }
.leaflet-tooltip.map-label::before { display: none; }

@media (max-width: 1100px) {
  .landing-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 62px; }
  .landing-copy { max-width: 760px; }
  .landing-visual { min-height: 360px; }
  .workspace { grid-template-columns: minmax(0, 1fr) 365px; }
  .story-panel { padding: 22px 22px 18px; }
  .story-panel h1 { font-size: 26px; }
  .beat-tab { padding-inline: 8px; }
  .hyperspectral-stage { padding: 22px; }
  .hyperspectral-header { align-items: start; flex-direction: column; gap: 7px; }
  .spectral-chart { min-height: 250px; }
  .sample-context > header { display: block; }
  .sample-context > header p { margin-top: 7px; }
  .tenant-switcher { min-width: 130px; max-width: 180px; }
  .tenant-switcher-label, .tenant-switcher { display: block; }
  .app-layout { grid-template-columns: minmax(0, 1fr); }
  .site-rail { display: none; }
}

@media (max-width: 760px) {
  .workspace.console-mode {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 3fr) minmax(240px, 2fr);
  }
  .console-inspector { border-top: 1px solid #d5deea; border-left: 0; }
  .record-badge, .user-identity { display: none; }
  .app-header { gap: 8px; padding-inline: 10px; }
  .tenant-switcher-label { margin-left: auto; }
  .tenant-switcher { min-width: 110px; max-width: 150px; }
}

@media (max-width: 650px) {
  .landing-header { min-height: 74px; padding-inline: 20px; }
  .landing-header-note { display: none; }
  .landing-hero { gap: 44px; padding: 48px 20px 40px; }
  .landing-copy h1 { font-size: clamp(38px, 12vw, 56px); }
  .landing-lede { margin-top: 22px; font-size: 16px; }
  .landing-visual { min-height: 310px; border-radius: 16px; }
  .visual-card-main { top: 18px; left: 18px; }
  .visual-card-signal { right: 15px; bottom: 16px; }
  .landing-proof { grid-template-columns: 1fr; padding: 0 20px 36px; }
  .landing-proof article, .landing-proof article:first-child { padding: 16px 0; }
  .release-status-facts { grid-template-columns: 1fr; }
  .app-header .brand-copy .eyebrow { display: none; }
  .app-header .brand-copy strong { font-size: 13px; }
  .workspace-switch button { padding-inline: 7px; font-size: 11px; }
}

@media (max-height: 760px) {
  .app-shell { grid-template-rows: 54px minmax(0, 1fr); }
  .app-header { padding-inline: 20px; }
  .story-panel { padding-top: 20px; }
  .story-panel h1 { font-size: 26px; }
  .lede { margin-bottom: 12px; }
  .metric-grid { margin: 12px 0; }
  .rank-row { padding-block: 6px; }
  .hyperspectral-stage { padding-top: 20px; }
  .hyperspectral-header h2 { font-size: 28px; }
  .spectral-card { padding-top: 14px; }
  .spectral-chart { min-height: 230px; }
}
