@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/be-vietnam-pro-400.ttf") format("truetype");
}

@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/be-vietnam-pro-500.ttf") format("truetype");
}

@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/be-vietnam-pro-600.ttf") format("truetype");
}

@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/be-vietnam-pro-700.ttf") format("truetype");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/ibm-plex-mono-400.ttf") format("truetype");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/ibm-plex-mono-500.ttf") format("truetype");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/ibm-plex-mono-600.ttf") format("truetype");
}

body[data-story-shell="engineering-sandbox"] {
  --story-paper: #f6f0e7;
  --story-paper-deep: #eadfce;
  --story-paper-strong: #fffdf8;
  --story-ink: #12202a;
  --story-ink-soft: #40515e;
  --story-border: rgba(18, 32, 42, 0.16);
  --story-border-strong: rgba(18, 32, 42, 0.26);
  --story-steel: #25576e;
  --story-steel-bright: #347e95;
  --story-accent: #d3852f;
  --story-mint: #9fc5bb;
  --story-shadow: 0 20px 48px rgba(18, 32, 42, 0.12);
  --story-shell-max: 1180px;
  --story-rail-width: 12.5rem;
  --story-rail-gap: 1.75rem;
  --story-rail-offset: calc(var(--story-rail-width) + var(--story-rail-gap) + 1.5rem);
  background:
    radial-gradient(circle at top left, rgba(52, 126, 149, 0.11), transparent 28%),
    radial-gradient(circle at 82% 10%, rgba(211, 133, 47, 0.11), transparent 22%),
    linear-gradient(180deg, #fcf8f2 0%, var(--story-paper) 18%, #f2e8da 100%);
  color: var(--story-ink);
  font-family: "Be Vietnam Pro", "Segoe UI", sans-serif;
  line-height: 1.7;
}

body[data-story-shell="engineering-sandbox"] main,
body[data-story-shell="engineering-sandbox"] article,
body[data-story-shell="engineering-sandbox"] section,
body[data-story-shell="engineering-sandbox"] p,
body[data-story-shell="engineering-sandbox"] li,
body[data-story-shell="engineering-sandbox"] button,
body[data-story-shell="engineering-sandbox"] input,
body[data-story-shell="engineering-sandbox"] textarea {
  font-family: inherit;
}

body[data-story-shell="engineering-sandbox"] h1,
body[data-story-shell="engineering-sandbox"] h2,
body[data-story-shell="engineering-sandbox"] h3,
body[data-story-shell="engineering-sandbox"] h4,
body[data-story-shell="engineering-sandbox"] h5,
body[data-story-shell="engineering-sandbox"] h6 {
  color: #10202b;
  font-family: "Be Vietnam Pro", "Segoe UI", sans-serif;
  letter-spacing: -0.03em;
}

body[data-story-shell="engineering-sandbox"] a {
  color: var(--story-steel);
}

body[data-story-shell="engineering-sandbox"] [data-story-chapter] {
  scroll-margin-top: 5.5rem;
}

body[data-story-shell="engineering-sandbox"] .story-hero {
  position: relative;
  margin: 0 auto 1.9rem;
  max-width: var(--story-shell-max);
  padding: 4rem 1.35rem 1.35rem;
}

body[data-story-shell="engineering-sandbox"] .story-hero::before {
  content: "";
  position: absolute;
  inset: 1rem 1rem auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(18, 32, 42, 0.22), transparent);
}

body[data-story-shell="engineering-sandbox"] .story-hero__eyebrow,
body[data-story-shell="engineering-sandbox"] .story-chip,
body[data-story-shell="engineering-sandbox"] .story-rail__label,
body[data-story-shell="engineering-sandbox"] .story-mobile-bar__eyebrow,
body[data-story-shell="engineering-sandbox"] .story-callout__label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-story-shell="engineering-sandbox"] .story-hero__eyebrow {
  color: var(--story-steel);
  margin: 0 0 0.9rem;
}

body[data-story-shell="engineering-sandbox"] .story-hero__grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.95fr);
  align-items: start;
}

body[data-story-shell="engineering-sandbox"] .story-hero__title {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.3rem);
  line-height: 0.94;
}

body[data-story-shell="engineering-sandbox"] .story-hero__summary {
  margin: 1rem 0 0;
  max-width: 46rem;
  color: var(--story-ink-soft);
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
}

body[data-story-shell="engineering-sandbox"] .story-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

body[data-story-shell="engineering-sandbox"] .story-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.72rem;
  border: 1px solid rgba(37, 87, 110, 0.22);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.88);
  color: #1c3b4c;
}

body[data-story-shell="engineering-sandbox"] .story-callout {
  border: 1px solid var(--story-border);
  border-radius: 1.4rem;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--story-shadow);
}

body[data-story-shell="engineering-sandbox"] .story-hero__panel {
  padding: 1.2rem 1.2rem 1.1rem;
}

