:root {
  --bg: #f8faf7;
  --card: #ffffff;
  --surface: #f5f7f4;
  --surface-soft: #eef4ef;
  --surface-feature: #e7f6ec;
  --text: #001e2b;
  --charcoal: #21313c;
  --muted: #5c6c75;
  --steel: #889397;
  --border: #d9e0dc;
  --border-soft: #e7ece8;
  --primary: #00ed64;
  --primary-pressed: #00c853;
  --primary-dark: #001e2b;
  --brand-teal: #023430;
  --brand-teal-mid: #0b5f57;
  --gold: #c6a35d;
  --danger: #c03a2b;
  --critical: #8f2a20;
  --shadow: 0 1px 2px rgba(0, 30, 43, 0.04);
  --shadow-card: 0 4px 12px rgba(0, 30, 43, 0.08);
}

body.login-body {
  min-height: 100vh;
  overflow: hidden;
  background: #f2f0eb;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(480px, 1.05fr) minmax(440px, 0.95fr);
  min-height: 100vh;
}

.login-brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: clamp(36px, 5vw, 78px);
  background: #1f382f;
  color: #ffffff;
}

.login-brand-lockup,
.login-form-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.eco-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 15px;
  background: #3f8255;
}

.eco-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-brand-lockup strong,
.login-brand-lockup small,
.login-form-brand strong {
  display: block;
}

.login-brand-lockup strong,
.login-form-brand strong {
  font-size: 1.28rem;
  line-height: 1.1;
}

.login-brand-lockup small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.76);
}

.login-hero-copy {
  max-width: 760px;
}

.login-hero-copy h1 {
  margin-bottom: 38px;
  color: #ffffff;
  font-size: clamp(3.2rem, 6vw, 5rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.login-hero-copy ul {
  display: grid;
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
}

.login-hero-copy li {
  position: relative;
  padding-left: 28px;
}

.login-hero-copy li::before {
  position: absolute;
  left: 0;
  top: 0.64em;
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: var(--gold);
}

.initiative {
  display: flex;
  align-items: center;
  gap: 24px;
}

.initiative span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.initiative-card {
  display: grid;
  width: 150px;
  height: 88px;
  place-items: center;
  border-radius: 14px;
  background: #ffffff;
}

.initiative-card img {
  max-width: 118px;
  max-height: 66px;
  object-fit: contain;
}

.login-form-panel {
  display: grid;
  place-items: center;
  padding: 42px;
  background: #f2f0eb;
}

.login-form {
  width: min(100%, 560px);
}

.login-form-brand {
  margin-bottom: 52px;
  color: #242424;
}

.login-form-brand .eco-icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
}

.login-title {
  margin-bottom: 34px;
}

.login-title h2 {
  margin-bottom: 12px;
  color: #2b2b2b;
  font-size: 2rem;
  line-height: 1.12;
}

.login-title p {
  max-width: 460px;
  margin: 0;
  color: #7a7a75;
  font-size: 1.06rem;
  line-height: 1.42;
}

.login-field {
  display: grid;
  gap: 7px;
  margin-bottom: 24px;
  color: #2b2b2b;
  font-weight: 650;
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 0 18px;
  border: 1px solid #d8d8d3;
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(31, 56, 47, 0.04);
}

.input-wrap:focus-within {
  border-color: #3f8255;
  box-shadow: 0 0 0 4px rgba(63, 130, 85, 0.12);
}

.input-wrap svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #73736f;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #2b2b2b;
  font-size: 1.03rem;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 6px 0 26px;
  color: #74746f;
}

.login-options label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-options input {
  width: 24px;
  height: 24px;
  accent-color: #3f8255;
}

.login-options a {
  color: #3f8255;
  font-weight: 800;
}

.login-submit {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  background: #3f8255;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
}

.login-submit:hover {
  background: #326a46;
}

.demo-note {
  margin: 48px 0 0;
  padding: 20px 24px;
  border: 1px solid #e2dfd8;
  border-radius: 15px;
  color: #777772;
  background: rgba(255, 255, 255, 0.38);
  text-align: center;
  line-height: 1.55;
}

