/*
 * Lucida Workbench 2026
 *
 * This layer owns the product shell and visual language while the existing
 * application controllers are progressively extracted from app.js. It keeps
 * the DOM and API contracts stable and gives each future feature module one
 * explicit surface to inherit from.
 */

:root {
  --bg: #081014;
  --ink: #f3f7f5;
  --muted: #a8b5b9;
  --line: #2b3b42;
  --line-soft: rgba(148, 172, 177, 0.18);
  --panel: rgba(16, 25, 30, 0.97);
  --panel-soft: rgba(23, 36, 42, 0.96);
  --surface: #10191e;
  --surface-raised: #17242a;
  --surface-hover: #1d2c32;
  --accent: #55d6c2;
  --accent-strong: #29b89f;
  --accent-soft: rgba(85, 214, 194, 0.13);
  --blue: #6fa8ff;
  --violet: #a88cff;
  --amber: #f3b85b;
  --danger: #ff716a;
  --success: #65d18c;
  --cream: #f3f0e7;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.22);
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --topbar-height: 64px;
  --rail-width: 72px;
  --panel-width: 390px;
  --bottom-nav-height: 68px;
  font-family: var(--font-sans);
}

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

html {
  color-scheme: dark;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

::selection {
  color: #06100e;
  background: var(--accent);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.025);
}

::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: #43565d;
  background-clip: padding-box;
}

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

button,
a,
input,
select,
textarea,
[tabindex]:not([tabindex="-1"]) {
  outline: none;
}

:where(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid rgba(85, 214, 194, 0.68);
  outline-offset: 2px;
}

:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]):not([type="button"]):not([type="submit"]):not([type="reset"]), textarea):focus-visible {
  border-color: var(--accent);
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(85, 214, 194, 0.45);
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

input,
select,
textarea {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: #0a1317;
  box-shadow: none;
}

select {
  color-scheme: dark;
}

select > option,
select > optgroup {
  color: var(--ink, #f3f7f5);
  background-color: var(--surface, #10191e);
}

@media (forced-colors: active) {
  select,
  select > option,
  select > optgroup {
    color: CanvasText;
    background-color: Canvas;
  }
}

input::placeholder,
textarea::placeholder {
  color: #73858b;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #41575e;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
}

.icon-button,
.tab-button,
.choice-pill,
.view-button,
.context-button,
.icon-only,
.text-button {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--surface);
  box-shadow: none;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, opacity 150ms ease, transform 150ms ease;
}

:where(.icon-button, .tab-button, .choice-pill, .view-button, .context-button, .icon-only):not(:disabled):hover {
  border-color: #486069;
  color: #fff;
  background: var(--surface-hover);
  box-shadow: none;
  transform: translateY(-1px);
}

.icon-button.primary,
.tab-button.active,
.choice-pill.active {
  border-color: rgba(85, 214, 194, 0.52);
  color: #06110f;
  background: var(--accent);
}

.icon-button.danger,
.icon-only.danger {
  border-color: rgba(255, 113, 106, 0.36);
  color: #ffd5d2;
  background: rgba(255, 113, 106, 0.11);
}

.icon-button svg,
.view-button svg,
.context-button svg,
.icon-only svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

/* Loading and authentication */

.auth-loading {
  z-index: 5000;
  background:
    radial-gradient(circle at 50% 40%, rgba(85, 214, 194, 0.12), transparent 34%),
    #071014;
}

.auth-loading-mark {
  min-width: min(360px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-loading-mark img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(85, 214, 194, 0.32));
}

.auth-loading-mark strong {
  margin-top: 14px;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.auth-loading-mark span,
.auth-loading-mark em {
  color: var(--muted);
}

.workspace-loading-track {
  background: #050b0e;
}

#workspace-loading-fill {
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
}

.login-screen {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(6, 12, 13, 0.96) 0%, rgba(6, 12, 13, 0.78) 52%, rgba(6, 12, 13, 0.9) 100%),
    url("/assets/lucida-brand/lucida-realistic-satellite-hero.webp") center / cover no-repeat,
    var(--bg);
  background-attachment: scroll;
}

.login-hero {
  width: min(1180px, 100%);
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.72fr);
  gap: clamp(30px, 6vw, 84px);
}

.login-hero::before {
  display: none;
}

.hero-copy h1,
.landing-hero-copy h1,
.public-page-hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.hero-kicker,
.login-eyebrow,
.landing-hero-copy > span,
.panel-eyebrow {
  color: var(--accent);
  letter-spacing: 0.15em;
}

.hero-chip-row span {
  border-color: rgba(85, 214, 194, 0.32);
  color: #bff7ec;
  background: rgba(85, 214, 194, 0.1);
}

.hero-grid div,
.access-policy,
.login-card {
  border-color: var(--line);
  border-radius: var(--radius-md);
  background: rgba(16, 25, 30, 0.96);
  backdrop-filter: none;
}

.login-card {
  padding: 28px;
  box-shadow: var(--shadow);
}

.login-card input {
  min-height: 46px;
  padding: 10px 12px;
}

.login-card .icon-button {
  min-height: 46px;
  justify-content: center;
}

/* Public experience */

.landing-screen,
.public-page-screen {
  min-height: 100svh;
  color: var(--cream);
  background:
    radial-gradient(circle at 70% 10%, rgba(85, 214, 194, 0.1), transparent 24%),
    #0b100f;
}

.landing-stars {
  opacity: 0.34;
}

.landing-nav {
  position: sticky;
  z-index: 20;
  top: 0;
  width: min(1320px, calc(100% - 40px));
  min-height: 72px;
  border: 0;
  border-bottom: 1px solid rgba(243, 240, 231, 0.12);
  border-radius: 0;
  padding: 10px 0;
  background: rgba(11, 16, 15, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: none;
}

.lucida-wordmark {
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.lucida-wordmark strong {
  font-size: 20px;
  letter-spacing: 0.2em;
}

.lucida-wordmark span {
  color: var(--accent);
  font-size: 9px;
}

.landing-nav .icon-button {
  border-color: rgba(243, 240, 231, 0.2);
  color: var(--cream);
  background: transparent;
}

.landing-nav .icon-button.primary {
  border-color: var(--accent);
  color: #06110f;
  background: var(--accent);
}

.landing-saas {
  width: min(1320px, calc(100% - 40px));
  gap: clamp(54px, 8vw, 112px);
  padding: 0 0 72px;
}

.landing-hero-saas {
  min-height: calc(100svh - 72px);
  grid-template-columns: minmax(330px, 0.82fr) minmax(480px, 1.18fr);
  gap: clamp(30px, 6vw, 90px);
}

.landing-hero-copy {
  padding: 64px 0;
}

.landing-hero-copy h1 {
  max-width: 660px;
  font-size: clamp(52px, 6.1vw, 92px);
  line-height: 0.94;
}

.landing-hero-copy p {
  max-width: 570px;
  color: #c7cfcc;
  font-size: 17px;
}

.landing-actions .icon-button {
  min-height: 48px;
  border-color: rgba(243, 240, 231, 0.22);
  color: var(--cream);
  background: transparent;
}

.landing-actions .icon-button.primary {
  color: #06110f;
  background: var(--accent);
}

.landing-proof-row {
  gap: 0;
  border-top: 1px solid rgba(243, 240, 231, 0.16);
  padding-top: 18px;
}

.landing-proof-row div {
  border: 0;
  border-right: 1px solid rgba(243, 240, 231, 0.12);
  border-radius: 0;
  padding: 0 16px;
  background: transparent;
  backdrop-filter: none;
}

.landing-proof-row div:first-child {
  padding-left: 0;
}

.landing-proof-row div:last-child {
  border-right: 0;
}

.landing-visual {
  min-height: 560px;
  border: 0;
  border-radius: var(--radius-lg);
  background: #101716;
  box-shadow: var(--shadow);
}

.landing-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(3, 8, 8, 0.72));
  pointer-events: none;
}

.landing-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-value-grid,
.landing-use-cases {
  gap: 1px;
  border: 1px solid rgba(243, 240, 231, 0.13);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(243, 240, 231, 0.13);
}

.landing-value-grid article,
.landing-use-cases div {
  border: 0;
  border-radius: 0;
  background: #111817;
  box-shadow: none;
}

.landing-value-grid i,
.landing-roadmap-grid i {
  color: var(--accent);
}

.landing-screenshot-section,
.landing-layer-section,
.landing-source-section,
.landing-roadmap-section,
.landing-workflow {
  border-color: rgba(243, 240, 231, 0.13);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 54px);
  background: #111817;
  box-shadow: none;
}

.landing-screenshot-section h2,
.landing-layer-section h2,
.landing-source-section h2,
.landing-roadmap-section h2,
.landing-workflow h2 {
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.landing-screenshot-section img,
.landing-layer-section img,
.landing-workflow img {
  border: 0;
  border-radius: var(--radius-md);
}

.landing-source-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-source-grid article,
.landing-roadmap-grid article {
  border-color: rgba(243, 240, 231, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(243, 240, 231, 0.035);
}

.landing-source-grid .source-coming {
  border-color: rgba(85, 214, 194, 0.35);
  background: var(--accent-soft);
}

.scan-reveal {
  transform: translateY(12px);
  transition-duration: 420ms;
}

.scan-reveal::after {
  display: none;
}

.site-footer {
  width: min(1320px, calc(100% - 40px));
  border: 0;
  border-top: 1px solid rgba(243, 240, 231, 0.14);
  border-radius: 0;
  padding: 32px 0;
  background: transparent;
}

.footer-wordmark {
  margin-bottom: 14px;
}

.footer-logo {
  display: none;
}

.public-page-content {
  width: min(1120px, calc(100% - 40px));
}

.public-page-hero,
.public-page-grid article,
.public-faq-list article,
.public-policy-list article {
  border-color: rgba(243, 240, 231, 0.13);
  border-radius: var(--radius-md);
  background: #111817;
  box-shadow: none;
}

/* Authenticated map-first shell */

body.app-active {
  overflow: hidden;
  background: var(--bg);
}

.app-shell {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  grid-template-rows: var(--topbar-height) minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  color: var(--ink);
  background: var(--bg);
}

.topbar {
  position: relative;
  z-index: 1200;
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: var(--topbar-height);
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  background: #0b1317;
  box-shadow: none;
}

.console-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.console-brand:hover {
  transform: none;
  box-shadow: none;
}

.console-brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(85, 214, 194, 0.38);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 5px rgba(85, 214, 194, 0.06);
}

.console-brand-copy {
  display: grid;
  gap: 1px;
}

.console-brand-copy strong {
  font-size: 16px;
  letter-spacing: 0.01em;
}

.console-brand-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.account-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-left: auto;
}

