.stream-hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  padding-top: clamp(72px, 9vw, 124px);
  padding-bottom: clamp(72px, 9vw, 124px);
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.stream-atmosphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.stream-atmosphere::before {
  position: absolute;
  right: -8%;
  bottom: -38%;
  width: 68%;
  height: 82%;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 52px 52px;
  content: "";
  opacity: .22;
  transform: perspective(500px) rotateX(62deg) rotateZ(-8deg);
  transform-origin: center bottom;
}

.stream-glow {
  position: absolute;
  display: block;
  border-radius: var(--radius-pill);
  filter: blur(42px);
}

.stream-glow-left {
  top: 18%;
  left: -12%;
  width: 36%;
  height: 48%;
  background: radial-gradient(circle, var(--color-accent-glow), transparent 68%);
}

.stream-glow-right {
  right: 2%;
  bottom: 5%;
  width: 42%;
  height: 54%;
  background: radial-gradient(circle, var(--color-accent-glow-soft), transparent 70%);
}

.stream-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .88fr);
  gap: clamp(44px, 7vw, 104px);
  align-items: center;
}

.stream-hero-copy {
  max-width: 700px;
}

.stream-hero-copy h1 {
  max-width: 660px;
  margin-top: 22px;
  margin-bottom: 22px;
}

.stream-hero-copy .lead {
  max-width: 650px;
  margin-bottom: 0;
}

.stream-hero-copy .button-row {
  margin-top: 30px;
}

.stream-facts {
  display: flex;
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 9px;
}

.stream-screen {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  color: var(--color-accent);
  background: var(--color-panel);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel), 0 0 44px var(--color-accent-glow-soft);
}

.stream-screen::after {
  position: absolute;
  inset: 48px 0 42px;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 36px 36px;
  content: "";
  opacity: .3;
}

.screen-topline {
  position: relative;
  z-index: 2;
  display: flex;
  height: 48px;
  padding-inline: 18px;
  align-items: center;
  gap: 8px;
  background: var(--color-panel-raised);
  border-bottom: 1px solid var(--color-border);
}

.screen-topline span {
  width: 8px;
  height: 8px;
  background: var(--color-line);
  border-radius: var(--radius-pill);
}

.screen-topline span:first-child {
  background: var(--color-accent);
  box-shadow: 0 0 12px var(--color-accent-glow-strong);
}

.screen-route {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 350px;
  color: var(--color-line);
}

.screen-route path[data-draw-line] {
  stroke-width: 1.5;
}

.screen-route circle,
.screen-route .screen-play {
  color: var(--color-accent);
  filter: drop-shadow(0 0 8px var(--color-accent-glow-strong));
}

.screen-play {
  opacity: .9;
}

.screen-caption {
  position: absolute;
  right: 18px;
  bottom: 14px;
  left: 18px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .1em;
}

.editorial-grid {
  display: grid;
  grid-template-columns: minmax(240px, .72fr) minmax(0, 1.35fr);
  gap: clamp(42px, 8vw, 120px);
  align-items: start;
}

.section-heading {
  min-width: 0;
}

.section-heading-wide {
  max-width: 850px;
  margin-bottom: 42px;
}

.section-heading h2 {
  max-width: 680px;
}

.editorial-copy {
  max-width: 820px;
}

.editorial-copy > p:first-child {
  color: var(--color-text);
  font-size: 1.08rem;
}

.support-table {
  min-width: 920px;
}

.support-table th,
.support-table td {
  padding: 17px 18px;
}

.support-state {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 10px;
  color: var(--color-accent);
  background: var(--color-panel-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: .72rem;
  white-space: nowrap;
}

.table-note {
  max-width: 860px;
  margin-top: 16px;
  margin-bottom: 0;
  color: var(--color-text-muted);
  font-size: .84rem;
}

.diagnostic-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.diagnostic-step {
  position: relative;
  min-height: 300px;
  padding: 28px;
  background: var(--color-panel);
}

.diagnostic-step + .diagnostic-step {
  border-left: 1px solid var(--color-border);
}

.diagnostic-step::after {
  position: absolute;
  top: 40px;
  right: -7px;
  z-index: 2;
  width: 13px;
  height: 13px;
  background: var(--color-bg);
  border-top: 1px solid var(--color-accent-deep);
  border-right: 1px solid var(--color-accent-deep);
  content: "";
  transform: rotate(45deg);
}

.diagnostic-step:last-child::after {
  display: none;
}

.diagnostic-code {
  display: inline-flex;
  margin-bottom: 56px;
  color: var(--color-accent-deep);
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.diagnostic-step h3 {
  font-size: 1.15rem;
}

.diagnostic-step p {
  margin-bottom: 0;
  color: var(--color-text-muted);
  font-size: .9rem;
  line-height: 1.8;
}

.quality-layout {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.45fr);
  gap: clamp(42px, 8vw, 110px);
  align-items: start;
}

.quality-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  gap: 1px;
  overflow: hidden;
}