body.wizard-body {
  min-height: 100vh;
  background: #f2f0eb;
}

.wizard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 clamp(24px, 5vw, 70px);
  border-bottom: 1px solid #dedbd2;
  background: #f2f0eb;
}

.wizard-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #222222;
  font-size: 1.18rem;
  font-weight: 850;
}

.eco-icon.small {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.eco-icon.small svg {
  width: 25px;
  height: 25px;
}

.wizard-isa-logo {
  width: 86px;
  height: auto;
  object-fit: contain;
}

.wizard-page {
  width: min(100% - 48px, 1270px);
  margin: 0 auto;
  padding: 50px 0 76px;
}

.wizard-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 48px;
}

.wizard-heading h1 {
  margin-bottom: 16px;
  color: #111827;
  font-size: clamp(2rem, 4vw, 2.45rem);
}

.wizard-heading p:not(.eyebrow) {
  max-width: 820px;
  margin: 0;
  color: #5f6368;
  font-size: 1.18rem;
  line-height: 1.5;
}

.autofill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 300px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid #32764d;
  border-radius: 999px;
  background: #32764d;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.autofill-button.filled {
  background: transparent;
  color: #1f6f46;
}

.wizard-steps {
  display: grid;
  grid-template-columns: auto minmax(50px, 1fr) auto minmax(50px, 1fr) auto minmax(50px, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #60646b;
  font-size: 1.12rem;
}

.wizard-step.active {
  color: #111827;
}

.wizard-step.complete {
  color: #4b5563;
}

.step-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 3px solid #dedbd2;
  border-radius: 50%;
  background: #ffffff;
}

.wizard-step.active .step-icon {
  border-color: #32764d;
  color: #32764d;
}

.wizard-step.complete .step-icon {
  border-color: #32764d;
  background: #32764d;
  color: #ffffff;
}

.step-check {
  font-size: 1.35rem;
  font-weight: 900;
}

.step-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-line {
  height: 2px;
  background: #dedbd2;
}

.step-line.complete {
  background: #32764d;
}

.wizard-card {
  display: grid;
  gap: 30px;
  padding: 36px;
  border: 1px solid #dedbd2;
  border-radius: 22px;
  background: #ffffff;
}

.wizard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.wizard-field {
  display: grid;
  gap: 10px;
  color: #111827;
  font-size: 1.05rem;
  font-weight: 750;
}

.wizard-field.full {
  grid-column: 1 / -1;
}

.wizard-field input,
.wizard-field select,
.wizard-field textarea {
  width: 100%;
  min-height: 60px;
  padding: 0 18px;
  border: 1px solid #d2d6dc;
  border-radius: 16px;
  outline: 0;
  background: #ffffff;
  color: #111827;
  font-size: 1.05rem;
  font-weight: 450;
}

.wizard-field textarea {
  min-height: 170px;
  padding-top: 16px;
  line-height: 1.45;
  resize: vertical;
}

.wizard-field input::placeholder,
.wizard-field textarea::placeholder {
  color: #8a9099;
}

.wizard-field input:focus,
.wizard-field select:focus,
.wizard-field textarea:focus {
  border-color: #32764d;
  box-shadow: 0 0 0 4px rgba(50, 118, 77, 0.12);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.choice-pill {
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid #dedbd2;
  border-radius: 18px;
  background: #ffffff;
  color: #5f6368;
  font-size: 1.02rem;
  cursor: pointer;
}

.choice-pill.selected {
  border-color: #32764d;
  background: #f1f7f3;
  color: #1f6f46;
}

.wizard-muted {
  margin: 0;
  color: #5f6368;
}

.data-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.data-source-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 92px;
  padding: 18px;
  border: 1px solid #32764d;
  border-radius: 15px;
  background: #f8fbf8;
  color: #111827;
  text-align: left;
  cursor: pointer;
}

.data-source-card > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #32764d;
  color: #ffffff;
  font-weight: 900;
}

.data-source-card strong,
.data-source-card small {
  display: block;
}

.data-source-card strong {
  margin-bottom: 4px;
  font-size: 1.02rem;
}

.data-source-card small {
  color: #5f6368;
  font-size: 0.92rem;
}

