/* ═══════════════════════════════════════════════════════════════
   DEVOPS207 · night-city control plane
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #05040b;
  --bg-2: #0b0918;
  --panel: rgba(11, 9, 26, 0.78);
  --panel-solid: #0c0a1c;
  --line: rgba(0, 240, 255, 0.22);
  --line-dim: rgba(140, 150, 255, 0.12);
  --cyan: #00f0ff;
  --pink: #ff2a6d;
  --yellow: #f3e600;
  --green: #3dff8a;
  --violet: #9b5cff;
  --text: #d9e3ff;
  --text-hi: #ffffff;
  --muted: #7d86ad;
  --muted-2: #545b80;
  --cut: 14px;                 /* chamfer size */
  --gap: 14px;
  --bar-h: 44px;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace;
  --font-display: 'Chakra Petch', 'JetBrains Mono', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 12px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.6 var(--font-mono);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--pink); color: #000; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
kbd {
  display: inline-block; min-width: 1.6em; padding: 0 .35em;
  border: 1px solid var(--line); border-bottom-width: 2px;
  font: 500 11px/1.5 var(--font-mono); color: var(--cyan); text-align: center;
  background: rgba(0, 240, 255, .05);
}
.sep { color: var(--muted-2); margin: 0 .4em; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--yellow); color: #000; padding: 6px 10px; }
.skip:focus { left: 8px; }

/* ── atmosphere ─────────────────────────────────────────────── */
.fx-grid { position: fixed; inset: 0; z-index: -3; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 75% -10%, rgba(155, 92, 255, .22), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(0, 240, 255, .10), transparent 60%),
    linear-gradient(var(--bg), var(--bg-2));
}
.fx-sun {
  position: absolute; left: 50%; bottom: 34vh; width: min(70vw, 720px); aspect-ratio: 1;
  transform: translateX(-50%); border-radius: 50%; opacity: .16; filter: blur(.5px);
  background: linear-gradient(180deg, var(--yellow), var(--pink) 55%, var(--violet));
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 20px);
          mask: repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 20px);
}
.fx-floor {
  position: absolute; left: -50%; right: -50%; bottom: -10vh; height: 48vh;
  transform: perspective(380px) rotateX(62deg); transform-origin: 50% 0;
  background-image:
    linear-gradient(rgba(255, 42, 109, .55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 42, 109, .55) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask: linear-gradient(transparent, #000 30%);
          mask: linear-gradient(transparent, #000 30%);
  opacity: .35;
  animation: floor 3.2s linear infinite;
}
@keyframes floor { to { background-position: 0 60px, 0 0; } }
.fx-scan { position: fixed; inset: 0; z-index: 90; pointer-events: none; mix-blend-mode: overlay; opacity: .35;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px);
}
.fx-vignette { position: fixed; inset: 0; z-index: 89; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 60%, rgba(0, 0, 0, .65));
}

/* ── boot sequence ──────────────────────────────────────────── */
#boot {
  position: fixed; inset: 0; z-index: 200; background: #020205; color: var(--green);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; overflow: hidden;
  font: 400 13px/1.55 var(--font-mono);
  transition: opacity .5s var(--ease), filter .5s var(--ease);
}
#boot[hidden] { display: none; }
#boot.out { opacity: 0; filter: blur(6px) brightness(2); pointer-events: none; }
#boot pre { margin: 0; white-space: pre-wrap; text-shadow: 0 0 6px rgba(61, 255, 138, .5); }
#boot .b-ok { color: var(--green); } #boot .b-hi { color: var(--cyan); } #boot .b-pk { color: var(--pink); } #boot .b-dim { color: var(--muted); }
.boot-skip { position: absolute; top: 18px; right: 24px; margin: 0; color: var(--muted); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; animation: blink 1.2s steps(2) infinite; }