.context-button,
.account-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  border-color: var(--line);
  border-radius: 10px;
  padding: 6px 10px;
  background: var(--surface);
}

.project-context-button {
  min-width: min(250px, 28vw);
}

.context-button-copy,
.account-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
  text-align: left;
}

.context-button-copy small,
.account-meta {
  color: var(--muted);
  font-size: 10px;
}

.context-button-copy strong,
.account-name {
  max-width: 190px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-state {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid rgba(101, 209, 140, 0.2);
  border-radius: 999px;
  padding: 0 11px;
  color: #b9e8c9;
  background: rgba(101, 209, 140, 0.07);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.workspace-state span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(101, 209, 140, 0.1);
}

.account-avatar {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  color: #06100e;
  background: var(--accent);
}

.header-menu {
  top: calc(100% + 7px);
  min-width: 220px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 6px;
  background: #10191e;
  box-shadow: var(--shadow);
}

.header-menu button {
  min-height: 40px;
  border-radius: var(--radius-sm);
  color: var(--ink);
}

.header-menu button:hover {
  background: var(--surface-hover);
}

.primary-nav {
  position: relative;
  z-index: 1100;
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 8px;
  background: #0b1317;
}

.primary-nav-spacer {
  flex: 1 1 auto;
}

.view-button {
  position: relative;
  display: flex;
  width: 54px;
  min-width: 54px;
  min-height: 52px;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-color: transparent;
  border-radius: 11px;
  padding: 5px 3px;
  color: #8fa0a5;
  background: transparent;
}

.view-button span {
  max-width: 100%;
  overflow: hidden;
  font-size: 9px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.view-button:hover {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}

.view-button.active {
  border-color: rgba(85, 214, 194, 0.24);
  color: #dffff7;
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
}

.mission-panel-toggle.active {
  color: #06110f;
  background: var(--accent);
  box-shadow: none;
}

.workspace {
  position: relative;
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  height: auto;
  overflow: hidden;
  background: var(--bg);
}

.console-view {
  position: absolute;
  inset: 0;
  display: none;
  min-width: 0;
  min-height: 0;
}

.console-view.active {
  display: block;
}

.map-view,
.map-stage,
#map {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.map-stage {
  position: relative;
  overflow: hidden;
  background: #101719;
}

#map {
  position: absolute;
  inset: 0;
  background: #182225;
}

.ol-zoom button {
  border-color: var(--line) !important;
  color: var(--ink) !important;
  background: var(--surface) !important;
}

.ol-attribution {
  color: #66767a;
  background: rgba(8, 16, 20, 0.76) !important;
}

.map-popup-shell {
  color: var(--ink);
  background: var(--surface-raised);
}

.map-control-panel {
  position: absolute;
  z-index: 820;
  top: 14px;
  right: 14px;
  bottom: 14px;
  left: auto;
  display: block;
  width: min(var(--panel-width), calc(100% - 28px));
  max-width: none;
  max-height: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: none;
  transform: translateX(calc(100% + 26px));
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms ease, opacity 180ms ease;
}

.mission-panel-open .map-control-panel,
.map-control-panel.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.map-control-panel .panel-section {
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.acquisition-panel {
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 92px;
  scrollbar-gutter: stable;
  padding: 18px !important;
}

.acquisition-panel > * + * {
  margin-top: 14px;
}

.acquisition-panel :is(input, textarea, select, button, [tabindex]) {
  scroll-margin-block: 92px;
}

.mission-sheet-handle {
  display: none;
}

.acquisition-heading {
  position: relative;
  z-index: 4;
  top: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: -18px -18px 0;
  border-bottom: 1px solid var(--line);
  padding: 17px 18px 14px;
  background: #10191e;
}

.panel-eyebrow {
  display: block;
  margin-bottom: 4px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.acquisition-heading h1 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.acquisition-heading small {
  display: block;
  max-width: 270px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.acquisition-heading-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

#target-mode-label {
  border: 1px solid rgba(85, 214, 194, 0.28);
  border-radius: 999px;
  padding: 4px 8px;
  color: #bff7ec;
  background: var(--accent-soft);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.mission-panel-close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  background: transparent;
}

.mission-panel-scrim {
  display: none;
}

.mission-draft-step {
  align-content: start;
  gap: 12px;
}

.mission-draft-step {
  min-height: 0;
  padding: 2px 4px 8px 2px;
}

.mission-draft-step-heading {
  color: var(--ink);
}

.acq-block,
.mission-fieldset,
.mission-draft-summary > div,
.mission-draft-alert {
  border-color: var(--line);
  border-radius: var(--radius-md);
  background: #0b1418;
}

.acq-block-title {
  color: #c6d2d5;
}

.acq-block-title svg {
  color: var(--accent);
}

.target-tabs {
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px;
  background: #071014;
}

.target-tabs .tab-button {
  min-height: 38px;
  border-color: transparent;
  color: #91a2a7;
  background: transparent;
}

.target-tabs .tab-button.active {
  color: #07110f;
  background: var(--accent);
}

.target-pane-note,
.mission-draft-safety {
  border-color: rgba(85, 214, 194, 0.25);
  color: #b8c7c8;
  background: rgba(85, 214, 194, 0.07);
}

.sensor-grid {
  gap: 7px;
}

.sensor-toggle {
  border-color: var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.sensor-toggle:has(input[data-sensor-source]:checked) {
  border-color: rgba(85, 214, 194, 0.54);
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
}

.sensor-toggle.unavailable {
  border-style: dashed;
  opacity: 0.72;
}

.sensor-direction-options {
  border-color: var(--line);
  background: transparent;
}

.reference-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
}

.reference-source-grid article {
  position: relative;
  min-width: 0;
  border: 1px dashed #3a4a50;
  border-radius: 10px;
  padding: 10px;
  color: #819196;
  background: rgba(255, 255, 255, 0.018);
}

.reference-source-grid strong,
.reference-source-grid span,
.reference-source-grid em {
  display: block;
}

.reference-source-grid strong {
  color: #c4cfd1;
  font-size: 11px;
}

.reference-source-grid span {
  margin-top: 4px;
  font-size: 9px;
  line-height: 1.35;
}

.reference-source-grid em {
  width: fit-content;
  margin-top: 7px;
  border-radius: 999px;
  padding: 3px 6px;
  color: #aebcbf;
  background: rgba(255, 255, 255, 0.05);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.month-button,
.choice-pill {
  border-color: var(--line);
  color: #b4c1c4;
  background: var(--surface);
}

.month-button.active,
.choice-pill.active {
  border-color: rgba(85, 214, 194, 0.45);
  color: #dffff7;
  background: var(--accent-soft);
}

.mission-draft-footer {
  position: sticky;
  bottom: -2px;
  background: linear-gradient(180deg, rgba(16, 25, 30, 0), #10191e 28%);
}

.mission-draft-footer #launch-btn {
  color: #06110f;
  background: var(--accent);
}

.map-toolbar,
.map-coordinate-jump,
.map-areas-panel,
.map-selection-actions,
.polygon-draw-actions,
.map-jobs-overlay,
.metrics.map-metrics {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: rgba(16, 25, 30, 0.96);
  box-shadow: var(--shadow-soft);
  backdrop-filter: none;
}

.map-toolbar {
  top: 14px;
  right: auto;
  left: 14px;
  min-height: 48px;
  padding: 6px 8px 6px 12px;
}

.map-toolbar #status-line {
  min-width: 0;
  max-width: min(30vw, 380px);
  overflow: hidden;
  color: #dbe5e3;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-toolbar label {
  color: var(--muted);
}

.map-toolbar select {
  min-height: 34px;
}

.mouse-coords {
  top: 74px;
  right: auto;
  left: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: #b8c7c9;
  background: rgba(16, 25, 30, 0.92);
  font-family: var(--font-mono);
  font-size: 10px;
  box-shadow: var(--shadow-soft);
}

.map-coordinate-jump {
  top: 14px;
  right: auto;
  left: 50%;
  width: min(390px, calc(100% - 520px));
  min-width: 250px;
  padding: 6px;
  transform: translateX(-50%);
}

.map-coordinate-jump label {
  display: none;
}

.map-coordinate-jump input {
  min-height: 38px;
  border: 0;
  background: transparent;
}

.map-coordinate-jump .icon-button {
  min-height: 38px;
  border-color: rgba(85, 214, 194, 0.3);
  color: #dffff7;
  background: var(--accent-soft);
}

.map-areas-panel {
  top: 106px;
  right: auto;
  left: 14px;
  width: min(300px, calc(100% - 28px));
}

.map-selection-actions,
.polygon-draw-actions {
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
}

.map-metrics {
  right: auto;
  bottom: 16px;
  left: 14px;
  width: auto;
  min-width: 0;
  transform: none;
}

.map-metrics .metric {
  border-right-color: var(--line);
  background: transparent;
}

.map-metrics .metric .value {
  color: var(--cream);
}

.map-jobs-overlay {
  right: calc(var(--panel-width) + 28px);
  bottom: 16px;
  left: auto;
  transition: right 220ms ease;
}

.map-jobs-overlay:not([hidden]) {
  display: block;
}

.mission-panel-closed .map-jobs-overlay {
  right: 14px;
}

.export-progress {
  z-index: 2000;
  top: auto;
  right: auto;
  bottom: 22px;
  left: 50%;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - var(--topbar-height) - 44px);
  transform: translateX(-50%);
  overflow: auto;
  border-color: var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  box-shadow: var(--shadow);
}

/* Library, processing and project views */

.detail-view,
.detail-view.active {
  overflow: auto;
  padding: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(85, 214, 194, 0.055), transparent 30%),
    var(--bg);
}

