:root {
  --spatial-plot-max-height: 600px;
}

.mobile-workspace-nav {
  display: none;
}

.about-version-line {
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.compute-action-button {
  position: relative;
}

.compute-action-button.compute-needed {
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.22);
}

.compute-action-button.compute-needed::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 9px;
  width: 8px;
  height: 8px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #f59e0b;
  box-shadow: 0 0 0 1px rgba(154, 52, 18, 0.22);
  pointer-events: none;
}

.product-workspace-header {
  --product-header-height: 98px;
  height: var(--product-header-height);
  min-height: var(--product-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(105deg, #ffffff 0%, #f8fbfc 62%, #edf7f8 100%);
}

.workspace-title-group {
  min-width: 0;
}

.workspace-eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.workspace-title-group h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 760;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.workspace-title-group p {
  max-width: 800px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  height: calc(100vh - var(--header-height) - var(--footer-height) - 98px);
  min-height: calc(100vh - var(--header-height) - var(--footer-height) - 98px);
  overflow: hidden;
  background: #e8edf3;
}

.input-pane,
.output-pane {
  min-width: 0;
  max-width: 100%;
  padding: 18px;
}

.input-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  background: #ffffff;
  border-right: 1px solid var(--line);
  overflow: hidden;
  padding: 0;
}

.output-pane {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  min-height: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.58)),
    #e9eff4;
  border-left: 1px solid rgba(24, 33, 47, 0.04);
  overflow-y: auto;
  overflow-x: hidden;
}

.app-view {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.info-view {
  height: calc(100vh - var(--header-height) - var(--footer-height));
  min-height: 0;
  padding: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #eef2f6;
}

.info-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(24, 33, 47, 0.06);
}

.info-card p {
  color: #344054;
  line-height: 1.55;
}

.info-card h1 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.16;
}

.info-card h2 {
  margin: 22px 0 10px;
  font-size: 18px;
  line-height: 1.22;
}

.info-card h3 {
  margin: 18px 0 8px;
  font-size: 15px;
  line-height: 1.28;
}

.info-card h4,
.info-card h5,
.info-card h6 {
  margin: 16px 0 8px;
  font-size: 13px;
  line-height: 1.3;
}

.help-page-card {
  max-width: 1040px;
}

.help-page-header {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.help-page-header h1 {
  margin: 0;
}

.help-page-intro {
  max-width: 680px;
  margin: 0;
  color: var(--text);
}

.help-category-layout {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.help-navigation {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 0;
}

.help-category-menu {
  display: grid;
  gap: 8px;
}

.help-category-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--app-radius-control);
  padding: 9px 12px;
  color: var(--accent-dark);
  background: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 760;
  text-align: left;
}

.help-category-button:hover,
.help-category-button:focus-visible {
  border-color: rgba(15, 118, 110, 0.42);
  background: #eefdfa;
}

.help-category-button.active,
.help-category-button[aria-pressed="true"] {
  color: #ffffff;
  border-color: rgba(15, 118, 110, 0.34);
  background: var(--accent);
}

.help-content {
  min-width: 0;
}

.help-table-of-contents {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--app-radius-control);
  background: #f8fafc;
}

.help-toc-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.help-toc-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.help-toc-list a {
  display: block;
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

.help-toc-list a:hover,
.help-toc-list a:focus-visible {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.help-content :is(h2, h3, h4, h5, h6) {
  scroll-margin-top: 16px;
}

.markdown-content > :first-child {
  margin-top: 0;
}

.markdown-content > :last-child {
  margin-bottom: 0;
}

.markdown-content p,
.markdown-content li,
.markdown-content td,
.markdown-content th {
  color: var(--text);
  line-height: 1.55;
}

.markdown-content ul,
.markdown-content ol {
  margin: 8px 0 14px;
  padding-left: 22px;
}

.markdown-content li + li {
  margin-top: 5px;
}

.markdown-content a {
  color: var(--accent-dark);
  font-weight: 680;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.markdown-content a:hover,
.markdown-content a:focus-visible {
  color: var(--accent);
}

.markdown-content code {
  padding: 1px 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: #f6f8fb;
  font-size: 0.92em;
}

.markdown-content pre {
  overflow-x: auto;
  margin: 12px 0 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--app-radius-control);
  background: #101828;
}

.markdown-content pre code {
  padding: 0;
  border: 0;
  color: #f8fafc;
  background: transparent;
  font-size: 12px;
  line-height: 1.5;
}

.markdown-table-wrap {
  width: 100%;
  margin: 12px 0 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--app-radius-control);
}

.markdown-table-wrap :is(table) {
  margin: 0;
  border: 0;
}

.markdown-table-wrap th,
.markdown-table-wrap td {
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.markdown-table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.markdown-image {
  display: block;
  width: min(100%, 720px);
  height: auto;
  margin: 14px 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--app-radius-card);
  background: #ffffff;
}

.markdown-error {
  display: grid;
  gap: 4px;
}

.pane-heading {
  margin-bottom: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.92);
}

