:root {
  color-scheme: dark;
  --title-glitch-alpha: 1;
  --ink: #edf8f4;
  --muted: #8ea6a3;
  --line: rgba(111, 255, 228, 0.2);
  --line-strong: rgba(111, 255, 228, 0.42);
  --cyan: #5fffe5;
  --green: #83ff9b;
  --gold: #ffcc66;
  --panel: rgba(3, 11, 13, 0.46);
  --panel-strong: rgba(5, 17, 19, 0.72);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #010303;
  color: var(--ink);
  font-family:
    "SFMono-Regular",
    "Cascadia Code",
    "Liberation Mono",
    Menlo,
    monospace;
}

html {
  font-size: 14px;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
}

body::before {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 62%, rgba(95, 255, 229, 0.08), transparent 28rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.6));
}

body::after {
  z-index: 3;
  opacity: 0.34;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04) 0,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 9px
  );
  mix-blend-mode: soft-light;
}

#scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.news-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: grid;
  align-content: space-around;
  padding: 12vh 0 16vh;
  overflow: hidden;
  pointer-events: none;
  perspective: 900px;
  opacity: 0.42;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.news-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  gap: 2rem;
  color: rgba(131, 255, 155, 0.34);
  font-size: 0.68rem;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(95, 255, 229, 0.24);
  transform: rotateX(58deg) rotateZ(-2deg) translateZ(-60px);
  animation: news-run 52s linear infinite;
  will-change: transform;
}

.news-track.reverse {
  color: rgba(95, 255, 229, 0.28);
  animation-direction: reverse;
  animation-duration: 67s;
  transform: rotateX(62deg) rotateZ(2deg) translateZ(-90px);
}

.news-track.slow {
  color: rgba(255, 204, 102, 0.24);
  animation-duration: 86s;
  transform: rotateX(64deg) rotateZ(-4deg) translateZ(-130px);
}

.news-layer.is-compact {
  align-content: center;
  padding: 0;
  opacity: 0.5;
}

.news-layer.is-compact .news-track {
  transform: rotateX(59deg) rotateZ(-2deg) translateZ(-88px);
}

.news-layer.is-compact [data-news-row="1"],
.news-layer.is-compact [data-news-row="2"] {
  display: none;
}

.news-track span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.news-track-item {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}

.material-sentiment-icon {
  display: inline-grid;
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
  color: currentColor;
  line-height: 1;
  place-items: center;
  vertical-align: middle;
}

.material-sentiment-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.workspace {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100vh;
  padding: clamp(0.75rem, 2.2vw, 2.2rem);
  perspective: 1100px;
  place-items: center;
}

.editor-shell {
  --shell-shift-x: 0px;
  --shell-shift-y: 0px;
  --shell-tilt-x: 0deg;
  --shell-tilt-y: 0deg;
  display: grid;
  width: min(1180px, 100%);
  border: 1px solid rgba(133, 255, 225, 0.2);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(18, 48, 52, 0.16), rgba(2, 8, 9, 0.34)),
    var(--panel);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.045) inset,
    0 34px 90px rgba(0, 0, 0, 0.58),
    0 0 90px rgba(95, 255, 229, 0.12);
  transform:
    translate3d(var(--shell-shift-x), var(--shell-shift-y), 0)
    rotateX(var(--shell-tilt-x))
    rotateY(var(--shell-tilt-y));
  transform-style: preserve-3d;
  transition:
    width 260ms ease,
    height 260ms ease,
    box-shadow 260ms ease;
  will-change: transform;
}

.editor-shell.is-maximized {
  --max-inset: clamp(0.5rem, 1.5vw, 1rem);
  position: fixed;
  inset: var(--max-inset);
  z-index: 4;
  width: calc(100vw - var(--max-inset) - var(--max-inset));
  height: calc(100vh - var(--max-inset) - var(--max-inset));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.055) inset,
    0 40px 120px rgba(0, 0, 0, 0.62),
    0 0 120px rgba(95, 255, 229, 0.16);
  transform: none;
}

.editor-shell.is-minimized {
  width: min(520px, 100%);
}

.editor-face {
  grid-area: 1 / 1;
  min-width: 0;
  min-height: 0;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition:
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.editor-front {
  display: flex;
  min-height: 0;
  flex-direction: column;
  opacity: 1;
  pointer-events: auto;
  transform: rotateY(0deg);
}

.editor-back {
  display: grid;
  min-height: min(540px, 68vh);
  padding: clamp(1rem, 2.8vw, 2.35rem);
  background:
    linear-gradient(rgba(95, 255, 229, 0.04) 0 1px, transparent 1px 100%),
    linear-gradient(90deg, rgba(95, 255, 229, 0.04) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 50% 42%, rgba(131, 255, 155, 0.12), transparent 17rem),
    rgba(1, 6, 7, 0.84);
  background-size: 42px 42px, 42px 42px, auto, auto;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: rotateY(-180deg);
}

.editor-shell.is-flipped .editor-front {
  opacity: 0;
  pointer-events: none;
  transform: rotateY(180deg);
}

.editor-shell.is-flipped .editor-back {
  opacity: 1;
  pointer-events: auto;
  transform: rotateY(0deg);
}

.editor-shell.is-minimized .editor-body,
.editor-shell.is-minimized .editor-back {
  display: none;
}

.editor-shell.is-maximized .editor-body {
  min-height: 0;
  flex: 1 1 auto;
}

.editor-shell.is-maximized .code-surface {
  justify-content: flex-start;
  padding-block: clamp(0.9rem, 1.8vw, 1.6rem);
}

.editor-shell.is-maximized .code-surface:not(.is-subtab) {
  gap: 0;
}

.editor-shell.is-maximized .editor-back {
  min-height: 0;
  height: 100%;
}

.editor-topbar {
  display: flex;
  align-items: center;
  min-height: 36px;
  border-bottom: 1px solid rgba(133, 255, 225, 0.15);
  background: rgba(2, 8, 10, 0.5);
}

.window-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
  padding: 0 14px;
}

