/* =============================================================
   DAS LABS · PropulsionLab
   Restrained aerospace design language
   v3.0  graphite · hairlines · typography · whitespace
   ============================================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  /* surfaces */
  --bg:          #08090b;
  --surface:     #0d0e11;
  --surface-2:   #131418;
  --surface-3:   #191b20;
  --surface-4:   #20232a;

  /* hairlines */
  --line:          rgba(255, 255, 255, 0.06);
  --line-strong:   rgba(255, 255, 255, 0.10);
  --line-emphasis: rgba(255, 255, 255, 0.18);

  /* ink */
  --text:        #f4f4f5;
  --text-2:      rgba(244, 244, 245, 0.62);
  --text-3:      rgba(244, 244, 245, 0.42);
  --text-4:      rgba(244, 244, 245, 0.26);

  /* accent (used sparingly) */
  --accent:        #7ba7eb;
  --accent-strong: #9bbef0;
  --accent-soft:   rgba(123, 167, 235, 0.10);
  --accent-line:   rgba(123, 167, 235, 0.32);

  /* chart palette — muted, premium */
  --chart-temp:     #d97757;
  --chart-pressure: #7ba7eb;
  --chart-thrust:   #f4f4f5;
  --chart-tsfc:     #d4d4d8;
  --chart-eta:      #94a3b8;
  --chart-prop:     #a1a1aa;
  --chart-overall:  #71717a;

  /* status */
  --ok:    #84cc8a;
  --warn:  #d4a155;
  --err:   #d97670;

  /* typography */
  --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "Cascadia Mono", "Menlo", monospace;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;

  /* motion */
  --ease-soft: cubic-bezier(0.32, 0.72, 0.0, 1.0);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
  font-family: var(--font-sans);
  font-feature-settings: "cv11", "ss01", "tnum";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

/* page fade-in */
body { animation: pageIn 480ms var(--ease-out) both; }
@keyframes pageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* =========================================================
   BOOT SCREEN  (~1s DAS LABS intro, then fades out)
   ========================================================= */

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  /* dark brand field — the wordmark asset is transparent light-grey, so it
     reads cleanly here and matches the app (no white flash). */
  background: var(--bg);
  animation: bootScreenOut 1450ms var(--ease-out) forwards;
}
@keyframes bootScreenOut {
  0%   { opacity: 1; visibility: visible; }
  68%  { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

.boot-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bootLogoIn 620ms var(--ease-soft) both;
}
@keyframes bootLogoIn {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: none; }
}

/* real wordmark artwork */
.boot-logo-img {
  display: block;
  width: min(560px, 72vw);
  height: auto;
}

/* SVG fallback (grey on white) — shown only if the artwork file is missing */
.boot-fallback {
  align-items: center;
  gap: 22px;
  color: #c2c5cb;
}
.boot-mark { width: 88px; height: 44px; }
.boot-trail {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: bootTrail 760ms var(--ease-out) 140ms forwards;
}
@keyframes bootTrail { to { stroke-dashoffset: 0; } }
.boot-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: 0.34em;
  padding-left: 0.34em;
  color: #c2c5cb;
}
@media (max-width: 560px) {
  .boot-mark { width: 64px; height: 32px; }
  .boot-word { font-size: 21px; letter-spacing: 0.28em; padding-left: 0.28em; }
}

/* =========================================================
   TYPOGRAPHY PRIMITIVES
   ========================================================= */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0;
}
.eyebrow .num {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text-2);
}
.eyebrow .rule {
  flex: 1;
  min-width: 40px;
  height: 1px;
  background: var(--line);
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--text);
  letter-spacing: -0.02em;
  font-weight: 500;
  line-height: 1.15;
}

p { margin: 0; }

.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }

/* =========================================================
   MISSION BAR  (top navigation)
   ========================================================= */

.mission-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 32px;
  background: rgba(8, 9, 11, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(20px);
  -webkit-backdrop-filter: saturate(140%) blur(20px);
}
.mission-bar-left,
.mission-bar-right {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text);
  text-decoration: none;
}
/* DAS LABS is the prominent brand mark. */
.brand .brand-mark {
  font-weight: 700;
  letter-spacing: 0.13em;
  font-size: 13.5px;
  text-transform: uppercase;
  color: var(--text);
}
/* PropulsionLab is the secondary product label. */
.brand .brand-product {
  font-weight: 500;
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.01em;
}
/* Wordmark artwork variant of the product label. The art sits on black, so
   mix-blend screen drops the background out against the dark mission bar. */
.brand .brand-product-img {
  height: 15px;
  width: auto;
  display: block;
  mix-blend-mode: screen;
  /* The art is mid-grey silver; screen blend dims it further against the bar,
     so lift it back up to sit at parity with the DAS LABS mark beside it. */
  filter: brightness(1.45) contrast(1.05);
  opacity: 1;
}
.brand:hover .brand-mark { color: var(--accent-strong); }
.brand .brand-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--text-4);
  display: inline-block;
  vertical-align: middle;
  margin: 0 5px;
}
.mission-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: color 200ms var(--ease-out);
}
.mission-link:hover { color: var(--text); }
/* The unit toggle is a <button> wearing the .mission-link look; reset chrome
   and give it a faint pill so it reads as an actionable control, not a link. */
button.unit-toggle {
  font-family: inherit;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  letter-spacing: 0.01em;
}
button.unit-toggle:hover { color: var(--text); border-color: var(--line-2); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.status-pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-3);
}
.status-pill.ok { color: var(--text); border-color: var(--line-strong); }
.status-pill.ok::before { background: var(--ok); }
.status-pill.bad { color: var(--text); border-color: var(--line-strong); }
.status-pill.bad::before { background: var(--err); }