.upload-box {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 30px;
  border: 1px dashed #dedbd2;
  border-radius: 16px;
  color: #5f6368;
  text-align: center;
}

.upload-icon {
  color: #6b7280;
  font-size: 2rem;
  line-height: 1;
}

.upload-box strong {
  color: #111827;
  font-size: 1.1rem;
}

.upload-box button {
  min-height: 40px;
  margin-top: 10px;
  padding: 0 18px;
  border: 1px solid #32764d;
  border-radius: 12px;
  background: #ffffff;
  color: #1f6f46;
  font-weight: 850;
  cursor: pointer;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 36px;
  row-gap: 20px;
}

.review-grid div {
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e2dc;
}

.review-grid span,
.review-objective span,
.review-summary span {
  display: block;
  margin-bottom: 6px;
  color: #6b7280;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.review-grid strong,
.review-summary strong {
  display: block;
  color: #111827;
  font-size: 1.03rem;
}

.review-objective {
  display: grid;
  gap: 6px;
}

.review-objective p {
  margin: 0;
  color: #111827;
  font-size: 1.05rem;
  line-height: 1.45;
}

.review-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
}

.review-note {
  margin: 0;
  padding: 20px;
  border: 1px solid #dedbd2;
  border-radius: 14px;
  background: #f7f6f3;
  color: #5f6368;
  line-height: 1.45;
}

.processing-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
  background: #f2f0eb;
}

.processing-card {
  width: min(100%, 620px);
  text-align: center;
}

.processing-spinner {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 34px;
  border-radius: 26px;
  background: #dfe8df;
}

.processing-spinner::after {
  position: absolute;
  inset: 26px;
  content: "";
  border: 4px solid rgba(50, 118, 77, 0.24);
  border-top-color: #32764d;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.processing-card h1 {
  max-width: 560px;
  margin: 0 auto 12px;
  color: #111827;
  font-size: 1.85rem;
  line-height: 1.22;
}

.processing-card p {
  margin-bottom: 34px;
  color: #5f6368;
  font-size: 1.05rem;
}

.processing-list {
  display: grid;
  gap: 18px;
  width: min(100%, 480px);
  padding: 0;
  margin: 0 auto;
  list-style: none;
  text-align: left;
}

.processing-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #6b7280;
  font-size: 1.08rem;
}

.processing-list li span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ececeb;
}

.processing-list li span::before {
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: #c8c8c8;
}

.processing-list li.active {
  color: #111827;
}

.processing-list li.active span {
  background: #dfe8df;
}

.processing-list li.active span::before {
  width: 16px;
  height: 16px;
  border: 3px solid rgba(50, 118, 77, 0.25);
  border-top-color: #32764d;
  background: transparent;
  animation: spin 0.8s linear infinite;
}

.processing-list li.complete {
  color: #111827;
}

.processing-list li.complete span {
  background: #32764d;
  color: #ffffff;
}

.processing-list li.complete span::before {
  width: auto;
  height: auto;
  content: "✓";
  background: transparent;
  color: #ffffff;
  font-weight: 900;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 38px;
}

.wizard-back,
.wizard-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
}

.wizard-back {
  border: 1px solid #9bc0a8;
  color: #94b79f;
  background: transparent;
}

.wizard-next {
  min-width: 148px;
  background: #32764d;
  color: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

button,
input,
select {
  font: inherit;
}

code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #edebe9;
  color: #1e3932;
}

.platform-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.platform-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100vh;
  padding: 22px;
  background: var(--primary-dark);
  color: #ffffff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--gold);
  color: #1e3932;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-list a {
  padding: 11px 12px;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 750;
}

.nav-list a,
.logout-link {
  transition:
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.nav-list a:hover,
.nav-list a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.nav-list a.active {
  box-shadow: inset 3px 0 0 var(--gold);
}

.sidebar-note {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  line-height: 1.45;
}

.logout-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
}

.logout-link:hover,
.logout-link:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  outline: none;
}

.platform-main {
  display: grid;
  gap: 22px;
  align-content: start;
  padding: 28px;
}

