@font-face {
  font-family: "Mokoto Demo";
  src: url("https://cdn.prod.website-files.com/65a11c29aa978cbe4f7931d2/65a12338be364acc1912d390_Mokoto%20Demo.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  --ink: #231f20;
  --green: #46d281;
  --paper: #ffffff;
  --fog: #f3f3f3;
  --slate: #586273;
  --line: #d0d5dd;
  --green-tint: #eaf8f0;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --page-width: 1440px;
  --page-gutter: clamp(16px, 4.45vw, 64px);
  --ease-ui: cubic-bezier(0.22, 1, 0.36, 1);
  --flow-arrow-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4' stroke='%23231f20' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --flow-arrow-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M8 3v10M4 9l4 4 4-4' stroke='%23231f20' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  font-weight: 425;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
strong {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

body.menu-open {
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 7px;
  background: var(--green);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

button {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--green) 70%, var(--ink));
  outline-offset: 3px;
}

:is(.button, .menu-toggle, .tab-button, .journey-step, .detail-nav a, .card-link, .text-link) {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.shell {
  width: min(100%, var(--page-width));
  margin: 0 auto;
  padding-inline: var(--page-gutter);
}

.announcement {
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
}

.announcement .shell {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.announcement a {
  color: var(--paper);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--paper) 45%, transparent);
  text-underline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 30px;
}

.wordmark {
  justify-self: start;
  font-family: "Mokoto Demo", "Instrument Sans", sans-serif;
  font-size: 29px;
  letter-spacing: 0.15em;
  line-height: 1;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  justify-self: center;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.2vw, 34px);
  color: var(--slate);
  font-size: 14px;
}

.nav-links a,
.footer-column a,
.text-link {
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"],
.footer-column a:hover,
.text-link:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  justify-self: end;
  gap: 10px;
}

.button {
  min-height: 40px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
  transition:
    transform 160ms var(--ease-ui),
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.button-light {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}

.button-green {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.nav-actions .button:not(.button-light),
.hero-actions .button:first-child,
.mobile-menu .button {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.section-dark .button-green,
.next-module .button-green,
.pilot-card .button-green {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.button:active,
.journey-step:not(.journey-step-static):active {
  transform: translateY(0) scale(0.985);
}

.menu-toggle,
.mobile-menu {
  display: none;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  width: 20px;
  height: 1.5px;
  display: block;
  background: var(--ink);
  content: "";
  transition: transform 160ms ease;
}

.menu-toggle span::before {
  transform: translateY(-6px);
}

.menu-toggle span::after {
  transform: translateY(5px);
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  transform: translateY(-1px) rotate(-45deg);
}

.page-hero {
  padding: clamp(76px, 8vw, 104px) 0 clamp(72px, 8vw, 104px);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(48px, 5vw, 76px);
  justify-items: center;
}

.page-hero-grid > .hero-panel {
  width: min(100%, 860px);
  min-height: 0;
}

.page-hero-grid > *,
.product-layout > *,
.card-grid > * {
  min-width: 0;
}

.modelling-hero-intro,
.simulation-hero-intro,
.optimisation-hero-intro,
.deployment-hero-intro,
.platform-hero-intro,
.page-hero-grid > :first-child {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: 0;
  text-align: center;
}

.modelling-hero-intro h1,
.simulation-hero-intro h1,
.optimisation-hero-intro h1,
.deployment-hero-intro h1,
.platform-hero-intro h1 {
  margin-bottom: 28px;
}

.modelling-hero-intro .hero-copy,
.simulation-hero-intro .hero-copy,
.optimisation-hero-intro .hero-copy,
.deployment-hero-intro .hero-copy,
.platform-hero-intro .hero-copy {
  max-width: 760px;
  margin-bottom: 0;
}

.modelling-hero-intro .hero-actions,
.simulation-hero-intro .hero-actions,
.optimisation-hero-intro .hero-actions,
.deployment-hero-intro .hero-actions,
.platform-hero-intro .hero-actions {
  margin-top: 34px;
}

.platform-hero {
  overflow: clip;
}

.platform-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(48px, 5vw, 76px);
  justify-items: center;
}

.platform-hero-visual {
  width: min(100%, 1160px);
  min-width: 0;
  margin-inline: auto;
}

.platform-hero-visual img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1024px) {
  .platform-hero-grid {
    gap: 40px;
  }

  .platform-hero-visual {
    width: min(100%, 860px);
  }
}

.modelling-hero-workflow {
  --modelling-chart-height: 438px;
}

.modelling-hero-workflow .window-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

/* Shared rows keep the heading, visual and workspace steady across tabs. */
.modelling-hero-workflow .window-body > .tab-panel {
  min-width: 0;
  display: grid;
  grid-column: 1;
  grid-row: 1 / span 3;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: subgrid;
  animation: none;
}

.modelling-hero-workflow .tab-panel[hidden] {
  visibility: hidden;
  /* MapLibre can override visibility on its attribution control. */
  opacity: 0;
  pointer-events: none;
}

.modelling-hero-workflow .tab-panel .analysis-heading {
  margin: 0 0 24px;
}

.modelling-hero-workflow .tab-panel > :nth-child(2) {
  align-self: start;
  margin-block: 0;
}

.modelling-hero-workflow .tab-panel .chart-preview {
  min-width: 0;
  width: 100%;
  min-height: var(--modelling-chart-height);
  height: var(--modelling-chart-height);
}

.modelling-hero-workflow .tab-panel .chart-preview > .exakt-chart-host {
  min-height: 0;
  height: 100%;
}

@media (min-width: 1025px) {
  .modelling-hero-workflow .tab-panel > .chart-preview {
    align-self: stretch;
    height: 100%;
  }
}

.modelling-hero-workflow .tab-panel > .geo-editor-layout {
  grid-row: 2 / 4;
  align-self: stretch;
  min-height: 0;
  height: 100%;
}

.modelling-hero-workflow .geo-editor-layout .model-geo-preview,
.modelling-hero-workflow .model-geo-preview .exakt-chart-host {
  min-height: 0;
  height: 100%;
}

@media (min-width: 768px) {
  .modelling-hero-workflow .model-interaction-panel > .model-interaction-preview {
    grid-column: 1;
    grid-row: 2 / 4;
    align-self: stretch;
    height: 100%;
  }

  .modelling-hero-workflow .model-interaction-panel > .model-interaction-help {
    grid-column: 1;
    grid-row: 2 / 4;
    align-self: start;
    justify-self: end;
    z-index: 1;
    max-width: calc(100% - 28px);
    margin: 12px 14px 0 0;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    line-height: 1.35;
    text-align: right;
    pointer-events: none;
  }
}

.modelling-hero-workflow,
.modelling-hero-workflow .product-window {
  scroll-margin-top: 88px;
}

.modelling-hero-workflow .tab-panel .modelling-method-note {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.modelling-hero-workflow .selection-gini-visual {
  padding: 0;
  background: var(--paper);
}

@media (max-width: 767px) {
  .modelling-hero-workflow .tab-list {
    grid-auto-columns: minmax(120px, 1fr);
  }
}

.home-hero {
  position: relative;
  overflow: clip;
  padding-bottom: clamp(72px, 8vw, 104px);
  background:
    radial-gradient(circle at 90% 18%, color-mix(in srgb, var(--line) 34%, transparent) 0, transparent 34%),
    var(--paper);
}

.home-hero .page-hero-grid {
  grid-template-columns: 1fr;
  gap: clamp(42px, 4.5vw, 58px);
}

.home-hero .page-hero-grid > :first-child {
  max-width: 1100px;
}

.home-hero-copy {
  width: 100%;
  margin-inline: auto;
  text-align: center;
}

.home-hero-copy .eyebrow {
  margin-inline: auto;
}

.home-hero-copy h1,
.home-hero-copy .hero-copy {
  margin-inline: auto;
}

.home-hero .home-hero-copy h1 {
  max-width: 1100px;
  font-size: clamp(52px, 5.2vw, 68px);
}

.home-hero-copy .hero-copy {
  max-width: 720px;
}

.home-hero-copy .hero-actions {
  justify-content: center;
}

.hero-stage {
  width: 100%;
  padding: clamp(14px, 2.4vw, 30px);
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: clamp(22px, 3vw, 34px);
  background: color-mix(in srgb, var(--fog) 82%, var(--paper));
}

.hero-stage .product-window {
  box-shadow: 0 2px 8px color-mix(in srgb, var(--ink) 5%, transparent);
}

.hero-capability-grid {
  margin-top: clamp(12px, 1.7vw, 20px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--line);
}

.hero-capability-grid a {
  min-height: 104px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  background: color-mix(in srgb, var(--paper) 94%, var(--fog));
  transition: background-color 160ms ease;
}

.hero-capability-grid span {
  color: var(--slate);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.hero-capability-grid strong {
  margin-top: 13px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
}

.hero-capability-grid small {
  margin-top: 4px;
  color: var(--slate);
  font-size: 12px;
  line-height: 1.35;
}

.home-hero .hero-product-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: clamp(22px, 4vw, 52px);
}

.eyebrow,
.section-kicker,
.micro-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 28px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--fog) 72%, var(--paper));
}

.page-hero .eyebrow {
  margin-inline: auto;
}

.page-hero h1 {
  max-width: 900px;
  margin: 0 auto 28px;
  font-size: clamp(48px, 5vw, 64px);
  font-weight: 450;
  letter-spacing: -0.03em;
  line-height: 1.01;
}

.hero-copy {
  max-width: 660px;
  margin: 0 0 34px;
  color: var(--slate);
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.55;
}

.page-hero .hero-copy {
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-hero .hero-actions {
  justify-content: center;
}

.hero-panel {
  min-height: 440px;
  padding: clamp(26px, 4vw, 42px);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--ink) 8%, transparent);
}

.hero-panel.green {
  border: 1px solid var(--line);
  background: var(--fog);
  color: var(--ink);
  box-shadow: none;
}

.hero-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.hero-panel > p:not(.section-kicker) {
  margin: 0;
  color: var(--line);
  font-size: 16px;
}

.hero-panel.green > p:not(.section-kicker) {
  color: var(--slate);
}

.panel-list {
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.panel-list li {
  min-height: 54px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid color-mix(in srgb, var(--slate) 60%, transparent);
  border-radius: var(--radius-sm);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

.panel-list strong {
  color: #c7cbd1;
  font-weight: 500;
}

.hero-panel.green .panel-list li {
  border-color: var(--line);
  background: var(--paper);
}

.hero-panel.green .panel-list strong {
  color: var(--ink);
}

.product-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink);
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--paper) 75%, transparent),
    0 2px 6px color-mix(in srgb, var(--ink) 4%, transparent);
}

.window-bar {
  min-height: 48px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    var(--paper),
    color-mix(in srgb, var(--fog) 55%, var(--paper))
  );
  color: var(--slate);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

.window-bar > span:first-child {
  display: inline-flex;
  align-items: center;
}

.window-bar > span:first-child::before {
  width: 27px;
  height: 8px;
  margin-right: 11px;
  flex: 0 0 auto;
  background: radial-gradient(circle, var(--line) 2px, transparent 2.5px) 0 50% / 9px 9px repeat-x;
  content: "";
}

.window-status {
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  background: #eef1f3;
  color: #4d5968;
}

.window-status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #98a2b3;
  content: "";
}

.window-body {
  padding: clamp(22px, 3vw, 32px);
}

.window-body h2,
.window-body h3 {
  margin: 0 0 8px;
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.window-body > p,
.tab-panel p {
  margin: 0 0 24px;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.55;
}

.hero-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(170px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.hero-product-grid .visual-box {
  margin: 0;
}

.hero-product-grid > * {
  min-width: 0;
}

.hero-product-grid .comparison-row {
  grid-template-columns: 1fr;
  gap: 3px;
  padding-block: 9px;
}

.hero-product-grid .comparison-row strong {
  justify-self: start;
}

.model-smoothing-panel .analysis-heading {
  margin-bottom: 20px;
}

.model-interaction-panel .analysis-heading,
.simulation-two-way-panel .analysis-heading {
  margin-bottom: 20px;
}

.chart-preview.model-smoothing-preview,
.chart-preview.simulation-one-way-preview {
  min-height: 438px;
  height: 438px;
  padding: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.model-smoothing-preview .exakt-chart-host,
.simulation-one-way-preview .exakt-chart-host {
  min-height: 420px;
  height: 420px;
}

.model-smoothing-preview .exakt-chart-host,
.model-smoothing-preview .exakt-chart-host > div,
.model-smoothing-preview .exakt-chart-host canvas,
.model-smoothing-preview .exakt-chart-host svg,
.model-smoothing-preview .chart-fallback,
.simulation-one-way-preview .exakt-chart-host,
.simulation-one-way-preview .exakt-chart-host > div,
.simulation-one-way-preview .exakt-chart-host canvas,
.simulation-one-way-preview .exakt-chart-host svg,
.simulation-one-way-preview .chart-fallback {
  overflow: hidden;
  border-radius: 8px;
}

.model-smoothing-fallback {
  place-items: center;
  color: var(--slate);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

.chart-preview.model-interaction-preview,
.chart-preview.simulation-two-way-preview {
  min-height: 438px;
  height: 438px;
  padding: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.model-interaction-preview .exakt-chart-host,
.simulation-two-way-preview .exakt-chart-host {
  min-height: 420px;
  height: 420px;
}

.model-interaction-preview .exakt-chart-host,
.model-interaction-preview .exakt-chart-host > div,
.model-interaction-preview .exakt-chart-host canvas,
.model-interaction-preview .chart-fallback,
.simulation-two-way-preview .exakt-chart-host,
.simulation-two-way-preview .exakt-chart-host > div,
.simulation-two-way-preview .exakt-chart-host canvas,
.simulation-two-way-preview .chart-fallback {
  overflow: hidden;
  border-radius: 8px;
}

.model-interaction-preview canvas,
.simulation-two-way-preview canvas {
  cursor: grab;
}

.model-interaction-preview canvas:active,
.simulation-two-way-preview canvas:active {
  cursor: grabbing;
}

.model-interaction-fallback,
.simulation-two-way-fallback {
  place-items: center;
  color: var(--slate);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

@media (pointer: coarse) {
  .model-interaction-preview .exakt-chart-host,
  .model-interaction-preview .exakt-chart-host > div,
  .model-interaction-preview canvas,
  .simulation-two-way-preview .exakt-chart-host,
  .simulation-two-way-preview .exakt-chart-host > div,
  .simulation-two-way-preview canvas {
    touch-action: pan-y;
  }
}

.model-interaction-help,
.simulation-two-way-help {
  margin: 10px 2px 0;
  color: var(--slate);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  text-align: right;
}

.model-interaction-help {
  font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
}

.tab-list {
  display: flex;
  gap: 5px;
  padding: 6px 8px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--fog) 72%, var(--paper));
}

.tab-button {
  min-height: 46px;
  padding: 0 17px;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--slate);
  cursor: pointer;
  font-size: 13px;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.tab-button[aria-selected="true"] {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 9%, transparent);
  font-weight: 500;
}

.tab-panel[hidden] {
  display: none;
}

.tab-panel:not([hidden]) {
  animation: panel-enter 180ms var(--ease-ui);
}

.platform-switcher {
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.platform-switcher-nav {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--fog) 48%, var(--paper));
}

.platform-switcher-tab {
  min-height: 112px;
  padding: 20px 24px;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 13px;
  align-content: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--slate);
  cursor: pointer;
  text-align: left;
  transition: background-color 160ms ease, color 160ms ease;
}

.platform-switcher-tab:last-child {
  border-bottom: 0;
}

.platform-switcher-tab::before {
  width: 3px;
  position: absolute;
  inset: 14px auto 14px 0;
  border-radius: 0 4px 4px 0;
  background: transparent;
  content: "";
}

.platform-switcher-tab > span {
  grid-row: 1 / 3;
  color: var(--slate);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.platform-switcher-tab > strong {
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.15;
}

.platform-switcher-tab > small {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.35;
}

.platform-switcher-tab[aria-selected="true"] {
  background: var(--paper);
  color: var(--ink);
}

.platform-switcher-tab[aria-selected="true"]::before {
  background: var(--ink);
}

.platform-switcher-tab[aria-selected="true"] > span {
  color: var(--ink);
}

.platform-switcher-panels {
  min-width: 0;
  background: color-mix(in srgb, var(--fog) 74%, var(--paper));
}

.platform-switcher-panel {
  min-height: 448px;
  padding: clamp(28px, 4vw, 52px);
  grid-template-columns: minmax(220px, 0.72fr) minmax(300px, 1.28fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}

.platform-switcher-panel:not([hidden]) {
  display: grid;
  animation: panel-enter 180ms var(--ease-ui);
}

.platform-switcher-copy {
  min-width: 0;
}

.platform-deployment-panel {
  grid-template-columns: minmax(220px, 0.72fr) minmax(300px, 1.28fr);
}

.platform-deployment-panel .platform-switcher-copy {
  max-width: 560px;
  width: 100%;
}

.deployment-flow-visual {
  min-width: 0;
  margin: 0;
}

.deployment-flow-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

.platform-deployment-flow {
  width: min(100%, 520px);
  justify-self: center;
}

.release-flow-visual {
  width: min(100%, 561px);
  max-height: 600px;
  margin: 0 auto;
}

.release-flow-visual img {
  max-height: 600px;
}

.platform-switcher-copy h3 {
  margin: 0 0 14px;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 450;
  letter-spacing: -0.026em;
  line-height: 1.06;
}

.platform-switcher-copy > p:not(.section-kicker) {
  margin: 0 0 24px;
  color: var(--slate);
}

.platform-switcher-copy .capability-list {
  margin-bottom: 20px;
}

.platform-switcher-panel > .product-window {
  min-width: 0;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--ink) 4%, transparent);
}

.platform-one-way-body {
  padding: 12px;
}

.chart-preview.simulation-one-way-preview.platform-one-way-preview,
.simulation-one-way-preview.platform-one-way-preview .exakt-chart-host {
  min-height: 320px;
  height: 320px;
}

.chart-preview.simulation-one-way-preview.platform-one-way-preview {
  padding: 0;
  border: 0;
  border-radius: 0;
}

.platform-dislocation-body {
  padding: 14px 16px 16px;
}

.platform-dislocation-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--slate);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.platform-dislocation-meta span:last-child {
  white-space: nowrap;
}