/* =========================================================
   APP SHELL
   ========================================================= */

.app-shell {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 56px 32px 80px;
  display: grid;
  gap: 56px;
}

/* =========================================================
   HERO BAND
   ========================================================= */

.hero-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.18fr);
  gap: 48px;
  align-items: center;
  padding: 32px 0 24px;
}

.hero-copy { min-width: 0; }
.hero-band .eyebrow { margin-bottom: 28px; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  color: var(--text);
  text-wrap: balance;
}
.hero-title .accent {
  font-style: normal;
  color: var(--text-2);
}
.hero-sub {
  max-width: 56ch;
  margin-bottom: 36px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-2);
  font-weight: 400;
  text-wrap: pretty;
}
.hero-cta-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 56px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.hero-stat {
  padding: 18px 20px 18px 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.hero-stat:last-child { border-right: 0; padding-right: 0; }
.hero-stat-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  line-height: 1.3;
  /* Reserve two lines so single-line labels don't raise their value, keeping
     every number on one baseline regardless of how the label wraps. */
  min-height: 2.6em;
  margin-bottom: 10px;
}
.hero-stat-value { margin-top: auto; }
.hero-stat-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}
.hero-stat-unit {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.04em;
}
/* Range connector for the Mach-envelope stat: both 0 and 8 stay full size
   (8 is a real ceiling, not a unit); only the arrow is dimmed and lighter. */
.hero-stat-arrow {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-4);
}

/* =========================================================
   SECTION HEADERS
   ========================================================= */

.section {
  display: grid;
  gap: 24px;
}
.section-header {
  display: grid;
  gap: 6px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}
.section-sub {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
  max-width: 64ch;
  margin: 0;
}

/* =========================================================
   ARCHITECTURE RAIL
   ========================================================= */

.engine-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.engine-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 20px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  text-align: left;
  font-family: var(--font-sans);
  cursor: pointer;
  transition:
    background 240ms var(--ease-out),
    border-color 240ms var(--ease-out),
    transform 240ms var(--ease-out);
}
.engine-card:hover {
  background: var(--surface-2);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.engine-card.active {
  background: var(--surface-2);
  border-color: var(--line-emphasis);
}
.engine-card.active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 1px;
  background: var(--text);
  transform-origin: left;
  animation: rule 320ms var(--ease-out);
}
@keyframes rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.engine-card .ec-icon {
  width: 38px;
  height: 22px;
  color: var(--text-2);
}
.engine-card.active .ec-icon { color: var(--text); }
.engine-card .ec-code {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.engine-card .ec-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.1;
}
.engine-card .ec-desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-2);
}

/* =========================================================
   PANEL
   ========================================================= */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
}
.panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.panel-heading h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}
/* "Turbojet only" scope badge on features that run on the turbojet deck
   regardless of the engine selected on the Cycle tab. */
.scope-tag {
  margin-right: auto;
  align-self: center;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(123, 167, 235, 0.4);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
  cursor: help;
}
.panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.case-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

/* =========================================================
   CROSS-SECTION VIEWER
   ========================================================= */

.viewer-panel { padding: 24px; }
.viewer-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

#engineViewerCanvas {
  width: 100%;
  height: auto;
  display: block;
  background: var(--surface);
  border-radius: 6px;
}
.station-inspector {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 24px;
  min-height: 28px;
  margin-top: 20px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-2);
}
.station-inspector strong {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
}
.station-inspector .mono { color: var(--text); font-size: 13px; }

.viewer-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 8px;
}
.viewer-insight { display: grid; gap: 6px; }
.viewer-insight span {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.viewer-insight strong {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: -0.005em;
  line-height: 1.45;
}

/* =========================================================
   CONSOLE TABS
   ========================================================= */

.console-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}
.tab-button {
  position: relative;
  padding: 14px 18px 16px;
  background: transparent;
  border: 0;
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  text-transform: none;
  transition: color 200ms var(--ease-out);
}
.tab-button::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 320ms var(--ease-soft);
}
.tab-button:hover { color: var(--text); }
.tab-button.active { color: var(--text); }
.tab-button.active::after { transform: scaleX(1); }

.tab-panel { display: none; }
.tab-panel.active {
  display: block;
  animation: panelFade 320ms var(--ease-out);
}
@keyframes panelFade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hidden { display: none !important; }

/* =========================================================
   WORKSPACE
   ========================================================= */

.workspace {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* =========================================================
   INPUTS
   ========================================================= */

.preset-control { display: grid; gap: 8px; margin-bottom: 18px; }

.profile-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 8px;
  align-items: end;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.profile-tools button { width: 100%; }

.input-sections {
  display: grid;
  gap: 4px;
}
.input-section {
  border: 0;
  background: transparent;
  border-bottom: 1px solid var(--line);
}
.input-section:last-of-type { border-bottom: 0; }
.input-section summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 14px 4px 14px 24px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  color: var(--text);
  text-transform: none;
}
.input-section summary::-webkit-details-marker { display: none; }
.input-section summary::before {
  content: "";
  position: absolute;
  top: 50%; left: 4px;
  width: 8px; height: 8px;
  border-right: 1px solid var(--text-3);
  border-bottom: 1px solid var(--text-3);
  transform: translateY(-65%) rotate(-45deg);
  transition: transform 240ms var(--ease-out);
}
.input-section[open] summary::before {
  transform: translateY(-25%) rotate(45deg);
}
.input-section summary:hover::before { border-color: var(--text); }
.input-section .input-grid {
  padding: 4px 4px 18px;
}