body[data-story-shell="engineering-sandbox"] .story-hero__panel p:last-child,
body[data-story-shell="engineering-sandbox"] .story-callout p:last-child {
  margin-bottom: 0;
}

body[data-story-shell="engineering-sandbox"] .story-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

body[data-story-shell="engineering-sandbox"] .story-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.72rem 1.05rem;
  border: 1px solid rgba(18, 32, 42, 0.12);
  border-radius: 999px;
  background: #173243;
  color: #f5f8fb;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

body[data-story-shell="engineering-sandbox"] .story-button:hover,
body[data-story-shell="engineering-sandbox"] .story-button:focus-visible {
  transform: translateY(-1px);
  background: #0f2431;
}

body[data-story-shell="engineering-sandbox"] .story-button--secondary {
  background: rgba(255, 253, 248, 0.96);
  color: var(--story-steel);
}

body[data-story-shell="engineering-sandbox"] .story-button--secondary:hover,
body[data-story-shell="engineering-sandbox"] .story-button--secondary:focus-visible {
  background: rgba(255, 255, 255, 0.9);
}

body[data-story-shell="engineering-sandbox"] .story-callout[data-story-callout] {
  margin: 1.15rem auto;
  max-width: min(var(--story-shell-max), calc(100vw - 2rem));
  padding: 1rem 1.2rem;
}

body[data-story-shell="engineering-sandbox"] .story-callout__label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--story-steel);
}

body[data-story-shell="engineering-sandbox"] .story-callout[data-story-callout="play"] {
  border-color: rgba(52, 126, 149, 0.24);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(235, 244, 246, 0.96));
}

body[data-story-shell="engineering-sandbox"] .story-callout[data-story-callout="engineering"] {
  border-color: rgba(211, 133, 47, 0.22);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(247, 236, 220, 0.96));
}

body[data-story-shell="engineering-sandbox"] .story-callout[data-story-callout="story"] {
  border-color: rgba(159, 197, 187, 0.34);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(238, 247, 244, 0.96));
}

body[data-story-shell="engineering-sandbox"] .story-companion-panel {
  display: grid;
  gap: 1rem;
}

body[data-story-shell="engineering-sandbox"] .story-companion-panel__title {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 1.08;
}

body[data-story-shell="engineering-sandbox"] .story-companion-panel__intro .story-shell-caption {
  margin-top: 0.7rem;
}

body[data-story-shell="engineering-sandbox"] .story-companion-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

body[data-story-shell="engineering-sandbox"] .story-companion-card {
  padding: 1rem 1rem 0.95rem;
  border: 1px solid rgba(18, 32, 42, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.58);
}

body[data-story-shell="engineering-sandbox"] .story-companion-card__link {
  color: var(--story-ink);
  font-family: "Fraunces", "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
}

body[data-story-shell="engineering-sandbox"] .story-companion-card__link:hover,
body[data-story-shell="engineering-sandbox"] .story-companion-card__link:focus-visible {
  color: #8a3b22;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

body[data-story-shell="engineering-sandbox"] .story-companion-card p {
  margin: 0.55rem 0 0;
  color: var(--story-ink-soft);
}

body[data-story-shell="engineering-sandbox"] .story-rail,
body[data-story-shell="engineering-sandbox"] .story-mobile-bar {
  z-index: 12;
}

body[data-story-shell="engineering-sandbox"] .story-rail {
  position: fixed;
  top: 5.25rem;
  left: 1.25rem;
  width: var(--story-rail-width);
  display: none;
}

body[data-story-shell="engineering-sandbox"] .story-rail__panel {
  padding: 1rem 0.95rem;
  border-color: var(--story-border-strong);
  background: rgba(250, 244, 236, 0.98);
  max-height: calc(100vh - 6.5rem);
  overflow: auto;
  scrollbar-width: thin;
}

body[data-story-shell="engineering-sandbox"] .story-rail__header {
  display: grid;
  gap: 0.35rem;
}

body[data-story-shell="engineering-sandbox"] .story-rail__summary {
  display: grid;
  gap: 0.35rem;
}

body[data-story-shell="engineering-sandbox"] .story-rail__meta,
body[data-story-shell="engineering-sandbox"] .story-mobile-bar__status,
body[data-story-shell="engineering-sandbox"] .story-mobile-sheet__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

body[data-story-shell="engineering-sandbox"] .story-progress {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 0.38rem;
  border-radius: 999px;
  background: rgba(41, 90, 114, 0.09);
}

body[data-story-shell="engineering-sandbox"] .story-progress__bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(37, 87, 110, 0.95), rgba(211, 135, 45, 0.95));
  transition: width 180ms ease;
}

body[data-story-shell="engineering-sandbox"] .story-rail__count,
body[data-story-shell="engineering-sandbox"] .story-rail__position,
body[data-story-shell="engineering-sandbox"] .story-mobile-bar__position,
body[data-story-shell="engineering-sandbox"] .story-mobile-sheet__position,
body[data-story-shell="engineering-sandbox"] .story-progress__value,
body[data-story-shell="engineering-sandbox"] .story-rail__current,
body[data-story-shell="engineering-sandbox"] .story-mobile-sheet__current {
  min-width: 0;
  color: var(--story-ink-soft);
  font-size: 0.86rem;
  line-height: 1.4;
}