.view-header {
  position: sticky;
  z-index: 20;
  top: -24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -24px -24px 22px;
  border-bottom: 1px solid var(--line);
  padding: 18px 24px;
  background: rgba(8, 16, 20, 0.97);
}

.view-header h1 {
  margin: 0;
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -0.035em;
}

.view-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.view-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.data-panel,
.job-card,
.jobs-section,
.project-card,
.tile-detail-card,
.product-preview-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: var(--surface);
  box-shadow: none;
}

.panel-heading {
  border-bottom-color: var(--line);
}

.panel-heading h2 {
  letter-spacing: -0.02em;
}

.tile-management-layout {
  gap: 16px;
}

.tile-list-panel,
.tile-detail-panel,
.jobs-full-panel {
  border-radius: var(--radius-md);
}

.table-wrap {
  border-color: var(--line);
  border-radius: var(--radius-sm);
  background: #0b1418;
}

table {
  border-collapse: collapse;
  color: var(--ink);
}

thead th {
  position: sticky;
  z-index: 2;
  top: 0;
  border-bottom: 1px solid var(--line);
  color: #91a1a6;
  background: #10191e;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tbody td {
  border-bottom-color: rgba(148, 172, 177, 0.1);
}

.tile-row:hover,
.product-row:hover {
  background: rgba(85, 214, 194, 0.05);
}

.tile-row.selected,
.product-row.selected {
  background: var(--accent-soft);
}

.tile-filter-bar input,
.tile-filter-bar select,
.product-filter-bar input,
.product-filter-menu summary {
  border-color: var(--line);
  background: #0b1418;
}

.product-filter-options {
  border-color: var(--line);
  background: var(--surface-raised);
  box-shadow: var(--shadow);
}

.sensor-badge,
.product-role-pill,
.tile-country-chip,
.project-stats span,
.job-sensor-chips span {
  border-color: var(--line);
  color: #c1cdcf;
  background: rgba(255, 255, 255, 0.035);
}

.project-card {
  min-height: 160px;
  padding: 18px;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.project-card:hover {
  border-color: #486069;
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.project-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.project-card.active {
  border-color: rgba(85, 214, 194, 0.52);
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
}

.job-card,
.jobs-section {
  overflow: hidden;
}

.job-card-header,
.jobs-section-heading,
.job-selected-tile-panel,
.history-job-detail {
  border-color: var(--line);
}

.job-card.active-job,
.pipeline-tile-card.selected {
  border-color: rgba(85, 214, 194, 0.5);
}

.job-status-strip,
.job-overview-grid div,
.pipeline-tile-card,
.job-source-row,
.run-item,
.history-row {
  border-color: var(--line);
  background: #0b1418;
}

.pipeline-card-track,
.run-progress {
  background: #050b0e;
}

.pipeline-card-track i,
.progress-fill {
  background: var(--accent);
}

.status-running,
.running,
.in_progress {
  --status-color: var(--blue);
}

.status-success,
.success,
.succeeded {
  --status-color: var(--success);
}

.status-error,
.error,
.failed {
  --status-color: var(--danger);
}

.status-partial,
.partial {
  --status-color: var(--amber);
}

.empty-state,
.jobs-empty-state,
.tile-detail-empty,
.run-empty {
  border: 1px dashed #3b4d53;
  border-radius: var(--radius-md);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.018);
}

/* Dialogs, overlays and admin */

.tile-detail-modal,
.accounts-panel {
  z-index: 2400;
  background: rgba(3, 8, 10, 0.82);
  backdrop-filter: blur(5px);
}

.tile-detail-modal {
  inset: 0;
  width: 100vw;
  height: 100svh;
  padding: 0;
}

.tile-detail-modal-shell,
.export-confirm-shell,
.launch-preflight-shell,
.prepared-plan-dialog,
.local-presence-dialog {
  border-color: var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.tile-detail-modal-shell {
  width: 100vw;
  height: 100svh;
  max-height: none;
  border-radius: 0;
}

.tile-modal-header,
.prepared-plan-header {
  border-bottom-color: var(--line);
  background: var(--surface-raised);
}

.prepared-plan-dialog::backdrop,
.local-presence-dialog::backdrop {
  background: rgba(3, 8, 10, 0.82);
  backdrop-filter: blur(5px);
}

.prepared-plan-approval-status,
.prepared-plan-summary > div,
.prepared-plan-estimates > div,
.prepared-plan-kv-row,
.prepared-plan-identity > div,
.local-presence-form input {
  border-color: var(--line);
  background: #0b1418;
}

.prepared-plan-safety {
  border-color: rgba(85, 214, 194, 0.34);
  background: var(--accent-soft);
}

.accounts-panel {
  position: fixed;
  inset: var(--topbar-height) 0 0 var(--rail-width);
  min-height: 0 !important;
  margin: 0 !important;
  border: 0;
  border-radius: 0;
  padding: 24px;
  overflow: auto;
}

.accounts-panel:not([hidden]) {
  min-height: 0;
  margin: 0;
}

.accounts-layout,
.admin-logs-panel,
.admin-form,
.accounts-table {
  border-color: var(--line);
  background: var(--surface);
}

/* Medium screens */

@media (max-width: 1180px) {
  :root {
    --panel-width: 360px;
  }

  .workspace-state,
  .account-meta {
    display: none;
  }

  .project-context-button {
    min-width: 210px;
  }

  .map-coordinate-jump {
    top: 74px;
    right: auto;
    left: 14px;
    width: min(330px, calc(100% - var(--panel-width) - 42px));
    min-width: 0;
    transform: none;
  }

  .map-areas-panel {
    top: 134px;
  }

  .tile-management-layout,
  .tile-management-layout.tile-detail-open {
    grid-template-columns: minmax(0, 1fr);
  }

  .tile-detail-panel {
    min-height: 520px;
  }
}

@media (max-width: 900px) {
  .console-brand {
    min-width: 156px;
  }

  .console-brand-copy small {
    display: none;
  }

  .project-context-button {
    min-width: 180px;
  }

  .account-copy {
    display: none;
  }

  .map-coordinate-jump {
    top: 74px;
    right: auto;
    left: 14px;
    width: min(350px, calc(100% - var(--panel-width) - 42px));
    transform: none;
  }

  .map-metrics {
    display: none;
  }

  .map-jobs-overlay:not([hidden]) {
    display: none;
  }

  .public-footer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Mobile: map canvas + bottom navigation + mission bottom sheet */

@media (max-width: 760px) {
  :root {
    --topbar-height: 60px;
    --rail-width: 0px;
    --bottom-nav-height: calc(68px + env(safe-area-inset-bottom));
  }

  .app-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--topbar-height) minmax(0, 1fr) var(--bottom-nav-height);
  }

  .topbar {
    grid-column: 1;
    padding: 7px 9px;
  }

  .console-brand {
    min-width: 0;
  }

  .console-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 21px;
  }

  .console-brand-copy {
    display: none;
  }

  .project-context-button {
    min-width: 0;
    max-width: min(52vw, 210px);
    min-height: 42px;
  }

  .project-context-button > svg:first-child,
  .project-context-button > svg:last-child {
    display: none;
  }

  .context-button-copy small {
    display: none;
  }

  .context-button-copy strong {
    max-width: min(42vw, 170px);
  }

  .account-chip {
    min-height: 42px;
    padding: 5px;
  }

  .account-avatar {
    width: 30px;
    height: 30px;
  }

  .primary-nav {
    position: relative;
    grid-column: 1;
    grid-row: 3;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    border-top: 1px solid var(--line);
    border-right: 0;
    padding: 6px max(6px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    background: #0b1317;
  }

  .primary-nav-spacer,
  .nav-help-button {
    display: none;
  }

  .view-button {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    border-radius: 9px;
  }

  .view-button.active {
    box-shadow: inset 0 3px 0 var(--accent);
  }

  .workspace {
    grid-column: 1;
    grid-row: 2;
  }

  .map-toolbar {
    top: 8px;
    right: 8px;
    left: 8px;
    min-height: 42px;
  }

  .map-toolbar #status-line {
    max-width: 48vw;
  }

  .map-toolbar label {
    margin-left: auto;
  }

  .mouse-coords {
    display: none;
  }

  .map-coordinate-jump {
    top: 58px;
    right: 8px;
    left: 8px;
    width: auto;
    min-width: 0;
  }

  .map-areas-panel {
    top: 110px;
    right: 8px;
    left: 8px;
    width: auto;
  }

  .map-control-panel {
    position: absolute;
    z-index: 1000;
    top: auto;
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    height: min(72dvh, 620px);
    max-height: calc(100% - 16px);
    border-radius: 18px 18px 12px 12px;
    transform: translateY(calc(100% + 20px));
  }

  .mission-panel-open .map-control-panel,
  .map-control-panel.is-open {
    transform: translateY(0);
  }

  .mission-sheet-handle {
    position: absolute;
    z-index: 8;
    top: 7px;
    left: 50%;
    display: block;
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: #52656b;
    transform: translateX(-50%);
  }

  .acquisition-panel {
    padding-top: 24px !important;
  }

  .acquisition-heading {
    top: auto;
    margin-top: -24px;
    padding-top: 25px;
  }

  .mission-panel-scrim {
    position: absolute;
    z-index: 950;
    inset: 0;
    display: block;
    border: 0;
    border-radius: 0;
    background: rgba(3, 8, 10, 0.54);
  }

  .mission-panel-scrim[hidden] {
    display: none !important;
  }

  .map-selection-actions,
  .polygon-draw-actions {
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    transform: none;
  }

  .detail-view,
  .detail-view.active {
    padding: 14px 12px 22px;
  }

  .view-header {
    top: -14px;
    align-items: flex-start;
    margin: -14px -12px 14px;
    padding: 14px 12px;
  }

  .view-header p {
    display: none;
  }

  .view-actions .icon-button[data-view="map"] {
    display: none;
  }

  .tile-filter-bar,
  .product-filter-bar,
  .product-selection-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .tile-filter-bar label,
  .tile-filter-bar input,
  .tile-filter-bar select,
  .product-filter-bar > input {
    width: 100%;
  }

  .tile-list-panel .tile-table-wrap,
  .product-table-wrap,
  .tile-modal-products-wrap {
    overflow: auto;
  }

  .tile-list-panel table,
  .product-table-wrap table,
  .tile-modal-products-wrap table {
    min-width: 850px;
  }

  .tile-detail-modal-shell,
  .export-confirm-shell,
  .launch-preflight-shell {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 16px;
  }

  .tile-detail-modal-shell {
    width: 100vw;
    height: 100svh;
    max-height: none;
    border-radius: 0;
  }

  .accounts-panel {
    inset: var(--topbar-height) 0 var(--bottom-nav-height);
    padding: 12px;
  }

  .landing-nav,
  .landing-saas,
  .site-footer,
  .public-page-content {
    width: min(100% - 28px, 1320px);
  }

  .landing-nav {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    min-height: 64px;
    padding: 8px 0;
  }

  .landing-nav nav {
    width: auto;
    flex-wrap: nowrap;
  }

  .landing-nav .lucida-wordmark span {
    display: none;
  }

  .landing-hero-saas,
  .landing-screenshot-section,
  .landing-layer-section,
  .landing-source-section,
  .landing-roadmap-section,
  .landing-workflow {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-hero-copy {
    padding: 72px 0 12px;
  }

  .landing-hero-copy h1 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .landing-visual {
    min-height: 360px;
  }

  .landing-proof-row,
  .landing-value-grid,
  .landing-use-cases,
  .landing-source-grid,
  .landing-roadmap-grid,
  .public-page-grid,
  .public-footer {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-proof-row div {
    border-right: 0;
    border-bottom: 1px solid rgba(243, 240, 231, 0.1);
    padding: 12px 0;
  }

  .landing-proof-row div:last-child {
    border-bottom: 0;
  }

  .landing-source-grid .source-coming,
  .footer-brand {
    grid-column: auto;
  }

  .login-screen {
    padding: 14px;
  }

  .login-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    display: none;
  }

  .login-card {
    padding: 22px;
  }
}

@media (max-width: 430px) {
  .project-context-button {
    max-width: 48vw;
  }

  .context-button-copy strong {
    max-width: 37vw;
  }

  .reference-source-grid,
  .field-grid,
  .image-density-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .view-header {
    flex-direction: column;
  }

  .view-actions {
    width: 100%;
  }
}

/* Ergonomic workspace shell — stable information regions */

:root {
  --workspace-header-height: 58px;
  --workspace-rail-width: 76px;
  --workspace-mobile-nav-height: calc(68px + env(safe-area-inset-bottom));
  --workspace-panel-width: 410px;
  --workspace-chrome: rgba(10, 17, 19, 0.94);
  --workspace-chrome-soft: rgba(16, 25, 27, 0.9);
  --workspace-line: rgba(222, 245, 238, 0.13);
  --workspace-line-strong: rgba(85, 214, 194, 0.32);
}

body.app-active {
  overflow: hidden;
  background: #081012;
}

.map-sovereign-shell.app-shell {
  position: fixed;
  inset: 0;
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-columns: var(--workspace-rail-width) minmax(0, 1fr);
  grid-template-rows: var(--workspace-header-height) minmax(0, 1fr);
  overflow: hidden;
  background: #081012;
}

.map-sovereign-shell [hidden] {
  display: none !important;
}

.map-sovereign-shell .topbar {
  position: relative;
  z-index: 1600;
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--workspace-line);
  padding: 7px 12px 7px 10px;
  background: rgba(7, 13, 15, 0.97);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px) saturate(118%);
}