.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
label > span:first-child {
  color: var(--text-2);
}
label .unit,
.preset-control .unit,
.profile-tools .unit {
  display: inline;
  margin-left: 6px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
}
.field-hint {
  color: var(--text-3);
  font-size: 11px;
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

input, select, textarea, button {
  font: inherit;
  border-radius: 6px;
  min-height: 36px;
}
input, select, textarea {
  width: 100%;
  padding: 8px 11px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  transition:
    background 200ms var(--ease-out),
    border-color 200ms var(--ease-out),
    box-shadow 200ms var(--ease-out);
}
input::placeholder { color: var(--text-4); }
select {
  appearance: none;
  cursor: pointer;
  padding-right: 28px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-3) 50%),
    linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
select option { background: var(--surface-2); color: var(--text); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--line-emphasis);
  background: var(--surface-3);
}
input.input-invalid, select.input-invalid {
  border-color: var(--err);
}

button {
  border: 1px solid transparent;
  padding: 9px 16px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  transition:
    background 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    color 180ms var(--ease-out);
}
button:disabled { opacity: 0.42; cursor: not-allowed; }

.primary-button {
  color: #08090b;
  background: #f4f4f5;
  border-color: #f4f4f5;
}
.primary-button:hover:not(:disabled) {
  background: #ffffff;
  border-color: #ffffff;
}
.secondary-button {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--line-strong);
}
.secondary-button:hover:not(:disabled) {
  background: var(--surface-3);
  border-color: var(--line-emphasis);
}
.ghost-button {
  color: var(--text-2);
  background: transparent;
  border-color: var(--line-strong);
}
.ghost-button:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--line-emphasis);
}
.danger-button {
  color: var(--text-2);
  background: transparent;
  border-color: var(--line-strong);
}
.danger-button:hover:not(:disabled) {
  color: var(--err);
  border-color: rgba(217, 118, 112, 0.4);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
}
.checkbox-line input {
  width: 15px; height: 15px;
  min-height: 15px;
  margin: 0;
  accent-color: var(--text);
}

/* =========================================================
   METRIC GRID
   ========================================================= */

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 24px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.metric {
  position: relative;
  padding: 18px 20px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric > span {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}
.metric > strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}

/* =========================================================
   CHART CONTAINER
   ========================================================= */

.visual-row {
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}
canvas { display: block; width: 100%; height: auto; }

/* =========================================================
   WARNINGS
   ========================================================= */

.warnings {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--warn);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
}
.warnings > strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}
.warning-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: baseline;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.warning-item:first-of-type { border-top: 0; padding-top: 0; }
.warning-item span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.warning-item p {
  margin: 0;
  line-height: 1.5;
  color: var(--text);
  font-size: 13px;
  font-family: var(--font-sans);
}
.warning-item.info span    { color: var(--accent); }
.warning-item.caution span { color: var(--warn); }
.warning-item.critical span{ color: var(--err); }
.warnings:has(.warning-item.critical) { border-left-color: var(--err); }
.warnings:has(.warning-item.info):not(:has(.warning-item.caution, .warning-item.critical)) {
  border-left-color: var(--accent);
}

/* =========================================================
   NOZZLE MODULE
   ========================================================= */

.nozzle-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.nozzle-panel > strong {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.nozzle-item {
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.nozzle-item span {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}
.nozzle-item b {
  display: block;
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

/* =========================================================
   TABLE
   ========================================================= */

.table-wrap {
  max-height: 320px;
  margin-top: 24px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.table-wrap::-webkit-scrollbar { width: 8px; height: 8px; }
.table-wrap::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 4px;
}
.table-wrap::-webkit-scrollbar-track { background: transparent; }

/* Real-gas comparison deltas: warmer (real gas hotter) vs cooler. */
.delta-up { color: #f0883e; }
.delta-down { color: #7ba7eb; }

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
}
th, td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 12.5px;
  color: var(--text);
  font-weight: 400;
}
tbody tr {
  transition: background 160ms var(--ease-out);
  cursor: pointer;
}
tbody tr:hover { background: var(--surface-2); }
tbody tr.active-station-row { background: var(--surface-3); }
th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface);
  color: var(--text-3);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  border-bottom: 1px solid var(--line-strong);
}

/* =========================================================
   SWEEP PANEL
   ========================================================= */

.sweep-grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(260px, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}
.summary-line {
  min-height: 24px;
  margin-top: 14px;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
  font-size: 12px;
  letter-spacing: 0;
}
.explanation-panel {
  min-height: 52px;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}

/* =========================================================
   ASSUMPTIONS
   ========================================================= */

.assumption-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--text-2);
  line-height: 1.55;
  font-size: 14px;
}
.assumption-list li::marker { color: var(--text-3); }

/* =========================================================
   REPORTS / GRAPHS GRID
   ========================================================= */

.report-copy {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
  max-width: 64ch;
}

.graphs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.graph-card { padding: 22px; }
.graph-card h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  color: var(--text);
}
.graph-card canvas {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
}

/* =========================================================
   COMPARE
   ========================================================= */

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.compare-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.compare-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  color: var(--text);
}
.compare-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-2);
}
.compare-row b {
  color: var(--text);
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
  font-weight: 500;
}

/* =========================================================
   FOOTER
   ========================================================= */