body[data-story-shell="engineering-sandbox"] .story-rail__count {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body[data-story-shell="engineering-sandbox"] .story-rail__position,
body[data-story-shell="engineering-sandbox"] .story-mobile-bar__position,
body[data-story-shell="engineering-sandbox"] .story-mobile-sheet__position,
body[data-story-shell="engineering-sandbox"] .story-progress__value {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

body[data-story-shell="engineering-sandbox"] .story-rail__nav,
body[data-story-shell="engineering-sandbox"] .story-mobile-bar__nav,
body[data-story-shell="engineering-sandbox"] .story-mobile-sheet__nav {
  display: flex;
  gap: 0.55rem;
}

body[data-story-shell="engineering-sandbox"] .story-rail__nav {
  flex-direction: column;
  margin-top: 0.8rem;
}

body[data-story-shell="engineering-sandbox"] .story-rail__link,
body[data-story-shell="engineering-sandbox"] .story-mobile-bar__link,
body[data-story-shell="engineering-sandbox"] .story-mobile-sheet__link {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.5rem 0.72rem;
  border-radius: 999px;
  color: var(--story-ink-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.79rem;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

body[data-story-shell="engineering-sandbox"] .story-rail__link,
body[data-story-shell="engineering-sandbox"] .story-mobile-sheet__link {
  white-space: normal;
}

body[data-story-shell="engineering-sandbox"] .story-mobile-bar__link {
  white-space: nowrap;
}

body[data-story-shell="engineering-sandbox"] .story-rail__link::before,
body[data-story-shell="engineering-sandbox"] .story-mobile-bar__link::before,
body[data-story-shell="engineering-sandbox"] .story-mobile-sheet__link::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(41, 90, 114, 0.25);
  background: rgba(41, 90, 114, 0.08);
}

body[data-story-shell="engineering-sandbox"] .story-rail__link:hover,
body[data-story-shell="engineering-sandbox"] .story-rail__link:focus-visible,
body[data-story-shell="engineering-sandbox"] .story-mobile-bar__link:hover,
body[data-story-shell="engineering-sandbox"] .story-mobile-bar__link:focus-visible,
body[data-story-shell="engineering-sandbox"] .story-mobile-sheet__link:hover,
body[data-story-shell="engineering-sandbox"] .story-mobile-sheet__link:focus-visible {
  transform: translateX(1px);
  background: rgba(41, 90, 114, 0.08);
  color: var(--story-ink);
}

body[data-story-shell="engineering-sandbox"] .story-rail__link.is-active,
body[data-story-shell="engineering-sandbox"] .story-mobile-bar__link.is-active,
body[data-story-shell="engineering-sandbox"] .story-mobile-sheet__link.is-active {
  background: rgba(41, 90, 114, 0.14);
  color: #143246;
}

body[data-story-shell="engineering-sandbox"] .story-rail__link.is-complete,
body[data-story-shell="engineering-sandbox"] .story-mobile-bar__link.is-complete,
body[data-story-shell="engineering-sandbox"] .story-mobile-sheet__link.is-complete {
  color: #20475a;
}

body[data-story-shell="engineering-sandbox"] .story-rail__link.is-active::before,
body[data-story-shell="engineering-sandbox"] .story-mobile-bar__link.is-active::before,
body[data-story-shell="engineering-sandbox"] .story-mobile-sheet__link.is-active::before {
  background: var(--story-accent);
  border-color: rgba(211, 135, 45, 0.5);
}

body[data-story-shell="engineering-sandbox"] .story-rail__link.is-complete::before,
body[data-story-shell="engineering-sandbox"] .story-mobile-bar__link.is-complete::before,
body[data-story-shell="engineering-sandbox"] .story-mobile-sheet__link.is-complete::before {
  background: rgba(37, 87, 110, 0.3);
  border-color: rgba(37, 87, 110, 0.36);
}

body[data-story-shell="engineering-sandbox"] .story-mobile-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  padding: 0.42rem 0.72rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(246, 240, 231, 0.98);
  border-top: 1px solid rgba(18, 32, 42, 0.14);
  box-shadow: 0 -10px 22px rgba(18, 32, 42, 0.08);
}

body[data-story-shell="engineering-sandbox"] .story-mobile-bar__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.2rem;
}

body[data-story-shell="engineering-sandbox"] .story-mobile-bar__meta,
body[data-story-shell="engineering-sandbox"] .story-mobile-sheet__meta {
  min-width: 0;
  flex: 1 1 auto;
}

body[data-story-shell="engineering-sandbox"] .story-mobile-bar__eyebrow {
  color: var(--story-steel);
  margin-bottom: 0;
}

body[data-story-shell="engineering-sandbox"] .story-mobile-bar__current {
  min-width: 0;
  color: var(--story-ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-story-shell="engineering-sandbox"] .story-mobile-bar__status,
body[data-story-shell="engineering-sandbox"] .story-mobile-sheet__status {
  margin-top: 0.18rem;
}

body[data-story-shell="engineering-sandbox"] .story-mobile-bar__progress {
  margin-bottom: 0.45rem;
}

body[data-story-shell="engineering-sandbox"] .story-mobile-bar__toggle,
body[data-story-shell="engineering-sandbox"] .story-mobile-sheet__close {
  border: 1px solid rgba(37, 87, 110, 0.2);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.96);
  color: var(--story-steel);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

body[data-story-shell="engineering-sandbox"] .story-mobile-bar__toggle {
  flex: 0 0 auto;
  min-height: 2.1rem;
  padding: 0.55rem 0.8rem;
}

body[data-story-shell="engineering-sandbox"] .story-mobile-bar__nav {
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scroll-snap-type: x proximity;
}

body[data-story-shell="engineering-sandbox"] .story-mobile-bar__nav::-webkit-scrollbar {
  display: none;
}

body[data-story-shell="engineering-sandbox"] {
  padding-bottom: 5.5rem;
}

body[data-story-shell="engineering-sandbox"][data-story-nav-open="true"] {
  overflow: hidden;
}

body[data-story-shell="engineering-sandbox"] .story-mobile-sheet {
  position: fixed;
  inset: 0;
  z-index: 13;
  display: grid;
  align-items: end;
}

body[data-story-shell="engineering-sandbox"] .story-mobile-sheet[hidden] {
  display: none;
}

body[data-story-shell="engineering-sandbox"] .story-mobile-sheet__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(18, 32, 42, 0.3);
}

body[data-story-shell="engineering-sandbox"] .story-mobile-sheet__panel {
  position: relative;
  margin: 0;
  padding: 1rem 0.9rem calc(1rem + env(safe-area-inset-bottom));
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  max-height: min(76vh, 34rem);
  overflow: auto;
}

body[data-story-shell="engineering-sandbox"] .story-mobile-sheet__header {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

body[data-story-shell="engineering-sandbox"] .story-mobile-sheet__title {
  margin: 0.18rem 0 0;
  font-size: 1.2rem;
  line-height: 1.1;
}

body[data-story-shell="engineering-sandbox"] .story-mobile-sheet__close {
  flex: 0 0 auto;
  min-height: 2.05rem;
  padding: 0.52rem 0.78rem;
}

body[data-story-shell="engineering-sandbox"] .story-mobile-sheet__nav {
  flex-direction: column;
  margin-top: 0.9rem;
}

body[data-story-shell="engineering-sandbox"] .story-mobile-sheet__link {
  align-items: flex-start;
  max-width: 100%;
  white-space: normal;
  line-height: 1.35;
}

body[data-story-shell="engineering-sandbox"] .story-inline-note {
  max-width: 46rem;
  margin: 0.9rem auto 0;
}

body[data-story-shell="engineering-sandbox"] .story-inline-note p {
  color: var(--story-ink-soft);
}

body[data-story-shell="engineering-sandbox"] #intro-icon .logo,
body[data-story-shell="engineering-sandbox"] #intro-icon-mobile .logo,
body[data-story-shell="engineering-sandbox"] .cardSpan .text h2,
body[data-story-shell="engineering-sandbox"] #intro__date,
body[data-story-shell="engineering-sandbox"] #subtitle,
body[data-story-shell="engineering-sandbox"] .sliderText,
body[data-story-shell="engineering-sandbox"] #toc a,
body[data-story-shell="engineering-sandbox"] .button-container p {
  font-family: "IBM Plex Mono", monospace;
}

body[data-story-shell="engineering-sandbox"] .story-shell-caption {
  color: var(--story-ink-soft);
  font-size: 0.96rem;
}

body[data-story-shell="engineering-sandbox"] .story-hero--tight {
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
}

body[data-story-shell="engineering-sandbox"][data-story-nav="native"] header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 240, 231, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(18, 32, 42, 0.08);
}

body[data-story-shell="engineering-sandbox"][data-story-nav="native"] header nav {
  box-shadow: none;
}

body[data-story-shell="engineering-sandbox"][data-story-nav="native"] #toc {
  border: 1px solid rgba(18, 32, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.9);
  padding: 0.25rem;
}