.map-sovereign-shell .console-brand {
  position: static;
  display: flex;
  width: 170px;
  min-width: 170px;
  height: 44px;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border: 0;
  padding: 0;
  color: #f3faf7;
  background: transparent;
}

.map-sovereign-shell .console-brand-mark {
  display: block;
  width: 38px;
  min-width: 38px;
  height: 38px;
  border: 1px solid rgba(85, 214, 194, 0.45);
  border-radius: 50%;
  object-fit: cover;
  background: #07121f;
  box-shadow: 0 8px 24px rgba(51, 174, 154, 0.18);
}

.map-sovereign-shell .console-brand-copy {
  position: static;
  display: grid;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  clip-path: none;
  gap: 1px;
  text-align: left;
  white-space: normal;
}

.map-sovereign-shell .console-brand-copy strong {
  font-size: 14px;
  letter-spacing: 0.015em;
}

.map-sovereign-shell .console-brand-copy small {
  color: #83938f;
  font-size: 9px;
  letter-spacing: 0.04em;
}

.map-sovereign-shell .account-bar {
  position: static;
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 10px;
}

.map-sovereign-shell .project-menu-wrap {
  position: relative;
  z-index: auto;
  top: auto;
  right: auto;
  flex: 0 1 auto;
}

.map-sovereign-shell .project-context-button {
  width: fit-content;
  min-width: 0;
  max-width: min(300px, 28vw);
  min-height: 42px;
  gap: 8px;
  border: 1px solid var(--workspace-line);
  border-radius: 11px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}

.map-sovereign-shell .project-context-button:hover,
.map-sovereign-shell .project-context-button[aria-expanded="true"] {
  border-color: var(--workspace-line-strong);
  background: rgba(85, 214, 194, 0.08);
}

.map-sovereign-shell .project-context-button .context-button-copy {
  min-width: 0;
  flex: 0 1 auto;
}

.map-sovereign-shell .project-context-button .context-button-copy strong {
  display: block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-sovereign-shell .project-menu-wrap #project-menu {
  top: calc(100% + 8px);
  right: auto;
  left: 0;
}

.map-sovereign-shell .workspace-metrics {
  position: static;
  display: flex;
  width: auto;
  min-width: 0;
  margin: 0 auto 0 2px;
  gap: 3px;
  border: 0;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
}

.map-sovereign-shell .workspace-metrics .metric {
  display: flex;
  min-width: 88px;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 5px 9px;
  color: #a8b5b1;
  background: transparent;
  cursor: pointer;
}

.map-sovereign-shell .workspace-metrics .metric:hover,
.map-sovereign-shell .workspace-metrics .metric:focus-visible {
  border-color: var(--workspace-line);
  color: #f0f8f5;
  background: rgba(255, 255, 255, 0.045);
}

.map-sovereign-shell .workspace-metrics .metric > svg {
  width: 16px;
  height: 16px;
  color: #65d9c5;
}

.map-sovereign-shell .workspace-metrics .metric.violet > svg {
  color: #a994ef;
}

.map-sovereign-shell .workspace-metrics .metric.amber > svg {
  color: #efbd65;
}

.map-sovereign-shell .metric-copy {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 6px;
}

.map-sovereign-shell .workspace-metrics .label {
  color: inherit;
  font-size: 9px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.map-sovereign-shell .workspace-metrics .value {
  color: #f4faf7;
  font-size: 14px;
}

.map-sovereign-shell .workspace-state {
  display: none;
}

.map-sovereign-shell .map-jobs-overlay {
  position: relative;
  z-index: auto;
  right: auto;
  bottom: auto;
  display: flex;
  width: min(250px, 22vw);
  min-width: 0;
  max-height: 42px;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  border: 1px solid rgba(239, 189, 101, 0.24);
  border-radius: 10px;
  padding: 5px 9px;
  background: rgba(239, 189, 101, 0.06);
  box-shadow: none;
  backdrop-filter: none;
}

.map-sovereign-shell .map-jobs-title {
  display: flex;
  flex: none;
  align-items: center;
  gap: 5px;
}

.map-sovereign-shell .map-jobs-title > svg {
  width: 14px;
  color: #efbd65;
  animation: spin 1.6s linear infinite;
}

.map-sovereign-shell .map-jobs-title span,
.map-sovereign-shell .map-jobs-title strong {
  font-size: 9px;
  white-space: nowrap;
}

.map-sovereign-shell .map-job-row {
  min-width: 0;
  flex: 1;
}

.map-sovereign-shell .map-job-row > div {
  min-width: 0;
}

.map-sovereign-shell .map-job-row strong,
.map-sovereign-shell .map-job-row span {
  display: block;
  overflow: hidden;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-sovereign-shell .map-job-row:not(:first-of-type),
.map-sovereign-shell .map-job-row em {
  display: none;
}

.map-sovereign-shell #account-menu-btn {
  position: static;
  display: flex;
  width: auto;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 4px 7px 4px 4px;
  background: transparent;
}

.map-sovereign-shell #account-menu-btn .account-avatar {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.map-sovereign-shell #account-menu-btn .account-copy {
  display: grid;
}

