.stream-hero {
  border-bottom: 1px solid var(--color-border);
  padding-top: 78px;
  padding-bottom: 78px;
}

.stream-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  align-items: center;
  gap: 72px;
}

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

.stream-lead {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--color-text-muted);
  font-size: 18px;
}

.stream-actions {
  margin-top: 28px;
}

.stream-badges {
  margin-top: 22px;
}

.stream-console {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  padding: 22px;
}

.stream-console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px dashed var(--color-border);
  padding-bottom: 16px;
}

.stream-console-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-accent-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
}

.stream-platform-list {
  display: grid;
  gap: 0;
}

.stream-platform {
  display: flex;
  min-height: 47px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.stream-platform span:first-child {
  font-weight: 600;
}

.stream-platform span:last-child {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: right;
}

.stream-route {
  display: grid;
  grid-template-columns: auto minmax(24px, 1fr) auto minmax(24px, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.stream-route i {
  position: relative;
  height: 1px;
  background: var(--color-accent);
}

.stream-route i::after {
  position: absolute;
  top: -3px;
  right: 0;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--color-accent);
  border-right: 1px solid var(--color-accent);
  transform: rotate(45deg);
  content: "";
}

.stream-reading-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.68fr) minmax(0, 1.32fr);
  align-items: start;
  gap: 72px;
}

.stream-reading-grid .section-head {
  position: sticky;
  top: var(--toc-offset);
  margin-bottom: 0;
}

.stream-prose {
  max-width: none;
}

.stream-prose p {
  color: var(--color-text-muted);
}

.stream-prose p:first-child {
  color: var(--color-text);
  font-size: 18px;
}

.stream-soft-section {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-panel-soft);
}

.stream-table {
  min-width: 980px;
}

.stream-table td:nth-child(3) {
  color: var(--color-accent-strong);
}

.stream-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.stream-notes h3 {
  margin-top: 10px;
  font-size: 21px;
}

.stream-notes p:last-child {
  margin-bottom: 0;
  color: var(--color-text-muted);
}

.stream-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
}

.stream-definition {
  padding: 34px;
}

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

.stream-definition h3 {
  margin-top: 14px;
}

.stream-definition p {
  color: var(--color-text-muted);
}

.stream-definition p:last-child {
  margin-bottom: 0;
}

.stream-callout {
  margin-top: 24px;
}

.stream-error-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}

.stream-error {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-panel);
  padding: 28px;
}

.stream-error-mark {
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-pill);
  color: var(--color-accent-strong);
  font-family: var(--font-mono);
  font-size: 12px;
}

.stream-error h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.stream-error p {
  margin-bottom: 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

.stream-procedure {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}

.stream-procedure article {
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-panel);
  padding: 28px;
}

.stream-procedure h3 {
  margin-top: 12px;
  font-size: 20px;
}

.stream-procedure p {
  margin-bottom: 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

.stream-faq-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1.35fr);
  gap: 72px;
}

.stream-faq-layout .section-head {
  margin-bottom: 0;
}

.stream-end {
  border-color: var(--color-border);
}

.stream-end-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 18px;
}

@media (max-width: 1040px) {
  .stream-hero-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .stream-console {
    width: 100%;
  }

  .stream-reading-grid,
  .stream-faq-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .stream-reading-grid .section-head {
    position: static;
  }

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

@media (max-width: 768px) {
  .stream-hero {
    padding-top: 56px;
    padding-bottom: 56px;
  }

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

  .stream-lead {
    font-size: 16px;
  }

  .stream-console {
    padding: 18px;
  }

  .stream-notes,
  .stream-compare,
  .stream-error-grid {
    grid-template-columns: 1fr;
  }

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

  .stream-error-grid {
    border-left: 0;
  }

  .stream-error {
    border-left: 1px solid var(--color-border);
  }

  .stream-procedure {
    grid-template-columns: 1fr;
    border-left: 0;
  }

  .stream-procedure article {
    border-left: 1px solid var(--color-border);
  }
}

@media (max-width: 520px) {
  .stream-console-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .stream-platform {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .stream-platform span:last-child {
    text-align: left;
  }

  .stream-route {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .stream-route i {
    width: 1px;
    height: 18px;
    margin-left: 12px;
  }

  .stream-route i::after {
    top: auto;
    right: -3px;
    bottom: 0;
    transform: rotate(135deg);
  }

  .stream-definition,
  .stream-error,
  .stream-procedure article {
    padding: 22px;
  }

  .stream-error {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 13px;
  }

  .stream-error-mark {
    width: 34px;
    height: 34px;
  }
}