body[data-story-shell="engineering-sandbox"][data-story-nav="native"] #toc a {
  border-radius: 999px;
  transition: background-color 160ms ease, color 160ms ease;
}

body[data-story-shell="engineering-sandbox"][data-story-nav="native"] #toc a.is-active,
body[data-story-shell="engineering-sandbox"][data-story-nav="native"] #toc a[aria-current="true"] {
  background: rgba(41, 90, 114, 0.14);
  color: #143246;
}

body[data-story-shell="engineering-sandbox"][data-story-nav="native"] .bubble {
  opacity: 0;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] {
  --story-shell-max: 1220px;
  background:
    radial-gradient(circle at top left, rgba(52, 126, 149, 0.08), transparent 22%),
    radial-gradient(circle at 88% 14%, rgba(211, 133, 47, 0.12), transparent 18%),
    linear-gradient(180deg, #f7f2ea 0%, #efe4d4 100%);
  padding-bottom: 1.25rem;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="lab"][data-story-nav="native"] {
  padding-top: 4.25rem;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .story-rail,
body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .story-mobile-bar {
  display: none !important;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .story-hero {
  margin: 0 auto 1.25rem;
  max-width: min(var(--story-shell-max), calc(100vw - 2rem));
  padding: 1.8rem 1rem 0.8rem;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .story-hero::before {
  inset: 0 auto auto;
  width: 100%;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .story-hero__grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.95fr);
  gap: 1.1rem;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .story-hero__title {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 0.98;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .story-hero__summary {
  max-width: 40rem;
  font-size: 1.02rem;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .story-callout {
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(18, 32, 42, 0.08);
}

body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .story-hero__panel {
  padding: 1rem 1rem 0.95rem;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .story-hero__actions {
  gap: 0.65rem;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .story-lab-main,
body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] > .container,
body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] > .container-fluid,
body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] > main.container {
  width: min(var(--story-shell-max), calc(100vw - 2rem));
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] > .container-fluid,
body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] > .container,
body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] > main.container {
  padding-top: 0;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .story-lab-main {
  padding-bottom: 0.5rem;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] #reference-footer {
  width: min(var(--story-shell-max), calc(100vw - 2rem));
  margin-left: auto;
  margin-right: auto;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .story-lab-panel {
  margin: 0 auto 1rem;
  max-width: min(var(--story-shell-max), calc(100vw - 2rem));
  padding: 1rem 1.05rem;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .story-lab-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
}

body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .story-checklist {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .story-checklist li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .story-checklist__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: rgba(37, 87, 110, 0.14);
  color: #143246;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .story-checklist strong {
  display: block;
  margin-bottom: 0.12rem;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .story-lab-kicker {
  margin: 0 0 0.35rem;
  color: var(--story-steel);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .story-lab-main .well,
body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .story-lab-main .card,
body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .story-lab-main .chapter-card {
  border: 1px solid rgba(18, 32, 42, 0.12);
  border-radius: 1rem;
  background: rgba(255, 252, 247, 0.92);
  box-shadow: 0 10px 24px rgba(18, 32, 42, 0.06);
}

body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .story-lab-main .card-header,
body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .story-lab-main .card-footer {
  background: rgba(239, 228, 212, 0.7);
  border-color: rgba(18, 32, 42, 0.08);
}

body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .story-lab-main .btn,
body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .story-lab-main .form-control {
  border-radius: 0.75rem;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .navbar {
  border: none;
  box-shadow: 0 10px 26px rgba(18, 32, 42, 0.16);
}

body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .navbar-inverse,
body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .bg-dark,
body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .navbar-dark {
  background: linear-gradient(180deg, #183546, #102430) !important;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .navbar-brand,
body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .navbar-nav > li > a,
body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .nav-link {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.02em;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .navbar-nav > .active > a,
body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .navbar-nav > .active > a:hover,
body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .navbar-nav > .active > a:focus,
body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .nav-item.active .nav-link {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .story-native-link {
  position: relative;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .story-native-link.is-active::after,
body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .story-native-link[aria-current="true"]::after {
  content: "";
  position: absolute;
  right: 0.8rem;
  bottom: 0.55rem;
  left: 0.8rem;
  height: 2px;
  background: var(--story-accent);
}

body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] {
  --story-practice-max: 70rem;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-hero {
  max-width: var(--story-practice-max);
  padding-top: 2.6rem;
  padding-bottom: 1rem;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-hero::before {
  inset: 0.55rem 1rem auto;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-hero__grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.95fr);
  gap: 1.4rem;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-hero__title {
  font-size: clamp(2.25rem, 5.5vw, 4.15rem);
  line-height: 0.98;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-hero__summary {
  max-width: 42rem;
  font-size: clamp(0.98rem, 1.45vw, 1.14rem);
}

body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-chip {
  background: rgba(255, 252, 247, 0.92);
  border-color: rgba(37, 87, 110, 0.18);
}

body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-practice-main {
  max-width: var(--story-practice-max);
  margin: 0 auto;
  padding: 0 1rem 5.5rem;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-practice-callout {
  margin: 0 auto 1rem;
  max-width: var(--story-practice-max);
  padding: 0.95rem 1rem;
  border-radius: 1.15rem;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.97), rgba(243, 238, 230, 0.97));
  box-shadow: 0 12px 24px rgba(18, 32, 42, 0.08);
}

body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-practice-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, 0.85fr);
  align-items: start;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-practice-panel {
  padding: 1rem 1.05rem;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-practice-panel p {
  color: var(--story-ink-soft);
}

body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-practice-kicker {
  margin: 0 0 0.35rem;
  color: var(--story-steel);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-practice-checklist {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-practice-checklist li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-practice-checklist__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border: 1px solid rgba(52, 126, 149, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #173243;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  font-weight: 600;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-practice-checklist strong {
  display: block;
  margin-bottom: 0.1rem;
  color: var(--story-ink);
}

body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-practice-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 auto 1rem;
  max-width: var(--story-practice-max);
  padding: 0 1rem;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-practice-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.25rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(18, 32, 42, 0.11);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.88);
  color: var(--story-ink-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-practice-hint strong {
  color: var(--story-ink);
}

body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-practice-focus {
  position: relative;
  margin-top: 0.8rem;
  border: 1px solid rgba(18, 32, 42, 0.12);
  border-radius: 1.4rem;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(244, 238, 228, 0.94));
  box-shadow: var(--story-shadow);
  overflow: clip;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-practice-focus::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 3px solid rgba(52, 126, 149, 0.5);
  pointer-events: none;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-practice-focus__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.95rem 1rem 0.8rem;
  border-bottom: 1px solid rgba(18, 32, 42, 0.1);
  background: rgba(255, 252, 247, 0.86);
  color: var(--story-ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-practice-focus__label strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-practice-surface {
  padding: 1rem;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-practice-surface > :first-child {
  margin-top: 0;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-practice-surface > :last-child {
  margin-bottom: 0;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .page-header {
  margin: 0 0 0.9rem;
  padding: 0 1rem;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .page-header h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
}

body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .page-header p {
  margin-top: 0.45rem;
  color: var(--story-ink-soft);
  font-size: 0.98rem;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-practice-focus .row,
body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-practice-focus .well,
body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-practice-focus .panel,
body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-practice-focus .btn,
body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-practice-focus .form-control {
  border-radius: 0.9rem;
}

body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-practice-focus .well,
body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-practice-focus .panel {
  border: 1px solid rgba(18, 32, 42, 0.1);
  background: rgba(255, 253, 248, 0.84);
  box-shadow: 0 8px 20px rgba(18, 32, 42, 0.05);
}

body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] #reference-footer {
  width: min(var(--story-practice-max), calc(100vw - 2rem));
  margin-left: auto;
  margin-right: auto;
}

body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] {
  --story-practice-max: 76rem;
  --story-shadow: 0 18px 38px rgba(2, 8, 18, 0.22);
  background:
    radial-gradient(circle at top left, rgba(71, 123, 205, 0.16), transparent 26%),
    radial-gradient(circle at 84% 0%, rgba(255, 161, 94, 0.14), transparent 24%),
    linear-gradient(180deg, #10151e 0%, #171d28 38%, #121822 100%);
  color: #ebeff6;
}

body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] h1,
body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] h2,
body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] h3,
body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] h4,
body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] h5,
body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] h6 {
  color: #f7f8fb;
}

body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] a {
  color: #8cc7ff;
}

body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] .story-hero {
  padding-top: 2.35rem;
  padding-bottom: 1.15rem;
}

body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] .story-hero::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}

body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] .story-hero__eyebrow,
body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] .story-practice-kicker,
body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] .story-callout__label {
  color: #8cc7ff;
}

body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] .story-hero__summary,
body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] .story-practice-panel p,
body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] .page-header p,
body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] .story-practice-hint {
  color: #c7d3e4;
}

body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] .story-chip {
  border-color: rgba(140, 199, 255, 0.2);
  background: rgba(13, 19, 29, 0.76);
  color: #eff5ff;
}