.map-sovereign-shell #account-menu-btn > svg {
  display: block;
}

.map-sovereign-shell #account-menu {
  position: fixed;
  z-index: 1800;
  top: calc(var(--workspace-header-height) - 1px);
  right: 12px;
  bottom: auto;
  left: auto;
}

.map-sovereign-shell .map-rail {
  position: relative;
  z-index: 1300;
  grid-column: 1;
  grid-row: 2;
  display: flex;
  width: var(--workspace-rail-width);
  min-width: var(--workspace-rail-width);
  height: auto;
  min-height: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  border: 0;
  border-right: 1px solid var(--workspace-line);
  padding: 10px 7px;
  background: #0a1113;
  box-shadow: 8px 0 28px rgba(0, 0, 0, 0.12);
  backdrop-filter: none;
}

.map-sovereign-shell .map-rail .view-button {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 5px 2px;
  color: #83918e;
  background: transparent;
}

.map-sovereign-shell .map-rail .view-button > span {
  position: static;
  width: 100%;
  height: auto;
  overflow: hidden;
  clip: auto;
  clip-path: none;
  font-size: 8px;
  line-height: 1.15;
  letter-spacing: 0.025em;
  text-align: center;
  text-wrap: balance;
  white-space: normal;
}

.map-sovereign-shell .map-rail .view-button:hover {
  color: #eaf5f1;
  background: rgba(255, 255, 255, 0.045);
}

.map-sovereign-shell .map-rail .view-button.active {
  border-color: rgba(85, 214, 194, 0.24);
  color: #dffbf5;
  background: rgba(85, 214, 194, 0.11);
}

.map-sovereign-shell .map-rail .view-button.active::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: -8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #62d8c4;
  content: "";
}

.map-sovereign-shell .map-rail .mission-panel-toggle {
  color: #07120f;
  background: #62d8c4;
}

.map-sovereign-shell .map-rail .mission-panel-toggle.active {
  color: #07120f;
  background: #7de4d3;
}

.map-sovereign-shell .workspace {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 2;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #0b1214;
}

.map-sovereign-shell .console-view,
.map-sovereign-shell .map-stage,
.map-sovereign-shell #map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-sovereign-shell #map-view {
  z-index: 1;
  display: block !important;
}

.map-sovereign-shell .map-command-dock {
  position: absolute;
  z-index: 1060;
  top: 16px;
  right: 16px;
  left: 16px;
  display: flex;
  width: fit-content;
  max-width: calc(100% - 32px);
  min-height: 56px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--workspace-line);
  border-radius: 14px;
  padding: 6px;
  background: var(--workspace-chrome);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px) saturate(120%);
  transition: right 180ms ease;
}

.map-sovereign-shell.mission-panel-open .map-command-dock {
  right: calc(var(--workspace-panel-width) + 32px);
  max-width: calc(100% - var(--workspace-panel-width) - 48px);
}

.map-command-heading {
  display: grid;
  min-width: 116px;
  min-height: 42px;
  align-content: center;
  gap: 1px;
  padding: 0 8px;
}

.map-command-heading span {
  color: #eaf5f1;
  font-size: 10px;
  font-weight: 700;
}

.map-command-heading small {
  color: #71817d;
  font-size: 8px;
}

.map-sovereign-shell .map-draw-toolbar {
  position: static;
  display: flex;
  width: auto;
  min-width: 0;
  align-self: center;
  gap: 3px;
  margin: 0;
  border: 0;
  border-left: 1px solid var(--workspace-line);
  border-radius: 0;
  padding: 0 0 0 7px;
  background: transparent;
  box-shadow: none;
  transform: none;
  backdrop-filter: none;
}

.map-sovereign-shell .map-draw-toolbar .tab-button {
  position: relative;
  display: flex;
  width: auto;
  min-width: 58px;
  height: 42px;
  min-height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 4px 8px;
  color: #9cacaa;
  background: transparent;
}

.map-sovereign-shell .map-draw-toolbar .tab-button + .tab-button {
  border-left: 1px solid transparent;
  border-radius: 9px;
}

.map-sovereign-shell .map-draw-toolbar .tab-button:hover {
  color: #f4faf7;
  background: rgba(255, 255, 255, 0.055);
}

.map-sovereign-shell .map-draw-toolbar .tab-button.active,
.map-sovereign-shell .map-draw-toolbar .tab-button[aria-pressed="true"] {
  border-color: rgba(85, 214, 194, 0.27);
  color: #dcfff8;
  background: rgba(85, 214, 194, 0.13);
}

.map-sovereign-shell .map-draw-toolbar .tab-button span {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  clip-path: none;
  font-size: 8px;
  white-space: nowrap;
}

.map-sovereign-shell .map-coordinate-jump {
  position: static;
  display: grid;
  width: 248px;
  min-width: 190px;
  min-height: 42px;
  align-content: center;
  gap: 2px;
  border: 0;
  border-left: 1px solid var(--workspace-line);
  border-radius: 0;
  padding: 0 0 0 10px;
  background: transparent;
  box-shadow: none;
  transform: none;
  backdrop-filter: none;
}

.map-sovereign-shell .map-coordinate-jump > label {
  color: #7c8d89;
  font-size: 8px;
}

.map-sovereign-shell .map-coordinate-jump > div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.map-sovereign-shell .map-coordinate-jump > div > svg {
  width: 14px;
  color: #71827e;
}

.map-sovereign-shell .map-coordinate-jump input {
  min-width: 0;
  min-height: 28px;
  flex: 1;
  border: 0;
  padding: 3px 5px;
  background: transparent;
  font-size: 10px;
}

.map-sovereign-shell .map-coordinate-jump .icon-button {
  width: auto;
  min-width: 30px;
  min-height: 28px;
  padding: 3px 7px;
}

.map-sovereign-shell .map-coordinate-jump .icon-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.map-sovereign-shell .map-areas-panel {
  top: 86px;
  right: auto;
  left: 16px;
  width: min(320px, calc(100% - 32px));
  border-color: var(--workspace-line);
  border-radius: 12px;
  background: var(--workspace-chrome);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.map-sovereign-shell .marker-tool-panel {
  position: absolute;
  z-index: 1080;
  top: 86px;
  right: 16px;
  width: min(410px, calc(100% - 32px));
  max-height: calc(100% - 150px);
  overflow-y: auto;
  border: 1px solid rgba(85, 214, 194, 0.24);
  border-radius: 14px;
  padding: 14px;
  color: #dce9e5;
  background: rgba(7, 15, 18, 0.96);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(20px) saturate(125%);
}

.map-sovereign-shell .marker-tool-panel[hidden] {
  display: none;
}

.marker-tool-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  margin-bottom: 12px;
}

.marker-tool-heading span {
  color: #62d8c4;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.marker-tool-heading h2 {
  margin: 3px 0;
  color: #f0faf7;
  font-size: 17px;
}

.marker-tool-heading p {
  margin: 0;
  color: #8ea09b;
  font-size: 10px;
  line-height: 1.45;
}

.map-sovereign-shell .map-status-bar {
  position: absolute;
  z-index: 1020;
  top: auto;
  right: auto;
  bottom: 14px;
  left: 16px;
  display: flex;
  width: auto;
  min-height: 36px;
  align-items: center;
  gap: 0;
  border: 1px solid var(--workspace-line);
  border-radius: 11px;
  padding: 4px;
  background: var(--workspace-chrome);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.map-sovereign-shell .map-status-bar .basemap-control {
  position: static;
  display: flex;
  width: auto;
  max-width: none;
  min-height: 28px;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 7px;
  padding: 0 4px 0 6px;
  color: #788985;
  background: transparent;
  box-shadow: none;
  font-size: 8px;
  backdrop-filter: none;
}

.map-sovereign-shell .map-status-bar .basemap-control > svg {
  width: 13px;
}

.map-sovereign-shell .map-status-bar select {
  width: auto;
  min-height: 26px;
  border: 0;
  padding: 2px 22px 2px 5px;
  background-color: rgba(255, 255, 255, 0.04);
  font-size: 9px;
}

.map-sovereign-shell .mouse-coords {
  position: static;
  display: block;
  min-width: 172px;
  border: 0;
  border-left: 1px solid var(--workspace-line);
  border-radius: 0;
  padding: 6px 9px;
  color: #b9c7c3;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 9px;
  white-space: nowrap;
  backdrop-filter: none;
}

.map-sovereign-shell #status-line.map-status-toast {
  position: absolute;
  z-index: 1015;
  top: auto;
  right: auto;
  bottom: 14px;
  left: 50%;
  width: auto;
  min-width: 180px;
  max-width: min(430px, calc(100% - 720px));
  min-height: 36px;
  overflow: hidden;
  border: 1px solid var(--workspace-line);
  border-radius: 11px;
  padding: 9px 13px;
  color: #cbd7d3;
  background: var(--workspace-chrome);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  font-size: 9px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
  transition: left 180ms ease;
}

.map-sovereign-shell.mission-panel-open #status-line.map-status-toast {
  left: calc(50% - (var(--workspace-panel-width) + 16px) / 2);
  max-width: min(380px, calc(100% - var(--workspace-panel-width) - 450px));
}

.map-sovereign-shell .map-selection-actions,
.map-sovereign-shell .polygon-draw-actions {
  z-index: 1120;
  right: auto;
  bottom: 60px;
  left: 50%;
  width: auto;
  min-width: 300px;
  border: 1px solid var(--workspace-line-strong);
  border-radius: 12px;
  padding: 7px 8px 7px 12px;
  background: rgba(9, 19, 20, 0.96);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
  transition: left 180ms ease;
}

.map-sovereign-shell.mission-panel-open .map-selection-actions,
.map-sovereign-shell.mission-panel-open .polygon-draw-actions {
  left: calc(50% - (var(--workspace-panel-width) + 16px) / 2);
}