.mission-footer {
  margin-top: 64px;
  padding: 32px 32px 48px;
  border-top: 1px solid var(--line);
  background: transparent;
}
.mission-footer-grid {
  width: min(1320px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.mission-footer .footer-block {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-3);
}
.mission-footer .footer-block strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
}
.mission-footer .footer-block a { color: var(--text-2); text-decoration: none; }
.mission-footer .footer-block a:hover { color: var(--text); }

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1180px) {
  .hero-band { grid-template-columns: 1fr; gap: 48px; }
  /* Tablet: keep the contour but simpler — hide telemetry + grid + pulse. */
  .pressure-contour { order: -1; max-width: 560px; margin-bottom: 8px; opacity: 0.75; }
  .pressure-contour .pc-telemetry,
  .pressure-contour .pc-grid,
  .pressure-contour .pc-pulse,
  .pressure-contour .pc-ticks { display: none; }
  .engine-card-grid { grid-template-columns: repeat(3, 1fr); }
  .viewer-legend { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .app-shell { padding: 36px 20px 64px; gap: 44px; }
  .mission-bar { padding: 14px 20px; }
  .workspace { grid-template-columns: 1fr; }
  .graphs-grid, .compare-grid { grid-template-columns: 1fr; }
  .engine-card-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .mission-footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stat { border-right: 0; }
  .hero-stat:nth-child(2n) { border-right: 0; }
}
@media (max-width: 640px) {
  .input-grid, .sweep-grid, .engine-card-grid, .metric-grid {
    grid-template-columns: 1fr;
  }
  /* Mobile: keep only the duct outline + axial gradient + station ticks. */
  .pressure-contour { opacity: 0.55; max-width: 460px; }
  .pressure-contour .pc-isobars,
  .pressure-contour .pc-stream { display: none; }
}

/* =========================================================
   MOBILE PASS  ( <= 760 px )
   -----------------------------------------------------------
   One consolidated mobile/phone section. Covers:
     * Global guards: iOS text-size lock, no horizontal overflow.
     * Mission bar: brand on row 1, scrollable nav on row 2.
     * Hero: hide the 3D iframe (too heavy for mobile data + too
       small to read), shrink the title, full-width CTAs.
     * Console tabs: 12 tabs in a horizontal-scroll strip with
       44 px touch targets.
     * Panels: tighter padding, headings wrap.
     * Forms: every input >=16 px font-size (stops iOS zoom on
       focus), >=40 px height for thumb-friendly tapping.
     * Buttons: >=44 px tall (Apple HIG touch-target minimum).
     * Tables / canvases: don't push the page wider than the
       viewport; the offender scrolls inside its own container.
   ========================================================= */
@media (max-width: 760px) {
  /* GLOBAL */
  html, body { -webkit-text-size-adjust: 100%; }
  /* NOTE: deliberately NOT using overflow-x: hidden here. It hides the
     symptom (a clipped right edge) but masks the root cause; each
     potentially-overflowing element below is constrained at its source. */

  .app-shell { padding: 28px 14px 56px; gap: 32px; }

  /* The concept-strip is a 2-col grid (long body + "Read manual" CTA).
     On a narrow viewport the auto-sized CTA column squeezes the body
     until "extract shaft" clips at the right edge. Stack to 1 column. */
  .concept-strip {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 14px;
  }
  .concept-strip .concept-cta {
    justify-self: start;
    white-space: normal;
  }
  .concept-strip .concept-body { font-size: 14px; }

  /* MISSION BAR — brand on row 1, scrollable nav on row 2 */
  .mission-bar {
    flex-wrap: wrap;
    padding: 11px 14px;
    gap: 8px 12px;
  }
  .mission-bar-left {
    flex: 1 1 auto;
    min-width: 0;
    gap: 12px;
  }
  .mission-bar-right {
    flex: 1 1 100%;
    flex-wrap: nowrap;
    gap: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .mission-bar-right::-webkit-scrollbar { display: none; }
  .mission-link,
  .status-pill,
  button.unit-toggle {
    flex-shrink: 0;
    white-space: nowrap;
  }
  .brand .brand-product-img { height: 13px; }

  /* HERO BAND — single column, no 3D iframe on phone */
  .hero-band {
    grid-template-columns: 1fr;
    padding: 20px 0 12px;
    gap: 24px;
  }
  .hero-title {
    font-size: clamp(1.65rem, 7vw, 2.2rem);
    line-height: 1.1;
    margin-bottom: 18px;
    overflow-wrap: break-word;
    word-break: break-word;
    text-wrap: pretty;
  }
  .hero-title br { display: none; }              /* let it wrap naturally */
  .hero-sub {
    font-size: 14.5px;
    line-height: 1.5;
    margin-bottom: 22px;
    max-width: none;
  }
  .hero-cta-row { gap: 10px; flex-wrap: wrap; }
  .hero-cta-row .primary-button,
  .hero-cta-row .ghost-button {
    flex: 1 1 calc(50% - 6px);
    min-height: 44px;
    padding: 11px 18px;
  }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  /* The 3D embed is too heavy and too cramped on a phone — drop it. */
  .hero-reserved { display: none; }

  /* CONSOLE TABS — horizontal scroll, big tap targets */
  .console-tabs {
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: -14px;
    margin-right: -14px;
    padding: 0 14px;
  }
  .console-tabs::-webkit-scrollbar { display: none; }
  .tab-button {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 13px 14px 15px;
    font-size: 13.5px;
    min-height: 44px;
  }

  /* PANELS — tighter padding, headings wrap when they have a button */
  .panel { padding: 18px 14px; }
  .panel-heading {
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: flex-start;
  }
  .panel-heading h2 { font-size: 18px; }

  /* FORMS — 16 px+ font on every input stops iOS Safari from auto-zooming
     when the user taps a field. >=40 px height makes them tap-friendly. */
  input[type="text"],
  input[type="number"],
  input[type="email"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px;
    min-height: 40px;
    padding: 8px 10px;
  }
  input[type="checkbox"] { min-height: auto; }

  /* BUTTONS — 44 px minimum (Apple HIG / WCAG 2.5.5 touch-target). */
  .primary-button,
  .secondary-button,
  .ghost-button {
    min-height: 44px;
    padding: 11px 18px;
  }

  /* ANALYSIS SUITE control rows — 2-col instead of squashed-many. */
  .od-controls,
  .sweep-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .compare-controls { gap: 8px 14px; padding: 10px 12px; }

  /* CANVASES + TABLES — never wider than the viewport. */
  canvas { max-width: 100%; height: auto; }
  .table-wrap { overflow-x: auto; }

  /* FOOTER — single block, tighter padding (the 980 px breakpoint
     already drops the footer grid to 1-col; this just trims spacing). */
  .mission-footer { padding: 32px 18px; }
  .footer-block { font-size: 13px; }
}

/* Very small phones (<= ~420 px) — collapse remaining 2-cols to 1. */
@media (max-width: 420px) {
  .od-controls,
  .sweep-grid { grid-template-columns: 1fr; }
  .tab-button { padding: 11px 12px 13px; font-size: 12.5px; }
  .hero-cta-row .primary-button,
  .hero-cta-row .ghost-button { flex: 1 1 100%; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   ADVANCED-ENGINE DETAIL GRID + USER MANUAL + COMPARE CONTROLS
   ========================================================= */

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6px 24px;
  margin: 14px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.015);
}
.detail-grid .detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
}
.detail-grid .detail-row span {
  color: rgba(244, 244, 245, 0.55);
  letter-spacing: 0.01em;
}
.detail-grid .detail-row strong {
  color: rgba(244, 244, 245, 0.92);
  font-weight: 500;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.compare-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 14px 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}

.manual-panel { padding: 24px 28px; }
.manual-panel .manual-block {
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.015);
}
.manual-panel .manual-block > summary {
  cursor: pointer;
  font-weight: 500;
  color: rgba(244, 244, 245, 0.9);
  font-size: 14px;
  padding: 4px 0;
  list-style: none;
}
.manual-panel .manual-block > summary::before {
  content: "›";
  display: inline-block;
  width: 18px;
  color: rgba(244, 244, 245, 0.5);
  transition: transform 0.2s cubic-bezier(0.32, 0.72, 0, 1);
}
.manual-panel .manual-block[open] > summary::before { transform: rotate(90deg); }
.manual-panel .manual-block p {
  margin: 8px 0;
  color: rgba(244, 244, 245, 0.7);
  font-size: 13px;
  line-height: 1.55;
}
.manual-panel .manual-block p strong { color: rgba(244, 244, 245, 0.95); }
.manual-panel code {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
}