.input-pane .pane-heading {
  border-left: 4px solid var(--accent);
}

.output-pane .pane-heading {
  border-left: 4px solid #2563eb;
}

.pane-heading h2 {
  margin: 0;
  font-size: 16px;
}

.pane-heading > p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.pane-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.results-subnav {
  display: none;
}

.results-section {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 981px) {
  .inputs-scroll-body > .pane-heading,
  .output-pane > .pane-heading {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #ffffff;
    border-color: var(--line-strong);
    box-shadow: 0 7px 18px rgba(7, 19, 33, 0.07);
  }

  .results-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
  }

  .results-subnav a {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: #344054;
    background: #f6f8fb;
    font-size: 12px;
    font-weight: 720;
    text-decoration: none;
  }

  .results-subnav a:hover,
  .results-subnav a:focus-visible {
    color: var(--accent-dark);
    border-color: rgba(15, 118, 110, 0.34);
    background: #eefdfa;
  }

  .results-section {
    display: grid;
    gap: 14px;
    scroll-margin-top: 86px;
  }
}

.control-band {
  display: grid;
  gap: 6px;
  padding: 14px;
  margin-bottom: 14px;
}

.mode-selector-card {
  display: grid;
  gap: 8px;
  padding: 13px 14px;
  margin-bottom: 14px;
}

.mode-selector-header {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  color: #344054;
  font-size: 12px;
  font-weight: 680;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  min-width: 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf2f6;
}

.segment-option {
  min-width: 0;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 7px 10px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 720;
}

.segment-option:hover,
.segment-option:focus-visible {
  color: var(--ink);
  border-color: #c8d2df;
}

.segment-option:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.22);
  outline-offset: 2px;
}

.segment-option.active {
  color: var(--accent-dark);
  border-color: var(--accent-line);
  background: #ffffff;
  box-shadow: 0 2px 7px rgba(7, 19, 33, 0.08);
}

.panel,
.result-band {
  padding: 14px;
  margin-bottom: 14px;
}

.output-pane .result-band {
  margin-bottom: 0;
}

#dme-band:not([hidden]) + #containment-detail-band {
  margin-top: 14px;
}

.containment-card-stack {
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

.advanced-disclosure-card {
  min-width: 0;
  max-width: 100%;
}

.advanced-disclosure-summary h2,
.advanced-disclosure-summary h3 {
  margin: 0;
}

.advanced-disclosure-summary .result-card-title {
  flex: 1;
  margin-bottom: 0;
}

.advanced-disclosure-body {
  margin-top: 12px;
}

.inputs-scroll-body {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  padding: 18px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-color: rgba(100, 112, 132, 0.42) transparent;
  scrollbar-width: thin;
}

.inputs-scroll-body::-webkit-scrollbar {
  width: 9px;
}

.inputs-scroll-body::-webkit-scrollbar-track {
  background: transparent;
}

.inputs-scroll-body::-webkit-scrollbar-thumb {
  background: rgba(100, 112, 132, 0.32);
  border: 2px solid #ffffff;
  border-radius: 999px;
}

.inputs-action-footer {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 -6px 18px rgba(24, 33, 47, 0.06);
}

.inputs-action-footer .primary-action {
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-inline: 16px;
  box-shadow: 0 8px 18px rgba(8, 127, 140, 0.2);
}

.button-shortcut {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  padding: 2px 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 700;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.station-list-action {
  margin-top: 12px;
}

.utility-button-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.standard-scenario-control {
  margin-top: 12px;
}

.standard-scenario-description {
  margin: 6px 0 0;
}

h2 {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.2;
}

label {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: #344054;
  font-size: 12px;
  font-weight: 680;
  overflow-wrap: anywhere;
}

.checkbox-control {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.checkbox-control input {
  width: 18px;
  min-height: 18px;
  flex: 0 0 auto;
}

.field-help {
  color: var(--muted);
  font-size: 11px;
  font-weight: 560;
  line-height: 1.35;
}

.disabled-field {
  color: #64748b;
}

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

.control-grid .full-width {
  grid-column: 1 / -1;
}

.input-disclosure .control-grid {
  margin-top: 10px;
}

.station-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.station-card {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  min-width: 0;
  max-width: 100%;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--band);
}

.remove-station {
  align-self: end;
  width: 38px;
  min-height: 38px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #ffffff;
  cursor: pointer;
}

.status-line {
  min-height: 38px;
  padding: 10px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 720;
}

.status-line::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(8, 127, 140, 0.1);
}

.status-line.error {
  color: var(--fail);
  border-color: #fecaca;
  background: #fff1f2;
}

.status-line.error::before {
  box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.1);
}