.map-sovereign-shell .map-control-panel {
  z-index: 1250;
  top: 16px;
  right: 16px;
  bottom: 16px;
  left: auto;
  width: min(var(--workspace-panel-width), calc(100% - 32px));
  border: 1px solid var(--workspace-line);
  border-radius: 16px;
  background: rgba(10, 17, 19, 0.98);
  box-shadow: -18px 18px 48px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(20px) saturate(115%);
}

.map-sovereign-shell .acquisition-heading {
  background: rgba(12, 21, 23, 0.97);
}

.mission-disclosure,
.sensor-family {
  border: 1px solid rgba(222, 245, 238, 0.1);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.024);
}

.mission-disclosure > summary,
.sensor-family > summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  color: #cbd8d4;
  cursor: pointer;
  list-style: none;
}

.mission-disclosure > summary::-webkit-details-marker,
.sensor-family > summary::-webkit-details-marker {
  display: none;
}

.mission-disclosure > summary::after,
.sensor-family > summary::after {
  color: #71827e;
  content: "+";
  font-size: 15px;
}

.mission-disclosure[open] > summary::after,
.sensor-family[open] > summary::after {
  content: "−";
}

.sensor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
}

.sensor-family.has-selection {
  border-color: rgba(85, 214, 194, 0.2);
}

.sensor-family-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.sensor-family-heading > svg {
  width: 17px;
  color: #61d6c2;
}

.sensor-family-heading > span {
  display: grid;
  gap: 1px;
}

.sensor-family-heading strong {
  font-size: 10px;
}

.sensor-family-heading small,
.sensor-family-summary {
  color: #748580;
  font-size: 8px;
}

.sensor-family-summary {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  margin-left: auto;
  place-items: center;
  padding: 0 7px;
  border: 1px solid rgba(116, 133, 128, 0.3);
  border-radius: 999px;
  color: #aab9b5;
  background: rgba(116, 133, 128, 0.1);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.sensor-family.has-selection .sensor-family-summary {
  border-color: rgba(85, 214, 194, 0.42);
  color: #8de9db;
  background: rgba(85, 214, 194, 0.13);
}

.sensor-family-grid {
  display: grid;
  gap: 6px;
  border-top: 1px solid rgba(222, 245, 238, 0.08);
  padding: 8px;
}

.sensor-family-grid .sensor-toggle {
  margin: 0;
}

.reference-source-disclosure,
.month-picker-disclosure,
.mission-advanced-input {
  margin-top: 8px;
}

.reference-source-grid,
.month-picker-disclosure > .month-grid,
.mission-advanced-input > label {
  margin: 0 8px 8px;
}

.map-sovereign-shell .detail-view,
.map-sovereign-shell .detail-view.active {
  z-index: 1120;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  width: auto;
  height: auto;
  overflow: auto;
  border: 0;
  border-radius: 0;
  padding: 20px;
  background: #050812;
  box-shadow: none;
  backdrop-filter: none;
}

.map-sovereign-shell .detail-view.active {
  display: block;
}

.map-sovereign-shell #jobs-view,
.map-sovereign-shell #projects-view {
  width: auto;
}

.map-sovereign-shell .detail-view .view-header {
  top: -20px;
  margin: -20px -20px 18px;
  border-bottom: 1px solid var(--workspace-line);
  padding: 17px 20px 15px;
  background: rgba(10, 17, 19, 0.98);
}

.map-sovereign-shell .accounts-panel {
  z-index: 1700;
  inset: calc(var(--workspace-header-height) + 16px) 16px 16px calc(var(--workspace-rail-width) + 16px);
  border: 1px solid var(--workspace-line);
  border-radius: 16px;
  background: rgba(10, 17, 19, 0.99);
}

.map-sovereign-shell #export-progress {
  z-index: 1450;
  top: auto;
  right: auto;
  bottom: 22px;
  left: calc(var(--workspace-rail-width) + (100vw - var(--workspace-rail-width)) / 2);
  width: min(520px, calc(100vw - var(--workspace-rail-width) - 32px));
  transform: translateX(-50%);
}

/* The operational workflow is native, dark and responsive rather than a white bitmap. */

.landing-delivery-story.landing-workflow {
  align-items: center;
  background:
    radial-gradient(circle at 78% 40%, rgba(85, 214, 194, 0.11), transparent 34%),
    linear-gradient(145deg, #0b1314, #101b1b 58%, #0b1213);
}

.landing-workflow-track {
  position: relative;
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(125, 228, 211, 0.18);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(5, 12, 13, 0.56);
  box-shadow: 20px 24px 0 rgba(85, 214, 194, 0.04), 0 24px 60px rgba(0, 0, 0, 0.28);
  list-style: none;
}

.landing-workflow-track::before {
  position: absolute;
  top: 50%;
  right: 9%;
  left: 9%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(85, 214, 194, 0.6), transparent);
  content: "";
}

.landing-workflow-track li {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 190px;
  align-content: space-between;
  gap: 18px;
  border-right: 1px solid rgba(222, 245, 238, 0.1);
  padding: 20px 17px;
  color: #eff8f5;
}

.landing-workflow-track li:last-child {
  border-right: 0;
}

.landing-workflow-track li > svg {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(85, 214, 194, 0.3);
  border-radius: 50%;
  padding: 8px;
  color: #67d9c5;
  background: #0c1718;
  box-sizing: content-box;
}

.workflow-step-index {
  color: #6f817c;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.landing-workflow-track li > div {
  display: grid;
  gap: 5px;
}

.landing-workflow-track strong {
  font-size: 14px;
  letter-spacing: 0.03em;
}

.landing-workflow-track small {
  color: #8ea09b;
  font-size: 9px;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .map-sovereign-shell .console-brand {
    width: 132px;
    min-width: 132px;
  }

  .map-sovereign-shell .console-brand-copy small,
  .map-command-heading {
    display: none;
  }

  .map-sovereign-shell .project-context-button {
    max-width: 210px;
  }

  .map-sovereign-shell .workspace-metrics .metric {
    min-width: 76px;
    padding-inline: 7px;
  }

  .map-sovereign-shell .map-command-dock {
    width: auto;
  }

  .map-sovereign-shell .map-draw-toolbar {
    border-left: 0;
    padding-left: 0;
  }

  .map-sovereign-shell .map-coordinate-jump {
    width: min(220px, 24vw);
  }
}

@media (max-width: 960px) {
  :root {
    --workspace-panel-width: 360px;
  }

  .map-sovereign-shell .console-brand {
    width: 44px;
    min-width: 44px;
  }

  .map-sovereign-shell .console-brand-copy,
  .map-sovereign-shell #account-menu-btn .account-copy,
  .map-sovereign-shell #account-menu-btn > svg {
    display: none;
  }

  .map-sovereign-shell .workspace-metrics .metric {
    min-width: 58px;
  }

  .map-sovereign-shell .workspace-metrics .metric > svg,
  .map-sovereign-shell .workspace-metrics .label {
    display: none;
  }

  .map-sovereign-shell .map-draw-toolbar .tab-button {
    min-width: 52px;
    padding-inline: 6px;
  }

  .map-sovereign-shell .map-coordinate-jump {
    min-width: 160px;
  }

  .map-sovereign-shell #status-line.map-status-toast {
    max-width: 280px;
  }
}