/* =========================================================
   PRESSURE-CONTOUR HERO VISUALIZATION
   ---------------------------------------------------------
   Stylized reduced-order propulsion contour.
   - ultra-thin vectors
   - low-opacity layered fills
   - very slow CSS keyframe motion (no JS, GPU-friendly)
   - mask-fade right + bottom edges so the panel dissolves
     into the dark background instead of cutting off
   ========================================================= */

/* Hero live 3D engine showcase (embedded viewer iframe) — frameless, blends into the hero */
.hero-embed {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero-embed iframe {
  width: 100%;
  aspect-ratio: 5 / 4;   /* near-square so the sphere-framed engine fills the panel without clipping */
  border: 0;
  display: block;
  background: transparent;
  pointer-events: none;   /* calm, non-interactive showcase; the button opens the full viewer */
}
.hero-embed-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text);
  text-decoration: none;
  background: #16181d;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  padding: 7px 14px;
  transition: border-color .15s, color .15s, background .15s;
}
.hero-embed-link:hover { border-color: var(--accent); color: var(--accent); }

.pressure-contour {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  /* edge fade so the visual reads as ambient background */
  -webkit-mask-image:
    linear-gradient(to right, #000 0%, #000 70%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 88%, transparent 100%);
  mask-image:
    linear-gradient(to right, #000 0%, #000 70%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  opacity: 0.92;
}
.pressure-contour .pc-svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 720px;
  margin-left: auto;
}

/* Reference grid — barely visible */
.pc-grid line {
  stroke: rgba(255, 255, 255, 0.04);
  stroke-width: 0.5;
}

/* Isobar / isotherm contour lines */
.pc-isobars path {
  fill: none;
  stroke: rgba(244, 244, 245, 0.18);
  stroke-width: 0.55;
  vector-effect: non-scaling-stroke;
}

/* Drifting streamlines — slow stroke-dashoffset animation */
.pc-stream path {
  fill: none;
  stroke: rgba(244, 244, 245, 0.30);
  stroke-width: 0.7;
  stroke-dasharray: 6 8;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  animation: pcStreamDrift 32s linear infinite;
}
.pc-stream path:nth-child(1) { animation-duration: 36s; }
.pc-stream path:nth-child(2) { animation-duration: 30s; }
.pc-stream path:nth-child(3) { animation-duration: 28s; stroke: rgba(244,244,245,0.42); }
.pc-stream path:nth-child(4) { animation-duration: 31s; }
.pc-stream path:nth-child(5) { animation-duration: 34s; }
@keyframes pcStreamDrift {
  from { stroke-dashoffset: 0;   }
  to   { stroke-dashoffset: -240; }
}

/* Pressure pulse — translates left-to-right across the duct, very slow */
.pc-pulse {
  animation: pcPulseSweep 14s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes pcPulseSweep {
  0%   { transform: translateX(0);    opacity: 0;   }
  20%  { opacity: 0.85; }
  85%  { opacity: 0.85; }
  100% { transform: translateX(900px); opacity: 0; }
}

/* Contour band gradient breathing — the isobar group fades in and out
   gently. Two layered animations give a slow shimmer. */
.pc-isobars {
  animation: pcContourBreathe 9s ease-in-out infinite;
}
@keyframes pcContourBreathe {
  0%, 100% { opacity: 0.9; }
  50%      { opacity: 0.55; }
}

/* Station ticks + tiny number labels */
.pc-stations g line {
  stroke: rgba(244, 244, 245, 0.35);
  stroke-width: 0.6;
}
.pc-stations g text {
  fill: rgba(244, 244, 245, 0.40);
  font-family: var(--font-mono);
  font-size: 8px;
  text-anchor: middle;
}

/* Bottom axis ticks */
.pc-ticks line {
  stroke: rgba(244, 244, 245, 0.22);
  stroke-width: 0.6;
}

/* Telemetry ghost readouts — bottom-left of viz, very low opacity */
.pc-telemetry text {
  fill: rgba(244, 244, 245, 0.32);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

/* =========================================================
   EDUCATIONAL LAYER
   ---------------------------------------------------------
   Info popovers, concept strip, live cycle-insights panel,
   glossary. Restrained aerospace look — no neon, no balloons.
   ========================================================= */

/* Info popover badge: a tiny outlined "?" next to a label.
   Hover (desktop) or .open (touch) reveals a calm tooltip. */
.info-pop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: rgba(244, 244, 245, 0.55);
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1;
  cursor: help;
  user-select: none;
  position: relative;
  vertical-align: middle;
  transition: border-color 160ms, color 160ms;
}
.info-pop:hover, .info-pop.open {
  border-color: rgba(123, 167, 235, 0.65);
  color: rgba(244, 244, 245, 0.92);
}
.info-pop::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(2px);
  width: max-content;
  max-width: 280px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 4px;
  background: #16181d;
  color: rgba(244, 244, 245, 0.82);
  font-family: var(--font-sans);
  font-size: 11.5px;
  line-height: 1.45;
  letter-spacing: 0;
  text-align: left;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms cubic-bezier(0.32, 0.72, 0, 1),
              transform 180ms cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 50;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}
.info-pop:hover::after, .info-pop.open::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Concept strip — short orienting blurb above the engine cards. */
.concept-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 2px solid rgba(123, 167, 235, 0.45);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.014);
}
.concept-strip .concept-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(244, 244, 245, 0.5);
  margin-bottom: 4px;
}
.concept-strip .concept-body {
  color: rgba(244, 244, 245, 0.78);
  font-size: 13px;
  line-height: 1.55;
}
.concept-strip .concept-cta {
  font-size: 12px;
  color: rgba(123, 167, 235, 0.9);
  text-decoration: none;
  border-bottom: 1px dashed rgba(123, 167, 235, 0.4);
  padding-bottom: 1px;
  cursor: pointer;
  white-space: nowrap;
}
.concept-strip .concept-cta:hover { color: #f4f4f5; border-bottom-color: #7ba7eb; }

/* Cycle insights — appears under the metric grid after each simulation.
   Rows are plain-English interpretations of the latest numbers. */
.insights-panel {
  margin: 18px 0 0;
  padding: 14px 16px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 2px solid rgba(217, 176, 66, 0.55);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.014);
}
.insights-panel .insight-heading {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(244, 244, 245, 0.5);
  margin-bottom: 8px;
}
.insight-sub {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
  margin: 10px 0 0;
}
.emissions-actions {
  margin-top: 12px;
}
#ltoResult table {
  margin-top: 10px;
}
.insights-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.insights-panel li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(244, 244, 245, 0.78);
}
.insights-panel li::before {
  content: "›";
  position: absolute;
  left: 4px;
  top: 0;
  color: rgba(244, 244, 245, 0.4);
  font-family: var(--font-mono);
  line-height: 1.55;
}
.insights-panel li b {
  color: rgba(244, 244, 245, 0.95);
  font-weight: 500;
}

