:root {
  --lab-ink: #101014;
  --lab-muted: #62626f;
  --lab-faint: #9696a3;
  --lab-line: #e7e6ee;
  --lab-panel: #f7f7fa;
  --lab-indigo: #5147e5;
  --lab-indigo-deep: #3d34c4;
  --lab-indigo-wash: #efeeff;
  --lab-red: #c9324c;
  --lab-red-wash: #fff0f3;
  --lab-green: #087a63;
  --lab-green-wash: #eaf9f4;
  --lab-amber: #aa6814;
  --lab-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  --lab-shadow: 0 28px 80px -42px rgba(30, 27, 75, .38);
}

html { scroll-behavior: smooth; }

.agent-lab-body {
  color: var(--lab-ink);
  background:
    radial-gradient(circle at 8% 6%, rgba(99, 91, 255, .08), transparent 26rem),
    #fff;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--lab-ink);
  color: #fff;
  font-weight: 700;
  transform: translateY(-150%);
}

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

.preview-rail {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 7px 20px;
  color: #fff;
  background: repeating-linear-gradient(-45deg, #30298f 0 14px, #4037bc 14px 28px);
  font-family: var(--lab-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.agent-lab {
  max-width: 1440px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(15, 15, 20, .03);
}

.agent-lab .lab-nav {
  padding-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(231, 230, 238, .72);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(16px);
}

.agent-lab .lab-nav img,
.agent-lab .lab-foot img { display: block; }

.agent-lab .btn-dark,
.agent-lab .btn-outline,
.agent-lab .btn-light,
.agent-lab .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 10px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.agent-lab .btn-dark:hover,
.agent-lab .btn-outline:hover,
.agent-lab .btn-light:hover,
.agent-lab .btn-ghost:hover { transform: translateY(-1px); }

.agent-lab .btn-dark:focus-visible,
.agent-lab .btn-outline:focus-visible,
.agent-lab .btn-light:focus-visible,
.agent-lab .btn-ghost:focus-visible,
.receipt-tab:focus-visible,
.copy-link:focus-visible,
.checks-block summary:focus-visible,
.related-card:focus-visible {
  outline: 3px solid rgba(79, 70, 229, .35);
  outline-offset: 3px;
}

.lab-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: center;
  padding: 100px 64px 86px;
  isolation: isolate;
}

.lab-hero::before {
  content: '';
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(rgba(79, 70, 229, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 70, 229, .045) 1px, transparent 1px),
    linear-gradient(135deg, #f8f7ff 0%, #fff 52%, #f6fbff 100%);
  background-size: 36px 36px, 36px 36px, auto;
}

.lab-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  right: 8%;
  top: 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 80, 245, .13), rgba(92, 80, 245, 0) 69%);
  filter: blur(4px);
}

.hero-copy { max-width: 760px; }

.hero-copy h1 {
  max-width: 820px;
  margin: 20px 0 24px;
  font-size: clamp(48px, 6.4vw, 86px);
  font-weight: 720;
  line-height: .98;
  letter-spacing: -.055em;
}

.hero-dek {
  max-width: 680px;
  margin: 0;
  color: #494956;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.55;
  letter-spacing: -.012em;
}

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

.hero-fineprint {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--lab-faint);
  font-size: 12px;
  line-height: 1.6;
}

.hero-receipt {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(72, 64, 196, .2);
  border-radius: 22px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 36px 100px -48px rgba(50, 41, 170, .6);
  transform: rotate(1.2deg);
}

.hero-receipt::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--lab-indigo), #8d82ff, #56a6d8);
}