@media (max-width: 760px) {
  :root {
    --workspace-header-height: 104px;
    --workspace-rail-width: 0px;
    --workspace-panel-width: 100%;
  }

  .map-sovereign-shell.app-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--workspace-header-height) minmax(0, 1fr) var(--workspace-mobile-nav-height);
  }

  .map-sovereign-shell .topbar {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    grid-template-rows: 50px 45px;
    gap: 3px 7px;
    padding: 4px 8px;
  }

  .map-sovereign-shell .console-brand {
    grid-column: 1;
    grid-row: 1;
    width: 42px;
    min-width: 42px;
    height: 42px;
  }

  .map-sovereign-shell .console-brand-mark {
    width: 36px;
    min-width: 36px;
    height: 36px;
  }

  .map-sovereign-shell .account-bar {
    display: contents;
  }

  .map-sovereign-shell .project-menu-wrap {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .map-sovereign-shell .project-context-button {
    width: 100%;
    max-width: none;
    min-height: 42px;
  }

  .map-sovereign-shell .project-context-button .context-button-copy strong {
    max-width: calc(100vw - 160px);
  }

  .map-sovereign-shell .workspace-metrics {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin: 0;
  }

  .map-sovereign-shell .workspace-metrics .metric {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    justify-content: center;
    padding: 4px 6px;
    background: rgba(255, 255, 255, 0.025);
  }

  .map-sovereign-shell .workspace-metrics .metric > svg,
  .map-sovereign-shell .workspace-metrics .label {
    display: block;
  }

  .map-sovereign-shell .workspace-metrics .label {
    font-size: 8px;
  }

  .map-sovereign-shell .metric-copy {
    gap: 4px;
  }

  .map-sovereign-shell #account-menu-btn {
    grid-column: 3;
    grid-row: 1;
    width: 42px;
    min-width: 42px;
    padding: 4px;
  }

  .map-sovereign-shell #account-menu {
    top: 50px;
    right: 8px;
  }

  .map-sovereign-shell .map-jobs-overlay {
    display: none;
  }

  .map-sovereign-shell .map-rail {
    position: relative;
    z-index: 1400;
    grid-column: 1;
    grid-row: 3;
    display: grid;
    width: auto;
    min-width: 0;
    height: var(--workspace-mobile-nav-height);
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    border-top: 1px solid var(--workspace-line);
    border-right: 0;
    padding: 5px 6px max(5px, env(safe-area-inset-bottom));
  }

  .map-sovereign-shell .map-rail .primary-nav-spacer,
  .map-sovereign-shell .map-rail .nav-help-button {
    display: none !important;
  }

  .map-sovereign-shell .map-rail .view-button {
    min-height: 50px;
  }

  .map-sovereign-shell .map-rail .view-button.active::before {
    top: -6px;
    right: 22%;
    bottom: auto;
    left: 22%;
    width: auto;
    height: 3px;
    border-radius: 0 0 3px 3px;
  }

  .map-sovereign-shell .workspace {
    grid-column: 1;
    grid-row: 2;
  }

  .map-sovereign-shell .map-command-dock,
  .map-sovereign-shell.mission-panel-open .map-command-dock {
    top: 8px;
    right: 8px;
    left: 8px;
    display: grid;
    width: auto;
    max-width: none;
    min-height: 94px;
    gap: 5px;
    padding: 5px;
  }

  .map-sovereign-shell .map-draw-toolbar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
  }

  .map-sovereign-shell .map-draw-toolbar .tab-button {
    width: 100%;
    min-width: 0;
    height: 40px;
    min-height: 40px;
    padding: 3px 1px;
  }

  .map-sovereign-shell .map-draw-toolbar .tab-button span {
    max-width: 100%;
    overflow: hidden;
    font-size: 7px;
    text-overflow: ellipsis;
  }

  .map-sovereign-shell .map-coordinate-jump {
    display: flex;
    width: auto;
    min-width: 0;
    align-items: center;
    gap: 5px;
    border-top: 1px solid var(--workspace-line);
    border-left: 0;
    padding: 4px 3px 0;
  }

  .map-sovereign-shell .map-coordinate-jump > label {
    flex: none;
  }

  .map-sovereign-shell .map-coordinate-jump > div {
    min-width: 0;
    flex: 1;
  }

  .map-sovereign-shell .map-areas-panel {
    top: 111px;
    right: 8px;
    left: 8px;
    width: auto;
  }

  .map-sovereign-shell .marker-tool-panel {
    top: 111px;
    right: 8px;
    left: 8px;
    width: auto;
    max-height: calc(100% - 170px);
  }

  .map-sovereign-shell .map-status-bar {
    right: 8px;
    bottom: 8px;
    left: 8px;
    justify-content: space-between;
  }

  .map-sovereign-shell .map-status-bar .basemap-control > span {
    display: none;
  }

  .map-sovereign-shell .map-status-bar select {
    max-width: 116px;
  }

  .map-sovereign-shell .mouse-coords {
    min-width: 0;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
  }

  .map-sovereign-shell #status-line.map-status-toast,
  .map-sovereign-shell.mission-panel-open #status-line.map-status-toast {
    right: 8px;
    bottom: 54px;
    left: 8px;
    width: auto;
    min-width: 0;
    max-width: none;
    transform: none;
  }

  .map-sovereign-shell .map-selection-actions,
  .map-sovereign-shell .polygon-draw-actions,
  .map-sovereign-shell.mission-panel-open .map-selection-actions,
  .map-sovereign-shell.mission-panel-open .polygon-draw-actions {
    right: 8px;
    bottom: 54px;
    left: 8px;
    width: auto;
    min-width: 0;
    transform: none;
  }

  .map-sovereign-shell .map-selection-actions:not([hidden]) ~ #status-line.map-status-toast,
  .map-sovereign-shell .polygon-draw-actions:not([hidden]) ~ #status-line.map-status-toast {
    display: none;
  }

  .map-sovereign-shell .map-control-panel {
    z-index: 1550;
    top: 112px;
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    height: auto;
    max-height: calc(100% - 120px);
    border-radius: 18px;
    transform: translateY(calc(100% + 20px));
  }

  .map-sovereign-shell.mission-panel-open .map-control-panel,
  .map-sovereign-shell .map-control-panel.is-open {
    transform: translateY(0);
  }

  .map-sovereign-shell .mission-panel-scrim {
    z-index: 1500;
    inset: 0;
  }

  .map-sovereign-shell .detail-view,
  .map-sovereign-shell .detail-view.active,
  .map-sovereign-shell #jobs-view,
  .map-sovereign-shell #projects-view {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    padding: 14px 12px 22px;
  }

  .map-sovereign-shell .detail-view .view-header {
    top: -14px;
    margin: -14px -12px 14px;
    padding: 14px 12px;
  }

  .map-sovereign-shell .accounts-panel {
    inset: calc(var(--workspace-header-height) + 8px) 8px calc(var(--workspace-mobile-nav-height) + 8px);
  }

  .map-sovereign-shell #export-progress {
    top: auto;
    right: 8px;
    bottom: calc(var(--workspace-mobile-nav-height) + 10px);
    left: 8px;
    width: auto;
    transform: none;
  }

  .landing-delivery-story.landing-workflow {
    display: grid;
  }

  .landing-workflow-track {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-workflow-track::before {
    top: 9%;
    right: auto;
    bottom: 9%;
    left: 42px;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, rgba(85, 214, 194, 0.6), transparent);
  }

  .landing-workflow-track li {
    min-height: 112px;
    grid-template-columns: 30px 50px minmax(0, 1fr);
    align-items: center;
    align-content: center;
    gap: 11px;
    border-right: 0;
    border-bottom: 1px solid rgba(222, 245, 238, 0.1);
    padding: 14px 16px;
  }

  .landing-workflow-track li:last-child {
    border-bottom: 0;
  }

  .landing-workflow-track li > svg {
    width: 26px;
    height: 26px;
    padding: 7px;
  }
}

@media (max-width: 430px) {
  .map-sovereign-shell .workspace-metrics .metric > svg {
    display: none;
  }

  .map-sovereign-shell .workspace-metrics .metric {
    padding-inline: 3px;
  }

  .map-sovereign-shell .map-coordinate-jump > label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .map-sovereign-shell .map-status-bar .basemap-control > svg {
    display: none;
  }

  .map-sovereign-shell .mouse-coords {
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: #60737a;
    --muted: #c0cbcd;
  }

  .view-button.active,
  .sensor-toggle:has(input[data-sensor-source]:checked),
  .project-card.active {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
  }
}

/* --------------------------------------------------------------------------
   Lucida sovereign-map layout

   The application canvas now follows a GIS workbench hierarchy: the map owns
   the viewport and interface chrome floats above it. Existing selectors and
   controller contracts remain intact; this section intentionally supersedes
   the transitional grid shell above.
   -------------------------------------------------------------------------- */