body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] .story-callout,
body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] .story-practice-focus {
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(18, 24, 34, 0.96), rgba(14, 20, 31, 0.94));
  color: #edf2f9;
  box-shadow: 0 18px 36px rgba(2, 8, 18, 0.28);
}

body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] .story-practice-callout {
  background: linear-gradient(180deg, rgba(20, 26, 38, 0.96), rgba(14, 20, 30, 0.96));
}

body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] .story-button {
  border-color: rgba(140, 199, 255, 0.18);
  background: linear-gradient(180deg, #ffa45f, #dd6f2b);
  color: #16100d;
  font-weight: 700;
}

body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] .story-button:hover,
body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] .story-button:focus-visible {
  background: linear-gradient(180deg, #ffb06f, #e17b36);
}

body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] .story-button--secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #f4f7fb;
  border-color: rgba(255, 255, 255, 0.14);
}

body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] .story-button--secondary:hover,
body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] .story-button--secondary:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] .story-practice-checklist__step {
  border-color: rgba(140, 199, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #f7f9fc;
}

body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] .story-practice-checklist strong,
body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] .story-practice-focus__label strong,
body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] .story-practice-hint strong {
  color: #fff7ef;
}

body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] .story-practice-strip {
  gap: 0.75rem;
}

body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] .story-practice-hint {
  border-color: rgba(140, 199, 255, 0.18);
  background: rgba(15, 23, 35, 0.86);
}