.topbar,
.hero-panel,
.section-card,
.report-document,
.disclaimer {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 6px;
  color: #172033;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.04;
}

h2 {
  margin-bottom: 8px;
  color: #172033;
  font-size: 1.25rem;
}

h3 {
  margin-bottom: 8px;
  color: #172033;
}

.topbar p,
.hero-panel p,
.section-card p,
.report-document p {
  color: var(--muted);
  line-height: 1.55;
}

.topbar-actions,
.hero-actions,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 850;
  cursor: pointer;
}

.button.secondary {
  background: var(--primary-dark);
}

.button.ghost,
.chip {
  border: 1px solid var(--border);
  background: #ffffff;
  color: #1e3932;
}

.chip.active {
  border-color: var(--primary);
  background: #e2f3ed;
  color: var(--primary-dark);
}

.hero-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
  background: linear-gradient(135deg, #ffffff 0%, #f7f2e6 100%);
}

.hero-panel h2 {
  max-width: 720px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.1;
}

.status-pill,
.risk-badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e2f3ed;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 850;
}

.risk-low {
  background: #e2f3ed;
  color: #006b44;
}

.risk-medium {
  background: #fff4d6;
  color: #7a5a00;
}

.risk-high {
  background: #fee4dc;
  color: #9f1b10;
}

.risk-critical {
  background: #ffe0e0;
  color: #8f1109;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

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

.metric-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
}

.metric-card span,
.metric-card small {
  display: block;
  color: var(--muted);
}

.metric-card strong {
  display: block;
  margin: 8px 0 4px;
  color: #172033;
  font-size: 1.65rem;
}

.content-grid {
  display: grid;
  gap: 18px;
}

.two-columns {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.section-card {
  padding: 20px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.section-heading a {
  color: var(--primary);
  font-weight: 850;
}

.stack-list,
.route-grid,
.species-grid,
.timeline {
  display: grid;
  gap: 12px;
}

.route-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.stack-item,
.route-card,
.species-card,
.timeline-item {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
}

.route-card {
  display: grid;
  gap: 12px;
}

.route-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.route-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.route-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.route-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.route-meta strong {
  display: block;
}

.check-list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
}

.disclaimer {
  padding: 14px 16px;
  border-left: 5px solid var(--gold);
  color: #58410c;
  background: #fff8e1;
  box-shadow: none;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  color: #475467;
  font-size: 0.82rem;
}

.species-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.species-card strong,
.species-card span {
  display: block;
}

.species-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.report-page {
  display: flex;
  justify-content: center;
}

.report-document {
  width: min(100%, 920px);
  padding: 34px;
}

.report-document section {
  margin-top: 24px;
}

.report-workspace {
  display: grid;
  gap: 22px;
}

.route-ranking-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.route-score-card {
  display: grid;
  gap: 16px;
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.route-score-card.preferred {
  border-color: rgba(30, 57, 50, 0.42);
  box-shadow: 0 0 0 2px rgba(30, 57, 50, 0.18), var(--shadow);
}

.route-score-head,
.route-score-head > div,
.score-row,
.risk-legend {
  display: flex;
  align-items: center;
}

.route-score-head {
  justify-content: space-between;
  gap: 14px;
}

.route-score-head > div {
  gap: 10px;
}

.route-score-head h2,
.recommendation-panel h2 {
  margin: 0;
}

.route-dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border-radius: 50%;
  vertical-align: -1px;
}

.route-a {
  background: #c24f1d;
}

.route-b {
  background: #32764d;
}

.route-c {
  background: #c3a15a;
}

.preferred-badge,
.route-rank {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: #1e3932;
  background: #e8eeea;
  font-weight: 850;
}

.route-rank {
  color: var(--muted);
  background: transparent;
}

.route-score-card p,
.recommendation-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.score-row {
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
}

.score-row span {
  display: block;
  color: var(--muted);
}

.score-row strong {
  display: block;
  color: #172033;
  font-size: 1.04rem;
}

.score-row div:first-child strong {
  font-size: 2.6rem;
  line-height: 1;
}

.score-row div:last-child {
  text-align: right;
}

.score-track,
.risk-line div {
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: #e9e7e2;
}

.score-track span,
.risk-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #32764d;
}