:root {
  --rail-width: 52px;
  --topbar-height: 0px;
  --panel-width: 400px;
  --map-chrome: rgba(12, 18, 20, 0.92);
  --map-chrome-solid: #0c1214;
  --map-chrome-line: rgba(232, 244, 240, 0.14);
  --map-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

/* Editorial public home */

.landing-screen {
  background: #090e0e;
}

.landing-screen .landing-stars {
  opacity: 0.18;
}

.landing-screen .landing-nav {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  max-width: none;
  min-height: 64px;
  margin: 0;
  border-bottom: 1px solid rgba(243, 240, 231, 0.12);
  padding: 8px clamp(20px, 6vw, 112px);
  background: rgba(9, 14, 14, 0.9);
  backdrop-filter: blur(18px) saturate(120%);
}

.landing-editorial {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.landing-editorial > section {
  width: 100%;
  max-width: none;
  margin: 0;
}

.landing-editorial .landing-hero-saas {
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  overflow: hidden;
  padding: 96px clamp(24px, 7vw, 132px) 116px;
  isolation: isolate;
}

.landing-editorial .landing-visual {
  position: absolute;
  z-index: 0;
  inset: 0;
  min-height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #081012;
  box-shadow: none;
}

.landing-editorial .landing-visual::after {
  background:
    linear-gradient(180deg, rgba(4, 8, 8, 0.4), rgba(4, 9, 9, 0.14) 38%, rgba(5, 10, 10, 0.84)),
    linear-gradient(90deg, rgba(3, 8, 8, 0.38), transparent 34%, rgba(3, 8, 8, 0.28));
}

.landing-editorial .landing-visual img {
  filter: saturate(0.72) contrast(1.08) brightness(0.7);
  transform: none;
}

.landing-hero-atmosphere {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, transparent 0 22%, rgba(85, 214, 194, 0.08) 40%, transparent 62%),
    linear-gradient(rgba(85, 214, 194, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 214, 194, 0.06) 1px, transparent 1px);
  background-size: auto, 76px 76px, 76px 76px;
  mask-image: linear-gradient(180deg, transparent, #000 28%, #000 74%, transparent);
  pointer-events: none;
}

.landing-editorial .landing-hero-copy {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  max-width: 880px;
  padding: 0;
  text-align: center;
}

.landing-editorial .landing-hero-copy > span {
  margin-bottom: 20px;
  color: #8ce8db;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.landing-editorial .landing-hero-copy h1 {
  max-width: 900px;
  margin: 0;
  color: #f4f1e9;
  font-family: var(--font-serif);
  font-size: clamp(62px, 7.4vw, 112px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.86;
}

.landing-editorial .landing-hero-copy p {
  max-width: 690px;
  margin: 28px auto 0;
  color: #cbd4d0;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.6;
}

.landing-editorial .landing-actions {
  justify-content: center;
  margin-top: 30px;
}

.landing-editorial .landing-actions .icon-button {
  min-height: 50px;
  border-radius: 8px;
  padding-inline: 20px;
}

.landing-hero-index {
  position: absolute;
  z-index: 4;
  right: clamp(24px, 6vw, 112px);
  bottom: 38px;
  display: flex;
  gap: 22px;
  color: rgba(243, 240, 231, 0.68);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-hero-index span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.landing-hero-index strong {
  color: var(--accent);
  font-size: 9px;
}

.landing-scroll-cue {
  position: absolute;
  z-index: 4;
  bottom: 34px;
  left: clamp(24px, 6vw, 112px);
  border-bottom: 1px solid rgba(243, 240, 231, 0.42);
  padding-bottom: 5px;
  color: rgba(243, 240, 231, 0.72);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.landing-map-story {
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(36px, 7vw, 120px);
  border: 0;
  border-radius: 0;
  padding: clamp(72px, 10vw, 150px) clamp(24px, 7vw, 132px);
  background:
    radial-gradient(circle at 78% 48%, rgba(85, 214, 194, 0.1), transparent 34%),
    #0d1515;
}

.landing-map-story > div {
  max-width: 500px;
}

.landing-map-story > div > span,
.landing-source-band > div:first-child > span,
.landing-processing-story > div > span,
.landing-delivery-story > div > span,
.landing-capabilities > div:first-child > span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.landing-map-story h2,
.landing-source-band h2,
.landing-processing-story h2,
.landing-delivery-story h2,
.landing-capabilities h2 {
  margin-top: 18px;
  color: #f4f1e9;
  font-family: var(--font-serif);
  font-size: clamp(42px, 5vw, 76px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.landing-map-story p,
.landing-source-band p,
.landing-processing-story p,
.landing-delivery-story p,
.landing-capabilities p {
  color: #aebbb7;
  font-size: 16px;
  line-height: 1.65;
}

.landing-map-story > img {
  width: 100%;
  max-height: 74svh;
  border: 1px solid rgba(85, 214, 194, 0.28);
  border-radius: 0;
  object-fit: cover;
  box-shadow: 24px 30px 0 rgba(85, 214, 194, 0.08), var(--map-shadow);
  transform: perspective(1200px) rotateX(2deg) rotateY(-4deg);
}

.landing-mission-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 0;
  border-top: 1px solid rgba(243, 240, 231, 0.14);
  border-bottom: 1px solid rgba(243, 240, 231, 0.14);
  border-radius: 0;
  padding: 0 clamp(24px, 7vw, 132px);
  background: #090e0e;
}

.landing-mission-steps article {
  min-height: 330px;
  border: 0;
  border-right: 1px solid rgba(243, 240, 231, 0.12);
  border-radius: 0;
  padding: 70px clamp(24px, 4vw, 64px);
  background: transparent;
}

.landing-mission-steps article:first-child {
  padding-left: 0;
}

.landing-mission-steps article:last-child {
  border-right: 0;
  padding-right: 0;
}

.landing-mission-steps h2 {
  color: #f1eee6;
  font-family: var(--font-serif);
  font-size: clamp(28px, 2.8vw, 42px);
  font-weight: 500;
  line-height: 1.04;
}

.landing-source-band {
  display: grid;
  min-height: 78svh;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(40px, 8vw, 130px);
  border: 0;
  border-radius: 0;
  padding: clamp(80px, 10vw, 160px) clamp(24px, 7vw, 132px);
  background: #101817;
}

.landing-source-band .landing-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(243, 240, 231, 0.14);
}

.landing-source-band .landing-source-grid article {
  min-height: 88px;
  border: 0;
  border-right: 1px solid rgba(243, 240, 231, 0.1);
  border-bottom: 1px solid rgba(243, 240, 231, 0.1);
  border-radius: 0;
  padding: 20px;
  background: transparent;
}

.landing-source-band .landing-source-grid article:nth-child(2n) {
  border-right: 0;
}

.landing-source-band .landing-source-grid strong {
  color: #ecf2ef;
  font-size: 13px;
}

.landing-source-band .landing-source-grid span {
  margin-top: 6px;
  color: #80908b;
  font-size: 10px;
}

.landing-source-band .landing-source-grid .source-coming {
  grid-column: auto;
  border-color: rgba(85, 214, 194, 0.24);
  background: rgba(85, 214, 194, 0.035);
}

.landing-processing-story {
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: clamp(40px, 8vw, 140px);
  border: 0;
  border-radius: 0;
  padding: clamp(80px, 10vw, 160px) clamp(24px, 7vw, 132px);
  background:
    radial-gradient(circle at 30% 50%, rgba(85, 214, 194, 0.12), transparent 34%),
    #090e0e;
}

.landing-processing-story > img {
  width: 100%;
  border: 0;
  border-radius: 0;
  filter: saturate(0.82) contrast(1.04);
  drop-shadow: 0 28px 50px rgba(0, 0, 0, 0.34);
}

.landing-delivery-story {
  display: grid;
  min-height: 62svh;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(40px, 8vw, 130px);
  border: 0;
  border-top: 1px solid rgba(243, 240, 231, 0.12);
  border-bottom: 1px solid rgba(243, 240, 231, 0.12);
  border-radius: 0;
  padding: 80px clamp(24px, 7vw, 132px);
  background: #0d1515;
}

.landing-delivery-story > img {
  width: 100%;
  border: 0;
  border-radius: 0;
  opacity: 0.88;
}

.landing-use-case-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 0;
  border-radius: 0;
  padding: 0 clamp(24px, 7vw, 132px);
  background: #090e0e;
}

.landing-use-case-strip > div {
  min-height: 310px;
  border: 0;
  border-right: 1px solid rgba(243, 240, 231, 0.12);
  border-radius: 0;
  padding: 68px clamp(24px, 4vw, 58px);
  background: transparent;
}

.landing-use-case-strip > div:first-child {
  padding-left: 0;
}

.landing-use-case-strip > div:last-child {
  border-right: 0;
  padding-right: 0;
}

.landing-use-case-strip strong {
  color: #f2efe7;
  font-family: var(--font-serif);
  font-size: clamp(27px, 2.6vw, 40px);
  font-weight: 500;
  line-height: 1.05;
}

.landing-capabilities {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 8vw, 120px);
  border: 0;
  border-radius: 0;
  padding: clamp(90px, 12vw, 180px) clamp(24px, 7vw, 132px);
  background: #101817;
}

.landing-capabilities .landing-roadmap-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid rgba(243, 240, 231, 0.14);
}

.landing-capabilities .landing-roadmap-grid article {
  display: grid;
  min-height: 100px;
  grid-template-columns: 28px minmax(150px, 0.45fr) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  border: 0;
  border-bottom: 1px solid rgba(243, 240, 231, 0.12);
  border-radius: 0;
  padding: 18px 0;
  background: transparent;
}

.landing-capabilities .landing-roadmap-grid span {
  color: #8f9d99;
  font-size: 11px;
  line-height: 1.45;
}

.landing-screen .public-footer {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 50px clamp(24px, 7vw, 132px);
  background: #060a0a;
}

/* The editorial landing rules above intentionally supersede the legacy
   landing layout, so their responsive overrides must follow them. */
@media (max-width: 760px) {
  .landing-screen .landing-nav {
    min-height: 64px;
    gap: 10px;
    padding: 8px 16px;
  }

  .landing-screen .landing-nav nav {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    gap: 6px;
  }

  .landing-editorial .landing-hero-saas,
  .landing-map-story,
  .landing-source-band,
  .landing-processing-story,
  .landing-delivery-story,
  .landing-capabilities {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding: 72px 20px;
  }

  .landing-editorial .landing-hero-saas {
    min-height: 100svh;
    padding-top: 104px;
    padding-bottom: 88px;
  }

  .landing-editorial .landing-hero-copy {
    width: 100%;
    min-width: 0;
  }

  .landing-editorial .landing-hero-copy h1 {
    max-width: 100%;
    font-size: clamp(44px, 14vw, 62px);
    letter-spacing: -0.045em;
    line-height: 0.94;
    overflow-wrap: anywhere;
  }

  .landing-editorial .landing-hero-copy p {
    margin-top: 22px;
    font-size: 16px;
  }

  .landing-editorial .landing-actions {
    width: 100%;
  }

  .landing-editorial .landing-actions .icon-button {
    flex: 1 1 150px;
    justify-content: center;
    min-width: 0;
  }

  .landing-hero-index {
    display: none;
  }

  .landing-scroll-cue {
    right: 20px;
    bottom: 24px;
    left: 20px;
    width: fit-content;
  }

  .landing-map-story > img {
    max-height: none;
    box-shadow: 12px 14px 0 rgba(85, 214, 194, 0.08), var(--map-shadow);
    transform: none;
  }

  .landing-mission-steps,
  .landing-use-case-strip {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 20px;
  }

  .landing-mission-steps article,
  .landing-use-case-strip > div {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(243, 240, 231, 0.12);
    padding: 44px 0;
  }

  .landing-mission-steps article:last-child,
  .landing-use-case-strip > div:last-child {
    border-bottom: 0;
  }

  .landing-source-band .landing-source-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-source-band .landing-source-grid article {
    border-right: 0;
  }

  .landing-processing-story > img {
    min-width: 0;
  }

  .landing-delivery-story.landing-workflow {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-capabilities .landing-roadmap-grid article {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .landing-capabilities .landing-roadmap-grid span {
    grid-column: 2;
  }

  .landing-screen .public-footer {
    padding: 44px 20px;
  }
}

@media (max-width: 520px) {
  .landing-screen .landing-nav .lucida-wordmark {
    max-width: 82px;
  }

  .landing-screen .landing-nav .lucida-wordmark strong {
    font-size: 17px;
    line-height: 0.88;
  }

  .landing-screen .landing-nav .icon-button {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
  }

  .landing-screen .landing-nav .icon-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .landing-editorial .landing-hero-copy > span {
    max-width: 28ch;
    line-height: 1.55;
  }

  .landing-editorial .landing-hero-copy h1 {
    font-size: clamp(42px, 13.5vw, 56px);
  }

  .landing-workflow-track li {
    grid-template-columns: 30px 44px minmax(0, 1fr);
    gap: 9px;
    padding-inline: 10px;
  }

  .landing-workflow-track::before {
    left: 30px;
  }
}