.platform-dislocation-body .platform-dislocation-note {
  margin: 0 0 0 4px;
  color: var(--slate);
  font-size: 11px;
  line-height: 1.4;
}

@media (min-width: 821px) {
  .platform-optimisation-panel {
    padding-inline: clamp(28px, 3vw, 40px);
    grid-template-columns: minmax(250px, 0.6fr) minmax(0, 1.4fr);
    column-gap: clamp(24px, 2.5vw, 36px);
  }

  .platform-optimisation-panel .platform-frontier-preview {
    min-height: 300px;
    padding: 20px;
    gap: 18px;
  }

  .platform-optimisation-panel .platform-frontier-metrics table {
    font-size: 11px;
  }

  .platform-optimisation-panel .platform-frontier-metrics th,
  .platform-optimisation-panel .platform-frontier-metrics td {
    padding: 11px 8px;
  }
}

@keyframes panel-enter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.product-copy h2 {
  margin: 0 0 20px;
  font-size: clamp(38px, 4.5vw, 58px);
  font-weight: 450;
  letter-spacing: -0.028em;
  line-height: 1.04;
}

.product-copy > p:not(.section-kicker) {
  margin: 0 0 26px;
  color: var(--slate);
  font-size: 17px;
  line-height: 1.62;
}

.product-copy > p:last-child {
  margin-bottom: 0;
}

