.lab-studio-page {
  --studio-navy: #071d2a;
  --studio-blue: #0c5267;
  --studio-sky: #dff3f5;
  --studio-paper: #fbfaf4;
  --studio-panel: #ffffff;
  --studio-line: #c9d9d7;
  --studio-green: #0c745f;
  --studio-lime: #b8ed9f;
  --studio-amber: #f2c75c;
  --studio-coral: #df765d;
  --studio-muted: #5e716d;
  background: var(--studio-paper);
}

.studio-hero {
  position: relative;
  min-height: 650px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 82% 14%, rgba(113, 226, 218, .26), transparent 25%),
    radial-gradient(circle at 73% 90%, rgba(46, 135, 164, .4), transparent 32%),
    linear-gradient(122deg, #061c29 0%, #0a3040 48%, #0b5665 100%);
}

.studio-hero::before,
.studio-hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(175, 236, 230, .22);
  border-radius: 50%;
  pointer-events: none;
}

.studio-hero::before {
  width: 650px;
  height: 650px;
  right: -180px;
  top: -300px;
  box-shadow: 0 0 0 78px rgba(112, 224, 218, .035), 0 0 0 166px rgba(112, 224, 218, .025);
}

.studio-hero::after {
  width: 380px;
  height: 380px;
  left: -250px;
  bottom: -270px;
  box-shadow: 0 0 0 62px rgba(245, 203, 88, .035);
}

.studio-hero-grid {
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image:
    linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent, black 48%, black);
}

.studio-hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 70px;
  align-items: center;
  padding-block: 92px;
}

.studio-hero .next-kicker { color: #9debd9; }

.studio-hero-copy h1 {
  max-width: 760px;
  margin: 22px 0 25px;
  color: white;
  font-size: clamp(3.8rem, 6.1vw, 6.7rem);
  line-height: .88;
  letter-spacing: -.065em;
}

.studio-hero-copy h1 em {
  color: #a8eadc;
  font: 500 .81em/1.02 var(--next-serif);
  letter-spacing: -.03em;
}

.studio-hero-copy > p {
  max-width: 670px;
  color: #bdd8d6;
  font-size: 18px;
  line-height: 1.72;
}

.studio-hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
}

.studio-hero-actions .next-button.dark {
  color: #08231f;
  background: var(--studio-amber);
  border-color: var(--studio-amber);
}

.studio-hero-actions > span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #a8c7c4;
  font-size: 11px;
  font-weight: 700;
}

.studio-hero-actions > span b { color: white; font-size: 22px; }

.studio-path {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(194, 235, 231, .25);
  background: rgba(3, 21, 32, .45);
  box-shadow: 0 30px 90px rgba(0, 10, 16, .28);
  backdrop-filter: blur(15px);
}

.studio-path article {
  min-height: 124px;
  display: grid;
  align-content: end;
  padding: 20px;
  border: 1px solid rgba(215, 244, 241, .15);
  background: rgba(255,255,255,.055);
}

.studio-path article > span {
  align-self: start;
  color: #77d7c5;
  font-size: 10px;
  font-weight: 900;
}