/* Glossary block inside the manual tab — same look as manual-block but
   with a 2-column key/value table. */
.glossary-grid {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 6px 18px;
  margin-top: 6px;
}
.glossary-grid dt {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(244, 244, 245, 0.78);
  letter-spacing: 0.04em;
  padding: 5px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.05);
}
.glossary-grid dt:first-of-type { border-top: 0; }
.glossary-grid dd {
  margin: 0;
  font-size: 13px;
  color: rgba(244, 244, 245, 0.65);
  padding: 5px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.05);
  line-height: 1.5;
}
.glossary-grid dd:first-of-type { border-top: 0; }

/* Brief panel attention flash (used by the hero "Run a sweep" CTA). */
.flash-attention {
  animation: flashAttention 1.2s cubic-bezier(0.32, 0.72, 0, 1) 1;
}
@keyframes flashAttention {
  0%   { box-shadow: 0 0 0 0 rgba(123, 167, 235, 0); }
  35%  { box-shadow: 0 0 0 4px rgba(123, 167, 235, 0.30); }
  100% { box-shadow: 0 0 0 0 rgba(123, 167, 235, 0); }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

/* =========================================================
   MODERN REFINEMENT LAYER  (v3.1)
   Lit-from-above surfaces, accent focus rings, depth, and the
   small-detail polish of modern dark product UIs. Layered on
   top of the v3.0 base so the restrained language is preserved.
   ========================================================= */

/* --- Atmospheric background: one faint, fixed accent wash at the
   top of the page for depth. Extremely low opacity — felt, not seen. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -20%, rgba(123, 167, 235, 0.06), transparent 60%),
    radial-gradient(90% 60% at 90% 0%, rgba(217, 119, 87, 0.03), transparent 55%);
}

/* --- Lit-from-above hairline on panels and cards. A 1px gradient at
   the top edge reads as a soft light source — the signature of modern
   dark UIs (Linear, Vercel, Raycast). */
.panel,
.engine-card,
.detail-grid,
.insights-panel,
.concept-strip,
.manual-block,
.metric {
  position: relative;
}
.panel::before,
.engine-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.10) 18%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.10) 82%,
    transparent
  );
  opacity: 0.7;
  pointer-events: none;
}