.risk-profile-card {
  padding: 28px;
}

.risk-profile {
  display: grid;
  gap: 22px;
}

.risk-profile-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.risk-profile-row > strong {
  color: #172033;
  font-size: 1.04rem;
}

.risk-lines {
  display: grid;
  gap: 8px;
}

.risk-line {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 74px;
  gap: 12px;
  align-items: center;
}

.risk-line span,
.risk-line em {
  color: var(--muted);
  font-style: normal;
}

.risk-line em {
  text-align: right;
}

.risk-fill.low,
.legend-low {
  background: #32764d;
}

.risk-fill.medium,
.legend-medium {
  background: #c3a15a;
}

.risk-fill.high,
.legend-high {
  background: #bd352b;
}

.risk-fill.critical,
.legend-critical {
  background: #8f2a20;
}

.risk-legend {
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 18px;
  margin-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.risk-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.risk-legend i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.comparison-table th:not(:first-child),
.comparison-table td:not(:first-child) {
  text-align: center;
}

.comparison-table th .route-dot {
  margin-right: 8px;
}

.recommendation-panel {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(30, 57, 50, 0.35);
  border-radius: 12px;
  background: #eef1ec;
  box-shadow: var(--shadow);
}

.recommendation-panel .button {
  justify-self: start;
}

.risk-detail-table td:first-child {
  color: #172033;
  font-weight: 850;
}

.risk-detail-table td strong,
.risk-detail-table td span:not(.risk-badge):not(.status-badge) {
  display: block;
}

.risk-detail-table td span:not(.risk-badge):not(.status-badge) {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.definition-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.definition-list div {
  display: grid;
  gap: 4px;
}

.definition-list dt {
  color: var(--muted);
}

.definition-list dd {
  margin: 0;
  font-weight: 850;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfaf8;
}

.hidden {
  display: none !important;
}

/* Design system normalization from design.md */
html,
body {
  font-family: "Euclid Circular A", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  letter-spacing: 0;
}

body.login-body,
body.wizard-body {
  background: var(--bg);
}

h1,
h2,
h3 {
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.25rem, 4.2vw, 3rem);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.55rem, 2vw, 2.1rem);
  line-height: 1.25;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.3;
}

p,
li,
td,
dd,
input,
select,
textarea {
  font-size: 1rem;
  line-height: 1.55;
}