.status-line.warning {
  color: #9a3412;
  border-color: var(--warning-line);
  background: var(--warning-bg);
}

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

.status-grid,
.result-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.status-grid {
  margin-bottom: 12px;
}

.summary-metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-bottom: 12px;
}

.snapshot-epu-grid > .result-card:only-child {
  grid-column: 1 / -1;
}

.status-card,
.result-card,
.summary-callout {
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--band);
  padding: 12px;
}

.collision-risk-band {
  display: grid;
  gap: 12px;
}

.collision-risk-controls {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.collision-risk-controls .checkbox-control {
  min-height: 44px;
}

.collision-risk-cross-section-card,
.collision-risk-selected-station-card {
  margin-top: 12px;
}

.collision-risk-plot-wrap {
  position: relative;
}

.collision-risk-plot {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.collision-risk-plot-bg {
  fill: #ffffff;
}

.collision-risk-axis {
  stroke: #c7d0dc;
  stroke-width: 0.8;
}

.collision-risk-reference-tick {
  stroke: #98a2b3;
  stroke-width: 0.75;
}

.collision-risk-reference-tick-label {
  fill: #667085;
  font-size: 10px;
  font-weight: 650;
  pointer-events: none;
}

.collision-risk-contour {
  stroke: var(--accent);
  stroke-width: 1.65;
}

.collision-risk-contour.risk-color-0 {
  stroke: var(--accent);
}

.collision-risk-contour.risk-color-1 {
  stroke: #7c3aed;
}

.collision-risk-contour.risk-color-2 {
  stroke: #b45309;
}

.collision-risk-contour.risk-color-3 {
  stroke: #0f766e;
}

.collision-risk-contour.risk-color-4 {
  stroke: #be123c;
}

.collision-risk-contour.risk-color-5 {
  stroke: #2563eb;
}

.collision-risk-contour.dashed {
  stroke-dasharray: 8 5;
  stroke-width: 1.65;
}

.collision-risk-contour:hover,
.collision-risk-contour:focus,
.collision-risk-pans-reference:hover,
.collision-risk-pans-reference:focus,
.collision-risk-real-pbn-reference:hover,
.collision-risk-real-pbn-reference:focus {
  stroke-width: 2.2;
  outline: none;
}

.collision-risk-hover-panel {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  max-width: min(330px, calc(100% - 24px));
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(24, 33, 47, 0.16);
  font-size: 0.86rem;
  pointer-events: none;
}

.collision-risk-hover-panel[hidden] {
  display: none;
}

.collision-risk-hover-title {
  font-weight: 760;
}

.collision-risk-hover-meta {
  margin-top: 2px;
  color: var(--muted);
  line-height: 1.35;
}

.collision-risk-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.legend-line {
  display: inline-block;
  width: 28px;
  border-top: 2.5px solid var(--accent);
}

.legend-line.dashed {
  border-top-color: #0f766e;
  border-top-style: dashed;
}

.legend-line.pans {
  border-top-color: #dc2626;
  border-top-style: dotted;
}

.legend-line.real-pbn {
  border-top-color: #111827;
  border-top-style: dashed;
}

.collision-risk-surface {
  stroke: var(--fail);
  stroke-width: 2;
  stroke-dasharray: 7 5;
}

.collision-risk-pans-reference {
  stroke: #dc2626;
  stroke-width: 1.75;
  stroke-dasharray: 2 5;
  stroke-linecap: round;
}

.collision-risk-real-pbn-reference {
  stroke: #111827;
  stroke-width: 1.85;
  stroke-dasharray: 10 4 2 4;
  stroke-linecap: round;
}

.collision-risk-origin {
  fill: #18212f;
}

.collision-risk-station-summary {
  margin-top: 10px;
}

.collision-risk-contour-data {
  margin-top: 10px;
}

.collision-risk-pans-summary,
.collision-risk-real-pbn-summary {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.status-card {
  display: grid;
  gap: 8px;
  min-height: 104px;
}

.status-card > div > strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  line-height: 1.1;
}

.status-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.status-card .vertical-summary-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.status-card-details,
.summary-secondary {
  margin-top: 2px;
  color: #344054;
}

.status-card-details summary,
.summary-secondary summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.status-card-details p {
  margin-top: 6px;
}

.summary-secondary {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.summary-secondary .summary-list {
  margin-top: 8px;
}

.result-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.result-card h3,
.summary-callout h3,
.advanced-output h3 {
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
}

.summary-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.summary-list > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.82fr) minmax(0, 1fr);
  gap: 10px;
}

.summary-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.summary-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 680;
  overflow-wrap: anywhere;
}