.mini-receipt-top,
.receipt-panel-head,
.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.mono-label,
.section-index,
.scope-caveat-label,
.boundary-label,
.state-label,
.speech-label,
.translation-label,
.detail-title-row > span,
.related-card > span,
.frozen-card span {
  font-family: var(--lab-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.mono-label { color: var(--lab-indigo); }

.receipt-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 10px;
  font-family: var(--lab-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .055em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-fail { color: #9e2037; background: var(--lab-red-wash); }
.status-pass { color: #066450; background: var(--lab-green-wash); }

.mini-case {
  margin: 22px 0 18px;
  color: var(--lab-faint);
  font-family: var(--lab-mono);
  font-size: 11px;
}

.hero-receipt blockquote {
  margin: 0;
  color: var(--lab-ink);
  font-family: Tahoma, Arial, sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.55;
}

.mini-translation {
  margin: 18px 0 24px;
  color: var(--lab-muted);
  font-size: 14px;
  line-height: 1.55;
}

.mini-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px dashed #d8d6e6;
  color: var(--lab-faint);
  font-family: var(--lab-mono);
  font-size: 10px;
}

.mini-chain strong { color: var(--lab-red); }

.receipt-stamp {
  position: absolute;
  right: -22px;
  bottom: 38px;
  padding: 7px 25px;
  border: 2px solid rgba(201, 50, 76, .12);
  color: rgba(201, 50, 76, .17);
  font-family: var(--lab-mono);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .08em;
  text-align: center;
  transform: rotate(-12deg);
}

.scope-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 64px;
  background: #fff;
}

.scope-strip > div {
  min-height: 136px;
  padding: 26px 26px 24px;
  border-top: 1px solid var(--lab-line);
  border-bottom: 1px solid var(--lab-line);
  border-left: 1px solid var(--lab-line);
}

.scope-strip > div:first-child { border-radius: 16px 0 0 16px; }
.scope-strip > div:last-child { border-right: 1px solid var(--lab-line); border-radius: 0 16px 16px 0; }

.scope-strip strong {
  display: block;
  color: var(--lab-indigo-deep);
  font-family: var(--lab-mono);
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1;
}

.scope-strip span {
  display: block;
  max-width: 190px;
  margin-top: 11px;
  color: var(--lab-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.scope-caveat {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 30px;
  max-width: 1060px;
  margin: 24px auto 0;
  padding: 18px 24px;
  border: 1px solid #e6dfb8;
  border-radius: 12px;
  background: #fffdf2;
}

.scope-caveat-label { padding-top: 3px; color: var(--lab-amber); }
.scope-caveat p { margin: 0; color: #5c5642; font-size: 13.5px; line-height: 1.6; }
.scope-caveat strong { color: #302e26; }

.explorer-section,
.interpret-section,
.related-section {
  padding: 112px 64px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .7fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: end;
  max-width: 1180px;
  margin: 0 auto 42px;
}

.section-index { color: var(--lab-indigo); }

.section-heading h2,
.method-intro h2,
.related-heading h2,
.reproduce-copy h2,
.audit-cta h2 {
  margin: 12px 0 0;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.section-heading > p,
.related-heading > p,
.method-intro > p {
  margin: 0;
  color: var(--lab-muted);
  font-size: 16px;
  line-height: 1.7;
}

.explorer-shell {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  max-width: 1180px;
  margin: 0 auto;
  border: 1px solid #dad8e5;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--lab-shadow);
  overflow: hidden;
}

.receipt-tabs {
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: #f4f3f8;
  border-right: 1px solid #dad8e5;
}

.receipt-tab {
  width: 100%;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 24px;
  gap: 10px;
  align-items: start;
  padding: 20px 14px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--lab-muted);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.receipt-tab + .receipt-tab { margin-top: 4px; }

.receipt-tab:hover { background: rgba(255, 255, 255, .65); }

.receipt-tab.is-active {
  color: var(--lab-ink);
  background: #fff;
  border-color: #dfddea;
  box-shadow: 0 10px 25px -18px rgba(31, 27, 84, .5);
}

.tab-number {
  padding-top: 2px;
  color: #aaa7ba;
  font-family: var(--lab-mono);
  font-size: 10px;
}

.tab-copy strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.tab-copy small {
  display: block;
  margin-top: 7px;
  color: var(--lab-faint);
  font-family: var(--lab-mono);
  font-size: 9.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tab-mark {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  font-family: var(--lab-mono);
  font-size: 12px;
  font-weight: 700;
}

.mark-fail { color: var(--lab-red); background: var(--lab-red-wash); }
.mark-pass { color: var(--lab-green); background: var(--lab-green-wash); }

.receipt-panel {
  min-width: 0;
  padding: 38px;
}

.receipt-panel:focus { outline: 0; }

.receipt-panel h3 {
  margin: 9px 0 0;
  font-size: clamp(27px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.receipt-head-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.copy-link {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--lab-line);
  border-radius: 999px;
  background: #fff;
  color: var(--lab-muted);
  font-family: var(--lab-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  cursor: pointer;
}

.copy-link:hover { color: var(--lab-indigo); border-color: #cac6f4; }

.receipt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 18px 0 26px;
  color: var(--lab-faint);
  font-family: var(--lab-mono);
  font-size: 9.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.receipt-meta span:not(:last-child)::after {
  content: '·';
  margin-left: 14px;
  color: #d2d0da;
}

.conversation-grid,
.claim-evidence-grid,
.receipt-detail-grid,
.boundary-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.speech-card {
  padding: 22px;
  border: 1px solid var(--lab-line);
  border-radius: 15px;
}

.user-card { background: #fbfbfd; }
.agent-card { background: linear-gradient(145deg, #f5f3ff, #fbfaff); border-color: #dedafd; }

.speech-label {
  display: flex;
  justify-content: space-between;
  color: var(--lab-faint);
}

.arabic-text {
  min-height: 104px;
  margin: 22px 0 20px;
  color: #17171d;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 21px;
  line-height: 1.85;
}

.translation-label { margin-bottom: 7px; color: var(--lab-faint); }

.translation {
  margin: 0;
  padding-top: 11px;
  border-top: 1px dashed #dedce7;
  color: var(--lab-muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.claim-evidence-grid { margin-top: 16px; }

.claim-box,
.evidence-box {
  padding: 18px 20px;
  border-radius: 12px;
}

.claim-box { background: var(--lab-red-wash); }
.evidence-box { background: #f0f4ff; }

.claim-box > span,
.evidence-box > span {
  color: var(--lab-faint);
  font-family: var(--lab-mono);
  font-size: 9px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.claim-box p,
.evidence-box p {
  margin: 8px 0 0;
  color: #393942;
  font-size: 13px;
  line-height: 1.55;
}

.receipt-detail-grid { margin-top: 28px; }

.timeline-block,
.state-block {
  min-width: 0;
  padding: 21px;
  border: 1px solid var(--lab-line);
  border-radius: 15px;
}

.detail-title-row h4 {
  margin: 0;
  font-size: 14px;
  letter-spacing: -.01em;
}

.detail-title-row > span { color: var(--lab-faint); font-size: 8.5px; }

.tool-timeline {
  position: relative;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.tool-timeline::before {
  content: '';
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 5px;
  width: 1px;
  background: #dcd9e6;
}

.tool-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
}

.tool-timeline li + li { margin-top: 16px; }

.timeline-dot {
  position: relative;
  z-index: 1;
  display: block;
  width: 11px;
  height: 11px;
  margin-top: 2px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #aaa7b5;
  box-shadow: 0 0 0 1px #cfccd9;
}

.tool-timeline li[data-status='read'] .timeline-dot { background: var(--lab-indigo); box-shadow: 0 0 0 1px #8d86ed; }
.tool-timeline li[data-status='claim'] .timeline-dot { background: var(--lab-amber); box-shadow: 0 0 0 1px #d8a15b; }
.tool-timeline li[data-status='fail'] .timeline-dot { background: var(--lab-red); box-shadow: 0 0 0 1px #e17a8d; }
.tool-timeline li[data-status='pass'] .timeline-dot { background: var(--lab-green); box-shadow: 0 0 0 1px #62ad9c; }

.tool-timeline strong { display: block; font-size: 12px; }
.tool-timeline p { margin: 4px 0 0; color: var(--lab-muted); font-size: 11.5px; line-height: 1.55; }

.state-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.state-compare > div {
  min-width: 0;
  padding: 13px;
  border-radius: 10px;
  background: #f6f6f9;
}

.state-label { color: var(--lab-faint); }

.state-compare dl { margin: 12px 0 0; }

.state-compare dl > div + div {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid #e3e2e9;
}

.state-compare dt {
  overflow: hidden;
  color: var(--lab-faint);
  font-family: var(--lab-mono);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.state-compare dd {
  overflow-wrap: anywhere;
  margin: 4px 0 0;
  color: #2d2d34;
  font-family: var(--lab-mono);
  font-size: 10.5px;
  font-weight: 600;
}

.state-compare dd.state-fail { color: var(--lab-red); }
.state-compare dd.state-pass { color: var(--lab-green); }

.hash-line {
  margin: 13px 0 0;
  color: var(--lab-faint);
  font-family: var(--lab-mono);
  font-size: 9px;
  overflow-wrap: anywhere;
}

.hash-line span { color: var(--lab-indigo); text-transform: uppercase; }

.checks-block {
  margin-top: 16px;
  border: 1px solid var(--lab-line);
  border-radius: 12px;
}

.checks-block summary {
  display: flex;
  justify-content: space-between;
  padding: 15px 18px;
  color: var(--lab-muted);
  font-family: var(--lab-mono);
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.checks-block summary::-webkit-details-marker { display: none; }
.checks-block[open] summary span { transform: rotate(45deg); }

.checks-block ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 18px;
  margin: 0;
  padding: 0 18px 18px;
  list-style: none;
}

.checks-block li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 5px;
  align-items: start;
  color: var(--lab-muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.checks-block li[data-passed='true'] span { color: var(--lab-green); }
.checks-block li[data-passed='false'] span { color: var(--lab-red); }

.receipt-verdict {
  margin-top: 18px;
  padding: 22px;
  border-radius: 14px;
  color: #fff;
  background: var(--lab-ink);
}

.receipt-verdict > span {
  color: #a7a1ff;
  font-family: var(--lab-mono);
  font-size: 9px;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.receipt-verdict p { margin: 9px 0 6px; font-size: 15px; line-height: 1.55; }
.receipt-verdict small { color: #a9a9b2; font-size: 11px; line-height: 1.5; }
.noscript-note { margin: 14px 0 0; color: var(--lab-red); font-size: 12px; }

.interpret-section { padding-bottom: 112px; }

.boundary-grid { max-width: 1180px; margin: 0 auto; }

.boundary-card {
  min-height: 330px;
  padding: 34px;
  border: 1px solid var(--lab-line);
  border-radius: 19px;
}

.can-card { background: linear-gradient(145deg, #effbf7, #fff); border-color: #cde9e0; }
.cannot-card { background: linear-gradient(145deg, #fff5f6, #fff); border-color: #f2d7dc; }
.can-card .boundary-label { color: var(--lab-green); }
.cannot-card .boundary-label { color: var(--lab-red); }

.boundary-card ul { margin: 28px 0 0; padding: 0; list-style: none; }

.boundary-card li {
  position: relative;
  padding-left: 26px;
  color: #40404a;
  font-size: 15px;
  line-height: 1.65;
}

.boundary-card li + li { margin-top: 17px; }

.boundary-card li::before {
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--lab-mono);
  font-weight: 700;
}

.can-card li::before { content: '✓'; color: var(--lab-green); }
.cannot-card li::before { content: '×'; color: var(--lab-red); }

.method-section {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(50px, 8vw, 110px);
  padding: 100px 64px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 12%, rgba(91, 80, 239, .34), transparent 29rem),
    #111116;
}

.method-intro { max-width: 470px; }
.method-intro .section-index { color: #9d96ff; }
.method-intro > p { margin-top: 24px; color: #b7b6c0; }

.method-steps { margin: 0; padding: 0; list-style: none; }

.method-steps li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid #323139;
}

.method-steps li > span {
  color: #8f88ff;
  font-family: var(--lab-mono);
  font-size: 11px;
}

.method-steps strong { font-size: 16px; }
.method-steps p { margin: 7px 0 0; color: #aaa9b3; font-size: 13px; line-height: 1.55; }

.systems-table-wrap {
  max-width: 1180px;
  margin: 0 auto 18px;
  overflow-x: auto;
  border: 1px solid var(--lab-line);
  border-radius: 18px;
  background: #fff;
}

.systems-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 14px;
}

.systems-table th,
.systems-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--lab-line);
}

.systems-table th {
  font-family: var(--lab-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--lab-faint);
  background: var(--lab-panel);
}

.systems-table tr:last-child td { border-bottom: 0; }

.systems-table td:nth-child(3),
.systems-table td:nth-child(4) {
  font-family: var(--lab-mono);
  font-weight: 600;
  white-space: nowrap;
}

.systems-note {
  max-width: 1180px;
  margin: 0 auto 8px;
  color: var(--lab-muted);
  font-size: 14px;
  line-height: 1.55;
}

.frozen-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #35343c;
  border-radius: 15px;
  background: #35343c;
}

.frozen-card > div { min-width: 0; padding: 20px; background: #19191f; }
.frozen-card span { display: block; color: #85838f; }
.frozen-card code { display: block; margin-top: 8px; color: #d6d3ff; font-family: var(--lab-mono); font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }

.related-section { padding-bottom: 112px; }

.related-heading { max-width: 780px; margin-bottom: 42px; }
.related-heading > p { margin-top: 22px; max-width: 700px; }

.related-grid { max-width: 1180px; }

.related-card {
  position: relative;
  min-height: 290px;
  padding: 32px;
  border: 1px solid var(--lab-line);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #f8f8fb);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.related-card:hover { transform: translateY(-3px); border-color: #cbc7f1; box-shadow: var(--lab-shadow); }
.related-card > span { color: var(--lab-indigo); }
.related-card h3 { margin: 38px 0 12px; font-size: 26px; letter-spacing: -.025em; }
.related-card p { max-width: 480px; margin: 0; color: var(--lab-muted); font-size: 14px; line-height: 1.65; }
.related-card > strong { position: absolute; left: 32px; bottom: 30px; color: var(--lab-indigo); font-size: 13px; }

.reproduce-section {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(50px, 8vw, 105px);
  margin: 0 64px;
  padding: 72px;
  border-radius: 26px;
  color: #fff;
  background:
    linear-gradient(130deg, rgba(93, 82, 241, .2), transparent 52%),
    #15151b;
  box-shadow: 0 35px 90px -55px rgba(18, 17, 34, .8);
}

.reproduce-copy .section-index { color: #9f99ff; }
.reproduce-copy h2 { max-width: 720px; }
.reproduce-copy > p { max-width: 720px; margin: 22px 0 0; color: #b9b8c1; font-size: 15px; line-height: 1.7; }

.reproduce-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.agent-lab .btn-light { color: #121217; background: #fff; }
.agent-lab .btn-ghost { color: #fff; border: 1px solid #45434f; background: transparent; }
.agent-lab .btn-light:hover { box-shadow: 0 12px 30px -18px rgba(255, 255, 255, .6); }
.agent-lab .btn-ghost:hover { background: #202027; }

.challenge-list { align-self: center; }
.challenge-list > div { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid #373640; }
.challenge-list > div:last-child { border-bottom: 1px solid #373640; }
.challenge-list span { color: #8179ff; font-family: var(--lab-mono); font-size: 10px; }
.challenge-list p { margin: 0; color: #d1d0d8; font-size: 13px; line-height: 1.5; }

.audit-cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  margin: 96px 64px 40px;
  padding: 58px;
  border: 1px solid #dcd9f7;
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 10%, rgba(79, 70, 229, .13), transparent 20rem),
    linear-gradient(145deg, #f5f3ff, #fff);
}

.audit-cta > div { max-width: 760px; }
.audit-cta h2 { margin-top: 15px; }
.audit-cta p { max-width: 680px; margin: 18px 0 0; color: var(--lab-muted); font-size: 16px; line-height: 1.65; }
.audit-cta > .btn-dark { flex: 0 0 auto; }

.agent-lab .lab-foot { margin-top: 70px; }

@media (max-width: 1100px) {
  .lab-hero { grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr); gap: 44px; }
  .hero-copy h1 { font-size: clamp(46px, 7vw, 70px); }
  .explorer-shell { grid-template-columns: 275px minmax(0, 1fr); }
  .receipt-panel { padding: 28px; }
  .receipt-detail-grid { grid-template-columns: 1fr; }
  .reproduce-section { padding: 55px; }
}

@media (max-width: 900px) {
  .lab-hero,
  .method-section { grid-template-columns: 1fr; }

  .lab-hero,
  .explorer-section,
  .interpret-section,
  .related-section,
  .method-section { padding-left: 28px; padding-right: 28px; }

  .lab-hero { padding-top: 72px; padding-bottom: 66px; }
  .hero-receipt { max-width: 580px; transform: none; }

  .scope-strip { padding: 0 28px; grid-template-columns: repeat(2, 1fr); }
  .scope-strip > div:nth-child(2) { border-right: 1px solid var(--lab-line); border-radius: 0 16px 0 0; }
  .scope-strip > div:first-child { border-radius: 16px 0 0 0; }
  .scope-strip > div:nth-child(3) { border-radius: 0 0 0 16px; }
  .scope-strip > div:last-child { border-radius: 0 0 16px 0; }

  .scope-caveat { margin-left: 28px; margin-right: 28px; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; align-items: start; }

  .explorer-shell { grid-template-columns: 1fr; }
  .receipt-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-right: 0; border-bottom: 1px solid #dad8e5; }
  .receipt-tab { grid-template-columns: 1fr; min-height: 138px; }
  .tab-number { display: none; }
  .tab-mark { grid-row: 1; }

  .method-intro { max-width: 700px; }
  .frozen-card { grid-template-columns: 1fr; }

  .reproduce-section { grid-template-columns: 1fr; margin-left: 28px; margin-right: 28px; }
  .audit-cta { margin-left: 28px; margin-right: 28px; padding: 42px; }
}

@media (max-width: 680px) {
  .preview-rail { flex-wrap: wrap; gap: 5px 8px; }

  .lab-hero,
  .explorer-section,
  .interpret-section,
  .related-section,
  .method-section { padding-left: 20px; padding-right: 20px; }

  .lab-hero { padding-top: 58px; padding-bottom: 52px; }
  .hero-copy h1 { font-size: clamp(40px, 12vw, 56px); }
  .hero-dek { font-size: 17px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions a { width: 100%; }
  .hero-receipt { padding: 23px; }
  .mini-receipt-top { flex-direction: column; gap: 10px; }
  .hero-receipt blockquote { font-size: 25px; }

  .scope-strip { padding: 0 20px; grid-template-columns: 1fr; }
  .scope-strip > div { min-height: 104px; border-right: 1px solid var(--lab-line); }
  .scope-strip > div:first-child { border-radius: 14px 14px 0 0; }
  .scope-strip > div:nth-child(2),
  .scope-strip > div:nth-child(3) { border-radius: 0; }
  .scope-strip > div:last-child { border-radius: 0 0 14px 14px; }

  .scope-caveat { grid-template-columns: 1fr; gap: 8px; margin-left: 20px; margin-right: 20px; }
  .explorer-section { padding-top: 82px; }
  .interpret-section, .related-section { padding-top: 86px; padding-bottom: 86px; }

  .receipt-tabs { display: flex; overflow-x: auto; padding: 9px; scroll-snap-type: x mandatory; }
  .receipt-tab { flex: 0 0 238px; min-height: 112px; scroll-snap-align: start; }
  .receipt-tab + .receipt-tab { margin: 0 0 0 5px; }

  .receipt-panel { padding: 22px 17px; }
  .receipt-panel-head { flex-direction: column; }
  .receipt-head-actions { justify-content: flex-start; }
  .receipt-meta span:not(:last-child)::after { display: none; }
  .conversation-grid, .claim-evidence-grid, .boundary-grid, .related-grid { grid-template-columns: 1fr; }
  .arabic-text { min-height: 0; font-size: 20px; }
  .state-compare { grid-template-columns: 1fr; }
  .checks-block ul { grid-template-columns: 1fr; }

  .boundary-card { min-height: 0; padding: 26px 22px; }
  .method-section { padding-top: 76px; padding-bottom: 76px; }
  .method-steps li { grid-template-columns: 34px minmax(0, 1fr); }

  .related-card { min-height: 300px; padding: 26px; }
  .related-card > strong { left: 26px; }

  .reproduce-section { margin: 0 20px; padding: 36px 22px; border-radius: 20px; }
  .reproduce-actions { flex-direction: column; }
  .reproduce-actions a { width: 100%; }

  .audit-cta { align-items: stretch; flex-direction: column; margin: 76px 20px 20px; padding: 32px 22px; }
  .audit-cta > .btn-dark { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .agent-lab .btn-dark,
  .agent-lab .btn-outline,
  .agent-lab .btn-light,
  .agent-lab .btn-ghost,
  .related-card { transition: none; }
}