.eyebrow {
  color: var(--brand-teal-mid);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.button,
.chip,
.login-submit,
.autofill-button,
.wizard-back,
.wizard-next,
.upload-box button,
.choice-pill {
  min-height: 44px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.button,
.login-submit,
.autofill-button,
.wizard-next,
.upload-box button {
  background: var(--primary);
  color: var(--primary-dark);
}

.button:hover,
.login-submit:hover,
.autofill-button:hover,
.wizard-next:hover,
.upload-box button:hover {
  background: var(--primary-pressed);
  color: var(--primary-dark);
}

.button.secondary {
  background: var(--brand-teal);
  color: #ffffff;
}

.button.ghost,
.chip,
.wizard-back,
.choice-pill,
.upload-box button {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

.chip.active,
.choice-pill.selected,
.autofill-button.filled {
  border-color: var(--brand-teal-mid);
  background: var(--surface-feature);
  color: var(--brand-teal);
}

.topbar,
.hero-panel,
.section-card,
.report-document,
.metric-card,
.route-card,
.species-card,
.timeline-item,
.stack-item,
.route-score-card,
.recommendation-panel,
.wizard-card,
.input-wrap,
.demo-note {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.topbar,
.section-card,
.metric-card,
.route-score-card,
.recommendation-panel,
.wizard-card {
  box-shadow: none;
}

.platform-shell {
  grid-template-columns: 280px minmax(0, 1fr);
  background: var(--bg);
}

.platform-sidebar {
  background: var(--brand-teal);
  color: #ffffff;
}

.brand-mark {
  border-radius: 12px;
  background: var(--primary);
  color: var(--primary-dark);
}

.brand small,
.sidebar-note,
.nav-list a {
  color: rgba(255, 255, 255, 0.74);
}

.nav-list {
  gap: 8px;
}

.nav-list a {
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 0 14px;
}

.nav-list a:hover,
.nav-list a.active {
  background: rgba(255, 255, 255, 0.1);
}

.nav-list a.active {
  color: #ffffff;
  box-shadow: inset 4px 0 0 var(--primary);
}

.sidebar-note {
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
}

.platform-main,
.wizard-page {
  width: min(100%, 1280px);
  margin: 0 auto;
}

.platform-main {
  gap: 24px;
  padding: 32px;
}

.topbar {
  padding: 28px;
}

.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.metric-card {
  padding: 24px;
}

.metric-card span,
.metric-card small {
  color: var(--muted);
}

.metric-card strong {
  color: var(--text);
  font-weight: 500;
}

.section-card {
  padding: 28px;
}

.disclaimer {
  border: 1px solid #f2d79b;
  border-left: 5px solid var(--gold);
  border-radius: 12px;
  background: #fff8e1;
  box-shadow: none;
}

.risk-badge,
.status-badge,
.preferred-badge,
.route-rank,
.status-pill {
  border-radius: 999px;
  font-weight: 600;
}

.risk-low {
  background: #e4f7ec;
  color: var(--brand-teal);
}

.risk-medium {
  background: #fff4d6;
  color: #6e4f00;
}

.risk-high,
.risk-critical {
  background: #ffe5df;
  color: #8f2a20;
}

th,
td {
  border-bottom-color: var(--border-soft);
}

th {
  color: var(--charcoal);
  font-size: 0.86rem;
  font-weight: 600;
}

.login-shell {
  grid-template-columns: minmax(500px, 1.04fr) minmax(440px, 0.96fr);
}

.login-brand-panel {
  background:
    radial-gradient(circle at 78% 20%, rgba(0, 237, 100, 0.16), transparent 28%),
    linear-gradient(145deg, #001e2b 0%, #023430 100%);
}

.login-hero-copy h1 {
  max-width: 850px;
  font-weight: 500;
  letter-spacing: 0;
}

.login-hero-copy li::before {
  background: var(--primary);
}

.eco-icon {
  border-radius: 16px;
  background: var(--primary);
}

.eco-icon svg {
  stroke: var(--primary-dark);
}

.initiative-card {
  border-radius: 12px;
}

.login-form-panel {
  background: var(--bg);
}

.login-title h2 {
  font-weight: 500;
}

.login-title p,
.demo-note {
  color: var(--muted);
}

.input-wrap {
  min-height: 56px;
  border-color: var(--border);
}

.input-wrap:focus-within,
.wizard-field input:focus,
.wizard-field select:focus,
.wizard-field textarea:focus {
  border-color: var(--brand-teal-mid);
  box-shadow: 0 0 0 3px rgba(0, 237, 100, 0.18);
}

.login-options input {
  accent-color: var(--primary);
}

.login-options a {
  color: var(--brand-teal-mid);
}

.wizard-topbar {
  border-bottom-color: var(--border);
  background: var(--card);
}

.wizard-heading h1 {
  font-weight: 500;
}

.wizard-heading p:not(.eyebrow),
.wizard-muted,
.review-note,
.upload-box,
.data-source-card small {
  color: var(--muted);
}

.wizard-step {
  color: var(--muted);
}

.wizard-step.active,
.wizard-step.complete {
  color: var(--text);
}

.step-icon {
  border-color: var(--border);
}

.wizard-step.active .step-icon {
  border-color: var(--brand-teal-mid);
  color: var(--brand-teal-mid);
}

.wizard-step.complete .step-icon,
.step-line.complete {
  border-color: var(--brand-teal-mid);
  background: var(--brand-teal-mid);
}

.wizard-field input,
.wizard-field select,
.wizard-field textarea {
  min-height: 56px;
  border-color: var(--border);
  border-radius: 8px;
}

.data-source-card {
  border-color: var(--brand-teal-mid);
  border-radius: 12px;
  background: #fbfdfb;
}

.data-source-card > span {
  background: var(--brand-teal-mid);
}

.upload-box {
  border-radius: 12px;
}

.processing-screen {
  background: var(--bg);
}

.processing-spinner {
  background: var(--surface-feature);
}

.processing-spinner::after,
.processing-list li.active span::before {
  border-color: rgba(0, 237, 100, 0.22);
  border-top-color: var(--brand-teal-mid);
}

.processing-list li.complete span {
  background: var(--brand-teal-mid);
}

.route-score-card.preferred {
  border-color: var(--primary);
  background: linear-gradient(180deg, #ffffff 0%, #f5fff8 100%);
  box-shadow: 0 0 0 2px rgba(0, 237, 100, 0.18);
}

.score-track span,
.risk-fill.low,
.legend-low,
.route-b {
  background: var(--brand-teal-mid);
}

.route-a,
.risk-fill.high,
.legend-high {
  background: var(--danger);
}

.route-c,
.risk-fill.medium,
.legend-medium {
  background: var(--gold);
}

.recommendation-panel {
  border-color: rgba(0, 237, 100, 0.45);
  background: var(--surface-feature);
}

/* Post-login scale: denser application surfaces than the login hero. */
.platform-main {
  font-size: 0.94rem;
}

.platform-main h1 {
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  line-height: 1.18;
}

.platform-main h2 {
  font-size: clamp(1.18rem, 1.6vw, 1.55rem);
}

.platform-main h3 {
  font-size: 1.08rem;
}

.platform-main p,
.platform-main li,
.platform-main td,
.platform-main dd {
  font-size: 0.94rem;
}

.topbar {
  padding: 24px;
}

.topbar p:not(.eyebrow) {
  font-size: 0.95rem;
}

.section-card {
  padding: 24px;
}

.metric-card {
  padding: 22px;
}

.metric-card strong {
  font-size: 1.45rem;
}

.route-score-card {
  min-height: 210px;
  padding: 20px;
}

.score-row div:first-child strong {
  font-size: 2.15rem;
}

.wizard-page {
  padding-top: 42px;
}

.wizard-heading {
  margin-bottom: 40px;
}

.wizard-heading h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.wizard-heading p:not(.eyebrow) {
  font-size: 1rem;
}

.wizard-step {
  font-size: 1rem;
}

.wizard-card {
  gap: 24px;
  padding: 30px;
}

.wizard-field {
  font-size: 0.96rem;
}

.wizard-field input,
.wizard-field select,
.wizard-field textarea {
  font-size: 0.98rem;
}

@media (max-width: 960px) {
  body.login-body {
    overflow: auto;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-brand-panel {
    min-height: auto;
    padding: 32px 24px;
  }

  .login-hero-copy h1 {
    font-size: clamp(2.25rem, 12vw, 3.5rem);
  }

  .initiative {
    align-items: flex-start;
    flex-direction: column;
  }

  .login-form-panel {
    padding: 38px 24px;
  }

  .login-form-brand {
    margin-bottom: 34px;
  }

  .wizard-topbar {
    padding: 0 24px;
  }

  .wizard-page {
    width: min(100% - 32px, 1270px);
    padding-top: 34px;
  }

  .wizard-heading,
  .wizard-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .autofill-button {
    width: 100%;
    min-width: 0;
  }

  .wizard-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .step-line {
    display: none;
  }

  .wizard-card {
    padding: 22px;
  }

  .wizard-grid,
  .data-source-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .review-summary {
    gap: 16px;
  }

  .platform-shell {
    grid-template-columns: 1fr;
  }

  .platform-sidebar {
    position: static;
    height: auto;
  }

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

  .topbar,
  .hero-panel,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .metric-grid,
  .two-columns,
  .route-ranking-grid {
    grid-template-columns: 1fr;
  }

  .risk-profile-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .score-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .score-row div:last-child {
    text-align: left;
  }
}

@media print {
  .platform-sidebar,
  .topbar .topbar-actions,
  .nav-list {
    display: none;
  }

  .platform-shell,
  .platform-main {
    display: block;
    padding: 0;
    background: #ffffff;
  }

  .report-document,
  .section-card,
  .topbar {
    box-shadow: none;
  }
}