/* --- Engine card: accent-tinted active + hover glow, slightly deeper lift. */
.engine-card {
  transition:
    background 240ms var(--ease-out),
    border-color 240ms var(--ease-out),
    box-shadow 240ms var(--ease-out),
    transform 240ms var(--ease-out);
}
.engine-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 12px 28px -16px rgba(0, 0, 0, 0.7);
}
.engine-card.active {
  border-color: var(--accent-line);
  box-shadow:
    0 0 0 1px var(--accent-soft),
    0 14px 32px -18px rgba(0, 0, 0, 0.75);
}
.engine-card.active .ec-code { color: var(--accent); }

/* --- Panels gain a soft drop shadow for depth (very subtle). */
.panel {
  box-shadow: 0 14px 40px -28px rgba(0, 0, 0, 0.8);
}

/* --- Primary button: refined hover lift + active press. */
.primary-button {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  transition:
    background 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out),
    transform 120ms var(--ease-out);
}
.primary-button:hover:not(:disabled) {
  box-shadow: 0 6px 18px -8px rgba(244, 244, 245, 0.35);
  transform: translateY(-1px);
}
.primary-button:active:not(:disabled),
.secondary-button:active:not(:disabled),
.ghost-button:active:not(:disabled) {
  transform: translateY(0) scale(0.985);
}

/* --- Accent focus ring on inputs (clearer + more modern than the
   plain border darken). */
input:focus, select:focus, textarea:focus {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* --- Keyboard focus-visible ring on all interactive controls
   (accessible + on-brand). Mouse clicks don't trigger it. */
button:focus-visible,
.engine-card:focus-visible,
.tab-button:focus-visible,
a:focus-visible,
.info-pop:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent-line);
  border-radius: 6px;
}

/* --- Accent-tinted text selection. */
::selection {
  background: rgba(123, 167, 235, 0.26);
  color: #ffffff;
}

/* --- Thin, modern dark scrollbar. */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border: 3px solid transparent;
  background-clip: padding-box;
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.26);
  background-clip: padding-box;
}

/* --- Metric values: tabular figures + a touch more presence. */
.metric strong {
  font-feature-settings: "tnum";
  letter-spacing: -0.01em;
}

/* =========================================================
   CREATOR CARD
   ========================================================= */

.creator-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: start;
  padding: 30px 32px;
}
.creator-avatar {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 0.02em;
  color: var(--text);
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(123, 167, 235, 0.22), transparent 60%),
    var(--surface-3);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.creator-body { min-width: 0; }
.creator-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.creator-role {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-top: 4px;
}
.creator-blurb {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
  max-width: 64ch;
}
.creator-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.creator-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-2);
  transition: color 200ms var(--ease-out);
}
.creator-link:hover { color: var(--text); }
.creator-link.primary-link {
  padding: 9px 16px;
  border-radius: 8px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  transition:
    background 200ms var(--ease-out),
    border-color 200ms var(--ease-out),
    box-shadow 200ms var(--ease-out),
    transform 120ms var(--ease-out);
}
.creator-link.primary-link:hover {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-soft);
  transform: translateY(-1px);
}
.creator-link.primary-link svg { color: var(--accent); }

@media (max-width: 640px) {
  .creator-card { grid-template-columns: 1fr; gap: 18px; }
}

/* =========================================================
   SCROLL-REVEAL (sections fade + rise into view)
   ========================================================= */

.section.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s cubic-bezier(0.32, 0.72, 0, 1),
    transform 0.7s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: opacity, transform;
}
.section.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* =========================================================
   STATUS-PILL TELEMETRY PULSE
   A slow heartbeat on the connection indicator dot — ambient
   mission-control feel, not a neon blink. Only when online.
   ========================================================= */

/* Pulse the existing ok dot (green, defined above) — no redefinition, just
   the slow telemetry heartbeat layered on. A soft halo ring echoes it. */
.status-pill.ok::before {
  animation: telemetryPulse 3.4s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(132, 204, 138, 0.5);
}
@keyframes telemetryPulse {
  0%, 100% { opacity: 0.45; box-shadow: 0 0 0 0 rgba(132, 204, 138, 0.45); }
  50%      { opacity: 1;    box-shadow: 0 0 0 4px rgba(132, 204, 138, 0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  /* Hold the contour at a stable mid-state instead of vanishing. */
  .pc-pulse        { opacity: 0; }
  .pc-isobars      { opacity: 0.75; }
  .pc-stream path  { stroke-dasharray: none; }
  /* Reveal everything immediately when motion is reduced. */
  .section.reveal  { opacity: 1; transform: none; }
  .status-pill.ok::before { opacity: 0.9; }
}

.report-actions { display: flex; gap: 10px; align-items: center; }

.footer-sponsor { color: var(--accent); }
.footer-sponsor:hover { color: var(--accent-strong); }

.graph-note {
  margin: 10px 2px 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-3);
}
.graph-note code {
  font-family: var(--font-mono);
  font-size: 0.95em;
  color: var(--text-2);
}

/* ============================================================
   OFF-DESIGN TAB
   ============================================================ */
.od-panel { display: flex; flex-direction: column; gap: 16px; }

.od-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
}
.od-controls label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-2);
}
.od-controls select,
.od-controls input {
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--text);
  padding: 9px 11px;
  font-size: 0.9rem;
  min-width: 150px;
}
.od-controls .primary-button { align-self: flex-end; }

.od-status {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-3);
  margin: 0;
}

.od-body {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr);
  gap: 20px;
  align-items: start;
}
.od-chart-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
}
#offDesignCanvas { width: 100%; height: auto; display: block; }
/* Map tab: stack the fan + core-compressor canvases for the turbofan. */
.map-canvas-block { margin-bottom: 10px; }
.map-canvas-block:last-child { margin-bottom: 0; }
.map-canvas-block canvas { width: 100%; height: auto; display: block; }
.map-canvas-title {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-3); margin: 2px 0 4px 4px;
}