.quality-item {
  min-height: 250px;
  padding: clamp(24px, 3vw, 34px);
  background: var(--color-panel-raised);
}

.quality-item h3 {
  font-size: 1.15rem;
}

.quality-item p {
  margin-bottom: 0;
  color: var(--color-text-muted);
  line-height: 1.82;
}

.error-lead {
  margin-bottom: 28px;
}

.error-list {
  border-top: 1px solid var(--color-border);
}

.error-item {
  border-bottom: 1px solid var(--color-border);
}

.error-item summary {
  position: relative;
  min-height: 64px;
  padding: 20px 44px 20px 0;
  color: var(--color-text);
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.error-item summary::-webkit-details-marker {
  display: none;
}

.error-item summary::after {
  position: absolute;
  top: 50%;
  right: 8px;
  color: var(--color-accent);
  content: "+";
  font-family: var(--font-mono);
  font-size: 20px;
  transform: translateY(-50%);
  transition: transform var(--transition-fast);
}

.error-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.error-answer {
  max-width: 760px;
  padding: 0 44px 20px 0;
  color: var(--color-text-muted);
  line-height: 1.82;
}

.error-answer p {
  margin-bottom: 0;
}

.device-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.device-notes article {
  min-height: 240px;
  padding: 30px;
  background: var(--color-panel-raised);
}

.device-notes h3 {
  font-size: 1.18rem;
}

.device-notes p {
  margin-bottom: 0;
  color: var(--color-text-muted);
  line-height: 1.82;
}

.decision-panel {
  display: grid;
  padding-top: clamp(30px, 5vw, 54px);
  padding-bottom: clamp(30px, 5vw, 54px);
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 38px;
  align-items: center;
  background: var(--color-panel-raised);
  border-top: 1px solid var(--color-accent-deep);
  border-bottom: 1px solid var(--color-accent-deep);
  box-shadow: 0 0 42px var(--color-accent-glow-soft);
}

.decision-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3.5vw, 44px);
}

.decision-panel p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--color-text-muted);
}

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

@media (max-width: 1080px) {
  .stream-hero {
    min-height: auto;
  }

  .stream-hero-grid {
    grid-template-columns: 1fr;
  }

  .stream-screen {
    min-height: 370px;
  }

  .diagnostic-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diagnostic-step:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--color-border);
  }

  .diagnostic-step:nth-child(4) {
    border-top: 1px solid var(--color-border);
  }

  .diagnostic-step:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 860px) {
  .editorial-grid,
  .quality-layout,
  .decision-panel {
    grid-template-columns: 1fr;
  }

  .section-heading-wide {
    margin-bottom: 32px;
  }

  .quality-board,
  .device-notes {
    grid-template-columns: 1fr;
  }

  .quality-item,
  .device-notes article {
    min-height: auto;
  }

  .decision-actions {
    align-items: stretch;
  }

  .decision-actions .btn {
    flex: 1 1 180px;
  }
}

@media (max-width: 640px) {
  .stream-hero {
    padding-top: 60px;
    padding-bottom: 64px;
  }

  .stream-hero-grid {
    gap: 42px;
  }

  .stream-facts {
    align-items: flex-start;
    flex-direction: column;
  }

  .stream-screen {
    min-height: 290px;
  }

  .screen-route {
    height: 265px;
  }

  .screen-caption {
    display: none;
  }

  .stream-atmosphere::before {
    right: -60%;
    bottom: -25%;
    width: 150%;
  }

  .diagnostic-flow {
    grid-template-columns: 1fr;
  }

  .diagnostic-step {
    min-height: auto;
  }

  .diagnostic-step + .diagnostic-step {
    border-top: 1px solid var(--color-border);
    border-left: 0;
  }

  .diagnostic-step::after {
    display: none;
  }

  .diagnostic-code {
    margin-bottom: 28px;
  }

  .error-item summary {
    padding-right: 38px;
  }

  .error-answer {
    padding-right: 18px;
  }
}