/* ── bars ───────────────────────────────────────────────────── */
.bar {
  display: flex; align-items: center; gap: 18px;
  padding: 0 18px; min-height: var(--bar-h);
  background: rgba(5, 4, 11, .82);
  -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3);
}
.bar-top { position: sticky; top: 0; z-index: 60; border-bottom: 1px solid var(--line); }
.bar-top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--pink), var(--cyan), transparent); opacity: .8; }
.logo { font: 700 16px/1 var(--font-display); letter-spacing: .12em; color: var(--text-hi); white-space: nowrap; }
.logo b { color: var(--pink); }
.logo-mark { color: var(--cyan); letter-spacing: -.1em; margin-right: .2em; }
.logo:hover { text-decoration: none; text-shadow: 0 0 12px var(--cyan); }
.ws { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.ws::-webkit-scrollbar { display: none; }
.ws a { display: flex; align-items: center; gap: 6px; padding: 6px 10px; color: var(--muted); font-size: 12px; white-space: nowrap; border: 1px solid transparent; }
.ws a:hover { color: var(--text-hi); text-decoration: none; background: rgba(0, 240, 255, .06); }
.ws a.on { color: #000; background: var(--cyan); }
.ws a.on kbd { color: #000; border-color: rgba(0, 0, 0, .4); background: transparent; }
.bar-status { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.stat-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; font-size: 12px; color: var(--text); border: 1px solid var(--line-dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
#bar-countdown { color: var(--yellow); border-color: rgba(243, 230, 0, .3); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.dot-ok { background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 2s ease-in-out infinite; }
.dot-warn { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); }
.dot-live { background: var(--pink); box-shadow: 0 0 10px var(--pink); animation: pulse 1s ease-in-out infinite; }
.dot-cyan { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.dot-pink { background: var(--pink); box-shadow: 0 0 6px var(--pink); }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes blink { 50% { opacity: 0; } }

.bar-bottom { justify-content: space-between; flex-wrap: wrap; gap: 6px 18px; padding: 10px 18px; margin-top: var(--gap); border-top: 1px solid var(--line-dim); font-size: 12px; color: var(--muted); }
.bar-bottom p { margin: 0; }
.keys kbd { margin: 0 2px 0 8px; } .keys kbd:first-child { margin-left: 0; }

/* ── tiling window manager ──────────────────────────────────── */
.wm {
  display: grid; gap: var(--gap); padding: var(--gap) 18px 0;
  max-width: 1680px; margin: 0 auto;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "hero  hero  next"
    "hero  hero  sched"
    "mani  clus  tty"
    "mani  venue tty";
}
.pane-hero { grid-area: hero; } .pane-next { grid-area: next; } .pane-sched { grid-area: sched; }
.pane-manifest { grid-area: mani; } .pane-cluster { grid-area: clus; } .pane-venue { grid-area: venue; } .pane-tty { grid-area: tty; }

.pane {
  --edge: var(--line);
  position: relative; isolation: isolate; min-width: 0;
  display: flex; flex-direction: column;
  padding: 1px;
  background: linear-gradient(135deg, var(--edge), var(--line-dim) 40%, var(--line-dim) 60%, var(--edge));
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  transition: --edge .3s, transform .4s var(--ease);
  opacity: 0; transform: translateY(14px);
  animation: pane-in .7s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}
.pane::before {
  content: ''; position: absolute; inset: 1px; z-index: -1;
  background: var(--panel);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  clip-path: inherit;
}
@keyframes pane-in { to { opacity: 1; transform: none; } }
.pane.focus { --edge: var(--cyan); }
.pane.focus .pane-id { background: var(--cyan); color: #000; }

.pane-head {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 7px 12px 7px 0; font-size: 12px; color: var(--muted);
  border-bottom: 1px solid var(--line-dim);
  background: linear-gradient(90deg, rgba(0, 240, 255, .06), transparent 60%);
  cursor: default; user-select: none;
}
.pane-id { flex: none; display: grid; place-items: center; width: 26px; align-self: stretch; margin: -7px 0; background: rgba(255, 42, 109, .14); color: var(--pink); font-weight: 700; transition: background .2s, color .2s; }
.pane-title { color: var(--text-hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pane-title::before { content: '❯ '; color: var(--pink); }
.pane-meta { margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pane-zoom { flex: none; background: none; border: 1px solid var(--line-dim); color: var(--muted); font: inherit; line-height: 1; padding: 3px 6px; cursor: pointer; margin-right: calc(var(--cut) - 6px); }
.pane-zoom:hover { color: var(--cyan); border-color: var(--cyan); }
.pane-body { position: relative; padding: 18px 20px 20px; flex: 1; min-height: 0; }
.pane-foot { margin: 14px 0 0; font-size: 12px; color: var(--muted); }

/* zoom (tiling-WM fullscreen) */
body.zoomed { overflow: hidden; }
body.zoomed .wm::before { content: ''; position: fixed; inset: 0; z-index: 70; background: rgba(2, 2, 6, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.pane.zoom { position: fixed; z-index: 80; inset: calc(var(--bar-h) + 18px) max(18px, 4vw) 24px; --edge: var(--cyan); }
.pane.zoom .pane-body { overflow: auto; }
.pane.zoom .pane-zoom { color: #000; background: var(--cyan); border-color: var(--cyan); }

/* ── 1 · hero ───────────────────────────────────────────────── */
.hero { display: flex; flex-direction: column; justify-content: center; padding: clamp(22px, 4vw, 56px); min-height: min(76vh, 720px); overflow: hidden; }
.hero::after { /* data-stream rail */
  content: ''; position: absolute; right: 22px; top: 18px; bottom: 18px; width: 1px;
  background: linear-gradient(transparent, var(--pink), transparent); background-size: 100% 40%; background-repeat: no-repeat;
  animation: rail 4s linear infinite; opacity: .7;
}
@keyframes rail { from { background-position: 0 -100%; } to { background-position: 0 250%; } }
.kicker { margin: 0 0 8px; color: var(--muted); font-size: 13px; letter-spacing: .06em; }
.kicker b { color: var(--yellow); font-weight: 500; }
.tag { color: var(--pink); margin-right: .6em; }
.glitch {
  position: relative; margin: 0 0 10px; line-height: .9;
  font: 700 clamp(3.2rem, 10.5vw, 9.6rem)/.9 var(--font-display); letter-spacing: .01em;
  color: var(--text-hi);
  text-shadow: 0 0 22px rgba(0, 240, 255, .35), 0 0 60px rgba(155, 92, 255, .25);
}
.glitch span { color: var(--pink); text-shadow: 0 0 26px rgba(255, 42, 109, .55); }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none; text-shadow: none;
  clip-path: inset(0 0 100% 0);
}
.glitch::before { color: var(--cyan); transform: translate(-3px, 0); animation: glitch-a 5.5s steps(1) infinite; mix-blend-mode: screen; }
.glitch::after  { color: var(--pink); transform: translate(3px, 0);  animation: glitch-b 5.5s steps(1) infinite; mix-blend-mode: screen; }
@keyframes glitch-a {
  0%, 88%, 100% { clip-path: inset(0 0 100% 0); }
  89% { clip-path: inset(12% 0 70% 0); transform: translate(-6px, -1px); }
  91% { clip-path: inset(55% 0 22% 0); transform: translate(5px, 1px); }
  93% { clip-path: inset(80% 0 4% 0);  transform: translate(-3px, 0); }
  95% { clip-path: inset(30% 0 50% 0); transform: translate(7px, 0); }
}
@keyframes glitch-b {
  0%, 89%, 100% { clip-path: inset(0 0 100% 0); }
  90% { clip-path: inset(66% 0 10% 0); transform: translate(6px, 1px); }
  92% { clip-path: inset(5% 0 80% 0);  transform: translate(-5px, -1px); }
  94% { clip-path: inset(40% 0 38% 0); transform: translate(4px, 0); }
}
.glitch.burst::before, .glitch.burst::after { animation-duration: .6s; }
.lede { max-width: 60ch; margin: 6px 0 14px; font-size: clamp(14px, 1.25vw, 16.5px); color: var(--text); }
.lede strong { color: var(--text-hi); font-weight: 500; }
.topics { margin: 0 0 26px; font-size: 14px; color: var(--muted); }
.prompt { color: var(--green); }
.arrow { color: var(--muted-2); }
.topic { color: var(--yellow); }
.caret { color: var(--yellow); animation: blink 1s steps(2) infinite; margin-left: 1px; }

.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.btn {
  --b: var(--line);
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; font: 500 13px/1 var(--font-mono); color: var(--text-hi); cursor: pointer;
  background: rgba(0, 240, 255, .04); border: 1px solid var(--b);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.btn:hover { text-decoration: none; background: rgba(0, 240, 255, .12); --b: var(--cyan); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--pink); border-color: var(--pink); color: #000; font-weight: 700; letter-spacing: .02em; }
.btn-primary:hover { background: var(--yellow); border-color: var(--yellow); color: #000; }
.btn-ghost { background: transparent; border-style: dashed; color: var(--text); }
.copy-state { color: var(--green); font-size: 11px; }
.btn-arrow { transition: transform .2s var(--ease); }
.btn:hover .btn-arrow { transform: translate(2px, -2px); }

.policy { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 26px; padding: 0; font-size: 12.5px; color: var(--muted); }
.policy span { font-weight: 700; margin-right: 6px; padding: 1px 6px; font-size: 11px; letter-spacing: .08em; }
.policy .allow span { color: #000; background: var(--green); }
.policy .deny span { color: #000; background: var(--pink); }
.policy .deny { text-decoration: line-through; text-decoration-color: var(--pink); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; max-width: 720px; background: var(--line-dim); border: 1px solid var(--line-dim); }
.stats div { padding: 12px 14px; background: rgba(5, 4, 11, .6); }
.stats dt { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.stats dd { margin: 2px 0 0; font: 700 clamp(20px, 2.2vw, 28px)/1.1 var(--font-display); color: var(--cyan); font-variant-numeric: tabular-nums; }

/* ── 2 · next ───────────────────────────────────────────────── */
.next { display: flex; gap: 20px; align-items: center; }
.ring-wrap { position: relative; flex: none; width: 128px; aspect-ratio: 1; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--line-dim); stroke-width: 6; }
.ring-ticks { fill: none; stroke: var(--muted-2); stroke-width: 4; stroke-dasharray: 1 6.9; opacity: .7; }
.ring-bar { fill: none; stroke: url(#ringGrad); stroke-width: 6; stroke-linecap: butt; stroke-dasharray: 326.73; stroke-dashoffset: 326.73; transition: stroke-dashoffset 1s var(--ease); filter: drop-shadow(0 0 4px var(--pink)); }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-label { font-size: 10px; color: var(--muted); letter-spacing: .2em; text-transform: uppercase; }
.ring-pct { font: 700 22px/1 var(--font-display); color: var(--text-hi); }
.next-info { min-width: 0; flex: 1; }
.next-status { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 12px; letter-spacing: .14em; color: var(--yellow); }
.next-status.live { color: var(--pink); }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.countdown div { display: flex; flex-direction: column; align-items: center; padding: 8px 0 6px; background: rgba(0, 240, 255, .04); border: 1px solid var(--line-dim); }
.countdown span { font: 700 clamp(22px, 2.3vw, 34px)/1 var(--font-display); color: var(--text-hi); font-variant-numeric: tabular-nums; text-shadow: 0 0 14px rgba(0, 240, 255, .5); }
.countdown small { font-size: 10px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; }
.next-when { margin: 0; color: var(--text-hi); font-size: 13px; }
.next-where { margin: 0; color: var(--muted); font-size: 12px; }

/* ── 3 · events table ───────────────────────────────────────── */
.events { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.events th { text-align: left; font-weight: 500; color: var(--muted); padding: 0 10px 6px 0; font-size: 11px; letter-spacing: .08em; }
.events td { padding: 6px 10px 6px 0; border-top: 1px dashed var(--line-dim); white-space: nowrap; }
.events tbody tr { transition: background .15s; }
.events tbody tr:hover { background: rgba(0, 240, 255, .05); }
.events tr.is-next td:first-child { color: var(--text-hi); }
.events tr.is-next td:first-child::before { content: '▸ '; color: var(--pink); }
.st { padding: 1px 6px; font-size: 11px; border: 1px solid currentColor; }
.st-next { color: var(--yellow); }
.st-sched { color: var(--cyan); }
.st-live { color: #000; background: var(--pink); border-color: var(--pink); animation: pulse 1s infinite; }
.age { color: var(--muted); }
.pane-sched .pane-body { overflow-x: auto; }
.events .col-venue { display: none; }
.pane.zoom .events .col-venue { display: table-cell; }

/* ── 4 · yaml ───────────────────────────────────────────────── */
.yaml { margin: 0; font: 400 12.5px/1.65 var(--font-mono); color: var(--text); overflow-x: auto; white-space: pre; counter-reset: ln; }
.yaml .k { color: var(--cyan); }
.yaml .s { color: #ffd479; }
.yaml .n { color: var(--pink); }
.yaml .c { color: var(--muted-2); font-style: italic; }
.yaml .p { color: var(--muted); }
.yaml .ok { color: var(--green); }
.yaml .no { color: var(--pink); }
.yaml:focus-visible { outline-offset: 6px; }

/* ── 5 · cluster ────────────────────────────────────────────── */
.cluster { padding: 0; display: flex; flex-direction: column; }
#cluster { display: block; width: 100%; height: 100%; min-height: 300px; flex: 1; cursor: grab; touch-action: pan-y; }
#cluster:active { cursor: grabbing; }
.cluster-legend { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin: 0; padding: 8px 14px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--line-dim); }
.cluster-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cluster-legend .hint { margin-left: auto; color: var(--muted-2); }

/* ── 6 · traceroute ─────────────────────────────────────────── */
.trace { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.trace li {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 2px 10px; align-items: baseline;
  padding: 5px 0; border-top: 1px dashed var(--line-dim);
}
.trace li:first-child { border-top: 0; }
.trace .hop { color: var(--muted); text-align: right; }
.trace .host { color: var(--cyan); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trace .ms { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.trace .note { grid-column: 2 / -1; color: var(--muted); }
.trace .note::before { content: '# '; color: var(--muted-2); }
.trace .dest .host, .trace .dest .ms { color: var(--green); }
.trace.animate li { opacity: 0; transform: translateX(-6px); transition: opacity .35s, transform .35s var(--ease); }
.trace.animate li.in { opacity: 1; transform: none; }

/* ── 7 · tty ────────────────────────────────────────────────── */
.tty { display: flex; flex-direction: column; padding: 14px 16px 12px; background: rgba(0, 0, 0, .35); cursor: text; min-height: 460px; }
.tty-out { flex: 1; min-height: 0; max-height: 560px; overflow-y: auto; font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; scrollbar-width: thin; scrollbar-color: var(--muted-2) transparent; }
.pane.zoom .tty-out { max-height: none; }
.tty-out .o-cmd { color: var(--text-hi); }
.tty-out .o-err { color: var(--pink); }
.tty-out .o-ok { color: var(--green); }
.tty-out .o-hi { color: var(--cyan); }
.tty-out .o-y { color: var(--yellow); }
.tty-out .o-pk { color: var(--pink); }
.tty-out .o-dim { color: var(--muted); }
.tty-out .o-v { color: var(--violet); }
.tty-out .o-t { color: var(--text); }
.tty-out .o-b { font-weight: 700; }
.tty-out { container-type: inline-size; }
.tty-out .o-art { white-space: pre; overflow: hidden; line-height: 1.05; letter-spacing: 0; font-size: min(11px, calc(100cqw / 46)); margin: 4px 0; }
.tty-out a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.tty-line { display: flex; align-items: center; gap: 8px; padding-top: 8px; font-size: 12.5px; }
.tty-prompt { white-space: nowrap; color: var(--muted); }
.tty-prompt .u { color: var(--green); } .tty-prompt .h { color: var(--pink); } .tty-prompt .d { color: var(--cyan); }
#tty-in { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text-hi); font: inherit; caret-color: var(--yellow); padding: 2px 0; }
.tty-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tty-chips button { background: transparent; color: var(--muted); border: 1px solid var(--line-dim); font: 400 11px/1 var(--font-mono); padding: 5px 8px; cursor: pointer; }
.tty-chips button:hover { color: var(--cyan); border-color: var(--cyan); }

/* matrix easter egg */
#matrix { position: fixed; inset: 0; z-index: 85; pointer-events: none; opacity: .55; }

/* ── responsive ─────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .wm {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "hero  hero"
      "next  sched"
      "mani  tty"
      "clus  venue";
  }
  .hero { min-height: 0; }
  .ws span { display: none; }
}
@media (max-width: 760px) {
  :root { --gap: 12px; --cut: 10px; }
  body { font-size: 13px; }
  .wm { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "next" "sched" "tty" "mani" "clus" "venue"; padding: var(--gap) 16px 0; }
  .bar { padding: 0 16px; gap: 10px; }
  .ws { display: none; }
  .hide-sm { display: none !important; }
  .hero { padding: 26px 18px 22px; }
  .hero::after { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next { flex-direction: column; align-items: stretch; }
  .ring-wrap { width: 108px; align-self: center; }
  .pane-body { padding: 16px; }
  .pane-meta { display: none; }
  .tty { min-height: 380px; }
  .tty-out { max-height: 420px; }
  .pane.zoom { inset: calc(var(--bar-h) + 8px) 8px 8px; }
  .bar-bottom { padding: 12px 16px; }
}
@media (max-width: 420px) {
  .hide-xs { display: none; }
  .events { font-size: 11.5px; }
  .events td, .events th { padding-right: 6px; }
  .st { padding: 1px 4px; }
  .btn { padding: 10px 14px; }
}

/* ── motion & preference respect ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; }
  .pane { opacity: 1; transform: none; }
  .glitch::before, .glitch::after { display: none; }
}
@media (forced-colors: active) {
  .pane { clip-path: none; border: 1px solid CanvasText; }
  .fx-grid, .fx-scan, .fx-vignette { display: none; }
}
@media print {
  .fx-grid, .fx-scan, .fx-vignette, #boot, .bar-top, .pane-cluster, .pane-tty { display: none !important; }
  body { background: #fff; color: #000; }
  .pane { opacity: 1; transform: none; clip-path: none; border: 1px solid #000; }
}

/* ── 404 ────────────────────────────────────────────────────── */
.wm-404 { grid-template-columns: minmax(0, 760px); grid-template-areas: none; justify-content: center; align-content: center; min-height: 100vh; padding-bottom: var(--gap); }
.wm-404 .hero { min-height: 0; }
.wm-404 .cta { margin: 26px 0 0; }
@media (max-width: 760px) { .wm-404 { grid-template-areas: none; } }