.window-control {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgba(237, 248, 244, 0.34);
  border-radius: 50%;
  background: rgba(237, 248, 244, 0.06);
  box-shadow: 0 0 0 rgba(95, 255, 229, 0);
  cursor: pointer;
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.window-control:hover,
.window-control:focus-visible {
  background: rgba(237, 248, 244, 0.15);
  box-shadow: 0 0 14px rgba(95, 255, 229, 0.28);
  outline: 0;
  transform: scale(1.16);
}

.window-control.minimize {
  border-color: rgba(255, 204, 102, 0.72);
}

.window-control.maximize {
  border-color: rgba(131, 255, 155, 0.65);
}

.window-control.flip {
  border-color: rgba(95, 255, 229, 0.66);
}

.ticker-toggle {
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  margin-left: auto;
  margin-right: 0.7rem;
  padding: 0;
  border: 1px solid rgba(95, 255, 229, 0.18);
  border-radius: 4px;
  background: rgba(1, 9, 10, 0.22);
  color: rgba(142, 166, 163, 0.78);
  cursor: pointer;
  place-items: center;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.ticker-toggle svg {
  width: 0.94rem;
  height: 0.94rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.ticker-icon-compact {
  display: none;
}

.ticker-toggle[aria-pressed="true"] .ticker-icon-expanded {
  display: none;
}

.ticker-toggle[aria-pressed="true"] .ticker-icon-compact {
  display: block;
}

.ticker-toggle:hover,
.ticker-toggle:focus-visible,
.ticker-toggle[aria-pressed="true"] {
  border-color: rgba(131, 255, 155, 0.46);
  box-shadow: 0 0 18px rgba(95, 255, 229, 0.16);
  color: rgba(131, 255, 155, 0.92);
  outline: 0;
}

.ticker-toggle[aria-pressed="true"] {
  transform: translateY(-1px);
}

.tab {
  display: grid;
  min-height: 36px;
  padding: 0 14px;
  border-left: 1px solid rgba(133, 255, 225, 0.11);
  border-right: 1px solid rgba(133, 255, 225, 0.11);
  color: var(--muted);
  font-size: 0.72rem;
  place-items: center;
}

button.tab {
  border-top: 0;
  border-bottom: 0;
  background: transparent;
  font-family: inherit;
  font-size: 0.72rem;
  line-height: 1;
  cursor: pointer;
}

.tab.active {
  background: rgba(95, 255, 229, 0.08);
  color: var(--ink);
}

.tab.created {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  color: var(--tab-accent, rgba(131, 255, 155, 0.82));
}

.tab.created.active {
  color: var(--tab-accent, var(--ink));
  text-shadow: 0 0 14px color-mix(in srgb, var(--tab-accent, var(--green)) 42%, transparent);
}

.tab-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab-close {
  display: grid;
  width: 15px;
  height: 15px;
  border: 1px solid color-mix(in srgb, var(--tab-accent, var(--green)) 42%, transparent);
  border-radius: 4px;
  color: color-mix(in srgb, var(--tab-accent, var(--green)) 82%, rgba(1, 8, 9, 0.3));
  font-size: 0.64rem;
  line-height: 1;
  opacity: 0.62;
  place-items: center;
  text-shadow: none;
}

.tab-close:hover {
  background: rgba(255, 77, 91, 0.14);
  border-color: rgba(255, 77, 91, 0.5);
  color: rgba(255, 185, 190, 0.95);
  opacity: 1;
}

.tab.is-landing {
  animation: tab-land 420ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.tab.ghost {
  opacity: 0.48;
}

.editor-body {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  min-height: min(540px, 68vh);
  background:
    linear-gradient(90deg, rgba(95, 255, 229, 0.06) 0 1px, transparent 1px 100%),
    linear-gradient(rgba(95, 255, 229, 0.03) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 52% 42%, rgba(95, 255, 229, 0.038), transparent 18rem);
  background-size: 40px 40px, 40px 40px, auto;
}

.back-panel {
  display: grid;
  max-width: 560px;
  margin: auto;
  gap: 0.62rem;
  color: rgba(237, 248, 244, 0.86);
  text-align: center;
  text-shadow: 0 0 18px rgba(95, 255, 229, 0.24);
}

.back-kicker,
.back-copy,
.back-mode {
  margin: 0;
}

.back-kicker {
  color: rgba(255, 204, 102, 0.78);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.back-copy {
  color: rgba(237, 248, 244, 0.88);
  font-size: 0.96rem;
  line-height: 1.38;
}

.back-mode {
  color: rgba(131, 255, 155, 0.82);
  font-size: 1.18rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.gutter {
  display: grid;
  align-content: space-between;
  gap: 0.36rem;
  padding: 34px 0 26px;
  border-right: 1px solid rgba(133, 255, 225, 0.14);
  background: rgba(0, 0, 0, 0.14);
  color: rgba(142, 166, 163, 0.58);
  font-size: 0.66rem;
  text-align: center;
}

.code-surface {
  position: relative;
  display: flex;
  min-width: 0;
  padding: clamp(0.92rem, 2.6vw, 2.35rem);
  flex-direction: column;
  justify-content: flex-start;
}

.comment {
  margin: 0 0 0.58rem;
  color: rgba(131, 255, 155, 0.7);
  font-size: 0.74rem;
}

h1 {
  position: relative;
  display: flex;
  max-width: min(100%, 18ch);
  margin: 0;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 0.28em;
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
  font-size: 4.2rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 0.9;
  text-shadow:
    0 0 24px rgba(95, 255, 229, 0.18),
    0 0 1px rgba(255, 255, 255, 0.9);
}

.brand-main,
.brand-labs {
  display: inline-block;
}

.brand-main {
  white-space: nowrap;
}

.brand-labs {
  font-size: 1em;
  white-space: nowrap;
}

h1::before,
h1::after {
  position: absolute;
  inset: 0;
  overflow: hidden;
  content: "";
  opacity: 0;
  pointer-events: none;
}

h1::before {
  color: rgba(131, 255, 155, 0.86);
  text-shadow: 0 0 16px rgba(131, 255, 155, 0.34);
}

h1::after {
  color: rgba(255, 77, 91, 0.78);
  mix-blend-mode: screen;
  text-shadow: 0 0 14px rgba(255, 77, 91, 0.28);
}

h1.is-glitching::before,
h1.is-glitching::after {
  content: attr(data-glitch);
  will-change: clip-path, filter, opacity, transform;
}

:root.is-layout-quiet h1::before,
:root.is-layout-quiet h1::after,
:root.is-interacting h1::before,
:root.is-interacting h1::after {
  content: "";
  animation: none;
  opacity: 0;
  will-change: auto;
}

h1.is-glitching.glitch-scan::before {
  animation: title-glitch-scan-green 620ms steps(1, end) both;
}

h1.is-glitching.glitch-scan::after {
  animation: title-glitch-scan-red 620ms steps(1, end) both;
}

h1.is-glitching.glitch-tear::before {
  animation: title-glitch-tear-green 520ms steps(1, end) both;
}

h1.is-glitching.glitch-tear::after {
  animation: title-glitch-tear-red 520ms steps(1, end) both;
}

h1.is-glitching.glitch-phase::before {
  animation: title-glitch-phase-green 840ms ease-out both;
}

h1.is-glitching.glitch-phase::after {
  animation: title-glitch-phase-red 840ms ease-out both;
}

.terminal-feed {
  display: grid;
  width: 100%;
  height: auto;
  min-height: 6.25rem;
  margin-top: clamp(0.52rem, 1.25vw, 0.9rem);
  align-content: start;
  gap: 0.24rem;
  overflow: hidden;
  color: rgba(237, 248, 244, 0.76);
  contain: layout paint;
  flex: 1 1 auto;
  font-size: 0.7rem;
  line-height: 1.28;
}

.editor-shell.is-maximized .terminal-feed {
  width: 100%;
  min-height: 9.2rem;
  margin-top: clamp(0.42rem, 1vw, 0.72rem);
}

.heatmap-widget {
  display: grid;
  gap: 0.22rem;
  width: 100%;
  margin-top: 0.42rem;
  justify-items: stretch;
}

.tape-status {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 0.3rem;
  padding: 0.1rem 0.34rem;
  border: 1px solid rgba(255, 204, 102, 0.28);
  border-radius: 4px;
  background: rgba(255, 204, 102, 0.07);
  color: rgba(237, 248, 244, 0.72);
  font-size: 0.57rem;
  line-height: 1.3;
  text-transform: uppercase;
}

.tape-status[hidden] {
  display: none;
}

.tape-label {
  color: rgba(255, 204, 102, 0.86);
}

.tape-value {
  max-width: min(28rem, 56vw);
  overflow: hidden;
  color: rgba(131, 255, 155, 0.92);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tape-count {
  color: rgba(95, 255, 229, 0.68);
}

.heatmap-toggle {
  display: block;
  width: 100%;
  padding: 0.34rem;
  border: 1px solid rgba(95, 255, 229, 0.18);
  border-radius: 6px;
  background:
    linear-gradient(rgba(95, 255, 229, 0.035) 0 1px, transparent 1px 100%),
    linear-gradient(90deg, rgba(95, 255, 229, 0.035) 0 1px, transparent 1px 100%),
    rgba(1, 8, 9, 0.46);
  background-size: 18px 18px, 18px 18px, auto;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.025) inset,
    0 0 22px rgba(95, 255, 229, 0.06);
  cursor: pointer;
}

.heatmap-toggle:hover,
.heatmap-toggle:focus-visible {
  border-color: rgba(95, 255, 229, 0.36);
  outline: 0;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.035) inset,
    0 0 26px rgba(95, 255, 229, 0.12);
}

.heatmap-grid {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
}

.heatmap-square {
  display: block;
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border: 1px solid rgba(95, 255, 229, 0.16);
  border-radius: 2px;
  background: rgba(95, 255, 229, 0.16);
  box-shadow: 0 0 10px rgba(95, 255, 229, 0.08);
}

.heatmap-square.bull {
  border-color: rgba(131, 255, 155, 0.42);
  background: rgba(131, 255, 155, 0.42);
  box-shadow: 0 0 12px rgba(131, 255, 155, 0.18);
}

.heatmap-square.bear {
  border-color: rgba(255, 77, 91, 0.56);
  background: rgba(255, 77, 91, 0.48);
  box-shadow: 0 0 12px rgba(255, 77, 91, 0.2);
}

.heatmap-square.neutral {
  border-color: rgba(95, 255, 229, 0.32);
  background: rgba(95, 255, 229, 0.24);
}

.waiting-data {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 0.34rem;
  color: rgba(142, 166, 163, 0.78);
  font-size: 0.56rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.waiting-icon {
  position: relative;
  display: inline-block;
  width: 0.78rem;
  height: 0.78rem;
  flex: 0 0 auto;
  border: 1px solid rgba(95, 255, 229, 0.38);
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.025) inset,
    0 0 12px rgba(95, 255, 229, 0.14);
}

.waiting-icon::after {
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: rgba(131, 255, 155, 0.34);
  box-shadow: 0 0 10px rgba(131, 255, 155, 0.18);
  content: "";
  animation: waiting-pulse 1.6s ease-in-out infinite;
}

@keyframes waiting-pulse {
  0%,
  100% {
    opacity: 0.28;
    transform: scale(0.72);
  }

  50% {
    opacity: 0.92;
    transform: scale(1);
  }
}

.company-toggle {
  border-color: rgba(255, 204, 102, 0.22);
}

.company-toggle:hover,
.company-toggle:focus-visible {
  border-color: rgba(255, 204, 102, 0.42);
}

.company-square {
  border-radius: 1px;
}

.heatmap-panel {
  display: grid;
  gap: 0.28rem;
  padding: 0.44rem;
  border: 1px solid rgba(95, 255, 229, 0.18);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  background:
    linear-gradient(rgba(95, 255, 229, 0.035) 0 1px, transparent 1px 100%),
    linear-gradient(90deg, rgba(95, 255, 229, 0.035) 0 1px, transparent 1px 100%),
    rgba(1, 7, 8, 0.66);
  background-size: 18px 18px, 18px 18px, auto;
}

.heatmap-panel[hidden] {
  display: none;
}

.heatmap-row {
  display: grid;
  grid-template-columns: 3.1rem minmax(0, 1fr) 3.8rem;
  gap: 0.36rem;
  align-items: center;
  color: rgba(237, 248, 244, 0.74);
  font-size: 0.6rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.heatmap-row.muted {
  display: block;
  color: rgba(142, 166, 163, 0.72);
}

.heatmap-label {
  color: rgba(255, 204, 102, 0.78);
}

.heatmap-rail {
  display: flex;
  min-width: 0;
  height: 0.42rem;
  gap: 2px;
}

.heatmap-bar {
  min-width: 2px;
  border-radius: 2px;
  background: rgba(95, 255, 229, 0.22);
}

.heatmap-bar.bull {
  background: rgba(131, 255, 155, 0.58);
}

.heatmap-bar.bear {
  background: rgba(255, 77, 91, 0.62);
}

.heatmap-meta {
  color: rgba(95, 255, 229, 0.72);
  text-align: right;
}

.heatmap-sankey {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  min-height: 177px;
  overflow: hidden;
  border: 1px solid rgba(255, 204, 102, 0.16);
  border-radius: 5px;
  background:
    linear-gradient(rgba(255, 204, 102, 0.032) 0 1px, transparent 1px 100%),
    linear-gradient(90deg, rgba(95, 255, 229, 0.03) 0 1px, transparent 1px 100%),
    rgba(1, 8, 9, 0.5);
  background-size: 16px 16px, 16px 16px, auto;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 0 20px rgba(95, 255, 229, 0.07);
}

.heatmap-sankey-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.28rem 0.34rem 0;
  color: rgba(255, 204, 102, 0.78);
  font-size: 0.5rem;
  line-height: 1;
  text-transform: uppercase;
}

.heatmap-sankey-head span:last-child {
  overflow: hidden;
  color: rgba(142, 166, 163, 0.7);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.heatmap-sankey-canvas {
  min-width: 0;
  min-height: 0;
}

.heatmap-sankey .chart-fallback {
  padding: 0.36rem;
  font-size: 0.5rem;
}

.heatmap-sankey .sankey-fallback text {
  font-size: 8px;
}

.insight-panel {
  display: grid;
  order: -1;
  gap: 0.42rem;
  padding: 0.52rem;
  border: 1px solid rgba(95, 255, 229, 0.2);
  border-radius: 6px;
  background:
    linear-gradient(rgba(95, 255, 229, 0.035) 0 1px, transparent 1px 100%),
    linear-gradient(90deg, rgba(95, 255, 229, 0.035) 0 1px, transparent 1px 100%),
    rgba(1, 7, 8, 0.7);
  background-size: 18px 18px, 18px 18px, auto;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.025) inset,
    0 0 28px rgba(95, 255, 229, 0.08);
}

.code-surface.is-subtab {
  justify-content: flex-start;
}

.code-surface.is-subtab > .comment,
.code-surface.is-subtab > h1,
.code-surface.is-subtab > .terminal-feed,
.code-surface.is-subtab > .terminal-line,
.code-surface.is-subtab > .command-panel-row,
.code-surface.is-subtab .tape-status,
.code-surface.is-subtab .heatmap-toggle,
.code-surface.is-subtab .heatmap-panel,
.code-surface.is-subtab .heatmap-sankey {
  display: none;
}

.code-surface.is-subtab .heatmap-widget {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  margin-top: 0;
}

.insight-panel.is-tab-view {
  align-content: start;
  min-height: 0;
  max-height: calc(100vh - 6.4rem);
  overflow: auto;
  gap: 0.62rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.insight-panel.is-tab-view .insight-head {
  padding-bottom: 0.34rem;
  border-bottom: 1px solid rgba(95, 255, 229, 0.14);
}

.insight-panel[hidden] {
  display: none;
}

.insight-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-width: 0;
  align-items: center;
  gap: 0.42rem;
}

.insight-badge {
  flex: 0 0 auto;
  color: rgba(255, 204, 102, 0.9);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.insight-copy {
  min-width: 0;
  overflow: hidden;
  color: rgba(142, 166, 163, 0.78);
  font-size: 0.59rem;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.insight-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.26rem;
}

.insight-action {
  display: grid;
  width: 1.16rem;
  height: 1.16rem;
  padding: 0;
  border: 1px solid rgba(95, 255, 229, 0.22);
  border-radius: 4px;
  background: rgba(1, 9, 10, 0.38);
  color: rgba(237, 248, 244, 0.76);
  cursor: pointer;
  font: inherit;
  font-size: 0.64rem;
  line-height: 1;
  place-items: center;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.insight-action:hover,
.insight-action:focus-visible {
  border-color: rgba(131, 255, 155, 0.58);
  box-shadow: 0 0 18px rgba(95, 255, 229, 0.18);
  color: rgba(131, 255, 155, 0.92);
  outline: 0;
  transform: translateY(-1px);
}

.insight-action.close:hover,
.insight-action.close:focus-visible {
  border-color: rgba(255, 77, 91, 0.58);
  color: rgba(255, 77, 91, 0.92);
}

.insight-panel.is-orbiting {
  pointer-events: none;
  transform-origin: top right;
  animation: panel-orbit 360ms cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
}

.tab-flight {
  position: fixed;
  z-index: 8;
  display: grid;
  min-height: 26px;
  padding: 0 11px;
  border: 1px solid rgba(131, 255, 155, 0.46);
  border-radius: 4px;
  background: rgba(3, 18, 18, 0.72);
  color: rgba(131, 255, 155, 0.95);
  font-size: 0.62rem;
  pointer-events: none;
  place-items: center;
  text-transform: uppercase;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 28px rgba(95, 255, 229, 0.24);
}

.insight-body {
  display: grid;
  align-content: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.26rem 0.44rem;
}

.insight-body.insight-charts {
  grid-template-columns: minmax(210px, 0.82fr) minmax(0, 1.55fr);
  gap: 0.58rem;
  min-height: 0;
}

.insight-summary {
  display: grid;
  align-content: start;
  gap: 0.26rem;
  min-width: 0;
}

.chart-grid,
.chart-workspace {
  display: grid;
  align-content: start;
  gap: 0.48rem;
  min-width: 0;
}

.chart-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-width: 0;
}

.chart-tab {
  min-height: 1.34rem;
  padding: 0 0.42rem;
  border: 1px solid rgba(95, 255, 229, 0.2);
  border-radius: 4px;
  background: rgba(1, 9, 10, 0.38);
  color: rgba(142, 166, 163, 0.8);
  cursor: pointer;
  font: inherit;
  font-size: 0.56rem;
  line-height: 1;
  text-transform: uppercase;
}

.chart-tab.active,
.chart-tab:hover,
.chart-tab:focus-visible {
  border-color: rgba(131, 255, 155, 0.48);
  color: rgba(131, 255, 155, 0.94);
  outline: 0;
  box-shadow: 0 0 18px rgba(95, 255, 229, 0.14);
}

.chart-stage {
  display: grid;
  min-width: 0;
}

.chart-card {
  display: grid;
  min-width: 0;
  min-height: 10.8rem;
  overflow: hidden;
  border: 1px solid rgba(95, 255, 229, 0.18);
  border-radius: 6px;
  background:
    linear-gradient(rgba(95, 255, 229, 0.03) 0 1px, transparent 1px 100%),
    linear-gradient(90deg, rgba(95, 255, 229, 0.03) 0 1px, transparent 1px 100%),
    rgba(0, 8, 9, 0.34);
  background-size: 18px 18px, 18px 18px, auto;
}

.chart-card.focused {
  min-height: min(27rem, calc(100vh - 15.5rem));
}

.chart-card.wide {
  grid-column: 1 / -1;
}

.chart-title {
  padding: 0.36rem 0.44rem 0;
  color: rgba(255, 204, 102, 0.82);
  font-size: 0.57rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.chart-canvas {
  min-width: 0;
  height: 9.8rem;
}

.chart-card.wide .chart-canvas {
  height: 11.5rem;
}

.chart-card.focused .chart-canvas {
  height: min(24rem, calc(100vh - 18rem));
  min-height: 17rem;
}

.chart-fallback {
  align-self: center;
  padding: 0.62rem;
  color: rgba(142, 166, 163, 0.78);
  font-size: 0.6rem;
  line-height: 1.28;
  text-transform: uppercase;
}

.sankey-fallback {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sankey-fallback text {
  fill: rgba(237, 248, 244, 0.74);
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 9px;
  letter-spacing: 0;
  paint-order: stroke;
  stroke: rgba(1, 8, 9, 0.74);
  stroke-width: 2px;
  text-transform: uppercase;
}

.insight-row {
  display: grid;
  grid-template-columns: minmax(3.4rem, 0.78fr) minmax(3rem, 1fr) 3.3rem;
  gap: 0.28rem;
  align-items: center;
  min-width: 0;
  color: rgba(237, 248, 244, 0.76);
  font-size: 0.57rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.insight-label {
  min-width: 0;
  overflow: hidden;
  color: rgba(237, 248, 244, 0.78);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insight-rail {
  display: block;
  height: 0.38rem;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(95, 255, 229, 0.08);
}

.insight-fill {
  display: block;
  height: 100%;
  min-width: 2px;
  background: rgba(95, 255, 229, 0.48);
}

.insight-fill.bull {
  background: rgba(131, 255, 155, 0.62);
}

.insight-fill.bear {
  background: rgba(255, 77, 91, 0.62);
}

.insight-value {
  color: rgba(95, 255, 229, 0.74);
  text-align: right;
  white-space: nowrap;
}

.insight-body.news-tracker {
  align-content: start;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.42rem;
}

.insight-body.source-browser {
  display: grid;
  align-content: start;
  grid-template-columns: repeat(auto-fit, minmax(6.8rem, 1fr));
  gap: 0.32rem;
  align-items: start;
}

.source-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 1.72rem;
  padding: 0.2rem 0.28rem;
  border: 1px solid color-mix(in srgb, var(--source-accent, var(--cyan)) 42%, transparent);
  border-radius: 4px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--source-accent, var(--cyan)) 13%, transparent), transparent),
    rgba(1, 9, 10, 0.34);
  color: rgba(237, 248, 244, 0.84);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.source-chip:hover,
.source-chip:focus-visible {
  border-color: color-mix(in srgb, var(--source-accent, var(--cyan)) 68%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--source-accent, var(--cyan)) 18%, transparent);
  outline: 0;
}

.source-code {
  overflow: hidden;
  color: var(--source-accent, var(--cyan));
  font-size: 0.62rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-count {
  color: rgba(142, 166, 163, 0.72);
  font-size: 0.5rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.news-tracker-summary {
  color: rgba(255, 204, 102, 0.78);
  font-size: 0.58rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.news-tracker-list {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.news-tracker-row {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr);
  gap: 0.32rem;
  align-items: start;
  min-width: 0;
  padding: 0.06rem 0;
}

.news-tracker-index {
  color: rgba(95, 255, 229, 0.52);
  font-size: 0.5rem;
  line-height: 1.35;
}

.news-tracker-row .news-content {
  min-width: 0;
  gap: 0.12rem;
  font-size: 0.6rem;
  line-height: 1.24;
  text-decoration: none;
}

.news-tracker-row .news-title {
  color: rgba(237, 248, 244, 0.8);
  font-size: 0.6rem;
  line-height: 1.24;
  white-space: normal;
}

.news-tracker-row .news-meta {
  gap: 0.36rem;
}

.news-tracker-row .news-source,
.news-tracker-row .news-timestamp {
  font-size: 0.5rem;
}

.news-tracker-row .news-pill {
  font-size: 0.48rem;
}

.news-tracker-empty {
  padding: 0.55rem;
  border: 1px solid rgba(95, 255, 229, 0.14);
  border-radius: 5px;
  color: rgba(142, 166, 163, 0.78);
  font-size: 0.58rem;
  line-height: 1.28;
  text-transform: uppercase;
}

.feed-line {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  margin: 0;
  opacity: 0;
  transform: translateY(4px);
  animation: line-in 360ms ease forwards;
}

.feed-line.sys,
.feed-line.system {
  color: rgba(131, 255, 155, 0.9);
}

.feed-line.user {
  color: rgba(188, 218, 255, 0.9);
  text-shadow: 0 0 14px rgba(111, 142, 255, 0.08);
}

.feed-line.user .stamp {
  color: rgba(154, 190, 255, 0.82);
}

.feed-line.user > :not(.stamp) {
  color: rgba(214, 232, 255, 0.94);
}

.feed-line.alert {
  color: rgba(255, 204, 102, 0.9);
}

.feed-line.news {
  color: rgba(95, 255, 229, 0.9);
  opacity: 1;
  transform: none;
  animation: none;
  contain: layout paint;
}

.feed-line.news + .feed-line:not(.news),
.feed-line:not(.news) + .feed-line.news {
  margin-top: 0.28rem;
}

.feed-line.unkn {
  color: rgba(255, 204, 102, 0.88);
}

.feed-line.mind,
.feed-line.osl {
  color: rgba(131, 255, 155, 0.9);
}

.feed-line.drone {
  color: rgba(95, 255, 229, 0.86);
}

.feed-line.kulle {
  color: rgba(255, 204, 102, 0.92);
}

.stamp {
  color: rgba(95, 255, 229, 0.68);
  text-transform: uppercase;
}

.osl-message {
  position: relative;
  display: block;
  min-height: 1.45em;
  padding-right: 3.2rem;
}

.osl-message-body {
  display: inline;
}

.message-ts {
  position: absolute;
  right: 0;
  bottom: -0.08rem;
  color: rgba(142, 166, 163, 0.64);
  font-size: 0.52rem;
  text-transform: none;
  white-space: nowrap;
}

.feed-line a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.18em;
}

.feed-line a:hover,
.feed-line a:focus-visible {
  color: var(--cyan);
  text-decoration: underline;
  outline: 0;
  text-shadow: 0 0 18px rgba(95, 255, 229, 0.34);
}

.news-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  align-items: baseline;
  gap: 0.18rem;
}

.news-content.is-classifying .news-title {
  color: rgba(237, 248, 244, 0.7);
}

.news-title {
  min-width: 0;
  color: rgba(237, 248, 244, 0.82);
  white-space: normal;
}

.news-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.36rem;
  align-items: baseline;
}

.news-tags {
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.14rem;
  flex-wrap: wrap;
  white-space: nowrap;
}

.news-symbols {
  display: inline-flex;
  max-width: min(13rem, 38vw);
  overflow: hidden;
  color: rgba(171, 255, 188, 0.9);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.news-stamp {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.32rem;
  color: rgba(142, 166, 163, 0.68);
  white-space: nowrap;
}

.news-source {
  color: rgba(174, 255, 241, 0.72);
  font-size: 0.55rem;
  line-height: 1.2;
  text-align: right;
  text-transform: uppercase;
}

.news-timestamp {
  color: rgba(142, 166, 163, 0.68);
  font-size: 0.55rem;
  line-height: 1.2;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}

.news-pill {
  display: inline-flex;
  min-height: 1.05em;
  padding: 0 0.18rem;
  align-items: center;
  gap: 0.08rem;
  border: 1px solid rgba(95, 255, 229, 0.22);
  border-radius: 4px;
  background: rgba(95, 255, 229, 0.07);
  color: rgba(237, 248, 244, 0.84);
  font-size: 0.49rem;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}

.news-pill.bull,
.news-pill.positive,
.news-pill.hype {
  border-color: rgba(131, 255, 155, 0.44);
  background: rgba(131, 255, 155, 0.1);
  color: rgba(171, 255, 188, 0.94);
}

.news-pill.bear,
.news-pill.negative,
.news-pill.risk {
  border-color: rgba(255, 77, 91, 0.58);
  background: rgba(255, 77, 91, 0.12);
  color: rgba(255, 142, 151, 0.96);
}

.news-pill.neutral,
.news-pill.calm {
  border-color: rgba(95, 255, 229, 0.34);
  background: rgba(95, 255, 229, 0.08);
  color: rgba(174, 255, 241, 0.88);
}

.news-pill.category {
  border-color: rgba(255, 204, 102, 0.54);
  background: rgba(255, 204, 102, 0.13);
  color: rgba(255, 224, 164, 0.96);
}

.news-pill.model {
  border-color: rgba(95, 255, 229, 0.34);
  background: rgba(95, 255, 229, 0.07);
  color: rgba(174, 255, 241, 0.9);
}

.news-pill.classifying {
  position: relative;
  overflow: hidden;
  border-color: rgba(142, 166, 163, 0.34);
  background: rgba(142, 166, 163, 0.08);
  color: rgba(174, 255, 241, 0.64);
}

.news-pill.classifying::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(95, 255, 229, 0.16), transparent);
  opacity: 0.72;
}

.terminal-line {
  display: flex;
  align-items: center;
  max-width: 100%;
  margin: 0.72rem 0 0;
  color: rgba(131, 255, 155, 0.94);
  font-size: 0.82rem;
  line-height: 1.32;
}

.prompt {
  margin-right: 0.46rem;
  color: rgba(255, 204, 102, 0.92);
  text-shadow: 0 0 12px rgba(255, 204, 102, 0.16);
}

.command-input {
  min-width: 0;
  width: var(--input-width, 19ch);
  max-width: calc(100% - 2.2rem);
  flex: 0 1 auto;
  border: 0;
  outline: 0;
  background: transparent;
  color: rgba(171, 255, 188, 0.96);
  caret-color: transparent;
  font: inherit;
  letter-spacing: 0;
  text-shadow: 0 0 14px rgba(131, 255, 155, 0.18);
}

.command-input::selection {
  background: rgba(95, 255, 229, 0.22);
  color: var(--ink);
}

.cursor {
  flex: 0 0 auto;
  display: inline-block;
  width: 0.68em;
  height: 1.1em;
  margin-left: 0.2rem;
  background: var(--cyan);
  box-shadow: 0 0 11px rgba(95, 255, 229, 0.42);
  animation: blink 1.8s steps(1) infinite;
}

:root.is-interacting {
  --title-glitch-alpha: 0.52;
}

:root.is-interacting .cursor {
  animation: none;
  opacity: 0.94;
}

:root.is-interacting .news-pill.classifying::after {
  opacity: 0.34;
}

:root.is-layout-quiet .editor-shell {
  will-change: auto;
}

:root.is-layout-quiet .feed-line,
:root.is-layout-quiet .news-track,
:root.is-layout-quiet .waiting-icon::after,
:root.is-layout-quiet .news-pill.classifying::after,
:root.is-layout-quiet .chart-loading::before {
  animation: none;
}

:root.is-layout-quiet .news-layer {
  opacity: 0.22;
}

.command-panel-row {
  display: grid;
  grid-template-columns: 285px minmax(12rem, 1fr);
  align-items: stretch;
  gap: 0.46rem;
  width: 100%;
  margin-top: 0.48rem;
}

.editor-shell.is-maximized .heatmap-widget,
.editor-shell.is-maximized .command-panel-row {
  width: 100%;
}

.suggest-box {
  width: 285px;
  margin-top: 0;
  border: 1px solid rgba(95, 255, 229, 0.24);
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel-strong);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.42),
    0 0 34px rgba(95, 255, 229, 0.08);
}

.chart-loading {
  position: relative;
  display: grid;
  min-height: 100%;
  overflow: hidden;
  place-items: center;
  color: rgba(142, 166, 163, 0.78);
  font-size: 0.56rem;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.chart-loading::before {
  position: absolute;
  inset: 0.22rem;
  content: "";
  background:
    linear-gradient(90deg, transparent, rgba(95, 255, 229, 0.16), transparent),
    linear-gradient(rgba(95, 255, 229, 0.075) 0 1px, transparent 1px 100%),
    linear-gradient(90deg, rgba(95, 255, 229, 0.055) 0 1px, transparent 1px 100%);
  background-size: 120px 100%, 14px 14px, 14px 14px;
  opacity: 0.76;
  transform: translateX(-70%);
  animation: chart-loading-scan 1.25s ease-in-out infinite;
}

.chart-loading span {
  position: relative;
  z-index: 1;
}

.suggestion {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  min-height: 25px;
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
  color: rgba(237, 248, 244, 0.8);
  font-family: inherit;
  font-size: 0.72rem;
  text-align: left;
  cursor: pointer;
}

.suggestion:first-child {
  border-top: 0;
}

.suggestion.selected {
  background:
    linear-gradient(90deg, rgba(95, 255, 229, 0.21), rgba(131, 255, 155, 0.07)),
    rgba(255, 255, 255, 0.02);
  color: var(--ink);
}

.suggestion:hover,
.suggestion:focus-visible {
  background:
    linear-gradient(90deg, rgba(95, 255, 229, 0.16), rgba(131, 255, 155, 0.05)),
    rgba(255, 255, 255, 0.02);
  color: var(--ink);
  outline: 0;
}

.kind {
  padding-left: 8px;
  color: var(--gold);
  font-size: 0.56rem;
  text-transform: uppercase;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes line-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes news-run {
  from {
    translate: 0 0;
  }

  to {
    translate: -50% 0;
  }
}

@keyframes panel-orbit {
  to {
    opacity: 0;
    transform: translate3d(9rem, -3.6rem, 0) scale(0.42);
  }
}

@keyframes tab-land {
  0% {
    filter: brightness(1.8);
    transform: translateY(-8px);
  }

  100% {
    filter: brightness(1);
    transform: translateY(0);
  }
}

@keyframes blink {
  0%,
  45% {
    opacity: 1;
  }

  46%,
  100% {
    opacity: 0;
  }
}

@keyframes chart-loading-scan {
  0% {
    transform: translateX(-72%);
  }

  100% {
    transform: translateX(72%);
  }
}

@keyframes title-glitch-scan-green {
  0%,
  14%,
  52%,
  78%,
  100% {
    opacity: 0;
    clip-path: inset(0 0 0 0);
    transform: translate3d(0, 0, 0);
  }

  18% {
    opacity: calc(var(--title-glitch-alpha, 1) * 0.46);
    clip-path: inset(7% 0 79% 0);
    transform: translate3d(-0.035em, 0, 0);
  }

  34% {
    opacity: calc(var(--title-glitch-alpha, 1) * 0.34);
    clip-path: inset(35% 0 50% 0);
    transform: translate3d(0.022em, 0.004em, 0);
  }

  58% {
    opacity: calc(var(--title-glitch-alpha, 1) * 0.42);
    clip-path: inset(68% 0 16% 0);
    transform: translate3d(-0.045em, -0.004em, 0);
  }
}

@keyframes title-glitch-scan-red {
  0%,
  10%,
  48%,
  74%,
  100% {
    opacity: 0;
    clip-path: inset(0 0 0 0);
    transform: translate3d(0, 0, 0);
  }

  15% {
    opacity: calc(var(--title-glitch-alpha, 1) * 0.32);
    clip-path: inset(82% 0 4% 0);
    transform: translate3d(0.04em, 0, 0);
  }

  39% {
    opacity: calc(var(--title-glitch-alpha, 1) * 0.38);
    clip-path: inset(20% 0 62% 0);
    transform: translate3d(0.055em, -0.004em, 0);
  }

  62% {
    opacity: calc(var(--title-glitch-alpha, 1) * 0.3);
    clip-path: inset(52% 0 31% 0);
    transform: translate3d(-0.025em, 0.006em, 0);
  }
}

@keyframes title-glitch-tear-green {
  0%,
  20%,
  72%,
  100% {
    opacity: 0;
    clip-path: inset(0 0 0 0);
    transform: translate3d(0, 0, 0) skewX(0deg);
  }

  24% {
    opacity: calc(var(--title-glitch-alpha, 1) * 0.52);
    clip-path: inset(0 0 70% 0);
    transform: translate3d(-0.06em, 0, 0) skewX(-3deg);
  }

  32% {
    opacity: calc(var(--title-glitch-alpha, 1) * 0.42);
    clip-path: inset(39% 0 36% 0);
    transform: translate3d(0.052em, 0.008em, 0) skewX(2deg);
  }

  48% {
    opacity: calc(var(--title-glitch-alpha, 1) * 0.48);
    clip-path: inset(72% 0 0 0);
    transform: translate3d(-0.04em, -0.008em, 0) skewX(-2deg);
  }
}

@keyframes title-glitch-tear-red {
  0%,
  16%,
  68%,
  100% {
    opacity: 0;
    clip-path: inset(0 0 0 0);
    transform: translate3d(0, 0, 0) skewX(0deg);
  }

  22% {
    opacity: calc(var(--title-glitch-alpha, 1) * 0.38);
    clip-path: inset(66% 0 12% 0);
    transform: translate3d(0.07em, 0.006em, 0) skewX(3deg);
  }

  35% {
    opacity: calc(var(--title-glitch-alpha, 1) * 0.32);
    clip-path: inset(12% 0 60% 0);
    transform: translate3d(-0.04em, -0.004em, 0) skewX(-2deg);
  }

  55% {
    opacity: calc(var(--title-glitch-alpha, 1) * 0.44);
    clip-path: inset(45% 0 34% 0);
    transform: translate3d(0.048em, 0, 0) skewX(2deg);
  }
}

@keyframes title-glitch-phase-green {
  0%,
  100% {
    opacity: 0;
    clip-path: inset(0 0 0 0);
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }

  22% {
    opacity: calc(var(--title-glitch-alpha, 1) * 0.28);
    clip-path: inset(0 0 0 0);
    filter: blur(0.01em);
    transform: translate3d(-0.026em, 0, 0) scale(1.006);
  }

  46% {
    opacity: calc(var(--title-glitch-alpha, 1) * 0.38);
    clip-path: inset(18% 0 18% 0);
    filter: blur(0.018em);
    transform: translate3d(0.034em, -0.004em, 0) scale(1.003);
  }

  70% {
    opacity: calc(var(--title-glitch-alpha, 1) * 0.2);
    clip-path: inset(0 0 0 0);
    filter: blur(0);
    transform: translate3d(-0.012em, 0.004em, 0) scale(1.002);
  }
}

@keyframes title-glitch-phase-red {
  0%,
  100% {
    opacity: 0;
    clip-path: inset(0 0 0 0);
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }

  18% {
    opacity: calc(var(--title-glitch-alpha, 1) * 0.22);
    clip-path: inset(0 0 0 0);
    filter: blur(0.012em);
    transform: translate3d(0.032em, 0.004em, 0) scale(1.004);
  }

  43% {
    opacity: calc(var(--title-glitch-alpha, 1) * 0.34);
    clip-path: inset(8% 0 24% 0);
    filter: blur(0.02em);
    transform: translate3d(-0.04em, 0, 0) scale(1.005);
  }

  76% {
    opacity: calc(var(--title-glitch-alpha, 1) * 0.18);
    clip-path: inset(0 0 0 0);
    filter: blur(0);
    transform: translate3d(0.018em, -0.004em, 0) scale(1.002);
  }
}

@media (max-width: 680px) {
  html {
    font-size: 14px;
  }

  body {
    overflow: hidden;
  }

  .workspace {
    height: 100svh;
    min-height: 0;
    padding: 0.85rem;
  }

  .editor-shell:not(.is-minimized) {
    height: calc(100svh - 1.7rem);
    max-height: calc(100svh - 1.7rem);
  }

  .editor-front {
    height: 100%;
  }

  .editor-body {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 0;
    flex: 1 1 auto;
  }

  .gutter {
    gap: 0.34rem;
    padding: 30px 0 22px;
    font-size: 0.56rem;
  }

  .tab {
    min-height: 32px;
    padding: 0 10px;
  }

  .tab.ghost {
    display: none;
  }

  .window-controls {
    padding: 0 10px;
  }

  .editor-back {
    min-height: 74svh;
  }

  .editor-shell.is-maximized {
    width: calc(100vw - var(--max-inset) - var(--max-inset));
  }

  .code-surface {
    min-height: 0;
    overflow: hidden;
    padding: 0.95rem;
  }

  h1 {
    max-width: 100%;
    font-size: 2.15rem;
  }

  h1::before,
  h1::after {
    content: "OUTSIDE SCOPE";
    white-space: nowrap;
  }

  .brand-labs {
    font-size: 0.52em;
  }

  .terminal-feed {
    height: auto;
    min-height: 0;
    gap: 0.34rem;
    font-size: 0.76rem;
  }

  .feed-line {
    grid-template-columns: 3.55rem minmax(0, 1fr);
  }

  .news-content {
    gap: 0.24rem;
  }

  .news-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.42rem;
  }

  .news-tags {
    white-space: normal;
  }

  .news-stamp {
    justify-content: flex-start;
  }

  .news-title {
    line-height: 1.32;
  }

  .news-source,
  .news-timestamp {
    font-size: 0.58rem;
  }

  .news-pill {
    font-size: 0.52rem;
  }

  .terminal-line {
    margin-top: 0.84rem;
    font-size: 0.88rem;
  }

  .heatmap-sankey {
    display: none;
  }

  .command-panel-row {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .suggest-box {
    width: 100%;
  }

  .suggestion {
    min-height: 28px;
    font-size: 0.76rem;
  }

  .kind {
    font-size: 0.6rem;
  }

  .heatmap-toggle {
    padding: 0.25rem;
    border-radius: 5px;
  }

  .heatmap-grid {
    gap: 2px;
  }

  .heatmap-square {
    width: 4px;
    height: 4px;
    border-radius: 1px;
  }

  .heatmap-panel {
    gap: 0.2rem;
    padding: 0.34rem;
  }

  .heatmap-row {
    grid-template-columns: 2.55rem minmax(0, 1fr) 3.1rem;
    gap: 0.26rem;
    font-size: 0.54rem;
  }

  .heatmap-rail {
    height: 0.34rem;
  }

  .waiting-data {
    gap: 0.24rem;
    font-size: 0.5rem;
  }

  .waiting-icon {
    width: 0.62rem;
    height: 0.62rem;
  }

  .insight-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .insight-body.insight-charts,
  .chart-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .insight-panel.is-tab-view {
    min-height: auto;
  }

  .insight-panel.is-tab-view .news-tracker-summary {
    font-size: 0.62rem;
  }

  .insight-panel.is-tab-view .news-tracker-list {
    gap: 0.28rem;
  }

  .insight-panel.is-tab-view .news-tracker-row {
    grid-template-columns: 1.95rem minmax(0, 1fr);
    gap: 0.42rem;
    padding: 0.16rem 0;
  }

  .insight-panel.is-tab-view .news-tracker-index {
    font-size: 0.56rem;
    line-height: 1.42;
  }

  .insight-panel.is-tab-view .news-tracker-row .news-content,
  .insight-panel.is-tab-view .news-tracker-row .news-title {
    font-size: 0.68rem;
    line-height: 1.34;
  }

  .insight-panel.is-tab-view .news-tracker-row .news-meta {
    gap: 0.44rem;
  }

  .insight-panel.is-tab-view .news-tracker-row .news-source,
  .insight-panel.is-tab-view .news-tracker-row .news-timestamp {
    font-size: 0.56rem;
  }

  .insight-panel.is-tab-view .news-tracker-row .news-pill {
    font-size: 0.52rem;
  }

  .news-layer {
    opacity: 0.28;
  }

  .ticker-toggle {
    width: 1.58rem;
    height: 1.58rem;
    margin-right: 0.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .editor-shell,
  .editor-face,
  .feed-line,
  h1::before,
  h1::after,
  .news-pill.classifying::after,
  .waiting-icon::after,
  .cursor,
  .news-track {
    animation: none;
    transition: none;
  }
}