.od-readout { display: flex; flex-direction: column; gap: 16px; }
.od-throttle { display: flex; flex-direction: column; gap: 8px; }
.od-throttle label {
  font-size: 0.78rem;
  color: var(--text-2);
}
.od-throttle output {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: 560;
}
#odThrottle {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}
#odThrottle:disabled { cursor: not-allowed; opacity: 0.4; }

.od-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 0;
}
.od-metric { display: flex; flex-direction: column; gap: 2px; }
.od-metric dt {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
}
.od-metric dd { margin: 0; font-size: 1.12rem; font-weight: 540; }
.od-note {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--text-3);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

@media (max-width: 820px) {
  .od-body { grid-template-columns: 1fr; }
}

/* ============================================================
   MISSION TAB
   ============================================================ */
.mission-panel { display: flex; flex-direction: column; gap: 16px; }

.mn-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.mn-controls label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-2);
}
.mn-controls select {
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--text);
  padding: 9px 11px;
  font-size: 0.9rem;
  min-width: 200px;
}
.mn-controls .primary-button,
.mn-controls .ghost-button { align-self: flex-end; }

.mn-table-wrap { max-height: 360px; overflow: auto; }
.mn-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.mn-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  padding: 6px 8px;
  border-bottom: 1px solid var(--line-strong);
  position: sticky;
  top: 0;
  background: var(--surface);
}
.mn-table td { padding: 5px 8px; border-bottom: 1px solid var(--line); }
.mn-cell {
  width: 100%;
  min-width: 70px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  padding: 7px 8px;
  font-size: 0.85rem;
}
.mn-cell:focus {
  outline: none;
  border-color: var(--accent-line);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.mn-fuel-cell {
  font-family: var(--font-mono);
  color: var(--text-2);
  white-space: nowrap;
}
.mn-remove {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text-3);
  width: 28px;
  height: 28px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.mn-remove:hover:not(:disabled) { color: var(--err); border-color: var(--err); }
.mn-remove:disabled { opacity: 0.3; cursor: not-allowed; }

.mn-status {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-3);
  margin: 0;
}

.mn-results {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 2fr);
  gap: 20px;
  align-items: start;
}
.mn-totals { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.mn-total { display: flex; flex-direction: column; gap: 2px; }
.mn-total dt {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
}
.mn-total dd { margin: 0; font-size: 1.3rem; font-weight: 560; }
.mn-chart-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
}
#missionCanvas { width: 100%; height: auto; display: block; }

@media (max-width: 820px) {
  .mn-results { grid-template-columns: 1fr; }
}

/* ============================================================
   CASE STUDIES TAB
   ============================================================ */
.case-study-panel { display: flex; flex-direction: column; gap: 18px; }

.cs-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 20px;
  align-items: start;
}

/* Engine rail (list) */
.cs-rail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 560px;
  overflow-y: auto;
  padding-right: 4px;
}
.cs-rail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  transition: background 0.18s var(--ease-out), border-color 0.18s var(--ease-out),
    transform 0.18s var(--ease-out);
}
.cs-rail-item:hover { background: var(--surface-3); border-color: var(--line-strong); }
.cs-rail-item.active {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  transform: translateX(2px);
}
.cs-rail-name { font-size: 0.92rem; font-weight: 560; letter-spacing: -0.01em; }
.cs-rail-sub {
  display: grid;
  grid-template-columns: 3em 1fr;   /* year column + BPR column align across all cards */
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-3);
  letter-spacing: 0.01em;
}
.cs-rail-sub .cs-yr { color: var(--text-2); }
.cs-rail-item.active .cs-rail-sub { color: var(--accent); }

/* Detail panel */
.cs-detail {
  display: block;
  padding: 22px 24px 24px;
}

.cs-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 4px;
}
.cs-detail-title { margin: 0; font-size: 1.5rem; letter-spacing: -0.02em; }
.cs-family { margin: 6px 0 0; color: var(--text-2); font-size: 0.88rem; }

.cs-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 18px;
  margin: 18px 0 0;
}
.cs-spec { display: flex; flex-direction: column; gap: 2px; }
.cs-spec dt {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
}
.cs-spec dd { margin: 0; font-size: 1.02rem; font-weight: 540; }

.cs-apps {
  margin: 16px 0 0;
  font-size: 0.86rem;
  color: var(--text-2);
  line-height: 1.5;
}
.cs-apps span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 3px;
}
/* Technical overview */
.cs-tech {
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
}
.cs-tech-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin: 0 0 10px;
}
.cs-tech p:not(.cs-tech-label) {
  margin: 0 0 12px;
  font-size: 0.92rem;
  line-height: 1.68;
  color: var(--text);
}
.cs-tech p:not(.cs-tech-label):first-of-type {
  border-left: 2px solid var(--accent-line);
  padding-left: 14px;
}
.cs-tech p:last-child { margin-bottom: 0; }
.cs-fullpage-link {
  display: inline-block;
  margin: 16px 0 0;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 540;
}
.cs-fullpage-link:hover { color: var(--accent-strong); text-decoration: underline; }
.cs-sim-link { margin-top: 14px; align-self: start; }
.cs-sim-note {
  margin: 8px 0 0;
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--text-3);
  max-width: 52ch;
}

@media (max-width: 820px) {
  .cs-layout { grid-template-columns: 1fr; }
  .cs-rail {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
  }
  .cs-rail-item { min-width: 180px; flex: 0 0 auto; }
  .cs-specs { grid-template-columns: 1fr 1fr; }
}