.product-copy > p.note {
  margin: 18px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

.section-dark .product-copy > p:not(.section-kicker),
.section-dark .capability-list li,
.section-dark .note {
  color: var(--line);
}

.capability-list {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.capability-list li {
  padding: 12px 0 12px 22px;
  position: relative;
  border-bottom: 1px solid var(--line);
  color: var(--slate);
  font-size: 14px;
}

.capability-list li::before {
  width: 6px;
  height: 6px;
  position: absolute;
  top: 19px;
  left: 0;
  border-radius: 50%;
  background: #8b929c;
  content: "";
}

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

.mini-card {
  min-height: 116px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.mini-card span {
  display: block;
  color: var(--slate);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.mini-grid > .mini-card:first-child > span {
  color: #18734a;
}

.mini-grid > .mini-card:last-child > span {
  color: #b42318;
}

.mini-card strong {
  margin-top: 18px;
  display: block;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
}

.portfolio-preview {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--fog);
}

.sr-only {
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  position: absolute !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.explorer-body {
  padding: clamp(20px, 3vw, 30px);
}

.analysis-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.analysis-heading h3 {
  font-size: clamp(20px, 2.2vw, 28px);
}

.analysis-heading p {
  margin-bottom: 0;
}

.analysis-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.analysis-controls > span {
  min-width: 112px;
  min-height: 44px;
  padding: 7px 30px 7px 10px;
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.2;
}

.analysis-controls > span::after {
  position: absolute;
  top: 50%;
  right: 11px;
  color: #98a2b3;
  content: "⌄";
  transform: translateY(-54%);
}

.analysis-controls small {
  margin-bottom: 3px;
  display: block;
  color: var(--slate);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chart-preview {
  min-height: 390px;
  padding: 8px;
  position: relative;
  background: var(--paper);
}

.exakt-chart-host {
  width: 100%;
  height: 390px;
}

.chart-fallback {
  position: absolute;
  inset: 8px;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-radius: 7px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 71px, var(--line) 72px),
    var(--paper);
}

.chart-preview[data-exakt-chart-ready="true"] [data-exakt-chart-fallback] {
  display: none;
}

.double-lift-preview,
.double-lift-preview .exakt-chart-host,
.dislocation-preview,
.dislocation-preview .exakt-chart-host {
  min-height: 410px;
  height: 410px;
}

.dislocation-preview.platform-dislocation-preview,
.dislocation-preview.platform-dislocation-preview .exakt-chart-host {
  min-height: 260px;
  height: 260px;
}

.platform-dislocation-preview {
  padding: 0;
}

.platform-dislocation-preview .dislocation-fallback {
  inset: 0;
}

@media (max-width: 560px) {
  .platform-dislocation-window .window-status {
    display: none;
  }
}

.double-lift-panel .analysis-heading,
.dislocation-panel .analysis-heading,
.simulation-two-way-panel .analysis-heading {
  flex-direction: column;
}

.double-lift-panel .analysis-heading > div:first-child,
.dislocation-panel .analysis-heading > div:first-child,
.simulation-two-way-panel .analysis-heading > div:first-child {
  max-width: 720px;
}

.double-lift-panel .analysis-controls,
.dislocation-panel .analysis-controls,
.simulation-two-way-panel .analysis-controls {
  width: 100%;
}

.double-lift-panel .analysis-controls > span,
.dislocation-panel .analysis-controls > span,
.simulation-two-way-panel .analysis-controls > span {
  min-width: 0;
  flex: 1 1 0;
}

.double-lift-panel .double-lift-note,
.dislocation-panel .dislocation-note {
  margin: 12px 2px 0;
  color: var(--slate);
  font-size: 12px;
  line-height: 1.5;
}

.double-lift-panel .double-lift-note strong,
.dislocation-panel .dislocation-note strong {
  color: var(--ink);
  font-weight: 550;
}

.dislocation-fallback {
  padding: 26px 22px 38px 58px;
  align-items: end;
  background:
    repeating-linear-gradient(to bottom, transparent 0 61px, var(--line) 62px),
    var(--paper);
}

.dislocation-fallback-bars {
  height: 100%;
  display: flex;
  align-items: end;
  gap: 4px;
  border-bottom: 1px solid var(--slate-soft);
}

.dislocation-fallback-bars i {
  height: var(--height);
  min-width: 2px;
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: #46d281;
  opacity: 0.92;
}

.double-lift-fallback {
  padding: 20px 14px 10px;
  align-items: stretch;
  flex-direction: column;
  background: var(--paper);
}

.double-lift-fallback-legend {
  display: flex;
  justify-content: center;
  gap: 18px;
  color: var(--slate);
  font-size: 10px;
}

.double-lift-fallback-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.double-lift-fallback-legend span::before {
  width: 14px;
  height: 2px;
  background: currentColor;
  content: "";
}

.double-lift-fallback svg {
  width: 100%;
  min-height: 0;
  flex: 1;
}

.double-lift-grid line {
  stroke: var(--line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.double-lift-fallback polyline {
  fill: none;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.double-lift-fallback .is-actual {
  color: var(--ink);
  stroke: var(--ink);
}

.double-lift-fallback .is-proposed {
  color: #00a2c7;
  stroke: #00a2c7;
}

.double-lift-fallback .is-current {
  color: #de51a8;
  stroke: #de51a8;
}

.optimisation-window {
  box-shadow: 0 18px 52px color-mix(in srgb, var(--ink) 8%, transparent);
}

.optimisation-workspace {
  display: grid;
  grid-template-columns: minmax(360px, 0.74fr) minmax(0, 1.26fr);
}

.frontier-panel,
.frontier-scenarios {
  min-width: 0;
  padding: 22px;
}

.frontier-scenarios {
  border-left: 1px solid var(--line);
}

.optimisation-panel-heading {
  min-height: 58px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.optimisation-panel-heading h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.optimisation-panel-heading p {
  max-width: 490px;
  margin: 0;
  color: var(--slate);
  font-size: 12px;
  line-height: 1.45;
}

.frontier-run {
  padding: 6px 8px;
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
}

.frontier-run small {
  color: var(--slate);
  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.frontier-chart,
.frontier-chart .exakt-chart-host {
  min-height: 360px;
  height: 360px;
}

.frontier-chart {
  padding: 0;
}

.frontier-chart .chart-fallback {
  inset: 0;
  display: block;
  background: var(--paper);
}

.frontier-chart .chart-fallback svg {
  width: 100%;
  height: 100%;
  display: block;
  color: var(--slate);
  font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
}

.frontier-fallback-grid {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

.frontier-fallback-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
}

.frontier-fallback-points circle {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 1.5;
}

.frontier-fallback-points circle:first-child {
  fill: var(--green);
  stroke: var(--green);
}

.frontier-fallback-base {
  fill: #a7b0b4;
  stroke: var(--slate);
  stroke-width: 1.5;
}

.frontier-fallback-axis {
  fill: var(--slate);
  text-anchor: middle;
}

.frontier-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.frontier-table {
  width: 100%;
  min-width: 650px;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--ink);
  font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}

.frontier-table th,
.frontier-table td {
  min-width: 80px;
  padding: 11px 9px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease;
}

.frontier-table th:first-child,
.frontier-table td:first-child {
  width: 150px;
  min-width: 150px;
  text-align: left;
}

.frontier-table thead th {
  background: color-mix(in srgb, var(--fog) 72%, var(--paper));
  color: #3e4859;
  font-size: 10px;
  font-weight: 600;
}

.frontier-table tbody th {
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
}

.frontier-table :is(th, td):nth-child(2) {
  background: color-mix(in srgb, var(--fog) 42%, var(--paper));
}

.frontier-table [data-frontier-column].is-selected {
  background: var(--green-tint);
  color: #176b43;
}

.frontier-table button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: inherit;
  font-weight: inherit;
  text-align: right;
  white-space: nowrap;
}

.frontier-table button:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.frontier-table button:focus-visible {
  outline-width: 2px;
  outline-offset: 4px;
}

.frontier-swipe-note {
  display: none;
}

.platform-frontier-preview {
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.platform-frontier-preview .micro-label {
  margin: 0 0 10px;
  color: var(--slate);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.platform-frontier-chart,
.platform-frontier-metrics {
  min-width: 0;
}

.platform-frontier-chart {
  width: min(100%, 480px);
  margin-inline: auto;
}

.platform-frontier-plot,
.platform-frontier-plot .exakt-chart-host {
  min-height: 280px;
  height: 280px;
}

.platform-frontier-plot {
  padding: 0;
}

.platform-frontier-plot .chart-fallback {
  inset: 0;
  background: var(--paper);
}

.platform-frontier-chart .chart-fallback svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  color: var(--slate);
  font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 9px;
}

.platform-frontier-chart .frontier-fallback-grid,
.platform-frontier-chart .frontier-fallback-points circle,
.platform-frontier-chart .frontier-fallback-base {
  vector-effect: non-scaling-stroke;
}

.platform-frontier-chart .frontier-fallback-grid.is-minor {
  stroke: #f0f3f1;
}

.platform-frontier-chart .frontier-fallback-line {
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.platform-frontier-window .window-status {
  flex: 0 0 auto;
  white-space: nowrap;
}

.platform-frontier-chart .frontier-fallback-points circle,
.platform-frontier-chart .frontier-fallback-base {
  stroke-width: 1.2;
}

.platform-frontier-chart .frontier-fallback-points circle.is-selected {
  fill: var(--green);
  stroke: var(--green);
}

.platform-frontier-label {
  fill: var(--slate);
  font-size: 9px;
}

.platform-frontier-ticks {
  fill: var(--slate);
  font-size: 8.5px;
  text-anchor: middle;
}

.platform-frontier-ticks .is-y {
  text-anchor: end;
}

.platform-frontier-metrics table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.platform-frontier-metrics th,
.platform-frontier-metrics td {
  padding: 9px 7px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

.platform-frontier-metrics th:first-child {
  text-align: left;
}

.platform-frontier-metrics thead th {
  background: color-mix(in srgb, var(--fog) 72%, var(--paper));
  color: var(--slate);
  font-weight: 600;
}

.platform-frontier-metrics tbody th {
  color: var(--ink);
  font-weight: 500;
}

.platform-frontier-metrics .is-selected {
  background: var(--green-tint);
  color: #176b43;
}

.fallback-line {
  width: 80%;
  height: 120px;
  position: absolute;
  top: 62px;
  left: 10%;
  border-top: 3px solid #596579;
  border-radius: 45% 55% 20% 70%;
  transform: rotate(-5deg) skewY(-6deg);
}

.fallback-bars {
  height: 110px;
  padding: 0 10%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 9px;
  align-items: end;
}

.fallback-bars i {
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background: #d9dde3;
}

.geo-analysis-layout {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.geo-analysis-layout .portfolio-preview {
  margin-top: 0;
}

.geo-chart-preview .exakt-chart-host {
  min-height: 430px;
  height: 430px;
}

.geo-chart-preview {
  min-height: 0;
  height: auto;
  padding: 0;
  overflow: hidden;
  border-color: #30383d;
  background: #151a1d;
}

.geo-chart-preview .deck-map-host,
.geo-chart-preview .maplibregl-map,
.geo-chart-preview canvas {
  width: 100%;
  height: 100%;
}

.geo-chart-preview .deck-map-host {
  position: relative;
  overflow: hidden;
  background: #151a1d;
}

.geo-chart-preview canvas {
  display: block;
}

.geo-chart-preview .chart-fallback {
  inset: 0;
  z-index: 5;
  place-items: center;
  background: #151a1d;
  color: #dce5e1;
}

.geo-chart-preview .chart-fallback p {
  margin: 0;
  color: #aeb9bc;
  font-size: 12px;
}

.geo-inspector {
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 2fr);
  align-items: start;
  gap: 12px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.geo-inspector > div > span,
.geo-inspector > small {
  color: var(--slate);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.geo-inspector > div > strong {
  margin-top: 5px;
  display: block;
  font-size: 14px;
  line-height: 1.25;
}

.geo-inspector dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.geo-inspector dl div {
  min-width: 0;
  padding: 2px 12px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  border-left: 1px solid var(--line);
  font-size: 11px;
}

.geo-inspector dt {
  color: var(--slate);
}

.geo-inspector dd {
  margin: 0;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}

.geo-inspector > small {
  grid-column: 1 / -1;
}

.simulation-height-key {
  display: flex;
  align-items: center;
  gap: 7px;
}

.simulation-height-key i {
  width: 10px;
  height: 15px;
  display: block;
  border: 1px solid rgba(244, 248, 246, 0.72);
  background: rgba(216, 254, 181, 0.32);
  transform: skewY(-18deg);
}

.simulation-height-key strong {
  color: #dce5e1;
  font-size: 9px;
  font-weight: 500;
}

.analysis-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.analysis-table th,
.analysis-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.analysis-table th {
  color: var(--slate);
  font-weight: 450;
}

.table-status,
.winner-chip {
  padding: 4px 7px;
  display: inline-flex;
  border-radius: 999px;
  background: var(--green-tint);
  color: #126b3e;
  font-size: 10px;
  font-weight: 550;
  white-space: nowrap;
}

.table-status-warn {
  background: #fff1df;
  color: #8a4b12;
}

.auction-kpis {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 10px;
}

.auction-kpis > div {
  min-height: 94px;
  padding: 14px;
  border-right: 1px solid var(--line);
}

.auction-kpis > div:last-child {
  border-right: 0;
}

.auction-kpis span,
.auction-kpis small {
  display: block;
  color: var(--slate);
  font-size: 10px;
}

.auction-kpis strong {
  margin: 7px 0 2px;
  display: block;
  font-size: 20px;
  font-weight: 550;
}

.simulation-overview-window {
  margin-top: 32px;
  border-radius: var(--radius-md);
}

.portfolio-overview-section {
  scroll-margin-top: 130px;
}

.portfolio-overview-section > h2 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.simulation-overview-body {
  padding: clamp(20px, 3vw, 30px);
}

.simulation-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
}

.simulation-summary-card {
  min-width: 0;
  min-height: 128px;
  padding: 17px 18px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.simulation-summary-card:last-child {
  border-right: 0;
}

.simulation-summary-card > span {
  color: var(--slate);
  font-size: 11px;
}

.simulation-summary-card > strong {
  margin: 9px 0 auto;
  font-size: clamp(22px, 2.2vw, 29px);
  font-weight: 550;
  letter-spacing: -0.025em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.simulation-summary-card > div {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.simulation-summary-card small {
  overflow: hidden;
  color: var(--slate);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-delta {
  color: #4d5968;
  font-style: normal;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.metric-delta.is-positive {
  color: #18734a;
}

.metric-delta.is-caution {
  color: #95520f;
}

.portfolio-metrics-wrap {
  margin-top: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--line);
  border-radius: 11px;
  scrollbar-gutter: stable;
}

.portfolio-metrics-table {
  min-width: 850px;
  font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.portfolio-metrics-table th,
.portfolio-metrics-table td {
  padding: 11px 13px;
}

.portfolio-metrics-table thead th {
  background: color-mix(in srgb, var(--fog) 72%, var(--paper));
  color: var(--ink);
  font-weight: 550;
  white-space: nowrap;
}

.portfolio-metrics-table th:not(:first-child),
.portfolio-metrics-table td:not(:first-child) {
  text-align: right;
}

.portfolio-metrics-table tbody tr:not(.metrics-group-row) td:nth-child(4) {
  background: color-mix(in srgb, var(--fog) 64%, var(--paper));
  font-weight: 520;
}

.portfolio-metrics-table tbody tr:last-child td {
  border-bottom: 0;
}

.portfolio-metrics-table .metrics-group-row td {
  padding: 9px 13px;
  background: var(--fog);
  color: var(--slate);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.simulation-metrics-note {
  margin: 12px 2px 0;
  color: var(--slate);
  font-size: 11px;
}

.importance-comparison {
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.importance-comparison-header {
  min-height: 68px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.importance-comparison-header > div {
  display: grid;
  gap: 2px;
}

.importance-comparison-header span {
  font-size: 12px;
  font-weight: 550;
}

.importance-comparison-header small,
.importance-comparison-header > span:last-child {
  color: var(--slate);
  font-size: 10px;
  font-weight: 400;
}

.importance-comparison-header > span:last-child {
  white-space: nowrap;
}

.importance-comparison-scroll {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.importance-comparison-table {
  width: 100%;
  min-width: 520px;
  table-layout: fixed;
  font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.importance-comparison-table th,
.importance-comparison-table td {
  padding: 10px 12px;
}

.importance-comparison-table thead th {
  background: color-mix(in srgb, var(--fog) 72%, var(--paper));
  color: var(--ink);
  font-weight: 550;
  white-space: nowrap;
}

.importance-comparison-table thead th:first-child {
  width: 58px;
  text-align: right;
}

.importance-comparison-table thead th:nth-child(2) {
  width: 29%;
}

.importance-comparison-table thead th:nth-child(n + 3),
.importance-comparison-table tbody td:nth-child(n + 3) {
  text-align: right;
}

.importance-comparison-table tbody th {
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 400;
  text-align: left;
}

.importance-comparison-table tbody td:first-child {
  color: var(--slate);
  text-align: right;
}

.importance-comparison-table tbody tr:last-child > * {
  border-bottom: 0;
}

.importance-score {
  min-height: 27px;
  padding-inline: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 5px;
}

.importance-score i {
  width: var(--importance);
  position: absolute;
  inset: 0 auto 0 0;
  background: color-mix(in srgb, #687181 18%, transparent);
}

.importance-comparison-table td:nth-child(4) .importance-score i {
  background: color-mix(in srgb, #00a2c7 18%, transparent);
}

.importance-score strong {
  position: relative;
  z-index: 1;
  font-size: 10px;
  font-weight: 500;
}

.importance-empty {
  padding-right: 8px;
  color: #98a2b3;
}

.importance-comparison-note {
  margin: 0;
  padding: 11px 18px;
  border-top: 1px solid var(--line);
  color: var(--slate);
  font-size: 10px;
}

.portfolio-preview .micro-label {
  margin: 0 0 14px;
  color: var(--slate);
}

.metric-bar-row {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(100px, 0.7fr) minmax(120px, 1.3fr) minmax(110px, 0.8fr);
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.metric-bar-row:last-child {
  border-bottom: 0;
}

.metric-bar-row strong {
  font-weight: 500;
}

.metric-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.metric-track > span {
  width: var(--metric-value);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: #7f8996;
}

.matrix-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.matrix-preview span {
  min-height: 54px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: color-mix(in srgb, var(--green) var(--level), var(--paper));
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.auction-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
}

.auction-table th,
.auction-table td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.auction-table th {
  color: var(--slate);
  font-weight: 400;
}

.auction-table .selected-cell {
  color: var(--ink);
  font-weight: 500;
}

.note {
  margin: 18px 0 0;
  color: var(--slate);
  font-size: 12px;
}

.lineage {
  display: grid;
  gap: 30px;
}

.lineage::before {
  display: none;
}

.lineage-node {
  min-height: 54px;
  padding: 0 14px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

.lineage-node:not(:last-child)::before {
  width: 2px;
  height: 30px;
  position: absolute;
  bottom: -31px;
  left: 50%;
  z-index: 1;
  background: var(--line);
  transform: translateX(-50%);
  content: "";
}

.lineage-node:not(:last-child)::after {
  width: 24px;
  height: 24px;
  position: absolute;
  bottom: -16px;
  left: 50%;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--flow-arrow-down) center / 14px 14px no-repeat var(--paper);
  content: "";
  transform: translate(-50%, 50%);
}

.lineage-node strong {
  padding: 4px 7px;
  border-radius: 999px;
  background: #eef1f3;
  color: #4d5968;
  font-weight: 500;
}

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

.journey-step {
  min-height: 178px;
  padding: 22px;
  grid-column: span 3;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  transition: background-color 160ms ease, transform 160ms var(--ease-ui);
}

.journey-step:nth-child(n + 5) {
  grid-column: span 4;
}

.data-node:not(:last-child)::before {
  width: 32px;
  height: 2px;
  position: absolute;
  top: 50%;
  right: -33px;
  z-index: 1;
  background: var(--line);
  content: "";
  transform: translateY(-50%);
}

.journey-step::after {
  width: 30px;
  height: 30px;
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--flow-arrow-right) center / 18px 18px no-repeat var(--paper);
  content: "";
}

.journey-step-static::after {
  content: none;
}

@media (min-width: 821px) and (prefers-reduced-motion: no-preference) {
  .journey-grid.journey-scroll-motion {
    overflow: clip;
    overflow-clip-margin: 6px;
  }

  .journey-grid.journey-scroll-motion .journey-step:nth-child(-n + 4) {
    opacity: var(--journey-top-opacity, 1);
    translate: var(--journey-top-shift, 0px) 0;
  }

  .journey-grid.journey-scroll-motion .journey-step:nth-child(n + 5) {
    opacity: var(--journey-bottom-opacity, 1);
    translate: var(--journey-bottom-shift, 0px) 0;
  }
}

.journey-step span {
  margin-bottom: 16px;
  display: block;
  color: var(--slate);
  font-family: "IBM Plex Mono", monospace;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
}

.journey-step strong {
  margin-top: auto;
  display: block;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.journey-step small {
  margin-top: 8px;
  min-height: 2.8em;
  display: block;
  color: var(--slate);
  font-size: 13px;
  line-height: 1.4;
}

.journey-step:nth-child(even) {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.journey-step:nth-child(even) span,
.journey-step:nth-child(even) small {
  color: var(--line);
}

.journey-step:nth-child(even)::after {
  border-color: var(--paper);
  background-color: var(--paper);
}

.geo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.geo-cell {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: color-mix(in srgb, var(--green) var(--strength), var(--fog));
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
}

.range-row {
  margin-top: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  color: var(--slate);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.range-track {
  height: 6px;
  position: relative;
  border-radius: 999px;
  background: var(--line);
}

.range-track::after {
  width: 62%;
  height: 6px;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 999px;
  background: #7f8996;
  content: "";
}

.geo-editor-layout {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 12px;
}

.geo-editor-layout .portfolio-preview {
  margin-top: 0;
}

.model-geo-preview .exakt-chart-host {
  min-height: 430px;
  height: 430px;
}

.model-geo-preview {
  min-height: 0;
  height: auto;
  padding: 0;
  overflow: hidden;
  border-color: #30383d;
  background: #151a1d;
}

.model-geo-preview .deck-map-host,
.model-geo-preview .maplibregl-map,
.model-geo-preview canvas {
  width: 100%;
  height: 100%;
}

.model-geo-preview .deck-map-host {
  position: relative;
  overflow: hidden;
  background: #151a1d;
}

.model-geo-preview canvas {
  display: block;
}

.model-geo-preview .maplibregl-ctrl-bottom-right {
  bottom: 48px;
}

.model-geo-preview .maplibregl-ctrl-attrib {
  border: 1px solid rgba(220, 229, 225, 0.16);
  border-radius: 5px;
  background: rgba(21, 26, 29, 0.84);
  color: #98a6aa;
  font-family: "Instrument Sans", sans-serif;
  font-size: 9px;
}

.model-geo-preview .maplibregl-ctrl-attrib a {
  color: #b9c4c7;
}

.model-geo-preview .maplibregl-ctrl-attrib-button {
  filter: invert(1);
  opacity: 0.72;
}

.model-geo-preview .chart-fallback {
  inset: 0;
  place-items: center;
  background:
    radial-gradient(circle at 34% 42%, rgba(73, 227, 206, 0.3) 0 6px, transparent 7px),
    radial-gradient(circle at 56% 62%, rgba(254, 173, 84, 0.36) 0 10px, transparent 11px),
    radial-gradient(circle at 67% 33%, rgba(216, 254, 181, 0.26) 0 8px, transparent 9px),
    #151a1d;
  color: #dce5e1;
}

.model-geo-preview .chart-fallback p {
  margin: 0;
  color: #aeb9bc;
  font-size: 12px;
}

.deck-map-toolbar,
.deck-map-status,
.deck-map-legend {
  position: absolute;
  z-index: 4;
  border: 1px solid rgba(220, 229, 225, 0.2);
  background: rgba(21, 26, 29, 0.88);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
}

.deck-map-toolbar {
  top: 12px;
  left: 12px;
  padding: 3px;
  display: flex;
  gap: 2px;
  border-radius: 8px;
}

.deck-map-toolbar button {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #aeb9bc;
  font: 500 11px/1 "Instrument Sans", sans-serif;
}

.deck-map-toolbar button[aria-pressed="true"] {
  background: #eef3f0;
  color: #20272a;
}

.deck-map-status {
  top: 12px;
  right: 12px;
  max-width: calc(100% - 260px);
  padding: 8px 10px;
  display: grid;
  gap: 2px;
  border-radius: 7px;
  color: #dce5e1;
  font-size: 10px;
}

.deck-map-status span:last-child {
  color: #98a6aa;
  font-size: 9px;
}

.deck-map-legend {
  right: 12px;
  bottom: 12px;
  left: 12px;
  min-height: 38px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 7px;
  color: #b9c4c7;
  font-size: 9px;
}

.deck-factor-key,
.deck-exposure-key {
  display: flex;
  align-items: center;
  gap: 7px;
}

.deck-factor-key i {
  width: 118px;
  height: 7px;
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, #0198bd, #49e3ce, #d8feb5, #feedb1, #fead54, #d1374e);
}

.model-geo-preview[data-deck-mode="raw"] .deck-factor-key i {
  width: 8px;
  min-width: 8px;
  height: 8px;
  flex: 0 0 8px;
  background: #49e3ce;
}

.model-geo-preview[data-deck-mode="raw"] .deck-exposure-key {
  display: none;
}

.deck-exposure-key i {
  display: block;
  border: 1px solid rgba(244, 248, 246, 0.8);
  border-radius: 50%;
  background: rgba(216, 254, 181, 0.42);
}

.deck-exposure-key strong {
  color: #dce5e1;
  font-size: 9px;
  font-weight: 500;
}

.deck-dot-small {
  width: 2px;
  height: 2px;
}

.deck-dot-large {
  width: 6px;
  height: 6px;
}

.smoothing-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.smoothing-panel .package-pane-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
}

.smoothing-control {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.smoothing-control > div,
.smoothing-control small,
.smoothing-panel dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.smoothing-control > div {
  font-size: 11px;
}

.smoothing-control > div strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.smoothing-control > i {
  height: 5px;
  margin: 12px 0 8px;
  position: relative;
  display: block;
  border-radius: 999px;
  background: #dfe3e7;
}

.smoothing-control > i::before {
  width: var(--position);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: #687181;
  content: "";
}

.smoothing-control > i::after {
  width: 13px;
  height: 13px;
  position: absolute;
  top: 50%;
  left: var(--position);
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: #4d5968;
  box-shadow: 0 0 0 1px #87909d;
  content: "";
  transform: translate(-50%, -50%);
}

.smoothing-control small {
  color: var(--slate);
  font-size: 8px;
}

.smoothing-control small b {
  color: var(--ink);
  font-weight: 500;
}

.smoothing-panel dl {
  margin: 14px 0;
}

.smoothing-panel dl div {
  min-height: 30px;
  font-size: 10px;
}

.smoothing-panel dt {
  color: var(--slate);
}

.smoothing-panel dd {
  margin: 0;
  font-weight: 550;
}

.smoothing-refresh {
  width: 100%;
  min-height: 34px;
  padding: 0 12px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: var(--ink);
  color: var(--paper);
  font-family: inherit;
  font-size: 10px;
  font-weight: 500;
}

.constraint-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  list-style: none;
}

.constraint-list li {
  min-height: 50px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

.constraint-list strong {
  padding: 4px 7px;
  border-radius: 999px;
  background: #eef1f3;
  color: #4d5968;
  font-weight: 500;
}

.table-scroll {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
}

.strategy-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
}

.strategy-table th,
.strategy-table td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.strategy-table th {
  color: var(--slate);
  font-weight: 400;
}

.strategy-table .selected-cell {
  background: var(--fog);
  color: var(--ink);
}

.model-branch-layout {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.model-tree-panel,
.candidate-evidence {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.model-tree-panel {
  padding: 12px;
}

.model-tree-heading,
.candidate-evidence-heading {
  min-height: 32px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  color: var(--slate);
  font-size: 11px;
  font-weight: 600;
}

.model-tree-heading {
  padding: 0 5px 10px;
  border-bottom: 1px solid var(--line);
}

.model-tree-heading small,
.candidate-evidence-heading small,
.model-tree-meta,
.model-tree-copy small {
  color: var(--slate);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  font-weight: 400;
}

.model-tree-list,
.model-tree-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.model-tree-list {
  padding-top: 8px;
}

.model-tree-list ul {
  margin-left: 9px;
  padding-left: 15px;
  position: relative;
  border-left: 1px solid #d8dde3;
}

.model-tree-list ul > li {
  position: relative;
}

.model-tree-list ul > li::before {
  width: 11px;
  position: absolute;
  top: 17px;
  left: -15px;
  border-top: 1px solid #d8dde3;
  content: "";
}

.model-tree-item {
  min-height: 34px;
  padding: 5px 6px;
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  border-radius: 6px;
  color: var(--ink);
}

.model-tree-item.is-selected {
  background: color-mix(in srgb, #00a2c7 10%, var(--paper));
}

.model-tree-root {
  min-height: 38px;
}

.model-tree-copy {
  min-width: 0;
}

.model-tree-copy strong,
.model-tree-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-tree-copy strong {
  font-size: 11px;
  font-weight: 500;
}

.model-tree-icon {
  width: 16px;
  height: 16px;
  position: relative;
  display: inline-block;
  color: #00a2c7;
}

.model-tree-icon-model::before,
.model-tree-icon-model::after {
  width: 8px;
  height: 11px;
  position: absolute;
  border: 1.25px solid currentColor;
  border-radius: 1px;
  content: "";
  transform: skewY(-27deg);
}

.model-tree-icon-model::before {
  top: 3px;
  left: 1px;
  opacity: 0.55;
}

.model-tree-icon-model::after {
  top: 1px;
  left: 5px;
  background: var(--paper);
}

.model-tree-item.is-selected .model-tree-icon-model::after,
.model-tree-icon-model.is-filled::after {
  background: currentColor;
}

.model-tree-icon-interaction {
  color: #8141e8;
}

.model-tree-icon-interaction::before {
  width: 10px;
  height: 10px;
  position: absolute;
  top: 3px;
  left: 3px;
  border: 1.2px solid currentColor;
  border-radius: 2px;
  content: "";
  transform: rotate(45deg);
}

.model-tree-icon-interaction::after {
  width: 3px;
  height: 3px;
  position: absolute;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 9px 0 0 currentColor, 0 9px 0 currentColor, 9px 9px 0 currentColor;
  content: "";
}

.model-tree-icon-geo {
  border: 1.25px solid currentColor;
  border-radius: 50%;
  color: #2fbd78;
}

.model-tree-icon-geo::before {
  position: absolute;
  inset: 2px 4px;
  border-right: 1px solid currentColor;
  border-left: 1px solid currentColor;
  border-radius: 50%;
  content: "";
}

.model-tree-icon-geo::after {
  position: absolute;
  top: 7px;
  right: 1px;
  left: 1px;
  border-top: 1px solid currentColor;
  content: "";
}

.selection-gini-visual,
.incremental-tree-visual {
  padding: 0;
  overflow: hidden;
  background: var(--paper);
}

.selection-gini-heading,
.incremental-tree-heading {
  min-height: 54px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.selection-gini-heading span,
.incremental-tree-heading span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.selection-gini-heading small,
.incremental-tree-heading small {
  color: var(--slate);
  font-size: 10px;
}

.selection-gini-chart {
  min-height: 334px;
  height: 334px;
  padding: 12px;
  overflow: hidden;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: var(--paper);
}

.selection-gini-chart .exakt-chart-host {
  min-height: 310px;
  height: 310px;
}

.selection-gini-chart .exakt-chart-host,
.selection-gini-chart .exakt-chart-host > div,
.selection-gini-chart .exakt-chart-host canvas,
.selection-gini-chart .exakt-chart-host svg,
.selection-gini-chart .chart-fallback {
  overflow: hidden;
  border-radius: 10px;
}

.selection-gini-chart .chart-fallback {
  inset: 0;
  display: block;
  background: var(--paper);
}

.selection-gini-fallback svg {
  width: 100%;
  height: 100%;
  display: block;
  color: var(--slate);
  font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
}

.selection-gini-fallback g:first-child path {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

.selection-gini-fallback > svg > path {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.selection-gini-fallback circle {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 1.5;
}

.selection-gini-fallback circle.is-selected {
  fill: var(--green);
  stroke: var(--green);
}

.incremental-tree-list {
  padding: 12px 16px 16px;
}

.incremental-tree-list .model-tree-item {
  min-height: 46px;
  padding: 7px 8px;
}

.incremental-tree-list .model-tree-copy strong {
  font-size: 12px;
}

.incremental-tree-list .model-tree-copy small {
  margin-top: 2px;
}

.model-tree-decision {
  padding: 4px 7px;
  border-radius: 5px;
  background: #eef1f3;
  color: #4d5968;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.model-tree-decision.is-selected {
  background: var(--green-tint);
  color: #126b3e;
}

.candidate-evidence-heading {
  min-height: 44px;
  padding: 0 13px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.candidate-evidence .candidate-table {
  margin-top: 0;
  min-width: 610px;
}

.candidate-evidence .candidate-summary {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.candidate-table {
  margin-top: 18px;
  font-size: 12px;
}

.candidate-table th,
.candidate-table td {
  height: 48px;
  padding-inline: 12px;
}

.candidate-table td small {
  margin-left: 4px;
  color: var(--slate);
  font-size: 9px;
}

.candidate-table .candidate-selected td {
  background: var(--fog);
}

.branch-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 550;
}

.branch-name i {
  width: 7px;
  height: 7px;
  border: 1px solid #8b929c;
  border-radius: 50%;
  background: var(--paper);
}

.candidate-selected .branch-name i {
  border-color: var(--ink);
  background: var(--ink);
}

.decision-chip {
  padding: 4px 8px;
  display: inline-flex;
  border-radius: 999px;
  background: var(--green-tint);
  color: #126b3e;
  font-size: 10px;
  font-weight: 550;
}

.decision-review {
  background: #fff1df;
  color: #8a4b12;
}

.candidate-summary {
  min-height: 62px;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(130px, 0.4fr) 1fr;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 9px 9px;
  background: var(--fog);
  font-size: 11px;
}

.candidate-summary span {
  color: var(--slate);
}

.candidate-summary strong {
  font-weight: 500;
}

@media (max-width: 900px) {
  .model-branch-layout {
    grid-template-columns: 1fr;
  }

  .model-tree-panel {
    padding: 14px;
  }
}

.trace-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

.trace-list li {
  min-height: 46px;
  padding: 0 13px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.trace-list li:not(:last-child)::after,
.process-stack .comparison-row:not(:last-child)::after {
  width: 7px;
  height: 7px;
  position: absolute;
  bottom: -6px;
  left: 20px;
  z-index: 2;
  border-right: 2px solid #98a2b3;
  border-bottom: 2px solid #98a2b3;
  content: "";
  transform: rotate(45deg);
}

.trace-list li:not(:last-child)::before,
.process-stack .comparison-row:not(:last-child)::before {
  width: 2px;
  height: 8px;
  position: absolute;
  bottom: -8px;
  left: 23px;
  z-index: 1;
  background: #98a2b3;
  content: "";
}

.process-stack .comparison-row {
  position: relative;
}

.trace-list .trace-warning {
  background: #fff1e8;
  color: #9f431c;
}

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

.data-node {
  min-height: 150px;
  padding: 20px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.data-node:not(:last-child)::after {
  width: 24px;
  height: 24px;
  position: absolute;
  top: 50%;
  right: -28px;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--flow-arrow-right) center / 14px 14px no-repeat var(--paper);
  content: "";
  transform: translateY(-50%);
}

.data-node span {
  color: var(--slate);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.data-node strong {
  margin-top: 26px;
  display: block;
  font-size: 20px;
  font-weight: 500;
}

.proof-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--line);
}

.proof-item {
  padding: clamp(28px, 4vw, 46px);
  background: var(--paper);
}

.proof-item h3 {
  margin: 0 0 12px;
  font-size: 25px;
  font-weight: 500;
}

.proof-item p {
  margin: 0;
  color: var(--slate);
}

.technical-note {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.technical-note summary {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}

.technical-note summary::-webkit-details-marker {
  display: none;
}

.technical-note summary::after {
  width: 28px;
  height: 28px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "+";
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400;
}

.technical-note[open] summary::after {
  content: "−";
}

.technical-note p {
  padding: 0 18px 18px;
  margin: 0;
  color: var(--slate);
  font-size: 14px;
}

.section {
  padding: clamp(72px, 8vw, 104px) 0;
}

main > .section:not(.section-fog):not(.section-dark)
  + .section:not(.section-fog):not(.section-dark) {
  padding-top: 0;
}

.section-fog {
  background: var(--fog);
}

.section-dark {
  background: var(--ink);
  color: var(--paper);
}

.section-intro {
  max-width: 760px;
  margin-bottom: clamp(44px, 5vw, 64px);
}

.split-intro {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  column-gap: clamp(48px, 8vw, 120px);
  align-items: end;
}

.split-intro .section-kicker {
  grid-column: 1 / -1;
}

.split-intro .section-title {
  max-width: 760px;
  margin-bottom: 0;
}

.split-intro .section-copy {
  padding-bottom: 4px;
}

.section-kicker {
  margin: 0 0 22px;
  color: var(--slate);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-dark .section-kicker,
.card-dark .section-kicker {
  color: #c7cbd1;
}

.section-title {
  margin: 0 0 22px;
  font-size: clamp(38px, 4.5vw, 56px);
  font-weight: 450;
  letter-spacing: -0.028em;
  line-height: 1.04;
}

.section-copy {
  max-width: 690px;
  margin: 0;
  color: var(--slate);
  font-size: 18px;
  line-height: 1.6;
}

.section-dark .section-copy {
  color: var(--line);
}

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

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.problem-item {
  min-height: 220px;
  padding: clamp(28px, 4vw, 48px);
}

.problem-item:nth-child(odd) {
  padding-left: 0;
  border-right: 1px solid var(--line);
}

.problem-item:nth-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}

.problem-item > span {
  color: var(--slate);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

.problem-item h3 {
  max-width: 460px;
  margin: 34px 0 12px;
  font-size: clamp(25px, 2.5vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.problem-item p {
  max-width: 540px;
  margin: 0;
  color: var(--slate);
}

.card {
  min-height: 280px;
  padding: clamp(26px, 3.5vw, 40px);
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  transition: border-color 180ms ease, transform 180ms var(--ease-ui), box-shadow 180ms ease;
}

.card:has(.card-link) {
  padding-right: clamp(72px, 7vw, 90px);
  cursor: pointer;
}

.card:has(.card-link:focus-visible) {
  outline: 3px solid color-mix(in srgb, var(--green) 70%, var(--ink));
  outline-offset: 3px;
}

.card.third {
  grid-column: span 4;
}

.card.half {
  grid-column: span 6;
}

.card.wide {
  grid-column: span 7;
}

.card.narrow {
  grid-column: span 5;
}

.card-dark {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.card-green {
  background: var(--fog);
}

.card h2,
.card h3 {
  margin: 0 0 16px;
  font-size: clamp(25px, 2.5vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.card p {
  margin: 0 0 24px;
  color: var(--slate);
  font-size: 16px;
}

.card > p:last-child {
  margin-bottom: 0;
}

.modelling-problem-grid {
  gap: 20px;
}

.modelling-problems .section-intro,
.modelling-solution .section-intro {
  margin-bottom: 32px;
}

.modelling-problem-grid > .modelling-problem-card {
  grid-column: span 4;
  min-height: 440px;
  padding: 8px;
  border-radius: 24px;
  color: var(--ink);
}

.modelling-problem-card-inner {
  min-width: 0;
  padding: 24px;
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e2e2;
  border-radius: 16px;
  background: #fff;
}

.modelling-problem-art {
  width: calc(100% + 48px);
  aspect-ratio: 11 / 10;
  margin: -24px -24px 0;
  align-self: stretch;
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
}

.modelling-problem-art img {
  width: 100%;
  height: auto;
  display: block;
}

.img-hover-zoom {
  --scale: 1;
  --transition-duration: 250ms;
  scale: var(--scale);
  transition:
    scale var(--transition-duration) ease-in-out,
    border-color 180ms ease,
    transform 180ms var(--ease-ui),
    box-shadow 180ms ease;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .modelling-problem-card.img-hover-zoom:hover {
    --scale: 1.1;
    z-index: 2;
  }
}

.modelling-problem-card:first-child .modelling-problem-art {
  -webkit-mask-image: linear-gradient(to bottom, #000 76%, rgba(0, 0, 0, 0.85) 87%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 76%, rgba(0, 0, 0, 0.85) 87%, transparent 100%);
}

.modelling-problem-card:nth-child(2) .modelling-problem-art {
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, rgba(0, 0, 0, 0.9) 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 78%, rgba(0, 0, 0, 0.9) 86%, transparent 100%);
}

.modelling-problem-card:last-child .modelling-problem-art {
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, rgba(0, 0, 0, 0.7) 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 58%, rgba(0, 0, 0, 0.7) 78%, transparent 100%);
}

.modelling-problem-card h3 {
  margin: 24px 0 12px;
  font-size: clamp(24px, 2.2vw, 28px);
}

.modelling-problem-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .modelling-problem-grid > .modelling-problem-card {
    grid-column: 1 / -1;
    min-height: 0;
    width: min(100%, 480px);
    justify-self: center;
  }
}

.card-dark p {
  color: var(--line);
}

.card-link {
  min-height: 44px;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
}

.card-link::before {
  position: absolute;
  inset: 0;
  content: "";
}

.card-link::after,
.text-link::after {
  margin-left: 8px;
  content: "→";
  display: inline-block;
  transition: transform 160ms var(--ease-ui);
}

.card-link::after {
  width: 38px;
  height: 38px;
  margin: 0;
  position: absolute;
  top: 24px;
  right: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  content: "↗";
}

.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

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

.decision-step {
  min-height: 245px;
  padding: 28px 24px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.decision-step:not(:last-child)::after {
  width: 30px;
  height: 30px;
  position: absolute;
  top: 50%;
  right: -31px;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--flow-arrow-right) center / 20px 20px no-repeat var(--paper);
  content: "";
  transform: translateY(-50%);
}

.decision-step:last-child {
  border-right: 1px solid var(--line);
}

.step-number {
  margin-bottom: 50px;
  display: block;
  color: var(--slate);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

.decision-step h3 {
  margin: 0 0 10px;
  font-size: 23px;
  line-height: 1.12;
}

.decision-step p {
  margin: 0;
  color: var(--slate);
  font-size: 14px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(46px, 8vw, 120px);
  align-items: start;
}

.detail-nav {
  position: sticky;
  top: 126px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.detail-nav h2 {
  margin: 0 0 18px;
  font-size: 18px;
}

.detail-nav a {
  padding: 11px 0;
  display: block;
  border-top: 1px solid var(--line);
  color: var(--slate);
  font-size: 14px;
}

.detail-nav a[aria-current="location"] {
  padding-left: 12px;
  box-shadow: inset 3px 0 var(--ink);
  color: var(--ink);
  font-weight: 500;
}

.detail-content article {
  padding: 0 0 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 130px;
}

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

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

.detail-content article:last-child {
  margin: 0;
  padding: 0;
  border-bottom: 0;
}

.detail-content h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 3.7vw, 46px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.detail-content p {
  margin: 0 0 18px;
  color: var(--slate);
  font-size: 17px;
  line-height: 1.65;
}

.simulation-auction-card {
  min-height: 0;
  margin-top: 28px;
}

.detail-content .simulation-auction-card p {
  color: var(--line);
  font-size: 16px;
}

.detail-content .simulation-auction-card .section-kicker {
  color: #c7cbd1;
}

.lookup-table-frame {
  width: min(100%, 900px);
  margin: 28px auto 0;
  overflow-x: auto;
  border: 1px solid #484b57;
  border-radius: var(--radius-sm);
  background: #2e313b;
  scrollbar-color: #676c7b #2e313b;
}

.lookup-table {
  width: 100%;
  min-width: 590px;
  border-collapse: collapse;
  color: #f4f5f7;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.lookup-age-column { width: 34%; }
.lookup-frequency-column { width: 49%; }
.lookup-severity-column { width: 17%; }

.lookup-table th,
.lookup-table td {
  padding: 10px 11px;
  border-bottom: 1px solid #383b46;
  text-align: left;
  white-space: nowrap;
}

.lookup-table thead th {
  background: #292c35;
  color: #bec3d0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.lookup-table tbody th {
  font-weight: 400;
}

.lookup-table tbody tr:first-child {
  background: #373a45;
}

.lookup-table tbody tr:last-child > * {
  border-bottom: 0;
}

.monitoring-detail-trace-open {
  cursor: pointer;
}

.fact-list {
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.fact-list li {
  padding: 16px 0;
  display: grid;
  grid-template-columns: minmax(140px, 0.38fr) 1fr;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.fact-list strong {
  font-weight: 500;
}

.fact-list span {
  color: var(--slate);
}

.visual-box {
  margin-top: 30px;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: var(--radius-md);
  background: var(--fog);
}

.lineage-layout {
  margin-top: clamp(44px, 6vw, 70px);
}

.panel-list strong,
.trace-list strong {
  padding: 4px 7px;
  border-radius: 999px;
  background: #eef1f3;
  color: #4d5968;
  font-weight: 500;
}

@media (hover: hover) and (pointer: fine) {
  .hero-capability-grid a:hover,
  .platform-switcher-tab:hover {
    background: var(--fog);
  }

  .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--ink) 14%, transparent);
  }

  .button-light:hover {
    background: var(--fog);
  }

  .button-green:hover,
  .nav-actions .button:not(.button-light):hover,
  .hero-actions .button:first-child:hover,
  .mobile-menu .button:hover {
    border-color: #3a3637;
    background: #3a3637;
    color: var(--paper);
  }

  .section-dark .button-green:hover,
  .next-module .button-green:hover,
  .pilot-card .button-green:hover {
    border-color: var(--fog);
    background: var(--fog);
    color: var(--ink);
  }

  .tab-button:hover {
    background: color-mix(in srgb, var(--paper) 72%, transparent);
    color: var(--ink);
  }

  .journey-step:not(.journey-step-static):hover {
    background: var(--fog);
  }

  .journey-step:nth-child(even):hover {
    border-color: #3a3637;
    background: #3a3637;
  }

  .card:has(.card-link):hover {
    border-color: color-mix(in srgb, var(--ink) 42%, var(--line));
    transform: translateY(-2px);
    box-shadow: 0 16px 42px color-mix(in srgb, var(--ink) 8%, transparent);
  }

  .card-link:hover::after,
  .text-link:hover::after {
    transform: translate(3px, -1px);
  }

  .comparison-row:hover,
  .auction-table tbody tr:hover td:not(.selected-cell),
  .strategy-table tbody tr:hover td:not(.selected-cell) {
    background: color-mix(in srgb, var(--fog) 72%, transparent);
  }
}

@media (min-width: 1025px) {
  #simulation .product-copy,
  #deployment .product-copy {
    order: 2;
  }

  #simulation .product-window,
  #deployment .product-window {
    order: 1;
  }
}

.visual-box.dark {
  background: var(--ink);
  color: var(--paper);
}

.comparison-row {
  min-height: 56px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

.comparison-row:last-child {
  border-bottom: 0;
}

.comparison-row span:nth-child(2) {
  color: var(--slate);
}

.comparison-row strong {
  padding: 4px 7px;
  border-radius: 5px;
  background: #eef1f3;
  color: #4d5968;
  font-weight: 500;
}

:is(.window-status, .panel-list strong, .lineage-node strong, .constraint-list strong, .trace-list strong, .comparison-row strong) {
  --status-background: #eef1f3;
  --status-colour: #4d5968;
  background: var(--status-background);
  color: var(--status-colour);
}

[data-state][data-state="success"] {
  --status-background: var(--green-tint);
  --status-colour: #126b3e;
  --status-dot: var(--green);
}

[data-state][data-state="warning"] {
  --status-background: #fff1df;
  --status-colour: #8a4b12;
  --status-dot: #e49b34;
}

[data-state][data-state="error"] {
  --status-background: #fdecec;
  --status-colour: #9b2c2c;
  --status-dot: #d84a4a;
}

.window-status::before {
  background: var(--status-dot, #98a2b3);
}

.formula {
  max-width: 100%;
  margin: 26px 0 0;
  padding: 20px;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #eef0f2;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre;
}

.product-window-body {
  padding: 0;
}

.deployment-tab-heading {
  padding: clamp(22px, 3vw, 32px);
  padding-bottom: 20px;
}

.release-visual-wrap {
  padding: 0 clamp(22px, 3vw, 32px) clamp(22px, 3vw, 32px);
}

.package-workbench {
  min-height: 0;
  padding: clamp(10px, 1.25vw, 18px);
  background: #f3f3f3;
  color: #f8f8f2;
}

.package-app-shell {
  --package-header-height: clamp(20px, 1.786cqw, 32px);
  --package-debug-height: clamp(15px, 1.507cqw, 27px);
  width: 100%;
  height: auto;
  aspect-ratio: 1792 / 737;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: clamp(12px, 1.005cqw, 18px);
  background: #282a36;
  box-shadow: 0 2px 5px rgba(16, 15, 18, 0.18);
}

@media (min-width: 1025px) {
  .package-app-shell {
    height: 600px;
    max-height: 600px;
    aspect-ratio: auto;
  }
}

.package-app-bar {
  min-height: var(--package-header-height);
  display: grid;
  flex: 0 0 var(--package-header-height);
  grid-template-columns: 18% 57.4% 24.6%;
  background: #100f12;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
}

.package-flow-bar,
.package-editor-modes,
.package-chat-bar {
  min-width: 0;
  display: flex;
  align-items: center;
  border-right: 2px solid #44475a;
}

.package-flow-bar {
  padding-left: 12px;
  justify-content: space-between;
}

.package-draft-name {
  font-size: clamp(10px, 0.8cqw, 12px);
  line-height: 1;
}

.package-tool-row {
  height: 100%;
  display: flex;
  align-items: center;
}

.package-icon-button {
  width: clamp(20px, 1.563cqw, 28px);
  height: clamp(20px, 1.563cqw, 28px);
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #f8f8f2;
  cursor: pointer;
}

.package-icon-button.is-muted {
  background: #242429;
  color: #777982;
}

.package-icon-button svg {
  width: clamp(11px, 0.837cqw, 15px);
  height: clamp(11px, 0.837cqw, 15px);
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.package-icon-button svg .is-filled {
  fill: currentColor;
  stroke: none;
}

.package-editor-modes {
  gap: 3px;
}

.package-editor-modes button {
  height: var(--package-header-height);
  padding: 0 11px;
  position: relative;
  border: 0;
  background: transparent;
  color: #f8f8f2;
  cursor: pointer;
  font-size: clamp(10px, 0.8cqw, 12px);
}

.package-editor-modes button.is-active::after {
  height: 2px;
  position: absolute;
  right: 4px;
  bottom: 0;
  left: 4px;
  background: #46d281;
  content: "";
}

.package-chat-bar {
  padding-left: 10px;
  justify-content: flex-end;
  border-right: 0;
}

.package-chat-bar button {
  height: 100%;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: clamp(10px, 0.8cqw, 12px);
}

.package-chat-bar svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.package-layout {
  min-height: 0;
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: 18% 57.4% 24.6%;
  overflow: hidden;
}

.package-flow {
  min-width: 0;
  overflow: hidden;
  border-right: 2px solid #44475a;
  background: #282a36;
}

.package-flow-scroll {
  height: 100%;
  padding: clamp(6px, 0.614cqw, 11px) clamp(7px, 0.558cqw, 10px) clamp(12px, 1.228cqw, 22px);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

.package-explanation-copy::-webkit-scrollbar {
  width: 5px;
}

.package-explanation-copy::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #6272a4;
}

.package-flow-scroll::-webkit-scrollbar {
  display: none;
}

.package-node {
  --node-accent: #00a2c7;
  height: clamp(30px, 3.125cqw, 56px);
  min-height: clamp(30px, 3.125cqw, 56px);
  display: grid;
  grid-template-columns: 15% minmax(0, 1fr) 25px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--node-accent);
  border-radius: 9px;
  background: #44475a;
  color: #fff;
  cursor: default;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.package-node.is-active {
  box-shadow: 0 5px 15px color-mix(in srgb, var(--node-accent) 32%, transparent);
  transform: translateY(-1px);
}

.package-node.is-input { --node-accent: #00a2c7; }
.package-node.is-freeform { --node-accent: #de51a8; }
.package-node.is-rating { --node-accent: #8141e8; }
.package-node.is-unnest { --node-accent: #ff8000; }
.package-node.is-nest { --node-accent: #ffc107; }
.package-node.is-output { --node-accent: #22c55e; }

.package-node-copy {
  min-width: 0;
  padding: 0 clamp(5px, 0.558cqw, 10px);
}

.package-node-copy strong,
.package-node-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.package-node-copy strong {
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(10px, 0.94cqw, 13px);
  font-weight: 600;
  letter-spacing: 0;
  text-wrap: nowrap;
}

.package-node-copy small {
  margin-top: clamp(1px, 0.167cqw, 3px);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(9px, 0.78cqw, 11px);
  line-height: 1.2;
}

.package-node-icon {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-self: stretch;
  background: var(--node-accent);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(9px, 0.726cqw, 13px);
  font-weight: 600;
}

.package-node-icon svg {
  width: clamp(10px, 1.005cqw, 18px);
  height: clamp(10px, 1.005cqw, 18px);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.package-node-menu {
  width: clamp(11px, 0.893cqw, 16px);
  height: clamp(9px, 0.726cqw, 13px);
  background:
    linear-gradient(var(--node-accent), var(--node-accent)) 0 1px / 16px 1.5px no-repeat,
    linear-gradient(var(--node-accent), var(--node-accent)) 0 6px / 16px 1.5px no-repeat,
    linear-gradient(var(--node-accent), var(--node-accent)) 0 11px / 16px 1.5px no-repeat;
}

.package-flow-arrow {
  --arrow-head-size: clamp(4.5px, 0.48cqw, 8.5px);
  --arrow-stroke: 1px;
  width: var(--arrow-head-size);
  height: clamp(11px, 1.15cqw, 21px);
  margin: 0 auto;
  position: relative;
  display: block;
}

.package-flow-arrow::before {
  width: var(--arrow-stroke);
  position: absolute;
  top: 0;
  bottom: calc(var(--arrow-head-size) / 2);
  left: 50%;
  background: #939294;
  content: "";
  transform: translateX(-50%);
}

.package-flow-arrow::after {
  width: var(--arrow-head-size);
  height: var(--arrow-head-size);
  position: absolute;
  bottom: 2px;
  left: 50%;
  border-right: var(--arrow-stroke) solid #939294;
  border-bottom: var(--arrow-stroke) solid #939294;
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.package-code {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) var(--package-debug-height);
  position: relative;
  overflow: hidden;
  border-right: 2px solid #44475a;
  background: #282a36;
  color: #f8f8f2;
}

.code-editor {
  min-width: 0;
  padding: 0 0 18px;
  position: relative;
  overflow: auto;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(6px, 0.558cqw, 10px);
  line-height: 1.52;
  scrollbar-width: none;
  tab-size: 4;
}

.code-editor[data-exakt-monaco] {
  padding: 0;
  overflow: hidden;
}

.code-editor-fallback {
  height: 100%;
  padding-bottom: 18px;
  overflow: auto;
  scrollbar-width: none;
}

.code-editor[data-exakt-monaco="package"] .code-editor-fallback {
  font-size: 12px;
  line-height: 18px;
}

.code-editor-fallback::-webkit-scrollbar {
  display: none;
}

.monaco-editor-host {
  position: absolute;
  inset: 0;
  display: none;
}

.code-editor[data-monaco-ready] .monaco-editor-host {
  display: block;
}

.code-editor[data-monaco-ready] .code-editor-fallback {
  display: none;
}

.formula-editor {
  height: 205px;
  margin-top: 26px;
  border-radius: var(--radius-sm);
  background: #282a36;
  font-size: 14px;
  line-height: 1.6;
}

.formula-editor .code-editor-fallback {
  padding-block: 13px;
}

.formula-editor .code-line {
  min-height: 24px;
  grid-template-columns: 42px 1fr;
  padding-right: 12px;
}

.formula-editor .package-minimap {
  display: none;
}

@media (max-width: 560px) {
  .formula-editor {
    height: 420px;
  }

  .formula-editor .code-line {
    width: auto;
    padding-right: 12px;
  }

  .formula-editor .code-line code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .formula-editor .package-minimap {
    display: none;
  }
}

.code-editor::-webkit-scrollbar {
  display: none;
}

.code-line {
  width: max-content;
  min-width: 100%;
  min-height: clamp(10px, 0.837cqw, 15px);
  padding-right: clamp(76px, 6.696cqw, 120px);
  display: grid;
  grid-template-columns: clamp(30px, 2.734cqw, 49px) 1fr;
  color: #f8f8f2;
}

.code-line > span:first-child {
  padding-right: 10px;
  color: #6272a4;
  text-align: right;
  user-select: none;
}

.code-line code {
  font: inherit;
  white-space: pre;
}

.code-line.is-current {
  background: rgba(68, 71, 90, 0.76);
}

.code-line b,
.code-line em,
.code-line q,
.code-line i {
  font-style: normal;
  font-weight: 500;
}

.code-line b { color: #ff79c6; }
.code-line em { color: #8be9fd; }
.code-line q { color: #bd93f9; quotes: none; }
.code-line q::before,
.code-line q::after { content: none; }

.package-minimap {
  width: clamp(70px, 6.696cqw, 120px);
  height: clamp(40px, 3.516cqw, 63px);
  padding: 3px 5px;
  position: absolute;
  top: 1px;
  right: 3px;
  display: grid;
  gap: 2px;
  overflow: hidden;
  border-left: 1px solid rgba(98, 114, 164, 0.16);
  opacity: 0.72;
}

.package-minimap i {
  height: 4px;
  display: block;
  background:
    linear-gradient(90deg, #6272a4 0 16%, transparent 16% 19%, #8be9fd 19% 48%, transparent 48% 51%, #ff79c6 51% 76%, transparent 76% 81%, #f1fa8c 81% 100%);
  transform: scaleY(0.55);
  transform-origin: left center;
}

.package-minimap i:nth-child(2n) { width: 78%; }
.package-minimap i:nth-child(3n) { width: 91%; }

.editor-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-top: 1px solid #101012;
  background: #100f12;
  color: #a9abb4;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(6px, 0.447cqw, 8px);
}

.package-floating-tool {
  width: clamp(18px, 1.339cqw, 24px);
  height: clamp(54px, 4.353cqw, 78px);
  padding: 0;
  position: absolute;
  right: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 40px 0 0 40px;
  color: #fff;
  cursor: pointer;
}

.package-floating-gauss {
  top: calc(50% - 84px);
  background: linear-gradient(180deg, #4cb8c4, #3cd3ad 52%, #4cb8c4);
  box-shadow: -4px 0 12px rgba(255, 255, 255, 0.24);
  color: #ffd700;
  font-size: clamp(13px, 1.005cqw, 18px);
}

.package-floating-lookup {
  top: calc(50% + 1px);
  background: #020204;
  font-size: clamp(10px, 0.781cqw, 14px);
}

.package-review {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) clamp(82px, 9.04cqw, 162px);
  overflow: hidden;
  background: #21222c;
  color: #f8f8f2;
}

.package-explanation {
  min-height: 0;
  padding: clamp(7px, 0.67cqw, 12px) clamp(7px, 0.614cqw, 11px) 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.package-explain-button {
  min-height: clamp(22px, 1.953cqw, 35px);
  padding: 0 12px;
  align-self: flex-end;
  flex: 0 0 auto;
  border: 0;
  border-radius: 6px;
  background: #2e2e38;
  color: #f8f8f2;
  cursor: pointer;
  font-size: clamp(11px, 0.94cqw, 13px);
}

.package-explanation-copy {
  min-height: 0;
  margin-top: clamp(9px, 0.893cqw, 16px);
  padding: 0 3px 14px 0;
  overflow-y: auto;
  scrollbar-color: #6272a4 transparent;
  scrollbar-width: thin;
}

.package-workbench .package-explanation-copy p,
.package-workbench .package-explanation-copy li {
  margin: 0;
  color: #f8f8f2;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(11px, 0.94cqw, 13px);
  line-height: 1.48;
  text-wrap: pretty;
}

.package-workbench .package-explanation-copy p {
  margin-bottom: 8px;
}

.package-workbench .package-explanation-copy h3,
.package-workbench .package-explanation-copy h4 {
  margin: 0;
  color: #f8f8f2;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(12px, 1.02cqw, 14px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.45;
}

.package-workbench .package-explanation-copy h3 {
  margin-top: 1px;
  margin-bottom: 2px;
}

.package-workbench .package-explanation-copy ul {
  margin: -2px 0 8px;
  padding-left: 13px;
}

.package-workbench .package-explanation-copy code {
  color: #8be9fd;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.95em;
}

.package-workbench .package-explanation-copy pre {
  margin: 0 0 7px;
  padding: 7px 8px;
  overflow-x: auto;
  border: 1px solid #4a4c56;
  border-radius: 5px;
  background: #282934;
  color: #f8f8f2;
  white-space: nowrap;
}

.package-workbench .package-explanation-copy pre code {
  color: #f8f8f2;
  font-size: 11px;
}

.package-chat-compose {
  min-width: 0;
  padding: clamp(6px, 0.503cqw, 9px) clamp(7px, 0.558cqw, 10px) clamp(7px, 0.558cqw, 10px);
  overflow: hidden;
  border-top: 1px solid #6272a4;
  background: #21222c;
}

.package-suggestions {
  margin-bottom: clamp(5px, 0.503cqw, 9px);
  display: flex;
  gap: 6px;
  overflow: hidden;
  white-space: nowrap;
}

.package-suggestions span {
  height: clamp(18px, 1.674cqw, 30px);
  padding: 0 9px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid #363843;
  border-radius: 999px;
  background: #282934;
  color: #777a84;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(10px, 0.86cqw, 12px);
  text-overflow: ellipsis;
}

.package-chat-input {
  min-height: clamp(56px, 5.58cqw, 100px);
  padding: 12px 10px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #70d8ed;
  border-radius: 11px;
  background: #282934;
  box-shadow: 0 0 0 1px rgba(112, 216, 237, 0.16);
  color: #f8f8f2;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(11px, 0.94cqw, 13px);
}

.package-chat-input > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.package-chat-option {
  color: #f8f8f2;
  white-space: nowrap;
}

.package-chat-input button {
  width: clamp(18px, 1.786cqw, 32px);
  height: clamp(18px, 1.786cqw, 32px);
  margin-left: auto;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #777982;
  color: #20212a;
  cursor: pointer;
  font-size: 14px;
}

.assistant-editor-preview {
  width: min(100%, 360px);
  height: 740px;
  margin: 28px auto 0;
  padding: 0;
  display: grid;
  grid-template-rows: 30px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #3b3d49;
  border-radius: 12px;
  background: #21222c;
}

.assistant-editor-topbar {
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: #100f12;
  color: #f8f8f2;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
}

.assistant-editor-topbar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.assistant-editor-topbar svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.assistant-editor-preview .package-review {
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) 142px;
}

.assistant-editor-preview .package-explanation {
  padding: 16px 20px 0;
}

.assistant-editor-preview .package-explain-button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-size: 11px;
}

.assistant-editor-preview .package-explanation-copy {
  margin-top: 14px;
}

.assistant-stream-status {
  min-height: 18px;
  margin-top: 10px;
  display: none;
  align-items: center;
  gap: 6px;
  color: #8be9fd;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
}

.assistant-editor-preview.is-streaming .assistant-stream-status {
  display: flex;
}

.assistant-stream-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8be9fd;
  animation: assistant-stream-pulse 900ms ease-in-out infinite alternate;
}

.assistant-stream-ellipsis::after {
  width: 0;
  display: inline-block;
  overflow: hidden;
  content: "...";
  animation: assistant-stream-ellipsis 1.2s steps(4, end) infinite;
}

.assistant-editor-preview .package-explanation-copy > *,
.assistant-editor-preview .package-explanation-copy li {
  max-height: 600px;
  transition: opacity 180ms ease, max-height 180ms ease;
}

.assistant-editor-preview .package-explanation-copy .agent-stream-pending {
  max-height: 0;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden;
  opacity: 0;
}

.assistant-editor-preview .package-explanation-copy .agent-stream-active::after {
  width: 2px;
  height: 1em;
  margin-left: 2px;
  display: inline-block;
  background: #8be9fd;
  content: "";
  vertical-align: -0.16em;
  animation: assistant-stream-caret 700ms steps(1, end) infinite;
}

@keyframes assistant-stream-pulse {
  to { opacity: 0.3; }
}

@keyframes assistant-stream-ellipsis {
  to { width: 1.5em; }
}

@keyframes assistant-stream-caret {
  50% { opacity: 0; }
}

.assistant-editor-preview .package-explanation-copy p,
.assistant-editor-preview .package-explanation-copy li {
  font-size: 13px;
  line-height: 1.48;
}

.assistant-editor-preview .package-explanation-copy h3,
.assistant-editor-preview .package-explanation-copy h4 {
  font-size: 14px;
}

.assistant-editor-preview .package-explanation-copy pre {
  overflow-x: auto;
}

.assistant-editor-preview .package-explanation-copy pre code {
  font-size: 12px;
}

.assistant-editor-preview .package-chat-compose {
  padding: 10px 14px 12px;
}

.assistant-editor-preview .package-suggestions {
  margin-bottom: 9px;
}

.assistant-editor-preview .package-suggestions span {
  height: 28px;
  font-size: 11px;
}

.assistant-editor-preview .package-chat-input {
  min-height: 82px;
  padding: 14px 12px 10px;
  font-size: 12px;
}

.assistant-editor-send {
  width: 28px;
  height: 28px;
  margin-left: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #777982;
  color: #20212a;
  font-size: 15px;
}

@media (max-width: 560px) {
  .assistant-editor-preview .package-review {
    grid-template-rows: minmax(0, 1fr) 154px;
  }

  .assistant-editor-preview .package-explanation {
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .section-reveal {
    opacity: 0;
    translate: 0 32px;
  }

  .section-reveal.is-visible {
    animation: section-reveal-in 950ms var(--ease-ui, ease-out) var(--reveal-delay, 0ms) both;
  }
}

@keyframes section-reveal-in {
  from {
    opacity: 0;
    translate: 0 32px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .assistant-stream-dot,
  .assistant-stream-ellipsis::after,
  .assistant-editor-preview .package-explanation-copy .agent-stream-active::after {
    animation: none;
  }

  .assistant-editor-preview .package-explanation-copy > *,
  .assistant-editor-preview .package-explanation-copy li {
    transition: none;
  }
}

.monitor-kpis {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.monitor-kpis > div {
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--fog);
}

.monitor-kpis span,
.monitor-kpis small {
  display: block;
  color: var(--slate);
  font-size: 10px;
}

.monitor-kpis strong {
  margin-block: 7px 3px;
  display: block;
  font-size: 20px;
  font-weight: 550;
}

.monitor-kpis svg {
  width: 100%;
  height: 32px;
  display: block;
  overflow: visible;
}

.monitor-kpis path {
  fill: none;
  stroke: #687181;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.monitoring-app {
  min-height: 570px;
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr);
  background: #f7f8f9;
}

.monitoring-filter-rail {
  min-width: 0;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--paper);
}

.monitoring-filter-title,
.monitoring-view-bar,
.monitoring-chart-heading {
  display: flex;
  align-items: center;
}

.monitoring-filter-title {
  justify-content: space-between;
  gap: 10px;
}

.monitoring-filter-title strong {
  font-size: 13px;
  font-weight: 600;
}

.monitoring-filter-title > span,
.monitoring-view-bar > small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--slate);
  font-size: 9px;
  white-space: nowrap;
}

.monitoring-filter-title i,
.monitoring-view-bar i {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: var(--green);
}

.monitoring-filters {
  margin: 20px 0 0;
  display: grid;
  gap: 13px;
}

.monitoring-filters div {
  min-width: 0;
}

.monitoring-filters dt,
.monitoring-filter-summary > span {
  margin-bottom: 5px;
  display: block;
  color: var(--slate);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.monitoring-filters dd {
  min-height: 38px;
  margin: 0;
  padding: 0 28px 0 10px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monitoring-filters dd::after {
  position: absolute;
  right: 10px;
  color: var(--slate);
  content: "⌄";
}

.monitoring-filter-summary {
  margin-top: auto;
  padding-top: 22px;
}

.monitoring-filter-summary code {
  padding: 9px;
  display: block;
  overflow-wrap: anywhere;
  border-radius: 7px;
  background: var(--fog);
  color: var(--slate);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  line-height: 1.45;
}

.monitoring-overview {
  min-width: 0;
  padding: 14px;
}

.monitoring-view-bar {
  min-height: 36px;
  margin: -2px 0 12px;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.monitoring-view-bar > div {
  height: 36px;
  display: flex;
  align-items: stretch;
  gap: 22px;
}

.monitoring-view-bar h3,
.monitoring-view-bar span {
  margin: 0;
  display: flex;
  align-items: center;
  color: var(--slate);
  font-size: 10px;
  font-weight: 450;
}

.monitoring-view-bar h3 {
  position: relative;
  color: var(--ink);
  font-weight: 600;
}

.monitoring-view-bar h3::after {
  height: 2px;
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  background: var(--ink);
  content: "";
}

.monitoring-kpi-grid {
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 8px;
}

.monitoring-kpi {
  min-height: 112px;
  padding: 12px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 2px solid var(--kpi-accent, var(--line));
  border-radius: 8px;
  background: var(--paper);
}

.monitoring-kpi.is-volume {
  --kpi-accent: #46d281;
}

.monitoring-kpi.is-latency {
  --kpi-accent: #8141e8;
}

.monitoring-kpi.is-success {
  --kpi-accent: #fbad3b;
}

.monitoring-kpi.is-failure {
  --kpi-accent: #e5484d;
}

.monitoring-kpi.is-default {
  --kpi-accent: #0ea5e9;
}

.monitoring-kpi > span,
.monitoring-kpi > small {
  display: block;
  color: var(--slate);
  font-size: 9px;
}

.monitoring-kpi > span {
  font-weight: 550;
}

.monitoring-kpi > strong {
  margin-top: 5px;
  display: block;
  font-size: clamp(18px, 1.8vw, 25px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.monitoring-kpi > small {
  margin-top: 4px;
}

.monitoring-kpi svg {
  width: calc(100% - 20px);
  height: 29px;
  position: absolute;
  right: 10px;
  bottom: 5px;
  left: 10px;
  overflow: visible;
}

.monitoring-kpi svg path {
  fill: none;
  stroke: var(--kpi-accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.monitoring-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 10px;
}

.monitoring-chart-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
}

.monitoring-chart-heading {
  min-height: 58px;
  padding: 11px 13px;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.monitoring-chart-heading h4 {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 600;
}

.monitoring-chart-heading p {
  margin: 0;
  color: var(--slate);
  font-size: 9px;
  line-height: 1.4;
}

.monitoring-chart-heading > span {
  color: var(--slate);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  white-space: nowrap;
}

.monitoring-chart,
.monitoring-chart .exakt-chart-host {
  min-height: 255px;
  height: 255px;
}

.monitoring-chart {
  padding: 0;
}

.monitoring-chart .chart-fallback {
  inset: 0;
  display: block;
  background: var(--paper);
}

.monitoring-chart-fallback svg {
  width: 100%;
  height: 100%;
  display: block;
}

.monitoring-chart-fallback g:first-child path {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

.monitoring-fallback-bars path {
  fill: #46d281;
}

.monitoring-fallback-line,
.monitoring-fallback-latency,
.monitoring-fallback-inference {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.monitoring-fallback-line {
  stroke: #fbad3b;
}

.monitoring-fallback-latency {
  stroke: #8141e8;
}

.monitoring-fallback-inference {
  stroke: #00a2c7;
}

.monitoring-trace {
  min-height: 58px;
  margin-top: 10px;
  padding: 9px 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
}

.monitoring-trace > div > span,
.monitoring-trace > div > strong {
  display: block;
}

.monitoring-trace > div > span {
  color: var(--slate);
  font-size: 9px;
}

.monitoring-trace > div > strong {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 550;
  white-space: nowrap;
}

.monitoring-trace ol {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
  list-style: none;
}

.monitoring-trace li {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--slate);
  font-size: 9px;
  white-space: nowrap;
}

.monitoring-trace li strong {
  color: var(--ink);
  font-weight: 500;
}

.monitoring-trace li:not(:last-child)::after {
  width: 12px;
  height: 1px;
  margin-left: 7px;
  background: var(--line);
  content: "";
}

.monitoring-trace-open,
.monitoring-trace-dialog-header button {
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 550;
}

.monitoring-trace-open {
  min-height: 32px;
  padding: 0 13px;
  font-size: 9px;
  white-space: nowrap;
}

.monitoring-trace-dialog {
  width: min(98vw, 1824px);
  max-width: none;
  max-height: 96dvh;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(35, 31, 32, 0.24);
}

.monitoring-trace-dialog::backdrop {
  background: rgba(35, 31, 32, 0.5);
  backdrop-filter: blur(2px);
}

.monitoring-trace-dialog-inner {
  max-height: 96dvh;
  overflow: auto;
}

.monitoring-trace-dialog-header {
  min-height: 64px;
  padding: 13px 16px;
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--paper);
}

.monitoring-trace-dialog-header h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
}

.monitoring-trace-dialog-header form {
  margin: 0;
}

.monitoring-trace-dialog-header button {
  width: 92px;
  min-height: 38px;
  padding: 0 18px;
  font-size: 11px;
}

.monitoring-trace-payload > summary,
.monitoring-trace-step > summary {
  list-style: none;
}

.monitoring-trace-payload > summary::-webkit-details-marker,
.monitoring-trace-step > summary::-webkit-details-marker {
  display: none;
}

.monitoring-trace-payload > summary::after,
.monitoring-trace-step > summary::after {
  position: absolute;
  color: var(--slate);
  content: "⌄";
  font-size: 13px;
  line-height: 1;
  transition: transform 160ms ease;
}

.monitoring-trace-payload[open] > summary::after,
.monitoring-trace-step[open] > summary::after {
  transform: rotate(180deg);
}

.monitoring-trace-body {
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}

.monitoring-trace-meta,
.monitoring-step-stats {
  margin: 0;
  display: grid;
}

.monitoring-trace-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 18px;
}

.monitoring-trace-meta div,
.monitoring-step-stats div {
  min-width: 0;
}

.monitoring-trace-meta dt,
.monitoring-step-stats dt,
.monitoring-calculation-label {
  margin: 0 0 4px;
  color: var(--slate);
  font-size: 12px;
  font-weight: 700;
}

.monitoring-trace-meta dd,
.monitoring-step-stats dd {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monitoring-trace-meta dd {
  font-family: "IBM Plex Mono", monospace;
}

.monitoring-trace-meta div:nth-child(4) dd,
.monitoring-trace-meta div:nth-child(5) dd {
  font-family: inherit;
  font-weight: 600;
}

.monitoring-trace-meta div:last-child dd {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: inherit;
}

.monitoring-switch {
  width: 27px;
  height: 16px;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--fog);
}

.monitoring-switch i {
  width: 10px;
  height: 10px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
}

.monitoring-trace-payload,
.monitoring-trace-step {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.monitoring-trace-payload {
  margin-top: 13px;
}

.monitoring-trace-payload > summary,
.monitoring-trace-step > summary {
  position: relative;
  display: flex;
  align-items: center;
}

.monitoring-trace-payload > summary {
  min-height: 47px;
  padding: 8px 36px 8px 12px;
  justify-content: center;
  text-align: center;
}

.monitoring-trace-payload > summary::after,
.monitoring-trace-step > summary::after {
  right: 12px;
}

.monitoring-trace-payload strong,
.monitoring-trace-payload small {
  display: block;
}

.monitoring-trace-payload strong {
  font-size: 13px;
  font-weight: 600;
}

.monitoring-trace-payload small {
  margin-top: 2px;
  color: var(--slate);
  font-size: 12px;
}

.monitoring-trace-payload pre {
  margin: 0;
  padding: 12px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  background: #282a36;
  color: #f8f8f2;
  font-size: 12px;
}

.monitoring-trace-steps {
  margin-top: 10px;
  display: grid;
  gap: 7px;
}

.monitoring-trace-step > summary {
  min-height: 44px;
  padding: 9px 40px 9px 14px;
  gap: 8px;
}

.monitoring-trace-step > summary strong {
  font-size: 14px;
  font-weight: 600;
}

.monitoring-trace-step > summary small {
  color: var(--slate);
  font-size: 12px;
}

.monitoring-node-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
}

.monitoring-node-dot.is-input {
  background: #00a2c7;
}

.monitoring-node-dot.is-freeform {
  background: #de51a8;
}

.monitoring-node-dot.is-rating {
  background: #8141e8;
}

.monitoring-node-dot.is-output {
  background: #22c55e;
}

.monitoring-trace-step .monitoring-node-dot {
  width: 10px;
  height: 10px;
  flex-basis: 10px;
}

.monitoring-trace-step-body {
  padding: 11px 12px 12px;
  border-top: 1px solid var(--line);
}

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

.monitoring-calculation-label {
  margin-top: 13px;
}

.monitoring-calculation-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  scrollbar-width: thin;
}

.monitoring-calculation-table {
  width: 100%;
  min-width: 1100px;
  table-layout: fixed;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 12px;
}

.monitoring-calculation-table caption {
  width: 1px;
  height: 1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.monitoring-calculation-table th,
.monitoring-calculation-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.monitoring-calculation-table th {
  background: #f8fafc;
  color: var(--slate);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.monitoring-calculation-table tbody tr:last-child td {
  border-bottom: 0;
}

.monitoring-calculation-table th:nth-child(1),
.monitoring-calculation-table td:nth-child(1) {
  width: 36px;
}

.monitoring-calculation-table th:nth-child(2),
.monitoring-calculation-table td:nth-child(2) {
  width: 190px;
}

.monitoring-calculation-table th:nth-child(3),
.monitoring-calculation-table td:nth-child(3) {
  width: 420px;
}

.monitoring-calculation-table th:nth-child(4),
.monitoring-calculation-table td:nth-child(4) {
  width: 220px;
}

.monitoring-calculation-table th:nth-child(5),
.monitoring-calculation-table td:nth-child(5) {
  width: 140px;
}

.monitoring-calculation-table th:nth-child(6),
.monitoring-calculation-table td:nth-child(6) {
  width: 66px;
}

.monitoring-calculation-table td:nth-child(2) strong,
.monitoring-calculation-table td:nth-child(2) small {
  display: block;
}

.monitoring-calculation-table td:nth-child(2) strong {
  font-size: 14px;
}

.monitoring-calculation-table td:nth-child(2) strong,
.monitoring-calculation-table td:nth-child(5) b {
  color: #2ea66a;
  font-weight: 700;
}

.monitoring-calculation-table td:nth-child(2) small {
  margin-top: 2px;
  color: var(--slate);
  font-size: 12px;
}

.monitoring-calculation-table code {
  min-height: 58px;
  padding: 9px 20px;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: #282a36;
  color: #f8f8f2;
  font-size: 12px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monitoring-calculation-table code span {
  color: #ff79c6;
  font-style: normal;
  font-weight: 600;
}

.monitoring-calculation-table code mark {
  padding: 0;
  background: transparent;
  color: #f1fa8c;
}

.monitoring-calculation-table code b {
  color: #bd93f9;
  font-weight: 400;
}

.monitoring-calculation-table td:nth-child(4) em {
  padding: 4px 7px;
  display: inline-flex;
  overflow: hidden;
  border: 1px solid #c8dbff;
  border-radius: 999px;
  background: #eef4ff;
  color: #2678eb;
  font-style: normal;
  font-size: 12px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monitoring-calculation-table td:nth-child(5) b {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
}

.monitoring-calculation-table td:nth-child(6) i {
  min-width: 40px;
  padding: 3px 6px;
  display: inline-block;
  border-radius: 4px;
  background: var(--fog);
  color: var(--slate);
  font-style: normal;
}

.outcome-strip {
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.75fr);
  gap: 40px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--fog);
}

.outcome-strip strong {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 450;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.outcome-strip p {
  margin: 0;
  color: var(--slate);
}

.next-module {
  padding: clamp(64px, 7vw, 96px) 0;
  background: var(--ink);
  color: var(--paper);
}

.next-module .shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  text-align: center;
}

.next-module .shell > :first-child {
  max-width: 800px;
}

.next-module h2 {
  max-width: 750px;
  margin: 0 auto;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 450;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.next-module-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
}

.next-module-actions .button {
  white-space: nowrap;
}

.next-module-actions .button-outline {
  border-color: color-mix(in srgb, var(--paper) 50%, transparent);
  background: transparent;
  color: var(--paper);
}

.pilot-card {
  padding: clamp(44px, 7vw, 84px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  justify-items: center;
  align-items: center;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

.pilot-card > :first-child {
  max-width: 830px;
}

.pilot-card h2 {
  margin: 0 auto 22px;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 450;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.pilot-card p:not(.section-kicker) {
  max-width: 650px;
  margin: 0 auto;
  color: var(--line);
  font-size: 18px;
}

.pilot-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
  text-align: center;
}

.site-footer {
  padding: 72px 0 28px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.6fr 0.6fr;
  gap: 50px;
}

.footer-copy {
  max-width: 430px;
  margin: 24px 0 0;
  color: var(--slate);
  font-size: 14px;
}

.footer-column h3 {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-column a {
  margin-bottom: 10px;
  display: block;
  color: var(--slate);
  font-size: 14px;
}

.footer-meta {
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--slate);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

@media (max-width: 1180px) {
  .optimisation-workspace {
    grid-template-columns: 1fr;
  }

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

@media (min-width: 1025px) and (max-width: 1180px) {
  .nav {
    gap: 20px;
  }

  .nav-links {
    gap: 15px;
    font-size: 13px;
  }

  .nav-actions .button-light {
    display: none;
  }
}

@media (max-width: 1024px) {
  :root {
    --page-gutter: 32px;
  }

  .nav {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .mobile-menu {
    position: fixed;
    top: var(--mobile-menu-top, 82px);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 19;
    padding: 32px var(--page-gutter);
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
    display: grid;
    align-content: start;
    gap: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--paper);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 160ms ease,
      transform 220ms var(--ease-ui),
      visibility 0s linear 220ms;
  }

  .mobile-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition-delay: 0s;
  }

  .mobile-menu a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 20px;
  }

  .mobile-menu .button {
    margin-top: 18px;
    border-bottom: 0;
  }

  .mobile-menu a:not(.button)[aria-current="page"] {
    margin-inline: -12px;
    padding-inline: 12px;
    border-radius: 8px;
    background: var(--fog);
    color: var(--ink);
    font-weight: 500;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-actions .button-light {
    display: none;
  }

  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .page-hero-grid > :last-child {
    width: min(100%, 860px);
  }

  .product-layout {
    grid-template-columns: 1fr;
  }

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

  .platform-switcher-nav {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .platform-switcher-tab {
    min-height: 82px;
    grid-template-columns: 32px minmax(120px, 0.45fr) 1fr;
    align-items: center;
  }

  .platform-switcher-tab > span {
    grid-row: auto;
  }

  .platform-switcher-tab > small {
    margin-top: 0;
  }

  .detail-grid,
  .outcome-strip {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    gap: 48px;
  }

  .outcome-strip {
    gap: 28px;
  }

  .detail-nav {
    position: sticky;
    top: calc(var(--site-header-height, 72px) + 8px);
    z-index: 10;
    padding: 8px;
    display: flex;
    gap: 2px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    background: var(--paper);
    box-shadow: 0 10px 28px color-mix(in srgb, var(--ink) 8%, transparent);
  }

  .detail-nav h2 {
    display: none;
  }

  .detail-nav a {
    min-height: 42px;
    padding: 10px 11px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    border: 0;
    border-radius: 8px;
    background: var(--fog);
  }

  .detail-nav a[aria-current="location"] {
    background: var(--fog);
    box-shadow: inset 3px 0 var(--ink);
    color: var(--ink);
    font-weight: 500;
  }

  .hero-panel {
    min-height: 400px;
  }

  .card.third,
  .card.half {
    grid-column: span 6;
  }

  .card.third:last-child {
    grid-column: span 12;
    min-height: 220px;
  }

  .card.wide,
  .card.narrow {
    grid-column: span 12;
  }

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

  .journey-step,
  .journey-step:nth-child(n + 5) {
    grid-column: auto;
  }

  .journey-step:last-child {
    grid-column: 1 / -1;
  }

  .package-app-shell {
    overflow-x: auto;
    overflow-y: hidden;
  }

  .package-app-bar,
  .package-layout {
    width: 980px;
    min-width: 980px;
  }

  .package-layout {
    flex: 0 0 calc(100% - var(--package-header-height));
    grid-template-columns: 18% 57.4% 24.6%;
  }

  .package-review {
    min-height: 0;
    grid-column: auto;
    grid-template-columns: none;
    grid-template-rows: minmax(0, 1fr) clamp(82px, 9.04cqw, 162px);
    gap: 0;
    border-top: 0;
  }
}

@media (max-width: 820px) {
  .nav {
    min-height: 64px;
  }

  .page-hero {
    padding: 72px 0 80px;
  }

  .page-hero h1 {
    font-size: 48px;
    line-height: 1.04;
  }

  .home-hero .home-hero-copy h1 {
    font-size: 48px;
  }

  .section {
    padding: 72px 0;
  }

  .section-title,
  .product-copy h2 {
    font-size: 40px;
    line-height: 1.06;
  }

  .section-intro {
    margin-bottom: 44px;
  }

  .split-intro {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
  }

  .split-intro .section-kicker {
    margin-bottom: 2px;
  }

  .split-intro .section-copy {
    padding-bottom: 0;
  }

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

  .platform-switcher-panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .monitoring-app {
    grid-template-columns: 1fr;
  }

  .monitoring-filter-rail {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .monitoring-filters {
    margin-top: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .monitoring-filter-summary {
    padding-top: 0;
    grid-column: 1 / -1;
  }

  .monitoring-chart-grid {
    grid-template-columns: 1fr;
  }

  .detail-content article {
    padding-bottom: 40px;
    margin-bottom: 40px;
  }

  .card {
    min-height: 280px;
  }

  .decision-flow,
  .data-flow {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .decision-step,
  .decision-step:nth-child(even) {
    min-height: 0;
    border: 1px solid var(--line);
  }

  .decision-step:last-child {
    border-bottom: 1px solid var(--line);
  }

  .step-number {
    margin-bottom: 28px;
  }

  .data-node:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -18px;
    background-image: var(--flow-arrow-down);
    content: "";
    transform: translate(50%, 50%);
  }

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

  .data-node:not(:last-child)::before {
    width: 2px;
    height: 36px;
    top: auto;
    right: 50%;
    bottom: -37px;
    transform: translateX(50%);
  }

  .decision-step:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -18px;
    background-image: var(--flow-arrow-down);
    transform: translate(50%, 50%);
  }

  .window-body {
    padding: 24px;
  }

  .pilot-card {
    gap: 32px;
    align-items: center;
  }

  .next-module .shell {
    gap: 32px;
    align-items: center;
  }
}

@media (min-width: 768px) and (max-height: 820px) {
  .page-hero {
    padding: 64px 0 76px;
  }

  .eyebrow {
    margin-bottom: 20px;
  }

  .page-hero h1 {
    margin-bottom: 22px;
  }

  .hero-copy {
    margin-bottom: 28px;
  }

  .hero-panel {
    min-height: 360px;
  }

  .home-hero .page-hero-grid {
    gap: 44px;
  }
}

@media (max-width: 767px) {
  :root {
    --page-gutter: 16px;
  }

  .announcement .shell {
    padding-block: 9px;
  }

  .nav {
    min-height: 64px;
  }

  .nav-actions {
    display: none;
  }

  .page-hero {
    padding: 60px 0 72px;
  }

  .page-hero h1 {
    margin-bottom: 22px;
    font-size: 40px;
    line-height: 1.05;
  }

  .home-hero .home-hero-copy h1 {
    font-size: 40px;
  }

  .hero-copy {
    margin-bottom: 28px;
    font-size: 17px;
    line-height: 1.5;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .pilot-actions {
    width: min(100%, 360px);
    flex-direction: column;
  }

  .pilot-actions .button {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }

  .section-intro {
    margin-bottom: 42px;
  }

  .section-title,
  .product-copy h2 {
    font-size: 34px;
    line-height: 1.08;
  }

  .section-copy,
  .product-copy > p:not(.section-kicker) {
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-product-grid,
  .home-hero .hero-product-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    padding: 12px;
    border-radius: 20px;
  }

  .hero-capability-grid a {
    min-height: 96px;
    padding: 14px;
  }

  .problem-grid {
    grid-template-columns: 1fr;
  }

  .problem-item,
  .problem-item:nth-child(odd) {
    min-height: 0;
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .problem-item:last-child {
    border-bottom: 0;
  }

  .problem-item h3 {
    margin-top: 22px;
  }

  .platform-switcher {
    border-radius: var(--radius-md);
  }

  .platform-switcher-tab {
    min-height: 68px;
    padding: 14px 16px;
    grid-template-columns: 28px 1fr;
  }

  .platform-switcher-tab > small {
    display: none;
  }

  .platform-switcher-tab > strong {
    font-size: 17px;
  }

  .platform-switcher-panel {
    padding: 24px 18px;
    gap: 26px;
  }

  .hero-panel {
    min-height: 0;
    padding: 24px;
  }

  .hero-panel h2 {
    font-size: 28px;
  }

  .product-window {
    border-radius: var(--radius-md);
    box-shadow: 0 18px 48px color-mix(in srgb, var(--ink) 10%, transparent);
  }

  .window-bar {
    min-height: 44px;
    padding-inline: 14px;
  }

  .window-bar > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .window-status {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .window-body {
    padding: 18px;
  }

  .window-body.product-window-body {
    padding: 0;
  }

  .monitoring-filter-rail {
    display: block;
  }

  .monitoring-filter-title {
    margin-bottom: 16px;
  }

  .monitoring-filter-summary {
    margin-top: 16px;
  }

  .monitoring-overview {
    padding: 12px;
  }

  .monitoring-view-bar {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .monitoring-view-bar::-webkit-scrollbar {
    display: none;
  }

  .monitoring-view-bar > div {
    min-width: max-content;
    gap: 18px;
  }

  .monitoring-view-bar > small {
    display: none;
  }

  .window-body .monitoring-view-bar h3 {
    font-size: 10px;
  }

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

  .monitoring-kpi:last-child {
    grid-column: 1 / -1;
  }

  .chart-preview.monitoring-chart,
  .monitoring-chart .exakt-chart-host {
    min-height: 250px;
    height: 250px;
  }

  .monitoring-trace {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .monitoring-trace ol {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .monitoring-trace ol::-webkit-scrollbar {
    display: none;
  }

  .monitoring-trace-open {
    min-height: 44px;
  }

  .monitoring-trace-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
  }

  .monitoring-trace-dialog-inner {
    max-height: calc(100dvh - 24px);
  }

  .monitoring-trace-dialog-header {
    min-height: 60px;
    padding: 11px 12px;
  }

  .monitoring-trace-dialog-header button {
    min-height: 44px;
  }

  .monitoring-trace-body {
    padding: 0 12px 12px;
  }

  .monitoring-trace-meta,
  .monitoring-step-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .monitoring-trace-meta div:first-child {
    grid-column: 1 / -1;
  }

  .package-workbench {
    min-height: 0;
    padding: 8px;
  }

  .package-app-shell {
    height: 360px;
    aspect-ratio: auto;
    border-radius: 14px;
  }

  .package-app-bar,
  .package-layout {
    width: 900px;
    min-width: 900px;
  }

  .package-layout {
    min-height: 0;
    grid-template-columns: 18% 57.4% 24.6%;
  }

  .package-code {
    min-height: 0;
  }

  .package-flow {
    border-right: 2px solid #44475a;
    border-bottom: 0;
  }

  .package-review {
    grid-column: auto;
    grid-template-columns: none;
    grid-template-rows: minmax(0, 1fr) clamp(82px, 9.04cqw, 162px);
    border-top: 0;
  }

  .monitor-kpis {
    grid-template-columns: 1fr;
  }

  .window-body h2,
  .window-body h3 {
    font-size: 24px;
  }

  .tab-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(76px, 1fr);
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .tab-button {
    min-height: 50px;
    padding-inline: 10px;
    scroll-snap-align: start;
    line-height: 1.15;
    white-space: normal;
  }

  .product-window .tab-button:focus-visible {
    outline-offset: -3px;
  }

  .table-scroll:has(.responsive-table) {
    overflow-x: visible;
  }

  .responsive-table {
    width: 100%;
    min-width: 0;
    display: block;
  }

  .responsive-table thead {
    width: 1px;
    height: 1px;
    position: absolute;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .responsive-table tbody {
    display: grid;
    gap: 12px;
  }

  .responsive-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
  }

  .responsive-table td,
  .auction-table.responsive-table td,
  .strategy-table.responsive-table td {
    min-width: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    border: 0;
    border-bottom: 1px solid var(--line);
    overflow-wrap: anywhere;
  }

  .responsive-table td:first-child {
    grid-column: 1 / -1;
    background: var(--fog);
    font-weight: 500;
  }

  .responsive-table td:last-child:nth-child(even) {
    grid-column: 1 / -1;
  }

  .responsive-table td::before {
    color: var(--slate);
    content: attr(data-label);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .portfolio-preview {
    padding: 14px;
  }

  .analysis-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .analysis-controls {
    width: 100%;
    overflow-x: auto;
  }

  .analysis-controls > span {
    min-width: 136px;
    flex: 1 0 136px;
  }

  .chart-preview,
  .exakt-chart-host {
    min-height: 340px;
    height: 340px;
  }

  .chart-preview.model-interaction-preview,
  .model-interaction-preview .exakt-chart-host,
  .chart-preview.simulation-two-way-preview,
  .simulation-two-way-preview .exakt-chart-host {
    min-height: 340px;
    height: 340px;
  }

  .chart-preview.simulation-one-way-preview,
  .simulation-one-way-preview .exakt-chart-host {
    min-height: 340px;
    height: 340px;
  }

  .double-lift-preview,
  .double-lift-preview .exakt-chart-host,
  .dislocation-preview,
  .dislocation-preview .exakt-chart-host {
    min-height: 340px;
    height: 340px;
  }

  .model-interaction-help,
  .simulation-two-way-help {
    text-align: left;
  }

  .frontier-panel,
  .frontier-scenarios {
    padding: 16px;
  }

  .optimisation-panel-heading {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .frontier-chart,
  .frontier-chart .exakt-chart-host {
    min-height: 310px;
    height: 310px;
  }

  .frontier-table th:first-child,
  .frontier-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--paper);
    box-shadow: 1px 0 0 var(--line);
  }

  .frontier-table thead th:first-child {
    z-index: 3;
    background: color-mix(in srgb, var(--fog) 72%, var(--paper));
  }

  .frontier-swipe-note {
    margin: 10px 0 0;
    display: block;
    color: var(--slate);
    font-size: 11px;
  }

  .geo-analysis-layout {
    grid-template-columns: 1fr;
  }

  .geo-editor-layout {
    grid-template-columns: 1fr;
  }

  .modelling-hero-workflow .geo-editor-layout {
    grid-template-rows: minmax(420px, 1fr) auto;
  }

  .geo-chart-preview .exakt-chart-host,
  .model-geo-preview .exakt-chart-host {
    min-height: 420px;
    height: 420px;
  }

  .geo-chart-preview,
  .model-geo-preview {
    min-height: 0;
    height: auto;
  }

  .model-geo-preview {
    padding: 0;
  }

  .deck-map-status {
    top: 54px;
    right: 12px;
    left: 12px;
    max-width: none;
  }

  .simulation-deck-map .deck-map-status {
    top: 12px;
    right: auto;
    max-width: calc(100% - 24px);
  }

  .deck-map-legend {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .deck-factor-key {
    width: 100%;
  }

  .deck-factor-key i {
    min-width: 72px;
    flex: 1;
  }

  .geo-inspector {
    grid-template-columns: 1fr;
  }

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

  .auction-kpis {
    grid-template-columns: 1fr;
  }

  .auction-kpis > div {
    min-height: 82px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .auction-kpis > div:last-child {
    border-bottom: 0;
  }

  .importance-comparison {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  .importance-comparison-header {
    min-height: 0;
    padding: 0 0 14px;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    border-bottom: 0;
  }

  .importance-comparison-scroll {
    overflow: visible;
  }

  .importance-comparison-table {
    width: 100%;
    min-width: 0;
    display: block;
  }

  .importance-comparison-table thead {
    width: 1px;
    height: 1px;
    position: absolute;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .importance-comparison-table tbody {
    display: grid;
    gap: 10px;
  }

  .importance-comparison-table tbody tr {
    display: grid;
    grid-template-columns: 38px repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
  }

  .importance-comparison-table tbody tr > * {
    border: 0;
  }

  .importance-comparison-table tbody td:first-child {
    grid-column: 1;
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    border-right: 1px solid var(--line);
    background: var(--fog);
    text-align: center;
  }

  .importance-comparison-table tbody th {
    padding: 10px 12px 7px;
    grid-column: 2 / 4;
    border-bottom: 1px solid var(--line);
  }

  .importance-comparison-table tbody td:nth-of-type(n + 2) {
    padding: 8px 10px 10px;
    display: grid;
    gap: 5px;
    text-align: left;
  }

  .importance-comparison-table tbody td:nth-of-type(2) {
    border-right: 1px solid var(--line);
  }

  .importance-comparison-table tbody td:nth-of-type(n + 2)::before {
    color: var(--slate);
    content: attr(data-label);
    font-size: 9px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .importance-score {
    width: 100%;
    min-height: 29px;
  }

  .importance-empty {
    min-height: 29px;
    padding: 5px 8px;
  }

  .importance-comparison-note {
    margin-top: 10px;
    padding: 0;
    border-top: 0;
  }

  .candidate-summary {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .candidate-evidence .candidate-table.responsive-table tbody {
    gap: 8px;
    padding: 8px;
  }

  .candidate-evidence .candidate-table.responsive-table {
    width: 100%;
    min-width: 0;
  }

  .candidate-evidence .candidate-table.responsive-table tr {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .candidate-evidence .candidate-table.responsive-table td {
    height: auto;
    min-height: 48px;
    padding: 7px 8px;
    justify-content: center;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    font-size: 11px;
  }

  .candidate-evidence .candidate-table.responsive-table td:first-child {
    min-height: 40px;
    grid-column: 1 / 4;
    grid-row: 1;
    border-bottom: 1px solid var(--line);
  }

  .candidate-evidence .candidate-table.responsive-table td:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .candidate-evidence .candidate-table.responsive-table td:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .candidate-evidence .candidate-table.responsive-table td:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
  }

  .candidate-evidence .candidate-table.responsive-table td:nth-child(5) {
    grid-column: 4;
    grid-row: 2;
    border-right: 0;
  }

  .candidate-evidence .candidate-table.responsive-table td:last-child {
    min-height: 40px;
    grid-column: 4;
    grid-row: 1;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: var(--fog);
  }

  .candidate-evidence .candidate-table.responsive-table td:first-child::before,
  .candidate-evidence .candidate-table.responsive-table td:last-child::before {
    display: none;
  }

  .candidate-evidence .candidate-table.responsive-table td::before {
    font-size: 7px;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .candidate-evidence .candidate-table td small {
    margin-left: 0;
    font-size: 8px;
    line-height: 1;
  }

  .candidate-evidence .decision-chip {
    padding: 3px 7px;
    justify-content: center;
    font-size: 9px;
  }

  .candidate-evidence .candidate-summary {
    min-height: 0;
    padding: 10px 12px;
    font-size: 10px;
  }

  .metric-bar-row {
    padding-block: 10px;
    grid-template-columns: 1fr auto;
    gap: 7px 12px;
  }

  .metric-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .matrix-preview span {
    min-height: 46px;
  }

  .decision-flow {
    grid-template-columns: 1fr;
  }

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

  .journey-step {
    min-height: 160px;
  }

  .card.third,
  .card.half,
  .card.wide,
  .card.narrow {
    grid-column: span 12;
  }

  .card.third:last-child {
    min-height: 0;
  }

  .card {
    min-height: 0;
    padding: 24px;
  }

  .card:has(.card-link) {
    padding: 24px;
  }

  .card-link {
    padding-right: 52px;
  }

  .card-link::after {
    top: auto;
    right: 24px;
    bottom: 24px;
  }

  .card h2,
  .card h3 {
    font-size: 22px;
    line-height: 1.18;
  }

  .data-flow,
  .proof-band,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .data-node:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -18px;
    display: grid;
    background-image: var(--flow-arrow-down);
    transform: translate(50%, 50%);
  }

  .decision-step {
    min-height: 0;
    border: 1px solid var(--line);
  }

  .decision-step:last-child {
    border-bottom: 1px solid var(--line);
  }

  .step-number {
    margin-bottom: 28px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-nav {
    position: static;
  }

  .fact-list li,
  .outcome-strip {
    grid-template-columns: 1fr;
  }

  .fact-list li {
    gap: 8px;
  }

  .detail-grid {
    gap: 36px;
  }

  .detail-content article {
    padding-bottom: 32px;
    margin-bottom: 32px;
  }

  .outcome-strip {
    gap: 24px;
  }

  .comparison-row {
    grid-template-columns: 1fr auto;
    gap: 8px 14px;
    padding-block: 10px;
  }

  .comparison-row span:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .next-module .shell {
    gap: 28px;
    align-items: center;
  }

  .pilot-card {
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    row-gap: 40px;
  }

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

  .footer-meta {
    margin-top: 36px;
    padding-top: 20px;
    gap: 10px;
    flex-direction: column;
  }

  .site-footer {
    padding: 56px 0 24px;
  }
}

@media (max-width: 560px) {
  .modelling-problem-grid {
    gap: 14px;
  }

  .modelling-problem-grid > .modelling-problem-card {
    width: 100%;
    padding: 6px;
    border-radius: 18px;
  }

  .modelling-problem-card-inner {
    padding: 16px;
    border-radius: 12px;
  }

  .modelling-problem-art {
    width: calc(100% + 32px);
    aspect-ratio: 16 / 9;
    margin: -16px -16px 0;
  }

  .modelling-problem-art img {
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }

  .modelling-problem-card h3 {
    margin: 16px 0 8px;
    font-size: 20px;
  }

  .modelling-problem-card p {
    font-size: 14px;
    line-height: 1.45;
  }

  .journey-grid {
    grid-template-columns: 1fr;
  }

  .journey-step {
    min-height: 138px;
  }

  .journey-step small {
    min-height: 0;
  }

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

  .platform-frontier-chart {
    width: min(100%, 320px);
    margin-inline: auto;
  }

  .platform-frontier-plot,
  .platform-frontier-plot .exakt-chart-host {
    min-height: 260px;
    height: 260px;
  }
}

@media (max-width: 1180px) {
  .simulation-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .simulation-summary-card:nth-child(2) {
    border-right: 0;
  }

  .simulation-summary-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  .portfolio-metrics-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  .portfolio-metrics-table {
    width: 100%;
    min-width: 0;
    display: block;
  }

  .portfolio-metrics-table thead {
    width: 1px;
    height: 1px;
    position: absolute;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .portfolio-metrics-table tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .portfolio-metrics-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
  }

  .portfolio-metrics-table td {
    min-width: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    border: 0;
    border-bottom: 1px solid var(--line);
    overflow-wrap: anywhere;
  }

  .portfolio-metrics-table td:first-child {
    grid-column: 1 / -1;
    background: var(--fog);
    font-weight: 500;
  }

  .portfolio-metrics-table td:last-child:nth-child(even) {
    grid-column: 1 / -1;
  }

  .portfolio-metrics-table td::before {
    color: var(--slate);
    content: attr(data-label);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .portfolio-metrics-table td:not(:first-child) {
    text-align: left;
  }

  .portfolio-metrics-table tbody tr:not(.metrics-group-row) td:nth-child(4) {
    background: var(--fog);
  }

  .portfolio-metrics-table .metrics-group-row {
    display: block;
    grid-column: 1 / -1;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .portfolio-metrics-table .metrics-group-row td {
    padding: 14px 2px 2px;
    display: block;
    border: 0;
    background: transparent;
  }

  .portfolio-metrics-table .metrics-group-row td::before {
    display: none;
  }
}

@media (max-width: 560px) {
  .simulation-summary-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-metrics-table tbody {
    grid-template-columns: 1fr;
  }

  .simulation-summary-card,
  .simulation-summary-card:nth-child(2) {
    min-height: 112px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .simulation-summary-card:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 430px) {
  .announcement {
    font-size: 12px;
  }

  .announcement .shell {
    min-height: 34px;
    padding-block: 6px;
  }

  .announcement span {
    display: none;
  }

  .wordmark {
    font-size: 25px;
  }

  .eyebrow {
    margin-bottom: 22px;
  }

  .home-hero .page-hero-grid,
  .page-hero-grid {
    gap: 40px;
  }

  .home-hero .product-window,
  .product-layout > .product-window,
  .section > .shell > .product-window,
  .modelling-hero-workflow > .product-window,
  .detail-content article > .product-window {
    margin-inline: calc(var(--page-gutter) * -1);
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .home-hero .hero-stage {
    width: calc(100% + var(--page-gutter) + var(--page-gutter));
    margin-inline: calc(var(--page-gutter) * -1);
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .home-hero .hero-stage .product-window {
    width: 100%;
    margin-inline: 0;
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
    border-radius: var(--radius-md);
  }

  .hero-capability-grid strong {
    font-size: 13px;
  }

  .hero-capability-grid small {
    font-size: 10px;
  }

  .window-status {
    max-width: 116px;
    padding: 3px 6px;
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .window-status::before {
    width: 5px;
    height: 5px;
  }

  .monitoring-trace-meta,
  .monitoring-step-stats {
    grid-template-columns: 1fr;
  }

  .monitoring-trace-meta div:first-child {
    grid-column: auto;
  }

  .pilot-card {
    padding: 30px 22px;
    gap: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