body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] .story-practice-focus::before {
  border-top-color: rgba(255, 161, 94, 0.9);
}

body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] .story-practice-focus__label {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #d8e2f1;
}

body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] .story-practice-surface {
  padding: 1rem 1rem 1.25rem;
}

body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] .story-practice-focus .widget,
body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] .story-practice-focus .widget-drumpad,
body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] .story-practice-focus .widget-pianoroll,
body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] .story-practice-focus .body-text.text-container {
  max-width: 100%;
}

body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] .story-practice-focus .widget,
body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] .story-practice-focus .widget-drumpad {
  margin-left: 0;
  margin-right: 0;
}

body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] .story-practice-focus .body-text.text-container {
  color: #dbe3ef;
}

body[data-story-shell="engineering-sandbox"][data-story-family="ableton-practice"] #reference-footer {
  width: min(64rem, calc(100vw - 2rem));
}

body[data-story-shell="engineering-sandbox"] .story-legacy-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
}

body[data-story-shell="engineering-sandbox"][data-story-family="engineering-longform"] {
  --story-shell-max: 56rem;
  box-sizing: border-box;
}

body[data-story-shell="engineering-sandbox"][data-story-family="engineering-longform"] .story-hero {
  max-width: min(var(--story-shell-max), calc(100vw - 2rem));
  margin-bottom: 1rem;
  padding-top: 2.65rem;
  padding-bottom: 1rem;
}