.inline-status {
  display: inline;
  font-weight: 760;
  white-space: nowrap;
}

.inline-status.inline-status-pass {
  color: var(--pass);
}

.inline-status.inline-status-fail {
  color: var(--fail);
}

.summary-callout {
  margin-top: 12px;
}

.summary-callout.warning {
  border-color: var(--warning-line);
  background: var(--warning-bg);
}

.summary-callout ul,
.compact-list {
  margin: 8px 0 0;
  padding-left: 18px;
}

.summary-callout li,
.compact-list li {
  margin: 5px 0;
  color: #344054;
  font-size: 13px;
  line-height: 1.35;
}

.closed-form-dme-card h3 {
  margin-top: 14px;
}

.closed-form-dme-card .result-card-title h3 {
  margin-top: 0;
}

.closed-form-dme-card .summary-note,
.closed-form-note-list li {
  color: var(--muted);
}

.vertical-evaluation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.vertical-evaluation-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.vertical-subsection {
  min-width: 0;
  max-width: 100%;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.vertical-subsection h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.2;
}

.vertical-subsection :is(table) {
  background: #ffffff;
}

.vertical-component-table th {
  width: 48%;
}

.pressure-sensitivity {
  background: rgba(255, 255, 255, 0.52);
}

.vertical-assumptions {
  margin-top: 12px;
}

.vertical-warning-list {
  margin-bottom: 12px;
}

.component-breakdown {
  display: grid;
  gap: 8px;
}

.component-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  min-width: 0;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: #344054;
  font-size: 13px;
}

.component-row span,
.component-row strong,
.component-row em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.component-row strong {
  color: var(--ink);
}

.component-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 760;
}

.component-row.pass em {
  color: var(--pass);
}

.component-row.fail em {
  color: var(--fail);
}

.summary-explanation,
.summary-rationale {
  margin: 12px 0 0;
  color: #344054;
  font-size: 13px;
  line-height: 1.4;
}

.summary-rationale {
  color: var(--muted);
}

.spatial-plot-band {
  display: grid;
  gap: 12px;
  container-type: inline-size;
}

.plot-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.plot-title-row p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.plot-layout {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  grid-template-areas: "legend plot";
  min-width: 0;
  max-width: 100%;
  gap: 10px;
  align-items: start;
}

.plot-layout.with-cross-track-indicator {
  grid-template-areas:
    ". indicator"
    "legend plot";
  grid-template-rows: auto auto;
}

.plot-legend-panel {
  grid-area: legend;
  display: grid;
  gap: 10px;
}

.plot-toggles {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--band);
}

.plot-toggle {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  color: #344054;
  font-size: 12px;
  font-weight: 680;
}

.plot-toggle input {
  width: 16px;
  min-height: 16px;
  padding: 0;
}