.studio-path article b { margin-top: 24px; font-size: 15px; }
.studio-path article small { margin-top: 4px; color: #93b7b3; }
.studio-path > i { align-self: center; color: #76c5b7; font-style: normal; }
.studio-path > i:nth-of-type(2) { display: none; }
.studio-path > article:nth-of-type(3) { grid-column: 1 / 2; }
.studio-path > i:nth-of-type(3) { grid-column: 2; grid-row: 2; }

.studio-path-outcomes {
  grid-column: 3;
  grid-row: 2;
  align-content: center !important;
  gap: 9px;
  border-color: rgba(184, 237, 159, .35) !important;
  background: rgba(184, 237, 159, .08) !important;
}

.studio-path-outcomes b {
  margin: 0 !important;
  padding-left: 13px;
  border-left: 3px solid var(--studio-lime);
  color: #e8fff0;
  font-size: 11px !important;
  letter-spacing: .09em;
}

.studio-path-outcomes b:nth-child(2) { border-color: var(--studio-coral); }
.studio-path-outcomes b:nth-child(3) { border-color: var(--studio-amber); }

.studio-boundary-strip {
  color: #d9ece9;
  background: #04151d;
  border-top: 1px solid rgba(255,255,255,.08);
}

.studio-boundary-strip .next-shell {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.studio-boundary-strip span {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr 1fr;
  column-gap: 10px;
  align-content: center;
  padding: 18px 25px;
  border-right: 1px solid rgba(255,255,255,.1);
}

.studio-boundary-strip span:first-child { border-left: 1px solid rgba(255,255,255,.1); }
.studio-boundary-strip b { align-self: end; font-size: 11px; }
.studio-boundary-strip em { color: #7fa29e; font-size: 10px; font-style: normal; }

.status-dot {
  grid-row: 1 / 3;
  align-self: center;
  width: 8px;
  height: 8px;
  background: var(--studio-amber);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(242,199,92,.1);
}

.status-dot.online { background: #70dda5; box-shadow: 0 0 0 5px rgba(112,221,165,.1); }
.status-dot.off { background: #e48973; box-shadow: 0 0 0 5px rgba(228,137,115,.1); }
.status-dot.neutral { background: #75c8d4; box-shadow: 0 0 0 5px rgba(117,200,212,.1); }

.studio-section { padding: 96px 0 110px; background: linear-gradient(#f9f8f1, #eff7f3); }

.studio-section-heading {
  display: grid;
  grid-template-columns: 1fr .72fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 44px;
}

.studio-section-heading h2 {
  max-width: 780px;
  margin: 16px 0 0;
  font-size: clamp(3rem, 5vw, 5.4rem);
  line-height: .94;
  letter-spacing: -.055em;
}

.studio-section-heading > p { color: var(--studio-muted); line-height: 1.75; }

.studio-app {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  border: 1px solid #b8cbc8;
  background: white;
  box-shadow: 0 35px 90px rgba(25, 61, 53, .12);
}

.studio-library {
  display: flex;
  flex-direction: column;
  color: #d6e7e4;
  background: var(--studio-navy);
  border-right: 1px solid #bdd0cd;
}

.studio-library-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 22px;
  border-bottom: 1px solid rgba(255,255,255,.11);
}

.studio-library-head span { font-size: 12px; font-weight: 900; }
.studio-library-head small { color: #7f9d99; font-size: 9px; text-transform: uppercase; }
.studio-sample-list { display: grid; padding: 12px; gap: 5px; }

.studio-sample-button {
  width: 100%;
  display: grid;
  grid-template-columns: 35px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px 12px;
  color: #bfd3cf;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
}

.studio-sample-button:hover { color: white; background: rgba(255,255,255,.055); }
.studio-sample-button.active { color: white; background: rgba(134, 222, 204, .1); border-color: rgba(134, 222, 204, .35); }
.studio-sample-button > b { color: #7dd8c6; font-size: 10px; }
.studio-sample-button span { min-width: 0; }
.studio-sample-button span b { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.studio-sample-button span small { display: block; margin-top: 3px; color: #779590; font-size: 9px; }
.studio-sample-button > small { padding: 4px 6px; color: #98bbb5; border: 1px solid rgba(255,255,255,.12); font-size: 8px; }

.studio-run-meter {
  margin-top: auto;
  padding: 22px;
  border-top: 1px solid rgba(255,255,255,.11);
  background: rgba(0,0,0,.14);
}

.studio-run-meter > div:first-child { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.studio-run-meter span { font-size: 10px; font-weight: 900; }
.studio-run-meter strong { color: #a8c4bf; font-size: 9px; }
.studio-run-meter strong b { color: white; font-size: 17px; }
.studio-run-meter > small { display: block; margin-top: 13px; color: #688984; font-size: 9px; line-height: 1.5; }
.studio-meter-dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-top: 13px; }
.studio-meter-dots i { height: 5px; background: rgba(255,255,255,.13); }
.studio-meter-dots i.available { background: var(--studio-lime); }

.studio-workspace { min-width: 0; padding: 0 30px 34px; }
.studio-workspace-bar { height: 61px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--studio-line); }
.studio-workspace-bar > div { display: flex; align-items: center; gap: 9px; color: var(--studio-blue); font-size: 9px; font-weight: 900; letter-spacing: .11em; }
.studio-workspace-bar i { width: 8px; height: 8px; background: #68c99b; border-radius: 50%; }
.studio-workspace-bar > b { color: var(--studio-muted); font-size: 10px; }

.studio-file-summary {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 17px;
  align-items: center;
  padding: 25px 0;
  border-bottom: 1px solid var(--studio-line);
}

.studio-file-icon {
  width: 56px;
  height: 64px;
  display: grid;
  place-items: end center;
  padding-bottom: 10px;
  color: var(--studio-green);
  background: linear-gradient(135deg, #e0f3ed 82%, transparent 82%);
  border: 1px solid #b8d8cf;
  font-size: 9px;
  font-weight: 900;
}

.studio-file-summary span { color: var(--studio-green); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.studio-file-summary h2 { margin: 5px 0 3px; font-size: 21px; letter-spacing: -.025em; overflow-wrap: anywhere; }
.studio-file-summary p { margin: 0; color: var(--studio-muted); font-size: 11px; }
.studio-download { padding: 10px 13px; color: var(--studio-green); background: #eff8f4; border: 1px solid #bad8cf; font-size: 9px; font-weight: 900; cursor: pointer; }
.studio-download:hover { background: #e2f4ec; }

.studio-record-panel { padding: 24px 0; border-bottom: 1px solid var(--studio-line); }
.studio-record-panel > header { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 14px; }
.studio-record-panel > header div { display: flex; align-items: center; gap: 11px; }
.studio-record-panel > header span { color: var(--studio-green); font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.studio-record-panel > header b, .studio-record-panel > header small { color: var(--studio-muted); font-size: 9px; }
.studio-record-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.studio-record {
  min-width: 0;
  padding: 14px;
  text-align: left;
  background: #f6faf8;
  border: 1px solid #d2e0dd;
  cursor: pointer;
}

.studio-record:hover, .studio-record.active { border-color: var(--studio-green); background: #eef8f3; }
.studio-record > span { display: flex; justify-content: space-between; gap: 8px; color: var(--studio-green); font-size: 8px; font-weight: 900; }
.studio-record > b { display: block; margin: 12px 0 7px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.studio-record > small { display: block; color: var(--studio-muted); font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-record-inspector { max-height: 0; margin: 0; padding: 0 15px; overflow: hidden; color: #b9d1cb; background: #0b2933; border: 0; font: 500 10px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; opacity: 0; transition: max-height .2s, padding .2s, margin .2s, opacity .2s; }
.studio-record-inspector.open { max-height: 230px; margin-top: 8px; padding: 14px 15px; overflow: auto; opacity: 1; }

.studio-question { padding: 25px 0 7px; }
.studio-question > label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 900; }
.studio-question-box { display: grid; grid-template-columns: 1fr auto; }
.studio-question-box input { min-width: 0; min-height: 56px; padding: 0 18px; color: var(--studio-navy); background: #fbfcfa; border: 1px solid #aebfbc; border-right: 0; font: 600 14px/1.4 var(--next-sans); }
.studio-question-box input:focus { outline: 2px solid rgba(12,116,95,.24); outline-offset: -2px; }
.studio-question-box .next-button { min-height: 56px; border-color: #caa344; cursor: pointer; }
.studio-question-box .next-button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.studio-question-examples { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.studio-question-examples button { padding: 8px 11px; color: var(--studio-green); background: #eff8f4; border: 1px solid #c7ddd7; font-size: 9px; font-weight: 800; cursor: pointer; }
.studio-question-examples button:hover, .studio-question-examples button.active { border-color: var(--studio-green); background: #e1f3eb; }
.studio-question > small { display: block; margin-top: 10px; color: var(--studio-muted); font-size: 9px; line-height: 1.55; }

.studio-gate { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 22px 0 13px; color: #708480; font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.studio-gate b { padding: 8px 12px; color: white; background: var(--studio-navy); }
.studio-gate i { color: var(--studio-green); font-size: 14px; font-style: normal; }

.studio-decision {
  --decision-accent: #70c99b;
  padding: 22px;
  background: #f2faf5;
  border: 1px solid #bad9cd;
  border-top: 5px solid var(--decision-accent);
}

.studio-decision[data-state="block"] { --decision-accent: var(--studio-coral); background: #fff4ef; border-color: #edc3b7; }
.studio-decision[data-state="withhold"] { --decision-accent: var(--studio-amber); background: #fff9e8; border-color: #ead79c; }
.studio-decision[data-state="error"] { --decision-accent: #9b806c; background: #f8f4ef; border-color: #d7c8bd; }
.studio-decision > header { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid rgba(44,86,75,.13); }
.studio-decision > header > div { display: flex; align-items: center; gap: 9px; }
.studio-decision > header i { width: 9px; height: 9px; background: var(--decision-accent); border-radius: 50%; }
.studio-decision > header span { color: var(--studio-navy); font-size: 10px; font-weight: 950; letter-spacing: .12em; }
.studio-decision > header small { color: var(--studio-muted); font: 600 9px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.studio-decision-body { display: grid; grid-template-columns: 1fr auto; gap: 35px; align-items: end; padding-top: 22px; }
.studio-decision-body h3 { margin: 0 0 7px; font-size: 27px; letter-spacing: -.035em; }
.studio-decision-body p { max-width: 690px; margin: 0; color: var(--studio-muted); font-size: 12px; line-height: 1.65; }
.studio-decision-metrics { display: grid; grid-template-columns: repeat(3, 74px); gap: 8px; }
.studio-decision-metrics span { padding: 10px; color: var(--studio-muted); background: rgba(255,255,255,.55); border: 1px solid rgba(70,107,98,.13); font-size: 8px; }
.studio-decision-metrics b { display: block; margin-bottom: 3px; color: var(--studio-navy); font-size: 19px; }

.studio-facts { display: grid; gap: 6px; margin-top: 16px; }
.studio-fact { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 10px 12px; color: #3f5c55; background: rgba(255,255,255,.57); border: 1px solid rgba(74,112,102,.12); font-size: 9px; }
.studio-fact b { color: var(--studio-green); }
.studio-json { margin-top: 15px; border-top: 1px solid rgba(44,86,75,.13); }
.studio-json summary { padding-top: 13px; color: var(--studio-green); font-size: 9px; font-weight: 900; cursor: pointer; }
.studio-json pre { max-height: 360px; margin: 12px 0 0; padding: 15px; overflow: auto; color: #c5dcd7; background: #081f29; font: 500 9px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }

.studio-limit-message { display: flex; justify-content: space-between; align-items: center; gap: 25px; margin-top: 14px; padding: 20px; color: #efe8d0; background: #1e2d2a; }
.studio-limit-message[hidden] { display: none; }
.studio-limit-message span { color: white; font-weight: 900; }
.studio-limit-message p { margin: 4px 0 0; color: #aebeb9; font-size: 10px; }
.studio-limit-message .next-button { min-height: 42px; flex: 0 0 auto; color: #13211d; background: var(--studio-amber); border-color: var(--studio-amber); }

.studio-explainer { padding: 100px 0; background: #dff1ef; }
.studio-explainer header { max-width: 880px; }
.studio-explainer h2 { margin: 16px 0 40px; font-size: clamp(3rem, 5vw, 5rem); line-height: .95; letter-spacing: -.055em; }
.studio-outcome-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #afcac5; border: 1px solid #afcac5; }
.studio-outcome-grid article { min-height: 270px; padding: 30px; background: #f9fbf7; border-top: 5px solid #6dc999; }
.studio-outcome-grid article.is-conflict { border-color: var(--studio-coral); }
.studio-outcome-grid article.is-empty { border-color: var(--studio-amber); }
.studio-outcome-grid span { color: var(--studio-green); font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.studio-outcome-grid h3 { margin: 68px 0 10px; font-size: 27px; }
.studio-outcome-grid p { color: var(--studio-muted); font-size: 12px; line-height: 1.7; }

.studio-private-boundary { padding: 100px 0; background: var(--studio-paper); }
.studio-private-layout { display: grid; grid-template-columns: 1fr .7fr; gap: 85px; align-items: center; }
.studio-private-layout h2 { max-width: 760px; margin: 16px 0; font-size: clamp(3rem, 4.8vw, 5.1rem); line-height: .95; letter-spacing: -.055em; }
.studio-private-layout > div:first-child > p { max-width: 780px; color: var(--studio-muted); line-height: 1.75; }
.studio-private-status { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 25px; }
.studio-private-status span { display: flex; align-items: center; gap: 7px; color: #5b6f69; font-size: 9px; font-weight: 800; }
.studio-private-status i { width: 7px; height: 7px; background: var(--studio-coral); border-radius: 50%; }
.studio-disabled-upload { min-height: 340px; display: grid; align-content: center; justify-items: center; padding: 35px; text-align: center; background: #eef3ef; border: 1px dashed #93aaa4; }
.studio-disabled-upload > span { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 18px; color: white; background: #7e958f; border-radius: 50%; font-size: 25px; }
.studio-disabled-upload b { font-size: 19px; }
.studio-disabled-upload p { max-width: 300px; color: var(--studio-muted); font-size: 11px; }
.studio-disabled-upload a { margin-top: 16px; color: var(--studio-green); font-size: 11px; font-weight: 900; }

@media (max-width: 1080px) {
  .studio-hero-layout { grid-template-columns: 1fr; }
  .studio-path { max-width: 760px; }
  .studio-app { grid-template-columns: 240px minmax(0, 1fr); }
  .studio-decision-body { grid-template-columns: 1fr; }
  .studio-decision-metrics { grid-template-columns: repeat(3, 1fr); }
  .studio-record-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .studio-hero { min-height: auto; }
  .studio-hero-layout { padding-block: 70px; }
  .studio-hero-copy h1 { font-size: clamp(3.4rem, 13vw, 5.2rem); }
  .studio-boundary-strip .next-shell { grid-template-columns: 1fr 1fr; }
  .studio-boundary-strip span:nth-child(3) { border-left: 1px solid rgba(255,255,255,.1); }
  .studio-section-heading, .studio-private-layout { grid-template-columns: 1fr; gap: 34px; }
  .studio-app { grid-template-columns: 1fr; }
  .studio-library { border-right: 0; border-bottom: 1px solid var(--studio-line); }
  .studio-sample-list { grid-template-columns: 1fr 1fr; }
  .studio-run-meter { margin-top: 0; }
  .studio-outcome-grid { grid-template-columns: 1fr; }
  .studio-outcome-grid article { min-height: auto; }
  .studio-outcome-grid h3 { margin-top: 35px; }
}

@media (max-width: 560px) {
  .studio-hero-actions { display: grid; }
  .studio-path { grid-template-columns: 1fr; }
  .studio-path > article, .studio-path > article:nth-of-type(3), .studio-path-outcomes { grid-column: 1; grid-row: auto; }
  .studio-path > i, .studio-path > i:nth-of-type(2), .studio-path > i:nth-of-type(3) { display: block; grid-column: 1; grid-row: auto; justify-self: center; transform: rotate(90deg); }
  .studio-boundary-strip .next-shell { grid-template-columns: 1fr; }
  .studio-boundary-strip span, .studio-boundary-strip span:nth-child(3) { border-left: 1px solid rgba(255,255,255,.1); }
  .studio-section { padding-block: 70px; }
  .studio-section-heading h2 { font-size: 3.25rem; }
  .studio-sample-list { grid-template-columns: 1fr; }
  .studio-workspace { padding-inline: 16px; }
  .studio-file-summary { grid-template-columns: 50px 1fr; }
  .studio-download { grid-column: 1 / -1; }
  .studio-question-box { grid-template-columns: 1fr; gap: 8px; }
  .studio-question-box input { border-right: 1px solid #aebfbc; }
  .studio-gate { flex-wrap: wrap; }
  .studio-decision > header, .studio-limit-message { align-items: start; flex-direction: column; }
  .studio-decision-metrics { grid-template-columns: 1fr; }
  .studio-fact { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .studio-sample-button, .studio-record, .studio-record-inspector { transition: none; }
}