body[data-story-shell="engineering-sandbox"][data-story-family="engineering-longform"] .story-hero__title {
  font-size: clamp(2.35rem, 5.6vw, 4.5rem);
  line-height: 0.97;
}

body[data-story-shell="engineering-sandbox"][data-story-family="engineering-longform"] .story-hero__summary {
  max-width: 43rem;
}

body[data-story-shell="engineering-sandbox"][data-story-family="engineering-longform"] #main_container {
  max-width: min(var(--story-shell-max), calc(100vw - 2rem));
  margin: 0 auto;
}

body[data-story-shell="engineering-sandbox"][data-story-family="engineering-longform"] #content {
  max-width: 100%;
}

body[data-story-shell="engineering-sandbox"][data-story-family="engineering-longform"] #body {
  padding-bottom: 1.5rem;
}

body[data-story-shell="engineering-sandbox"][data-story-family="engineering-longform"] #main_container,
body[data-story-shell="engineering-sandbox"][data-story-family="engineering-longform"] #main_container p,
body[data-story-shell="engineering-sandbox"][data-story-family="engineering-longform"] #main_container li,
body[data-story-shell="engineering-sandbox"][data-story-family="engineering-longform"] #main_container button,
body[data-story-shell="engineering-sandbox"][data-story-family="engineering-longform"] #main_container input,
body[data-story-shell="engineering-sandbox"][data-story-family="engineering-longform"] #main_container textarea {
  font-family: system-ui, "Helvetica Neue", Arial, sans-serif;
}

body[data-story-shell="engineering-sandbox"][data-story-family="engineering-longform"] #main_container h1,
body[data-story-shell="engineering-sandbox"][data-story-family="engineering-longform"] #main_container h2,
body[data-story-shell="engineering-sandbox"][data-story-family="engineering-longform"] #main_container h3,
body[data-story-shell="engineering-sandbox"][data-story-family="engineering-longform"] #main_container h4,
body[data-story-shell="engineering-sandbox"][data-story-family="engineering-longform"] #main_container h5,
body[data-story-shell="engineering-sandbox"][data-story-family="engineering-longform"] #main_container h6 {
  color: #535353;
  font-family: system-ui, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

body[data-story-shell="engineering-sandbox"][data-story-family="engineering-longform"] .article > .post_date,
body[data-story-shell="engineering-sandbox"][data-story-family="engineering-longform"] .article > .post_title {
  display: none;
}

body[data-story-shell="engineering-sandbox"][data-story-family="engineering-longform"] .story-auto-section {
  display: block;
}

body[data-story-shell="engineering-sandbox"][data-story-family="engineering-longform"] #reference-footer {
  width: min(var(--story-shell-max), calc(100vw - 2rem));
  margin-left: auto;
  margin-right: auto;
}

body[data-story-shell="engineering-sandbox"] #introduction.story-intro-compact {
  padding-bottom: 0.6rem;
}

body[data-story-shell="engineering-sandbox"] #introduction.story-intro-compact h1 {
  margin-bottom: 0.25rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

body[data-story-shell="engineering-sandbox"] #introduction.story-intro-compact #subtitle {
  margin-bottom: 0.25rem;
}

body[data-story-shell="engineering-sandbox"][data-story-family="ev-essay"] .story-hero {
  margin-bottom: 2.4rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background:
    radial-gradient(circle at top right, rgba(203, 226, 228, 0.45), transparent 36%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.97), rgba(247, 241, 232, 0.94));
}