.plot-toggle.disabled {
  color: var(--muted);
  opacity: 0.65;
}

.plot-toggle span {
  border-radius: 4px;
  padding: 2px 4px;
}

.plot-toggle span:focus {
  outline: 2px solid rgba(15, 118, 110, 0.22);
}

.plot-toggle span.active-hover {
  color: var(--accent-dark);
  background: #e6fffb;
}

.plot-hover-info {
  min-height: 120px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.plot-hover-info strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
}

.plot-hover-info ul {
  margin: 7px 0 0;
  padding-left: 16px;
}

.plot-hover-info li {
  margin: 4px 0;
  color: #344054;
  font-size: 12px;
  line-height: 1.35;
}

.plot-caption {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.spatial-plot {
  grid-area: plot;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  max-height: var(--spatial-plot-max-height);
  justify-self: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  cursor: grab;
  touch-action: none;
}

.spatial-plot:focus {
  outline: 2px solid rgba(15, 118, 110, 0.22);
  outline-offset: 2px;
}

.spatial-plot.is-panning {
  cursor: grabbing;
}

.plot-visual-stack {
  grid-area: plot;
  display: grid;
  grid-template-areas: "plot";
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-width: none;
  justify-self: stretch;
  justify-items: center;
}

.plot-layout.with-cross-track-indicator .plot-visual-stack {
  display: contents;
}

.plot-interaction-frame {
  position: relative;
  grid-area: plot;
  width: min(100%, var(--spatial-plot-max-height));
  min-width: 0;
  max-width: var(--spatial-plot-max-height);
  height: min(100vw, var(--spatial-plot-max-height));
  max-height: var(--spatial-plot-max-height);
  justify-self: center;
  overflow: hidden;
}

.plot-view-toolbar {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  max-width: calc(100% - 16px);
}

.plot-view-button {
  min-width: 32px;
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.plot-view-button.reset-view {
  min-width: 76px;
}

.plot-view-button:hover:not(:disabled),
.plot-view-button:focus-visible {
  border-color: rgba(15, 118, 110, 0.42);
  background: #ffffff;
}

.plot-view-button:disabled {
  color: var(--muted);
  cursor: default;
  opacity: 0.72;
}

.cross-track-indicator {
  grid-area: indicator;
  display: block;
  width: min(100%, var(--spatial-plot-max-height));
  max-width: var(--spatial-plot-max-height);
  min-width: 0;
  height: auto;
  max-height: 108px;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.cross-track-indicator:focus {
  outline: 2px solid rgba(15, 118, 110, 0.22);
}

@container (max-width: 720px) {
  .spatial-visualization-layout,
  .spatial-visualization-layout.with-cross-track-indicator {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  .spatial-visualization-layout.with-cross-track-indicator .spatial-visualization-plot-area {
    display: grid;
  }

  .spatial-visualization-controls,
  .spatial-visualization-plot-area,
  .spatial-visualization-layout .cross-track-indicator,
  .plot-interaction-frame,
  .spatial-visualization-plot {
    grid-area: auto;
  }
}

.cross-track-indicator-dot {
  fill: #ffffff;
  stroke: #111827;
  stroke-width: 2;
}

.cross-track-indicator-aircraft-reference {
  stroke: #facc15;
  stroke-width: 5;
}

.cross-track-indicator-winglet,
.cross-track-indicator-winglet-cap {
  stroke: #e83e8c;
  stroke-width: 3;
  stroke-linecap: butt;
}

.cross-track-indicator-diamond {
  fill: #e83e8c;
  stroke: #e83e8c;
  stroke-width: 1.5;
}

.plot-layer {
  vector-effect: non-scaling-stroke;
}

.plot-layer[hidden],
.plot-sub-layer[hidden] {
  display: none;
}

.plot-layer line,
.plot-layer circle,
.plot-layer polygon {
  fill: none;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.plot-layer,
.plot-sub-layer {
  opacity: 0.82;
  transition: opacity 120ms ease, stroke-width 120ms ease;
}

.plot-layer.active-hover,
.plot-sub-layer.active-hover {
  opacity: 1;
}

.plot-layer.active-hover line,
.plot-layer.active-hover circle,
.plot-layer.active-hover polygon,
.plot-layer.active-hover path,
.plot-sub-layer.active-hover line,
.plot-sub-layer.active-hover circle,
.plot-sub-layer.active-hover polygon,
.plot-sub-layer.active-hover path {
  stroke-width: 4;
}

.plot-axis line {
  stroke: #98a2b3;
  stroke-width: 1.2;
}

.estimated-position circle {
  fill: var(--ink);
  stroke: #ffffff;
  stroke-width: 2;
}

.track-arrow line {
  stroke: #000000;
  stroke-width: 1.6;
}

.track-arrow path {
  fill: #000000;
}

.desired-track line {
  stroke: #0f172a;
  stroke-width: 2.2;
  stroke-dasharray: 10 4;
}

.ellipse-95 polygon {
  stroke: #2563eb;
}

.containment-circle circle {
  stroke: #0f766e;
  stroke-width: 1.5;
}

.hpl-circle circle {
  stroke: #ea580c;
  stroke-width: 1.7;
  stroke-dasharray: 5 4;
}

.rnp-corridor line,
.two-rnp-corridor line {
  stroke: #7c3aed;
  stroke-dasharray: 7 5;
}

.hal-boundary line {
  stroke: #ca8a04;
  stroke-width: 1.6;
}

.longitudinal-allowance line {
  stroke: #92400e;
  stroke-width: 1;
  stroke-dasharray: 5 4;
}

.lateral-metrics-ruler .ruler-axis {
  stroke: #64748b;
  stroke-width: 2;
}

.lateral-metrics-ruler .metric-tick {
  stroke-width: 3;
}

.lateral-metrics-ruler .epu-global-tick {
  stroke: #7c3aed;
}

.dme-station-directions line {
  stroke: #111827;
  stroke-width: 1.3;
  stroke-dasharray: 2 5;
  opacity: 0.68;
}

.dme-station-directions path {
  fill: #111827;
}

.dme-station-direction-label {
  fill: #111827;
  font-size: 11px;
  font-weight: 700;
  paint-order: stroke;
  stroke: #ffffff;
  stroke-width: 3px;
  stroke-linejoin: round;
}

.plot-axis-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.plot-axis-x {
  margin-left: min(240px, 32%);
  text-align: center;
}

.plot-axis-y {
  text-align: center;
}

.summary-tile,
.metric-tile,
.state-tile {
  min-width: 0;
  max-width: 100%;
  padding: 12px;
  border-radius: 8px;
  background: var(--band);
  border: 1px solid var(--line);
  min-height: 74px;
}

.tile-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.tile-value {
  display: block;
  margin-top: 7px;
  font-size: 20px;
  font-weight: 780;
  overflow-wrap: anywhere;
}

.metric-component-row {
  display: block;
}

.tile-value.pass {
  color: var(--pass);
}

.tile-value.fail {
  color: var(--fail);
}

.tile-value.not-evaluated,
.tile-value.not-run {
  color: var(--warn);
}

table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

th {
  color: var(--muted);
  font-size: 12px;
}

.detail-separator td {
  padding: 10px 0;
  border-bottom: 1px solid rgba(100, 112, 132, 0.34);
}

.muted-code {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.formula-list {
  margin: 0;
  padding-left: 18px;
}

.formula-list li {
  margin: 6px 0;
}

pre {
  width: 100%;
  max-width: 100%;
  min-height: 180px;
  max-height: 360px;
  margin: 8px 0 0;
  padding: 12px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101828;
  color: #d1fadf;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.empty-state {
  color: var(--muted);
  margin: 0;
}

.collision-risk-empty-state {
  font-weight: 700;
}

.advanced-output {
  display: grid;
  gap: 14px;
}

.advanced-output > summary {
  cursor: pointer;
  list-style-position: inside;
  min-height: 42px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font-weight: 760;
}

.advanced-output[open] > summary {
  margin-bottom: 14px;
}

@media (max-width: 980px) {
  .product-workspace-header {
    --product-header-height: 86px;
    height: var(--product-header-height);
    min-height: var(--product-header-height);
    padding: 12px 16px;
  }

  .workspace-title-group p {
    max-width: 620px;
  }

  .collision-risk-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-view {
    height: calc(100vh - var(--header-height) - var(--footer-height));
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .workspace {
    grid-template-columns: 1fr;
    height: calc(100vh - var(--header-height) - var(--footer-height) - var(--mobile-workspace-nav-height) - 86px);
    min-height: calc(100vh - var(--header-height) - var(--footer-height) - var(--mobile-workspace-nav-height) - 86px);
    overflow: hidden;
  }

  .input-pane {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    border-right: 0;
    border-bottom: 0;
    box-shadow: none;
    overflow: hidden;
  }

  body.mobile-workspace-results .input-pane,
  body.mobile-workspace-inputs .output-pane {
    display: none;
  }

  .inputs-scroll-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 12px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .inputs-action-footer {
    flex: 0 0 auto;
    position: static;
    margin-top: 0;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: 0 -6px 18px rgba(24, 33, 47, 0.06);
  }

  .output-pane {
    grid-column: 1;
    grid-row: 1;
    height: 100%;
    padding-bottom: 24px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .mobile-workspace-nav {
    position: fixed;
    right: 0;
    bottom: var(--footer-height);
    left: 0;
    z-index: 920;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-height: var(--mobile-workspace-nav-height);
    padding: 8px 12px calc(8px + var(--safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -8px 22px rgba(24, 33, 47, 0.1);
  }

  .mobile-workspace-tab {
    min-width: 0;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 7px 10px;
    color: var(--muted);
    background: #ffffff;
    font-weight: 760;
    cursor: pointer;
  }

  .mobile-workspace-tab.active,
  .mobile-workspace-tab[aria-pressed="true"] {
    color: var(--accent-dark);
    border-color: rgba(15, 118, 110, 0.38);
    background: #eefdfa;
  }

  @supports (height: 100dvh) {
    .info-view {
      height: calc(100dvh - var(--header-height) - var(--footer-height));
    }

    .workspace {
      height: calc(100dvh - var(--header-height) - var(--footer-height) - var(--mobile-workspace-nav-height) - 86px);
      min-height: calc(100dvh - var(--header-height) - var(--footer-height) - var(--mobile-workspace-nav-height) - 86px);
    }
  }
}

@media (max-width: 640px) {
  .product-workspace-header {
    --product-header-height: 70px;
    height: var(--product-header-height);
    min-height: var(--product-header-height);
    padding: 9px 12px;
  }

  .workspace-title-group h1 {
    font-size: 18px;
  }

  .workspace-title-group p {
    display: none;
  }

  .workspace {
    height: calc(100vh - var(--header-height) - var(--footer-height) - var(--mobile-workspace-nav-height) - 70px);
    min-height: calc(100vh - var(--header-height) - var(--footer-height) - var(--mobile-workspace-nav-height) - 70px);
  }

  @supports (height: 100dvh) {
    .workspace {
      height: calc(100dvh - var(--header-height) - var(--footer-height) - var(--mobile-workspace-nav-height) - 70px);
      min-height: calc(100dvh - var(--header-height) - var(--footer-height) - var(--mobile-workspace-nav-height) - 70px);
    }
  }

  .output-pane {
    padding: 12px;
  }

  .input-pane {
    padding: 0;
  }

  .output-pane {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .info-view {
    padding: 12px;
  }

  .help-page-card {
    padding: 16px;
  }

  .help-category-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .help-navigation {
    position: static;
  }

  .help-category-menu {
    grid-template-columns: 1fr;
  }

  .help-category-button {
    justify-content: center;
    text-align: center;
  }

  .control-band,
  .panel,
  .result-band,
  .status-card,
  .result-card,
  .summary-callout {
    border-radius: 6px;
  }

  .control-grid,
  .utility-button-row,
  .summary-grid,
  .status-grid,
  .result-card-grid,
  .vertical-evaluation-grid,
  .plot-layout,
  .metric-grid,
  .state-grid,
  .station-card {
    grid-template-columns: 1fr;
  }

  .plot-layout,
  .plot-layout.with-cross-track-indicator {
    grid-template-areas: none;
  }

  .plot-layout.with-cross-track-indicator .plot-visual-stack {
    display: grid;
    grid-template-areas:
      "indicator"
      "plot";
  }

  .plot-legend-panel,
  .plot-visual-stack,
  .plot-interaction-frame,
  .cross-track-indicator,
  .spatial-plot {
    grid-area: auto;
  }

  .summary-list > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .component-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
