.stream-article {
  --stream-cyan: #45dff4;
  --stream-violet: #875cff;
  --stream-coral: #ff5d68;
  --stream-panel: #09172a;
}

.stream-article .article-label span,
.stream-article .article-freshness i {
  background: var(--stream-cyan);
  box-shadow: 0 0 22px rgba(69, 223, 244, 0.58);
}

.stream-article .article-hero h1 {
  max-width: 16ch;
}

.stream-cover {
  border-color: rgba(69, 223, 244, 0.32);
  background: #061124;
  box-shadow: 0 28px 80px rgba(28, 66, 190, 0.18);
}

.stream-opening {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(69, 223, 244, 0.25);
  background:
    radial-gradient(circle at 85% 12%, rgba(135, 92, 255, 0.17), transparent 28%),
    linear-gradient(135deg, rgba(69, 223, 244, 0.08), transparent 45%),
    #08131f;
}

.stream-meter {
  display: flex;
  align-items: end;
  gap: 6px;
  width: fit-content;
  height: 32px;
  margin-bottom: 1.4rem;
}

.stream-meter span,
.stream-meter i {
  display: block;
  width: 12px;
  border-radius: 2px 2px 0 0;
  background: var(--stream-cyan);
  box-shadow: 0 0 10px rgba(69, 223, 244, 0.4);
}

.stream-meter span:nth-child(1) { height: 12px; }
.stream-meter span:nth-child(2) { height: 24px; }
.stream-meter span:nth-child(3) { height: 17px; }
.stream-meter i { width: 46px; height: 2px; margin-bottom: 8px; background: rgba(255,255,255,.25); }
.stream-meter span:nth-child(5) { height: 30px; background: var(--stream-coral); }
.stream-meter span:nth-child(6) { height: 19px; background: var(--stream-violet); }

.devtools-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin: 1.75rem 0;
}

.devtools-steps article {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,.11);
  background: linear-gradient(160deg, rgba(69, 223, 244, 0.08), rgba(8, 19, 31, 0.78));
}

.devtools-steps b {
  display: block;
  color: var(--stream-cyan);
  font: 800 0.72rem/1 ui-monospace, monospace;
}

.devtools-steps span {
  display: block;
  margin: 0.8rem 0 0.45rem;
  color: #fff;
  font-weight: 800;
}

.devtools-steps p {
  margin: 0;
  font-size: 0.82rem;
}

.stream-note,
.override-limit {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 1.6rem 0;
  padding: 1.15rem;
  border: 1px solid rgba(69, 223, 244, 0.32);
  background: rgba(69, 223, 244, 0.07);
}

.stream-note i {
  color: var(--stream-cyan);
  font-size: 1.35rem;
}

.stream-note strong,
.override-limit strong {
  color: #effdff;
}

.stream-note p,
.override-limit p {
  margin: 0.35rem 0 0;
}

.stream-code {
  border-color: rgba(69, 223, 244, 0.28);
  box-shadow: 10px 10px 0 rgba(69, 223, 244, 0.045);
}

.stream-code > div {
  background: linear-gradient(90deg, rgba(69, 223, 244, 0.13), rgba(135, 92, 255, 0.09));
}

.stream-code > div em {
  color: var(--stream-cyan);
}

.hostile-code {
  border-left: 4px solid var(--stream-coral);
}

.profile-card {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  margin: 1.7rem 0;
  border: 1px solid rgba(135, 92, 255, 0.38);
  background: var(--stream-panel);
}

.profile-card div {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border-right: 1px solid rgba(255,255,255,.1);
}

.profile-card div:last-child {
  border-right: 0;
}

.profile-card span {
  color: #91a3b7;
  font: 700 0.68rem/1 ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-card strong {
  color: #fff;
  font-size: 0.9rem;
}

.override-limit {
  display: block;
  border-color: rgba(255, 93, 104, 0.38);
  background: rgba(255, 93, 104, 0.08);
}

.debug-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.75rem 0;
}

.debug-grid article {
  padding: 1.2rem;
  border: 1px solid rgba(255,255,255,.11);
  background:
    linear-gradient(145deg, rgba(135, 92, 255, 0.08), transparent),
    #0a1420;
}

.debug-grid b {
  color: var(--stream-cyan);
}

.debug-grid p {
  margin: 0.45rem 0 0;
}

@media (max-width: 820px) {
  .devtools-steps,
  .profile-card,
  .debug-grid {
    grid-template-columns: 1fr;
  }

  .profile-card div {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }

  .profile-card div:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .stream-meter span:nth-child(5) {
    animation: stream-pulse 1.8s ease-in-out infinite;
  }

  @keyframes stream-pulse {
    50% { opacity: 0.38; transform: scaleY(0.55); transform-origin: bottom; }
  }
}