body[data-story-shell="engineering-sandbox"][data-story-family="ev-essay"] .story-hero__eyebrow {
  color: #5e6f7a;
}

body[data-story-shell="engineering-sandbox"][data-story-family="ev-essay"] .story-hero__title {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

body[data-story-shell="engineering-sandbox"][data-story-family="ev-essay"] .story-chip {
  background: rgba(32, 71, 88, 0.08);
}

body[data-story-shell="engineering-sandbox"][data-story-family="ev-essay"] .story-rail__panel,
body[data-story-shell="engineering-sandbox"][data-story-family="ev-essay"] .story-mobile-bar {
  background: rgba(248, 243, 235, 0.97);
}

body[data-story-shell="engineering-sandbox"][data-reference-text="Double Descent"] #doubledescent-container,
body[data-story-shell="engineering-sandbox"][data-reference-text="Double Descent"] #scatter-container,
body[data-story-shell="engineering-sandbox"][data-reference-text="Double Descent"] #error-container {
  overflow-x: clip;
}

body[data-story-shell="engineering-sandbox"][data-reference-text="Double Descent"] #doubledescent-container svg,
body[data-story-shell="engineering-sandbox"][data-reference-text="Double Descent"] #scatter-container svg,
body[data-story-shell="engineering-sandbox"][data-reference-text="Double Descent"] #error-container svg {
  display: block;
  max-width: 100%;
  height: auto;
}

@media (min-width: 1380px) {
  body[data-story-shell="engineering-sandbox"][data-story-nav="generated"] {
    padding-left: var(--story-rail-offset);
    padding-bottom: 0;
  }

  body[data-story-shell="engineering-sandbox"][data-story-nav="generated"] .story-rail {
    display: block;
  }

  body[data-story-shell="engineering-sandbox"][data-story-nav="generated"] .story-mobile-bar {
    display: none;
  }
}

@media (min-width: 1200px) {
  body[data-story-shell="engineering-sandbox"][data-story-family="engineering-longform"][data-story-nav="generated"] {
    padding-left: var(--story-rail-offset);
    padding-bottom: 0;
  }

  body[data-story-shell="engineering-sandbox"][data-story-family="engineering-longform"][data-story-nav="generated"] .story-rail {
    display: block;
  }

  body[data-story-shell="engineering-sandbox"][data-story-family="engineering-longform"][data-story-nav="generated"] .story-mobile-bar,
  body[data-story-shell="engineering-sandbox"][data-story-family="engineering-longform"][data-story-nav="generated"] .story-mobile-sheet {
    display: none;
  }
}

@media (max-width: 980px) {
  body[data-story-shell="engineering-sandbox"] .story-hero__grid {
    grid-template-columns: 1fr;
  }

  body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-hero__grid {
    grid-template-columns: 1fr;
  }

  body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-practice-grid {
    grid-template-columns: 1fr;
  }

  body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .story-lab-grid {
    grid-template-columns: 1fr;
  }
}

body[data-story-shell="engineering-sandbox"] .story-rail__link {
  max-width: 100%;
  line-height: 1.45;
}

body[data-story-shell="engineering-sandbox"] .story-mobile-bar__link {
  flex: 0 0 auto;
  max-width: min(14rem, calc(100vw - 6rem));
  overflow: hidden;
  text-overflow: ellipsis;
  scroll-snap-align: center;
}

@media (max-width: 720px) {
  body[data-story-shell="engineering-sandbox"] .story-hero {
    padding-top: 2.6rem;
  }

  body[data-story-shell="engineering-sandbox"] .story-hero__title {
    font-size: clamp(2.35rem, 11vw, 3.8rem);
  }

  body[data-story-shell="engineering-sandbox"] .story-hero__summary {
    font-size: 1rem;
  }

  body[data-story-shell="engineering-sandbox"] .story-callout[data-story-callout] {
    max-width: calc(100vw - 1rem);
    margin-inline: 0.5rem;
  }

  body[data-story-shell="engineering-sandbox"][data-story-variant="lab"][data-story-nav="native"] {
    padding-top: 3.7rem;
  }

  body[data-story-shell="engineering-sandbox"][data-story-variant="lab"] .story-hero {
    padding-top: 1.35rem;
  }

  body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-hero {
    padding-top: 1.9rem;
  }

  body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-hero__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-hero__panel {
    width: 100%;
  }

  body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-practice-main {
    padding-inline: 0.5rem;
  }

  body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-practice-strip,
  body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .page-header {
    padding-inline: 0.5rem;
  }

  body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-practice-focus__label,
  body[data-story-shell="engineering-sandbox"][data-story-variant="practice"] .story-practice-surface {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-story-shell="engineering-sandbox"] .story-button,
  body[data-story-shell="engineering-sandbox"] .story-rail__link,
  body[data-story-shell="engineering-sandbox"] .story-mobile-bar__link,
  body[data-story-shell="engineering-sandbox"] .story-mobile-sheet__link {
    transition: none;
  }
}
